feat: add Apt NFT collection skeleton #6129
Merged
+97
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for managing Aptos NFT collections in the SDK. Key changes include adding a new
AptNFTCollection
class, updating token configuration to include NFT collections, and registering the new functionality in the SDK.New Feature: Aptos NFT Collection Support
AptNFTCollection
class to manage Aptos NFT collections, including methods for retrieving collection details and creating constructors for NFT collections. (modules/sdk-coin-apt/src/aptNFTCollection.ts
)index.ts
to export theAptNFTCollection
class. (modules/sdk-coin-apt/src/index.ts
)register
function. (modules/sdk-coin-apt/src/register.ts
)Token Configuration Updates
AptNFTCollectionConfig
type to define the configuration for Aptos NFT collections. (modules/statics/src/tokenConfig.ts
, modules/statics/src/tokenConfig.tsR100-R103)nftCollections
property to theTokens
interface for Aptos, supporting both Mainnet and Testnet configurations. (modules/statics/src/tokenConfig.ts
, [1] [2]getFormattedAptNFTCollections
to format NFT collection configurations based on the coin map. (modules/statics/src/tokenConfig.ts
, modules/statics/src/tokenConfig.tsR628-R642)getFormattedTokens
to include formatted NFT collections for both Mainnet and Testnet. (modules/statics/src/tokenConfig.ts
, [1] [2]Export Updates
AptNFTCollection
from thestatics
module to make it accessible across the SDK. (modules/statics/src/index.ts
, modules/statics/src/index.tsR26)tokenConfig.ts
to includeAptNFTCollection
. (modules/statics/src/tokenConfig.ts
, modules/statics/src/tokenConfig.tsR5)TICKET: COIN-4036