viem 2.44.2 → 2.45.0
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 +36 -0
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +4 -2
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/clients/createBundlerClient.js +8 -2
- package/_cjs/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js +3 -1
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js +3 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/wallet/sendCalls.js +17 -1
- package/_cjs/actions/wallet/sendCalls.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +11 -7
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +11 -7
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js +2 -2
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/chains/definitions/megaeth.js +33 -0
- package/_cjs/chains/definitions/megaeth.js.map +1 -0
- package/_cjs/chains/definitions/megaethTestnet.js +6 -1
- package/_cjs/chains/definitions/megaethTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rise.js +28 -0
- package/_cjs/chains/definitions/rise.js.map +1 -0
- package/_cjs/chains/definitions/stable.js +35 -0
- package/_cjs/chains/definitions/stable.js.map +1 -0
- package/_cjs/chains/definitions/stableTestnet.js +10 -3
- package/_cjs/chains/definitions/stableTestnet.js.map +1 -1
- package/_cjs/chains/index.js +13 -7
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js +2 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/createWalletClient.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/op-stack/index.js +9 -1
- package/_cjs/op-stack/index.js.map +1 -1
- package/_cjs/tempo/Abis.js +2 -2
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Addresses.js +2 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +19 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Transport.js +1 -1
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +91 -0
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/actions/index.js +2 -1
- package/_cjs/tempo/actions/index.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +308 -0
- package/_cjs/tempo/actions/validator.js.map +1 -0
- package/_cjs/types/dataSuffix.js +3 -0
- package/_cjs/types/dataSuffix.js.map +1 -0
- package/_cjs/utils/abi/decodeEventLog.js +29 -12
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +4 -2
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
- package/_esm/account-abstraction/clients/createBundlerClient.js +8 -2
- package/_esm/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_esm/actions/public/estimateContractGas.js +3 -1
- package/_esm/actions/public/estimateContractGas.js.map +1 -1
- package/_esm/actions/public/simulateContract.js +3 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/wallet/sendCalls.js +17 -1
- package/_esm/actions/wallet/sendCalls.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +11 -7
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +11 -7
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js +2 -2
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/chains/definitions/megaeth.js +30 -0
- package/_esm/chains/definitions/megaeth.js.map +1 -0
- package/_esm/chains/definitions/megaethTestnet.js +6 -1
- package/_esm/chains/definitions/megaethTestnet.js.map +1 -1
- package/_esm/chains/definitions/rise.js +25 -0
- package/_esm/chains/definitions/rise.js.map +1 -0
- package/_esm/chains/definitions/stable.js +32 -0
- package/_esm/chains/definitions/stable.js.map +1 -0
- package/_esm/chains/definitions/stableTestnet.js +10 -3
- package/_esm/chains/definitions/stableTestnet.js.map +1 -1
- package/_esm/chains/index.js +3 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClient.js +2 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/createWalletClient.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/op-stack/index.js +4 -0
- package/_esm/op-stack/index.js.map +1 -1
- package/_esm/tempo/Abis.js +1 -1
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +6 -6
- package/_esm/tempo/Addresses.js +1 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +19 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Transport.js +1 -1
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/WebAuthnP256.js +2 -2
- package/_esm/tempo/actions/amm.js +28 -28
- package/_esm/tempo/actions/dex.js +68 -68
- package/_esm/tempo/actions/faucet.js +4 -4
- package/_esm/tempo/actions/fee.js +236 -10
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/index.js +1 -0
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +4 -4
- package/_esm/tempo/actions/policy.js +36 -36
- package/_esm/tempo/actions/reward.js +28 -28
- package/_esm/tempo/actions/token.js +122 -122
- package/_esm/tempo/actions/validator.js +1017 -0
- package/_esm/tempo/actions/validator.js.map +1 -0
- package/_esm/types/dataSuffix.js +2 -0
- package/_esm/types/dataSuffix.js.map +1 -0
- package/_esm/utils/abi/decodeEventLog.js +34 -13
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts +2 -0
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts +2 -0
- package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/clients/createBundlerClient.d.ts +4 -0
- package/_types/account-abstraction/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/wallet/sendCalls.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +7 -2
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts +5 -0
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/chains/definitions/megaeth.d.ts +46 -0
- package/_types/chains/definitions/megaeth.d.ts.map +1 -0
- package/_types/chains/definitions/megaethTestnet.d.ts +6 -1
- package/_types/chains/definitions/megaethTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rise.d.ts +46 -0
- package/_types/chains/definitions/rise.d.ts.map +1 -0
- package/_types/chains/definitions/stable.d.ts +47 -0
- package/_types/chains/definitions/stable.d.ts.map +1 -0
- package/_types/chains/definitions/stableTestnet.d.ts +10 -13
- package/_types/chains/definitions/stableTestnet.d.ts.map +1 -1
- package/_types/chains/index.d.ts +3 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +5 -0
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/createWalletClient.d.ts +1 -1
- package/_types/clients/createWalletClient.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/index.d.ts +4 -0
- package/_types/op-stack/index.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +1 -1
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +6 -6
- package/_types/tempo/Addresses.d.ts +1 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +607 -208
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/WebAuthnP256.d.ts +2 -2
- package/_types/tempo/actions/amm.d.ts +28 -28
- package/_types/tempo/actions/dex.d.ts +68 -68
- package/_types/tempo/actions/faucet.d.ts +4 -4
- package/_types/tempo/actions/fee.d.ts +380 -10
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/index.d.ts +1 -0
- package/_types/tempo/actions/index.d.ts.map +1 -1
- package/_types/tempo/actions/nonce.d.ts +4 -4
- package/_types/tempo/actions/policy.d.ts +36 -36
- package/_types/tempo/actions/reward.d.ts +28 -28
- package/_types/tempo/actions/token.d.ts +122 -122
- package/_types/tempo/actions/validator.d.ts +1174 -0
- package/_types/tempo/actions/validator.d.ts.map +1 -0
- package/_types/types/dataSuffix.d.ts +16 -0
- package/_types/types/dataSuffix.d.ts.map +1 -0
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/account-abstraction/actions/bundler/prepareUserOperation.ts +7 -1
- package/account-abstraction/actions/bundler/sendUserOperation.ts +2 -0
- package/account-abstraction/clients/createBundlerClient.ts +12 -1
- package/actions/public/estimateContractGas.ts +11 -2
- package/actions/public/simulateContract.ts +11 -2
- package/actions/wallet/sendCalls.ts +18 -1
- package/actions/wallet/sendTransaction.ts +19 -8
- package/actions/wallet/sendTransactionSync.ts +17 -7
- package/actions/wallet/writeContract.ts +1 -2
- package/chains/definitions/megaeth.ts +30 -0
- package/chains/definitions/megaethTestnet.ts +6 -1
- package/chains/definitions/rise.ts +25 -0
- package/chains/definitions/stable.ts +32 -0
- package/chains/definitions/stableTestnet.ts +10 -3
- package/chains/index.ts +3 -0
- package/clients/createClient.ts +7 -0
- package/clients/createWalletClient.ts +1 -0
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/op-stack/index.ts +24 -0
- package/package.json +1 -1
- package/tempo/Abis.ts +1 -1
- package/tempo/Account.ts +6 -6
- package/tempo/Addresses.ts +1 -0
- package/tempo/Decorator.ts +672 -208
- package/tempo/Transport.ts +4 -1
- package/tempo/WebAuthnP256.ts +2 -2
- package/tempo/actions/amm.ts +28 -28
- package/tempo/actions/dex.ts +68 -68
- package/tempo/actions/faucet.ts +4 -4
- package/tempo/actions/fee.ts +346 -10
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/nonce.ts +4 -4
- package/tempo/actions/policy.ts +36 -36
- package/tempo/actions/reward.ts +28 -28
- package/tempo/actions/token.ts +122 -122
- package/tempo/actions/validator.ts +1417 -0
- package/types/dataSuffix.ts +18 -0
- package/utils/abi/decodeEventLog.ts +38 -14
package/op-stack/index.ts
CHANGED
|
@@ -47,6 +47,24 @@ export {
|
|
|
47
47
|
type EstimateContractTotalGasReturnType,
|
|
48
48
|
estimateContractTotalGas,
|
|
49
49
|
} from './actions/estimateContractTotalGas.js'
|
|
50
|
+
export {
|
|
51
|
+
type EstimateDepositTransactionGasErrorType,
|
|
52
|
+
type EstimateDepositTransactionGasParameters,
|
|
53
|
+
type EstimateDepositTransactionGasReturnType,
|
|
54
|
+
estimateDepositTransactionGas,
|
|
55
|
+
} from './actions/estimateDepositTransactionGas.js'
|
|
56
|
+
export {
|
|
57
|
+
type EstimateFinalizeWithdrawalGasErrorType,
|
|
58
|
+
type EstimateFinalizeWithdrawalGasParameters,
|
|
59
|
+
type EstimateFinalizeWithdrawalGasReturnType,
|
|
60
|
+
estimateFinalizeWithdrawalGas,
|
|
61
|
+
} from './actions/estimateFinalizeWithdrawalGas.js'
|
|
62
|
+
export {
|
|
63
|
+
type EstimateInitiateWithdrawalGasErrorType,
|
|
64
|
+
type EstimateInitiateWithdrawalGasParameters,
|
|
65
|
+
type EstimateInitiateWithdrawalGasReturnType,
|
|
66
|
+
estimateInitiateWithdrawalGas,
|
|
67
|
+
} from './actions/estimateInitiateWithdrawalGas.js'
|
|
50
68
|
export {
|
|
51
69
|
type EstimateL1FeeErrorType,
|
|
52
70
|
type EstimateL1FeeParameters,
|
|
@@ -65,6 +83,12 @@ export {
|
|
|
65
83
|
type EstimateOperatorFeeReturnType,
|
|
66
84
|
estimateOperatorFee,
|
|
67
85
|
} from './actions/estimateOperatorFee.js'
|
|
86
|
+
export {
|
|
87
|
+
type EstimateProveWithdrawalGasErrorType,
|
|
88
|
+
type EstimateProveWithdrawalGasParameters,
|
|
89
|
+
type EstimateProveWithdrawalGasReturnType,
|
|
90
|
+
estimateProveWithdrawalGas,
|
|
91
|
+
} from './actions/estimateProveWithdrawalGas.js'
|
|
68
92
|
export {
|
|
69
93
|
type EstimateTotalFeeErrorType,
|
|
70
94
|
type EstimateTotalFeeParameters,
|
package/package.json
CHANGED
package/tempo/Abis.ts
CHANGED
package/tempo/Account.ts
CHANGED
|
@@ -62,7 +62,7 @@ export type Account = OneOf<RootAccount | AccessKeyAccount>
|
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
* import { Account } from 'tempo
|
|
65
|
+
* import { Account } from 'viem/tempo'
|
|
66
66
|
*
|
|
67
67
|
* const account = Account.fromHeadlessWebAuthn('0x...')
|
|
68
68
|
* ```
|
|
@@ -125,7 +125,7 @@ export declare namespace fromHeadlessWebAuthn {
|
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* ```ts
|
|
128
|
-
* import { Account } from 'tempo
|
|
128
|
+
* import { Account } from 'viem/tempo'
|
|
129
129
|
*
|
|
130
130
|
* const account = Account.fromP256('0x...')
|
|
131
131
|
* ```
|
|
@@ -167,7 +167,7 @@ export declare namespace fromP256 {
|
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
169
|
* ```ts
|
|
170
|
-
* import { Account } from 'tempo
|
|
170
|
+
* import { Account } from 'viem/tempo'
|
|
171
171
|
*
|
|
172
172
|
* const account = Account.fromSecp256k1('0x...')
|
|
173
173
|
* ```
|
|
@@ -215,7 +215,7 @@ export declare namespace fromSecp256k1 {
|
|
|
215
215
|
* for future use (ie. for future calls to `WebAuthnP256.getCredential`).
|
|
216
216
|
*
|
|
217
217
|
* ```ts
|
|
218
|
-
* import { Account, WebAuthnP256 } from 'tempo
|
|
218
|
+
* import { Account, WebAuthnP256 } from 'viem/tempo'
|
|
219
219
|
* import { publicKeyStore } from './store'
|
|
220
220
|
*
|
|
221
221
|
* // 1. Create credential
|
|
@@ -240,7 +240,7 @@ export declare namespace fromSecp256k1 {
|
|
|
240
240
|
* from an external store. The public key is required to derive the account's address.
|
|
241
241
|
*
|
|
242
242
|
* ```ts
|
|
243
|
-
* import { Account, WebAuthnP256 } from 'tempo
|
|
243
|
+
* import { Account, WebAuthnP256 } from 'viem/tempo'
|
|
244
244
|
* import { publicKeyStore } from './store'
|
|
245
245
|
*
|
|
246
246
|
* // 1. Get credential
|
|
@@ -302,7 +302,7 @@ export declare namespace fromWebAuthnP256 {
|
|
|
302
302
|
*
|
|
303
303
|
* @example
|
|
304
304
|
* ```ts
|
|
305
|
-
* import { Account } from 'tempo
|
|
305
|
+
* import { Account } from 'viem/tempo'
|
|
306
306
|
* import { WebCryptoP256 } from 'ox'
|
|
307
307
|
*
|
|
308
308
|
* const keyPair = await WebCryptoP256.createKeyPair()
|
package/tempo/Addresses.ts
CHANGED
|
@@ -7,3 +7,4 @@ export const pathUsd = '0x20c0000000000000000000000000000000000000'
|
|
|
7
7
|
export const stablecoinDex = '0xdec0000000000000000000000000000000000000'
|
|
8
8
|
export const tip20Factory = '0x20fc000000000000000000000000000000000000'
|
|
9
9
|
export const tip403Registry = '0x403c000000000000000000000000000000000000'
|
|
10
|
+
export const validator = '0xcccccccc00000000000000000000000000000000'
|