Skip to content

Smart contract for creating secure claim links for fungible tokens

License

Notifications You must be signed in to change notification settings

benjiewheeler/gift.star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gift.star

Smart contract for creating secure claim links for fungible tokens on the WAX blockchain.

This contract is inspired by the atomictoolsx contract.

Features

  • create secure token claim links for any token that follows the eosio.token standard
  • links cancelable only by the original creator, but claimable by anyone with corresponding private key

Building

This repo uses Bun for running tasks and testing, (can be replaced with Yarn)

Testing

The contract is fully tested using proton's VeRT

  • blanc is required for building the contract for testing.
bun install # or yarn or pnpm
bun run build:dev # to compile the contract using blanc++
bun test

Deployment

  • Antelope cdt and leap are required for building & deploying the contract.
bun run build:prod # to compile the contract using cdt-cpp

# deploy the contract
cleos -u <your_api_endpoint> set contract <account> $PWD contract/gift_star.wasm contract/gift_star.abi -p <account>@active

# dont forget to add eosio.code permission
cleos -u <your_api_endpoint> set account permission <account> active --add-code

Want more features ?

Hire me ;)

Discord Badge Telegram Badge Protonmail Badge Github Badge