viem 2.44.2 → 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.
Files changed (101) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/_cjs/actions/wallet/sendTransaction.js +6 -5
  3. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  4. package/_cjs/actions/wallet/sendTransactionSync.js +6 -5
  5. package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
  6. package/_cjs/errors/version.js +1 -1
  7. package/_cjs/tempo/Abis.js +2 -2
  8. package/_cjs/tempo/Abis.js.map +1 -1
  9. package/_cjs/tempo/Addresses.js +2 -1
  10. package/_cjs/tempo/Addresses.js.map +1 -1
  11. package/_cjs/tempo/Decorator.js +19 -0
  12. package/_cjs/tempo/Decorator.js.map +1 -1
  13. package/_cjs/tempo/Transport.js +1 -1
  14. package/_cjs/tempo/Transport.js.map +1 -1
  15. package/_cjs/tempo/actions/fee.js +91 -0
  16. package/_cjs/tempo/actions/fee.js.map +1 -1
  17. package/_cjs/tempo/actions/index.js +2 -1
  18. package/_cjs/tempo/actions/index.js.map +1 -1
  19. package/_cjs/tempo/actions/validator.js +308 -0
  20. package/_cjs/tempo/actions/validator.js.map +1 -0
  21. package/_cjs/utils/abi/decodeEventLog.js +29 -12
  22. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  23. package/_esm/actions/wallet/sendTransaction.js +6 -5
  24. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  25. package/_esm/actions/wallet/sendTransactionSync.js +6 -5
  26. package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
  27. package/_esm/errors/version.js +1 -1
  28. package/_esm/tempo/Abis.js +1 -1
  29. package/_esm/tempo/Abis.js.map +1 -1
  30. package/_esm/tempo/Account.js +6 -6
  31. package/_esm/tempo/Addresses.js +1 -0
  32. package/_esm/tempo/Addresses.js.map +1 -1
  33. package/_esm/tempo/Decorator.js +19 -0
  34. package/_esm/tempo/Decorator.js.map +1 -1
  35. package/_esm/tempo/Transport.js +1 -1
  36. package/_esm/tempo/Transport.js.map +1 -1
  37. package/_esm/tempo/WebAuthnP256.js +2 -2
  38. package/_esm/tempo/actions/amm.js +28 -28
  39. package/_esm/tempo/actions/dex.js +68 -68
  40. package/_esm/tempo/actions/faucet.js +4 -4
  41. package/_esm/tempo/actions/fee.js +236 -10
  42. package/_esm/tempo/actions/fee.js.map +1 -1
  43. package/_esm/tempo/actions/index.js +1 -0
  44. package/_esm/tempo/actions/index.js.map +1 -1
  45. package/_esm/tempo/actions/nonce.js +4 -4
  46. package/_esm/tempo/actions/policy.js +36 -36
  47. package/_esm/tempo/actions/reward.js +28 -28
  48. package/_esm/tempo/actions/token.js +122 -122
  49. package/_esm/tempo/actions/validator.js +1017 -0
  50. package/_esm/tempo/actions/validator.js.map +1 -0
  51. package/_esm/utils/abi/decodeEventLog.js +34 -13
  52. package/_esm/utils/abi/decodeEventLog.js.map +1 -1
  53. package/_types/actions/wallet/sendTransaction.d.ts +4 -1
  54. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  55. package/_types/actions/wallet/sendTransactionSync.d.ts +2 -0
  56. package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
  57. package/_types/errors/version.d.ts +1 -1
  58. package/_types/tempo/Abis.d.ts +1 -1
  59. package/_types/tempo/Abis.d.ts.map +1 -1
  60. package/_types/tempo/Account.d.ts +6 -6
  61. package/_types/tempo/Addresses.d.ts +1 -0
  62. package/_types/tempo/Addresses.d.ts.map +1 -1
  63. package/_types/tempo/Decorator.d.ts +607 -208
  64. package/_types/tempo/Decorator.d.ts.map +1 -1
  65. package/_types/tempo/Transport.d.ts.map +1 -1
  66. package/_types/tempo/WebAuthnP256.d.ts +2 -2
  67. package/_types/tempo/actions/amm.d.ts +28 -28
  68. package/_types/tempo/actions/dex.d.ts +68 -68
  69. package/_types/tempo/actions/faucet.d.ts +4 -4
  70. package/_types/tempo/actions/fee.d.ts +380 -10
  71. package/_types/tempo/actions/fee.d.ts.map +1 -1
  72. package/_types/tempo/actions/index.d.ts +1 -0
  73. package/_types/tempo/actions/index.d.ts.map +1 -1
  74. package/_types/tempo/actions/nonce.d.ts +4 -4
  75. package/_types/tempo/actions/policy.d.ts +36 -36
  76. package/_types/tempo/actions/reward.d.ts +28 -28
  77. package/_types/tempo/actions/token.d.ts +122 -122
  78. package/_types/tempo/actions/validator.d.ts +1174 -0
  79. package/_types/tempo/actions/validator.d.ts.map +1 -0
  80. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  81. package/actions/wallet/sendTransaction.ts +10 -5
  82. package/actions/wallet/sendTransactionSync.ts +8 -4
  83. package/errors/version.ts +1 -1
  84. package/package.json +1 -1
  85. package/tempo/Abis.ts +1 -1
  86. package/tempo/Account.ts +6 -6
  87. package/tempo/Addresses.ts +1 -0
  88. package/tempo/Decorator.ts +672 -208
  89. package/tempo/Transport.ts +4 -1
  90. package/tempo/WebAuthnP256.ts +2 -2
  91. package/tempo/actions/amm.ts +28 -28
  92. package/tempo/actions/dex.ts +68 -68
  93. package/tempo/actions/faucet.ts +4 -4
  94. package/tempo/actions/fee.ts +346 -10
  95. package/tempo/actions/index.ts +1 -0
  96. package/tempo/actions/nonce.ts +4 -4
  97. package/tempo/actions/policy.ts +36 -36
  98. package/tempo/actions/reward.ts +28 -28
  99. package/tempo/actions/token.ts +122 -122
  100. package/tempo/actions/validator.ts +1417 -0
  101. package/utils/abi/decodeEventLog.ts +38 -14
@@ -22,8 +22,8 @@ export type PolicyType = 'whitelist' | 'blacklist';
22
22
  * @example
23
23
  * ```ts
24
24
  * import { createClient, http } from 'viem'
25
- * import { tempo } from 'tempo.ts/chains'
26
- * import { Actions } from 'tempo.ts/viem'
25
+ * import { tempo } from 'viem/chains'
26
+ * import { Actions } from 'viem/tempo'
27
27
  * import { privateKeyToAccount } from 'viem/accounts'
28
28
  *
29
29
  * const client = createClient({
@@ -71,8 +71,8 @@ export declare namespace create {
71
71
  * @example
72
72
  * ```ts
73
73
  * import { createClient, http, walletActions } from 'viem'
74
- * import { tempo } from 'tempo.ts/chains'
75
- * import { Actions } from 'tempo.ts/viem'
74
+ * import { tempo } from 'viem/chains'
75
+ * import { Actions } from 'viem/tempo'
76
76
  *
77
77
  * const client = createClient({
78
78
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -355,8 +355,8 @@ export declare namespace create {
355
355
  * @example
356
356
  * ```ts
357
357
  * import { createClient, http } from 'viem'
358
- * import { tempo } from 'tempo.ts/chains'
359
- * import { Actions } from 'tempo.ts/viem'
358
+ * import { tempo } from 'viem/chains'
359
+ * import { Actions } from 'viem/tempo'
360
360
  * import { privateKeyToAccount } from 'viem/accounts'
361
361
  *
362
362
  * const client = createClient({
@@ -393,8 +393,8 @@ export declare namespace createSync {
393
393
  * @example
394
394
  * ```ts
395
395
  * import { createClient, http } from 'viem'
396
- * import { tempo } from 'tempo.ts/chains'
397
- * import { Actions } from 'tempo.ts/viem'
396
+ * import { tempo } from 'viem/chains'
397
+ * import { Actions } from 'viem/tempo'
398
398
  * import { privateKeyToAccount } from 'viem/accounts'
399
399
  *
400
400
  * const client = createClient({
@@ -437,8 +437,8 @@ export declare namespace setAdmin {
437
437
  * @example
438
438
  * ```ts
439
439
  * import { createClient, http, walletActions } from 'viem'
440
- * import { tempo } from 'tempo.ts/chains'
441
- * import { Actions } from 'tempo.ts/viem'
440
+ * import { tempo } from 'viem/chains'
441
+ * import { Actions } from 'viem/tempo'
442
442
  *
443
443
  * const client = createClient({
444
444
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -701,8 +701,8 @@ export declare namespace setAdmin {
701
701
  * @example
702
702
  * ```ts
703
703
  * import { createClient, http } from 'viem'
704
- * import { tempo } from 'tempo.ts/chains'
705
- * import { Actions } from 'tempo.ts/viem'
704
+ * import { tempo } from 'viem/chains'
705
+ * import { Actions } from 'viem/tempo'
706
706
  * import { privateKeyToAccount } from 'viem/accounts'
707
707
  *
708
708
  * const client = createClient({
@@ -739,8 +739,8 @@ export declare namespace setAdminSync {
739
739
  * @example
740
740
  * ```ts
741
741
  * import { createClient, http } from 'viem'
742
- * import { tempo } from 'tempo.ts/chains'
743
- * import { Actions } from 'tempo.ts/viem'
742
+ * import { tempo } from 'viem/chains'
743
+ * import { Actions } from 'viem/tempo'
744
744
  * import { privateKeyToAccount } from 'viem/accounts'
745
745
  *
746
746
  * const client = createClient({
@@ -786,8 +786,8 @@ export declare namespace modifyWhitelist {
786
786
  * @example
787
787
  * ```ts
788
788
  * import { createClient, http, walletActions } from 'viem'
789
- * import { tempo } from 'tempo.ts/chains'
790
- * import { Actions } from 'tempo.ts/viem'
789
+ * import { tempo } from 'viem/chains'
790
+ * import { Actions } from 'viem/tempo'
791
791
  *
792
792
  * const client = createClient({
793
793
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1055,8 +1055,8 @@ export declare namespace modifyWhitelist {
1055
1055
  * @example
1056
1056
  * ```ts
1057
1057
  * import { createClient, http } from 'viem'
1058
- * import { tempo } from 'tempo.ts/chains'
1059
- * import { Actions } from 'tempo.ts/viem'
1058
+ * import { tempo } from 'viem/chains'
1059
+ * import { Actions } from 'viem/tempo'
1060
1060
  * import { privateKeyToAccount } from 'viem/accounts'
1061
1061
  *
1062
1062
  * const client = createClient({
@@ -1094,8 +1094,8 @@ export declare namespace modifyWhitelistSync {
1094
1094
  * @example
1095
1095
  * ```ts
1096
1096
  * import { createClient, http } from 'viem'
1097
- * import { tempo } from 'tempo.ts/chains'
1098
- * import { Actions } from 'tempo.ts/viem'
1097
+ * import { tempo } from 'viem/chains'
1098
+ * import { Actions } from 'viem/tempo'
1099
1099
  * import { privateKeyToAccount } from 'viem/accounts'
1100
1100
  *
1101
1101
  * const client = createClient({
@@ -1141,8 +1141,8 @@ export declare namespace modifyBlacklist {
1141
1141
  * @example
1142
1142
  * ```ts
1143
1143
  * import { createClient, http, walletActions } from 'viem'
1144
- * import { tempo } from 'tempo.ts/chains'
1145
- * import { Actions } from 'tempo.ts/viem'
1144
+ * import { tempo } from 'viem/chains'
1145
+ * import { Actions } from 'viem/tempo'
1146
1146
  *
1147
1147
  * const client = createClient({
1148
1148
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1410,8 +1410,8 @@ export declare namespace modifyBlacklist {
1410
1410
  * @example
1411
1411
  * ```ts
1412
1412
  * import { createClient, http } from 'viem'
1413
- * import { tempo } from 'tempo.ts/chains'
1414
- * import { Actions } from 'tempo.ts/viem'
1413
+ * import { tempo } from 'viem/chains'
1414
+ * import { Actions } from 'viem/tempo'
1415
1415
  * import { privateKeyToAccount } from 'viem/accounts'
1416
1416
  *
1417
1417
  * const client = createClient({
@@ -1449,8 +1449,8 @@ export declare namespace modifyBlacklistSync {
1449
1449
  * @example
1450
1450
  * ```ts
1451
1451
  * import { createClient, http } from 'viem'
1452
- * import { tempo } from 'tempo.ts/chains'
1453
- * import { Actions } from 'tempo.ts/viem'
1452
+ * import { tempo } from 'viem/chains'
1453
+ * import { Actions } from 'viem/tempo'
1454
1454
  *
1455
1455
  * const client = createClient({
1456
1456
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1518,8 +1518,8 @@ export declare namespace getData {
1518
1518
  * @example
1519
1519
  * ```ts
1520
1520
  * import { createClient, http } from 'viem'
1521
- * import { tempo } from 'tempo.ts/chains'
1522
- * import { Actions } from 'tempo.ts/viem'
1521
+ * import { tempo } from 'viem/chains'
1522
+ * import { Actions } from 'viem/tempo'
1523
1523
  *
1524
1524
  * const client = createClient({
1525
1525
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1584,8 +1584,8 @@ export declare namespace isAuthorized {
1584
1584
  * @example
1585
1585
  * ```ts
1586
1586
  * import { createClient, http } from 'viem'
1587
- * import { tempo } from 'tempo.ts/chains'
1588
- * import { Actions } from 'tempo.ts/viem'
1587
+ * import { tempo } from 'viem/chains'
1588
+ * import { Actions } from 'viem/tempo'
1589
1589
  *
1590
1590
  * const client = createClient({
1591
1591
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1622,8 +1622,8 @@ export declare namespace watchCreate {
1622
1622
  * @example
1623
1623
  * ```ts
1624
1624
  * import { createClient, http } from 'viem'
1625
- * import { tempo } from 'tempo.ts/chains'
1626
- * import { Actions } from 'tempo.ts/viem'
1625
+ * import { tempo } from 'viem/chains'
1626
+ * import { Actions } from 'viem/tempo'
1627
1627
  *
1628
1628
  * const client = createClient({
1629
1629
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1659,8 +1659,8 @@ export declare namespace watchAdminUpdated {
1659
1659
  * @example
1660
1660
  * ```ts
1661
1661
  * import { createClient, http } from 'viem'
1662
- * import { tempo } from 'tempo.ts/chains'
1663
- * import { Actions } from 'tempo.ts/viem'
1662
+ * import { tempo } from 'viem/chains'
1663
+ * import { Actions } from 'viem/tempo'
1664
1664
  *
1665
1665
  * const client = createClient({
1666
1666
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1696,8 +1696,8 @@ export declare namespace watchWhitelistUpdated {
1696
1696
  * @example
1697
1697
  * ```ts
1698
1698
  * import { createClient, http } from 'viem'
1699
- * import { tempo } from 'tempo.ts/chains'
1700
- * import { Actions } from 'tempo.ts/viem'
1699
+ * import { tempo } from 'viem/chains'
1700
+ * import { Actions } from 'viem/tempo'
1701
1701
  *
1702
1702
  * const client = createClient({
1703
1703
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -34,8 +34,8 @@ import type { ReadParameters, WriteParameters } from '../internal/types.js';
34
34
  * @example
35
35
  * ```ts
36
36
  * import { createClient, http } from 'viem'
37
- * import { tempo } from 'tempo.ts/chains'
38
- * import { Actions } from 'tempo.ts/viem'
37
+ * import { tempo } from 'viem/chains'
38
+ * import { Actions } from 'viem/tempo'
39
39
  * import { privateKeyToAccount } from 'viem/accounts'
40
40
  *
41
41
  * const client = createClient({
@@ -75,8 +75,8 @@ export declare namespace claim {
75
75
  * @example
76
76
  * ```ts
77
77
  * import { createClient, http, walletActions } from 'viem'
78
- * import { tempo } from 'tempo.ts/chains'
79
- * import { Actions } from 'tempo.ts/viem'
78
+ * import { tempo } from 'viem/chains'
79
+ * import { Actions } from 'viem/tempo'
80
80
  *
81
81
  * const client = createClient({
82
82
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -133,8 +133,8 @@ export declare namespace claim {
133
133
  * @example
134
134
  * ```ts
135
135
  * import { createClient, http } from 'viem'
136
- * import { tempo } from 'tempo.ts/chains'
137
- * import { Actions } from 'tempo.ts/viem'
136
+ * import { tempo } from 'viem/chains'
137
+ * import { Actions } from 'viem/tempo'
138
138
  * import { privateKeyToAccount } from 'viem/accounts'
139
139
  *
140
140
  * const client = createClient({
@@ -175,8 +175,8 @@ export declare namespace claimSync {
175
175
  * @example
176
176
  * ```ts
177
177
  * import { createClient, http } from 'viem'
178
- * import { tempo } from 'tempo.ts/chains'
179
- * import { Actions } from 'tempo.ts/viem'
178
+ * import { tempo } from 'viem/chains'
179
+ * import { Actions } from 'viem/tempo'
180
180
  * import { privateKeyToAccount } from 'viem/accounts'
181
181
  *
182
182
  * const client = createClient({
@@ -210,8 +210,8 @@ export declare function distribute<chain extends Chain | undefined, account exte
210
210
  * @example
211
211
  * ```ts
212
212
  * import { createClient, http } from 'viem'
213
- * import { tempo } from 'tempo.ts/chains'
214
- * import { Actions } from 'tempo.ts/viem'
213
+ * import { tempo } from 'viem/chains'
214
+ * import { Actions } from 'viem/tempo'
215
215
  * import { privateKeyToAccount } from 'viem/accounts'
216
216
  *
217
217
  * const client = createClient({
@@ -254,8 +254,8 @@ export declare namespace distribute {
254
254
  * @example
255
255
  * ```ts
256
256
  * import { createClient, http, walletActions } from 'viem'
257
- * import { tempo } from 'tempo.ts/chains'
258
- * import { Actions } from 'tempo.ts/viem'
257
+ * import { tempo } from 'viem/chains'
258
+ * import { Actions } from 'viem/tempo'
259
259
  *
260
260
  * const client = createClient({
261
261
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1076,8 +1076,8 @@ export declare namespace distributeSync {
1076
1076
  * @example
1077
1077
  * ```ts
1078
1078
  * import { createClient, http } from 'viem'
1079
- * import { tempo } from 'tempo.ts/chains'
1080
- * import { Actions } from 'tempo.ts/viem'
1079
+ * import { tempo } from 'viem/chains'
1080
+ * import { Actions } from 'viem/tempo'
1081
1081
  *
1082
1082
  * const client = createClient({
1083
1083
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1135,8 +1135,8 @@ export declare namespace getGlobalRewardPerToken {
1135
1135
  * @example
1136
1136
  * ```ts
1137
1137
  * import { createClient, http } from 'viem'
1138
- * import { tempo } from 'tempo.ts/chains'
1139
- * import { Actions } from 'tempo.ts/viem'
1138
+ * import { tempo } from 'viem/chains'
1139
+ * import { Actions } from 'viem/tempo'
1140
1140
  *
1141
1141
  * const client = createClient({
1142
1142
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1204,8 +1204,8 @@ export declare namespace getPendingRewards {
1204
1204
  * @example
1205
1205
  * ```ts
1206
1206
  * import { createClient, http } from 'viem'
1207
- * import { tempo } from 'tempo.ts/chains'
1208
- * import { Actions } from 'tempo.ts/viem'
1207
+ * import { tempo } from 'viem/chains'
1208
+ * import { Actions } from 'viem/tempo'
1209
1209
  *
1210
1210
  * const client = createClient({
1211
1211
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -1286,8 +1286,8 @@ export declare namespace getUserRewardInfo {
1286
1286
  * @example
1287
1287
  * ```ts
1288
1288
  * import { createClient, http } from 'viem'
1289
- * import { tempo } from 'tempo.ts/chains'
1290
- * import { Actions } from 'tempo.ts/viem'
1289
+ * import { tempo } from 'viem/chains'
1290
+ * import { Actions } from 'viem/tempo'
1291
1291
  * import { privateKeyToAccount } from 'viem/accounts'
1292
1292
  *
1293
1293
  * const client = createClient({
@@ -1322,8 +1322,8 @@ export declare function setRecipient<chain extends Chain | undefined, account ex
1322
1322
  * @example
1323
1323
  * ```ts
1324
1324
  * import { createClient, http } from 'viem'
1325
- * import { tempo } from 'tempo.ts/chains'
1326
- * import { Actions } from 'tempo.ts/viem'
1325
+ * import { tempo } from 'viem/chains'
1326
+ * import { Actions } from 'viem/tempo'
1327
1327
  * import { privateKeyToAccount } from 'viem/accounts'
1328
1328
  *
1329
1329
  * const client = createClient({
@@ -1366,8 +1366,8 @@ export declare namespace setRecipient {
1366
1366
  * @example
1367
1367
  * ```ts
1368
1368
  * import { createClient, http, walletActions } from 'viem'
1369
- * import { tempo } from 'tempo.ts/chains'
1370
- * import { Actions } from 'tempo.ts/viem'
1369
+ * import { tempo } from 'viem/chains'
1370
+ * import { Actions } from 'viem/tempo'
1371
1371
  *
1372
1372
  * const client = createClient({
1373
1373
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -2185,8 +2185,8 @@ export declare namespace setRecipientSync {
2185
2185
  * @example
2186
2186
  * ```ts
2187
2187
  * import { createClient, http } from 'viem'
2188
- * import { tempo } from 'tempo.ts/chains'
2189
- * import { Actions } from 'tempo.ts/viem'
2188
+ * import { tempo } from 'viem/chains'
2189
+ * import { Actions } from 'viem/tempo'
2190
2190
  *
2191
2191
  * const client = createClient({
2192
2192
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
@@ -2226,8 +2226,8 @@ export declare namespace watchRewardDistributed {
2226
2226
  * @example
2227
2227
  * ```ts
2228
2228
  * import { createClient, http } from 'viem'
2229
- * import { tempo } from 'tempo.ts/chains'
2230
- * import { Actions } from 'tempo.ts/viem'
2229
+ * import { tempo } from 'viem/chains'
2230
+ * import { Actions } from 'viem/tempo'
2231
2231
  *
2232
2232
  * const client = createClient({
2233
2233
  * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })