tempo.ts 0.10.2 → 0.10.3
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 +6 -0
- package/dist/viem/Actions/index.d.ts +1 -0
- package/dist/viem/Actions/index.d.ts.map +1 -1
- package/dist/viem/Actions/index.js +1 -0
- package/dist/viem/Actions/index.js.map +1 -1
- package/dist/viem/Actions/nonce.d.ts +257 -0
- package/dist/viem/Actions/nonce.d.ts.map +1 -0
- package/dist/viem/Actions/nonce.js +226 -0
- package/dist/viem/Actions/nonce.js.map +1 -0
- package/dist/viem/Addresses.d.ts +1 -0
- package/dist/viem/Addresses.d.ts.map +1 -1
- package/dist/viem/Addresses.js +1 -0
- package/dist/viem/Addresses.js.map +1 -1
- package/dist/wagmi/Actions/index.d.ts +1 -0
- package/dist/wagmi/Actions/index.d.ts.map +1 -1
- package/dist/wagmi/Actions/index.js +1 -0
- package/dist/wagmi/Actions/index.js.map +1 -1
- package/dist/wagmi/Actions/nonce.d.ts +147 -0
- package/dist/wagmi/Actions/nonce.d.ts.map +1 -0
- package/dist/wagmi/Actions/nonce.js +169 -0
- package/dist/wagmi/Actions/nonce.js.map +1 -0
- package/dist/wagmi/Hooks/index.d.ts +1 -0
- package/dist/wagmi/Hooks/index.d.ts.map +1 -1
- package/dist/wagmi/Hooks/index.js +1 -0
- package/dist/wagmi/Hooks/index.js.map +1 -1
- package/dist/wagmi/Hooks/nonce.d.ts +110 -0
- package/dist/wagmi/Hooks/nonce.d.ts.map +1 -0
- package/dist/wagmi/Hooks/nonce.js +144 -0
- package/dist/wagmi/Hooks/nonce.js.map +1 -0
- package/package.json +1 -1
- package/src/viem/Actions/index.ts +1 -0
- package/src/viem/Actions/nonce.test.ts +193 -0
- package/src/viem/Actions/nonce.ts +345 -0
- package/src/viem/Addresses.ts +1 -0
- package/src/viem/Chain.test.ts +9 -9
- package/src/wagmi/Actions/index.ts +1 -0
- package/src/wagmi/Actions/nonce.test.ts +141 -0
- package/src/wagmi/Actions/nonce.ts +271 -0
- package/src/wagmi/Hooks/index.ts +1 -0
- package/src/wagmi/Hooks/nonce.test.ts +207 -0
- package/src/wagmi/Hooks/nonce.ts +230 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# tempo.ts
|
|
2
2
|
|
|
3
|
+
## 0.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#112](https://github.com/tempoxyz/tempo-ts/pull/112) [`11a0ddd`](https://github.com/tempoxyz/tempo-ts/commit/11a0ddd97f8a923152415e3454e063647d9284fa) Thanks [@gorried](https://github.com/gorried)! - Added `nonce` Actions & Hooks.
|
|
8
|
+
|
|
3
9
|
## 0.10.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -3,6 +3,7 @@ export * as amm from './amm.js';
|
|
|
3
3
|
export * as dex from './dex.js';
|
|
4
4
|
export * as faucet from './faucet.js';
|
|
5
5
|
export * as fee from './fee.js';
|
|
6
|
+
export * as nonce from './nonce.js';
|
|
6
7
|
export * as policy from './policy.js';
|
|
7
8
|
export * as reward from './reward.js';
|
|
8
9
|
export * as token from './token.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viem/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/viem/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
@@ -3,6 +3,7 @@ export * as amm from './amm.js';
|
|
|
3
3
|
export * as dex from './dex.js';
|
|
4
4
|
export * as faucet from './faucet.js';
|
|
5
5
|
export * as fee from './fee.js';
|
|
6
|
+
export * as nonce from './nonce.js';
|
|
6
7
|
export * as policy from './policy.js';
|
|
7
8
|
export * as reward from './reward.js';
|
|
8
9
|
export * as token from './token.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/viem/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/viem/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import type { Account, Address, Chain, Client, ExtractAbiItem, GetEventArgs, ReadContractReturnType, Transport, Log as viem_Log, WatchContractEventParameters } from 'viem';
|
|
2
|
+
import type { UnionOmit } from '../../internal/types.js';
|
|
3
|
+
import * as Abis from '../Abis.js';
|
|
4
|
+
import type { ReadParameters } from '../internal/types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Gets the nonce for an account and nonce key.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { createClient, http } from 'viem'
|
|
11
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
12
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
13
|
+
*
|
|
14
|
+
* const client = createClient({
|
|
15
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
16
|
+
* transport: http(),
|
|
17
|
+
* })
|
|
18
|
+
*
|
|
19
|
+
* const nonce = await Actions.nonce.getNonce(client, {
|
|
20
|
+
* account: '0x...',
|
|
21
|
+
* nonceKey: 1n,
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param client - Client.
|
|
26
|
+
* @param parameters - Parameters.
|
|
27
|
+
* @returns The nonce value.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getNonce<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: getNonce.Parameters): Promise<getNonce.ReturnValue>;
|
|
30
|
+
export declare namespace getNonce {
|
|
31
|
+
type Parameters = ReadParameters & Args;
|
|
32
|
+
type Args = {
|
|
33
|
+
/** Account address. */
|
|
34
|
+
account: Address;
|
|
35
|
+
/** Nonce key (must be > 0, key 0 is reserved for protocol nonces). */
|
|
36
|
+
nonceKey: bigint;
|
|
37
|
+
};
|
|
38
|
+
type ReturnValue = ReadContractReturnType<typeof Abis.nonce, 'getNonce', never>;
|
|
39
|
+
/**
|
|
40
|
+
* Defines a call to the `getNonce` function.
|
|
41
|
+
*
|
|
42
|
+
* Can be passed as a parameter to:
|
|
43
|
+
* - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
|
|
44
|
+
* - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
|
|
45
|
+
* - [`multicall`](https://viem.sh/docs/contract/multicall): execute multiple calls in parallel
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* import { createClient, http } from 'viem'
|
|
50
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
51
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
52
|
+
*
|
|
53
|
+
* const client = createClient({
|
|
54
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
55
|
+
* transport: http(),
|
|
56
|
+
* })
|
|
57
|
+
*
|
|
58
|
+
* const result = await client.multicall({
|
|
59
|
+
* contracts: [
|
|
60
|
+
* Actions.nonce.getNonce.call({ account: '0x...', nonceKey: 1n }),
|
|
61
|
+
* Actions.nonce.getNonce.call({ account: '0x...', nonceKey: 2n }),
|
|
62
|
+
* ],
|
|
63
|
+
* })
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param args - Arguments.
|
|
67
|
+
* @returns The call.
|
|
68
|
+
*/
|
|
69
|
+
function call(args: Args): {
|
|
70
|
+
abi: [{
|
|
71
|
+
readonly name: "getNonce";
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
readonly name: "account";
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
readonly name: "nonceKey";
|
|
80
|
+
}];
|
|
81
|
+
readonly outputs: readonly [{
|
|
82
|
+
readonly type: "uint64";
|
|
83
|
+
readonly name: "nonce";
|
|
84
|
+
}];
|
|
85
|
+
}];
|
|
86
|
+
functionName: "getNonce";
|
|
87
|
+
args?: readonly [`0x${string}`, bigint] | undefined;
|
|
88
|
+
} & {
|
|
89
|
+
args: readonly [`0x${string}`, bigint];
|
|
90
|
+
} & {
|
|
91
|
+
address: Address;
|
|
92
|
+
} & {
|
|
93
|
+
data: import("viem").Hex;
|
|
94
|
+
to: Address;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Gets the number of active nonce keys for an account.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* import { createClient, http } from 'viem'
|
|
103
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
104
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
105
|
+
*
|
|
106
|
+
* const client = createClient({
|
|
107
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
108
|
+
* transport: http(),
|
|
109
|
+
* })
|
|
110
|
+
*
|
|
111
|
+
* const count = await Actions.nonce.getNonceKeyCount(client, {
|
|
112
|
+
* account: '0x...',
|
|
113
|
+
* })
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @param client - Client.
|
|
117
|
+
* @param parameters - Parameters.
|
|
118
|
+
* @returns The number of active nonce keys.
|
|
119
|
+
*/
|
|
120
|
+
export declare function getNonceKeyCount<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: getNonceKeyCount.Parameters): Promise<getNonceKeyCount.ReturnValue>;
|
|
121
|
+
export declare namespace getNonceKeyCount {
|
|
122
|
+
type Parameters = ReadParameters & Args;
|
|
123
|
+
type Args = {
|
|
124
|
+
/** Account address. */
|
|
125
|
+
account: Address;
|
|
126
|
+
};
|
|
127
|
+
type ReturnValue = ReadContractReturnType<typeof Abis.nonce, 'getActiveNonceKeyCount', never>;
|
|
128
|
+
/**
|
|
129
|
+
* Defines a call to the `getNonceKeyCount` function.
|
|
130
|
+
*
|
|
131
|
+
* Can be passed as a parameter to:
|
|
132
|
+
* - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
|
|
133
|
+
* - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
|
|
134
|
+
* - [`multicall`](https://viem.sh/docs/contract/multicall): execute multiple calls in parallel
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* import { createClient, http } from 'viem'
|
|
139
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
140
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
141
|
+
*
|
|
142
|
+
* const client = createClient({
|
|
143
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
144
|
+
* transport: http(),
|
|
145
|
+
* })
|
|
146
|
+
*
|
|
147
|
+
* const result = await client.multicall({
|
|
148
|
+
* contracts: [
|
|
149
|
+
* Actions.nonce.getNonceKeyCount.call({ account: '0x...' }),
|
|
150
|
+
* Actions.nonce.getNonceKeyCount.call({ account: '0x...' }),
|
|
151
|
+
* ],
|
|
152
|
+
* })
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @param args - Arguments.
|
|
156
|
+
* @returns The call.
|
|
157
|
+
*/
|
|
158
|
+
function call(args: Args): {
|
|
159
|
+
abi: [{
|
|
160
|
+
readonly name: "getActiveNonceKeyCount";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
readonly stateMutability: "view";
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly name: "account";
|
|
166
|
+
}];
|
|
167
|
+
readonly outputs: readonly [{
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
readonly name: "count";
|
|
170
|
+
}];
|
|
171
|
+
}];
|
|
172
|
+
functionName: "getActiveNonceKeyCount";
|
|
173
|
+
args?: readonly [`0x${string}`] | undefined;
|
|
174
|
+
} & {
|
|
175
|
+
args: readonly [`0x${string}`];
|
|
176
|
+
} & {
|
|
177
|
+
address: Address;
|
|
178
|
+
} & {
|
|
179
|
+
data: import("viem").Hex;
|
|
180
|
+
to: Address;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Watches for nonce incremented events.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```ts
|
|
188
|
+
* import { createClient, http } from 'viem'
|
|
189
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
190
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
191
|
+
*
|
|
192
|
+
* const client = createClient({
|
|
193
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
194
|
+
* transport: http(),
|
|
195
|
+
* })
|
|
196
|
+
*
|
|
197
|
+
* const unwatch = Actions.nonce.watchNonceIncremented(client, {
|
|
198
|
+
* onNonceIncremented: (args, log) => {
|
|
199
|
+
* console.log('Nonce incremented:', args)
|
|
200
|
+
* },
|
|
201
|
+
* })
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* @param client - Client.
|
|
205
|
+
* @param parameters - Parameters.
|
|
206
|
+
* @returns A function to unsubscribe from the event.
|
|
207
|
+
*/
|
|
208
|
+
export declare function watchNonceIncremented<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchNonceIncremented.Parameters): import("viem").WatchContractEventReturnType;
|
|
209
|
+
export declare namespace watchNonceIncremented {
|
|
210
|
+
type Args = GetEventArgs<typeof Abis.nonce, 'NonceIncremented', {
|
|
211
|
+
IndexedOnly: false;
|
|
212
|
+
Required: true;
|
|
213
|
+
}>;
|
|
214
|
+
type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.nonce, 'NonceIncremented'>, true>;
|
|
215
|
+
type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.nonce, 'NonceIncremented', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
|
|
216
|
+
/** Callback to invoke when a nonce is incremented. */
|
|
217
|
+
onNonceIncremented: (args: Args, log: Log) => void;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Watches for active key count changed events.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```ts
|
|
225
|
+
* import { createClient, http } from 'viem'
|
|
226
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
227
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
228
|
+
*
|
|
229
|
+
* const client = createClient({
|
|
230
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
231
|
+
* transport: http(),
|
|
232
|
+
* })
|
|
233
|
+
*
|
|
234
|
+
* const unwatch = Actions.nonce.watchActiveKeyCountChanged(client, {
|
|
235
|
+
* onActiveKeyCountChanged: (args, log) => {
|
|
236
|
+
* console.log('Active key count changed:', args)
|
|
237
|
+
* },
|
|
238
|
+
* })
|
|
239
|
+
* ```
|
|
240
|
+
*
|
|
241
|
+
* @param client - Client.
|
|
242
|
+
* @param parameters - Parameters.
|
|
243
|
+
* @returns A function to unsubscribe from the event.
|
|
244
|
+
*/
|
|
245
|
+
export declare function watchActiveKeyCountChanged<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchActiveKeyCountChanged.Parameters): import("viem").WatchContractEventReturnType;
|
|
246
|
+
export declare namespace watchActiveKeyCountChanged {
|
|
247
|
+
type Args = GetEventArgs<typeof Abis.nonce, 'ActiveKeyCountChanged', {
|
|
248
|
+
IndexedOnly: false;
|
|
249
|
+
Required: true;
|
|
250
|
+
}>;
|
|
251
|
+
type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.nonce, 'ActiveKeyCountChanged'>, true>;
|
|
252
|
+
type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.nonce, 'ActiveKeyCountChanged', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
|
|
253
|
+
/** Callback to invoke when the active key count changes. */
|
|
254
|
+
onActiveKeyCountChanged: (args: Args, log: Log) => void;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=nonce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonce.d.ts","sourceRoot":"","sources":["../../../src/viem/Actions/nonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,SAAS,EACT,GAAG,IAAI,QAAQ,EACf,4BAA4B,EAC7B,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,IAAI,MAAM,YAAY,CAAA;AAElC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,QAAQ,CAC5B,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,OAAO,SAAS,OAAO,GAAG,SAAS,EAEnC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAK/B;AAED,yBAAiB,QAAQ,CAAC;IACxB,KAAY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xB,MAAM,EACN,MAAM,EACN,KAAK,EACL,cAAc,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,uBAAuB,CAAC,EAC1D,IAAI,CACL,CAAA;IAED,KAAY,UAAU,GAAG,SAAS,CAChC,4BAA4B,CAC1B,OAAO,IAAI,CAAC,KAAK,EACjB,uBAAuB,EACvB,IAAI,CACL,EACD,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAChE,GAAG;QACF,4DAA4D;QAC5D,uBAAuB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;KACxD,CAAA;CACF"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { readContract, watchContractEvent } from 'viem/actions';
|
|
2
|
+
import * as Abis from '../Abis.js';
|
|
3
|
+
import * as Addresses from '../Addresses.js';
|
|
4
|
+
import { defineCall } from '../internal/utils.js';
|
|
5
|
+
/**
|
|
6
|
+
* Gets the nonce for an account and nonce key.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { createClient, http } from 'viem'
|
|
11
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
12
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
13
|
+
*
|
|
14
|
+
* const client = createClient({
|
|
15
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
16
|
+
* transport: http(),
|
|
17
|
+
* })
|
|
18
|
+
*
|
|
19
|
+
* const nonce = await Actions.nonce.getNonce(client, {
|
|
20
|
+
* account: '0x...',
|
|
21
|
+
* nonceKey: 1n,
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param client - Client.
|
|
26
|
+
* @param parameters - Parameters.
|
|
27
|
+
* @returns The nonce value.
|
|
28
|
+
*/
|
|
29
|
+
export async function getNonce(client, parameters) {
|
|
30
|
+
return readContract(client, {
|
|
31
|
+
...parameters,
|
|
32
|
+
...getNonce.call(parameters),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
(function (getNonce) {
|
|
36
|
+
/**
|
|
37
|
+
* Defines a call to the `getNonce` function.
|
|
38
|
+
*
|
|
39
|
+
* Can be passed as a parameter to:
|
|
40
|
+
* - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
|
|
41
|
+
* - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
|
|
42
|
+
* - [`multicall`](https://viem.sh/docs/contract/multicall): execute multiple calls in parallel
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { createClient, http } from 'viem'
|
|
47
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
48
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
49
|
+
*
|
|
50
|
+
* const client = createClient({
|
|
51
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
52
|
+
* transport: http(),
|
|
53
|
+
* })
|
|
54
|
+
*
|
|
55
|
+
* const result = await client.multicall({
|
|
56
|
+
* contracts: [
|
|
57
|
+
* Actions.nonce.getNonce.call({ account: '0x...', nonceKey: 1n }),
|
|
58
|
+
* Actions.nonce.getNonce.call({ account: '0x...', nonceKey: 2n }),
|
|
59
|
+
* ],
|
|
60
|
+
* })
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param args - Arguments.
|
|
64
|
+
* @returns The call.
|
|
65
|
+
*/
|
|
66
|
+
function call(args) {
|
|
67
|
+
const { account, nonceKey } = args;
|
|
68
|
+
return defineCall({
|
|
69
|
+
address: Addresses.nonceManager,
|
|
70
|
+
abi: Abis.nonce,
|
|
71
|
+
args: [account, nonceKey],
|
|
72
|
+
functionName: 'getNonce',
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
getNonce.call = call;
|
|
76
|
+
})(getNonce || (getNonce = {}));
|
|
77
|
+
/**
|
|
78
|
+
* Gets the number of active nonce keys for an account.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* import { createClient, http } from 'viem'
|
|
83
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
84
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
85
|
+
*
|
|
86
|
+
* const client = createClient({
|
|
87
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
88
|
+
* transport: http(),
|
|
89
|
+
* })
|
|
90
|
+
*
|
|
91
|
+
* const count = await Actions.nonce.getNonceKeyCount(client, {
|
|
92
|
+
* account: '0x...',
|
|
93
|
+
* })
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @param client - Client.
|
|
97
|
+
* @param parameters - Parameters.
|
|
98
|
+
* @returns The number of active nonce keys.
|
|
99
|
+
*/
|
|
100
|
+
export async function getNonceKeyCount(client, parameters) {
|
|
101
|
+
return readContract(client, {
|
|
102
|
+
...parameters,
|
|
103
|
+
...getNonceKeyCount.call(parameters),
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
(function (getNonceKeyCount) {
|
|
107
|
+
/**
|
|
108
|
+
* Defines a call to the `getNonceKeyCount` function.
|
|
109
|
+
*
|
|
110
|
+
* Can be passed as a parameter to:
|
|
111
|
+
* - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
|
|
112
|
+
* - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
|
|
113
|
+
* - [`multicall`](https://viem.sh/docs/contract/multicall): execute multiple calls in parallel
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* import { createClient, http } from 'viem'
|
|
118
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
119
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
120
|
+
*
|
|
121
|
+
* const client = createClient({
|
|
122
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
123
|
+
* transport: http(),
|
|
124
|
+
* })
|
|
125
|
+
*
|
|
126
|
+
* const result = await client.multicall({
|
|
127
|
+
* contracts: [
|
|
128
|
+
* Actions.nonce.getNonceKeyCount.call({ account: '0x...' }),
|
|
129
|
+
* Actions.nonce.getNonceKeyCount.call({ account: '0x...' }),
|
|
130
|
+
* ],
|
|
131
|
+
* })
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* @param args - Arguments.
|
|
135
|
+
* @returns The call.
|
|
136
|
+
*/
|
|
137
|
+
function call(args) {
|
|
138
|
+
const { account } = args;
|
|
139
|
+
return defineCall({
|
|
140
|
+
address: Addresses.nonceManager,
|
|
141
|
+
abi: Abis.nonce,
|
|
142
|
+
args: [account],
|
|
143
|
+
functionName: 'getActiveNonceKeyCount',
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
getNonceKeyCount.call = call;
|
|
147
|
+
})(getNonceKeyCount || (getNonceKeyCount = {}));
|
|
148
|
+
/**
|
|
149
|
+
* Watches for nonce incremented events.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* import { createClient, http } from 'viem'
|
|
154
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
155
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
156
|
+
*
|
|
157
|
+
* const client = createClient({
|
|
158
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
159
|
+
* transport: http(),
|
|
160
|
+
* })
|
|
161
|
+
*
|
|
162
|
+
* const unwatch = Actions.nonce.watchNonceIncremented(client, {
|
|
163
|
+
* onNonceIncremented: (args, log) => {
|
|
164
|
+
* console.log('Nonce incremented:', args)
|
|
165
|
+
* },
|
|
166
|
+
* })
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* @param client - Client.
|
|
170
|
+
* @param parameters - Parameters.
|
|
171
|
+
* @returns A function to unsubscribe from the event.
|
|
172
|
+
*/
|
|
173
|
+
export function watchNonceIncremented(client, parameters) {
|
|
174
|
+
const { onNonceIncremented, ...rest } = parameters;
|
|
175
|
+
return watchContractEvent(client, {
|
|
176
|
+
...rest,
|
|
177
|
+
address: Addresses.nonceManager,
|
|
178
|
+
abi: Abis.nonce,
|
|
179
|
+
eventName: 'NonceIncremented',
|
|
180
|
+
onLogs: (logs) => {
|
|
181
|
+
for (const log of logs)
|
|
182
|
+
onNonceIncremented(log.args, log);
|
|
183
|
+
},
|
|
184
|
+
strict: true,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Watches for active key count changed events.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```ts
|
|
192
|
+
* import { createClient, http } from 'viem'
|
|
193
|
+
* import { tempo } from 'tempo.ts/chains'
|
|
194
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
195
|
+
*
|
|
196
|
+
* const client = createClient({
|
|
197
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
198
|
+
* transport: http(),
|
|
199
|
+
* })
|
|
200
|
+
*
|
|
201
|
+
* const unwatch = Actions.nonce.watchActiveKeyCountChanged(client, {
|
|
202
|
+
* onActiveKeyCountChanged: (args, log) => {
|
|
203
|
+
* console.log('Active key count changed:', args)
|
|
204
|
+
* },
|
|
205
|
+
* })
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* @param client - Client.
|
|
209
|
+
* @param parameters - Parameters.
|
|
210
|
+
* @returns A function to unsubscribe from the event.
|
|
211
|
+
*/
|
|
212
|
+
export function watchActiveKeyCountChanged(client, parameters) {
|
|
213
|
+
const { onActiveKeyCountChanged, ...rest } = parameters;
|
|
214
|
+
return watchContractEvent(client, {
|
|
215
|
+
...rest,
|
|
216
|
+
address: Addresses.nonceManager,
|
|
217
|
+
abi: Abis.nonce,
|
|
218
|
+
eventName: 'ActiveKeyCountChanged',
|
|
219
|
+
onLogs: (logs) => {
|
|
220
|
+
for (const log of logs)
|
|
221
|
+
onActiveKeyCountChanged(log.args, log);
|
|
222
|
+
},
|
|
223
|
+
strict: true,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=nonce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonce.js","sourceRoot":"","sources":["../../../src/viem/Actions/nonce.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAE/D,OAAO,KAAK,IAAI,MAAM,YAAY,CAAA;AAClC,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAI5B,MAAyC,EACzC,UAA+B;IAE/B,OAAO,YAAY,CAAC,MAAM,EAAE;QAC1B,GAAG,UAAU;QACb,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC;KAC7B,CAAC,CAAA;AACJ,CAAC;AAED,WAAiB,QAAQ;IAgBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,SAAgB,IAAI,CAAC,IAAU;QAC7B,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;QAClC,OAAO,UAAU,CAAC;YAChB,OAAO,EAAE,SAAS,CAAC,YAAY;YAC/B,GAAG,EAAE,IAAI,CAAC,KAAK;YACf,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YACzB,YAAY,EAAE,UAAU;SACzB,CAAC,CAAA;IACJ,CAAC;IARe,aAAI,OAQnB,CAAA;AACH,CAAC,EAvDgB,QAAQ,KAAR,QAAQ,QAuDxB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAIpC,MAAyC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AAG,UAAU,CAAA;IACvD,OAAO,kBAAkB,CAAC,MAAM,EAAE;QAChC,GAAG,IAAI;QACP,OAAO,EAAE,SAAS,CAAC,YAAY;QAC/B,GAAG,EAAE,IAAI,CAAC,KAAK;QACf,SAAS,EAAE,uBAAuB;QAClC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACf,KAAK,MAAM,GAAG,IAAI,IAAI;gBAAE,uBAAuB,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;QAChE,CAAC;QACD,MAAM,EAAE,IAAI;KACb,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/viem/Addresses.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const accountImplementation = "0x7702c00000000000000000000000000000000000";
|
|
2
2
|
export declare const accountRegistrar = "0x7702ac0000000000000000000000000000000000";
|
|
3
3
|
export declare const feeManager = "0xfeec000000000000000000000000000000000000";
|
|
4
|
+
export declare const nonceManager = "0x4e4F4E4345000000000000000000000000000000";
|
|
4
5
|
export declare const pathUsd = "0x20c0000000000000000000000000000000000000";
|
|
5
6
|
export declare const stablecoinExchange = "0xdec0000000000000000000000000000000000000";
|
|
6
7
|
export declare const tip20Factory = "0x20fc000000000000000000000000000000000000";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Addresses.d.ts","sourceRoot":"","sources":["../../src/viem/Addresses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,+CACY,CAAA;AAC9C,eAAO,MAAM,gBAAgB,+CAA+C,CAAA;AAC5E,eAAO,MAAM,UAAU,+CAA+C,CAAA;AACtE,eAAO,MAAM,OAAO,+CAA+C,CAAA;AACnE,eAAO,MAAM,kBAAkB,+CAA+C,CAAA;AAC9E,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,cAAc,+CAA+C,CAAA"}
|
|
1
|
+
{"version":3,"file":"Addresses.d.ts","sourceRoot":"","sources":["../../src/viem/Addresses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,+CACY,CAAA;AAC9C,eAAO,MAAM,gBAAgB,+CAA+C,CAAA;AAC5E,eAAO,MAAM,UAAU,+CAA+C,CAAA;AACtE,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,OAAO,+CAA+C,CAAA;AACnE,eAAO,MAAM,kBAAkB,+CAA+C,CAAA;AAC9E,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,cAAc,+CAA+C,CAAA"}
|
package/dist/viem/Addresses.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const accountImplementation = '0x7702c00000000000000000000000000000000000';
|
|
2
2
|
export const accountRegistrar = '0x7702ac0000000000000000000000000000000000';
|
|
3
3
|
export const feeManager = '0xfeec000000000000000000000000000000000000';
|
|
4
|
+
export const nonceManager = '0x4e4F4E4345000000000000000000000000000000';
|
|
4
5
|
export const pathUsd = '0x20c0000000000000000000000000000000000000';
|
|
5
6
|
export const stablecoinExchange = '0xdec0000000000000000000000000000000000000';
|
|
6
7
|
export const tip20Factory = '0x20fc000000000000000000000000000000000000';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Addresses.js","sourceRoot":"","sources":["../../src/viem/Addresses.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAChC,4CAA4C,CAAA;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,4CAA4C,CAAA;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,4CAA4C,CAAA;AACtE,MAAM,CAAC,MAAM,OAAO,GAAG,4CAA4C,CAAA;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,4CAA4C,CAAA;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAG,4CAA4C,CAAA;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,4CAA4C,CAAA"}
|
|
1
|
+
{"version":3,"file":"Addresses.js","sourceRoot":"","sources":["../../src/viem/Addresses.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAChC,4CAA4C,CAAA;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,4CAA4C,CAAA;AAC5E,MAAM,CAAC,MAAM,UAAU,GAAG,4CAA4C,CAAA;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,4CAA4C,CAAA;AACxE,MAAM,CAAC,MAAM,OAAO,GAAG,4CAA4C,CAAA;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,4CAA4C,CAAA;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAG,4CAA4C,CAAA;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,4CAA4C,CAAA"}
|
|
@@ -2,6 +2,7 @@ export * as amm from './amm.js';
|
|
|
2
2
|
export * as dex from './dex.js';
|
|
3
3
|
export * as faucet from './faucet.js';
|
|
4
4
|
export * as fee from './fee.js';
|
|
5
|
+
export * as nonce from './nonce.js';
|
|
5
6
|
export * as policy from './policy.js';
|
|
6
7
|
export * as reward from './reward.js';
|
|
7
8
|
export * as token from './token.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wagmi/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wagmi/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
@@ -2,6 +2,7 @@ export * as amm from './amm.js';
|
|
|
2
2
|
export * as dex from './dex.js';
|
|
3
3
|
export * as faucet from './faucet.js';
|
|
4
4
|
export * as fee from './fee.js';
|
|
5
|
+
export * as nonce from './nonce.js';
|
|
5
6
|
export * as policy from './policy.js';
|
|
6
7
|
export * as reward from './reward.js';
|
|
7
8
|
export * as token from './token.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|