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/tempo/actions/reward.ts
CHANGED
|
@@ -42,8 +42,8 @@ import { defineCall } from '../internal/utils.js'
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
44
|
* import { createClient, http } from 'viem'
|
|
45
|
-
* import { tempo } from '
|
|
46
|
-
* import { Actions } from 'tempo
|
|
45
|
+
* import { tempo } from 'viem/chains'
|
|
46
|
+
* import { Actions } from 'viem/tempo'
|
|
47
47
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
48
48
|
*
|
|
49
49
|
* const client = createClient({
|
|
@@ -116,8 +116,8 @@ export namespace claim {
|
|
|
116
116
|
* @example
|
|
117
117
|
* ```ts
|
|
118
118
|
* import { createClient, http, walletActions } from 'viem'
|
|
119
|
-
* import { tempo } from '
|
|
120
|
-
* import { Actions } from 'tempo
|
|
119
|
+
* import { tempo } from 'viem/chains'
|
|
120
|
+
* import { Actions } from 'viem/tempo'
|
|
121
121
|
*
|
|
122
122
|
* const client = createClient({
|
|
123
123
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -165,8 +165,8 @@ export namespace claim {
|
|
|
165
165
|
* @example
|
|
166
166
|
* ```ts
|
|
167
167
|
* import { createClient, http } from 'viem'
|
|
168
|
-
* import { tempo } from '
|
|
169
|
-
* import { Actions } from 'tempo
|
|
168
|
+
* import { tempo } from 'viem/chains'
|
|
169
|
+
* import { Actions } from 'viem/tempo'
|
|
170
170
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
171
171
|
*
|
|
172
172
|
* const client = createClient({
|
|
@@ -229,8 +229,8 @@ export namespace claimSync {
|
|
|
229
229
|
* @example
|
|
230
230
|
* ```ts
|
|
231
231
|
* import { createClient, http } from 'viem'
|
|
232
|
-
* import { tempo } from '
|
|
233
|
-
* import { Actions } from 'tempo
|
|
232
|
+
* import { tempo } from 'viem/chains'
|
|
233
|
+
* import { Actions } from 'viem/tempo'
|
|
234
234
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
235
235
|
*
|
|
236
236
|
* const client = createClient({
|
|
@@ -273,8 +273,8 @@ export async function distribute<
|
|
|
273
273
|
* @example
|
|
274
274
|
* ```ts
|
|
275
275
|
* import { createClient, http } from 'viem'
|
|
276
|
-
* import { tempo } from '
|
|
277
|
-
* import { Actions } from 'tempo
|
|
276
|
+
* import { tempo } from 'viem/chains'
|
|
277
|
+
* import { Actions } from 'viem/tempo'
|
|
278
278
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
279
279
|
*
|
|
280
280
|
* const client = createClient({
|
|
@@ -359,8 +359,8 @@ export namespace distribute {
|
|
|
359
359
|
* @example
|
|
360
360
|
* ```ts
|
|
361
361
|
* import { createClient, http, walletActions } from 'viem'
|
|
362
|
-
* import { tempo } from '
|
|
363
|
-
* import { Actions } from 'tempo
|
|
362
|
+
* import { tempo } from 'viem/chains'
|
|
363
|
+
* import { Actions } from 'viem/tempo'
|
|
364
364
|
*
|
|
365
365
|
* const client = createClient({
|
|
366
366
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -433,8 +433,8 @@ export declare namespace distributeSync {
|
|
|
433
433
|
* @example
|
|
434
434
|
* ```ts
|
|
435
435
|
* import { createClient, http } from 'viem'
|
|
436
|
-
* import { tempo } from '
|
|
437
|
-
* import { Actions } from 'tempo
|
|
436
|
+
* import { tempo } from 'viem/chains'
|
|
437
|
+
* import { Actions } from 'viem/tempo'
|
|
438
438
|
*
|
|
439
439
|
* const client = createClient({
|
|
440
440
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -499,8 +499,8 @@ export namespace getGlobalRewardPerToken {
|
|
|
499
499
|
* @example
|
|
500
500
|
* ```ts
|
|
501
501
|
* import { createClient, http } from 'viem'
|
|
502
|
-
* import { tempo } from '
|
|
503
|
-
* import { Actions } from 'tempo
|
|
502
|
+
* import { tempo } from 'viem/chains'
|
|
503
|
+
* import { Actions } from 'viem/tempo'
|
|
504
504
|
*
|
|
505
505
|
* const client = createClient({
|
|
506
506
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -572,8 +572,8 @@ export namespace getPendingRewards {
|
|
|
572
572
|
* @example
|
|
573
573
|
* ```ts
|
|
574
574
|
* import { createClient, http } from 'viem'
|
|
575
|
-
* import { tempo } from '
|
|
576
|
-
* import { Actions } from 'tempo
|
|
575
|
+
* import { tempo } from 'viem/chains'
|
|
576
|
+
* import { Actions } from 'viem/tempo'
|
|
577
577
|
*
|
|
578
578
|
* const client = createClient({
|
|
579
579
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -648,8 +648,8 @@ export namespace getUserRewardInfo {
|
|
|
648
648
|
* @example
|
|
649
649
|
* ```ts
|
|
650
650
|
* import { createClient, http } from 'viem'
|
|
651
|
-
* import { tempo } from '
|
|
652
|
-
* import { Actions } from 'tempo
|
|
651
|
+
* import { tempo } from 'viem/chains'
|
|
652
|
+
* import { Actions } from 'viem/tempo'
|
|
653
653
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
654
654
|
*
|
|
655
655
|
* const client = createClient({
|
|
@@ -693,8 +693,8 @@ export async function setRecipient<
|
|
|
693
693
|
* @example
|
|
694
694
|
* ```ts
|
|
695
695
|
* import { createClient, http } from 'viem'
|
|
696
|
-
* import { tempo } from '
|
|
697
|
-
* import { Actions } from 'tempo
|
|
696
|
+
* import { tempo } from 'viem/chains'
|
|
697
|
+
* import { Actions } from 'viem/tempo'
|
|
698
698
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
699
699
|
*
|
|
700
700
|
* const client = createClient({
|
|
@@ -779,8 +779,8 @@ export namespace setRecipient {
|
|
|
779
779
|
* @example
|
|
780
780
|
* ```ts
|
|
781
781
|
* import { createClient, http, walletActions } from 'viem'
|
|
782
|
-
* import { tempo } from '
|
|
783
|
-
* import { Actions } from 'tempo
|
|
782
|
+
* import { tempo } from 'viem/chains'
|
|
783
|
+
* import { Actions } from 'viem/tempo'
|
|
784
784
|
*
|
|
785
785
|
* const client = createClient({
|
|
786
786
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -850,8 +850,8 @@ export declare namespace setRecipientSync {
|
|
|
850
850
|
* @example
|
|
851
851
|
* ```ts
|
|
852
852
|
* import { createClient, http } from 'viem'
|
|
853
|
-
* import { tempo } from '
|
|
854
|
-
* import { Actions } from 'tempo
|
|
853
|
+
* import { tempo } from 'viem/chains'
|
|
854
|
+
* import { Actions } from 'viem/tempo'
|
|
855
855
|
*
|
|
856
856
|
* const client = createClient({
|
|
857
857
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -924,8 +924,8 @@ export declare namespace watchRewardDistributed {
|
|
|
924
924
|
* @example
|
|
925
925
|
* ```ts
|
|
926
926
|
* import { createClient, http } from 'viem'
|
|
927
|
-
* import { tempo } from '
|
|
928
|
-
* import { Actions } from 'tempo
|
|
927
|
+
* import { tempo } from 'viem/chains'
|
|
928
|
+
* import { Actions } from 'viem/tempo'
|
|
929
929
|
*
|
|
930
930
|
* const client = createClient({
|
|
931
931
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|