viem 2.48.2 → 2.48.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 (78) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/errors/version.js +1 -1
  3. package/_cjs/tempo/Addresses.js +2 -1
  4. package/_cjs/tempo/Addresses.js.map +1 -1
  5. package/_cjs/tempo/Decorator.js +7 -0
  6. package/_cjs/tempo/Decorator.js.map +1 -1
  7. package/_cjs/tempo/actions/index.js +2 -1
  8. package/_cjs/tempo/actions/index.js.map +1 -1
  9. package/_cjs/tempo/actions/virtualAddress.js +95 -0
  10. package/_cjs/tempo/actions/virtualAddress.js.map +1 -0
  11. package/_cjs/tempo/index.js +7 -2
  12. package/_cjs/tempo/index.js.map +1 -1
  13. package/_esm/errors/version.js +1 -1
  14. package/_esm/tempo/Addresses.js +1 -0
  15. package/_esm/tempo/Addresses.js.map +1 -1
  16. package/_esm/tempo/Decorator.js +7 -0
  17. package/_esm/tempo/Decorator.js.map +1 -1
  18. package/_esm/tempo/actions/accessKey.js +10 -10
  19. package/_esm/tempo/actions/amm.js +14 -14
  20. package/_esm/tempo/actions/dex.js +34 -34
  21. package/_esm/tempo/actions/faucet.js +2 -2
  22. package/_esm/tempo/actions/fee.js +10 -10
  23. package/_esm/tempo/actions/index.js +1 -0
  24. package/_esm/tempo/actions/index.js.map +1 -1
  25. package/_esm/tempo/actions/nonce.js +2 -2
  26. package/_esm/tempo/actions/policy.js +18 -18
  27. package/_esm/tempo/actions/reward.js +14 -14
  28. package/_esm/tempo/actions/token.js +61 -61
  29. package/_esm/tempo/actions/validator.js +27 -27
  30. package/_esm/tempo/actions/virtualAddress.js +228 -0
  31. package/_esm/tempo/actions/virtualAddress.js.map +1 -0
  32. package/_esm/tempo/index.js +3 -3
  33. package/_esm/tempo/index.js.map +1 -1
  34. package/_types/errors/version.d.ts +1 -1
  35. package/_types/tempo/Addresses.d.ts +1 -0
  36. package/_types/tempo/Addresses.d.ts.map +1 -1
  37. package/_types/tempo/Decorator.d.ts +101 -1
  38. package/_types/tempo/Decorator.d.ts.map +1 -1
  39. package/_types/tempo/actions/accessKey.d.ts +10 -10
  40. package/_types/tempo/actions/amm.d.ts +14 -14
  41. package/_types/tempo/actions/dex.d.ts +34 -34
  42. package/_types/tempo/actions/faucet.d.ts +2 -2
  43. package/_types/tempo/actions/fee.d.ts +10 -10
  44. package/_types/tempo/actions/index.d.ts +1 -0
  45. package/_types/tempo/actions/index.d.ts.map +1 -1
  46. package/_types/tempo/actions/nonce.d.ts +2 -2
  47. package/_types/tempo/actions/policy.d.ts +18 -18
  48. package/_types/tempo/actions/reward.d.ts +14 -14
  49. package/_types/tempo/actions/token.d.ts +61 -61
  50. package/_types/tempo/actions/validator.d.ts +27 -27
  51. package/_types/tempo/actions/virtualAddress.d.ts +350 -0
  52. package/_types/tempo/actions/virtualAddress.d.ts.map +1 -0
  53. package/_types/tempo/index.d.ts +2 -2
  54. package/_types/tempo/index.d.ts.map +1 -1
  55. package/errors/version.ts +1 -1
  56. package/package.json +2 -2
  57. package/tempo/Addresses.ts +1 -0
  58. package/tempo/Decorator.ts +125 -1
  59. package/tempo/actions/accessKey.ts +10 -10
  60. package/tempo/actions/amm.ts +14 -14
  61. package/tempo/actions/dex.ts +34 -34
  62. package/tempo/actions/faucet.ts +2 -2
  63. package/tempo/actions/fee.ts +10 -10
  64. package/tempo/actions/index.ts +1 -0
  65. package/tempo/actions/nonce.ts +2 -2
  66. package/tempo/actions/policy.ts +18 -18
  67. package/tempo/actions/reward.ts +14 -14
  68. package/tempo/actions/token.ts +61 -61
  69. package/tempo/actions/validator.ts +27 -27
  70. package/tempo/actions/virtualAddress.ts +337 -0
  71. package/tempo/index.ts +10 -3
  72. package/_cjs/tempo/Secp256k1.js +0 -6
  73. package/_cjs/tempo/Secp256k1.js.map +0 -1
  74. package/_esm/tempo/Secp256k1.js +0 -3
  75. package/_esm/tempo/Secp256k1.js.map +0 -1
  76. package/_types/tempo/Secp256k1.d.ts +0 -2
  77. package/_types/tempo/Secp256k1.d.ts.map +0 -1
  78. package/tempo/Secp256k1.ts +0 -2
@@ -24,7 +24,7 @@ import type { ReadParameters, WriteParameters } from '../internal/types.js';
24
24
  *
25
25
  * const client = createClient({
26
26
  * account: privateKeyToAccount('0x...'),
27
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
27
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
28
28
  * transport: http(),
29
29
  * })
30
30
  *
@@ -75,7 +75,7 @@ export declare namespace add {
75
75
  * import { Actions } from 'viem/tempo'
76
76
  *
77
77
  * const client = createClient({
78
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
78
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
79
79
  * transport: http(),
80
80
  * }).extend(walletActions)
81
81
  *
@@ -140,7 +140,7 @@ export declare namespace add {
140
140
  *
141
141
  * const client = createClient({
142
142
  * account: privateKeyToAccount('0x...'),
143
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
143
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
144
144
  * transport: http(),
145
145
  * })
146
146
  *
@@ -177,7 +177,7 @@ export declare namespace addSync {
177
177
  *
178
178
  * const client = createClient({
179
179
  * account: privateKeyToAccount('0x...'),
180
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
180
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
181
181
  * transport: http(),
182
182
  * })
183
183
  *
@@ -216,7 +216,7 @@ export declare namespace changeOwner {
216
216
  * import { Actions } from 'viem/tempo'
217
217
  *
218
218
  * const client = createClient({
219
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
219
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
220
220
  * transport: http(),
221
221
  * }).extend(walletActions)
222
222
  *
@@ -265,7 +265,7 @@ export declare namespace changeOwner {
265
265
  *
266
266
  * const client = createClient({
267
267
  * account: privateKeyToAccount('0x...'),
268
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
268
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
269
269
  * transport: http(),
270
270
  * })
271
271
  *
@@ -298,7 +298,7 @@ export declare namespace changeOwnerSync {
298
298
  *
299
299
  * const client = createClient({
300
300
  * account: privateKeyToAccount('0x...'),
301
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
301
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
302
302
  * transport: http(),
303
303
  * })
304
304
  *
@@ -340,7 +340,7 @@ export declare namespace changeStatus {
340
340
  * import { Actions } from 'viem/tempo'
341
341
  *
342
342
  * const client = createClient({
343
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
343
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
344
344
  * transport: http(),
345
345
  * }).extend(walletActions)
346
346
  *
@@ -393,7 +393,7 @@ export declare namespace changeStatus {
393
393
  *
394
394
  * const client = createClient({
395
395
  * account: privateKeyToAccount('0x...'),
396
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
396
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
397
397
  * transport: http(),
398
398
  * })
399
399
  *
@@ -425,7 +425,7 @@ export declare namespace changeStatusSync {
425
425
  * import { Actions } from 'viem/tempo'
426
426
  *
427
427
  * const client = createClient({
428
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
428
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
429
429
  * transport: http(),
430
430
  * })
431
431
  *
@@ -455,7 +455,7 @@ export declare namespace getNextFullDkgCeremony {
455
455
  * import { Actions } from 'viem/tempo'
456
456
  *
457
457
  * const client = createClient({
458
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
458
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
459
459
  * transport: http(),
460
460
  * })
461
461
  *
@@ -496,7 +496,7 @@ export declare namespace getNextFullDkgCeremony {
496
496
  * import { Actions } from 'viem/tempo'
497
497
  *
498
498
  * const client = createClient({
499
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
499
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
500
500
  * transport: http(),
501
501
  * })
502
502
  *
@@ -526,7 +526,7 @@ export declare namespace getOwner {
526
526
  * import { Actions } from 'viem/tempo'
527
527
  *
528
528
  * const client = createClient({
529
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
529
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
530
530
  * transport: http(),
531
531
  * })
532
532
  *
@@ -567,7 +567,7 @@ export declare namespace getOwner {
567
567
  * import { Actions } from 'viem/tempo'
568
568
  *
569
569
  * const client = createClient({
570
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
570
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
571
571
  * transport: http(),
572
572
  * })
573
573
  *
@@ -603,7 +603,7 @@ export declare namespace get {
603
603
  * import { Actions } from 'viem/tempo'
604
604
  *
605
605
  * const client = createClient({
606
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
606
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
607
607
  * transport: http(),
608
608
  * })
609
609
  *
@@ -669,7 +669,7 @@ export declare namespace get {
669
669
  * import { Actions } from 'viem/tempo'
670
670
  *
671
671
  * const client = createClient({
672
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
672
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
673
673
  * transport: http(),
674
674
  * })
675
675
  *
@@ -705,7 +705,7 @@ export declare namespace getByIndex {
705
705
  * import { Actions } from 'viem/tempo'
706
706
  *
707
707
  * const client = createClient({
708
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
708
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
709
709
  * transport: http(),
710
710
  * })
711
711
  *
@@ -753,7 +753,7 @@ export declare namespace getByIndex {
753
753
  * import { Actions } from 'viem/tempo'
754
754
  *
755
755
  * const client = createClient({
756
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
756
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
757
757
  * transport: http(),
758
758
  * })
759
759
  *
@@ -783,7 +783,7 @@ export declare namespace getCount {
783
783
  * import { Actions } from 'viem/tempo'
784
784
  *
785
785
  * const client = createClient({
786
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
786
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
787
787
  * transport: http(),
788
788
  * })
789
789
  *
@@ -824,7 +824,7 @@ export declare namespace getCount {
824
824
  * import { Actions } from 'viem/tempo'
825
825
  *
826
826
  * const client = createClient({
827
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
827
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
828
828
  * transport: http(),
829
829
  * })
830
830
  *
@@ -854,7 +854,7 @@ export declare namespace list {
854
854
  * import { Actions } from 'viem/tempo'
855
855
  *
856
856
  * const client = createClient({
857
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
857
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
858
858
  * transport: http(),
859
859
  * })
860
860
  *
@@ -917,7 +917,7 @@ export declare namespace list {
917
917
  *
918
918
  * const client = createClient({
919
919
  * account: privateKeyToAccount('0x...'),
920
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
920
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
921
921
  * transport: http(),
922
922
  * })
923
923
  *
@@ -956,7 +956,7 @@ export declare namespace setNextFullDkgCeremony {
956
956
  * import { Actions } from 'viem/tempo'
957
957
  *
958
958
  * const client = createClient({
959
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
959
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
960
960
  * transport: http(),
961
961
  * }).extend(walletActions)
962
962
  *
@@ -1005,7 +1005,7 @@ export declare namespace setNextFullDkgCeremony {
1005
1005
  *
1006
1006
  * const client = createClient({
1007
1007
  * account: privateKeyToAccount('0x...'),
1008
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1008
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1009
1009
  * transport: http(),
1010
1010
  * })
1011
1011
  *
@@ -1038,7 +1038,7 @@ export declare namespace setNextFullDkgCeremonySync {
1038
1038
  *
1039
1039
  * const client = createClient({
1040
1040
  * account: privateKeyToAccount('0x...'),
1041
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1041
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1042
1042
  * transport: http(),
1043
1043
  * })
1044
1044
  *
@@ -1086,7 +1086,7 @@ export declare namespace update {
1086
1086
  * import { Actions } from 'viem/tempo'
1087
1087
  *
1088
1088
  * const client = createClient({
1089
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1089
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1090
1090
  * transport: http(),
1091
1091
  * }).extend(walletActions)
1092
1092
  *
@@ -1147,7 +1147,7 @@ export declare namespace update {
1147
1147
  *
1148
1148
  * const client = createClient({
1149
1149
  * account: privateKeyToAccount('0x...'),
1150
- * chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1150
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
1151
1151
  * transport: http(),
1152
1152
  * })
1153
1153
  *
@@ -0,0 +1,350 @@
1
+ import type { Address } from 'abitype';
2
+ import * as Hex from 'ox/Hex';
3
+ import type { Account } from '../../accounts/types.js';
4
+ import type { WriteContractReturnType } from '../../actions/wallet/writeContract.js';
5
+ import { writeContract } from '../../actions/wallet/writeContract.js';
6
+ import { writeContractSync } from '../../actions/wallet/writeContractSync.js';
7
+ import type { Client } from '../../clients/createClient.js';
8
+ import type { Transport } from '../../clients/transports/createTransport.js';
9
+ import type { BaseErrorType } from '../../errors/base.js';
10
+ import type { Chain } from '../../types/chain.js';
11
+ import type { GetEventArgs } from '../../types/contract.js';
12
+ import type { Compute } from '../../types/utils.js';
13
+ import * as Abis from '../Abis.js';
14
+ import type { ReadParameters, WriteParameters } from '../internal/types.js';
15
+ import type { TransactionReceipt } from '../Transaction.js';
16
+ /**
17
+ * Gets the master address for a given master ID.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * import { createClient, http } from 'viem'
22
+ * import { tempo } from 'viem/chains'
23
+ * import { Actions } from 'viem/tempo'
24
+ *
25
+ * const client = createClient({
26
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
27
+ * transport: http(),
28
+ * })
29
+ *
30
+ * const address = await Actions.virtualAddress.getMasterAddress(client, {
31
+ * masterId: '0xdeadbeef',
32
+ * })
33
+ * ```
34
+ *
35
+ * @param client - Client.
36
+ * @param parameters - Parameters.
37
+ * @returns The master address, or null if unregistered.
38
+ */
39
+ export declare function getMasterAddress<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: getMasterAddress.Parameters): Promise<getMasterAddress.ReturnValue>;
40
+ export declare namespace getMasterAddress {
41
+ type Parameters = ReadParameters & Args;
42
+ type Args = {
43
+ /** The master ID (bytes4). */
44
+ masterId: Hex.Hex;
45
+ };
46
+ type ReturnValue = Address | null;
47
+ type ErrorType = BaseErrorType;
48
+ /**
49
+ * Defines a call to the `getMaster` function.
50
+ *
51
+ * @param args - Arguments.
52
+ * @returns The call.
53
+ */
54
+ function call(args: Args): {
55
+ abi: [{
56
+ readonly name: "getMaster";
57
+ readonly type: "function";
58
+ readonly stateMutability: "view";
59
+ readonly inputs: readonly [{
60
+ readonly type: "bytes4";
61
+ readonly name: "masterId";
62
+ }];
63
+ readonly outputs: readonly [{
64
+ readonly type: "address";
65
+ }];
66
+ }];
67
+ functionName: "getMaster";
68
+ } & {
69
+ args: readonly [`0x${string}`];
70
+ } & {
71
+ address: Address;
72
+ } & {
73
+ data: import("../../index.js").Hex;
74
+ to: Address;
75
+ };
76
+ }
77
+ /**
78
+ * Resolves a virtual address to its master address.
79
+ *
80
+ * - Non-virtual addresses are returned unchanged.
81
+ * - Virtual addresses with a registered master return the master address.
82
+ * - Virtual addresses with an unregistered master return null.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * import { createClient, http } from 'viem'
87
+ * import { tempo } from 'viem/chains'
88
+ * import { Actions } from 'viem/tempo'
89
+ *
90
+ * const client = createClient({
91
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
92
+ * transport: http(),
93
+ * })
94
+ *
95
+ * const recipient = await Actions.virtualAddress.resolve(client, {
96
+ * address: '0x...',
97
+ * })
98
+ * ```
99
+ *
100
+ * @param client - Client.
101
+ * @param parameters - Parameters.
102
+ * @returns The resolved address, or null if virtual and unregistered.
103
+ */
104
+ export declare function resolve<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: resolve.Parameters): Promise<resolve.ReturnValue>;
105
+ export declare namespace resolve {
106
+ type Parameters = ReadParameters & Args;
107
+ type Args = {
108
+ /** The address to resolve. */
109
+ address: Address;
110
+ };
111
+ type ReturnValue = Address | null;
112
+ type ErrorType = BaseErrorType;
113
+ }
114
+ /**
115
+ * Registers a virtual master address.
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * import { createClient, http } from 'viem'
120
+ * import { tempo } from 'viem/chains'
121
+ * import { Actions } from 'viem/tempo'
122
+ * import { privateKeyToAccount } from 'viem/accounts'
123
+ *
124
+ * const client = createClient({
125
+ * account: privateKeyToAccount('0x...'),
126
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
127
+ * transport: http(),
128
+ * })
129
+ *
130
+ * const hash = await Actions.virtualAddress.registerMaster(client, {
131
+ * salt: '0x...',
132
+ * })
133
+ * ```
134
+ *
135
+ * @param client - Client.
136
+ * @param parameters - Parameters.
137
+ * @returns The transaction hash.
138
+ */
139
+ export declare function registerMaster<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: registerMaster.Parameters<chain, account>): Promise<registerMaster.ReturnValue>;
140
+ export declare namespace registerMaster {
141
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
142
+ type Args = {
143
+ /** The salt (bytes32) used for proof-of-work master ID derivation. */
144
+ salt: Hex.Hex;
145
+ };
146
+ type ReturnValue = WriteContractReturnType;
147
+ type ErrorType = BaseErrorType;
148
+ /** @internal */
149
+ function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: registerMaster.Parameters<chain, account>): Promise<ReturnType<action>>;
150
+ /**
151
+ * Defines a call to the `registerVirtualMaster` function.
152
+ *
153
+ * Can be passed as a parameter to:
154
+ * - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
155
+ * - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
156
+ * - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
157
+ *
158
+ * @example
159
+ * ```ts
160
+ * import { createClient, http, walletActions } from 'viem'
161
+ * import { tempo } from 'viem/chains'
162
+ * import { Actions } from 'viem/tempo'
163
+ *
164
+ * const client = createClient({
165
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
166
+ * transport: http(),
167
+ * }).extend(walletActions)
168
+ *
169
+ * const { result } = await client.sendCalls({
170
+ * calls: [
171
+ * Actions.virtualAddress.registerMaster.call({
172
+ * salt: '0x...',
173
+ * }),
174
+ * ]
175
+ * })
176
+ * ```
177
+ *
178
+ * @param args - Arguments.
179
+ * @returns The call.
180
+ */
181
+ function call(args: Args): {
182
+ abi: [{
183
+ readonly name: "registerVirtualMaster";
184
+ readonly type: "function";
185
+ readonly stateMutability: "nonpayable";
186
+ readonly inputs: readonly [{
187
+ readonly type: "bytes32";
188
+ readonly name: "salt";
189
+ }];
190
+ readonly outputs: readonly [{
191
+ readonly type: "bytes4";
192
+ readonly name: "masterId";
193
+ }];
194
+ }];
195
+ functionName: "registerVirtualMaster";
196
+ } & {
197
+ args: readonly [salt: `0x${string}`];
198
+ } & {
199
+ address: Address;
200
+ } & {
201
+ data: import("../../index.js").Hex;
202
+ to: Address;
203
+ };
204
+ function extractEvent(logs: import('../../types/log.js').Log[]): import("../../types/log.js").Log<bigint, number, false, undefined, true, readonly [{
205
+ readonly name: "registerVirtualMaster";
206
+ readonly type: "function";
207
+ readonly stateMutability: "nonpayable";
208
+ readonly inputs: readonly [{
209
+ readonly type: "bytes32";
210
+ readonly name: "salt";
211
+ }];
212
+ readonly outputs: readonly [{
213
+ readonly type: "bytes4";
214
+ readonly name: "masterId";
215
+ }];
216
+ }, {
217
+ readonly name: "getMaster";
218
+ readonly type: "function";
219
+ readonly stateMutability: "view";
220
+ readonly inputs: readonly [{
221
+ readonly type: "bytes4";
222
+ readonly name: "masterId";
223
+ }];
224
+ readonly outputs: readonly [{
225
+ readonly type: "address";
226
+ }];
227
+ }, {
228
+ readonly name: "resolveRecipient";
229
+ readonly type: "function";
230
+ readonly stateMutability: "view";
231
+ readonly inputs: readonly [{
232
+ readonly type: "address";
233
+ readonly name: "to";
234
+ }];
235
+ readonly outputs: readonly [{
236
+ readonly type: "address";
237
+ readonly name: "effectiveRecipient";
238
+ }];
239
+ }, {
240
+ readonly name: "resolveVirtualAddress";
241
+ readonly type: "function";
242
+ readonly stateMutability: "view";
243
+ readonly inputs: readonly [{
244
+ readonly type: "address";
245
+ readonly name: "virtualAddr";
246
+ }];
247
+ readonly outputs: readonly [{
248
+ readonly type: "address";
249
+ readonly name: "master";
250
+ }];
251
+ }, {
252
+ readonly name: "isVirtualAddress";
253
+ readonly type: "function";
254
+ readonly stateMutability: "pure";
255
+ readonly inputs: readonly [{
256
+ readonly type: "address";
257
+ readonly name: "addr";
258
+ }];
259
+ readonly outputs: readonly [{
260
+ readonly type: "bool";
261
+ }];
262
+ }, {
263
+ readonly name: "decodeVirtualAddress";
264
+ readonly type: "function";
265
+ readonly stateMutability: "pure";
266
+ readonly inputs: readonly [{
267
+ readonly type: "address";
268
+ readonly name: "addr";
269
+ }];
270
+ readonly outputs: readonly [{
271
+ readonly type: "bool";
272
+ readonly name: "isVirtual";
273
+ }, {
274
+ readonly type: "bytes4";
275
+ readonly name: "masterId";
276
+ }, {
277
+ readonly type: "bytes6";
278
+ readonly name: "userTag";
279
+ }];
280
+ }, {
281
+ readonly name: "MasterRegistered";
282
+ readonly type: "event";
283
+ readonly inputs: readonly [{
284
+ readonly type: "bytes4";
285
+ readonly name: "masterId";
286
+ readonly indexed: true;
287
+ }, {
288
+ readonly type: "address";
289
+ readonly name: "masterAddress";
290
+ readonly indexed: true;
291
+ }];
292
+ }, {
293
+ readonly name: "MasterIdCollision";
294
+ readonly type: "error";
295
+ readonly inputs: readonly [{
296
+ readonly type: "address";
297
+ readonly name: "master";
298
+ }];
299
+ }, {
300
+ readonly name: "InvalidMasterAddress";
301
+ readonly type: "error";
302
+ readonly inputs: readonly [];
303
+ }, {
304
+ readonly name: "ProofOfWorkFailed";
305
+ readonly type: "error";
306
+ readonly inputs: readonly [];
307
+ }, {
308
+ readonly name: "VirtualAddressUnregistered";
309
+ readonly type: "error";
310
+ readonly inputs: readonly [];
311
+ }], "MasterRegistered">;
312
+ }
313
+ /**
314
+ * Registers a virtual master address and waits for confirmation.
315
+ *
316
+ * @example
317
+ * ```ts
318
+ * import { createClient, http } from 'viem'
319
+ * import { tempo } from 'viem/chains'
320
+ * import { Actions } from 'viem/tempo'
321
+ * import { privateKeyToAccount } from 'viem/accounts'
322
+ *
323
+ * const client = createClient({
324
+ * account: privateKeyToAccount('0x...'),
325
+ * chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
326
+ * transport: http(),
327
+ * })
328
+ *
329
+ * const { receipt, masterId, masterAddress } = await Actions.virtualAddress.registerMasterSync(client, {
330
+ * salt: '0x...',
331
+ * })
332
+ * ```
333
+ *
334
+ * @param client - Client.
335
+ * @param parameters - Parameters.
336
+ * @returns The transaction receipt and extracted event data.
337
+ */
338
+ export declare function registerMasterSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: registerMasterSync.Parameters<chain, account>): Promise<registerMasterSync.ReturnValue>;
339
+ export declare namespace registerMasterSync {
340
+ type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = registerMaster.Parameters<chain, account>;
341
+ type Args = registerMaster.Args;
342
+ type ReturnValue = Compute<GetEventArgs<typeof Abis.addressRegistry, 'MasterRegistered', {
343
+ IndexedOnly: false;
344
+ Required: true;
345
+ }> & {
346
+ receipt: TransactionReceipt;
347
+ }>;
348
+ type ErrorType = BaseErrorType;
349
+ }
350
+ //# sourceMappingURL=virtualAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualAddress.d.ts","sourceRoot":"","sources":["../../../tempo/actions/virtualAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,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,EAAE,OAAO,CAAC,CAAA;IAE7C,KAAY,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;IAEtC,KAAY,WAAW,GAAG,OAAO,CAC/B,YAAY,CACV,OAAO,IAAI,CAAC,eAAe,EAC3B,kBAAkB,EAClB;QAAE,WAAW,EAAE,KAAK,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,CACvC,GAAG;QACF,OAAO,EAAE,kBAAkB,CAAA;KAC5B,CACF,CAAA;IAGD,KAAY,SAAS,GAAG,aAAa,CAAA;CACtC"}
@@ -1,3 +1,4 @@
1
+ export { Bytes, PublicKey, Secp256k1 } from 'ox';
1
2
  export type {
2
3
  /** @deprecated */
3
4
  KeyAuthorization as z_KeyAuthorization,
@@ -7,7 +8,7 @@ SignatureEnvelope as z_SignatureEnvelope,
7
8
  TokenId as z_TokenId,
8
9
  /** @deprecated */
9
10
  TxEnvelopeTempo as z_TxEnvelopeTempo, } from 'ox/tempo';
10
- export { Period, TempoAddress, Tick, TokenId } from 'ox/tempo';
11
+ export { Period, TempoAddress, Tick, TokenId, VirtualAddress, VirtualMaster, } from 'ox/tempo';
11
12
  export * as Abis from './Abis.js';
12
13
  export * as Account from './Account.js';
13
14
  export * as Addresses from './Addresses.js';
@@ -18,7 +19,6 @@ export * as Expiry from './Expiry.js';
18
19
  export * as Formatters from './Formatters.js';
19
20
  export * as Hardfork from './Hardfork.js';
20
21
  export * as P256 from './P256.js';
21
- export * as Secp256k1 from './Secp256k1.js';
22
22
  export * as Storage from './Storage.js';
23
23
  export * as TokenIds from './TokenIds.js';
24
24
  export type {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tempo/index.ts"],"names":[],"mappings":"AACA,YAAY;AACV,kBAAkB;AAClB,gBAAgB,IAAI,kBAAkB;AACtC,kBAAkB;AAClB,iBAAiB,IAAI,mBAAmB;AACxC,kBAAkB;AAClB,OAAO,IAAI,SAAS;AACpB,kBAAkB;AAClB,eAAe,IA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QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAEzC,YAAY;AACV,kBAAkB;AAClB,WAAW,IAAI,aAAa;AAC5B,kBAAkB;AAClB,kBAAkB,IAAI,oBAAoB;AAC1C,kBAAkB;AAClB,qBAAqB,IAAI,uBAAuB;AAChD,kBAAkB;AAClB,kBAAkB,IAAI,oBAAoB;AAC1C,kBAAkB;AAClB,qBAAqB,IAAI,uBAAuB;AAChD,kBAAkB;AAClB,uBAAuB,IAAI,yBAAyB;AACpD,kBAAkB;AAClB,cAAc,IAAI,gBAAgB;AAClC,kBAAkB;AAClB,uBAAuB,IAAI,yBAAyB;AACpD,kBAAkB;AAClB,4BAA4B,IAAI,8BAA8B;AAC9D,kBAAkB;AAClB,qBAAqB,IAAI,uBAAuB;AAChD,kBAAkB;AAClB,0BAA0B,IAAI,4BAA4B;AAC1D,kBAAkB;AAClB,gBAAgB,IAAI,kBAAkB;AACtC,kBAAkB;AAClB,eAAe,IAAI,iBAAiB,GACrC,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/E,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA"}
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.48.2'
1
+ export const version = '2.48.4'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.48.2",
4
+ "version": "2.48.4",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
@@ -222,7 +222,7 @@
222
222
  "@scure/bip39": "1.6.0",
223
223
  "abitype": "1.2.3",
224
224
  "isows": "1.0.7",
225
- "ox": "0.14.17",
225
+ "ox": "0.14.20",
226
226
  "ws": "8.18.3"
227
227
  },
228
228
  "license": "MIT",
@@ -2,6 +2,7 @@ export const accountImplementation =
2
2
  '0x7702c00000000000000000000000000000000000'
3
3
  export const accountKeychain = '0xaAAAaaAA00000000000000000000000000000000'
4
4
  export const accountRegistrar = '0x7702ac0000000000000000000000000000000000'
5
+ export const addressRegistry = '0xfdc0000000000000000000000000000000000000'
5
6
  export const feeManager = '0xfeec000000000000000000000000000000000000'
6
7
  export const nonceManager = '0x4e4F4E4345000000000000000000000000000000'
7
8
  export const pathUsd = '0x20c0000000000000000000000000000000000000'