viem 2.21.33 → 2.21.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/_cjs/actions/public/waitForTransactionReceipt.js +94 -91
  3. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  4. package/_cjs/chains/definitions/base.js +5 -0
  5. package/_cjs/chains/definitions/base.js.map +1 -1
  6. package/_cjs/chains/definitions/genesys.js +24 -0
  7. package/_cjs/chains/definitions/genesys.js.map +1 -0
  8. package/_cjs/chains/definitions/iota.js +6 -0
  9. package/_cjs/chains/definitions/iota.js.map +1 -1
  10. package/_cjs/chains/definitions/unichainSepolia.js +18 -0
  11. package/_cjs/chains/definitions/unichainSepolia.js.map +1 -1
  12. package/_cjs/chains/definitions/velas.js +22 -0
  13. package/_cjs/chains/definitions/velas.js.map +1 -0
  14. package/_cjs/chains/definitions/worldchain.js +38 -1
  15. package/_cjs/chains/definitions/worldchain.js.map +1 -1
  16. package/_cjs/chains/definitions/worldchainSepolia.js +37 -1
  17. package/_cjs/chains/definitions/worldchainSepolia.js.map +1 -1
  18. package/_cjs/chains/definitions/xdc.js +5 -5
  19. package/_cjs/chains/definitions/xdc.js.map +1 -1
  20. package/_cjs/chains/index.js +11 -7
  21. package/_cjs/chains/index.js.map +1 -1
  22. package/_cjs/errors/typedData.js +10 -1
  23. package/_cjs/errors/typedData.js.map +1 -1
  24. package/_cjs/errors/version.js +1 -1
  25. package/_cjs/index.js +5 -4
  26. package/_cjs/index.js.map +1 -1
  27. package/_cjs/linea/actions/estimateGas.js +1 -4
  28. package/_cjs/linea/actions/estimateGas.js.map +1 -1
  29. package/_cjs/op-stack/chains.js +7 -1
  30. package/_cjs/op-stack/chains.js.map +1 -1
  31. package/_cjs/utils/promise/createBatchScheduler.js +8 -11
  32. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  33. package/_cjs/utils/promise/withResolvers.js +13 -0
  34. package/_cjs/utils/promise/withResolvers.js.map +1 -0
  35. package/_cjs/utils/typedData.js +6 -2
  36. package/_cjs/utils/typedData.js.map +1 -1
  37. package/_esm/actions/public/waitForTransactionReceipt.js +109 -106
  38. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  39. package/_esm/chains/definitions/base.js +5 -0
  40. package/_esm/chains/definitions/base.js.map +1 -1
  41. package/_esm/chains/definitions/genesys.js +21 -0
  42. package/_esm/chains/definitions/genesys.js.map +1 -0
  43. package/_esm/chains/definitions/iota.js +6 -0
  44. package/_esm/chains/definitions/iota.js.map +1 -1
  45. package/_esm/chains/definitions/unichainSepolia.js +18 -0
  46. package/_esm/chains/definitions/unichainSepolia.js.map +1 -1
  47. package/_esm/chains/definitions/velas.js +19 -0
  48. package/_esm/chains/definitions/velas.js.map +1 -0
  49. package/_esm/chains/definitions/worldchain.js +38 -1
  50. package/_esm/chains/definitions/worldchain.js.map +1 -1
  51. package/_esm/chains/definitions/worldchainSepolia.js +37 -1
  52. package/_esm/chains/definitions/worldchainSepolia.js.map +1 -1
  53. package/_esm/chains/definitions/xdc.js +5 -5
  54. package/_esm/chains/definitions/xdc.js.map +1 -1
  55. package/_esm/chains/index.js +2 -0
  56. package/_esm/chains/index.js.map +1 -1
  57. package/_esm/errors/typedData.js +8 -0
  58. package/_esm/errors/typedData.js.map +1 -1
  59. package/_esm/errors/version.js +1 -1
  60. package/_esm/index.js +1 -1
  61. package/_esm/index.js.map +1 -1
  62. package/_esm/linea/actions/estimateGas.js +1 -4
  63. package/_esm/linea/actions/estimateGas.js.map +1 -1
  64. package/_esm/op-stack/chains.js +3 -0
  65. package/_esm/op-stack/chains.js.map +1 -1
  66. package/_esm/utils/promise/createBatchScheduler.js +8 -11
  67. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  68. package/_esm/utils/promise/withResolvers.js +11 -0
  69. package/_esm/utils/promise/withResolvers.js.map +1 -0
  70. package/_esm/utils/typedData.js +7 -3
  71. package/_esm/utils/typedData.js.map +1 -1
  72. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  73. package/_types/chains/definitions/base.d.ts +5 -0
  74. package/_types/chains/definitions/base.d.ts.map +1 -1
  75. package/_types/chains/definitions/genesys.d.ts +37 -0
  76. package/_types/chains/definitions/genesys.d.ts.map +1 -0
  77. package/_types/chains/definitions/iota.d.ts +6 -10
  78. package/_types/chains/definitions/iota.d.ts.map +1 -1
  79. package/_types/chains/definitions/unichainSepolia.d.ts +267 -2
  80. package/_types/chains/definitions/unichainSepolia.d.ts.map +1 -1
  81. package/_types/chains/definitions/velas.d.ts +37 -0
  82. package/_types/chains/definitions/velas.d.ts.map +1 -0
  83. package/_types/chains/definitions/worldchain.d.ts +286 -14
  84. package/_types/chains/definitions/worldchain.d.ts.map +1 -1
  85. package/_types/chains/definitions/worldchainSepolia.d.ts +285 -14
  86. package/_types/chains/definitions/worldchainSepolia.d.ts.map +1 -1
  87. package/_types/chains/definitions/xdc.d.ts +5 -5
  88. package/_types/chains/index.d.ts +2 -0
  89. package/_types/chains/index.d.ts.map +1 -1
  90. package/_types/errors/typedData.d.ts +10 -0
  91. package/_types/errors/typedData.d.ts.map +1 -1
  92. package/_types/errors/version.d.ts +1 -1
  93. package/_types/index.d.ts +1 -1
  94. package/_types/index.d.ts.map +1 -1
  95. package/_types/linea/actions/estimateGas.d.ts.map +1 -1
  96. package/_types/op-stack/chains.d.ts +3 -0
  97. package/_types/op-stack/chains.d.ts.map +1 -1
  98. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  99. package/_types/utils/promise/withResolvers.d.ts +9 -0
  100. package/_types/utils/promise/withResolvers.d.ts.map +1 -0
  101. package/_types/utils/typedData.d.ts.map +1 -1
  102. package/actions/public/waitForTransactionReceipt.ts +162 -156
  103. package/chains/definitions/base.ts +5 -0
  104. package/chains/definitions/genesys.ts +21 -0
  105. package/chains/definitions/iota.ts +6 -0
  106. package/chains/definitions/unichainSepolia.ts +18 -0
  107. package/chains/definitions/velas.ts +19 -0
  108. package/chains/definitions/worldchain.ts +39 -1
  109. package/chains/definitions/worldchainSepolia.ts +38 -1
  110. package/chains/definitions/xdc.ts +5 -5
  111. package/chains/index.ts +2 -0
  112. package/errors/typedData.ts +20 -0
  113. package/errors/version.ts +1 -1
  114. package/index.ts +2 -0
  115. package/linea/actions/estimateGas.ts +1 -11
  116. package/op-stack/chains.ts +3 -0
  117. package/package.json +1 -1
  118. package/utils/promise/createBatchScheduler.ts +12 -16
  119. package/utils/promise/withResolvers.ts +19 -0
  120. package/utils/typedData.ts +8 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # viem
2
2
 
3
+ ## 2.21.35
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2923](https://github.com/wevm/viem/pull/2923) [`d887dba1e694ffdcd413a752b148f6ae05487d17`](https://github.com/wevm/viem/commit/d887dba1e694ffdcd413a752b148f6ae05487d17) Thanks [@cbfyi](https://github.com/cbfyi)! - Added Dispute Game Factory contract for Base.
8
+
9
+ - [`335f7e852bb526ea23564afacc46b5d6b74dae7a`](https://github.com/wevm/viem/commit/335f7e852bb526ea23564afacc46b5d6b74dae7a) Thanks [@jxom](https://github.com/jxom)! - Added validation for typed data `primaryType`.
10
+
11
+ - [#2925](https://github.com/wevm/viem/pull/2925) [`7fbb016204d4c310ee96bf53e631257f8f3e770e`](https://github.com/wevm/viem/commit/7fbb016204d4c310ee96bf53e631257f8f3e770e) Thanks [@0xArdy](https://github.com/0xArdy)! - Updated World Chain (Mainnet and Testnet) and Unichain Sepolia chain definitions
12
+
13
+ - [#2922](https://github.com/wevm/viem/pull/2922) [`f6339079cc075c7e069f062c18dbdd2d4306c996`](https://github.com/wevm/viem/commit/f6339079cc075c7e069f062c18dbdd2d4306c996) Thanks [@oxSaturn](https://github.com/oxSaturn)! - Added multicall3 for iota.
14
+
15
+ - [#2919](https://github.com/wevm/viem/pull/2919) [`5ff60a39c642b4715d9142a1435d14d7896be5d1`](https://github.com/wevm/viem/commit/5ff60a39c642b4715d9142a1435d14d7896be5d1) Thanks [@Zhangnong](https://github.com/Zhangnong)! - Added Velas chain.
16
+
17
+ - [#2924](https://github.com/wevm/viem/pull/2924) [`d2632d2e9eb572c5346e535d1b22eb7568a47bc1`](https://github.com/wevm/viem/commit/d2632d2e9eb572c5346e535d1b22eb7568a47bc1) Thanks [@Zhangnong](https://github.com/Zhangnong)! - Added Genesys Mainnet.
18
+
19
+ ## 2.21.34
20
+
21
+ ### Patch Changes
22
+
23
+ - [#2917](https://github.com/wevm/viem/pull/2917) [`b3f8199f5560fb64b2c84de75b7f8d6b30990262`](https://github.com/wevm/viem/commit/b3f8199f5560fb64b2c84de75b7f8d6b30990262) Thanks [@0xPenryn](https://github.com/0xPenryn)! - Updated World Chain (Mainnet and Sepolia)
24
+
25
+ - [`80f43544f82e8621ad71e74441b900967dfc306c`](https://github.com/wevm/viem/commit/80f43544f82e8621ad71e74441b900967dfc306c) Thanks [@jxom](https://github.com/jxom)! - Resolved timer leak in `waitForTransactionReceipt`.
26
+
27
+ - [#2915](https://github.com/wevm/viem/pull/2915) [`8032ffa98db644cb3abcd13eedbd05b41e74637f`](https://github.com/wevm/viem/commit/8032ffa98db644cb3abcd13eedbd05b41e74637f) Thanks [@iltumio](https://github.com/iltumio)! - **Linea Extension:** Fixed `estimateGas` infinite loop.
28
+
3
29
  ## 2.21.33
4
30
 
5
31
  ### Patch Changes
@@ -5,6 +5,7 @@ const block_js_1 = require("../../errors/block.js");
5
5
  const transaction_js_1 = require("../../errors/transaction.js");
6
6
  const getAction_js_1 = require("../../utils/getAction.js");
7
7
  const observe_js_1 = require("../../utils/observe.js");
8
+ const withResolvers_js_1 = require("../../utils/promise/withResolvers.js");
8
9
  const withRetry_js_1 = require("../../utils/promise/withRetry.js");
9
10
  const stringify_js_1 = require("../../utils/stringify.js");
10
11
  const getBlock_js_1 = require("./getBlock.js");
@@ -17,112 +18,114 @@ async function waitForTransactionReceipt(client, { confirmations = 1, hash, onRe
17
18
  let replacedTransaction;
18
19
  let receipt;
19
20
  let retrying = false;
20
- return new Promise((resolve, reject) => {
21
- if (timeout)
22
- setTimeout(() => reject(new transaction_js_1.WaitForTransactionReceiptTimeoutError({ hash })), timeout);
23
- const _unobserve = (0, observe_js_1.observe)(observerId, { onReplaced, resolve, reject }, (emit) => {
24
- const _unwatch = (0, getAction_js_1.getAction)(client, watchBlockNumber_js_1.watchBlockNumber, 'watchBlockNumber')({
25
- emitMissed: true,
26
- emitOnBegin: true,
27
- poll: true,
28
- pollingInterval,
29
- async onBlockNumber(blockNumber_) {
30
- const done = (fn) => {
31
- _unwatch();
32
- fn();
33
- _unobserve();
34
- };
35
- let blockNumber = blockNumber_;
36
- if (retrying)
21
+ const { promise, resolve, reject } = (0, withResolvers_js_1.withResolvers)();
22
+ const timer = timeout
23
+ ? setTimeout(() => reject(new transaction_js_1.WaitForTransactionReceiptTimeoutError({ hash })), timeout)
24
+ : undefined;
25
+ const _unobserve = (0, observe_js_1.observe)(observerId, { onReplaced, resolve, reject }, (emit) => {
26
+ const _unwatch = (0, getAction_js_1.getAction)(client, watchBlockNumber_js_1.watchBlockNumber, 'watchBlockNumber')({
27
+ emitMissed: true,
28
+ emitOnBegin: true,
29
+ poll: true,
30
+ pollingInterval,
31
+ async onBlockNumber(blockNumber_) {
32
+ const done = (fn) => {
33
+ clearTimeout(timer);
34
+ _unwatch();
35
+ fn();
36
+ _unobserve();
37
+ };
38
+ let blockNumber = blockNumber_;
39
+ if (retrying)
40
+ return;
41
+ try {
42
+ if (receipt) {
43
+ if (confirmations > 1 &&
44
+ (!receipt.blockNumber ||
45
+ blockNumber - receipt.blockNumber + 1n < confirmations))
46
+ return;
47
+ done(() => emit.resolve(receipt));
37
48
  return;
38
- try {
39
- if (receipt) {
40
- if (confirmations > 1 &&
41
- (!receipt.blockNumber ||
42
- blockNumber - receipt.blockNumber + 1n < confirmations))
43
- return;
44
- done(() => emit.resolve(receipt));
49
+ }
50
+ if (!transaction) {
51
+ retrying = true;
52
+ await (0, withRetry_js_1.withRetry)(async () => {
53
+ transaction = (await (0, getAction_js_1.getAction)(client, getTransaction_js_1.getTransaction, 'getTransaction')({ hash }));
54
+ if (transaction.blockNumber)
55
+ blockNumber = transaction.blockNumber;
56
+ }, {
57
+ delay: retryDelay,
58
+ retryCount,
59
+ });
60
+ retrying = false;
61
+ }
62
+ receipt = await (0, getAction_js_1.getAction)(client, getTransactionReceipt_js_1.getTransactionReceipt, 'getTransactionReceipt')({ hash });
63
+ if (confirmations > 1 &&
64
+ (!receipt.blockNumber ||
65
+ blockNumber - receipt.blockNumber + 1n < confirmations))
66
+ return;
67
+ done(() => emit.resolve(receipt));
68
+ }
69
+ catch (err) {
70
+ if (err instanceof transaction_js_1.TransactionNotFoundError ||
71
+ err instanceof transaction_js_1.TransactionReceiptNotFoundError) {
72
+ if (!transaction) {
73
+ retrying = false;
45
74
  return;
46
75
  }
47
- if (!transaction) {
76
+ try {
77
+ replacedTransaction = transaction;
48
78
  retrying = true;
49
- await (0, withRetry_js_1.withRetry)(async () => {
50
- transaction = (await (0, getAction_js_1.getAction)(client, getTransaction_js_1.getTransaction, 'getTransaction')({ hash }));
51
- if (transaction.blockNumber)
52
- blockNumber = transaction.blockNumber;
53
- }, {
79
+ const block = await (0, withRetry_js_1.withRetry)(() => (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock, 'getBlock')({
80
+ blockNumber,
81
+ includeTransactions: true,
82
+ }), {
54
83
  delay: retryDelay,
55
84
  retryCount,
85
+ shouldRetry: ({ error }) => error instanceof block_js_1.BlockNotFoundError,
56
86
  });
57
87
  retrying = false;
58
- }
59
- receipt = await (0, getAction_js_1.getAction)(client, getTransactionReceipt_js_1.getTransactionReceipt, 'getTransactionReceipt')({ hash });
60
- if (confirmations > 1 &&
61
- (!receipt.blockNumber ||
62
- blockNumber - receipt.blockNumber + 1n < confirmations))
63
- return;
64
- done(() => emit.resolve(receipt));
65
- }
66
- catch (err) {
67
- if (err instanceof transaction_js_1.TransactionNotFoundError ||
68
- err instanceof transaction_js_1.TransactionReceiptNotFoundError) {
69
- if (!transaction) {
70
- retrying = false;
88
+ const replacementTransaction = block.transactions.find(({ from, nonce }) => from === replacedTransaction.from &&
89
+ nonce === replacedTransaction.nonce);
90
+ if (!replacementTransaction)
71
91
  return;
92
+ receipt = await (0, getAction_js_1.getAction)(client, getTransactionReceipt_js_1.getTransactionReceipt, 'getTransactionReceipt')({
93
+ hash: replacementTransaction.hash,
94
+ });
95
+ if (confirmations > 1 &&
96
+ (!receipt.blockNumber ||
97
+ blockNumber - receipt.blockNumber + 1n < confirmations))
98
+ return;
99
+ let reason = 'replaced';
100
+ if (replacementTransaction.to === replacedTransaction.to &&
101
+ replacementTransaction.value === replacedTransaction.value) {
102
+ reason = 'repriced';
72
103
  }
73
- try {
74
- replacedTransaction = transaction;
75
- retrying = true;
76
- const block = await (0, withRetry_js_1.withRetry)(() => (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock, 'getBlock')({
77
- blockNumber,
78
- includeTransactions: true,
79
- }), {
80
- delay: retryDelay,
81
- retryCount,
82
- shouldRetry: ({ error }) => error instanceof block_js_1.BlockNotFoundError,
83
- });
84
- retrying = false;
85
- const replacementTransaction = block.transactions.find(({ from, nonce }) => from === replacedTransaction.from &&
86
- nonce === replacedTransaction.nonce);
87
- if (!replacementTransaction)
88
- return;
89
- receipt = await (0, getAction_js_1.getAction)(client, getTransactionReceipt_js_1.getTransactionReceipt, 'getTransactionReceipt')({
90
- hash: replacementTransaction.hash,
91
- });
92
- if (confirmations > 1 &&
93
- (!receipt.blockNumber ||
94
- blockNumber - receipt.blockNumber + 1n < confirmations))
95
- return;
96
- let reason = 'replaced';
97
- if (replacementTransaction.to === replacedTransaction.to &&
98
- replacementTransaction.value === replacedTransaction.value) {
99
- reason = 'repriced';
100
- }
101
- else if (replacementTransaction.from === replacementTransaction.to &&
102
- replacementTransaction.value === 0n) {
103
- reason = 'cancelled';
104
- }
105
- done(() => {
106
- emit.onReplaced?.({
107
- reason,
108
- replacedTransaction: replacedTransaction,
109
- transaction: replacementTransaction,
110
- transactionReceipt: receipt,
111
- });
112
- emit.resolve(receipt);
113
- });
114
- }
115
- catch (err_) {
116
- done(() => emit.reject(err_));
104
+ else if (replacementTransaction.from === replacementTransaction.to &&
105
+ replacementTransaction.value === 0n) {
106
+ reason = 'cancelled';
117
107
  }
108
+ done(() => {
109
+ emit.onReplaced?.({
110
+ reason,
111
+ replacedTransaction: replacedTransaction,
112
+ transaction: replacementTransaction,
113
+ transactionReceipt: receipt,
114
+ });
115
+ emit.resolve(receipt);
116
+ });
118
117
  }
119
- else {
120
- done(() => emit.reject(err));
118
+ catch (err_) {
119
+ done(() => emit.reject(err_));
121
120
  }
122
121
  }
123
- },
124
- });
122
+ else {
123
+ done(() => emit.reject(err));
124
+ }
125
+ }
126
+ },
125
127
  });
126
128
  });
129
+ return promise;
127
130
  }
128
131
  //# sourceMappingURL=waitForTransactionReceipt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"waitForTransactionReceipt.js","sourceRoot":"","sources":["../../../actions/public/waitForTransactionReceipt.ts"],"names":[],"mappings":";;AAkIA,8DA8MC;AA9UD,oDAA0D;AAC1D,gEAIoC;AAKpC,2DAAoD;AACpD,uDAAuE;AACvE,mEAGyC;AACzC,2DAAoD;AAEpD,+CAAgE;AAChE,2DAI4B;AAC5B,yEAImC;AACnC,+DAG8B;AAgGvB,KAAK,UAAU,yBAAyB,CAG7C,MAAgC,EAChC,EACE,aAAa,GAAG,CAAC,EACjB,IAAI,EACJ,UAAU,EACV,eAAe,GAAG,MAAM,CAAC,eAAe,EACxC,UAAU,GAAG,CAAC,EACd,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,GAAG,EAChD,OAAO,GAAG,OAAO,GAC0B;IAE7C,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAA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AAO;qCAC5B,CAAC,CAAA;oCACF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;gCACvB,CAAC,CAAC,CAAA;4BACJ,CAAC;4BAAC,OAAO,IAAI,EAAE,CAAC;gCACd,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;4BAC/B,CAAC;wBACH,CAAC;6BAAM,CAAC;4BACN,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;wBAC9B,CAAC;oBACH,CAAC;gBACH,CAAC;aACF,CAAC,CAAA;QACJ,CAAC,CACF,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"waitForTransactionReceipt.js","sourceRoot":"","sources":["../../../actions/public/waitForTransactionReceipt.ts"],"names":[],"mappings":";;AAmIA,8DAmNC;AApVD,oDAA0D;AAC1D,gEAIoC;AAKpC,2DAAoD;AACpD,uDAAuE;AACvE,2EAAoE;AACpE,mEAGyC;AACzC,2DAAoD;AAEpD,+CAAgE;AAChE,2DAI4B;AAC5B,yEAImC;AACnC,+DAG8B;AAgGvB,KAAK,UAAU,yBAAyB,CAG7C,MAAgC,EAChC,EACE,aAAa,GAAG,CAAC,EACjB,IAAI,EACJ,UAAU,EACV,eAAe,GAAG,MAAM,CAAC,eAAe,EACxC,UAAU,GAAG,CAAC,EACd,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,GAAG,EAChD,OAAO,GAAG,OAAO,GAC0B;IAE7C,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAA;IAE7E,IAAI,WAAwD,CAAA;IAC5D,IAAI,mBAAgE,CAAA;IACpE,IAAI,OAA+C,CAAA;IAC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C,kBAAkB,EAAE,OAAO;iCAC5B,CAAC,CAAA;gCACF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;4BACvB,CAAC,CAAC,CAAA;wBACJ,CAAC;wBAAC,OAAO,IAAI,EAAE,CAAC;4BACd,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;wBAC/B,CAAC;oBACH,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;oBAC9B,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC,CAAA;IACJ,CAAC,CACF,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -23,6 +23,11 @@ exports.base = (0, defineChain_js_1.defineChain)({
23
23
  },
24
24
  contracts: {
25
25
  ...chainConfig_js_1.chainConfig.contracts,
26
+ disputeGameFactory: {
27
+ [sourceId]: {
28
+ address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
29
+ },
30
+ },
26
31
  l2OutputOracle: {
27
32
  [sourceId]: {
28
33
  address: '0x56315b90c40730925ec5485cf004d835058518A0',
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../chains/definitions/base.ts"],"names":[],"mappings":";;;AAAA,kEAA2D;AAC3D,qEAA8D;AAE9D,MAAM,QAAQ,GAAG,CAAC,CAAA;AAEL,QAAA,IAAI,GAAiB,IAAA,4BAAW,EAAC;IAC5C,GAAG,4BAAW;IACd,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,0BAA0B,CAAC;SACnC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,sBAAsB;YAC3B,MAAM,EAAE,8BAA8B;SACvC;KACF;IACD,SAAS,EAAE;QACT,GAAG,4BAAW,CAAC,SAAS;QACxB,cAAc,EAAE;YACd,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,IAAI;SACnB;QACD,MAAM,EAAE;YACN,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;gBACrD,YAAY,EAAE,QAAQ;aACvB;SACF;QACD,gBAAgB,EAAE;YAChB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;gBACrD,YAAY,EAAE,QAAQ;aACvB;SACF;KACF;IACD,QAAQ;CACT,CAAC,CAAA"}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../chains/definitions/base.ts"],"names":[],"mappings":";;;AAAA,kEAA2D;AAC3D,qEAA8D;AAE9D,MAAM,QAAQ,GAAG,CAAC,CAAA;AAEL,QAAA,IAAI,GAAiB,IAAA,4BAAW,EAAC;IAC5C,GAAG,4BAAW;IACd,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,0BAA0B,CAAC;SACnC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,sBAAsB;YAC3B,MAAM,EAAE,8BAA8B;SACvC;KACF;IACD,SAAS,EAAE;QACT,GAAG,4BAAW,CAAC,SAAS;QACxB,kBAAkB,EAAE;YAClB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,cAAc,EAAE;YACd,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,IAAI;SACnB;QACD,MAAM,EAAE;YACN,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;gBACrD,YAAY,EAAE,QAAQ;aACvB;SACF;QACD,gBAAgB,EAAE;YAChB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;gBACrD,YAAY,EAAE,QAAQ;aACvB;SACF;KACF;IACD,QAAQ;CACT,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.genesys = void 0;
4
+ const defineChain_js_1 = require("../../utils/chain/defineChain.js");
5
+ exports.genesys = (0, defineChain_js_1.defineChain)({
6
+ id: 16507,
7
+ name: 'Genesys Mainnet',
8
+ nativeCurrency: {
9
+ decimals: 18,
10
+ name: 'GSYS',
11
+ symbol: 'GSYS',
12
+ },
13
+ rpcUrls: {
14
+ default: { http: ['https://rpc.genesys.network'] },
15
+ },
16
+ blockExplorers: {
17
+ default: {
18
+ name: 'Genesys Explorer',
19
+ url: 'https://gchainexplorer.genesys.network',
20
+ },
21
+ },
22
+ testnet: false,
23
+ });
24
+ //# sourceMappingURL=genesys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genesys.js","sourceRoot":"","sources":["../../../chains/definitions/genesys.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,OAAO,GAAiB,IAAA,4BAAW,EAAC;IAC/C,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,6BAA6B,CAAC,EAAE;KACnD;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,kBAAkB;YACxB,GAAG,EAAE,wCAAwC;SAC9C;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
@@ -24,5 +24,11 @@ exports.iota = (0, defineChain_js_1.defineChain)({
24
24
  apiUrl: 'https://explorer.evm.iota.org/api',
25
25
  },
26
26
  },
27
+ contracts: {
28
+ multicall3: {
29
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
30
+ blockCreated: 25022,
31
+ },
32
+ },
27
33
  });
28
34
  //# sourceMappingURL=iota.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iota.js","sourceRoot":"","sources":["../../../chains/definitions/iota.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,IAAI,GAAiB,IAAA,4BAAW,EAAC;IAC5C,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,qCAAqC,CAAC;YAC7C,SAAS,EAAE,CAAC,sCAAsC,CAAC;SACpD;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,+BAA+B;YACpC,MAAM,EAAE,mCAAmC;SAC5C;KACF;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"iota.js","sourceRoot":"","sources":["../../../chains/definitions/iota.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,IAAI,GAAiB,IAAA,4BAAW,EAAC;IAC5C,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,qCAAqC,CAAC;YAC7C,SAAS,EAAE,CAAC,sCAAsC,CAAC;SACpD;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,+BAA+B;YACpC,MAAM,EAAE,mCAAmC;SAC5C;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAC,CAAA"}
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.unichainSepolia = void 0;
4
+ const chainConfig_js_1 = require("../../op-stack/chainConfig.js");
4
5
  const defineChain_js_1 = require("../../utils/chain/defineChain.js");
5
6
  const sourceId = 11_155_111;
6
7
  exports.unichainSepolia = (0, defineChain_js_1.defineChain)({
8
+ ...chainConfig_js_1.chainConfig,
7
9
  id: 1301,
8
10
  name: 'Unichain Sepolia',
9
11
  nativeCurrency: {
@@ -24,10 +26,26 @@ exports.unichainSepolia = (0, defineChain_js_1.defineChain)({
24
26
  },
25
27
  },
26
28
  contracts: {
29
+ ...chainConfig_js_1.chainConfig.contracts,
27
30
  multicall3: {
28
31
  address: '0xca11bde05977b3631167028862be2a173976ca11',
29
32
  blockCreated: 0,
30
33
  },
34
+ portal: {
35
+ [sourceId]: {
36
+ address: '0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD',
37
+ },
38
+ },
39
+ l1StandardBridge: {
40
+ [sourceId]: {
41
+ address: '0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2',
42
+ },
43
+ },
44
+ disputeGameFactory: {
45
+ [sourceId]: {
46
+ address: '0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b',
47
+ },
48
+ },
31
49
  },
32
50
  testnet: true,
33
51
  sourceId,
@@ -1 +1 @@
1
- {"version":3,"file":"unichainSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/unichainSepolia.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAE9D,MAAM,QAAQ,GAAG,UAAU,CAAA;AAEd,QAAA,eAAe,GAAiB,IAAA,4BAAW,EAAC;IACvD,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,kBAAkB;IACxB,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,8BAA8B,CAAC;SACvC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,6BAA6B;YAClC,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,CAAC;SAChB;KACF;IACD,OAAO,EAAE,IAAI;IACb,QAAQ;CACT,CAAC,CAAA"}
1
+ {"version":3,"file":"unichainSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/unichainSepolia.ts"],"names":[],"mappings":";;;AAAA,kEAA2D;AAC3D,qEAA8D;AAE9D,MAAM,QAAQ,GAAG,UAAU,CAAA;AAEd,QAAA,eAAe,GAAiB,IAAA,4BAAW,EAAC;IACvD,GAAG,4BAAW;IACd,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,kBAAkB;IACxB,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,8BAA8B,CAAC;SACvC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,6BAA6B;YAClC,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,SAAS,EAAE;QACT,GAAG,4BAAW,CAAC,SAAS;QACxB,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,CAAC;SAChB;QACD,MAAM,EAAE;YACN,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,gBAAgB,EAAE;YAChB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,kBAAkB,EAAE;YAClB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;KACF;IACD,OAAO,EAAE,IAAI;IACb,QAAQ;CACT,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.velas = void 0;
4
+ const defineChain_js_1 = require("../../utils/chain/defineChain.js");
5
+ exports.velas = (0, defineChain_js_1.defineChain)({
6
+ id: 106,
7
+ name: 'Velas EVM Mainnet',
8
+ nativeCurrency: { name: 'VLX', symbol: 'VLX', decimals: 18 },
9
+ rpcUrls: {
10
+ default: {
11
+ http: ['https://evmexplorer.velas.com/rpc'],
12
+ },
13
+ },
14
+ blockExplorers: {
15
+ default: {
16
+ name: 'Velas Explorer',
17
+ url: 'https://evmexplorer.velas.com',
18
+ },
19
+ },
20
+ testnet: false,
21
+ });
22
+ //# sourceMappingURL=velas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"velas.js","sourceRoot":"","sources":["../../../chains/definitions/velas.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,KAAK,GAAiB,IAAA,4BAAW,EAAC;IAC7C,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,mBAAmB;IACzB,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,mCAAmC,CAAC;SAC5C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,gBAAgB;YACtB,GAAG,EAAE,+BAA+B;SACrC;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.worldchain = void 0;
4
+ const chainConfig_js_1 = require("../../op-stack/chainConfig.js");
4
5
  const defineChain_js_1 = require("../../utils/chain/defineChain.js");
6
+ const sourceId = 1;
5
7
  exports.worldchain = (0, defineChain_js_1.defineChain)({
8
+ ...chainConfig_js_1.chainConfig,
6
9
  id: 480,
7
10
  name: 'World Chain',
8
11
  network: 'worldchain',
@@ -12,10 +15,44 @@ exports.worldchain = (0, defineChain_js_1.defineChain)({
12
15
  },
13
16
  blockExplorers: {
14
17
  default: {
15
- name: 'World Chain Explorer',
18
+ name: 'Worldscan',
19
+ url: 'https://worldscan.org',
20
+ apiUrl: 'https://api.worldscan.org/api',
21
+ },
22
+ blockscout: {
23
+ name: 'Blockscout',
16
24
  url: 'https://worldchain-mainnet.explorer.alchemy.com',
25
+ apiUrl: 'https://worldchain-mainnet.explorer.alchemy.com/api',
26
+ },
27
+ },
28
+ contracts: {
29
+ ...chainConfig_js_1.chainConfig.contracts,
30
+ multicall3: {
31
+ address: '0xca11bde05977b3631167028862be2a173976ca11',
32
+ blockCreated: 0,
33
+ },
34
+ disputeGameFactory: {
35
+ [sourceId]: {
36
+ address: '0x0E90dCAFBC242D2C861A20Bb20EC8E7182965a52',
37
+ },
38
+ },
39
+ l2OutputOracle: {
40
+ [sourceId]: {
41
+ address: '0x19A6d1E9034596196295CF148509796978343c5D',
42
+ },
43
+ },
44
+ portal: {
45
+ [sourceId]: {
46
+ address: '0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C',
47
+ },
48
+ },
49
+ l1StandardBridge: {
50
+ [sourceId]: {
51
+ address: '0x470458C91978D2d929704489Ad730DC3E3001113',
52
+ },
17
53
  },
18
54
  },
19
55
  testnet: false,
56
+ sourceId,
20
57
  });
21
58
  //# sourceMappingURL=worldchain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"worldchain.js","sourceRoot":"","sources":["../../../chains/definitions/worldchain.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,UAAU,GAAiB,IAAA,4BAAW,EAAC;IAClD,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,YAAY;IACrB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;KACvE;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EAAE,iDAAiD;SACvD;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
1
+ {"version":3,"file":"worldchain.js","sourceRoot":"","sources":["../../../chains/definitions/worldchain.ts"],"names":[],"mappings":";;;AAAA,kEAA2D;AAC3D,qEAA8D;AAE9D,MAAM,QAAQ,GAAG,CAAC,CAAA;AAEL,QAAA,UAAU,GAAiB,IAAA,4BAAW,EAAC;IAClD,GAAG,4BAAW;IACd,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,YAAY;IACrB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;KACvE;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,WAAW;YACjB,GAAG,EAAE,uBAAuB;YAC5B,MAAM,EAAE,+BAA+B;SACxC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,iDAAiD;YACtD,MAAM,EAAE,qDAAqD;SAC9D;KACF;IACD,SAAS,EAAE;QACT,GAAG,4BAAW,CAAC,SAAS;QACxB,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,CAAC;SAChB;QACD,kBAAkB,EAAE;YAClB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,cAAc,EAAE;YACd,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,MAAM,EAAE;YACN,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,gBAAgB,EAAE;YAChB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;KACF;IACD,OAAO,EAAE,KAAK;IACd,QAAQ;CACT,CAAC,CAAA"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.worldchainSepolia = void 0;
4
+ const chainConfig_js_1 = require("../../op-stack/chainConfig.js");
4
5
  const defineChain_js_1 = require("../../utils/chain/defineChain.js");
6
+ const sourceId = 11_155_111;
5
7
  exports.worldchainSepolia = (0, defineChain_js_1.defineChain)({
8
+ ...chainConfig_js_1.chainConfig,
6
9
  id: 4801,
7
10
  name: 'World Chain Sepolia',
8
11
  network: 'worldchain-sepolia',
@@ -13,10 +16,43 @@ exports.worldchainSepolia = (0, defineChain_js_1.defineChain)({
13
16
  },
14
17
  blockExplorers: {
15
18
  default: {
16
- name: 'World Chain Sepolia Explorer',
19
+ name: 'Worldscan Sepolia',
20
+ url: 'https://sepolia.worldscan.org',
21
+ },
22
+ blockscout: {
23
+ name: 'Blockscout',
17
24
  url: 'https://worldchain-sepolia.explorer.alchemy.com',
25
+ apiUrl: 'https://worldchain-sepolia.explorer.alchemy.com/api',
26
+ },
27
+ },
28
+ contracts: {
29
+ ...chainConfig_js_1.chainConfig.contracts,
30
+ multicall3: {
31
+ address: '0xca11bde05977b3631167028862be2a173976ca11',
32
+ blockCreated: 0,
33
+ },
34
+ disputeGameFactory: {
35
+ [sourceId]: {
36
+ address: '0x8cF97Ee616C986a070F5020d973b456D0120C253',
37
+ },
38
+ },
39
+ l2OutputOracle: {
40
+ [sourceId]: {
41
+ address: '0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e',
42
+ },
43
+ },
44
+ portal: {
45
+ [sourceId]: {
46
+ address: '0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4',
47
+ },
48
+ },
49
+ l1StandardBridge: {
50
+ [sourceId]: {
51
+ address: '0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE',
52
+ },
18
53
  },
19
54
  },
20
55
  testnet: true,
56
+ sourceId,
21
57
  });
22
58
  //# sourceMappingURL=worldchainSepolia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"worldchainSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/worldchainSepolia.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,iBAAiB,GAAiB,IAAA,4BAAW,EAAC;IACzD,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;QACtE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;KACtE;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,8BAA8B;YACpC,GAAG,EAAE,iDAAiD;SACvD;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
1
+ {"version":3,"file":"worldchainSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/worldchainSepolia.ts"],"names":[],"mappings":";;;AAAA,kEAA2D;AAC3D,qEAA8D;AAE9D,MAAM,QAAQ,GAAG,UAAU,CAAA;AAEd,QAAA,iBAAiB,GAAiB,IAAA,4BAAW,EAAC;IACzD,GAAG,4BAAW;IACd,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;QACtE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,iDAAiD,CAAC,EAAE;KACtE;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,mBAAmB;YACzB,GAAG,EAAE,+BAA+B;SACrC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,iDAAiD;YACtD,MAAM,EAAE,qDAAqD;SAC9D;KACF;IACD,SAAS,EAAE;QACT,GAAG,4BAAW,CAAC,SAAS;QACxB,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,CAAC;SAChB;QACD,kBAAkB,EAAE;YAClB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,cAAc,EAAE;YACd,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,MAAM,EAAE;YACN,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;QACD,gBAAgB,EAAE;YAChB,CAAC,QAAQ,CAAC,EAAE;gBACV,OAAO,EAAE,4CAA4C;aACtD;SACF;KACF;IACD,OAAO,EAAE,IAAI;IACb,QAAQ;CACT,CAAC,CAAA"}
@@ -11,18 +11,18 @@ exports.xdc = (0, defineChain_js_1.defineChain)({
11
11
  symbol: 'XDC',
12
12
  },
13
13
  rpcUrls: {
14
- default: { http: ['https://rpc.xinfin.network'] },
14
+ default: { http: ['https://rpc.xdcrpc.com'] },
15
15
  },
16
16
  blockExplorers: {
17
17
  default: {
18
- name: 'Blocksscan',
19
- url: 'https://xdc.blocksscan.io',
18
+ name: 'XDCScan',
19
+ url: 'https://xdcscan.com',
20
20
  },
21
21
  },
22
22
  contracts: {
23
23
  multicall3: {
24
- address: '0xca11bde05977b3631167028862be2a173976ca11',
25
- blockCreated: 71542788,
24
+ address: '0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF',
25
+ blockCreated: 75884020,
26
26
  },
27
27
  },
28
28
  });
@@ -1 +1 @@
1
- {"version":3,"file":"xdc.js","sourceRoot":"","sources":["../../../chains/definitions/xdc.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,GAAG,GAAiB,IAAA,4BAAW,EAAC;IAC3C,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,gBAAgB;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,4BAA4B,CAAC,EAAE;KAClD;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,2BAA2B;SACjC;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"xdc.js","sourceRoot":"","sources":["../../../chains/definitions/xdc.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,GAAG,GAAiB,IAAA,4BAAW,EAAC;IAC3C,EAAE,EAAE,EAAE;IACN,IAAI,EAAE,gBAAgB;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,wBAAwB,CAAC,EAAE;KAC9C;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,qBAAqB;SAC3B;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;CACF,CAAC,CAAA"}