supertoken-sdk
v0.1.3
Published
## NAP deployment
Readme
Supertoken SDK by Borderless
NAP deployment
For new Nap deployment you should prepare deploy transaction using NAP.prepareDeployTransaction(params: NapParams):Transaction and send it to blockchain yourself using @tonconnect/ui-react as example.
Useful types:
interface NapParams {
seed?: bigint,
owner: Address,
jettonMasterAddress: Address,
nftCollectionAddress: Address,
nftCollectionOwnerAddress: Address,
nftCollectionContent: string,//metadata url
totalNFTSupply: bigint,
napProjectFeeReceiverAddress: Address,
napProjectFeePercentage: bigint,
protocolFeeReceiverAddress: Address,
protocolFeePercentage: bigint,
uiFeeReceiverAddress: Address,
napRoyaltiesThreshold: bigint,
treasuryFeeThreshold: bigint,
uiFeeThreshold: bigint
}
interface Transaction {
validUntil: number;
messages: {
address: string;
amount: string;
stateInit: string;
}[];
}For such types us Address, Sender, TonClient, Cell and other we are using types from @ton/ton
Example of usage with tonConnectUI
const tx = await SupertokenSdk.NAP.prepareDeployTransaction(napParams)
tonConnectUI.sendTransaction(tx)