viem 2.0.0-rc.2 → 2.0.0-rc.3

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 (107) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/_cjs/accounts/generateMnemonic.js +2 -2
  3. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  4. package/_cjs/chains/definitions/arbitrumSepolia.js +2 -4
  5. package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
  6. package/_cjs/chains/definitions/bitTorrent.js +19 -0
  7. package/_cjs/chains/definitions/bitTorrent.js.map +1 -0
  8. package/_cjs/chains/definitions/bitTorrentTestnet.js +20 -0
  9. package/_cjs/chains/definitions/bitTorrentTestnet.js.map +1 -0
  10. package/_cjs/chains/definitions/jbc.js +32 -0
  11. package/_cjs/chains/definitions/jbc.js.map +1 -0
  12. package/_cjs/chains/definitions/wemix.js +19 -0
  13. package/_cjs/chains/definitions/wemix.js.map +1 -0
  14. package/_cjs/chains/definitions/wemixTestnet.js +20 -0
  15. package/_cjs/chains/definitions/wemixTestnet.js.map +1 -0
  16. package/_cjs/chains/index.js +14 -4
  17. package/_cjs/chains/index.js.map +1 -1
  18. package/_cjs/chains/opStack/abis.js.map +1 -1
  19. package/_cjs/chains/opStack/contracts.js.map +1 -1
  20. package/_cjs/chains/opStack/decorators/publicL1.js.map +1 -1
  21. package/_cjs/chains/opStack/decorators/publicL2.js.map +1 -1
  22. package/_cjs/chains/opStack/decorators/walletL1.js.map +1 -1
  23. package/_cjs/chains/opStack/decorators/walletL2.js.map +1 -1
  24. package/_cjs/errors/version.js +1 -1
  25. package/_esm/accounts/generateMnemonic.js +3 -2
  26. package/_esm/accounts/generateMnemonic.js.map +1 -1
  27. package/_esm/chains/definitions/arbitrumSepolia.js +2 -4
  28. package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
  29. package/_esm/chains/definitions/bitTorrent.js +16 -0
  30. package/_esm/chains/definitions/bitTorrent.js.map +1 -0
  31. package/_esm/chains/definitions/bitTorrentTestnet.js +17 -0
  32. package/_esm/chains/definitions/bitTorrentTestnet.js.map +1 -0
  33. package/_esm/chains/definitions/jbc.js +29 -0
  34. package/_esm/chains/definitions/jbc.js.map +1 -0
  35. package/_esm/chains/definitions/wemix.js +16 -0
  36. package/_esm/chains/definitions/wemix.js.map +1 -0
  37. package/_esm/chains/definitions/wemixTestnet.js +17 -0
  38. package/_esm/chains/definitions/wemixTestnet.js.map +1 -0
  39. package/_esm/chains/index.js +5 -0
  40. package/_esm/chains/index.js.map +1 -1
  41. package/_esm/chains/opStack/abis.js +4 -0
  42. package/_esm/chains/opStack/abis.js.map +1 -1
  43. package/_esm/chains/opStack/contracts.js +4 -0
  44. package/_esm/chains/opStack/contracts.js.map +1 -1
  45. package/_esm/chains/opStack/decorators/publicL1.js +15 -0
  46. package/_esm/chains/opStack/decorators/publicL1.js.map +1 -1
  47. package/_esm/chains/opStack/decorators/publicL2.js +15 -0
  48. package/_esm/chains/opStack/decorators/publicL2.js.map +1 -1
  49. package/_esm/chains/opStack/decorators/walletL1.js +17 -0
  50. package/_esm/chains/opStack/decorators/walletL1.js.map +1 -1
  51. package/_esm/chains/opStack/decorators/walletL2.js +17 -0
  52. package/_esm/chains/opStack/decorators/walletL2.js.map +1 -1
  53. package/_esm/errors/version.js +1 -1
  54. package/_types/accounts/generateMnemonic.d.ts +2 -1
  55. package/_types/accounts/generateMnemonic.d.ts.map +1 -1
  56. package/_types/actions/public/simulateContract.d.ts +2 -2
  57. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  58. package/_types/chains/definitions/arbitrumSepolia.d.ts +6 -2
  59. package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
  60. package/_types/chains/definitions/bitTorrent.d.ts +42 -0
  61. package/_types/chains/definitions/bitTorrent.d.ts.map +1 -0
  62. package/_types/chains/definitions/bitTorrentTestnet.d.ts +42 -0
  63. package/_types/chains/definitions/bitTorrentTestnet.d.ts.map +1 -0
  64. package/_types/chains/definitions/jbc.d.ts +36 -0
  65. package/_types/chains/definitions/jbc.d.ts.map +1 -0
  66. package/_types/chains/definitions/wemix.d.ts +42 -0
  67. package/_types/chains/definitions/wemix.d.ts.map +1 -0
  68. package/_types/chains/definitions/wemixTestnet.d.ts +42 -0
  69. package/_types/chains/definitions/wemixTestnet.d.ts.map +1 -0
  70. package/_types/chains/index.d.ts +5 -0
  71. package/_types/chains/index.d.ts.map +1 -1
  72. package/_types/chains/opStack/abis.d.ts +4 -0
  73. package/_types/chains/opStack/abis.d.ts.map +1 -1
  74. package/_types/chains/opStack/contracts.d.ts +4 -0
  75. package/_types/chains/opStack/contracts.d.ts.map +1 -1
  76. package/_types/chains/opStack/decorators/publicL1.d.ts +15 -0
  77. package/_types/chains/opStack/decorators/publicL1.d.ts.map +1 -1
  78. package/_types/chains/opStack/decorators/publicL2.d.ts +15 -0
  79. package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
  80. package/_types/chains/opStack/decorators/walletL1.d.ts +17 -0
  81. package/_types/chains/opStack/decorators/walletL1.d.ts.map +1 -1
  82. package/_types/chains/opStack/decorators/walletL2.d.ts +17 -0
  83. package/_types/chains/opStack/decorators/walletL2.d.ts.map +1 -1
  84. package/_types/chains/opStack/types/contract.d.ts +8 -7
  85. package/_types/chains/opStack/types/contract.d.ts.map +1 -1
  86. package/_types/clients/decorators/wallet.d.ts +2 -2
  87. package/_types/clients/decorators/wallet.d.ts.map +1 -1
  88. package/_types/errors/version.d.ts +1 -1
  89. package/accounts/generateMnemonic.ts +6 -2
  90. package/actions/public/simulateContract.ts +2 -2
  91. package/chains/definitions/arbitrumSepolia.ts +2 -4
  92. package/chains/definitions/bitTorrent.ts +16 -0
  93. package/chains/definitions/bitTorrentTestnet.ts +17 -0
  94. package/chains/definitions/jbc.ts +29 -0
  95. package/chains/definitions/wemix.ts +16 -0
  96. package/chains/definitions/wemixTestnet.ts +17 -0
  97. package/chains/index.ts +5 -0
  98. package/chains/opStack/abis.ts +4 -0
  99. package/chains/opStack/contracts.ts +4 -0
  100. package/chains/opStack/decorators/publicL1.ts +15 -0
  101. package/chains/opStack/decorators/publicL2.ts +15 -0
  102. package/chains/opStack/decorators/walletL1.ts +17 -0
  103. package/chains/opStack/decorators/walletL2.ts +17 -0
  104. package/chains/opStack/types/contract.ts +15 -6
  105. package/clients/decorators/wallet.ts +2 -2
  106. package/errors/version.ts +1 -1
  107. package/package.json +1 -1
@@ -14,6 +14,8 @@ export { baseGoerli } from './definitions/baseGoerli.js';
14
14
  export { baseSepolia } from './definitions/baseSepolia.js';
15
15
  export { bearNetworkChainMainnet } from './definitions/bearNetworkChainMainnet.js';
16
16
  export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.js';
17
+ export { bitTorrent } from './definitions/bitTorrent.js';
18
+ export { bitTorrentTestnet } from './definitions/bitTorrentTestnet.js';
17
19
  export { boba } from './definitions/boba.js';
18
20
  export { bronos } from './definitions/bronos.js';
19
21
  export { bronosTestnet } from './definitions/bronosTestnet.js';
@@ -57,6 +59,7 @@ export { fuse } from './definitions/fuse.js';
57
59
  export { fuseSparknet } from './definitions/fuseSparknet.js';
58
60
  export { iotex } from './definitions/iotex.js';
59
61
  export { iotexTestnet } from './definitions/iotexTestnet.js';
62
+ export { jbc } from './definitions/jbc.js';
60
63
  export { gobi } from './definitions/gobi.js';
61
64
  export { goerli } from './definitions/goerli.js';
62
65
  export { gnosis } from './definitions/gnosis.js';
@@ -160,6 +163,8 @@ export { thunderTestnet } from './definitions/thunderTestnet.js';
160
163
  export { vechain } from './definitions/vechain.js';
161
164
  export { wanchain } from './definitions/wanchain.js';
162
165
  export { wanchainTestnet } from './definitions/wanchainTestnet.js';
166
+ export { wemix } from './definitions/wemix.js';
167
+ export { wemixTestnet } from './definitions/wemixTestnet.js';
163
168
  export { xdc } from './definitions/xdc.js';
164
169
  export { xdcTestnet } from './definitions/xdcTestnet.js';
165
170
  export { zhejiang } from './definitions/zhejiang.js';
@@ -1 +1 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AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAK1D,YAAY,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,yBAAyB,EACzB,4BAA4B,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,qCAAqC,EACrC,kBAAkB,EAClB,yBAAyB,EACzB,kCAAkC,EAClC,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,gCAAgC,CAAA"}
@@ -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 declare const gasPriceOracleAbi: readonly [{
2
6
  readonly inputs: readonly [];
3
7
  readonly stateMutability: "nonpayable";
@@ -1 +1 @@
1
- {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../chains/opStack/abis.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEpB,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4TZ,CAAA"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Predeploy contracts for OP Stack.
3
+ * @see https://github.com/ethereum-optimism/optimism/blob/develop/specs/predeploys.md
4
+ */
1
5
  export declare const contracts: {
2
6
  readonly gasPriceOracle: {
3
7
  readonly address: "0x420000000000000000000000000000000000000F";
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../chains/opStack/contracts.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAWiB,CAAA"}
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../chains/opStack/contracts.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAWiB,CAAA"}
@@ -382,5 +382,20 @@ export type PublicActionsL1<chain extends Chain | undefined = Chain | undefined,
382
382
  */
383
383
  waitToProve: <chainOverride extends Chain | undefined = undefined>(parameters: WaitToProveParameters<chain, chainOverride>) => Promise<WaitToProveReturnType>;
384
384
  };
385
+ /**
386
+ * A suite of Public Actions for suited for development with Layer 2 (OP Stack) chains.
387
+ *
388
+ * - Docs: https://viem.sh/op-stack/client.html
389
+ *
390
+ * @example
391
+ * import { publicActionsL1 } from 'viem/op-stack'
392
+ * import { mainnet } from 'viem/chains'
393
+ * import { buildDepositTransaction } from 'viem/wallet'
394
+ *
395
+ * export const opStackPublicClientL1 = createWalletClient({
396
+ * chain: mainnet,
397
+ * transport: http(),
398
+ * }).extend(publicActionsL1())
399
+ */
385
400
  export declare function publicActionsL1(): <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => PublicActionsL1<TChain, TAccount>;
386
401
  //# sourceMappingURL=publicL1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"publicL1.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/decorators/publicL1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,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,EACL,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EAEvC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,uCAAuC,EAC5C,KAAK,uCAAuC,EAE7C,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACL,KAAK,uCAAuC,EAC5C,KAAK,uCAAuC,EAE7C,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EAE1C,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAE3B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAEjC,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EAErC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAE9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAEnC,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAEnC,MAAM,mCAAmC,CAAA;AAC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KAAK,GAAG,SAAS,GAAG,SAAS,EAClE,UAAU,EAAE,wBAAwB,CAAC,KAAK,EAAE,aAAa,CAAC,KACvD,OAAO,CAAC,wBAAwB,CAAC,CAAA;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,mBAAmB,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACvE,UAAU,EAAE,6BAA6B,CAAC,KAAK,EAAE,aAAa,CAAC,KAC5D,OAAO,CAAC,6BAA6B,CAAC,CAAA;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,mBAAmB,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACvE,UAAU,EAAE,6BAA6B,CAAC,KAAK,EAAE,aAAa,CAAC,KAC5D,OAAO,CAAC,6BAA6B,CAAC,CAAA;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,cAAc,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAClE,UAAU,EAAE,wBAAwB,CAAC,KAAK,EAAE,aAAa,CAAC,KACvD,OAAO,CAAC,wBAAwB,CAAC,CAAA;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,WAAW,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAC/D,UAAU,EAAE,qBAAqB,CAAC,KAAK,EAAE,aAAa,CAAC,KACpD,OAAO,CAAC,qBAAqB,CAAC,CAAA;CACpC,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,wOA0B9B"}
@@ -293,5 +293,20 @@ export type PublicActionsL2<chain extends Chain | undefined = Chain | undefined,
293
293
  */
294
294
  estimateTotalGas: <chainOverride extends Chain | undefined = undefined>(parameters: EstimateTotalGasParameters<chain, account, chainOverride>) => Promise<EstimateTotalGasReturnType>;
295
295
  };
296
+ /**
297
+ * A suite of Public Actions for suited for development with Layer 2 (OP Stack) chains.
298
+ *
299
+ * - Docs: https://viem.sh/op-stack/client.html
300
+ *
301
+ * @example
302
+ * import { publicActionsL2 } from 'viem/op-stack'
303
+ * import { optimism } from 'viem/chains'
304
+ * import { buildDepositTransaction } from 'viem/wallet'
305
+ *
306
+ * export const opStackPublicClientL1 = createWalletClient({
307
+ * chain: optimism,
308
+ * transport: http(),
309
+ * }).extend(publicActionsL1())
310
+ */
296
311
  export declare function publicActionsL2(): <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => PublicActionsL2<TChain, TAccount>;
297
312
  //# sourceMappingURL=publicL2.d.ts.map
@@ -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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,EAAE,OAAO,EAAE,aAAa,CAAC,KAC/D,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACrC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,aAAa,EAAE,CAAC,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EACjE,UAAU,EAAE,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KAC/D,OAAO,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,"file":"walletL1.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/decorators/walletL1.ts"],"names":[],"mappings":"AAAA,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,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAElC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAElC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,+BAA+B,CAAA;AAEtC,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACvD;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;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;IAC1C;;;;;;;;;;;;;;;;;;;;;;;OAu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E,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;IAC1C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;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;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,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,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAElC,MAAM,kCAAkC,CAAA;AAEzC,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,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,wBAAgB,eAAe,wOAY9B"}
1
+ {"version":3,"file":"walletL2.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/decorators/walletL2.ts"],"names":[],"mappings":"AAAA,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,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAElC,MAAM,kCAAkC,CAAA;AAEzC,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,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"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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":["../../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G,MAAM,EAAE,YAAY,CAAC,EACrE,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAEpD,IAAI,EAAE,uBAAuB,CAC3B,GAAG,EACH,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,cAAc,CACf,KACE,OAAO,CAAC,uBAAuB,CAAC,CAAA;CACtC,CAAA;AAED,wBAAgB,aAAa,CAC3B,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.3";
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>,
@@ -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,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,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
+ })
package/chains/index.ts CHANGED
@@ -15,6 +15,8 @@ export { baseGoerli } from './definitions/baseGoerli.js'
15
15
  export { baseSepolia } from './definitions/baseSepolia.js'
16
16
  export { bearNetworkChainMainnet } from './definitions/bearNetworkChainMainnet.js'
17
17
  export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.js'
18
+ export { bitTorrent } from './definitions/bitTorrent.js'
19
+ export { bitTorrentTestnet } from './definitions/bitTorrentTestnet.js'
18
20
  export { boba } from './definitions/boba.js'
19
21
  export { bronos } from './definitions/bronos.js'
20
22
  export { bronosTestnet } from './definitions/bronosTestnet.js'
@@ -58,6 +60,7 @@ export { fuse } from './definitions/fuse.js'
58
60
  export { fuseSparknet } from './definitions/fuseSparknet.js'
59
61
  export { iotex } from './definitions/iotex.js'
60
62
  export { iotexTestnet } from './definitions/iotexTestnet.js'
63
+ export { jbc } from './definitions/jbc.js'
61
64
  export { gobi } from './definitions/gobi.js'
62
65
  export { goerli } from './definitions/goerli.js'
63
66
  export { gnosis } from './definitions/gnosis.js'
@@ -161,6 +164,8 @@ export { thunderTestnet } from './definitions/thunderTestnet.js'
161
164
  export { vechain } from './definitions/vechain.js'
162
165
  export { wanchain } from './definitions/wanchain.js'
163
166
  export { wanchainTestnet } from './definitions/wanchainTestnet.js'
167
+ export { wemix } from './definitions/wemix.js'
168
+ export { wemixTestnet } from './definitions/wemixTestnet.js'
164
169
  export { xdc } from './definitions/xdc.js'
165
170
  export { xdcTestnet } from './definitions/xdcTestnet.js'
166
171
  export { zhejiang } from './definitions/zhejiang.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' },
@@ -485,6 +485,21 @@ export type PublicActionsL1<
485
485
  ) => Promise<WaitToProveReturnType>
486
486
  }
487
487
 
488
+ /**
489
+ * A suite of Public Actions for suited for development with Layer 2 (OP Stack) chains.
490
+ *
491
+ * - Docs: https://viem.sh/op-stack/client.html
492
+ *
493
+ * @example
494
+ * import { publicActionsL1 } from 'viem/op-stack'
495
+ * import { mainnet } from 'viem/chains'
496
+ * import { buildDepositTransaction } from 'viem/wallet'
497
+ *
498
+ * export const opStackPublicClientL1 = createWalletClient({
499
+ * chain: mainnet,
500
+ * transport: http(),
501
+ * }).extend(publicActionsL1())
502
+ */
488
503
  export function publicActionsL1() {
489
504
  return <
490
505
  TTransport extends Transport,
@@ -444,6 +444,21 @@ export type PublicActionsL2<
444
444
  ) => Promise<EstimateTotalGasReturnType>
445
445
  }
446
446
 
447
+ /**
448
+ * A suite of Public Actions for suited for development with Layer 2 (OP Stack) chains.
449
+ *
450
+ * - Docs: https://viem.sh/op-stack/client.html
451
+ *
452
+ * @example
453
+ * import { publicActionsL2 } from 'viem/op-stack'
454
+ * import { optimism } from 'viem/chains'
455
+ * import { buildDepositTransaction } from 'viem/wallet'
456
+ *
457
+ * export const opStackPublicClientL1 = createWalletClient({
458
+ * chain: optimism,
459
+ * transport: http(),
460
+ * }).extend(publicActionsL1())
461
+ */
447
462
  export function publicActionsL2() {
448
463
  return <
449
464
  TTransport extends Transport,
@@ -138,6 +138,23 @@ export type WalletActionsL1<
138
138
  ) => Promise<ProveWithdrawalReturnType>
139
139
  }
140
140
 
141
+ /**
142
+ * A suite of Wallet Actions for suited for development with Layer 2 (OP Stack) chains.
143
+ *
144
+ * - Docs: https://viem.sh/op-stack/client.html
145
+ *
146
+ * @example
147
+ * import { createPublicClient, createWalletClient, http } from 'viem'
148
+ * import { mainnet } from 'viem/chains'
149
+ * import { walletActionsL1 } from 'viem/op-stack'
150
+ *
151
+ * const walletClient = createWalletClient({
152
+ * chain: mainnet,
153
+ * transport: http(),
154
+ * }).extend(walletActionsL1())
155
+ *
156
+ * const hash = await walletClient.depositTransaction({...})
157
+ */
141
158
  export function walletActionsL1() {
142
159
  return <
143
160
  TTransport extends Transport,