Smart contract for creating secure claim links for fungible tokens on the WAX blockchain.
This contract is inspired by the atomictoolsx contract.
- 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
This repo uses Bun for running tasks and testing, (can be replaced with Yarn)
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
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
Hire me ;)