Update collection creation fee
This commit is contained in:
parent
489c53ed23
commit
823e6de84a
@ -620,7 +620,7 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
|
|||||||
admin?: string,
|
admin?: string,
|
||||||
): Promise<InstantiateResponse> => {
|
): Promise<InstantiateResponse> => {
|
||||||
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
|
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
|
||||||
funds: [coin('2500000000', 'ustars')],
|
funds: [coin('3000000000', 'ustars')],
|
||||||
memo: '',
|
memo: '',
|
||||||
admin,
|
admin,
|
||||||
})
|
})
|
||||||
|
@ -73,7 +73,7 @@ export const vendingFactory = (client: SigningCosmWasmClient, txSigner: string):
|
|||||||
sender: txSigner,
|
sender: txSigner,
|
||||||
contract: contractAddress,
|
contract: contractAddress,
|
||||||
msg,
|
msg,
|
||||||
funds: [coin('2500000000', 'ustars')],
|
funds: [coin('3000000000', 'ustars')],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -587,7 +587,7 @@ export const vendingMinter = (client: SigningCosmWasmClient, txSigner: string):
|
|||||||
label: string,
|
label: string,
|
||||||
): Promise<InstantiateResponse> => {
|
): Promise<InstantiateResponse> => {
|
||||||
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
|
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
|
||||||
funds: [coin('2500000000', 'ustars')],
|
funds: [coin('3000000000', 'ustars')],
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -319,6 +319,7 @@ const CollectionCreationPage: NextPage = () => {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
setBaseTokenUri(baseUri)
|
setBaseTokenUri(baseUri)
|
||||||
|
|
||||||
const result = await baseMinterContract
|
const result = await baseMinterContract
|
||||||
.use(baseMinterDetails?.existingBaseMinter as string)
|
.use(baseMinterDetails?.existingBaseMinter as string)
|
||||||
?.batchMint(wallet.address, `ipfs://${baseUri}`, uploadDetails.assetFiles.length)
|
?.batchMint(wallet.address, `ipfs://${baseUri}`, uploadDetails.assetFiles.length)
|
||||||
@ -439,7 +440,7 @@ const CollectionCreationPage: NextPage = () => {
|
|||||||
messages: vendingFactoryMessages,
|
messages: vendingFactoryMessages,
|
||||||
txSigner: wallet.address,
|
txSigner: wallet.address,
|
||||||
msg,
|
msg,
|
||||||
funds: [coin('2500000000', 'ustars')],
|
funds: [coin('3000000000', 'ustars')],
|
||||||
}
|
}
|
||||||
const data = await vendingFactoryDispatchExecute(payload)
|
const data = await vendingFactoryDispatchExecute(payload)
|
||||||
setTransactionHash(data.transactionHash)
|
setTransactionHash(data.transactionHash)
|
||||||
@ -817,11 +818,11 @@ const CollectionCreationPage: NextPage = () => {
|
|||||||
const checkwalletBalance = () => {
|
const checkwalletBalance = () => {
|
||||||
if (!wallet.initialized) throw new Error('Wallet not connected.')
|
if (!wallet.initialized) throw new Error('Wallet not connected.')
|
||||||
if (minterType === 'vending' && whitelistDetails?.whitelistType === 'new' && whitelistDetails.memberLimit) {
|
if (minterType === 'vending' && whitelistDetails?.whitelistType === 'new' && whitelistDetails.memberLimit) {
|
||||||
const amountNeeded = Math.ceil(Number(whitelistDetails.memberLimit) / 1000) * 100000000 + 2500000000
|
const amountNeeded = Math.ceil(Number(whitelistDetails.memberLimit) / 1000) * 100000000 + 3000000000
|
||||||
if (amountNeeded >= Number(wallet.balance[0].amount))
|
if (amountNeeded >= Number(wallet.balance[0].amount))
|
||||||
throw new Error('Insufficient wallet balance to instantiate the required contracts.')
|
throw new Error('Insufficient wallet balance to instantiate the required contracts.')
|
||||||
} else {
|
} else {
|
||||||
const amountNeeded = minterType === 'vending' ? 2500000000 : 1000000000
|
const amountNeeded = minterType === 'vending' ? 3000000000 : 1000000000
|
||||||
if (amountNeeded >= Number(wallet.balance[0].amount))
|
if (amountNeeded >= Number(wallet.balance[0].amount))
|
||||||
throw new Error('Insufficient wallet balance to instantiate the required contracts.')
|
throw new Error('Insufficient wallet balance to instantiate the required contracts.')
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@ const VendingMinterInstantiatePage: NextPage = () => {
|
|||||||
contract
|
contract
|
||||||
.use(VENDING_FACTORY_ADDRESS)
|
.use(VENDING_FACTORY_ADDRESS)
|
||||||
?.createVendingMinter(wallet.address, msg, [
|
?.createVendingMinter(wallet.address, msg, [
|
||||||
coin('2500000000', 'ustars'),
|
coin('3000000000', 'ustars'),
|
||||||
]) as Promise<CreateVendingMinterResponse>,
|
]) as Promise<CreateVendingMinterResponse>,
|
||||||
{
|
{
|
||||||
loading: 'Instantiating contract...',
|
loading: 'Instantiating contract...',
|
||||||
|
Loading…
Reference in New Issue
Block a user