viem 2.44.1 → 2.44.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/_cjs/actions/wallet/sendTransaction.js +6 -5
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +6 -5
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/chains/definitions/adi.js +26 -0
- package/_cjs/chains/definitions/adi.js.map +1 -0
- package/_cjs/chains/definitions/tempo.js +28 -0
- package/_cjs/chains/definitions/tempo.js.map +1 -0
- package/_cjs/chains/definitions/zkXPLA.js +28 -0
- package/_cjs/chains/definitions/zkXPLA.js.map +1 -0
- package/_cjs/chains/definitions/zkXPLATestnet.js +28 -0
- package/_cjs/chains/definitions/zkXPLATestnet.js.map +1 -0
- package/_cjs/chains/index.js +22 -14
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Abis.js +2 -2
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Addresses.js +2 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +19 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Transport.js +1 -1
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +91 -0
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/actions/index.js +2 -1
- package/_cjs/tempo/actions/index.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +308 -0
- package/_cjs/tempo/actions/validator.js.map +1 -0
- package/_cjs/utils/abi/decodeEventLog.js +29 -12
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js +11 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/rpc/http.js +25 -1
- package/_cjs/utils/rpc/http.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +6 -5
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +6 -5
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/chains/definitions/adi.js +23 -0
- package/_esm/chains/definitions/adi.js.map +1 -0
- package/_esm/chains/definitions/tempo.js +25 -0
- package/_esm/chains/definitions/tempo.js.map +1 -0
- package/_esm/chains/definitions/zkXPLA.js +25 -0
- package/_esm/chains/definitions/zkXPLA.js.map +1 -0
- package/_esm/chains/definitions/zkXPLATestnet.js +25 -0
- package/_esm/chains/definitions/zkXPLATestnet.js.map +1 -0
- package/_esm/chains/index.js +4 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Abis.js +1 -1
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +6 -6
- package/_esm/tempo/Addresses.js +1 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +19 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Transport.js +1 -1
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/WebAuthnP256.js +2 -2
- package/_esm/tempo/actions/amm.js +28 -28
- package/_esm/tempo/actions/dex.js +68 -68
- package/_esm/tempo/actions/faucet.js +4 -4
- package/_esm/tempo/actions/fee.js +236 -10
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/index.js +1 -0
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +4 -4
- package/_esm/tempo/actions/policy.js +36 -36
- package/_esm/tempo/actions/reward.js +28 -28
- package/_esm/tempo/actions/token.js +122 -122
- package/_esm/tempo/actions/validator.js +1017 -0
- package/_esm/tempo/actions/validator.js.map +1 -0
- package/_esm/utils/abi/decodeEventLog.js +34 -13
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/utils/encoding/fromHex.js +12 -2
- package/_esm/utils/encoding/fromHex.js.map +1 -1
- package/_esm/utils/rpc/http.js +26 -1
- package/_esm/utils/rpc/http.js.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +4 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts +2 -0
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/chains/definitions/adi.d.ts +48 -0
- package/_types/chains/definitions/adi.d.ts.map +1 -0
- package/_types/chains/definitions/tempo.d.ts +916 -0
- package/_types/chains/definitions/tempo.d.ts.map +1 -0
- package/_types/chains/definitions/zkXPLA.d.ts +50 -0
- package/_types/chains/definitions/zkXPLA.d.ts.map +1 -0
- package/_types/chains/definitions/zkXPLATestnet.d.ts +50 -0
- package/_types/chains/definitions/zkXPLATestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +4 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Abis.d.ts +1 -1
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +6 -6
- package/_types/tempo/Addresses.d.ts +1 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +607 -208
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/WebAuthnP256.d.ts +2 -2
- package/_types/tempo/actions/amm.d.ts +28 -28
- package/_types/tempo/actions/dex.d.ts +68 -68
- package/_types/tempo/actions/faucet.d.ts +4 -4
- package/_types/tempo/actions/fee.d.ts +380 -10
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/index.d.ts +1 -0
- package/_types/tempo/actions/index.d.ts.map +1 -1
- package/_types/tempo/actions/nonce.d.ts +4 -4
- package/_types/tempo/actions/policy.d.ts +36 -36
- package/_types/tempo/actions/reward.d.ts +28 -28
- package/_types/tempo/actions/token.d.ts +122 -122
- package/_types/tempo/actions/validator.d.ts +1174 -0
- package/_types/tempo/actions/validator.d.ts.map +1 -0
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +2 -2
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +8 -1
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/actions/wallet/sendTransaction.ts +10 -5
- package/actions/wallet/sendTransactionSync.ts +8 -4
- package/chains/definitions/adi.ts +23 -0
- package/chains/definitions/tempo.ts +25 -0
- package/chains/definitions/zkXPLA.ts +25 -0
- package/chains/definitions/zkXPLATestnet.ts +25 -0
- package/chains/index.ts +4 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
- package/tempo/Abis.ts +1 -1
- package/tempo/Account.ts +6 -6
- package/tempo/Addresses.ts +1 -0
- package/tempo/Decorator.ts +672 -208
- package/tempo/Transport.ts +4 -1
- package/tempo/WebAuthnP256.ts +2 -2
- package/tempo/actions/amm.ts +28 -28
- package/tempo/actions/dex.ts +68 -68
- package/tempo/actions/faucet.ts +4 -4
- package/tempo/actions/fee.ts +346 -10
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/nonce.ts +4 -4
- package/tempo/actions/policy.ts +36 -36
- package/tempo/actions/reward.ts +28 -28
- package/tempo/actions/token.ts +122 -122
- package/tempo/actions/validator.ts +1417 -0
- package/utils/abi/decodeEventLog.ts +38 -14
- package/utils/encoding/fromHex.ts +17 -2
- package/utils/rpc/http.ts +31 -1
|
@@ -21,8 +21,8 @@ import type { TransactionReceipt } from '../Transaction.js';
|
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
23
23
|
* import { createClient, http } from 'viem'
|
|
24
|
-
* import { tempo } from '
|
|
25
|
-
* import { Actions } from 'tempo
|
|
24
|
+
* import { tempo } from 'viem/chains'
|
|
25
|
+
* import { Actions } from 'viem/tempo'
|
|
26
26
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
27
27
|
*
|
|
28
28
|
* const client = createClient({
|
|
@@ -84,8 +84,8 @@ export declare namespace getUserToken {
|
|
|
84
84
|
* @example
|
|
85
85
|
* ```ts
|
|
86
86
|
* import { createClient, http } from 'viem'
|
|
87
|
-
* import { tempo } from '
|
|
88
|
-
* import { Actions } from 'tempo
|
|
87
|
+
* import { tempo } from 'viem/chains'
|
|
88
|
+
* import { Actions } from 'viem/tempo'
|
|
89
89
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
90
90
|
*
|
|
91
91
|
* const client = createClient({
|
|
@@ -125,8 +125,8 @@ export declare namespace setUserToken {
|
|
|
125
125
|
* @example
|
|
126
126
|
* ```ts
|
|
127
127
|
* import { createClient, http, walletActions } from 'viem'
|
|
128
|
-
* import { tempo } from '
|
|
129
|
-
* import { Actions } from 'tempo
|
|
128
|
+
* import { tempo } from 'viem/chains'
|
|
129
|
+
* import { Actions } from 'viem/tempo'
|
|
130
130
|
*
|
|
131
131
|
* const client = createClient({
|
|
132
132
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -317,8 +317,8 @@ export declare namespace setUserToken {
|
|
|
317
317
|
* @example
|
|
318
318
|
* ```ts
|
|
319
319
|
* import { createClient, http } from 'viem'
|
|
320
|
-
* import { tempo } from '
|
|
321
|
-
* import { Actions } from 'tempo
|
|
320
|
+
* import { tempo } from 'viem/chains'
|
|
321
|
+
* import { Actions } from 'viem/tempo'
|
|
322
322
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
323
323
|
*
|
|
324
324
|
* const client = createClient({
|
|
@@ -354,8 +354,8 @@ export declare namespace setUserTokenSync {
|
|
|
354
354
|
* @example
|
|
355
355
|
* ```ts
|
|
356
356
|
* import { createClient, http } from 'viem'
|
|
357
|
-
* import { tempo } from '
|
|
358
|
-
* import { Actions } from 'tempo
|
|
357
|
+
* import { tempo } from 'viem/chains'
|
|
358
|
+
* import { Actions } from 'viem/tempo'
|
|
359
359
|
*
|
|
360
360
|
* const client = createClient({
|
|
361
361
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -385,4 +385,374 @@ export declare namespace watchSetUserToken {
|
|
|
385
385
|
onUserTokenSet: (args: Args, log: Log) => void;
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* Gets the validator's preferred fee token.
|
|
390
|
+
*
|
|
391
|
+
* @example
|
|
392
|
+
* ```ts
|
|
393
|
+
* import { createClient, http } from 'viem'
|
|
394
|
+
* import { tempo } from 'viem/chains'
|
|
395
|
+
* import { Actions } from 'viem/tempo'
|
|
396
|
+
*
|
|
397
|
+
* const client = createClient({
|
|
398
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
399
|
+
* transport: http(),
|
|
400
|
+
* })
|
|
401
|
+
*
|
|
402
|
+
* const { address, id } = await Actions.fee.getValidatorToken(client, {
|
|
403
|
+
* validator: '0x...',
|
|
404
|
+
* })
|
|
405
|
+
* ```
|
|
406
|
+
*
|
|
407
|
+
* @param client - Client.
|
|
408
|
+
* @param parameters - Parameters.
|
|
409
|
+
* @returns The validator's preferred fee token, or null if not set.
|
|
410
|
+
*/
|
|
411
|
+
export declare function getValidatorToken<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: getValidatorToken.Parameters): Promise<getValidatorToken.ReturnValue>;
|
|
412
|
+
export declare namespace getValidatorToken {
|
|
413
|
+
type Parameters = ReadParameters & Args;
|
|
414
|
+
type Args = {
|
|
415
|
+
/** Validator address. */
|
|
416
|
+
validator: Address;
|
|
417
|
+
};
|
|
418
|
+
type ReturnValue = Compute<{
|
|
419
|
+
address: Address;
|
|
420
|
+
id: bigint;
|
|
421
|
+
} | null>;
|
|
422
|
+
/**
|
|
423
|
+
* Defines a call to the `validatorTokens` function.
|
|
424
|
+
*
|
|
425
|
+
* @param args - Arguments.
|
|
426
|
+
* @returns The call.
|
|
427
|
+
*/
|
|
428
|
+
function call(args: Args): {
|
|
429
|
+
abi: [{
|
|
430
|
+
readonly name: "validatorTokens";
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly stateMutability: "view";
|
|
433
|
+
readonly inputs: readonly [{
|
|
434
|
+
readonly type: "address";
|
|
435
|
+
readonly name: "validator";
|
|
436
|
+
}];
|
|
437
|
+
readonly outputs: readonly [{
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
}];
|
|
440
|
+
}];
|
|
441
|
+
functionName: "validatorTokens";
|
|
442
|
+
} & {
|
|
443
|
+
args: readonly [validator: `0x${string}`];
|
|
444
|
+
} & {
|
|
445
|
+
address: Address;
|
|
446
|
+
} & {
|
|
447
|
+
data: import("../../index.js").Hex;
|
|
448
|
+
to: Address;
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Sets the validator's preferred fee token.
|
|
453
|
+
*
|
|
454
|
+
* @example
|
|
455
|
+
* ```ts
|
|
456
|
+
* import { createClient, http } from 'viem'
|
|
457
|
+
* import { tempo } from 'viem/chains'
|
|
458
|
+
* import { Actions } from 'viem/tempo'
|
|
459
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
460
|
+
*
|
|
461
|
+
* const client = createClient({
|
|
462
|
+
* account: privateKeyToAccount('0x...'),
|
|
463
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
464
|
+
* transport: http(),
|
|
465
|
+
* })
|
|
466
|
+
*
|
|
467
|
+
* const hash = await Actions.fee.setValidatorToken(client, {
|
|
468
|
+
* token: '0x...',
|
|
469
|
+
* })
|
|
470
|
+
* ```
|
|
471
|
+
*
|
|
472
|
+
* @param client - Client.
|
|
473
|
+
* @param parameters - Parameters.
|
|
474
|
+
* @returns The transaction hash.
|
|
475
|
+
*/
|
|
476
|
+
export declare function setValidatorToken<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: setValidatorToken.Parameters<chain, account>): Promise<setValidatorToken.ReturnValue>;
|
|
477
|
+
export declare namespace setValidatorToken {
|
|
478
|
+
type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = WriteParameters<chain, account> & Args;
|
|
479
|
+
type Args = {
|
|
480
|
+
/** Address or ID of the TIP20 token. */
|
|
481
|
+
token: TokenId.TokenIdOrAddress;
|
|
482
|
+
};
|
|
483
|
+
type ReturnValue = WriteContractReturnType;
|
|
484
|
+
type ErrorType = BaseErrorType;
|
|
485
|
+
/** @internal */
|
|
486
|
+
function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: setValidatorToken.Parameters<chain, account>): Promise<ReturnType<action>>;
|
|
487
|
+
/**
|
|
488
|
+
* Defines a call to the `setValidatorToken` function.
|
|
489
|
+
*
|
|
490
|
+
* Can be passed as a parameter to:
|
|
491
|
+
* - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate the gas cost of the call
|
|
492
|
+
* - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the call
|
|
493
|
+
* - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): send multiple calls
|
|
494
|
+
*
|
|
495
|
+
* @example
|
|
496
|
+
* ```ts
|
|
497
|
+
* import { createClient, http, walletActions } from 'viem'
|
|
498
|
+
* import { tempo } from 'viem/chains'
|
|
499
|
+
* import { Actions } from 'viem/tempo'
|
|
500
|
+
*
|
|
501
|
+
* const client = createClient({
|
|
502
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
503
|
+
* transport: http(),
|
|
504
|
+
* }).extend(walletActions)
|
|
505
|
+
*
|
|
506
|
+
* const { result } = await client.sendCalls({
|
|
507
|
+
* calls: [
|
|
508
|
+
* actions.fee.setValidatorToken.call({
|
|
509
|
+
* token: '0x20c0...beef',
|
|
510
|
+
* }),
|
|
511
|
+
* actions.fee.setValidatorToken.call({
|
|
512
|
+
* token: '0x20c0...babe',
|
|
513
|
+
* }),
|
|
514
|
+
* ]
|
|
515
|
+
* })
|
|
516
|
+
* ```
|
|
517
|
+
*
|
|
518
|
+
* @param args - Arguments.
|
|
519
|
+
* @returns The call.
|
|
520
|
+
*/
|
|
521
|
+
function call(args: Args): {
|
|
522
|
+
abi: [{
|
|
523
|
+
readonly name: "setValidatorToken";
|
|
524
|
+
readonly type: "function";
|
|
525
|
+
readonly stateMutability: "nonpayable";
|
|
526
|
+
readonly inputs: readonly [{
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
readonly name: "token";
|
|
529
|
+
}];
|
|
530
|
+
readonly outputs: readonly [];
|
|
531
|
+
}];
|
|
532
|
+
functionName: "setValidatorToken";
|
|
533
|
+
} & {
|
|
534
|
+
args: readonly [token: `0x${string}`];
|
|
535
|
+
} & {
|
|
536
|
+
address: Address;
|
|
537
|
+
} & {
|
|
538
|
+
data: import("../../index.js").Hex;
|
|
539
|
+
to: Address;
|
|
540
|
+
};
|
|
541
|
+
function extractEvent(logs: Log[]): Log<bigint, number, false, undefined, true, readonly [{
|
|
542
|
+
readonly name: "userTokens";
|
|
543
|
+
readonly type: "function";
|
|
544
|
+
readonly stateMutability: "view";
|
|
545
|
+
readonly inputs: readonly [{
|
|
546
|
+
readonly type: "address";
|
|
547
|
+
readonly name: "user";
|
|
548
|
+
}];
|
|
549
|
+
readonly outputs: readonly [{
|
|
550
|
+
readonly type: "address";
|
|
551
|
+
}];
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "validatorTokens";
|
|
554
|
+
readonly type: "function";
|
|
555
|
+
readonly stateMutability: "view";
|
|
556
|
+
readonly inputs: readonly [{
|
|
557
|
+
readonly type: "address";
|
|
558
|
+
readonly name: "validator";
|
|
559
|
+
}];
|
|
560
|
+
readonly outputs: readonly [{
|
|
561
|
+
readonly type: "address";
|
|
562
|
+
}];
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "setUserToken";
|
|
565
|
+
readonly type: "function";
|
|
566
|
+
readonly stateMutability: "nonpayable";
|
|
567
|
+
readonly inputs: readonly [{
|
|
568
|
+
readonly type: "address";
|
|
569
|
+
readonly name: "token";
|
|
570
|
+
}];
|
|
571
|
+
readonly outputs: readonly [];
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "setValidatorToken";
|
|
574
|
+
readonly type: "function";
|
|
575
|
+
readonly stateMutability: "nonpayable";
|
|
576
|
+
readonly inputs: readonly [{
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
readonly name: "token";
|
|
579
|
+
}];
|
|
580
|
+
readonly outputs: readonly [];
|
|
581
|
+
}, {
|
|
582
|
+
readonly name: "distributeFees";
|
|
583
|
+
readonly type: "function";
|
|
584
|
+
readonly stateMutability: "nonpayable";
|
|
585
|
+
readonly inputs: readonly [{
|
|
586
|
+
readonly type: "address";
|
|
587
|
+
readonly name: "validator";
|
|
588
|
+
}, {
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
readonly name: "token";
|
|
591
|
+
}];
|
|
592
|
+
readonly outputs: readonly [];
|
|
593
|
+
}, {
|
|
594
|
+
readonly name: "collectedFees";
|
|
595
|
+
readonly type: "function";
|
|
596
|
+
readonly stateMutability: "view";
|
|
597
|
+
readonly inputs: readonly [{
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
readonly name: "validator";
|
|
600
|
+
}, {
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
readonly name: "token";
|
|
603
|
+
}];
|
|
604
|
+
readonly outputs: readonly [{
|
|
605
|
+
readonly type: "uint256";
|
|
606
|
+
}];
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "UserTokenSet";
|
|
609
|
+
readonly type: "event";
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
readonly name: "user";
|
|
613
|
+
readonly indexed: true;
|
|
614
|
+
}, {
|
|
615
|
+
readonly type: "address";
|
|
616
|
+
readonly name: "token";
|
|
617
|
+
readonly indexed: true;
|
|
618
|
+
}];
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "ValidatorTokenSet";
|
|
621
|
+
readonly type: "event";
|
|
622
|
+
readonly inputs: readonly [{
|
|
623
|
+
readonly type: "address";
|
|
624
|
+
readonly name: "validator";
|
|
625
|
+
readonly indexed: true;
|
|
626
|
+
}, {
|
|
627
|
+
readonly type: "address";
|
|
628
|
+
readonly name: "token";
|
|
629
|
+
readonly indexed: true;
|
|
630
|
+
}];
|
|
631
|
+
}, {
|
|
632
|
+
readonly name: "FeesDistributed";
|
|
633
|
+
readonly type: "event";
|
|
634
|
+
readonly inputs: readonly [{
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
readonly name: "validator";
|
|
637
|
+
readonly indexed: true;
|
|
638
|
+
}, {
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
readonly name: "token";
|
|
641
|
+
readonly indexed: true;
|
|
642
|
+
}, {
|
|
643
|
+
readonly type: "uint256";
|
|
644
|
+
readonly name: "amount";
|
|
645
|
+
}];
|
|
646
|
+
}, {
|
|
647
|
+
readonly name: "OnlyValidator";
|
|
648
|
+
readonly type: "error";
|
|
649
|
+
readonly inputs: readonly [];
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "OnlySystemContract";
|
|
652
|
+
readonly type: "error";
|
|
653
|
+
readonly inputs: readonly [];
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "InvalidToken";
|
|
656
|
+
readonly type: "error";
|
|
657
|
+
readonly inputs: readonly [];
|
|
658
|
+
}, {
|
|
659
|
+
readonly name: "PoolDoesNotExist";
|
|
660
|
+
readonly type: "error";
|
|
661
|
+
readonly inputs: readonly [];
|
|
662
|
+
}, {
|
|
663
|
+
readonly name: "InsufficientFeeTokenBalance";
|
|
664
|
+
readonly type: "error";
|
|
665
|
+
readonly inputs: readonly [];
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "InternalError";
|
|
668
|
+
readonly type: "error";
|
|
669
|
+
readonly inputs: readonly [];
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "CannotChangeWithinBlock";
|
|
672
|
+
readonly type: "error";
|
|
673
|
+
readonly inputs: readonly [];
|
|
674
|
+
}, {
|
|
675
|
+
readonly name: "CannotChangeWithPendingFees";
|
|
676
|
+
readonly type: "error";
|
|
677
|
+
readonly inputs: readonly [];
|
|
678
|
+
}, {
|
|
679
|
+
readonly name: "TokenPolicyForbids";
|
|
680
|
+
readonly type: "error";
|
|
681
|
+
readonly inputs: readonly [];
|
|
682
|
+
}], "ValidatorTokenSet">;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* Sets the validator's preferred fee token.
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* ```ts
|
|
689
|
+
* import { createClient, http } from 'viem'
|
|
690
|
+
* import { tempo } from 'viem/chains'
|
|
691
|
+
* import { Actions } from 'viem/tempo'
|
|
692
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
693
|
+
*
|
|
694
|
+
* const client = createClient({
|
|
695
|
+
* account: privateKeyToAccount('0x...'),
|
|
696
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
697
|
+
* transport: http(),
|
|
698
|
+
* })
|
|
699
|
+
*
|
|
700
|
+
* const result = await Actions.fee.setValidatorTokenSync(client, {
|
|
701
|
+
* token: '0x...',
|
|
702
|
+
* })
|
|
703
|
+
* ```
|
|
704
|
+
*
|
|
705
|
+
* @param client - Client.
|
|
706
|
+
* @param parameters - Parameters.
|
|
707
|
+
* @returns The transaction receipt and event data.
|
|
708
|
+
*/
|
|
709
|
+
export declare function setValidatorTokenSync<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: setValidatorTokenSync.Parameters<chain, account>): Promise<setValidatorTokenSync.ReturnValue>;
|
|
710
|
+
export declare namespace setValidatorTokenSync {
|
|
711
|
+
type Parameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = setValidatorToken.Parameters<chain, account>;
|
|
712
|
+
type Args = setValidatorToken.Args;
|
|
713
|
+
type ReturnValue = Compute<GetEventArgs<typeof Abis.feeManager, 'ValidatorTokenSet', {
|
|
714
|
+
IndexedOnly: false;
|
|
715
|
+
Required: true;
|
|
716
|
+
}> & {
|
|
717
|
+
receipt: TransactionReceipt;
|
|
718
|
+
}>;
|
|
719
|
+
type ErrorType = BaseErrorType;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Watches for validator token set events.
|
|
723
|
+
*
|
|
724
|
+
* @example
|
|
725
|
+
* ```ts
|
|
726
|
+
* import { createClient, http } from 'viem'
|
|
727
|
+
* import { tempo } from 'viem/chains'
|
|
728
|
+
* import { Actions } from 'viem/tempo'
|
|
729
|
+
*
|
|
730
|
+
* const client = createClient({
|
|
731
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
732
|
+
* transport: http(),
|
|
733
|
+
* })
|
|
734
|
+
*
|
|
735
|
+
* const unwatch = actions.fee.watchSetValidatorToken(client, {
|
|
736
|
+
* onValidatorTokenSet: (args, log) => {
|
|
737
|
+
* console.log('Validator token set:', args)
|
|
738
|
+
* },
|
|
739
|
+
* })
|
|
740
|
+
* ```
|
|
741
|
+
*
|
|
742
|
+
* @param client - Client.
|
|
743
|
+
* @param parameters - Parameters.
|
|
744
|
+
* @returns A function to unsubscribe from the event.
|
|
745
|
+
*/
|
|
746
|
+
export declare function watchSetValidatorToken<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: watchSetValidatorToken.Parameters): import("../../actions/public/watchContractEvent.js").WatchContractEventReturnType;
|
|
747
|
+
export declare namespace watchSetValidatorToken {
|
|
748
|
+
type Args = GetEventArgs<typeof Abis.feeManager, 'ValidatorTokenSet', {
|
|
749
|
+
IndexedOnly: false;
|
|
750
|
+
Required: true;
|
|
751
|
+
}>;
|
|
752
|
+
type Log = viem_Log<bigint, number, false, ExtractAbiItem<typeof Abis.feeManager, 'ValidatorTokenSet'>, true>;
|
|
753
|
+
type Parameters = UnionOmit<WatchContractEventParameters<typeof Abis.feeManager, 'ValidatorTokenSet', true>, 'abi' | 'address' | 'batch' | 'eventName' | 'onLogs' | 'strict'> & {
|
|
754
|
+
/** Callback to invoke when a validator token is set. */
|
|
755
|
+
onValidatorTokenSet: (args: Args, log: Log) => void;
|
|
756
|
+
};
|
|
757
|
+
}
|
|
388
758
|
//# sourceMappingURL=fee.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fee.d.ts","sourceRoot":"","sources":["../../../tempo/actions/fee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAA;AAE9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE9D,OAAO,KAAK,IAAI,MA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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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../tempo/actions/index.ts"],"names":[],"mappings":"AACA,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;AACnC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA"}
|
|
@@ -16,8 +16,8 @@ import type { ReadParameters } from '../internal/types.js';
|
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
18
18
|
* import { createClient, http } from 'viem'
|
|
19
|
-
* import { tempo } from '
|
|
20
|
-
* import { Actions } from 'tempo
|
|
19
|
+
* import { tempo } from 'viem/chains'
|
|
20
|
+
* import { Actions } from 'viem/tempo'
|
|
21
21
|
*
|
|
22
22
|
* const client = createClient({
|
|
23
23
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
@@ -55,8 +55,8 @@ export declare namespace getNonce {
|
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
57
57
|
* import { createClient, http } from 'viem'
|
|
58
|
-
* import { tempo } from '
|
|
59
|
-
* import { Actions } from 'tempo
|
|
58
|
+
* import { tempo } from 'viem/chains'
|
|
59
|
+
* import { Actions } from 'viem/tempo'
|
|
60
60
|
*
|
|
61
61
|
* const client = createClient({
|
|
62
62
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|