Skip to content

Commit

Permalink
add pebble project file and operator doc
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran committed Jan 21, 2025
1 parent 6628bdd commit 787aedd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/pebble.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Prerequisites

https://github.com/foundry-rs/foundry
need the tools for interacting with smart contracts

### Mainnet

#### Endpoint
https://dragonfruit-mainnet.w3bstream.com/v1/task

#### bind w3bstream project
```bash
cast send 0x425D3FD5e8e0d0d7c73599adeb9B395505581ec7 "register(uint256)" 6 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```
```bash
cast send 0x6EF4559f2023C93F78d27E0151deF083638478d2 "updateConfig(uint256,string,bytes32)" 6 ipfs://ipfs.mainnet.iotex.io/QmQfaXAr7ZHbn1inDKigx9GcaHkZqxJiiHsA81GfCTRYZ6 0x9273b57144d4df4c6fb2a5850a1a95891c1b12f92d06909d875c3a4afe18bae4 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```
```bash
cast send 0x6EF4559f2023C93F78d27E0151deF083638478d2 "resume(uint256)" 6 --private-key "your private key" --rpc-url "https://babel-api.mainnet.iotex.io" --legacy
```
20 changes: 20 additions & 0 deletions template/project_file/gnark_liveness
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"defaultVersion": "v1",
"config": [
{
"version": "v1",
"vmTypeID": 1,
"proofType": "liveness",
"signedKeys": [
{
"name": "timestamp",
"type": "uint64"
}
],
"signatureAlgorithm": "ecdsa",
"hashAlgorithm": "sha256",
"metadata": "ipfs://ipfs.mainnet.iotex.io/QmVzFDBXsixjSEdqziCDJe3UnGqUGqmCXXb3FZrySjr8Gh",
"code": "ipfs://ipfs.mainnet.iotex.io/QmfY8NooLr89X8HYnVC8ueZAVjMiBwWi4WmxvBivV1drRo"
}
]
}

0 comments on commit 787aedd

Please sign in to comment.