Remove withdraw{} from collection actions
This commit is contained in:
parent
a3e54a29a3
commit
dc2e0c421e
@ -22,7 +22,6 @@ export const ACTION_TYPES = [
|
||||
'update_per_address_limit',
|
||||
'update_collection_info',
|
||||
'freeze_collection_info',
|
||||
'withdraw',
|
||||
'transfer',
|
||||
'batch_transfer',
|
||||
'burn',
|
||||
@ -60,11 +59,6 @@ export const BASE_ACTION_LIST: ActionListItem[] = [
|
||||
name: 'Freeze Collection Info',
|
||||
description: `Freeze collection info to prevent further updates`,
|
||||
},
|
||||
{
|
||||
id: 'withdraw',
|
||||
name: 'Withdraw Tokens',
|
||||
description: `Withdraw tokens from the contract`,
|
||||
},
|
||||
{
|
||||
id: 'transfer',
|
||||
name: 'Transfer Tokens',
|
||||
@ -153,11 +147,6 @@ export const VENDING_ACTION_LIST: ActionListItem[] = [
|
||||
name: 'Freeze Collection Info',
|
||||
description: `Freeze collection info to prevent further updates`,
|
||||
},
|
||||
{
|
||||
id: 'withdraw',
|
||||
name: 'Withdraw Tokens',
|
||||
description: `Withdraw tokens from the contract`,
|
||||
},
|
||||
{
|
||||
id: 'transfer',
|
||||
name: 'Transfer Tokens',
|
||||
@ -224,7 +213,6 @@ export type DispatchExecuteArgs = {
|
||||
| { type: Select<'update_start_trading_time'>; startTime?: string }
|
||||
| { type: Select<'update_per_address_limit'>; limit: number }
|
||||
| { type: Select<'shuffle'> }
|
||||
| { type: Select<'withdraw'> }
|
||||
| { type: Select<'transfer'>; recipient: string; tokenId: number }
|
||||
| { type: Select<'batch_transfer'>; recipient: string; tokenIds: string }
|
||||
| { type: Select<'burn'>; tokenId: number }
|
||||
@ -284,9 +272,6 @@ export const dispatchExecute = async (args: DispatchExecuteArgs) => {
|
||||
case 'shuffle': {
|
||||
return vendingMinterMessages.shuffle(txSigner)
|
||||
}
|
||||
case 'withdraw': {
|
||||
return vendingMinterMessages.withdraw(txSigner)
|
||||
}
|
||||
case 'transfer': {
|
||||
return sg721Messages.transferNft(args.recipient, args.tokenId.toString())
|
||||
}
|
||||
@ -365,9 +350,6 @@ export const previewExecutePayload = (args: DispatchExecuteArgs) => {
|
||||
case 'shuffle': {
|
||||
return vendingMinterMessages(minterContract)?.shuffle()
|
||||
}
|
||||
case 'withdraw': {
|
||||
return vendingMinterMessages(minterContract)?.withdraw()
|
||||
}
|
||||
case 'transfer': {
|
||||
return sg721Messages(sg721Contract)?.transferNft(args.recipient, args.tokenId.toString())
|
||||
}
|
||||
|
@ -14,7 +14,6 @@ export const EXECUTE_TYPES = [
|
||||
'mint_to',
|
||||
'mint_for',
|
||||
'shuffle',
|
||||
'withdraw',
|
||||
'burn_remaining',
|
||||
] as const
|
||||
|
||||
@ -106,7 +105,6 @@ export type DispatchExecuteArgs = {
|
||||
| { type: Select<'mint_to'>; recipient: string }
|
||||
| { type: Select<'mint_for'>; recipient: string; tokenId: number }
|
||||
| { type: Select<'shuffle'> }
|
||||
| { type: Select<'withdraw'> }
|
||||
| { type: Select<'burn_remaining'> }
|
||||
)
|
||||
|
||||
@ -146,9 +144,6 @@ export const dispatchExecute = async (args: DispatchExecuteArgs) => {
|
||||
case 'shuffle': {
|
||||
return messages.shuffle(txSigner)
|
||||
}
|
||||
case 'withdraw': {
|
||||
return messages.withdraw(txSigner)
|
||||
}
|
||||
case 'burn_remaining': {
|
||||
return messages.burnRemaining(txSigner)
|
||||
}
|
||||
@ -193,9 +188,6 @@ export const previewExecutePayload = (args: DispatchExecuteArgs) => {
|
||||
case 'shuffle': {
|
||||
return messages(contract)?.shuffle()
|
||||
}
|
||||
case 'withdraw': {
|
||||
return messages(contract)?.withdraw()
|
||||
}
|
||||
case 'burn_remaining': {
|
||||
return messages(contract)?.burnRemaining()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user