-
Notifications
You must be signed in to change notification settings - Fork 30
feat(backend): add contact type and address type. #5815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly minor issues that still need to be addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Max will have a final glance at the PR and than approve.
…com/dfinity/oisy-wallet into feat/(backend)/contacts-shared-type
} | ||
|
||
#[derive(CandidType, Deserialize, Clone, Debug, Eq, PartialEq)] | ||
pub enum AddressType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: You may want to sync with @AntonioVentilii on this list. We could have a meeting with the three of us. In particular:
-
We support testnets as well as mainnets for each network, so some clarity is needed: is this a list of protocols, or is it "where to send the message"? E.g. what is the addressType for ckBTC (which is BTC, but using the ICP protocol), what is the address type for a Solana Testnet address, what is the address type for a Solana Devnet Account?
-
There is a risk of having several lists of networks that are all slightly different. One for snapshots, one for rewards, one for rewards, and so on. It might be an idea to have a single list of networks and a single list of protocols.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, maybe move this to shared/types/
?
⭐ PR 1: Implement necessary changes in shared for Contacts feature
Motivation
Provide the shared type, contacts structures and logic, including challenge creation, update, and delete of contacts and addresses associated to those contact.
Changes
Introduced a new rust module contacts in shared
Added the necessary candid structures
Tests