-
Notifications
You must be signed in to change notification settings - Fork 18
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
b46dbdc
commit a458a32
Showing
2 changed files
with
23 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### Prerequisites | ||
|
||
https://github.com/foundry-rs/foundry | ||
need the tools for interacting with smart contracts | ||
|
||
### Testnet | ||
|
||
#### bind dapp | ||
```bash | ||
cast send 0x74309Bc83fF7Ba8aBaB901936927976792a6d9B6 "bindDapp(uint256,address)" 942 0xB2Dda5D9E65E44749409E209d8b7b15fb4e82147 --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy | ||
``` | ||
|
||
#### bind w3bstream project | ||
```bash | ||
cast send 0x74309Bc83fF7Ba8aBaB901936927976792a6d9B6 "register(uint256)" 942 --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy | ||
``` | ||
```bash | ||
cast send 0x0abec44FC786e8da12267Db5fdeB4311AD1A0A8A "updateConfig(uint256,string,bytes32)" 942 ipfs://ipfs.mainnet.iotex.io/QmUHfDnvWrr2wiC78dw85xfctzawNWAN1TEbzosxwHdzYC 0x8153291c230dd107f102f75e826a11d9d4a8ac3f0f4e1c3619e547f82a94410e --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy | ||
``` | ||
```bash | ||
cast send 0x0abec44FC786e8da12267Db5fdeB4311AD1A0A8A "resume(uint256)" 942 --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy | ||
``` |
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 @@ | ||
{"defaultVersion":"v1","config":[{"version":"v1","vmTypeID":1,"proofType":"movement","signedKeys":[{"name":"timestamp","type":"uint64"},{"name":"latitude","type":"uint64"},{"name":"longitude","type":"uint64"}],"signatureAlgorithm":"ecdsa","hashAlgorithm":"sha256","metadata":"ipfs://ipfs.mainnet.iotex.io/Qmeqey31unmkdsVU2YjqXgVw6uhgVTPzpm9M41yVFjzqRE","code":"ipfs://ipfs.mainnet.iotex.io/QmTwp1B62bEUwZzZhA78x5hj82EHu3KCvGo2hM2wwoJBLd"}]} |