Skip to content

Commit a458a32

Browse files
authored
add geodnet readme (#805)
1 parent b46dbdc commit a458a32

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/geod.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Prerequisites
2+
3+
https://github.com/foundry-rs/foundry
4+
need the tools for interacting with smart contracts
5+
6+
### Testnet
7+
8+
#### bind dapp
9+
```bash
10+
cast send 0x74309Bc83fF7Ba8aBaB901936927976792a6d9B6 "bindDapp(uint256,address)" 942 0xB2Dda5D9E65E44749409E209d8b7b15fb4e82147 --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy
11+
```
12+
13+
#### bind w3bstream project
14+
```bash
15+
cast send 0x74309Bc83fF7Ba8aBaB901936927976792a6d9B6 "register(uint256)" 942 --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy
16+
```
17+
```bash
18+
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
19+
```
20+
```bash
21+
cast send 0x0abec44FC786e8da12267Db5fdeB4311AD1A0A8A "resume(uint256)" 942 --private-key "your private key" --rpc-url "https://babel-api.testnet.iotex.io" --legacy
22+
```

template/project_file/gnark_movement

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}]}

0 commit comments

Comments
 (0)