viem 2.0.0-rc.1 → 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.
- package/CHANGELOG.md +18 -0
- package/_cjs/accounts/generateMnemonic.js +2 -2
- package/_cjs/accounts/generateMnemonic.js.map +1 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js +2 -4
- package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_cjs/chains/definitions/bitTorrent.js +19 -0
- package/_cjs/chains/definitions/bitTorrent.js.map +1 -0
- package/_cjs/chains/definitions/bitTorrentTestnet.js +20 -0
- package/_cjs/chains/definitions/bitTorrentTestnet.js.map +1 -0
- package/_cjs/chains/definitions/jbc.js +32 -0
- package/_cjs/chains/definitions/jbc.js.map +1 -0
- package/_cjs/chains/definitions/wemix.js +19 -0
- package/_cjs/chains/definitions/wemix.js.map +1 -0
- package/_cjs/chains/definitions/wemixTestnet.js +20 -0
- package/_cjs/chains/definitions/wemixTestnet.js.map +1 -0
- package/_cjs/chains/index.js +14 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/opStack/abis.js.map +1 -1
- package/_cjs/chains/opStack/contracts.js.map +1 -1
- package/_cjs/chains/opStack/decorators/publicL1.js.map +1 -1
- package/_cjs/chains/opStack/decorators/publicL2.js.map +1 -1
- package/_cjs/chains/opStack/decorators/walletL1.js.map +1 -1
- package/_cjs/chains/opStack/decorators/walletL2.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/accounts/generateMnemonic.js +3 -2
- package/_esm/accounts/generateMnemonic.js.map +1 -1
- package/_esm/chains/definitions/arbitrumSepolia.js +2 -4
- package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_esm/chains/definitions/bitTorrent.js +16 -0
- package/_esm/chains/definitions/bitTorrent.js.map +1 -0
- package/_esm/chains/definitions/bitTorrentTestnet.js +17 -0
- package/_esm/chains/definitions/bitTorrentTestnet.js.map +1 -0
- package/_esm/chains/definitions/jbc.js +29 -0
- package/_esm/chains/definitions/jbc.js.map +1 -0
- package/_esm/chains/definitions/wemix.js +16 -0
- package/_esm/chains/definitions/wemix.js.map +1 -0
- package/_esm/chains/definitions/wemixTestnet.js +17 -0
- package/_esm/chains/definitions/wemixTestnet.js.map +1 -0
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/opStack/abis.js +4 -0
- package/_esm/chains/opStack/abis.js.map +1 -1
- package/_esm/chains/opStack/contracts.js +4 -0
- package/_esm/chains/opStack/contracts.js.map +1 -1
- package/_esm/chains/opStack/decorators/publicL1.js +15 -0
- package/_esm/chains/opStack/decorators/publicL1.js.map +1 -1
- package/_esm/chains/opStack/decorators/publicL2.js +15 -0
- package/_esm/chains/opStack/decorators/publicL2.js.map +1 -1
- package/_esm/chains/opStack/decorators/walletL1.js +17 -0
- package/_esm/chains/opStack/decorators/walletL1.js.map +1 -1
- package/_esm/chains/opStack/decorators/walletL2.js +17 -0
- package/_esm/chains/opStack/decorators/walletL2.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/accounts/generateMnemonic.d.ts +2 -1
- package/_types/accounts/generateMnemonic.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts +2 -2
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/chains/celo/chainConfig.d.ts +65 -65
- package/_types/chains/celo/formatters.d.ts +65 -65
- package/_types/chains/definitions/arbitrumSepolia.d.ts +6 -2
- package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +50 -50
- package/_types/chains/definitions/baseGoerli.d.ts +50 -50
- package/_types/chains/definitions/baseSepolia.d.ts +50 -50
- package/_types/chains/definitions/bitTorrent.d.ts +42 -0
- package/_types/chains/definitions/bitTorrent.d.ts.map +1 -0
- package/_types/chains/definitions/bitTorrentTestnet.d.ts +42 -0
- package/_types/chains/definitions/bitTorrentTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/celo.d.ts +65 -65
- package/_types/chains/definitions/celoAlfajores.d.ts +65 -65
- package/_types/chains/definitions/celoCannoli.d.ts +65 -65
- package/_types/chains/definitions/jbc.d.ts +36 -0
- package/_types/chains/definitions/jbc.d.ts.map +1 -0
- package/_types/chains/definitions/optimism.d.ts +50 -50
- package/_types/chains/definitions/optimismGoerli.d.ts +50 -50
- package/_types/chains/definitions/optimismSepolia.d.ts +50 -50
- package/_types/chains/definitions/pgn.d.ts +50 -50
- package/_types/chains/definitions/pgnTestnet.d.ts +50 -50
- package/_types/chains/definitions/wemix.d.ts +42 -0
- package/_types/chains/definitions/wemix.d.ts.map +1 -0
- package/_types/chains/definitions/wemixTestnet.d.ts +42 -0
- package/_types/chains/definitions/wemixTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSync.d.ts +3 -3
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +3 -3
- package/_types/chains/definitions/zkSyncTestnet.d.ts +3 -3
- package/_types/chains/definitions/zora.d.ts +50 -50
- package/_types/chains/definitions/zoraSepolia.d.ts +50 -50
- package/_types/chains/definitions/zoraTestnet.d.ts +50 -50
- package/_types/chains/index.d.ts +6 -1
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/opStack/abis.d.ts +4 -0
- package/_types/chains/opStack/abis.d.ts.map +1 -1
- package/_types/chains/opStack/chainConfig.d.ts +50 -50
- package/_types/chains/opStack/contracts.d.ts +4 -0
- package/_types/chains/opStack/contracts.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/publicL1.d.ts +15 -0
- package/_types/chains/opStack/decorators/publicL1.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/publicL2.d.ts +15 -0
- package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/walletL1.d.ts +17 -0
- package/_types/chains/opStack/decorators/walletL1.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/walletL2.d.ts +17 -0
- package/_types/chains/opStack/decorators/walletL2.d.ts.map +1 -1
- package/_types/chains/opStack/formatters.d.ts +50 -50
- package/_types/chains/opStack/types/contract.d.ts +8 -7
- package/_types/chains/opStack/types/contract.d.ts.map +1 -1
- package/_types/chains/zksync/chainConfig.d.ts +3 -3
- package/_types/chains/zksync/formatters.d.ts +3 -3
- package/_types/clients/decorators/wallet.d.ts +2 -2
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/accounts/generateMnemonic.ts +6 -2
- package/actions/public/simulateContract.ts +2 -2
- package/chains/definitions/arbitrumSepolia.ts +2 -4
- package/chains/definitions/bitTorrent.ts +16 -0
- package/chains/definitions/bitTorrentTestnet.ts +17 -0
- package/chains/definitions/jbc.ts +29 -0
- package/chains/definitions/wemix.ts +16 -0
- package/chains/definitions/wemixTestnet.ts +17 -0
- package/chains/index.ts +13 -1
- package/chains/opStack/abis.ts +4 -0
- package/chains/opStack/contracts.ts +4 -0
- package/chains/opStack/decorators/publicL1.ts +15 -0
- package/chains/opStack/decorators/publicL2.ts +15 -0
- package/chains/opStack/decorators/walletL1.ts +17 -0
- package/chains/opStack/decorators/walletL2.ts +17 -0
- package/chains/opStack/types/contract.ts +15 -6
- package/clients/decorators/wallet.ts +2 -2
- package/errors/version.ts +1 -1
- package/package.json +34 -12
@@ -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,CAAA;AAC5C,OAAO,EACL,KAAK,kCAAkC,EACvC,K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O,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;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"}
|
@@ -37,12 +37,8 @@ export declare const formatters: {
|
|
37
37
|
readonly transaction: {
|
38
38
|
exclude: [] | undefined;
|
39
39
|
format: (args: ({
|
40
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
41
|
-
blockHash?: `0x${string}` | null | undefined;
|
42
|
-
gasPrice?: `0x${string}` | undefined;
|
43
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
44
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
45
40
|
yParity?: `0x${string}` | undefined;
|
41
|
+
blockHash?: `0x${string}` | null | undefined;
|
46
42
|
blockNumber?: `0x${string}` | null | undefined;
|
47
43
|
from?: `0x${string}` | undefined;
|
48
44
|
gas?: `0x${string}` | undefined;
|
@@ -55,6 +51,10 @@ export declare const formatters: {
|
|
55
51
|
transactionIndex?: `0x${string}` | null | undefined;
|
56
52
|
v?: `0x${string}` | undefined;
|
57
53
|
value?: `0x${string}` | undefined;
|
54
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
55
|
+
gasPrice?: `0x${string}` | undefined;
|
56
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
57
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
58
58
|
accessList?: undefined;
|
59
59
|
chainId?: `0x${string}` | undefined;
|
60
60
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -62,12 +62,8 @@ export declare const formatters: {
|
|
62
62
|
mint?: undefined;
|
63
63
|
sourceHash?: undefined;
|
64
64
|
}) | ({
|
65
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
66
|
-
blockHash?: `0x${string}` | null | undefined;
|
67
|
-
gasPrice?: `0x${string}` | undefined;
|
68
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
69
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
70
65
|
yParity?: `0x${string}` | undefined;
|
66
|
+
blockHash?: `0x${string}` | null | undefined;
|
71
67
|
blockNumber?: `0x${string}` | null | undefined;
|
72
68
|
from?: `0x${string}` | undefined;
|
73
69
|
gas?: `0x${string}` | undefined;
|
@@ -80,6 +76,10 @@ export declare const formatters: {
|
|
80
76
|
transactionIndex?: `0x${string}` | null | undefined;
|
81
77
|
v?: `0x${string}` | undefined;
|
82
78
|
value?: `0x${string}` | undefined;
|
79
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
80
|
+
gasPrice?: `0x${string}` | undefined;
|
81
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
82
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
83
83
|
accessList?: undefined;
|
84
84
|
chainId?: `0x${string}` | undefined;
|
85
85
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -88,12 +88,8 @@ export declare const formatters: {
|
|
88
88
|
sourceHash: `0x${string}`;
|
89
89
|
type: "0x7e";
|
90
90
|
}) | ({
|
91
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
92
|
-
blockHash?: `0x${string}` | null | undefined;
|
93
|
-
gasPrice?: `0x${string}` | undefined;
|
94
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
95
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
96
91
|
yParity?: `0x${string}` | undefined;
|
92
|
+
blockHash?: `0x${string}` | null | undefined;
|
97
93
|
blockNumber?: `0x${string}` | null | undefined;
|
98
94
|
from?: `0x${string}` | undefined;
|
99
95
|
gas?: `0x${string}` | undefined;
|
@@ -106,6 +102,10 @@ export declare const formatters: {
|
|
106
102
|
transactionIndex?: `0x${string}` | null | undefined;
|
107
103
|
v?: `0x${string}` | undefined;
|
108
104
|
value?: `0x${string}` | undefined;
|
105
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
106
|
+
gasPrice?: `0x${string}` | undefined;
|
107
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
108
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
109
109
|
accessList?: import("../../index.js").AccessList | undefined;
|
110
110
|
chainId?: `0x${string}` | undefined;
|
111
111
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -113,12 +113,8 @@ export declare const formatters: {
|
|
113
113
|
mint?: undefined;
|
114
114
|
sourceHash?: undefined;
|
115
115
|
}) | ({
|
116
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
117
|
-
blockHash?: `0x${string}` | null | undefined;
|
118
|
-
gasPrice?: `0x${string}` | undefined;
|
119
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
120
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
121
116
|
yParity?: `0x${string}` | undefined;
|
117
|
+
blockHash?: `0x${string}` | null | undefined;
|
122
118
|
blockNumber?: `0x${string}` | null | undefined;
|
123
119
|
from?: `0x${string}` | undefined;
|
124
120
|
gas?: `0x${string}` | undefined;
|
@@ -131,6 +127,10 @@ export declare const formatters: {
|
|
131
127
|
transactionIndex?: `0x${string}` | null | undefined;
|
132
128
|
v?: `0x${string}` | undefined;
|
133
129
|
value?: `0x${string}` | undefined;
|
130
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
131
|
+
gasPrice?: `0x${string}` | undefined;
|
132
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
133
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
134
134
|
accessList?: import("../../index.js").AccessList | undefined;
|
135
135
|
chainId?: `0x${string}` | undefined;
|
136
136
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -138,12 +138,8 @@ export declare const formatters: {
|
|
138
138
|
mint?: undefined;
|
139
139
|
sourceHash?: undefined;
|
140
140
|
}) | ({
|
141
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
142
|
-
blockHash?: `0x${string}` | null | undefined;
|
143
|
-
gasPrice?: `0x${string}` | undefined;
|
144
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
145
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
146
141
|
yParity?: `0x${string}` | undefined;
|
142
|
+
blockHash?: `0x${string}` | null | undefined;
|
147
143
|
blockNumber?: `0x${string}` | null | undefined;
|
148
144
|
from?: `0x${string}` | undefined;
|
149
145
|
gas?: `0x${string}` | undefined;
|
@@ -156,6 +152,10 @@ export declare const formatters: {
|
|
156
152
|
transactionIndex?: `0x${string}` | null | undefined;
|
157
153
|
v?: `0x${string}` | undefined;
|
158
154
|
value?: `0x${string}` | undefined;
|
155
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
156
|
+
gasPrice?: `0x${string}` | undefined;
|
157
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
158
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
159
159
|
accessList?: import("../../index.js").AccessList | undefined;
|
160
160
|
chainId?: `0x${string}` | undefined;
|
161
161
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -163,12 +163,8 @@ export declare const formatters: {
|
|
163
163
|
mint?: undefined;
|
164
164
|
sourceHash?: undefined;
|
165
165
|
}) | ({
|
166
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
167
|
-
blockHash?: `0x${string}` | null | undefined;
|
168
|
-
gasPrice?: `0x${string}` | undefined;
|
169
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
170
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
171
166
|
yParity?: `0x${string}` | undefined;
|
167
|
+
blockHash?: `0x${string}` | null | undefined;
|
172
168
|
blockNumber?: `0x${string}` | null | undefined;
|
173
169
|
from?: `0x${string}` | undefined;
|
174
170
|
gas?: `0x${string}` | undefined;
|
@@ -181,6 +177,10 @@ export declare const formatters: {
|
|
181
177
|
transactionIndex?: `0x${string}` | null | undefined;
|
182
178
|
v?: `0x${string}` | undefined;
|
183
179
|
value?: `0x${string}` | undefined;
|
180
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
181
|
+
gasPrice?: `0x${string}` | undefined;
|
182
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
183
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
184
184
|
accessList?: import("../../index.js").AccessList | undefined;
|
185
185
|
chainId?: `0x${string}` | undefined;
|
186
186
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -189,12 +189,8 @@ export declare const formatters: {
|
|
189
189
|
sourceHash: `0x${string}`;
|
190
190
|
type: "0x7e";
|
191
191
|
}) | ({
|
192
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
193
|
-
blockHash?: `0x${string}` | null | undefined;
|
194
|
-
gasPrice?: `0x${string}` | undefined;
|
195
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
196
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
197
192
|
yParity?: `0x${string}` | undefined;
|
193
|
+
blockHash?: `0x${string}` | null | undefined;
|
198
194
|
blockNumber?: `0x${string}` | null | undefined;
|
199
195
|
from?: `0x${string}` | undefined;
|
200
196
|
gas?: `0x${string}` | undefined;
|
@@ -207,6 +203,10 @@ export declare const formatters: {
|
|
207
203
|
transactionIndex?: `0x${string}` | null | undefined;
|
208
204
|
v?: `0x${string}` | undefined;
|
209
205
|
value?: `0x${string}` | undefined;
|
206
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
207
|
+
gasPrice?: `0x${string}` | undefined;
|
208
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
209
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
210
210
|
accessList?: import("../../index.js").AccessList | undefined;
|
211
211
|
chainId?: `0x${string}` | undefined;
|
212
212
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -214,12 +214,8 @@ export declare const formatters: {
|
|
214
214
|
mint?: undefined;
|
215
215
|
sourceHash?: undefined;
|
216
216
|
}) | ({
|
217
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
218
|
-
blockHash?: `0x${string}` | null | undefined;
|
219
|
-
gasPrice?: `0x${string}` | undefined;
|
220
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
221
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
222
217
|
yParity?: `0x${string}` | undefined;
|
218
|
+
blockHash?: `0x${string}` | null | undefined;
|
223
219
|
blockNumber?: `0x${string}` | null | undefined;
|
224
220
|
from?: `0x${string}` | undefined;
|
225
221
|
gas?: `0x${string}` | undefined;
|
@@ -232,6 +228,10 @@ export declare const formatters: {
|
|
232
228
|
transactionIndex?: `0x${string}` | null | undefined;
|
233
229
|
v?: `0x${string}` | undefined;
|
234
230
|
value?: `0x${string}` | undefined;
|
231
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
232
|
+
gasPrice?: `0x${string}` | undefined;
|
233
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
234
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
235
235
|
accessList?: import("../../index.js").AccessList | undefined;
|
236
236
|
chainId?: `0x${string}` | undefined;
|
237
237
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -239,12 +239,8 @@ export declare const formatters: {
|
|
239
239
|
mint?: undefined;
|
240
240
|
sourceHash?: undefined;
|
241
241
|
}) | ({
|
242
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
243
|
-
blockHash?: `0x${string}` | null | undefined;
|
244
|
-
gasPrice?: `0x${string}` | undefined;
|
245
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
246
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
247
242
|
yParity?: `0x${string}` | undefined;
|
243
|
+
blockHash?: `0x${string}` | null | undefined;
|
248
244
|
blockNumber?: `0x${string}` | null | undefined;
|
249
245
|
from?: `0x${string}` | undefined;
|
250
246
|
gas?: `0x${string}` | undefined;
|
@@ -257,6 +253,10 @@ export declare const formatters: {
|
|
257
253
|
transactionIndex?: `0x${string}` | null | undefined;
|
258
254
|
v?: `0x${string}` | undefined;
|
259
255
|
value?: `0x${string}` | undefined;
|
256
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
257
|
+
gasPrice?: `0x${string}` | undefined;
|
258
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
259
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
260
260
|
accessList?: import("../../index.js").AccessList | undefined;
|
261
261
|
chainId?: `0x${string}` | undefined;
|
262
262
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -264,12 +264,8 @@ export declare const formatters: {
|
|
264
264
|
mint?: undefined;
|
265
265
|
sourceHash?: undefined;
|
266
266
|
}) | ({
|
267
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
268
|
-
blockHash?: `0x${string}` | null | undefined;
|
269
|
-
gasPrice?: `0x${string}` | undefined;
|
270
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
271
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
272
267
|
yParity?: `0x${string}` | undefined;
|
268
|
+
blockHash?: `0x${string}` | null | undefined;
|
273
269
|
blockNumber?: `0x${string}` | null | undefined;
|
274
270
|
from?: `0x${string}` | undefined;
|
275
271
|
gas?: `0x${string}` | undefined;
|
@@ -282,6 +278,10 @@ export declare const formatters: {
|
|
282
278
|
transactionIndex?: `0x${string}` | null | undefined;
|
283
279
|
v?: `0x${string}` | undefined;
|
284
280
|
value?: `0x${string}` | undefined;
|
281
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
282
|
+
gasPrice?: `0x${string}` | undefined;
|
283
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
284
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
285
285
|
accessList?: import("../../index.js").AccessList | undefined;
|
286
286
|
chainId?: `0x${string}` | undefined;
|
287
287
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -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
|
-
|
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
|
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"}
|
@@ -105,7 +105,7 @@ export declare const chainConfig: {
|
|
105
105
|
accessList?: undefined;
|
106
106
|
chainId?: number | undefined;
|
107
107
|
yParity: number;
|
108
|
-
type: "
|
108
|
+
type: "priority" | "eip712";
|
109
109
|
l1BatchNumber: bigint | null;
|
110
110
|
l1BatchTxIndex: bigint | null;
|
111
111
|
} | {
|
@@ -201,7 +201,7 @@ export declare const chainConfig: {
|
|
201
201
|
maxPriorityFeePerGas: bigint;
|
202
202
|
accessList: import("../../index.js").AccessList;
|
203
203
|
chainId: number;
|
204
|
-
type: "
|
204
|
+
type: "priority" | "eip712";
|
205
205
|
l1BatchNumber: bigint | null;
|
206
206
|
l1BatchTxIndex: bigint | null;
|
207
207
|
} | {
|
@@ -297,7 +297,7 @@ export declare const chainConfig: {
|
|
297
297
|
maxPriorityFeePerGas: bigint;
|
298
298
|
accessList: import("../../index.js").AccessList;
|
299
299
|
chainId: number;
|
300
|
-
type: "
|
300
|
+
type: "priority" | "eip712";
|
301
301
|
l1BatchNumber: bigint | null;
|
302
302
|
l1BatchTxIndex: bigint | null;
|
303
303
|
}) & {};
|
@@ -106,7 +106,7 @@ export declare const formatters: {
|
|
106
106
|
accessList?: undefined;
|
107
107
|
chainId?: number | undefined;
|
108
108
|
yParity: number;
|
109
|
-
type: "
|
109
|
+
type: "priority" | "eip712";
|
110
110
|
l1BatchNumber: bigint | null;
|
111
111
|
l1BatchTxIndex: bigint | null;
|
112
112
|
} | {
|
@@ -202,7 +202,7 @@ export declare const formatters: {
|
|
202
202
|
maxPriorityFeePerGas: bigint;
|
203
203
|
accessList: import("../../index.js").AccessList;
|
204
204
|
chainId: number;
|
205
|
-
type: "
|
205
|
+
type: "priority" | "eip712";
|
206
206
|
l1BatchNumber: bigint | null;
|
207
207
|
l1BatchTxIndex: bigint | null;
|
208
208
|
} | {
|
@@ -298,7 +298,7 @@ export declare const formatters: {
|
|
298
298
|
maxPriorityFeePerGas: bigint;
|
299
299
|
accessList: import("../../index.js").AccessList;
|
300
300
|
chainId: number;
|
301
|
-
type: "
|
301
|
+
type: "priority" | "eip712";
|
302
302
|
l1BatchNumber: bigint | null;
|
303
303
|
l1BatchTxIndex: bigint | null;
|
304
304
|
}) & {};
|
@@ -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,kBAAkB,EAExB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAE9B,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,aAAa,EAAE,CACb,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,YAAY,SAAS,oBAAoB,CAAC,GAAG,EAAE,SAAS,GAAG,YAAY,CAAC,EACxE,IAAI,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,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.
|
1
|
+
export declare const version = "2.0.0-rc.3";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -18,7 +18,7 @@ export declare const transactionType: {
|
|
18
18
|
export type FormatTransactionErrorType = ErrorType;
|
19
19
|
export declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction;
|
20
20
|
export type DefineTransactionErrorType = DefineFormatterErrorType | ErrorType;
|
21
|
-
export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("
|
21
|
+
export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("yParity" | "blockHash" | "blockNumber" | "from" | "gas" | "hash" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "value" | "type" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "chainId" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
|
22
22
|
exclude?: TExclude | undefined;
|
23
23
|
format: (_: TOverrideParameters) => TOverrideReturnType;
|
24
24
|
}) => {
|
@@ -12,7 +12,7 @@ export declare const rpcTransactionType: {
|
|
12
12
|
export type FormatTransactionRequestErrorType = ErrorType;
|
13
13
|
export declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
14
14
|
export type DefineTransactionRequestErrorType = DefineFormatterErrorType | ErrorType;
|
15
|
-
export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("
|
15
|
+
export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("from" | "gas" | "nonce" | "to" | "value" | "type" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "data" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
|
16
16
|
exclude?: TExclude | undefined;
|
17
17
|
format: (_: TOverrideParameters) => TOverrideReturnType;
|
18
18
|
}) => {
|
@@ -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(
|
14
|
-
|
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
|
-
|
22
|
-
|
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
|
+
})
|