@reality.eth/contracts 3.2.7 → 3.2.8

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "address": "0x8A5f1C6361E280348a59daC10160A88428FFBd51",
3
+ "block": 8526475,
4
+ "token_address": "0x88498CE124778cB92b0b4c1ab9244D38c3aA7df3",
5
+ "notes": null,
6
+ "arbitrators": {}
7
+ }
@@ -255,12 +255,12 @@ contract RealityETH_ERC20_v3_2 is BalanceHolder {
255
255
  /// @notice Constructor, sets up some initial templates
256
256
  /// @dev Creates some generalized templates for different question types used in the DApp.
257
257
  constructor() {
258
- createTemplate('{"title": "%s", "type": "bool", "description": "%s", "lang": "%s"}');
259
- createTemplate('{"title": "%s", "type": "uint", "decimals": 18, "description": "%s", "lang": "%s"}');
260
- createTemplate('{"title": "%s", "type": "single-select", "outcomes": [%s], "description": "%s", "lang": "%s"}');
261
- createTemplate('{"title": "%s", "type": "multiple-select", "outcomes": [%s], "description": "%s", "lang": "%s"}');
262
- createTemplate('{"title": "%s", "type": "datetime", "description": "%s", "lang": "%s"}');
263
- createTemplate('{"title": "%s", "type": "hash", "description": "%s", "lang": "%s"}');
258
+ createTemplate('{"title": "%s", "type": "bool", "description": "%s", "lang": "%s"}');
259
+ createTemplate('{"title": "%s", "type": "uint", "decimals": 18, "description": "%s", "lang": "%s"}');
260
+ createTemplate('{"title": "%s", "type": "single-select", "outcomes": [%s], "description": "%s", "lang": "%s"}');
261
+ createTemplate('{"title": "%s", "type": "multiple-select", "outcomes": [%s], "description": "%s", "lang": "%s"}');
262
+ createTemplate('{"title": "%s", "type": "datetime", "description": "%s", "lang": "%s"}');
263
+ createTemplate('{"title": "%s", "type": "hash", "description": "%s", "lang": "%s"}');
264
264
  }
265
265
 
266
266
  /// @notice Set the address of the ERC20 token that will be used for bonds.
@@ -646,6 +646,15 @@
646
646
  }
647
647
  },
648
648
  "11155111": {
649
+ "BOND": {
650
+ "RealityETH_ERC20-3.2": {
651
+ "address": "0x8A5f1C6361E280348a59daC10160A88428FFBd51",
652
+ "block": 8526475,
653
+ "token_address": "0x88498CE124778cB92b0b4c1ab9244D38c3aA7df3",
654
+ "notes": null,
655
+ "arbitrators": {}
656
+ }
657
+ },
649
658
  "ETH": {
650
659
  "RealityETH-3.0": {
651
660
  "address": "0xaf33DcB6E8c5c4D9dDF579f53031b514d19449CA",
@@ -107,6 +107,13 @@
107
107
  "88558801": true
108
108
  }
109
109
  },
110
+ "BOND": {
111
+ "decimals": 18,
112
+ "small_number": 1000000000000000000,
113
+ "erc20_chains": {
114
+ "11155111": "0x88498CE124778cB92b0b4c1ab9244D38c3aA7df3"
115
+ }
116
+ },
110
117
  "DAOOS": {
111
118
  "decimals": 18,
112
119
  "small_number": 1000000000000000000,
package/index.js CHANGED
@@ -29,7 +29,8 @@ function realityETHInstance(config) {
29
29
  'RealityETH-3.0': require('./abi/solc-0.8.6/RealityETH-3.0.abi.json'),
30
30
  'RealityETH-3.2': require('./abi/solc-0.8.6/RealityETH-3.2.abi.json'),
31
31
  'RealityETH_ERC20-2.0': require('./abi/solc-0.8.6/RealityETH_ERC20-2.0.abi.json'),
32
- 'RealityETH_ERC20-3.0': require('./abi/solc-0.8.6/RealityETH_ERC20-3.0.abi.json')
32
+ 'RealityETH_ERC20-3.0': require('./abi/solc-0.8.6/RealityETH_ERC20-3.0.abi.json'),
33
+ 'RealityETH_ERC20-3.2': require('./abi/solc-0.8.6/RealityETH_ERC20-3.2.abi.json')
33
34
  }
34
35
  return {
35
36
  "abi": abis[config.contract_version],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/contracts",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
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": "fd724cfd4a2f28913cb940460ee4e375747ec8f1",
37
+ "gitHead": "88c70c0d165227d886d7fa0a2898e7c191b2db4e",
38
38
  "dependencies": {
39
39
  "ethers": "^5.8.0"
40
40
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "decimals": 18,
3
+ "small_number": 1000000000000000000,
4
+ "erc20_chains": {
5
+ "11155111": "0x88498CE124778cB92b0b4c1ab9244D38c3aA7df3"
6
+ }
7
+ }