viem 2.0.0-rc.2 → 2.0.0-rc.4

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/_cjs/_test/generated.js +313 -0
  3. package/_cjs/_test/generated.js.map +1 -0
  4. package/_cjs/accounts/generateMnemonic.js +2 -2
  5. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  6. package/_cjs/chains/definitions/acala.js +32 -0
  7. package/_cjs/chains/definitions/acala.js.map +1 -0
  8. package/_cjs/chains/definitions/arbitrumSepolia.js +2 -4
  9. package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
  10. package/_cjs/chains/definitions/bahamut.js +43 -0
  11. package/_cjs/chains/definitions/bahamut.js.map +1 -0
  12. package/_cjs/chains/definitions/bitTorrent.js +19 -0
  13. package/_cjs/chains/definitions/bitTorrent.js.map +1 -0
  14. package/_cjs/chains/definitions/bitTorrentTestnet.js +20 -0
  15. package/_cjs/chains/definitions/bitTorrentTestnet.js.map +1 -0
  16. package/_cjs/chains/definitions/jbc.js +32 -0
  17. package/_cjs/chains/definitions/jbc.js.map +1 -0
  18. package/_cjs/chains/definitions/karura.js +32 -0
  19. package/_cjs/chains/definitions/karura.js.map +1 -0
  20. package/_cjs/chains/definitions/klaytn.js +1 -1
  21. package/_cjs/chains/definitions/klaytn.js.map +1 -1
  22. package/_cjs/chains/definitions/mandala.js +32 -0
  23. package/_cjs/chains/definitions/mandala.js.map +1 -0
  24. package/_cjs/chains/definitions/oasisTestnet.js +22 -0
  25. package/_cjs/chains/definitions/oasisTestnet.js.map +1 -0
  26. package/_cjs/chains/definitions/opBNBTestnet.js +1 -1
  27. package/_cjs/chains/definitions/opBNBTestnet.js.map +1 -1
  28. package/_cjs/chains/definitions/wemix.js +19 -0
  29. package/_cjs/chains/definitions/wemix.js.map +1 -0
  30. package/_cjs/chains/definitions/wemixTestnet.js +20 -0
  31. package/_cjs/chains/definitions/wemixTestnet.js.map +1 -0
  32. package/_cjs/chains/definitions/zkFair.js +30 -0
  33. package/_cjs/chains/definitions/zkFair.js.map +1 -0
  34. package/_cjs/chains/definitions/zkFairTestnet.js +30 -0
  35. package/_cjs/chains/definitions/zkFairTestnet.js.map +1 -0
  36. package/_cjs/chains/index.js +28 -4
  37. package/_cjs/chains/index.js.map +1 -1
  38. package/_cjs/chains/opStack/abis.js.map +1 -1
  39. package/_cjs/chains/opStack/contracts.js.map +1 -1
  40. package/_cjs/chains/opStack/decorators/publicL1.js.map +1 -1
  41. package/_cjs/chains/opStack/decorators/publicL2.js.map +1 -1
  42. package/_cjs/chains/opStack/decorators/walletL1.js.map +1 -1
  43. package/_cjs/chains/opStack/decorators/walletL2.js.map +1 -1
  44. package/_cjs/errors/version.js +1 -1
  45. package/_esm/_test/generated.js +335 -0
  46. package/_esm/_test/generated.js.map +1 -0
  47. package/_esm/accounts/generateMnemonic.js +3 -2
  48. package/_esm/accounts/generateMnemonic.js.map +1 -1
  49. package/_esm/chains/definitions/acala.js +29 -0
  50. package/_esm/chains/definitions/acala.js.map +1 -0
  51. package/_esm/chains/definitions/arbitrumSepolia.js +2 -4
  52. package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
  53. package/_esm/chains/definitions/bahamut.js +40 -0
  54. package/_esm/chains/definitions/bahamut.js.map +1 -0
  55. package/_esm/chains/definitions/bitTorrent.js +16 -0
  56. package/_esm/chains/definitions/bitTorrent.js.map +1 -0
  57. package/_esm/chains/definitions/bitTorrentTestnet.js +17 -0
  58. package/_esm/chains/definitions/bitTorrentTestnet.js.map +1 -0
  59. package/_esm/chains/definitions/jbc.js +29 -0
  60. package/_esm/chains/definitions/jbc.js.map +1 -0
  61. package/_esm/chains/definitions/karura.js +29 -0
  62. package/_esm/chains/definitions/karura.js.map +1 -0
  63. package/_esm/chains/definitions/klaytn.js +1 -1
  64. package/_esm/chains/definitions/klaytn.js.map +1 -1
  65. package/_esm/chains/definitions/mandala.js +29 -0
  66. package/_esm/chains/definitions/mandala.js.map +1 -0
  67. package/_esm/chains/definitions/oasisTestnet.js +19 -0
  68. package/_esm/chains/definitions/oasisTestnet.js.map +1 -0
  69. package/_esm/chains/definitions/opBNBTestnet.js +1 -1
  70. package/_esm/chains/definitions/opBNBTestnet.js.map +1 -1
  71. package/_esm/chains/definitions/wemix.js +16 -0
  72. package/_esm/chains/definitions/wemix.js.map +1 -0
  73. package/_esm/chains/definitions/wemixTestnet.js +17 -0
  74. package/_esm/chains/definitions/wemixTestnet.js.map +1 -0
  75. package/_esm/chains/definitions/zkFair.js +27 -0
  76. package/_esm/chains/definitions/zkFair.js.map +1 -0
  77. package/_esm/chains/definitions/zkFairTestnet.js +27 -0
  78. package/_esm/chains/definitions/zkFairTestnet.js.map +1 -0
  79. package/_esm/chains/index.js +12 -0
  80. package/_esm/chains/index.js.map +1 -1
  81. package/_esm/chains/opStack/abis.js +4 -0
  82. package/_esm/chains/opStack/abis.js.map +1 -1
  83. package/_esm/chains/opStack/contracts.js +4 -0
  84. package/_esm/chains/opStack/contracts.js.map +1 -1
  85. package/_esm/chains/opStack/decorators/publicL1.js +15 -0
  86. package/_esm/chains/opStack/decorators/publicL1.js.map +1 -1
  87. package/_esm/chains/opStack/decorators/publicL2.js +15 -0
  88. package/_esm/chains/opStack/decorators/publicL2.js.map +1 -1
  89. package/_esm/chains/opStack/decorators/walletL1.js +17 -0
  90. package/_esm/chains/opStack/decorators/walletL1.js.map +1 -1
  91. package/_esm/chains/opStack/decorators/walletL2.js +17 -0
  92. package/_esm/chains/opStack/decorators/walletL2.js.map +1 -1
  93. package/_esm/errors/version.js +1 -1
  94. package/_test/generated.ts +350 -0
  95. package/_types/_test/generated.d.ts +428 -0
  96. package/_types/_test/generated.d.ts.map +1 -0
  97. package/_types/accounts/generateMnemonic.d.ts +2 -1
  98. package/_types/accounts/generateMnemonic.d.ts.map +1 -1
  99. package/_types/actions/public/simulateContract.d.ts +2 -2
  100. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  101. package/_types/chains/definitions/acala.d.ts +40 -0
  102. package/_types/chains/definitions/acala.d.ts.map +1 -0
  103. package/_types/chains/definitions/arbitrumSepolia.d.ts +6 -2
  104. package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
  105. package/_types/chains/definitions/bahamut.d.ts +40 -0
  106. package/_types/chains/definitions/bahamut.d.ts.map +1 -0
  107. package/_types/chains/definitions/bitTorrent.d.ts +42 -0
  108. package/_types/chains/definitions/bitTorrent.d.ts.map +1 -0
  109. package/_types/chains/definitions/bitTorrentTestnet.d.ts +42 -0
  110. package/_types/chains/definitions/bitTorrentTestnet.d.ts.map +1 -0
  111. package/_types/chains/definitions/jbc.d.ts +36 -0
  112. package/_types/chains/definitions/jbc.d.ts.map +1 -0
  113. package/_types/chains/definitions/karura.d.ts +40 -0
  114. package/_types/chains/definitions/karura.d.ts.map +1 -0
  115. package/_types/chains/definitions/klaytn.d.ts +1 -1
  116. package/_types/chains/definitions/mandala.d.ts +40 -0
  117. package/_types/chains/definitions/mandala.d.ts.map +1 -0
  118. package/_types/chains/definitions/oasisTestnet.d.ts +38 -0
  119. package/_types/chains/definitions/oasisTestnet.d.ts.map +1 -0
  120. package/_types/chains/definitions/opBNBTestnet.d.ts +1 -1
  121. package/_types/chains/definitions/wemix.d.ts +42 -0
  122. package/_types/chains/definitions/wemix.d.ts.map +1 -0
  123. package/_types/chains/definitions/wemixTestnet.d.ts +42 -0
  124. package/_types/chains/definitions/wemixTestnet.d.ts.map +1 -0
  125. package/_types/chains/definitions/zkFair.d.ts +38 -0
  126. package/_types/chains/definitions/zkFair.d.ts.map +1 -0
  127. package/_types/chains/definitions/zkFairTestnet.d.ts +38 -0
  128. package/_types/chains/definitions/zkFairTestnet.d.ts.map +1 -0
  129. package/_types/chains/index.d.ts +12 -0
  130. package/_types/chains/index.d.ts.map +1 -1
  131. package/_types/chains/opStack/abis.d.ts +4 -0
  132. package/_types/chains/opStack/abis.d.ts.map +1 -1
  133. package/_types/chains/opStack/contracts.d.ts +4 -0
  134. package/_types/chains/opStack/contracts.d.ts.map +1 -1
  135. package/_types/chains/opStack/decorators/publicL1.d.ts +15 -0
  136. package/_types/chains/opStack/decorators/publicL1.d.ts.map +1 -1
  137. package/_types/chains/opStack/decorators/publicL2.d.ts +15 -0
  138. package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
  139. package/_types/chains/opStack/decorators/walletL1.d.ts +17 -0
  140. package/_types/chains/opStack/decorators/walletL1.d.ts.map +1 -1
  141. package/_types/chains/opStack/decorators/walletL2.d.ts +17 -0
  142. package/_types/chains/opStack/decorators/walletL2.d.ts.map +1 -1
  143. package/_types/chains/opStack/types/contract.d.ts +8 -7
  144. package/_types/chains/opStack/types/contract.d.ts.map +1 -1
  145. package/_types/clients/decorators/wallet.d.ts +2 -2
  146. package/_types/clients/decorators/wallet.d.ts.map +1 -1
  147. package/_types/errors/version.d.ts +1 -1
  148. package/accounts/generateMnemonic.ts +6 -2
  149. package/actions/public/simulateContract.ts +2 -2
  150. package/chains/definitions/acala.ts +29 -0
  151. package/chains/definitions/arbitrumSepolia.ts +2 -4
  152. package/chains/definitions/bahamut.ts +40 -0
  153. package/chains/definitions/bitTorrent.ts +16 -0
  154. package/chains/definitions/bitTorrentTestnet.ts +17 -0
  155. package/chains/definitions/jbc.ts +29 -0
  156. package/chains/definitions/karura.ts +29 -0
  157. package/chains/definitions/klaytn.ts +1 -1
  158. package/chains/definitions/mandala.ts +29 -0
  159. package/chains/definitions/oasisTestnet.ts +19 -0
  160. package/chains/definitions/opBNBTestnet.ts +1 -1
  161. package/chains/definitions/wemix.ts +16 -0
  162. package/chains/definitions/wemixTestnet.ts +17 -0
  163. package/chains/definitions/zkFair.ts +27 -0
  164. package/chains/definitions/zkFairTestnet.ts +27 -0
  165. package/chains/index.ts +12 -0
  166. package/chains/opStack/abis.ts +4 -0
  167. package/chains/opStack/contracts.ts +4 -0
  168. package/chains/opStack/decorators/publicL1.ts +15 -0
  169. package/chains/opStack/decorators/publicL2.ts +15 -0
  170. package/chains/opStack/decorators/walletL1.ts +17 -0
  171. package/chains/opStack/decorators/walletL2.ts +17 -0
  172. package/chains/opStack/types/contract.ts +15 -6
  173. package/clients/decorators/wallet.ts +2 -2
  174. package/errors/version.ts +1 -1
  175. package/package.json +12 -34
@@ -1 +1 @@
1
- {"version":3,"file":"publicL2.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/decorators/publicL2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EAEvC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EAEpC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EAExC,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EAExC,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,KAAK,uCAAuC,EAC5C,KAAK,uCAAuC,EAE7C,MAAM,6CAA6C,CAAA;AACpD,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O,CAAC,uBAAuB,CAAC,CAAA;IACrC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,gBAAgB,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACpE,UAAU,EAAE,0BAA0B,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KAClE,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACxC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,gBAAgB,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACpE,UAAU,EAAE,0BAA0B,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KAClE,OAAO,CAAC,0BAA0B,CAAC,CAAA;CACzC,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,wOAyB9B"}
@@ -115,5 +115,22 @@ export type WalletActionsL1<chain extends Chain | undefined = Chain | undefined,
115
115
  */
116
116
  proveWithdrawal: <chainOverride extends Chain | undefined = undefined>(parameters: ProveWithdrawalParameters<chain, account, chainOverride>) => Promise<ProveWithdrawalReturnType>;
117
117
  };
118
+ /**
119
+ * A suite of Wallet Actions for suited for development with Layer 2 (OP Stack) chains.
120
+ *
121
+ * - Docs: https://viem.sh/op-stack/client.html
122
+ *
123
+ * @example
124
+ * import { createPublicClient, createWalletClient, http } from 'viem'
125
+ * import { mainnet } from 'viem/chains'
126
+ * import { walletActionsL1 } from 'viem/op-stack'
127
+ *
128
+ * const walletClient = createWalletClient({
129
+ * chain: mainnet,
130
+ * transport: http(),
131
+ * }).extend(walletActionsL1())
132
+ *
133
+ * const hash = await walletClient.depositTransaction({...})
134
+ */
118
135
  export declare function walletActionsL1(): <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => WalletActionsL1<TChain, TAccount>;
119
136
  //# sourceMappingURL=walletL1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,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GAAG,SAAS,EACtE,UAAU,EAAE,4BAA4B,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KACpE,OAAO,CAAC,4BAA4B,CAAC,CAAA;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,eAAe,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACnE,UAAU,EAAE,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KACjE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACxC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,wOAc9B"}
@@ -58,5 +58,22 @@ export type WalletActionsL2<chain extends Chain | undefined = Chain | undefined,
58
58
  */
59
59
  initiateWithdrawal: <chainOverride extends Chain | undefined = undefined>(parameters: InitiateWithdrawalParameters<chain, account, chainOverride>) => Promise<InitiateWithdrawalReturnType>;
60
60
  };
61
+ /**
62
+ * A suite of Wallet Actions for suited for development with Layer 2 (OP Stack) chains.
63
+ *
64
+ * - Docs: https://viem.sh/op-stack/client.html
65
+ *
66
+ * @example
67
+ * import { createPublicClient, createWalletClient, http } from 'viem'
68
+ * import { mainnet } from 'viem/chains'
69
+ * import { walletActionsL1 } from 'viem/op-stack'
70
+ *
71
+ * const walletClient = createWalletClient({
72
+ * chain: mainnet,
73
+ * transport: http(),
74
+ * }).extend(walletActionsL1())
75
+ *
76
+ * const hash = await walletClient.depositTransaction({...})
77
+ */
61
78
  export declare function walletActionsL2(): <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => WalletActionsL2<TChain, TAccount>;
62
79
  //# sourceMappingURL=walletL2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"walletL2.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/decorators/walletL2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MA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AAO,GAAG,SAAS,IACvD;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,kBAAkB,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACtE,UAAU,EAAE,4BAA4B,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KACpE,OAAO,CAAC,4BAA4B,CAAC,CAAA;CAC3C,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,wOAY9B"}
@@ -1,13 +1,14 @@
1
1
  import type { Address } from 'abitype';
2
2
  import type { Chain } from '../../../types/chain.js';
3
+ import type { Prettify } from '../../../types/utils.js';
3
4
  import type { TargetChain } from './chain.js';
4
- export type GetContractAddressParameter<chain extends Chain | undefined, contractName extends string> = (chain extends Chain ? {
5
- [_key in `${contractName}Address`]?: undefined;
6
- } & {
7
- targetChain: TargetChain<chain, contractName>;
8
- } : never) | ({
9
- [_key in `${contractName}Address`]: Address;
5
+ export type GetContractAddressParameter<chain extends Chain | undefined, contractName extends string> = (chain extends Chain ? Prettify<{
6
+ targetChain: Prettify<TargetChain<chain, contractName>>;
10
7
  } & {
8
+ [_ in `${contractName}Address`]?: undefined;
9
+ }> : never) | Prettify<{
11
10
  targetChain?: undefined;
12
- });
11
+ } & {
12
+ [_ in `${contractName}Address`]: Address;
13
+ }>;
13
14
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/types/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,MAAM,2BAA2B,CACrC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,YAAY,SAAS,MAAM,IAEzB,CAAC,KAAK,SAAS,KAAK,GAChB;KACG,IAAI,IAAI,GAAG,YAAY,SAAS,CAAC,CAAC,EAAE,SAAS;CAC/C,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;CAAE,GACrD,KAAK,CAAC,GACV,CAAC;KACE,IAAI,IAAI,GAAG,YAAY,SAAS,GAAG,OAAO;CAC5C,GAAG;IAAE,WAAW,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/types/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,MAAM,2BAA2B,CACrC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,YAAY,SAAS,MAAM,IAEzB,CAAC,KAAK,SAAS,KAAK,GAChB,QAAQ,CACN;IACE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAA;CACxD,GAAG;KACD,CAAC,IAAI,GAAG,YAAY,SAAS,CAAC,CAAC,EAAE,SAAS;CAC5C,CACF,GACD,KAAK,CAAC,GACV,QAAQ,CACN;IACE,WAAW,CAAC,EAAE,SAAS,CAAA;CACxB,GAAG;KACD,CAAC,IAAI,GAAG,YAAY,SAAS,GAAG,OAAO;CACzC,CACF,CAAA"}
@@ -274,7 +274,7 @@ export type WalletActions<TChain extends Chain | undefined = Chain | undefined,
274
274
  * value: 1000000000000000000n,
275
275
  * })
276
276
  */
277
- sendTransaction: <TChainOverride extends Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride>) => Promise<SendTransactionReturnType>;
277
+ sendTransaction: <TChainOverride extends Chain | undefined = undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride>) => Promise<SendTransactionReturnType>;
278
278
  /**
279
279
  * Calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191): `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.
280
280
  *
@@ -555,7 +555,7 @@ export type WalletActions<TChain extends Chain | undefined = Chain | undefined,
555
555
  * }
556
556
  * const hash = await client.writeContract(request)
557
557
  */
558
- writeContract: <const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'payable' | 'nonpayable'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, TChainOverride extends Chain | undefined>(args: WriteContractParameters<abi, functionName, args, TChain, TAccount, TChainOverride>) => Promise<WriteContractReturnType>;
558
+ writeContract: <const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'payable' | 'nonpayable'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, TChainOverride extends Chain | undefined = undefined>(args: WriteContractParameters<abi, functionName, args, TChain, TAccount, TChainOverride>) => Promise<WriteContractReturnType>;
559
559
  };
560
560
  export declare function walletActions<TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>): WalletActions<TChain, TAccount>;
561
561
  //# sourceMappingURL=wallet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../clients/decorators/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,KAAK,kB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UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,GAC3C,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAoBjC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-rc.2";
1
+ export declare const version = "2.0.0-rc.4";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -7,9 +7,13 @@ export type GenerateMnemonicErrorType = ErrorType
7
7
  * @description Generates a random mnemonic phrase with a given wordlist.
8
8
  *
9
9
  * @param wordlist The wordlist to use for generating the mnemonic phrase.
10
+ * @param strength mnemonic strength 128-256 bits
10
11
  *
11
12
  * @returns A randomly generated mnemonic phrase.
12
13
  */
13
- export function generateMnemonic(wordlist: string[]): string {
14
- return generateMnemonic_(wordlist)
14
+ export function generateMnemonic(
15
+ wordlist: string[],
16
+ strength?: number,
17
+ ): string {
18
+ return generateMnemonic_(wordlist, strength)
15
19
  }
@@ -135,7 +135,7 @@ export type SimulateContractReturnType<
135
135
  functionName,
136
136
  args
137
137
  > & {
138
- chain: chainOverride
138
+ chain: DeriveChain<chain, chainOverride>
139
139
  } & (resolvedAccount extends Account
140
140
  ? { account: resolvedAccount }
141
141
  : { account?: undefined })
@@ -189,7 +189,7 @@ export async function simulateContract<
189
189
  'nonpayable' | 'payable',
190
190
  functionName
191
191
  >,
192
- chainOverride extends Chain | undefined,
192
+ chainOverride extends Chain | undefined = undefined,
193
193
  accountOverride extends Account | Address | undefined = undefined,
194
194
  >(
195
195
  client: Client<Transport, chain, account>,
@@ -0,0 +1,29 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const acala = /*#__PURE__*/ defineChain({
4
+ id: 787,
5
+ name: 'Acala',
6
+ network: 'acala',
7
+ nativeCurrency: {
8
+ name: 'Acala',
9
+ symbol: 'ACA',
10
+ decimals: 18,
11
+ },
12
+ rpcUrls: {
13
+ public: {
14
+ http: ['https://eth-rpc-acala.aca-api.network'],
15
+ webSocket: ['wss://eth-rpc-acala.aca-api.network'],
16
+ },
17
+ default: {
18
+ http: ['https://eth-rpc-acala.aca-api.network'],
19
+ webSocket: ['wss://eth-rpc-acala.aca-api.network'],
20
+ },
21
+ },
22
+ blockExplorers: {
23
+ default: {
24
+ name: 'Acala Blockscout',
25
+ url: 'https://blockscout.acala.network',
26
+ },
27
+ },
28
+ testnet: false,
29
+ })
@@ -18,10 +18,8 @@ export const arbitrumSepolia = /*#__PURE__*/ defineChain({
18
18
  },
19
19
  },
20
20
  blockExplorers: {
21
- default: {
22
- name: 'Blockscout',
23
- url: 'https://sepolia-explorer.arbitrum.io',
24
- },
21
+ etherscan: { name: 'Arbiscan', url: 'https://sepolia.arbiscan.io' },
22
+ default: { name: 'Arbiscan', url: 'https://sepolia.arbiscan.io' },
25
23
  },
26
24
  contracts: {
27
25
  multicall3: {
@@ -0,0 +1,40 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const bahamut = /*#__PURE__*/ defineChain({
4
+ id: 5165,
5
+ network: 'bahamut',
6
+ name: 'Bahamut',
7
+ nativeCurrency: { name: 'Fasttoken', symbol: 'FTN', decimals: 18 },
8
+ rpcUrls: {
9
+ default: {
10
+ http: [
11
+ 'https://rpc1.bahamut.io',
12
+ 'https://bahamut.publicnode.com',
13
+ 'https://rpc2.bahamut.io',
14
+ ],
15
+ webSocket: [
16
+ 'wss://ws1.sahara.bahamutchain.com',
17
+ 'wss://bahamut.publicnode.com',
18
+ 'wss://ws2.sahara.bahamutchain.com',
19
+ ],
20
+ },
21
+ public: {
22
+ http: [
23
+ 'https://rpc1.bahamut.io',
24
+ 'https://bahamut.publicnode.com',
25
+ 'https://rpc2.bahamut.io',
26
+ ],
27
+ webSocket: [
28
+ 'wss://ws1.sahara.bahamutchain.com',
29
+ 'wss://bahamut.publicnode.com',
30
+ 'wss://ws2.sahara.bahamutchain.com',
31
+ ],
32
+ },
33
+ },
34
+ blockExplorers: {
35
+ default: {
36
+ name: 'Ftnscan',
37
+ url: 'https://www.ftnscan.com',
38
+ },
39
+ },
40
+ })
@@ -0,0 +1,16 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const bitTorrent = /*#__PURE__*/ defineChain({
4
+ id: 199,
5
+ name: 'BitTorrent',
6
+ network: 'bittorrent-chain-mainnet',
7
+ nativeCurrency: { name: 'BitTorrent', symbol: 'BTT', decimals: 18 },
8
+ rpcUrls: {
9
+ default: { http: ['https://rpc.bittorrentchain.io'] },
10
+ public: { http: ['https://rpc.bittorrentchain.io'] },
11
+ },
12
+ blockExplorers: {
13
+ etherscan: { name: 'Bttcscan', url: 'https://bttcscan.com' },
14
+ default: { name: 'Bttcscan', url: 'https://bttcscan.com' },
15
+ },
16
+ })
@@ -0,0 +1,17 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const bitTorrentTestnet = /*#__PURE__*/ defineChain({
4
+ id: 1028,
5
+ name: 'BitTorrent Chain Testnet',
6
+ network: 'bittorrent-chain-testnet',
7
+ nativeCurrency: { name: 'BitTorrent', symbol: 'BTT', decimals: 18 },
8
+ rpcUrls: {
9
+ default: { http: ['https://testrpc.bittorrentchain.io'] },
10
+ public: { http: ['https://testrpc.bittorrentchain.io'] },
11
+ },
12
+ blockExplorers: {
13
+ etherscan: { name: 'Bttcscan', url: 'https://testnet.bttcscan.com' },
14
+ default: { name: 'Bttcscan', url: 'https://testnet.bttcscan.com' },
15
+ },
16
+ testnet: true,
17
+ })
@@ -0,0 +1,29 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const jbc = /*#__PURE__*/ defineChain({
4
+ id: 8899,
5
+ name: 'JIBCHAIN L1',
6
+ network: 'jbc',
7
+ nativeCurrency: { name: 'JBC', symbol: 'JBC', decimals: 18 },
8
+ rpcUrls: {
9
+ default: {
10
+ http: ['https://rpc-l1.jibchain.net'],
11
+ },
12
+ public: {
13
+ http: ['https://rpc-l1.jibchain.net'],
14
+ },
15
+ },
16
+ blockExplorers: {
17
+ default: {
18
+ name: 'Blockscout',
19
+ url: 'https://exp-l1.jibchain.net',
20
+ },
21
+ },
22
+ contracts: {
23
+ multicall3: {
24
+ address: '0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC',
25
+ blockCreated: 2299048,
26
+ },
27
+ },
28
+ testnet: false,
29
+ })
@@ -0,0 +1,29 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const karura = /*#__PURE__*/ defineChain({
4
+ id: 686,
5
+ name: 'Karura',
6
+ network: 'karura',
7
+ nativeCurrency: {
8
+ name: 'Karura',
9
+ symbol: 'KAR',
10
+ decimals: 18,
11
+ },
12
+ rpcUrls: {
13
+ public: {
14
+ http: ['https://eth-rpc-karura.aca-api.network'],
15
+ webSocket: ['wss://eth-rpc-karura.aca-api.network'],
16
+ },
17
+ default: {
18
+ http: ['https://eth-rpc-karura.aca-api.network'],
19
+ webSocket: ['wss://eth-rpc-karura.aca-api.network'],
20
+ },
21
+ },
22
+ blockExplorers: {
23
+ default: {
24
+ name: 'Karura Blockscout',
25
+ url: 'https://blockscout.karura.network',
26
+ },
27
+ },
28
+ testnet: false,
29
+ })
@@ -9,7 +9,7 @@ export const klaytn = /*#__PURE__*/ defineChain({
9
9
  symbol: 'KLAY',
10
10
  },
11
11
  rpcUrls: {
12
- default: { http: ['https://cypress.fautor.app/archive'] },
12
+ default: { http: ['https://public-en-cypress.klaytn.net'] },
13
13
  },
14
14
  blockExplorers: {
15
15
  default: { name: 'KlaytnScope', url: 'https://scope.klaytn.com' },
@@ -0,0 +1,29 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const mandala = /*#__PURE__*/ defineChain({
4
+ id: 595,
5
+ name: 'Mandala TC9',
6
+ network: 'mandala',
7
+ nativeCurrency: {
8
+ name: 'Mandala',
9
+ symbol: 'mACA',
10
+ decimals: 18,
11
+ },
12
+ rpcUrls: {
13
+ public: {
14
+ http: ['https://eth-rpc-tc9.aca-staging.network'],
15
+ webSocket: ['wss://eth-rpc-tc9.aca-staging.network'],
16
+ },
17
+ default: {
18
+ http: ['https://eth-rpc-tc9.aca-staging.network'],
19
+ webSocket: ['wss://eth-rpc-tc9.aca-staging.network'],
20
+ },
21
+ },
22
+ blockExplorers: {
23
+ default: {
24
+ name: 'Mandala Blockscout',
25
+ url: 'https://blockscout.mandala.aca-staging.network',
26
+ },
27
+ },
28
+ testnet: true,
29
+ })
@@ -0,0 +1,19 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const oasisTestnet = /*#__PURE__*/ defineChain({
4
+ id: 4090,
5
+ network: 'oasis-testnet',
6
+ name: 'Oasis Testnet',
7
+ nativeCurrency: { name: 'Fasttoken', symbol: 'FTN', decimals: 18 },
8
+ rpcUrls: {
9
+ default: { http: ['https://rpc1.oasis.bahamutchain.com'] },
10
+ public: { http: ['https://rpc1.oasis.bahamutchain.com'] },
11
+ },
12
+ blockExplorers: {
13
+ default: {
14
+ name: 'Ftnscan',
15
+ url: 'https://oasis.ftnscan.com',
16
+ },
17
+ },
18
+ testnet: true,
19
+ })
@@ -12,7 +12,7 @@ export const opBNBTestnet = /*#__PURE__*/ defineChain({
12
12
  default: { http: ['https://opbnb-testnet-rpc.bnbchain.org'] },
13
13
  },
14
14
  blockExplorers: {
15
- default: { name: 'opbnbscan', url: 'https://opbnbscan.com' },
15
+ default: { name: 'opbnbscan', url: 'https://testnet.opbnbscan.com' },
16
16
  },
17
17
  contracts: {
18
18
  multicall3: {
@@ -0,0 +1,16 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const wemix = /*#__PURE__*/ defineChain({
4
+ id: 1111,
5
+ name: 'WEMIX',
6
+ network: 'wemix-mainnet',
7
+ nativeCurrency: { name: 'WEMIX', symbol: 'WEMIX', decimals: 18 },
8
+ rpcUrls: {
9
+ default: { http: ['https://api.wemix.com'] },
10
+ public: { http: ['https://api.wemix.com'] },
11
+ },
12
+ blockExplorers: {
13
+ etherscan: { name: 'wemixExplorer', url: 'https://explorer.wemix.com' },
14
+ default: { name: 'wemixExplorer', url: 'https://explorer.wemix.com' },
15
+ },
16
+ })
@@ -0,0 +1,17 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const wemixTestnet = /*#__PURE__*/ defineChain({
4
+ id: 1112,
5
+ name: 'WEMIX Testnet',
6
+ network: 'wemix-testnet',
7
+ nativeCurrency: { name: 'WEMIX', symbol: 'tWEMIX', decimals: 18 },
8
+ rpcUrls: {
9
+ default: { http: ['https://api.test.wemix.com'] },
10
+ public: { http: ['https://api.test.wemix.com'] },
11
+ },
12
+ blockExplorers: {
13
+ etherscan: { name: 'wemixExplorer', url: 'https://testnet.wemixscan.com' },
14
+ default: { name: 'wemixExplorer', url: 'https://testnet.wemixscan.com' },
15
+ },
16
+ testnet: true,
17
+ })
@@ -0,0 +1,27 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const zkFair = /*#__PURE__*/ defineChain({
4
+ id: 42766,
5
+ name: 'ZKFair Mainnet',
6
+ network: 'zkfair-mainnet',
7
+ nativeCurrency: {
8
+ decimals: 18,
9
+ name: 'USD Coin',
10
+ symbol: 'USDC',
11
+ },
12
+ rpcUrls: {
13
+ default: {
14
+ http: ['https://rpc.zkfair.io'],
15
+ },
16
+ public: {
17
+ http: ['https://rpc.zkfair.io'],
18
+ },
19
+ },
20
+ blockExplorers: {
21
+ default: {
22
+ name: 'zkFair Explorer',
23
+ url: 'https://scan.zkfair.io',
24
+ },
25
+ },
26
+ testnet: false,
27
+ })
@@ -0,0 +1,27 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const zkFairTestnet = /*#__PURE__*/ defineChain({
4
+ id: 43851,
5
+ name: 'ZKFair Testnet',
6
+ network: 'zkfair-testnet',
7
+ nativeCurrency: {
8
+ decimals: 18,
9
+ name: 'USD Coin',
10
+ symbol: 'USDC',
11
+ },
12
+ rpcUrls: {
13
+ default: {
14
+ http: ['https://testnet-rpc.zkfair.io'],
15
+ },
16
+ public: {
17
+ http: ['https://testnet-rpc.zkfair.io'],
18
+ },
19
+ },
20
+ blockExplorers: {
21
+ default: {
22
+ name: 'zkFair Explorer',
23
+ url: 'https://testnet-scan.zkfair.io',
24
+ },
25
+ },
26
+ testnet: true,
27
+ })
package/chains/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type { Chain } from '../types/chain.js'
2
2
 
3
+ export { acala } from './definitions/acala.js'
3
4
  export { arbitrum } from './definitions/arbitrum.js'
4
5
  export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'
5
6
  export { arbitrumNova } from './definitions/arbitrumNova.js'
@@ -10,11 +11,14 @@ export { aurora } from './definitions/aurora.js'
10
11
  export { auroraTestnet } from './definitions/auroraTestnet.js'
11
12
  export { avalanche } from './definitions/avalanche.js'
12
13
  export { avalancheFuji } from './definitions/avalancheFuji.js'
14
+ export { bahamut } from './definitions/bahamut.js'
13
15
  export { base } from './definitions/base.js'
14
16
  export { baseGoerli } from './definitions/baseGoerli.js'
15
17
  export { baseSepolia } from './definitions/baseSepolia.js'
16
18
  export { bearNetworkChainMainnet } from './definitions/bearNetworkChainMainnet.js'
17
19
  export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.js'
20
+ export { bitTorrent } from './definitions/bitTorrent.js'
21
+ export { bitTorrentTestnet } from './definitions/bitTorrentTestnet.js'
18
22
  export { boba } from './definitions/boba.js'
19
23
  export { bronos } from './definitions/bronos.js'
20
24
  export { bronosTestnet } from './definitions/bronosTestnet.js'
@@ -58,6 +62,8 @@ export { fuse } from './definitions/fuse.js'
58
62
  export { fuseSparknet } from './definitions/fuseSparknet.js'
59
63
  export { iotex } from './definitions/iotex.js'
60
64
  export { iotexTestnet } from './definitions/iotexTestnet.js'
65
+ export { jbc } from './definitions/jbc.js'
66
+ export { karura } from './definitions/karura.js'
61
67
  export { gobi } from './definitions/gobi.js'
62
68
  export { goerli } from './definitions/goerli.js'
63
69
  export { gnosis } from './definitions/gnosis.js'
@@ -78,6 +84,7 @@ export { lineaTestnet } from './definitions/lineaTestnet.js'
78
84
  export { localhost } from './definitions/localhost.js'
79
85
  export { lukso } from './definitions/lukso.js'
80
86
  export { mainnet } from './definitions/mainnet.js'
87
+ export { mandala } from './definitions/mandala.js'
81
88
  export { manta } from './definitions/manta.js'
82
89
  export { mantaTestnet } from './definitions/mantaTestnet.js'
83
90
  export { mantle } from './definitions/mantle.js'
@@ -98,6 +105,7 @@ export { neonMainnet } from './definitions/neonMainnet.js'
98
105
  export { nexi } from './definitions/nexi.js'
99
106
  export { nexilix } from './definitions/nexilix.js'
100
107
  export { oasys } from './definitions/oasys.js'
108
+ export { oasisTestnet } from './definitions/oasisTestnet.js'
101
109
  export { okc } from './definitions/okc.js'
102
110
  export { optimism } from './definitions/optimism.js'
103
111
  export { optimismGoerli } from './definitions/optimismGoerli.js'
@@ -161,9 +169,13 @@ export { thunderTestnet } from './definitions/thunderTestnet.js'
161
169
  export { vechain } from './definitions/vechain.js'
162
170
  export { wanchain } from './definitions/wanchain.js'
163
171
  export { wanchainTestnet } from './definitions/wanchainTestnet.js'
172
+ export { wemix } from './definitions/wemix.js'
173
+ export { wemixTestnet } from './definitions/wemixTestnet.js'
164
174
  export { xdc } from './definitions/xdc.js'
165
175
  export { xdcTestnet } from './definitions/xdcTestnet.js'
166
176
  export { zhejiang } from './definitions/zhejiang.js'
177
+ export { zkFair } from './definitions/zkFair.js'
178
+ export { zkFairTestnet } from './definitions/zkFairTestnet.js'
167
179
  export { zkSync } from './definitions/zkSync.js'
168
180
  export { zkSyncTestnet } from './definitions/zkSyncTestnet.js'
169
181
  export { zkSyncSepoliaTestnet } from './definitions/zkSyncSepoliaTestnet.js'
@@ -1,3 +1,7 @@
1
+ /**
2
+ * ABI for the OP Stack [`GasPriceOracle` contract](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/GasPriceOracle.sol).
3
+ * @see https://optimistic.etherscan.io/address/0x420000000000000000000000000000000000000f
4
+ */
1
5
  export const gasPriceOracleAbi = [
2
6
  { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
3
7
  {
@@ -1,5 +1,9 @@
1
1
  import type { Chain } from '../../types/chain.js'
2
2
 
3
+ /**
4
+ * Predeploy contracts for OP Stack.
5
+ * @see https://github.com/ethereum-optimism/optimism/blob/develop/specs/predeploys.md
6
+ */
3
7
  export const contracts = {
4
8
  gasPriceOracle: { address: '0x420000000000000000000000000000000000000F' },
5
9
  l1Block: { address: '0x4200000000000000000000000000000000000015' },