Fix type definitions and add deus labs name
This commit is contained in:
parent
aae2b14a01
commit
3b5f287715
@ -61,7 +61,13 @@ export const Sidebar = () => {
|
||||
</ul>
|
||||
|
||||
{/* footer attribution */}
|
||||
<div className="text-xs text-white/50">Stargaze Studio {process.env.APP_VERSION}</div>
|
||||
<div className="text-xs text-white/50">
|
||||
Stargaze Studio {process.env.APP_VERSION} <br />
|
||||
Made by{' '}
|
||||
<Anchor className="text-plumbus hover:underline" href="https://deuslabs.fi">
|
||||
deus labs
|
||||
</Anchor>
|
||||
</div>
|
||||
|
||||
{/* footer social links */}
|
||||
<div className="flex gap-x-6 items-center text-white/75">
|
||||
|
@ -124,28 +124,28 @@ export const previewExecutePayload = (args: DispatchExecuteArgs) => {
|
||||
const { contract } = args
|
||||
switch (args.type) {
|
||||
case 'mint': {
|
||||
return messages()?.mint(contract, args.price === '' ? '0' : args.price)
|
||||
return messages(contract)?.mint(args.price === '' ? '0' : args.price)
|
||||
}
|
||||
case 'set_whitelist': {
|
||||
return messages()?.setWhitelist(contract, args.whitelist)
|
||||
return messages(contract)?.setWhitelist(args.whitelist)
|
||||
}
|
||||
case 'update_start_time': {
|
||||
return messages()?.updateStartTime(contract, args.startTime)
|
||||
return messages(contract)?.updateStartTime(args.startTime)
|
||||
}
|
||||
case 'update_per_address_limit': {
|
||||
return messages()?.updatePerAddressLimit(contract, args.limit)
|
||||
return messages(contract)?.updatePerAddressLimit(args.limit)
|
||||
}
|
||||
case 'mint_to': {
|
||||
return messages()?.mintTo(contract, args.recipient)
|
||||
return messages(contract)?.mintTo(args.recipient)
|
||||
}
|
||||
case 'mint_for': {
|
||||
return messages()?.mintFor(contract, args.recipient, args.tokenId)
|
||||
return messages(contract)?.mintFor(args.recipient, args.tokenId)
|
||||
}
|
||||
case 'shuffle': {
|
||||
return messages()?.shuffle(contract)
|
||||
return messages(contract)?.shuffle()
|
||||
}
|
||||
case 'withdraw': {
|
||||
return messages()?.withdraw(contract)
|
||||
return messages(contract)?.withdraw()
|
||||
}
|
||||
default: {
|
||||
return {}
|
||||
|
@ -606,10 +606,10 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
|
||||
}
|
||||
}
|
||||
|
||||
const burn = (contractAddr: string, tokenId: string) => {
|
||||
const burn = (tokenId: string) => {
|
||||
return {
|
||||
sender: txSigner,
|
||||
contract: contractAddr,
|
||||
contract: contractAddress,
|
||||
msg: {
|
||||
burn: {
|
||||
token_id: tokenId,
|
||||
@ -619,7 +619,7 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
|
||||
}
|
||||
}
|
||||
|
||||
const batchBurn = (contractAddr: string, tokenIds: string): BatchBurnMessage => {
|
||||
const batchBurn = (tokenIds: string): BatchBurnMessage => {
|
||||
const msg: Record<string, unknown>[] = []
|
||||
if (tokenIds.includes(':')) {
|
||||
const [start, end] = tokenIds.split(':').map(Number)
|
||||
@ -637,7 +637,7 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
|
||||
|
||||
return {
|
||||
sender: txSigner,
|
||||
contract: contractAddr,
|
||||
contract: contractAddress,
|
||||
msg,
|
||||
funds: [],
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ export const previewExecutePayload = (args: DispatchExecuteArgs) => {
|
||||
return messages(contract)?.mint(args.recipient, args.tokenId, args.tokenURI)
|
||||
}
|
||||
case 'burn': {
|
||||
return messages(contract)?.burn(args.contract, args.tokenId)
|
||||
return messages(contract)?.burn(args.tokenId)
|
||||
}
|
||||
default: {
|
||||
return {}
|
||||
|
Loading…
Reference in New Issue
Block a user