viem 2.51.3 → 2.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Abis.js +189 -1
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Account.js +27 -20
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/Addresses.js +3 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +23 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Hardfork.js +3 -0
- package/_cjs/tempo/Hardfork.js.map +1 -1
- package/_cjs/tempo/actions/accessKey.js +238 -72
- package/_cjs/tempo/actions/accessKey.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/receivePolicy.js +363 -0
- package/_cjs/tempo/actions/receivePolicy.js.map +1 -0
- package/_cjs/tempo/index.js +2 -1
- package/_cjs/tempo/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Abis.js +188 -0
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +35 -20
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/Addresses.js +2 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +23 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Hardfork.js +3 -0
- package/_esm/tempo/Hardfork.js.map +1 -1
- package/_esm/tempo/actions/accessKey.js +562 -128
- package/_esm/tempo/actions/accessKey.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/receivePolicy.js +753 -0
- package/_esm/tempo/actions/receivePolicy.js.map +1 -0
- package/_esm/tempo/index.js +1 -1
- package/_esm/tempo/index.js.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Abis.d.ts +671 -4
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +13 -2
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/Addresses.d.ts +2 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +501 -0
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Hardfork.d.ts +1 -1
- package/_types/tempo/Hardfork.d.ts.map +1 -1
- package/_types/tempo/actions/accessKey.d.ts +1520 -304
- package/_types/tempo/actions/accessKey.d.ts.map +1 -1
- package/_types/tempo/actions/dex.d.ts +75 -0
- package/_types/tempo/actions/dex.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/policy.d.ts +352 -0
- package/_types/tempo/actions/policy.d.ts.map +1 -1
- package/_types/tempo/actions/receivePolicy.d.ts +1511 -0
- package/_types/tempo/actions/receivePolicy.d.ts.map +1 -0
- package/_types/tempo/index.d.ts +1 -1
- package/_types/tempo/index.d.ts.map +1 -1
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Abis.ts +189 -0
- package/tempo/Account.ts +56 -27
- package/tempo/Addresses.ts +2 -0
- package/tempo/Decorator.ts +578 -0
- package/tempo/Hardfork.ts +3 -0
- package/tempo/actions/accessKey.ts +1002 -279
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/receivePolicy.ts +1266 -0
- package/tempo/index.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Abis.d.ts","sourceRoot":"","sources":["../../tempo/Abis.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeP,CAAA"}
|
|
@@ -24,7 +24,10 @@ export type Account_base<source extends string = string> = RequiredBy<LocalAccou
|
|
|
24
24
|
};
|
|
25
25
|
export type RootAccount = Account_base<'root'> & {
|
|
26
26
|
/** Sign key authorization. */
|
|
27
|
-
signKeyAuthorization: (key: resolveAccessKey.Parameters, parameters: Pick<KeyAuthorization.KeyAuthorization, 'chainId' | 'expiry' | 'limits' | 'scopes'>
|
|
27
|
+
signKeyAuthorization: (key: resolveAccessKey.Parameters, parameters: Pick<KeyAuthorization.KeyAuthorization, 'chainId' | 'expiry' | 'limits' | 'scopes' | 'witness'> & {
|
|
28
|
+
/** Whether to authorize the key as an admin key (TIP-1049). */
|
|
29
|
+
admin?: boolean | undefined;
|
|
30
|
+
}) => Promise<KeyAuthorization.Signed>;
|
|
28
31
|
};
|
|
29
32
|
export type AccessKeyAccount = Account_base<'accessKey'> & {
|
|
30
33
|
/** Access key ID. */
|
|
@@ -221,8 +224,16 @@ export declare namespace signVoucher {
|
|
|
221
224
|
}
|
|
222
225
|
export declare function signKeyAuthorization(account: LocalAccount, parameters: signKeyAuthorization.Parameters): Promise<signKeyAuthorization.ReturnValue>;
|
|
223
226
|
export declare namespace signKeyAuthorization {
|
|
224
|
-
type Parameters = Pick<KeyAuthorization.KeyAuthorization, 'chainId' | 'expiry' | 'limits' | 'scopes'> & {
|
|
227
|
+
type Parameters = Pick<KeyAuthorization.KeyAuthorization, 'chainId' | 'expiry' | 'limits' | 'scopes' | 'witness'> & {
|
|
225
228
|
key: resolveAccessKey.Parameters;
|
|
229
|
+
/**
|
|
230
|
+
* Whether to authorize the key as an admin key. Admin keys are
|
|
231
|
+
* unrestricted and can manage the account's other access keys; `expiry`,
|
|
232
|
+
* `limits`, and `scopes` are ignored. Requires the T6 hardfork.
|
|
233
|
+
*
|
|
234
|
+
* [TIP-1049](https://tips.sh/1049)
|
|
235
|
+
*/
|
|
236
|
+
admin?: boolean | undefined;
|
|
226
237
|
};
|
|
227
238
|
type ReturnValue = KeyAuthorization.Signed;
|
|
228
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../tempo/Account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAA;AAE7B,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,IAAI,YAAY,EACxB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAA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B;QAChB,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAA;KAC7B,CACJ,CAAA;IAEL,KAAK,UAAU,GAAG;QAChB,gBAAgB,EAAE,OAAO,CAAC,OAAO,CAAA;QACjC,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAA;KAChC,CAAA;CACF;AAID,OAAO;AACL,kBAAkB;AAClB,gBAAgB,IAAI,kBAAkB;AACtC,kBAAkB;AAClB,iBAAiB,IAAI,mBAAmB;AACxC,kBAAkB;AAClB,eAAe,IAAI,iBAAiB,GACrC,MAAM,UAAU,CAAA"}
|
|
@@ -5,6 +5,8 @@ export declare const addressRegistry = "0xfdc00000000000000000000000000000000000
|
|
|
5
5
|
export declare const feeManager = "0xfeec000000000000000000000000000000000000";
|
|
6
6
|
export declare const nonceManager = "0x4e4F4E4345000000000000000000000000000000";
|
|
7
7
|
export declare const pathUsd = "0x20c0000000000000000000000000000000000000";
|
|
8
|
+
export declare const receivePolicyGuard = "0xB10C000000000000000000000000000000000000";
|
|
9
|
+
export declare const signatureVerifier = "0x5165300000000000000000000000000000000000";
|
|
8
10
|
export declare const stablecoinDex = "0xdec0000000000000000000000000000000000000";
|
|
9
11
|
export declare const tip20Factory = "0x20fc000000000000000000000000000000000000";
|
|
10
12
|
export declare const tip403Registry = "0x403c000000000000000000000000000000000000";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Addresses.d.ts","sourceRoot":"","sources":["../../tempo/Addresses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,+CACY,CAAA;AAC9C,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAC3E,eAAO,MAAM,gBAAgB,+CAA+C,CAAA;AAC5E,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAC3E,eAAO,MAAM,UAAU,+CAA+C,CAAA;AACtE,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,OAAO,+CAA+C,CAAA;AACnE,eAAO,MAAM,aAAa,+CAA+C,CAAA;AACzE,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,cAAc,+CAA+C,CAAA;AAC1E,eAAO,MAAM,SAAS,+CAA+C,CAAA;AACrE,eAAO,MAAM,UAAU,+CAA+C,CAAA"}
|
|
1
|
+
{"version":3,"file":"Addresses.d.ts","sourceRoot":"","sources":["../../tempo/Addresses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,+CACY,CAAA;AAC9C,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAC3E,eAAO,MAAM,gBAAgB,+CAA+C,CAAA;AAC5E,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAC3E,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,iBAAiB,+CAA+C,CAAA;AAC7E,eAAO,MAAM,aAAa,+CAA+C,CAAA;AACzE,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,cAAc,+CAA+C,CAAA;AAC1E,eAAO,MAAM,SAAS,+CAA+C,CAAA;AACrE,eAAO,MAAM,UAAU,+CAA+C,CAAA"}
|
|
@@ -11,6 +11,7 @@ import * as faucetActions from './actions/faucet.js';
|
|
|
11
11
|
import * as feeActions from './actions/fee.js';
|
|
12
12
|
import * as nonceActions from './actions/nonce.js';
|
|
13
13
|
import * as policyActions from './actions/policy.js';
|
|
14
|
+
import * as receivePolicyActions from './actions/receivePolicy.js';
|
|
14
15
|
import * as rewardActions from './actions/reward.js';
|
|
15
16
|
import * as simulateActions from './actions/simulate.js';
|
|
16
17
|
import * as tokenActions from './actions/token.js';
|
|
@@ -81,6 +82,57 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
81
82
|
* @returns The transaction receipt and event data.
|
|
82
83
|
*/
|
|
83
84
|
authorizeSync: (parameters: accessKeyActions.authorizeSync.Parameters<chain, account>) => Promise<accessKeyActions.authorizeSync.ReturnValue>;
|
|
85
|
+
/**
|
|
86
|
+
* Burns a key-authorization witness, invalidating any authorization bound
|
|
87
|
+
* to it before it is submitted onchain.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* import { createClient, http } from 'viem'
|
|
92
|
+
* import { tempo } from 'viem/chains'
|
|
93
|
+
* import { tempoActions } from 'viem/tempo'
|
|
94
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
95
|
+
*
|
|
96
|
+
* const client = createClient({
|
|
97
|
+
* account: privateKeyToAccount('0x...'),
|
|
98
|
+
* chain: tempo,
|
|
99
|
+
* transport: http(),
|
|
100
|
+
* }).extend(tempoActions())
|
|
101
|
+
*
|
|
102
|
+
* const hash = await client.accessKey.burnWitness({
|
|
103
|
+
* witness: '0x...',
|
|
104
|
+
* })
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @param parameters - Parameters.
|
|
108
|
+
* @returns The transaction hash.
|
|
109
|
+
*/
|
|
110
|
+
burnWitness: (parameters: accessKeyActions.burnWitness.Parameters<chain, account>) => Promise<accessKeyActions.burnWitness.ReturnValue>;
|
|
111
|
+
/**
|
|
112
|
+
* Burns a key-authorization witness and waits for the transaction receipt.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* import { createClient, http } from 'viem'
|
|
117
|
+
* import { tempo } from 'viem/chains'
|
|
118
|
+
* import { tempoActions } from 'viem/tempo'
|
|
119
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
120
|
+
*
|
|
121
|
+
* const client = createClient({
|
|
122
|
+
* account: privateKeyToAccount('0x...'),
|
|
123
|
+
* chain: tempo,
|
|
124
|
+
* transport: http(),
|
|
125
|
+
* }).extend(tempoActions())
|
|
126
|
+
*
|
|
127
|
+
* const { receipt, ...result } = await client.accessKey.burnWitnessSync({
|
|
128
|
+
* witness: '0x...',
|
|
129
|
+
* })
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* @param parameters - Parameters.
|
|
133
|
+
* @returns The transaction receipt and event data.
|
|
134
|
+
*/
|
|
135
|
+
burnWitnessSync: (parameters: accessKeyActions.burnWitnessSync.Parameters<chain, account>) => Promise<accessKeyActions.burnWitnessSync.ReturnValue>;
|
|
84
136
|
/**
|
|
85
137
|
* Gets access key information.
|
|
86
138
|
*
|
|
@@ -130,6 +182,54 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
130
182
|
* @returns The remaining spending amount and period end timestamp.
|
|
131
183
|
*/
|
|
132
184
|
getRemainingLimit: (parameters: accessKeyActions.getRemainingLimit.Parameters<account>) => Promise<accessKeyActions.getRemainingLimit.ReturnValue>;
|
|
185
|
+
/**
|
|
186
|
+
* Checks whether an access key is an admin key for an account.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* import { createClient, http } from 'viem'
|
|
191
|
+
* import { tempo } from 'viem/chains'
|
|
192
|
+
* import { tempoActions } from 'viem/tempo'
|
|
193
|
+
*
|
|
194
|
+
* const client = createClient({
|
|
195
|
+
* chain: tempo,
|
|
196
|
+
* transport: http(),
|
|
197
|
+
* }).extend(tempoActions())
|
|
198
|
+
*
|
|
199
|
+
* const isAdmin = await client.accessKey.isAdmin({
|
|
200
|
+
* account: '0x...',
|
|
201
|
+
* accessKey: '0x...',
|
|
202
|
+
* })
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* @param parameters - Parameters.
|
|
206
|
+
* @returns Whether the access key is an admin key.
|
|
207
|
+
*/
|
|
208
|
+
isAdmin: (parameters: accessKeyActions.isAdmin.Parameters<account>) => Promise<accessKeyActions.isAdmin.ReturnValue>;
|
|
209
|
+
/**
|
|
210
|
+
* Checks whether a key-authorization witness has been burned for an account.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* import { createClient, http } from 'viem'
|
|
215
|
+
* import { tempo } from 'viem/chains'
|
|
216
|
+
* import { tempoActions } from 'viem/tempo'
|
|
217
|
+
*
|
|
218
|
+
* const client = createClient({
|
|
219
|
+
* chain: tempo,
|
|
220
|
+
* transport: http(),
|
|
221
|
+
* }).extend(tempoActions())
|
|
222
|
+
*
|
|
223
|
+
* const isBurned = await client.accessKey.isWitnessBurned({
|
|
224
|
+
* account: '0x...',
|
|
225
|
+
* witness: '0x...',
|
|
226
|
+
* })
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* @param parameters - Parameters.
|
|
230
|
+
* @returns Whether the witness has been burned.
|
|
231
|
+
*/
|
|
232
|
+
isWitnessBurned: (parameters: accessKeyActions.isWitnessBurned.Parameters<account>) => Promise<accessKeyActions.isWitnessBurned.ReturnValue>;
|
|
133
233
|
/**
|
|
134
234
|
* Revokes an authorized access key.
|
|
135
235
|
*
|
|
@@ -234,6 +334,81 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
234
334
|
* @returns The transaction receipt and event data.
|
|
235
335
|
*/
|
|
236
336
|
updateLimitSync: (parameters: accessKeyActions.updateLimitSync.Parameters<chain, account>) => Promise<accessKeyActions.updateLimitSync.ReturnValue>;
|
|
337
|
+
/**
|
|
338
|
+
* Watches for admin key authorization events.
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```ts
|
|
342
|
+
* import { createClient, http } from 'viem'
|
|
343
|
+
* import { tempo } from 'viem/chains'
|
|
344
|
+
* import { tempoActions } from 'viem/tempo'
|
|
345
|
+
*
|
|
346
|
+
* const client = createClient({
|
|
347
|
+
* chain: tempo,
|
|
348
|
+
* transport: http(),
|
|
349
|
+
* }).extend(tempoActions())
|
|
350
|
+
*
|
|
351
|
+
* const unwatch = client.accessKey.watchAdminAuthorized({
|
|
352
|
+
* onAuthorized: (args, log) => {
|
|
353
|
+
* console.log('Admin key authorized:', args)
|
|
354
|
+
* },
|
|
355
|
+
* })
|
|
356
|
+
* ```
|
|
357
|
+
*
|
|
358
|
+
* @param parameters - Parameters.
|
|
359
|
+
* @returns A function to unsubscribe from the event.
|
|
360
|
+
*/
|
|
361
|
+
watchAdminAuthorized: (parameters: accessKeyActions.watchAdminAuthorized.Parameters) => ReturnType<typeof accessKeyActions.watchAdminAuthorized>;
|
|
362
|
+
/**
|
|
363
|
+
* Watches for key-authorization witness events.
|
|
364
|
+
*
|
|
365
|
+
* @example
|
|
366
|
+
* ```ts
|
|
367
|
+
* import { createClient, http } from 'viem'
|
|
368
|
+
* import { tempo } from 'viem/chains'
|
|
369
|
+
* import { tempoActions } from 'viem/tempo'
|
|
370
|
+
*
|
|
371
|
+
* const client = createClient({
|
|
372
|
+
* chain: tempo,
|
|
373
|
+
* transport: http(),
|
|
374
|
+
* }).extend(tempoActions())
|
|
375
|
+
*
|
|
376
|
+
* const unwatch = client.accessKey.watchWitness({
|
|
377
|
+
* onWitness: (args, log) => {
|
|
378
|
+
* console.log('Witness used:', args)
|
|
379
|
+
* },
|
|
380
|
+
* })
|
|
381
|
+
* ```
|
|
382
|
+
*
|
|
383
|
+
* @param parameters - Parameters.
|
|
384
|
+
* @returns A function to unsubscribe from the event.
|
|
385
|
+
*/
|
|
386
|
+
watchWitness: (parameters: accessKeyActions.watchWitness.Parameters) => ReturnType<typeof accessKeyActions.watchWitness>;
|
|
387
|
+
/**
|
|
388
|
+
* Watches for key-authorization witness burned events.
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```ts
|
|
392
|
+
* import { createClient, http } from 'viem'
|
|
393
|
+
* import { tempo } from 'viem/chains'
|
|
394
|
+
* import { tempoActions } from 'viem/tempo'
|
|
395
|
+
*
|
|
396
|
+
* const client = createClient({
|
|
397
|
+
* chain: tempo,
|
|
398
|
+
* transport: http(),
|
|
399
|
+
* }).extend(tempoActions())
|
|
400
|
+
*
|
|
401
|
+
* const unwatch = client.accessKey.watchWitnessBurned({
|
|
402
|
+
* onBurned: (args, log) => {
|
|
403
|
+
* console.log('Witness burned:', args)
|
|
404
|
+
* },
|
|
405
|
+
* })
|
|
406
|
+
* ```
|
|
407
|
+
*
|
|
408
|
+
* @param parameters - Parameters.
|
|
409
|
+
* @returns A function to unsubscribe from the event.
|
|
410
|
+
*/
|
|
411
|
+
watchWitnessBurned: (parameters: accessKeyActions.watchWitnessBurned.Parameters) => ReturnType<typeof accessKeyActions.watchWitnessBurned>;
|
|
237
412
|
};
|
|
238
413
|
amm: {
|
|
239
414
|
/**
|
|
@@ -2022,6 +2197,332 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2022
2197
|
*/
|
|
2023
2198
|
watchBlacklistUpdated: (parameters: policyActions.watchBlacklistUpdated.Parameters) => () => void;
|
|
2024
2199
|
};
|
|
2200
|
+
receivePolicy: {
|
|
2201
|
+
/**
|
|
2202
|
+
* Burns the funds backing a blocked receipt.
|
|
2203
|
+
*
|
|
2204
|
+
* @example
|
|
2205
|
+
* ```ts
|
|
2206
|
+
* import { createClient, http } from 'viem'
|
|
2207
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2208
|
+
* import { tempo } from 'viem/chains'
|
|
2209
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2210
|
+
*
|
|
2211
|
+
* const client = createClient({
|
|
2212
|
+
* account: privateKeyToAccount('0x...'),
|
|
2213
|
+
* chain: tempo
|
|
2214
|
+
* transport: http(),
|
|
2215
|
+
* }).extend(tempoActions())
|
|
2216
|
+
*
|
|
2217
|
+
* const hash = await client.receivePolicy.burn({ receipt: '0x...' })
|
|
2218
|
+
* ```
|
|
2219
|
+
*
|
|
2220
|
+
* @param parameters - Parameters.
|
|
2221
|
+
* @returns The transaction hash.
|
|
2222
|
+
*/
|
|
2223
|
+
burn: (parameters: receivePolicyActions.burn.Parameters<chain, account>) => Promise<receivePolicyActions.burn.ReturnValue>;
|
|
2224
|
+
/**
|
|
2225
|
+
* Burns the funds backing a blocked receipt and waits for the receipt.
|
|
2226
|
+
*
|
|
2227
|
+
* @example
|
|
2228
|
+
* ```ts
|
|
2229
|
+
* import { createClient, http } from 'viem'
|
|
2230
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2231
|
+
* import { tempo } from 'viem/chains'
|
|
2232
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2233
|
+
*
|
|
2234
|
+
* const client = createClient({
|
|
2235
|
+
* account: privateKeyToAccount('0x...'),
|
|
2236
|
+
* chain: tempo
|
|
2237
|
+
* transport: http(),
|
|
2238
|
+
* }).extend(tempoActions())
|
|
2239
|
+
*
|
|
2240
|
+
* const { receipt, ...result } = await client.receivePolicy.burnSync({
|
|
2241
|
+
* receipt: '0x...',
|
|
2242
|
+
* })
|
|
2243
|
+
* ```
|
|
2244
|
+
*
|
|
2245
|
+
* @param parameters - Parameters.
|
|
2246
|
+
* @returns The transaction receipt and event data.
|
|
2247
|
+
*/
|
|
2248
|
+
burnSync: (parameters: receivePolicyActions.burnSync.Parameters<chain, account>) => Promise<receivePolicyActions.burnSync.ReturnValue>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Claims blocked funds for a receipt, releasing them to a destination.
|
|
2251
|
+
*
|
|
2252
|
+
* @example
|
|
2253
|
+
* ```ts
|
|
2254
|
+
* import { createClient, http } from 'viem'
|
|
2255
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2256
|
+
* import { tempo } from 'viem/chains'
|
|
2257
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2258
|
+
*
|
|
2259
|
+
* const client = createClient({
|
|
2260
|
+
* account: privateKeyToAccount('0x...'),
|
|
2261
|
+
* chain: tempo
|
|
2262
|
+
* transport: http(),
|
|
2263
|
+
* }).extend(tempoActions())
|
|
2264
|
+
*
|
|
2265
|
+
* const hash = await client.receivePolicy.claim({
|
|
2266
|
+
* to: '0x...',
|
|
2267
|
+
* receipt: '0x...',
|
|
2268
|
+
* })
|
|
2269
|
+
* ```
|
|
2270
|
+
*
|
|
2271
|
+
* @param parameters - Parameters.
|
|
2272
|
+
* @returns The transaction hash.
|
|
2273
|
+
*/
|
|
2274
|
+
claim: (parameters: receivePolicyActions.claim.Parameters<chain, account>) => Promise<receivePolicyActions.claim.ReturnValue>;
|
|
2275
|
+
/**
|
|
2276
|
+
* Claims blocked funds for a receipt and waits for the receipt.
|
|
2277
|
+
*
|
|
2278
|
+
* @example
|
|
2279
|
+
* ```ts
|
|
2280
|
+
* import { createClient, http } from 'viem'
|
|
2281
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2282
|
+
* import { tempo } from 'viem/chains'
|
|
2283
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2284
|
+
*
|
|
2285
|
+
* const client = createClient({
|
|
2286
|
+
* account: privateKeyToAccount('0x...'),
|
|
2287
|
+
* chain: tempo
|
|
2288
|
+
* transport: http(),
|
|
2289
|
+
* }).extend(tempoActions())
|
|
2290
|
+
*
|
|
2291
|
+
* const { receipt, ...result } = await client.receivePolicy.claimSync({
|
|
2292
|
+
* to: '0x...',
|
|
2293
|
+
* receipt: '0x...',
|
|
2294
|
+
* })
|
|
2295
|
+
* ```
|
|
2296
|
+
*
|
|
2297
|
+
* @param parameters - Parameters.
|
|
2298
|
+
* @returns The transaction receipt and event data.
|
|
2299
|
+
*/
|
|
2300
|
+
claimSync: (parameters: receivePolicyActions.claimSync.Parameters<chain, account>) => Promise<receivePolicyActions.claimSync.ReturnValue>;
|
|
2301
|
+
/**
|
|
2302
|
+
* Gets the receive policy configured for an account.
|
|
2303
|
+
*
|
|
2304
|
+
* @example
|
|
2305
|
+
* ```ts
|
|
2306
|
+
* import { createClient, http } from 'viem'
|
|
2307
|
+
* import { tempo } from 'viem/chains'
|
|
2308
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2309
|
+
*
|
|
2310
|
+
* const client = createClient({
|
|
2311
|
+
* chain: tempo
|
|
2312
|
+
* transport: http(),
|
|
2313
|
+
* }).extend(tempoActions())
|
|
2314
|
+
*
|
|
2315
|
+
* const policy = await client.receivePolicy.get({ account: '0x...' })
|
|
2316
|
+
* ```
|
|
2317
|
+
*
|
|
2318
|
+
* @param parameters - Parameters.
|
|
2319
|
+
* @returns The receive policy.
|
|
2320
|
+
*/
|
|
2321
|
+
get: (parameters: receivePolicyActions.get.Parameters<account>) => Promise<receivePolicyActions.get.ReturnValue>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Gets the blocked balance for an encoded receipt.
|
|
2324
|
+
*
|
|
2325
|
+
* @example
|
|
2326
|
+
* ```ts
|
|
2327
|
+
* import { createClient, http } from 'viem'
|
|
2328
|
+
* import { tempo } from 'viem/chains'
|
|
2329
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2330
|
+
*
|
|
2331
|
+
* const client = createClient({
|
|
2332
|
+
* chain: tempo
|
|
2333
|
+
* transport: http(),
|
|
2334
|
+
* }).extend(tempoActions())
|
|
2335
|
+
*
|
|
2336
|
+
* const amount = await client.receivePolicy.getBlockedBalance({
|
|
2337
|
+
* receipt: '0x...',
|
|
2338
|
+
* })
|
|
2339
|
+
* ```
|
|
2340
|
+
*
|
|
2341
|
+
* @param parameters - Parameters.
|
|
2342
|
+
* @returns The blocked amount for the receipt.
|
|
2343
|
+
*/
|
|
2344
|
+
getBlockedBalance: (parameters: receivePolicyActions.getBlockedBalance.Parameters) => Promise<receivePolicyActions.getBlockedBalance.ReturnValue>;
|
|
2345
|
+
/**
|
|
2346
|
+
* Sets the receive policy for the calling account.
|
|
2347
|
+
*
|
|
2348
|
+
* @example
|
|
2349
|
+
* ```ts
|
|
2350
|
+
* import { createClient, http } from 'viem'
|
|
2351
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2352
|
+
* import { tempo } from 'viem/chains'
|
|
2353
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2354
|
+
*
|
|
2355
|
+
* const client = createClient({
|
|
2356
|
+
* account: privateKeyToAccount('0x...'),
|
|
2357
|
+
* chain: tempo
|
|
2358
|
+
* transport: http(),
|
|
2359
|
+
* }).extend(tempoActions())
|
|
2360
|
+
*
|
|
2361
|
+
* const hash = await client.receivePolicy.set({
|
|
2362
|
+
* senderPolicyId: 'allow-all',
|
|
2363
|
+
* tokenPolicyId: 'allow-all',
|
|
2364
|
+
* claimer: 'self',
|
|
2365
|
+
* })
|
|
2366
|
+
* ```
|
|
2367
|
+
*
|
|
2368
|
+
* @param parameters - Parameters.
|
|
2369
|
+
* @returns The transaction hash.
|
|
2370
|
+
*/
|
|
2371
|
+
set: (parameters: receivePolicyActions.set.Parameters<chain, account>) => Promise<receivePolicyActions.set.ReturnValue>;
|
|
2372
|
+
/**
|
|
2373
|
+
* Sets the receive policy for the calling account and waits for the receipt.
|
|
2374
|
+
*
|
|
2375
|
+
* @example
|
|
2376
|
+
* ```ts
|
|
2377
|
+
* import { createClient, http } from 'viem'
|
|
2378
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2379
|
+
* import { tempo } from 'viem/chains'
|
|
2380
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2381
|
+
*
|
|
2382
|
+
* const client = createClient({
|
|
2383
|
+
* account: privateKeyToAccount('0x...'),
|
|
2384
|
+
* chain: tempo
|
|
2385
|
+
* transport: http(),
|
|
2386
|
+
* }).extend(tempoActions())
|
|
2387
|
+
*
|
|
2388
|
+
* const { receipt, ...result } = await client.receivePolicy.setSync({
|
|
2389
|
+
* senderPolicyId: 'allow-all',
|
|
2390
|
+
* tokenPolicyId: 'allow-all',
|
|
2391
|
+
* claimer: 'self',
|
|
2392
|
+
* })
|
|
2393
|
+
* ```
|
|
2394
|
+
*
|
|
2395
|
+
* @param parameters - Parameters.
|
|
2396
|
+
* @returns The transaction receipt and event data.
|
|
2397
|
+
*/
|
|
2398
|
+
setSync: (parameters: receivePolicyActions.setSync.Parameters<chain, account>) => Promise<receivePolicyActions.setSync.ReturnValue>;
|
|
2399
|
+
/**
|
|
2400
|
+
* Checks whether a transfer or mint to a receiver is allowed by the
|
|
2401
|
+
* receiver's receive policy.
|
|
2402
|
+
*
|
|
2403
|
+
* @example
|
|
2404
|
+
* ```ts
|
|
2405
|
+
* import { createClient, http } from 'viem'
|
|
2406
|
+
* import { tempo } from 'viem/chains'
|
|
2407
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2408
|
+
*
|
|
2409
|
+
* const client = createClient({
|
|
2410
|
+
* chain: tempo
|
|
2411
|
+
* transport: http(),
|
|
2412
|
+
* }).extend(tempoActions())
|
|
2413
|
+
*
|
|
2414
|
+
* const { authorized, blockedReason } = await client.receivePolicy.validate({
|
|
2415
|
+
* token: '0x...',
|
|
2416
|
+
* sender: '0x...',
|
|
2417
|
+
* receiver: '0x...',
|
|
2418
|
+
* })
|
|
2419
|
+
* ```
|
|
2420
|
+
*
|
|
2421
|
+
* @param parameters - Parameters.
|
|
2422
|
+
* @returns Whether the transfer is authorized and, if not, why.
|
|
2423
|
+
*/
|
|
2424
|
+
validate: (parameters: receivePolicyActions.validate.Parameters) => Promise<receivePolicyActions.validate.ReturnValue>;
|
|
2425
|
+
/**
|
|
2426
|
+
* Watches for blocked transfer events.
|
|
2427
|
+
*
|
|
2428
|
+
* @example
|
|
2429
|
+
* ```ts
|
|
2430
|
+
* import { createClient, http } from 'viem'
|
|
2431
|
+
* import { tempo } from 'viem/chains'
|
|
2432
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2433
|
+
*
|
|
2434
|
+
* const client = createClient({
|
|
2435
|
+
* chain: tempo
|
|
2436
|
+
* transport: http(),
|
|
2437
|
+
* }).extend(tempoActions())
|
|
2438
|
+
*
|
|
2439
|
+
* const unwatch = client.receivePolicy.watchBlocked({
|
|
2440
|
+
* onBlocked: (args, log) => {
|
|
2441
|
+
* console.log('Transfer blocked:', args)
|
|
2442
|
+
* },
|
|
2443
|
+
* })
|
|
2444
|
+
* ```
|
|
2445
|
+
*
|
|
2446
|
+
* @param parameters - Parameters.
|
|
2447
|
+
* @returns A function to unsubscribe from the event.
|
|
2448
|
+
*/
|
|
2449
|
+
watchBlocked: (parameters: receivePolicyActions.watchBlocked.Parameters) => () => void;
|
|
2450
|
+
/**
|
|
2451
|
+
* Watches for receipt burned events.
|
|
2452
|
+
*
|
|
2453
|
+
* @example
|
|
2454
|
+
* ```ts
|
|
2455
|
+
* import { createClient, http } from 'viem'
|
|
2456
|
+
* import { tempo } from 'viem/chains'
|
|
2457
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2458
|
+
*
|
|
2459
|
+
* const client = createClient({
|
|
2460
|
+
* chain: tempo
|
|
2461
|
+
* transport: http(),
|
|
2462
|
+
* }).extend(tempoActions())
|
|
2463
|
+
*
|
|
2464
|
+
* const unwatch = client.receivePolicy.watchBurned({
|
|
2465
|
+
* onBurned: (args, log) => {
|
|
2466
|
+
* console.log('Receipt burned:', args)
|
|
2467
|
+
* },
|
|
2468
|
+
* })
|
|
2469
|
+
* ```
|
|
2470
|
+
*
|
|
2471
|
+
* @param parameters - Parameters.
|
|
2472
|
+
* @returns A function to unsubscribe from the event.
|
|
2473
|
+
*/
|
|
2474
|
+
watchBurned: (parameters: receivePolicyActions.watchBurned.Parameters) => () => void;
|
|
2475
|
+
/**
|
|
2476
|
+
* Watches for receipt claimed events.
|
|
2477
|
+
*
|
|
2478
|
+
* @example
|
|
2479
|
+
* ```ts
|
|
2480
|
+
* import { createClient, http } from 'viem'
|
|
2481
|
+
* import { tempo } from 'viem/chains'
|
|
2482
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2483
|
+
*
|
|
2484
|
+
* const client = createClient({
|
|
2485
|
+
* chain: tempo
|
|
2486
|
+
* transport: http(),
|
|
2487
|
+
* }).extend(tempoActions())
|
|
2488
|
+
*
|
|
2489
|
+
* const unwatch = client.receivePolicy.watchClaimed({
|
|
2490
|
+
* onClaimed: (args, log) => {
|
|
2491
|
+
* console.log('Receipt claimed:', args)
|
|
2492
|
+
* },
|
|
2493
|
+
* })
|
|
2494
|
+
* ```
|
|
2495
|
+
*
|
|
2496
|
+
* @param parameters - Parameters.
|
|
2497
|
+
* @returns A function to unsubscribe from the event.
|
|
2498
|
+
*/
|
|
2499
|
+
watchClaimed: (parameters: receivePolicyActions.watchClaimed.Parameters) => () => void;
|
|
2500
|
+
/**
|
|
2501
|
+
* Watches for receive policy update events.
|
|
2502
|
+
*
|
|
2503
|
+
* @example
|
|
2504
|
+
* ```ts
|
|
2505
|
+
* import { createClient, http } from 'viem'
|
|
2506
|
+
* import { tempo } from 'viem/chains'
|
|
2507
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2508
|
+
*
|
|
2509
|
+
* const client = createClient({
|
|
2510
|
+
* chain: tempo
|
|
2511
|
+
* transport: http(),
|
|
2512
|
+
* }).extend(tempoActions())
|
|
2513
|
+
*
|
|
2514
|
+
* const unwatch = client.receivePolicy.watchUpdated({
|
|
2515
|
+
* onUpdated: (args, log) => {
|
|
2516
|
+
* console.log('Receive policy updated:', args)
|
|
2517
|
+
* },
|
|
2518
|
+
* })
|
|
2519
|
+
* ```
|
|
2520
|
+
*
|
|
2521
|
+
* @param parameters - Parameters.
|
|
2522
|
+
* @returns A function to unsubscribe from the event.
|
|
2523
|
+
*/
|
|
2524
|
+
watchUpdated: (parameters: receivePolicyActions.watchUpdated.Parameters) => () => void;
|
|
2525
|
+
};
|
|
2025
2526
|
reward: {
|
|
2026
2527
|
/**
|
|
2027
2528
|
* Claims accumulated rewards for a recipient.
|