Skip to content
Discussion options

You must be logged in to vote

Storing Legacy Token(Token V1) Collection Ids

Since Legacy tokens collections are referenced by creator, and collection name, you'll just need to store both.

You can create a struct like below:

use aptos_framework::string::String;

struct LegacyCollectionId has store, drop {
  creator: address,
  name: String
}

struct Storage has key {
  legacy_collections: vector<LegacyCollectionId>
}

Storing Legacy Token(Token V1) Token Ids

For tokens, you can store the TokenDataId or the TokenId based on your needs:

vector<TokenId> ...

https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/framework/aptos-token/sources/token.move#L168-L184

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@unbound26z
Comment options

Answer selected by gregnazario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants