An incentivized protocol both for creators and supporters.
- Prerequisites: Make sure you've installed [Node.js] ≥ 12
- Install dependencies:
yarn install
- You can deploy to near testnet using dev account:
yarn deploy:dev
The smart contract was deployed at dev-v1.piece.testnet and written in AssemblyScript.
You can call the smart contract via near-cli
:
Example:
near call dev-v1.piece.testnet piece "{\"receiverId\": \"receiver_account_id\"}" --amount "5" --gas "100000000000000" --accountId your_account_id
When you call piece
, make sure to attach minimum 100 Tgas. For other function, you can just attach the default 30 Tgas.
create-account.js
helps you generate a sub-account for your contract deployment. You can just change a few lines of code so that it matches your main test account.