Skip to content

Add Token Factory integration - #11

Draft
Kayanski wants to merge 8 commits into
official-ibc-forkfrom
token-factory-integration
Draft

Add Token Factory integration#11
Kayanski wants to merge 8 commits into
official-ibc-forkfrom
token-factory-integration

Conversation

@Kayanski

@Kayanski Kayanski commented Jan 7, 2025

Copy link
Copy Markdown

This PR adds token factory capabilites into cw-multi-test.
For now the 3 following messages are handled for Osmosis :
MsgCreateDenom
MsgMint
MsgBurn

TODO :
Implement queries (is it needed ?)
Implement other tokenfactory flavors (neutron and xion have the same flavor)

@Kayanski
Kayanski marked this pull request as draft January 7, 2025 13:43
@Kayanski
Kayanski requested a review from Buckram123 January 7, 2025 13:43
@Kayanski
Kayanski changed the base branch from main to official-ibc-fork January 8, 2025 15:24

@Buckram123 Buckram123 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice. Couldn't find explanation why protobuf types copied instead of using osmosis-std (please add module-level comment)

Comment thread src/tokenfactory/mod.rs
bail!("Subdenom {subdenom} by sender {sender} doesn't exist")
}

// We mint. No need for transactional cache here, if this fails, the tokenfactory mint fails

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
// We mint. No need for transactional cache here, if this fails, the tokenfactory mint fails
// We burn. No need for transactional cache here, if this fails, the tokenfactory burn fails

typo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wonder why not to use osmosis-std?

@Kayanski

Kayanski commented Jan 8, 2025

Copy link
Copy Markdown
Author

Nice. Couldn't find explanation why protobuf types copied instead of using osmosis-std (please add module-level comment)

I copied, because i don't want to bring osmosis-std here it's soooooo heavy !

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