dotGems / gems.blend

.gems blend
GNU General Public License v3.0
0 stars 1 forks source link

Set maximum mint limit #17

Open DenisCarriere opened 2 years ago

DenisCarriere commented 2 years ago

Blend example

https://blend.dotgems.io/eos/d.blend.gems/robotbeepbop/6459

Actions

https://bloks.io/account/d.blend.gems?loadContract=true&tab=Actions&table=limits&account=d.blend.gems&scope=robotbeepbop&limit=100&action=setlimit

[[eosio::action]]
void setlimit( const name collection_name, const int32_t template_id, const int64_t max_mint_assets );

[[eosio::action]]
void dellimit( const name collection_name, const int32_t template_id );

Example

Set robotbeepbop@6459 collection to maximum 10 (starting from now)

cleos push action d.blend.gems setlimit '[robotbeepbop, 6459, 10]' -p d.blend.gems

TABLE limits

https://bloks.io/account/d.blend.gems?loadContract=true&tab=Tables&table=limits&account=d.blend.gems&scope=robotbeepbop&limit=100

params

example

{
    "template_id": 21883,
    "mint_assets": 14,
    "max_mint_assets": 100
}
DenisCarriere commented 2 years ago
image
DenisCarriere commented 2 years ago

@mellowjayb update UI to include limit functionality