@reality.eth/contracts 3.2.15 → 3.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @reality.eth/contracts
2
- Contracts for Reality.eth, including source code, ABI and addresses of contracts on mainnet and test networks.
2
+ Contracts for Reality.eth, including source code, ABI, addresses of contracts on mainnet and test networks and Subgraph endpoints.
3
3
 
4
4
  ## Using the contracts
5
5
 
6
6
  ### Quick example:
7
7
 
8
8
  const realityeth_contracts = require('@reality.eth/contracts')
9
- const chain_id = 4; // eg rinkeby
9
+ const chain_id = 11155111; // eg sepolia testnet
10
10
  const provider = ...;
11
11
 
12
12
  const config = realityeth_contracts.realityETHConfig(chain_id, 'ETH', '3.0')
@@ -60,7 +60,7 @@ These tests test the bytecode not the source code, so you need to recompile befo
60
60
 
61
61
  ## Deployment
62
62
 
63
- You will need the private key of an account with funds to deploy on the relevant network. It should be in hex, beginning "0x", in a file called `mainnet.sec` or `rinkeby.sec` or the equivalent for the network you will deploy to. A different key should be used for each network to avoid clashing contract addresses.
63
+ You will need the private key of an account with funds to deploy on the relevant network. It should be in hex, beginning "0x", in a file called `mainnet.sec` or `sepolia.sec` or the equivalent for the network you will deploy to. A different key should be used for each network to avoid clashing contract addresses.
64
64
 
65
65
  `$ mkdir packages/contracts/secrets`
66
66
 
@@ -78,7 +78,7 @@ To deploy contracts using the code compiled under contracts/bytecode, use
78
78
 
79
79
  This will add contract addresses to the existing deployed contract .json definitions, and deploy per-token versions in the format expected by the `@reality.eth/dapp` ui.
80
80
 
81
- If you prefer to keep your secret keys somewhere else you can pass it as an environment variable, eg
81
+ If you prefer to keep your secret keys somewhere else, you can pass it as an environment variable, eg
82
82
  `$ SECRETS=/home/ed/secrets node deploy.js <RealityETH|Arbitrator|ERC20> <network> <token_name> [<dispute_fee>] [<arbitrator_owner>]`
83
83
 
84
84
  Supported networks are hard-coded in the `deploy.js` file. You may also wish to edit it to alter gas limits, etc.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "1": {
3
- "hostedRPC": "https://eth-mainnet.alchemyapi.io/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
3
+ "hostedRPC": "https://eth-mainnet.g.alchemy.com/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
4
4
  "explorerURL": "https://etherscan.io",
5
5
  "graphURL": "https://gateway.thegraph.com/api/73380b22a17017c081123ec9c0e34677/deployments/id/QmaugeofXNk2tCN3U3LaEi8vRq99zZ6pbKYJDWbbVF1Z9E",
6
6
  "atprotoBot": "did:plc:u4d5v5zsl5jb2y33vtfhyjo5",
@@ -14,13 +14,11 @@
14
14
  "deprecated": true
15
15
  },
16
16
  "4": {
17
- "hostedRPC": "https://eth-rinkeby.alchemyapi.io/v2/m2Op-gK2G1RiwtWHr6QB_JH9-ry0A6do",
18
17
  "explorerURL": "https://rinkeby.etherscan.io",
19
18
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-rinkeby",
20
19
  "network_name": "rinkeby"
21
20
  },
22
21
  "5": {
23
- "hostedRPC": "https://eth-goerli.g.alchemy.com/v2/i2jZKhmFBPZYl8YdSHxsZ6viP3PQLwId",
24
22
  "explorerURL": "https://goerli.etherscan.io",
25
23
  "graphURL": "https://gateway.testnet.thegraph.com/api/73380b22a17017c081123ec9c0e34677/subgraphs/id/AWx6jkeKZ3xKRzkrzgfCAMPT7d6Jc3AMcqB8koN3QEqE",
26
24
  "network_name": "goerli"
@@ -26,7 +26,7 @@
26
26
  "wss://eth.drpc.org",
27
27
  "https://api.securerpc.com/v1"
28
28
  ],
29
- "hostedRPC": "https://eth-mainnet.alchemyapi.io/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
29
+ "hostedRPC": "https://eth-mainnet.g.alchemy.com/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
30
30
  "atprotoBot": "did:plc:u4d5v5zsl5jb2y33vtfhyjo5",
31
31
  "graphURL": "https://gateway.thegraph.com/api/73380b22a17017c081123ec9c0e34677/deployments/id/QmaugeofXNk2tCN3U3LaEi8vRq99zZ6pbKYJDWbbVF1Z9E",
32
32
  "blockExplorerUrls": [
@@ -63,7 +63,6 @@
63
63
  },
64
64
  "network_name": "rinkeby",
65
65
  "rpcUrls": [],
66
- "hostedRPC": "https://eth-rinkeby.alchemyapi.io/v2/m2Op-gK2G1RiwtWHr6QB_JH9-ry0A6do",
67
66
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-rinkeby",
68
67
  "blockExplorerUrls": [
69
68
  "https://rinkeby.etherscan.io"
@@ -85,7 +84,7 @@
85
84
  "https://goerli.gateway.tenderly.co",
86
85
  "wss://goerli.gateway.tenderly.co"
87
86
  ],
88
- "hostedRPC": "https://eth-goerli.g.alchemy.com/v2/i2jZKhmFBPZYl8YdSHxsZ6viP3PQLwId",
87
+ "hostedRPC": "https://rpc.goerli.mudit.blog/",
89
88
  "graphURL": "https://gateway.testnet.thegraph.com/api/73380b22a17017c081123ec9c0e34677/subgraphs/id/AWx6jkeKZ3xKRzkrzgfCAMPT7d6Jc3AMcqB8koN3QEqE",
90
89
  "blockExplorerUrls": [
91
90
  "https://goerli.etherscan.io",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/contracts",
3
- "version": "3.2.15",
3
+ "version": "3.2.21",
4
4
  "description": "Collection of smart contracts for the Realitio fact verification platform",
5
5
  "scripts": {
6
6
  "generate-chains": "node scripts/generate_chains_json.js",
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/RealityETH/monorepo/issues"
35
35
  },
36
36
  "homepage": "https://reality.eth.link",
37
- "gitHead": "08c8713d17d5cf44f224e2d2cfcaa20eb02260fd",
37
+ "gitHead": "1619c93193fc03dc4bfb0c7d79049cb87f77a6da",
38
38
  "dependencies": {
39
39
  "ethers": "^5.8.0"
40
40
  }