From 787aedd88de1eab2330b441c09d33264ebe840a9 Mon Sep 17 00:00:00 2001 From: huangzhiran Date: Tue, 21 Jan 2025 15:08:21 +0800 Subject: [PATCH] add pebble project file and operator doc --- docs/pebble.md | 20 ++++++++++++++++++++ template/project_file/gnark_liveness | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 docs/pebble.md create mode 100644 template/project_file/gnark_liveness diff --git a/docs/pebble.md b/docs/pebble.md new file mode 100644 index 00000000..47317da9 --- /dev/null +++ b/docs/pebble.md @@ -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 +``` diff --git a/template/project_file/gnark_liveness b/template/project_file/gnark_liveness new file mode 100644 index 00000000..41cc1723 --- /dev/null +++ b/template/project_file/gnark_liveness @@ -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" + } + ] +} \ No newline at end of file