Merge pull request #95 from public-awesome/update-collection-creation-fee
Update collection creation fee
This commit is contained in:
commit
03c8a86417
@ -1,9 +1,9 @@
|
||||
APP_VERSION=0.4.0
|
||||
APP_VERSION=0.4.1
|
||||
|
||||
NEXT_PUBLIC_PINATA_ENDPOINT_URL=https://api.pinata.cloud/pinning/pinFileToIPFS
|
||||
NEXT_PUBLIC_SG721_CODE_ID=274
|
||||
NEXT_PUBLIC_SG721_CODE_ID=793
|
||||
NEXT_PUBLIC_VENDING_MINTER_CODE_ID=275
|
||||
NEXT_PUBLIC_VENDING_FACTORY_ADDRESS="stars1j4qn9krchp5xs8nued4j4vcr4j654wxkhf7acy76734xe5fsz08sku28s2"
|
||||
NEXT_PUBLIC_VENDING_FACTORY_ADDRESS="stars1s48apjumprma0d64ge88dmu7lr8exu02tlw90xxupgds0s25gfasx447dn"
|
||||
NEXT_PUBLIC_BASE_FACTORY_ADDRESS="stars1c6juqgd7cm80afpmuszun66rl9zdc4kgfht8fk34tfq3zk87l78sdxngzv"
|
||||
NEXT_PUBLIC_SG721_NAME_ADDRESS="stars1fx74nkqkw2748av8j7ew7r3xt9cgjqduwn8m0ur5lhe49uhlsasszc5fhr"
|
||||
NEXT_PUBLIC_BASE_MINTER_CODE_ID=613
|
||||
|
@ -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('2500000000', 'ustars')],
|
||||
funds: [coin('3000000000', 'ustars')],
|
||||
memo: '',
|
||||
admin,
|
||||
})
|
||||
|
@ -73,7 +73,7 @@ export const vendingFactory = (client: SigningCosmWasmClient, txSigner: string):
|
||||
sender: txSigner,
|
||||
contract: contractAddress,
|
||||
msg,
|
||||
funds: [coin('2500000000', 'ustars')],
|
||||
funds: [coin('3000000000', 'ustars')],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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('2500000000', 'ustars')],
|
||||
funds: [coin('3000000000', 'ustars')],
|
||||
})
|
||||
|
||||
return {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stargaze-studio",
|
||||
"version": "0.4.0",
|
||||
"version": "0.4.1",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* eslint-disable eslint-comments/disable-enable-pair */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
@ -319,6 +320,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 +441,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 +819,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.')
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ const VendingMinterInstantiatePage: NextPage = () => {
|
||||
contract
|
||||
.use(VENDING_FACTORY_ADDRESS)
|
||||
?.createVendingMinter(wallet.address, msg, [
|
||||
coin('2500000000', 'ustars'),
|
||||
coin('3000000000', 'ustars'),
|
||||
]) as Promise<CreateVendingMinterResponse>,
|
||||
{
|
||||
loading: 'Instantiating contract...',
|
||||
|
Loading…
Reference in New Issue
Block a user