The minting SDK provides the most comprehensive and indepth route for minting a collection on the Aspen network. With a direct connection to the smart contracts that deal with minting tokens on the blockchain, but the web3 infrastructure and complexity abstracted away, Aspen's minting SDK allows you use knowledge from a language you already know to create new experiences in this brave new world of NFTs and web3.
If you plan to use the Aspen minting SDk, please get in contact with the team and we shall get back to you on authentication, how to deploy your minting contracts and other sundry activities to use the SDK.
The first step to using the SDK is to make a pull from the GitHub repository to get sources.
$ git clone https://github.com/monax/aspen-publishing-sdk.git $ cd aspen-publishing-sdk
Next, install the general dependencies
$ yarn install
Finally, go to the
pkg/sdk and create the
types files in Typescript from the contracts.
$ cd sdk $ yarn generate $ yarn build $ yarn prettier $ yarn lint
And you should be able to use the aspen minting SDK!
The minting SDK exposes the following functions for integrating with our smart contracts
|The address of the contract against which the mint of the tokens will be happening|
|the signed in|
|the NFT address|
Understanding the Factory Functions
The two function factories provides the collectors ability to mint your tokens directly into their wallets via lazy minting.
The core difference between these two functions is
CedarERC721DropV0__factoryshould be used for contracts that are ERC-721 compliant while
CedarERC1155DropV0__factoryshould be used for contracts and tokens that are ERC-1155 compliant.
CedarERC721DropV0__factory functions require two parameters to be executed: a
contractAddress value and the
contractAddress is the address of the deployed contract that is to be minted. If this value isn't available because you haven't had your contracts deployed with Aspen, please reach out in via the discord community, the discussions forum or via a direct email to the team.
library.getSigner() function is an autogenerated value that returns from when the collector connects their web wallet platform.
const contract = CedarERC1155DropV0__factory.connect( contractAddress, library.getSigner() );
const contract = CedarERC721DropV0__factory.connect( contractAddress, library.getSigner());
Updated about 2 months ago