Merge pull request #134 from public-awesome/develop

Sync development > main
This commit is contained in:
Serkan Reis 2023-03-31 13:40:45 +03:00 committed by GitHub
commit 62299e02f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 10 deletions

View File

@ -1,4 +1,4 @@
APP_VERSION=0.5.2
APP_VERSION=0.5.3
NEXT_PUBLIC_PINATA_ENDPOINT_URL=https://api.pinata.cloud/pinning/pinFileToIPFS
NEXT_PUBLIC_SG721_CODE_ID=1911
@ -15,8 +15,8 @@ NEXT_PUBLIC_BADGE_HUB_CODE_ID=1336
NEXT_PUBLIC_BADGE_HUB_ADDRESS="stars1dacun0xn7z73qzdcmq27q3xn6xuprg8e2ugj364784al2v27tklqynhuqa"
NEXT_PUBLIC_BADGE_NFT_CODE_ID=1337
NEXT_PUBLIC_BADGE_NFT_ADDRESS="stars1vlw4y54dyzt3zg7phj8yey9fg4zj49czknssngwmgrnwymyktztstalg7t"
NEXT_PUBLIC_SPLITS_CODE_ID=1904
NEXT_PUBLIC_CW4_GROUP_CODE_ID=1905
NEXT_PUBLIC_SPLITS_CODE_ID=1905
NEXT_PUBLIC_CW4_GROUP_CODE_ID=1904
NEXT_PUBLIC_API_URL=https://nft-api.elgafar-1.stargaze-apis.com

View File

@ -91,7 +91,7 @@ export const baseFactory = (client: SigningCosmWasmClient, txSigner: string): Ba
sender: txSigner,
contract: contractAddress,
msg,
funds: [coin(updatable ? '3000000000' : '1000000000', 'ustars')],
funds: [coin(updatable ? '3000000000' : '250000000', 'ustars')],
}
}

View File

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

View File

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

View File

@ -134,10 +134,14 @@ const CollectionCreationPage: NextPage = () => {
checkCollectionDetails()
checkWhitelistDetails()
.then(() => {
checkwalletBalance()
setReadyToCreateBm(true)
})
.catch((err) => {
toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } })
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
if (!err.message.includes('Insufficient wallet balance'))
toast.error(`Error in Whitelist Configuration: ${err.message}`, { style: { maxWidth: 'none' } })
else toast.error(`${err.message}`, { style: { maxWidth: 'none' } })
setReadyToCreateBm(false)
})
} catch (error: any) {
@ -499,7 +503,7 @@ const CollectionCreationPage: NextPage = () => {
messages: baseFactoryMessages,
txSigner: wallet.address,
msg,
funds: [coin(collectionDetails?.updatable ? '3000000000' : '1000000000', 'ustars')],
funds: [coin(collectionDetails?.updatable ? '3000000000' : '250000000', 'ustars')],
updatable: collectionDetails?.updatable,
}
await baseFactoryDispatchExecute(payload)
@ -880,7 +884,7 @@ const CollectionCreationPage: NextPage = () => {
: 3000000000
: collectionDetails?.updatable
? 3000000000
: 1000000000
: 250000000
if (amountNeeded >= Number(wallet.balance[0].amount))
throw new Error(
`Insufficient wallet balance to instantiate the required contracts. Needed amount: ${(

View File

@ -145,7 +145,7 @@ const BaseMinterInstantiatePage: NextPage = () => {
return toast.promise(
contract
.use(BASE_FACTORY_ADDRESS)
?.createBaseMinter(wallet.address, msg, [coin('1000000000', 'ustars')]) as Promise<CreateBaseMinterResponse>,
?.createBaseMinter(wallet.address, msg, [coin('250000000', 'ustars')]) as Promise<CreateBaseMinterResponse>,
{
loading: 'Instantiating contract...',
error: 'Instantiation failed!',