Filter actions by Mint Rule

This commit is contained in:
Serkan Reis 2023-02-20 11:55:41 +03:00
parent 189b636ff9
commit 655e5f69d2

View File

@ -22,59 +22,24 @@ export interface ActionListItem {
}
export const BY_KEY_ACTION_LIST: ActionListItem[] = [
{
id: 'create_badge',
name: 'Create Badge',
description: `Create a new badge with the specified mint rule and metadata`,
},
{
id: 'edit_badge',
name: 'Edit Badge',
description: `Edit the badge with the specified ID`,
},
{
id: 'add_keys',
name: 'Add Keys',
description: `Add keys to the badge with the specified ID`,
},
{
id: 'purge_keys',
name: 'Purge Keys',
description: `Purge keys from the badge with the specified ID`,
},
{
id: 'purge_owners',
name: 'Purge Owners',
description: `Purge owners from the badge with the specified ID`,
},
{
id: 'mint_by_minter',
name: 'Mint by Minter',
description: `Mint a new token by the minter with the specified ID`,
},
{
id: 'mint_by_key',
name: 'Mint by Key',
description: `Mint a new token by the key with the specified ID`,
},
{
id: 'mint_by_keys',
name: 'Mint by Keys',
description: `Mint a new token by the keys with the specified ID`,
},
{
id: 'set_nft',
name: 'Set NFT',
description: `Set the Badge NFT contract address for the Badge Hub contract`,
},
]
export const BY_KEYS_ACTION_LIST: ActionListItem[] = [
{
id: 'create_badge',
name: 'Create Badge',
description: `Create a new badge with the specified mint rule and metadata`,
},
{
id: 'edit_badge',
name: 'Edit Badge',
@ -95,49 +60,19 @@ export const BY_KEYS_ACTION_LIST: ActionListItem[] = [
name: 'Purge Owners',
description: `Purge owners from the badge with the specified ID`,
},
{
id: 'mint_by_minter',
name: 'Mint by Minter',
description: `Mint a new token by the minter with the specified ID`,
},
{
id: 'mint_by_key',
name: 'Mint by Key',
description: `Mint a new token by the key with the specified ID`,
},
{
id: 'mint_by_keys',
name: 'Mint by Keys',
description: `Mint a new token by the keys with the specified ID`,
},
{
id: 'set_nft',
name: 'Set NFT',
description: `Set the Badge NFT contract address for the Badge Hub contract`,
description: `Mint a new badge with a whitelisted public key and corresponding signature`,
},
]
export const BY_MINTER_ACTION_LIST: ActionListItem[] = [
{
id: 'create_badge',
name: 'Create Badge',
description: `Create a new badge with the specified mint rule and metadata`,
},
{
id: 'edit_badge',
name: 'Edit Badge',
description: `Edit the badge with the specified ID`,
},
{
id: 'add_keys',
name: 'Add Keys',
description: `Add keys to the badge with the specified ID`,
},
{
id: 'purge_keys',
name: 'Purge Keys',
description: `Purge keys from the badge with the specified ID`,
},
{
id: 'purge_owners',
name: 'Purge Owners',
@ -146,22 +81,7 @@ export const BY_MINTER_ACTION_LIST: ActionListItem[] = [
{
id: 'mint_by_minter',
name: 'Mint by Minter',
description: `Mint a new token by the minter with the specified ID`,
},
{
id: 'mint_by_key',
name: 'Mint by Key',
description: `Mint a new token by the key with the specified ID`,
},
{
id: 'mint_by_keys',
name: 'Mint by Keys',
description: `Mint a new token by the keys with the specified ID`,
},
{
id: 'set_nft',
name: 'Set NFT',
description: `Set the Badge NFT contract address for the Badge Hub contract`,
description: `Mint a new badge to the specified addresses`,
},
]