From 823e6de84af021845fc554da82c6f9caed674f88 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Fri, 20 Jan 2023 16:44:42 +0300 Subject: [PATCH] Update collection creation fee --- contracts/sg721/contract.ts | 2 +- contracts/vendingFactory/contract.ts | 2 +- contracts/vendingMinter/contract.ts | 2 +- pages/collections/create.tsx | 7 ++++--- pages/contracts/vendingMinter/instantiate.tsx | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/contracts/sg721/contract.ts b/contracts/sg721/contract.ts index a46ed29..270eb73 100644 --- a/contracts/sg721/contract.ts +++ b/contracts/sg721/contract.ts @@ -620,7 +620,7 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con admin?: string, ): Promise => { const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', { - funds: [coin('2500000000', 'ustars')], + funds: [coin('3000000000', 'ustars')], memo: '', admin, }) diff --git a/contracts/vendingFactory/contract.ts b/contracts/vendingFactory/contract.ts index d8aa8ba..d8408a4 100644 --- a/contracts/vendingFactory/contract.ts +++ b/contracts/vendingFactory/contract.ts @@ -73,7 +73,7 @@ export const vendingFactory = (client: SigningCosmWasmClient, txSigner: string): sender: txSigner, contract: contractAddress, msg, - funds: [coin('2500000000', 'ustars')], + funds: [coin('3000000000', 'ustars')], } } diff --git a/contracts/vendingMinter/contract.ts b/contracts/vendingMinter/contract.ts index e132380..f159f44 100644 --- a/contracts/vendingMinter/contract.ts +++ b/contracts/vendingMinter/contract.ts @@ -587,7 +587,7 @@ export const vendingMinter = (client: SigningCosmWasmClient, txSigner: string): label: string, ): Promise => { const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', { - funds: [coin('2500000000', 'ustars')], + funds: [coin('3000000000', 'ustars')], }) return { diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index f8322e1..81c970f 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -319,6 +319,7 @@ const CollectionCreationPage: NextPage = () => { return result } setBaseTokenUri(baseUri) + const result = await baseMinterContract .use(baseMinterDetails?.existingBaseMinter as string) ?.batchMint(wallet.address, `ipfs://${baseUri}`, uploadDetails.assetFiles.length) @@ -439,7 +440,7 @@ const CollectionCreationPage: NextPage = () => { messages: vendingFactoryMessages, txSigner: wallet.address, msg, - funds: [coin('2500000000', 'ustars')], + funds: [coin('3000000000', 'ustars')], } const data = await vendingFactoryDispatchExecute(payload) setTransactionHash(data.transactionHash) @@ -817,11 +818,11 @@ const CollectionCreationPage: NextPage = () => { const checkwalletBalance = () => { if (!wallet.initialized) throw new Error('Wallet not connected.') 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)) throw new Error('Insufficient wallet balance to instantiate the required contracts.') } else { - const amountNeeded = minterType === 'vending' ? 2500000000 : 1000000000 + const amountNeeded = minterType === 'vending' ? 3000000000 : 1000000000 if (amountNeeded >= Number(wallet.balance[0].amount)) throw new Error('Insufficient wallet balance to instantiate the required contracts.') } diff --git a/pages/contracts/vendingMinter/instantiate.tsx b/pages/contracts/vendingMinter/instantiate.tsx index f8c0f76..2695f2f 100644 --- a/pages/contracts/vendingMinter/instantiate.tsx +++ b/pages/contracts/vendingMinter/instantiate.tsx @@ -208,7 +208,7 @@ const VendingMinterInstantiatePage: NextPage = () => { contract .use(VENDING_FACTORY_ADDRESS) ?.createVendingMinter(wallet.address, msg, [ - coin('2500000000', 'ustars'), + coin('3000000000', 'ustars'), ]) as Promise, { loading: 'Instantiating contract...',