Skip to content

ParasHQ/paras-claim-rewards-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Mohamad Irfianto
Apr 29, 2021
c0d1182 · Apr 29, 2021

History

29 Commits
Apr 10, 2021
Apr 10, 2021
Apr 29, 2021
Apr 29, 2021
Apr 24, 2021
Apr 24, 2021
Apr 10, 2021
Apr 10, 2021
Apr 10, 2021
Apr 10, 2021
Apr 10, 2021
Apr 24, 2021
Apr 10, 2021
Apr 10, 2021
Apr 10, 2021
Apr 10, 2021
Apr 17, 2021
Apr 24, 2021
Apr 10, 2021
Apr 10, 2021
Apr 10, 2021
Apr 29, 2021

Repository files navigation

PARAS Claim Rewards Contract

Building this contract

yarn build

Using this contract

Quickest deploy

yarn dev

Testing

To test run:

yarn test

Contract functions

View methods

Get rewards

get_rewards({"from_index":"0","limit":10,"account_id":"irfi.testnet"})

Get reward_amount

get_reward_amount({"account_id":"irfi.testnet"})

Call methods

New

near call --accountId owner.testnet --networkId network_id contract_account new '{"owner":"owner.testnet","token":"ft.paras.testnet"}'

Claim reward

claim_reward '{"amount":"1"}' --amount 0.000000000000000000000001

Push reward - Only Owner

near call --accountId owner.testnet --networkId network_id contract_account push_reward '{"account_id":"alice.testnet","amount":"10","memo":"second reward"}' --amount 0.000000000000000000000001

About

No description, website, or topics provided.

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages