forked from sweatco/sweat-near
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26aa448
commit e7e4b14
Showing
5 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.idea | ||
target/ | ||
neardev/ | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Sweat Coin | ||
|
||
## Testing | ||
|
||
Install near-cli: `npm install -g near-cli` | ||
|
||
Deploy to TestNet: | ||
> near dev-deploy --wasmFile=res/sweat_coin.wasm | ||
This will output the account name where it was deployed like `dev-1637234761005-51631980292450`. | ||
|
||
Setup the contract: | ||
> near call <contract name> new '{"oracle_id": "<your oracle>.near", "limit_per_day": "10000000000000000000000000"}' --accountId <contract name> | ||
Record the batch of steps: | ||
> near call <contract name> batch_record '{"steps": [["testmewell.testnet", 1000000]]}' --accountId <your oracle account> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters