Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updated to use ethers-rs #8

Merged
merged 4 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,753 changes: 2,148 additions & 605 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ members = [
"common",
"availability-oracle",
]

[patch.'https://github.com/graphprotocol/eip-712-derive']
#eip-712-derive = { path = "../eip-712-derive" }

[patch.'https://github.com/graphprotocol/solidity-bindgen']
#solidity-bindgen = { path = "../solidity-bindgen/solidity-bindgen" }
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ The Subgraph Oracle verifies the availability of the subgraph files and does oth

```
USAGE:
availability-oracle [FLAGS] [OPTIONS] --contracts <contracts> --ipfs <ipfs> --signing-key <signing-key> --subgraph <subgraph>
availability-oracle [FLAGS] [OPTIONS] --rewards-manager-contract <rewards-manager-contract> \
--url <url> --ipfs <ipfs> --signing-key <signing-key> --subgraph <subgraph>

FLAGS:
--dry-run log the results but not send a transaction to the rewards manager
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
-c, --contracts <contracts>
One of: `mainnet`, `goerli`, `arbitrum-one`, `arbitrum-goerli`, `ganache/mainnet`, `sepolia` or `arbitrum-sepolia`. See
`common/src/contracts/config.rs` for the respective configurations [env: ORACLE_CONTRACTS=]
--rewards-manager-contract <rewards-manager-contract>
Address of the Graph Protocol RewardsManager contract [env: REWARDS_MANAGER_CONTRACT=]
--url <url>
RPC URL for EVM-compatible netwrok, must be a valid URL [env: RPC_URL=]
--grace-period <grace-period>
Grace period, in seconds from subgraph creation, for which subgraphs will not be checked [env:
ORACLE_GRACE_PERIOD=] [default: 0]
Expand Down
2 changes: 2 additions & 0 deletions availability-oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ multibase = "0.8.0"
moka = { version = "0.8", features = ["future"] }
graphql-parser = "0.4.0"
secp256k1 = "0.20.3"
ethers = "2.0.10"
url = "2.5.0"
Loading
Loading