Skip to content
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

refactor(interchain-token-service): use contractstorage #246

Open
wants to merge 1 commit into
base: refactor/interchain-token-storage
Choose a base branch
from

Conversation

nbayindirli
Copy link
Contributor

@nbayindirli nbayindirli requested a review from a team as a code owner February 6, 2025 23:47
Comment on lines -143 to +108
env.storage().persistent().set(&key, &());
storage::set_trusted_chain_status(env, chain.clone());
Copy link
Contributor Author

@nbayindirli nbayindirli Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clear state, similar to Operators: https://axelarnetwork.atlassian.net/browse/AXE-7428

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed here? The value is () here instead of a bool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand– TrustChain is a status


#[temporary]
#[value(i128)]
FlowIn { flow_key: FlowKey },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the need for a wrapper key similar to message approval key

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#[value(BytesN<32>)]
TokenManagerWasmHash,

#[persistent]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should look into making this instance type. We have to see if it can fit within the instance storage limits (e.g. can we trust 10k chains and still be under the limit). If the gas cost impact isn't significant, it's not needed

Comment on lines -143 to +108
env.storage().persistent().set(&key, &());
storage::set_trusted_chain_status(env, chain.clone());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed here? The value is () here instead of a bool

@nbayindirli nbayindirli changed the base branch from main to refactor/interchain-token-storage February 7, 2025 17:04
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.

2 participants