Merge pull request #92 from public-awesome/update-vending-minter-init-fee

Update vending minter instantiation fee
This commit is contained in:
Serkan Reis 2023-01-18 09:24:07 +03:00 committed by GitHub
commit 940cf06d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
APP_VERSION=0.3.9
APP_VERSION=0.4.0
NEXT_PUBLIC_PINATA_ENDPOINT_URL=https://api.pinata.cloud/pinning/pinFileToIPFS
NEXT_PUBLIC_SG721_CODE_ID=274

View File

@ -620,7 +620,7 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
admin?: string,
): Promise<InstantiateResponse> => {
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
funds: [coin('1000000000', 'ustars')],
funds: [coin('2500000000', 'ustars')],
memo: '',
admin,
})

View File

@ -73,7 +73,7 @@ export const vendingFactory = (client: SigningCosmWasmClient, txSigner: string):
sender: txSigner,
contract: contractAddress,
msg,
funds: [coin('1000000000', 'ustars')],
funds: [coin('2500000000', 'ustars')],
}
}

View File

@ -587,7 +587,7 @@ export const vendingMinter = (client: SigningCosmWasmClient, txSigner: string):
label: string,
): Promise<InstantiateResponse> => {
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
funds: [coin('1000000000', 'ustars')],
funds: [coin('2500000000', 'ustars')],
})
return {

View File

@ -1,6 +1,6 @@
{
"name": "stargaze-studio",
"version": "0.3.9",
"version": "0.4.0",
"workspaces": [
"packages/*"
],

View File

@ -439,7 +439,7 @@ const CollectionCreationPage: NextPage = () => {
messages: vendingFactoryMessages,
txSigner: wallet.address,
msg,
funds: [coin('1000000000', 'ustars')],
funds: [coin('2500000000', 'ustars')],
}
const data = await vendingFactoryDispatchExecute(payload)
setTransactionHash(data.transactionHash)
@ -817,11 +817,11 @@ const CollectionCreationPage: NextPage = () => {
const checkwalletBalance = () => {
if (!wallet.initialized) throw new Error('Wallet not connected.')
if (whitelistDetails?.whitelistType === 'new' && whitelistDetails.memberLimit) {
const amountNeeded = Math.ceil(Number(whitelistDetails.memberLimit) / 1000) * 100000000 + 1000000000
const amountNeeded = Math.ceil(Number(whitelistDetails.memberLimit) / 1000) * 100000000 + 2500000000
if (amountNeeded >= Number(wallet.balance[0].amount))
throw new Error('Insufficient wallet balance to instantiate the required contracts.')
} else {
const amountNeeded = 1000000000
const amountNeeded = 2500000000
if (amountNeeded >= Number(wallet.balance[0].amount))
throw new Error('Insufficient wallet balance to instantiate the required contracts.')
}

View File

@ -208,7 +208,7 @@ const VendingMinterInstantiatePage: NextPage = () => {
contract
.use(VENDING_FACTORY_ADDRESS)
?.createVendingMinter(wallet.address, msg, [
coin('1000000000', 'ustars'),
coin('2500000000', 'ustars'),
]) as Promise<CreateVendingMinterResponse>,
{
loading: 'Instantiating contract...',