Skip to content

Commit

Permalink
Add readme and finish the renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ilblackdragon committed Nov 18, 2021
1 parent 26aa448 commit e7e4b14
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
target/
neardev/


16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions README.md
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 added res/sweat_coin.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion sweat-coin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e

RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release
cd ..
cp target/wasm32-unknown-unknown/release/test_token.wasm res/
cp target/wasm32-unknown-unknown/release/sweat_coin.wasm res/

0 comments on commit e7e4b14

Please sign in to comment.