viem 2.44.1 → 2.44.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/_cjs/actions/wallet/sendTransaction.js +6 -5
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +6 -5
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/chains/definitions/adi.js +26 -0
- package/_cjs/chains/definitions/adi.js.map +1 -0
- package/_cjs/chains/definitions/tempo.js +28 -0
- package/_cjs/chains/definitions/tempo.js.map +1 -0
- package/_cjs/chains/definitions/zkXPLA.js +28 -0
- package/_cjs/chains/definitions/zkXPLA.js.map +1 -0
- package/_cjs/chains/definitions/zkXPLATestnet.js +28 -0
- package/_cjs/chains/definitions/zkXPLATestnet.js.map +1 -0
- package/_cjs/chains/index.js +22 -14
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +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/utils/abi/decodeEventLog.js +29 -12
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js +11 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/rpc/http.js +25 -1
- package/_cjs/utils/rpc/http.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +6 -5
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +6 -5
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/chains/definitions/adi.js +23 -0
- package/_esm/chains/definitions/adi.js.map +1 -0
- package/_esm/chains/definitions/tempo.js +25 -0
- package/_esm/chains/definitions/tempo.js.map +1 -0
- package/_esm/chains/definitions/zkXPLA.js +25 -0
- package/_esm/chains/definitions/zkXPLA.js.map +1 -0
- package/_esm/chains/definitions/zkXPLATestnet.js +25 -0
- package/_esm/chains/definitions/zkXPLATestnet.js.map +1 -0
- package/_esm/chains/index.js +4 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +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/utils/abi/decodeEventLog.js +34 -13
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/utils/encoding/fromHex.js +12 -2
- package/_esm/utils/encoding/fromHex.js.map +1 -1
- package/_esm/utils/rpc/http.js +26 -1
- package/_esm/utils/rpc/http.js.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +4 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts +2 -0
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/chains/definitions/adi.d.ts +48 -0
- package/_types/chains/definitions/adi.d.ts.map +1 -0
- package/_types/chains/definitions/tempo.d.ts +916 -0
- package/_types/chains/definitions/tempo.d.ts.map +1 -0
- package/_types/chains/definitions/zkXPLA.d.ts +50 -0
- package/_types/chains/definitions/zkXPLA.d.ts.map +1 -0
- package/_types/chains/definitions/zkXPLATestnet.d.ts +50 -0
- package/_types/chains/definitions/zkXPLATestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +4 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +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/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +2 -2
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +8 -1
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/actions/wallet/sendTransaction.ts +10 -5
- package/actions/wallet/sendTransactionSync.ts +8 -4
- package/chains/definitions/adi.ts +23 -0
- package/chains/definitions/tempo.ts +25 -0
- package/chains/definitions/zkXPLA.ts +25 -0
- package/chains/definitions/zkXPLATestnet.ts +25 -0
- package/chains/index.ts +4 -0
- package/errors/version.ts +1 -1
- 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/utils/abi/decodeEventLog.ts +38 -14
- package/utils/encoding/fromHex.ts +17 -2
- package/utils/rpc/http.ts +31 -1
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' })
|