dkg.js 6.5.3 → 8.0.0-alpha.1

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/constants.js CHANGED
@@ -24,56 +24,38 @@ const BLOCKCHAINS = {
24
24
  rpc: 'http://localhost:9545',
25
25
  hubContract: '0x5FbDB2315678afecb367f032d93F642f64180aa3',
26
26
  },
27
- 'otp:2043': {
28
- rpc: 'http://parachain-alphanet-02.origin-trail.network:9933',
29
- hubContract: '0x7585a99C5C150a08f5CDeFD16465C6De8D41EbbD',
30
- },
31
27
  },
32
- devnet: {
33
- 'otp:2160': {
34
- rpc: 'https://lofar-tm-rpc.origin-trail.network',
35
- hubContract: '0x833048F6e6BEa78E0AAdedeCd2Dc2231dda443FB',
36
- },
37
- 'gnosis:10200': {
38
- rpc: 'https://rpc.chiadochain.net',
39
- hubContract: '0xD2bA102A0b11944d00180eE8136208ccF87bC39A',
40
- gasPriceOracleLink: 'https://blockscout.chiadochain.net/api/v1/gas-price-oracle',
41
- },
28
+ devnet: {},
29
+ stabledevnet_staging: {
42
30
  'base:84532': {
43
- hubContract: '0x6C861Cb69300C34DfeF674F7C00E734e840C29C0',
31
+ hubContract: '0xAB4A4794Fc1F415C24807B947280aCa8dC492238',
44
32
  rpc: 'https://sepolia.base.org',
45
33
  },
46
34
  },
47
- testnet: {
48
- 'otp:20430': {
49
- rpc: 'https://lofar-testnet.origin-trail.network',
50
- hubContract: '0xBbfF7Ea6b2Addc1f38A0798329e12C08f03750A6',
51
- },
52
- 'gnosis:10200': {
53
- rpc: 'https://rpc.chiadochain.net',
54
- hubContract: '0xC06210312C9217A0EdF67453618F5eB96668679A',
55
- gasPriceOracleLink: 'https://blockscout.chiadochain.net/api/v1/gas-price-oracle',
56
- },
35
+ stabledevnet_prod: {
57
36
  'base:84532': {
58
- hubContract: '0x144eDa5cbf8926327cb2cceef168A121F0E4A299',
37
+ hubContract: '0xaA849CAC4FA86f6b7484503f3c7a314772AED6d4',
59
38
  rpc: 'https://sepolia.base.org',
60
39
  },
61
40
  },
62
- mainnet: {
63
- 'otp:2043': {
64
- rpc: 'https://astrosat-parachain-rpc.origin-trail.network',
65
- hubContract: '0x5fA7916c48Fe6D5F1738d12Ad234b78c90B4cAdA',
66
- },
67
- 'gnosis:100': {
68
- rpc: 'https://rpc.gnosischain.com/',
69
- hubContract: '0xbEF14fc04F870c2dD65c13Df4faB6ba01A9c746b',
70
- gasPriceOracleLink: 'https://api.gnosisscan.io/api?module=proxy&action=eth_gasPrice',
71
- },
72
- 'base:8453': {
73
- hubContract: '0xaBfcf2ad1718828E7D3ec20435b0d0b5EAfbDf2c',
74
- rpc: 'https://mainnet.base.org',
41
+ testnet: {
42
+ // This is V8 TESTNET HUB don't use this for V6
43
+ 'base:84532': {
44
+ hubContract: '0xCca0eA14540588A09c85cD6A6Fc53eA3A7010692',
45
+ rpc: 'https://sepolia.base.org',
75
46
  },
76
47
  },
48
+ mainnet: {},
49
+ };
50
+
51
+ const PARANET_NODES_ACCESS_POLICY = {
52
+ OPEN: 0,
53
+ CURATED: 1,
54
+ };
55
+
56
+ const PARANET_MINERS_ACCESS_POLICY = {
57
+ OPEN: 0,
58
+ CURATED: 1,
77
59
  };
78
60
 
79
61
  const INCENTIVE_TYPE = {
@@ -111,9 +93,9 @@ const WEBSOCKET_PROVIDER_OPTIONS = {
111
93
  const OPERATIONS = {
112
94
  PUBLISH: 'publish',
113
95
  GET: 'get',
114
- UPDATE: 'update',
115
96
  LOCAL_STORE: 'local-store',
116
97
  QUERY: 'query',
98
+ PUBLISH_PARANET: 'publishParanet',
117
99
  };
118
100
 
119
101
  const OPERATION_STATUSES = {
@@ -185,6 +167,12 @@ const DEFAULT_PROXIMITY_SCORE_FUNCTIONS_PAIR_IDS = {
185
167
  'gnosis:10200': 2,
186
168
  'base:84532': 2,
187
169
  },
170
+ stabledevnet_staging: {
171
+ 'base:84532': 2,
172
+ },
173
+ stabledevnet_prod: {
174
+ 'base:84532': 2,
175
+ },
188
176
  testnet: {
189
177
  'otp:20430': 2,
190
178
  'gnosis:10200': 2,
@@ -240,6 +228,10 @@ const BID_SUGGESTION_RANGE_ENUM = [
240
228
  ALL_BID_SUGGESTION,
241
229
  ];
242
230
 
231
+ const PARANET_KNOWLEDGE_ASSET_ACCESS_POLICY = {
232
+ OPEN: 0,
233
+ };
234
+
243
235
  module.exports = {
244
236
  MAX_FILE_SIZE,
245
237
  DID_PREFIX,
@@ -273,4 +265,7 @@ module.exports = {
273
265
  HIGH_BID_SUGGESTION,
274
266
  ALL_BID_SUGGESTION,
275
267
  BID_SUGGESTION_RANGE_ENUM,
268
+ PARANET_NODES_ACCESS_POLICY,
269
+ PARANET_MINERS_ACCESS_POLICY,
270
+ PARANET_KNOWLEDGE_ASSET_ACCESS_POLICY,
276
271
  };