Skip to content

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

SYInacta
Copy link

@SYInacta SYInacta commented Apr 11, 2025

⭐ 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

@SYInacta SYInacta requested a review from a team as a code owner April 11, 2025 13:52
@SYInacta SYInacta changed the title Add contact type and address type. feat(backend): add contact type and address type. Apr 11, 2025
@SYInacta SYInacta self-assigned this Apr 11, 2025
@SYInacta SYInacta removed their assignment Apr 14, 2025
Copy link
Collaborator

@DecentAgeCoder DecentAgeCoder left a 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

Copy link
Collaborator

@DecentAgeCoder DecentAgeCoder left a 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.

@SYInacta SYInacta requested a review from DecentAgeCoder April 15, 2025 13:05
}

#[derive(CandidType, Deserialize, Clone, Debug, Eq, PartialEq)]
pub enum AddressType {
Copy link
Member

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.

Copy link
Member

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/?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants