Skip to content

dotGems/gems.redeem

Repository files navigation

.gems Redeem smart contract

GitHub license Antelope CDT Blanc++ Vert

Quickstart

# Set redeem
$ cleos push action redeem.gems setredeem '[123, "1.0000 EOS", false]' -p redeem.gems

Build

# using Antelope CDT
$ cdt-cpp eosio.time.cpp
# using Blanc++
$ blanc++ eosio.time.cpp

TABLE redeems

params

  • {uint32_t} template_id - (primary key) AtomicAsset NFT template ID
  • {extended_asset} quantity - redeemable quantity
  • {bool} redirect_to_pomelo_grant - redirect redeemable amount to an active Pomelo Grant

example

{
    "template_id": 123,
    "quantity": {"contract": "eosio.token", "quantity": "1.0000 EOS"},
    "redirect_to_pomelo_grant": true
}