Fix type definitions and add deus labs name

This commit is contained in:
findolor 2022-08-16 10:28:18 +03:00
parent aae2b14a01
commit 3b5f287715
4 changed files with 20 additions and 14 deletions

View File

@ -61,7 +61,13 @@ export const Sidebar = () => {
</ul> </ul>
{/* footer attribution */} {/* 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 */} {/* footer social links */}
<div className="flex gap-x-6 items-center text-white/75"> <div className="flex gap-x-6 items-center text-white/75">

View File

@ -124,28 +124,28 @@ export const previewExecutePayload = (args: DispatchExecuteArgs) => {
const { contract } = args const { contract } = args
switch (args.type) { switch (args.type) {
case 'mint': { case 'mint': {
return messages()?.mint(contract, args.price === '' ? '0' : args.price) return messages(contract)?.mint(args.price === '' ? '0' : args.price)
} }
case 'set_whitelist': { case 'set_whitelist': {
return messages()?.setWhitelist(contract, args.whitelist) return messages(contract)?.setWhitelist(args.whitelist)
} }
case 'update_start_time': { case 'update_start_time': {
return messages()?.updateStartTime(contract, args.startTime) return messages(contract)?.updateStartTime(args.startTime)
} }
case 'update_per_address_limit': { case 'update_per_address_limit': {
return messages()?.updatePerAddressLimit(contract, args.limit) return messages(contract)?.updatePerAddressLimit(args.limit)
} }
case 'mint_to': { case 'mint_to': {
return messages()?.mintTo(contract, args.recipient) return messages(contract)?.mintTo(args.recipient)
} }
case 'mint_for': { case 'mint_for': {
return messages()?.mintFor(contract, args.recipient, args.tokenId) return messages(contract)?.mintFor(args.recipient, args.tokenId)
} }
case 'shuffle': { case 'shuffle': {
return messages()?.shuffle(contract) return messages(contract)?.shuffle()
} }
case 'withdraw': { case 'withdraw': {
return messages()?.withdraw(contract) return messages(contract)?.withdraw()
} }
default: { default: {
return {} return {}

View File

@ -606,10 +606,10 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
} }
} }
const burn = (contractAddr: string, tokenId: string) => { const burn = (tokenId: string) => {
return { return {
sender: txSigner, sender: txSigner,
contract: contractAddr, contract: contractAddress,
msg: { msg: {
burn: { burn: {
token_id: tokenId, 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>[] = [] const msg: Record<string, unknown>[] = []
if (tokenIds.includes(':')) { if (tokenIds.includes(':')) {
const [start, end] = tokenIds.split(':').map(Number) const [start, end] = tokenIds.split(':').map(Number)
@ -637,7 +637,7 @@ export const SG721 = (client: SigningCosmWasmClient, txSigner: string): SG721Con
return { return {
sender: txSigner, sender: txSigner,
contract: contractAddr, contract: contractAddress,
msg, msg,
funds: [], funds: [],
} }

View File

@ -149,7 +149,7 @@ export const previewExecutePayload = (args: DispatchExecuteArgs) => {
return messages(contract)?.mint(args.recipient, args.tokenId, args.tokenURI) return messages(contract)?.mint(args.recipient, args.tokenId, args.tokenURI)
} }
case 'burn': { case 'burn': {
return messages(contract)?.burn(args.contract, args.tokenId) return messages(contract)?.burn(args.tokenId)
} }
default: { default: {
return {} return {}