viem 2.47.6 → 2.47.11
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 +58 -0
- package/_cjs/actions/wallet/prepareTransactionRequest.js +12 -0
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/_cjs/chains/definitions/battlechainTestnet.js +26 -0
- package/_cjs/chains/definitions/battlechainTestnet.js.map +1 -0
- package/_cjs/chains/definitions/eden.js +32 -0
- package/_cjs/chains/definitions/eden.js.map +1 -0
- package/_cjs/chains/definitions/fluent.js +26 -0
- package/_cjs/chains/definitions/fluent.js.map +1 -0
- package/_cjs/chains/definitions/gensyn.js +29 -0
- package/_cjs/chains/definitions/gensyn.js.map +1 -0
- package/_cjs/chains/definitions/igra.js +26 -0
- package/_cjs/chains/definitions/igra.js.map +1 -0
- package/_cjs/chains/definitions/katana.js +6 -0
- package/_cjs/chains/definitions/katana.js.map +1 -1
- package/_cjs/chains/definitions/megaeth.js +25 -3
- package/_cjs/chains/definitions/megaeth.js.map +1 -1
- package/_cjs/chains/definitions/mezo.js +23 -0
- package/_cjs/chains/definitions/mezo.js.map +1 -0
- package/_cjs/chains/definitions/mezoTestnet.js +30 -0
- package/_cjs/chains/definitions/mezoTestnet.js.map +1 -0
- package/_cjs/chains/definitions/radius.js +22 -0
- package/_cjs/chains/definitions/radius.js.map +1 -0
- package/_cjs/chains/definitions/radiusTestnet.js +22 -0
- package/_cjs/chains/definitions/radiusTestnet.js.map +1 -0
- package/_cjs/chains/definitions/tempoDevnet.js +1 -0
- package/_cjs/chains/definitions/tempoDevnet.js.map +1 -1
- package/_cjs/chains/definitions/tempoLocalnet.js +1 -0
- package/_cjs/chains/definitions/tempoLocalnet.js.map +1 -1
- package/_cjs/chains/definitions/tempoModerato.js +1 -1
- package/_cjs/chains/definitions/tempoModerato.js.map +1 -1
- package/_cjs/chains/index.js +34 -17
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_cjs/tempo/Abis.js +701 -4
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Account.js +7 -5
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/Hardfork.js +18 -0
- package/_cjs/tempo/Hardfork.js.map +1 -0
- package/_cjs/tempo/Transaction.js +1 -0
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/actions/accessKey.js +28 -3
- package/_cjs/tempo/actions/accessKey.js.map +1 -1
- package/_cjs/tempo/actions/token.js +2 -1
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +11 -11
- package/_cjs/tempo/actions/validator.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +44 -8
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/index.js +3 -1
- package/_cjs/tempo/index.js.map +1 -1
- package/_cjs/utils/buildRequest.js +2 -0
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +12 -0
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/_esm/chains/definitions/battlechainTestnet.js +23 -0
- package/_esm/chains/definitions/battlechainTestnet.js.map +1 -0
- package/_esm/chains/definitions/eden.js +29 -0
- package/_esm/chains/definitions/eden.js.map +1 -0
- package/_esm/chains/definitions/fluent.js +23 -0
- package/_esm/chains/definitions/fluent.js.map +1 -0
- package/_esm/chains/definitions/gensyn.js +26 -0
- package/_esm/chains/definitions/gensyn.js.map +1 -0
- package/_esm/chains/definitions/igra.js +23 -0
- package/_esm/chains/definitions/igra.js.map +1 -0
- package/_esm/chains/definitions/katana.js +6 -0
- package/_esm/chains/definitions/katana.js.map +1 -1
- package/_esm/chains/definitions/megaeth.js +25 -3
- package/_esm/chains/definitions/megaeth.js.map +1 -1
- package/_esm/chains/definitions/mezo.js +20 -0
- package/_esm/chains/definitions/mezo.js.map +1 -0
- package/_esm/chains/definitions/mezoTestnet.js +27 -0
- package/_esm/chains/definitions/mezoTestnet.js.map +1 -0
- package/_esm/chains/definitions/radius.js +19 -0
- package/_esm/chains/definitions/radius.js.map +1 -0
- package/_esm/chains/definitions/radiusTestnet.js +19 -0
- package/_esm/chains/definitions/radiusTestnet.js.map +1 -0
- package/_esm/chains/definitions/tempoDevnet.js +1 -0
- package/_esm/chains/definitions/tempoDevnet.js.map +1 -1
- package/_esm/chains/definitions/tempoLocalnet.js +1 -0
- package/_esm/chains/definitions/tempoLocalnet.js.map +1 -1
- package/_esm/chains/definitions/tempoModerato.js +1 -1
- package/_esm/chains/definitions/tempoModerato.js.map +1 -1
- package/_esm/chains/index.js +11 -7
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_esm/tempo/Abis.js +700 -3
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +7 -7
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/Hardfork.js +15 -0
- package/_esm/tempo/Hardfork.js.map +1 -0
- package/_esm/tempo/Transaction.js +1 -0
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/actions/accessKey.js +36 -4
- package/_esm/tempo/actions/accessKey.js.map +1 -1
- package/_esm/tempo/actions/token.js +2 -1
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/actions/validator.js +11 -11
- package/_esm/tempo/actions/validator.js.map +1 -1
- package/_esm/tempo/chainConfig.js +52 -11
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/index.js +2 -1
- package/_esm/tempo/index.js.map +1 -1
- package/_esm/utils/buildRequest.js +5 -0
- package/_esm/utils/buildRequest.js.map +1 -1
- package/_types/actions/public/verifyHash.d.ts +1 -1
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/chains/definitions/battlechainTestnet.d.ts +441 -0
- package/_types/chains/definitions/battlechainTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/eden.d.ts +46 -0
- package/_types/chains/definitions/eden.d.ts.map +1 -0
- package/_types/chains/definitions/fluent.d.ts +48 -0
- package/_types/chains/definitions/fluent.d.ts.map +1 -0
- package/_types/chains/definitions/gensyn.d.ts +45 -0
- package/_types/chains/definitions/gensyn.d.ts.map +1 -0
- package/_types/chains/definitions/igra.d.ts +48 -0
- package/_types/chains/definitions/igra.d.ts.map +1 -0
- package/_types/chains/definitions/katana.d.ts +6 -9
- package/_types/chains/definitions/katana.d.ts.map +1 -1
- package/_types/chains/definitions/megaeth.d.ts +274 -6
- package/_types/chains/definitions/megaeth.d.ts.map +1 -1
- package/_types/chains/definitions/mezo.d.ts +48 -0
- package/_types/chains/definitions/mezo.d.ts.map +1 -0
- package/_types/chains/definitions/mezoTestnet.d.ts +45 -0
- package/_types/chains/definitions/mezoTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/radius.d.ts +48 -0
- package/_types/chains/definitions/radius.d.ts.map +1 -0
- package/_types/chains/definitions/radiusTestnet.d.ts +48 -0
- package/_types/chains/definitions/radiusTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/tempo.d.ts +25 -22
- package/_types/chains/definitions/tempo.d.ts.map +1 -1
- package/_types/chains/definitions/tempoDevnet.d.ts +27 -22
- package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -1
- package/_types/chains/definitions/tempoLocalnet.d.ts +27 -22
- package/_types/chains/definitions/tempoLocalnet.d.ts.map +1 -1
- package/_types/chains/definitions/tempoModerato.d.ts +27 -24
- package/_types/chains/definitions/tempoModerato.d.ts.map +1 -1
- package/_types/chains/index.d.ts +11 -7
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +1262 -150
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +2 -2
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +2 -2
- package/_types/tempo/Hardfork.d.ts +5 -0
- package/_types/tempo/Hardfork.d.ts.map +1 -0
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/actions/accessKey.d.ts +645 -3
- package/_types/tempo/actions/accessKey.d.ts.map +1 -1
- package/_types/tempo/actions/policy.d.ts +444 -4
- package/_types/tempo/actions/policy.d.ts.map +1 -1
- package/_types/tempo/actions/reward.d.ts +108 -0
- package/_types/tempo/actions/reward.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +828 -18
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/actions/validator.d.ts +6 -6
- package/_types/tempo/actions/validator.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts +13 -11
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +2 -1
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/utils/buildRequest.d.ts.map +1 -1
- package/actions/public/verifyHash.ts +1 -1
- package/actions/wallet/prepareTransactionRequest.ts +12 -0
- package/actions/wallet/waitForCallsStatus.ts +1 -1
- package/chains/definitions/battlechainTestnet.ts +24 -0
- package/chains/definitions/eden.ts +29 -0
- package/chains/definitions/fluent.ts +23 -0
- package/chains/definitions/gensyn.ts +26 -0
- package/chains/definitions/igra.ts +23 -0
- package/chains/definitions/katana.ts +6 -0
- package/chains/definitions/megaeth.ts +26 -3
- package/chains/definitions/mezo.ts +20 -0
- package/chains/definitions/mezoTestnet.ts +27 -0
- package/chains/definitions/radius.ts +19 -0
- package/chains/definitions/radiusTestnet.ts +19 -0
- package/chains/definitions/tempoDevnet.ts +1 -0
- package/chains/definitions/tempoLocalnet.ts +1 -0
- package/chains/definitions/tempoModerato.ts +1 -1
- package/chains/index.ts +14 -8
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Abis.ts +703 -3
- package/tempo/Account.ts +9 -8
- package/tempo/Decorator.ts +2 -2
- package/tempo/Hardfork.ts +17 -0
- package/tempo/Transaction.ts +2 -1
- package/tempo/actions/accessKey.ts +53 -11
- package/tempo/actions/token.ts +2 -1
- package/tempo/actions/validator.ts +17 -17
- package/tempo/chainConfig.ts +59 -15
- package/tempo/index.ts +2 -1
- package/tsconfig.json +1 -1
- package/utils/buildRequest.ts +4 -0
- package/_cjs/chains/definitions/tempoAndantino.js +0 -28
- package/_cjs/chains/definitions/tempoAndantino.js.map +0 -1
- package/_esm/chains/definitions/tempoAndantino.js +0 -25
- package/_esm/chains/definitions/tempoAndantino.js.map +0 -1
- package/_types/chains/definitions/tempoAndantino.d.ts +0 -918
- package/_types/chains/definitions/tempoAndantino.d.ts.map +0 -1
- package/chains/definitions/tempoAndantino.ts +0 -25
package/_cjs/tempo/Abis.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.validatorConfig = exports.tip403Registry = exports.tip20Factory = exports.nonce = exports.accountKeychain = exports.feeAmm = exports.feeManager = exports.addressRegistry = exports.stablecoinDex = exports.signatureVerifier = exports.validatorConfigV2 = exports.tip20 = void 0;
|
|
4
4
|
exports.tip20 = [
|
|
5
5
|
{
|
|
6
6
|
name: 'name',
|
|
@@ -261,6 +261,35 @@ exports.tip20 = [
|
|
|
261
261
|
inputs: [],
|
|
262
262
|
outputs: [{ type: 'bytes32' }],
|
|
263
263
|
},
|
|
264
|
+
{
|
|
265
|
+
name: 'permit',
|
|
266
|
+
type: 'function',
|
|
267
|
+
stateMutability: 'nonpayable',
|
|
268
|
+
inputs: [
|
|
269
|
+
{ type: 'address', name: 'owner' },
|
|
270
|
+
{ type: 'address', name: 'spender' },
|
|
271
|
+
{ type: 'uint256', name: 'value' },
|
|
272
|
+
{ type: 'uint256', name: 'deadline' },
|
|
273
|
+
{ type: 'uint8', name: 'v' },
|
|
274
|
+
{ type: 'bytes32', name: 'r' },
|
|
275
|
+
{ type: 'bytes32', name: 's' },
|
|
276
|
+
],
|
|
277
|
+
outputs: [],
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'nonces',
|
|
281
|
+
type: 'function',
|
|
282
|
+
stateMutability: 'view',
|
|
283
|
+
inputs: [{ type: 'address', name: 'owner' }],
|
|
284
|
+
outputs: [{ type: 'uint256' }],
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: 'DOMAIN_SEPARATOR',
|
|
288
|
+
type: 'function',
|
|
289
|
+
stateMutability: 'view',
|
|
290
|
+
inputs: [],
|
|
291
|
+
outputs: [{ type: 'bytes32' }],
|
|
292
|
+
},
|
|
264
293
|
{
|
|
265
294
|
name: 'distributeReward',
|
|
266
295
|
type: 'function',
|
|
@@ -454,6 +483,8 @@ exports.tip20 = [
|
|
|
454
483
|
{ name: 'InvalidToken', type: 'error', inputs: [] },
|
|
455
484
|
{ name: 'Uninitialized', type: 'error', inputs: [] },
|
|
456
485
|
{ name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
|
|
486
|
+
{ name: 'PermitExpired', type: 'error', inputs: [] },
|
|
487
|
+
{ name: 'InvalidSignature', type: 'error', inputs: [] },
|
|
457
488
|
{
|
|
458
489
|
name: 'hasRole',
|
|
459
490
|
type: 'function',
|
|
@@ -529,6 +560,384 @@ exports.tip20 = [
|
|
|
529
560
|
},
|
|
530
561
|
{ name: 'Unauthorized', type: 'error', inputs: [] },
|
|
531
562
|
];
|
|
563
|
+
exports.validatorConfigV2 = [
|
|
564
|
+
{
|
|
565
|
+
name: 'getActiveValidators',
|
|
566
|
+
type: 'function',
|
|
567
|
+
stateMutability: 'view',
|
|
568
|
+
inputs: [],
|
|
569
|
+
outputs: [
|
|
570
|
+
{
|
|
571
|
+
type: 'tuple[]',
|
|
572
|
+
name: 'validators',
|
|
573
|
+
components: [
|
|
574
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
575
|
+
{ type: 'address', name: 'validatorAddress' },
|
|
576
|
+
{ type: 'string', name: 'ingress' },
|
|
577
|
+
{ type: 'string', name: 'egress' },
|
|
578
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
579
|
+
{ type: 'uint64', name: 'index' },
|
|
580
|
+
{ type: 'uint64', name: 'addedAtHeight' },
|
|
581
|
+
{ type: 'uint64', name: 'deactivatedAtHeight' },
|
|
582
|
+
],
|
|
583
|
+
},
|
|
584
|
+
],
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
name: 'getInitializedAtHeight',
|
|
588
|
+
type: 'function',
|
|
589
|
+
stateMutability: 'view',
|
|
590
|
+
inputs: [],
|
|
591
|
+
outputs: [{ type: 'uint64' }],
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
name: 'owner',
|
|
595
|
+
type: 'function',
|
|
596
|
+
stateMutability: 'view',
|
|
597
|
+
inputs: [],
|
|
598
|
+
outputs: [{ type: 'address' }],
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
name: 'validatorCount',
|
|
602
|
+
type: 'function',
|
|
603
|
+
stateMutability: 'view',
|
|
604
|
+
inputs: [],
|
|
605
|
+
outputs: [{ type: 'uint64' }],
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: 'validatorByIndex',
|
|
609
|
+
type: 'function',
|
|
610
|
+
stateMutability: 'view',
|
|
611
|
+
inputs: [{ type: 'uint64', name: 'index' }],
|
|
612
|
+
outputs: [
|
|
613
|
+
{
|
|
614
|
+
type: 'tuple',
|
|
615
|
+
components: [
|
|
616
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
617
|
+
{ type: 'address', name: 'validatorAddress' },
|
|
618
|
+
{ type: 'string', name: 'ingress' },
|
|
619
|
+
{ type: 'string', name: 'egress' },
|
|
620
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
621
|
+
{ type: 'uint64', name: 'index' },
|
|
622
|
+
{ type: 'uint64', name: 'addedAtHeight' },
|
|
623
|
+
{ type: 'uint64', name: 'deactivatedAtHeight' },
|
|
624
|
+
],
|
|
625
|
+
},
|
|
626
|
+
],
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
name: 'validatorByAddress',
|
|
630
|
+
type: 'function',
|
|
631
|
+
stateMutability: 'view',
|
|
632
|
+
inputs: [{ type: 'address', name: 'validatorAddress' }],
|
|
633
|
+
outputs: [
|
|
634
|
+
{
|
|
635
|
+
type: 'tuple',
|
|
636
|
+
components: [
|
|
637
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
638
|
+
{ type: 'address', name: 'validatorAddress' },
|
|
639
|
+
{ type: 'string', name: 'ingress' },
|
|
640
|
+
{ type: 'string', name: 'egress' },
|
|
641
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
642
|
+
{ type: 'uint64', name: 'index' },
|
|
643
|
+
{ type: 'uint64', name: 'addedAtHeight' },
|
|
644
|
+
{ type: 'uint64', name: 'deactivatedAtHeight' },
|
|
645
|
+
],
|
|
646
|
+
},
|
|
647
|
+
],
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
name: 'validatorByPublicKey',
|
|
651
|
+
type: 'function',
|
|
652
|
+
stateMutability: 'view',
|
|
653
|
+
inputs: [{ type: 'bytes32', name: 'publicKey' }],
|
|
654
|
+
outputs: [
|
|
655
|
+
{
|
|
656
|
+
type: 'tuple',
|
|
657
|
+
components: [
|
|
658
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
659
|
+
{ type: 'address', name: 'validatorAddress' },
|
|
660
|
+
{ type: 'string', name: 'ingress' },
|
|
661
|
+
{ type: 'string', name: 'egress' },
|
|
662
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
663
|
+
{ type: 'uint64', name: 'index' },
|
|
664
|
+
{ type: 'uint64', name: 'addedAtHeight' },
|
|
665
|
+
{ type: 'uint64', name: 'deactivatedAtHeight' },
|
|
666
|
+
],
|
|
667
|
+
},
|
|
668
|
+
],
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
name: 'getNextNetworkIdentityRotationEpoch',
|
|
672
|
+
type: 'function',
|
|
673
|
+
stateMutability: 'view',
|
|
674
|
+
inputs: [],
|
|
675
|
+
outputs: [{ type: 'uint64' }],
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
name: 'isInitialized',
|
|
679
|
+
type: 'function',
|
|
680
|
+
stateMutability: 'view',
|
|
681
|
+
inputs: [],
|
|
682
|
+
outputs: [{ type: 'bool' }],
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
name: 'addValidator',
|
|
686
|
+
type: 'function',
|
|
687
|
+
stateMutability: 'nonpayable',
|
|
688
|
+
inputs: [
|
|
689
|
+
{ type: 'address', name: 'validatorAddress' },
|
|
690
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
691
|
+
{ type: 'string', name: 'ingress' },
|
|
692
|
+
{ type: 'string', name: 'egress' },
|
|
693
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
694
|
+
{ type: 'bytes', name: 'signature' },
|
|
695
|
+
],
|
|
696
|
+
outputs: [{ type: 'uint64', name: 'index' }],
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
name: 'deactivateValidator',
|
|
700
|
+
type: 'function',
|
|
701
|
+
stateMutability: 'nonpayable',
|
|
702
|
+
inputs: [{ type: 'uint64', name: 'idx' }],
|
|
703
|
+
outputs: [],
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: 'rotateValidator',
|
|
707
|
+
type: 'function',
|
|
708
|
+
stateMutability: 'nonpayable',
|
|
709
|
+
inputs: [
|
|
710
|
+
{ type: 'uint64', name: 'idx' },
|
|
711
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
712
|
+
{ type: 'string', name: 'ingress' },
|
|
713
|
+
{ type: 'string', name: 'egress' },
|
|
714
|
+
{ type: 'bytes', name: 'signature' },
|
|
715
|
+
],
|
|
716
|
+
outputs: [],
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
name: 'setFeeRecipient',
|
|
720
|
+
type: 'function',
|
|
721
|
+
stateMutability: 'nonpayable',
|
|
722
|
+
inputs: [
|
|
723
|
+
{ type: 'uint64', name: 'idx' },
|
|
724
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
725
|
+
],
|
|
726
|
+
outputs: [],
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
name: 'setIpAddresses',
|
|
730
|
+
type: 'function',
|
|
731
|
+
stateMutability: 'nonpayable',
|
|
732
|
+
inputs: [
|
|
733
|
+
{ type: 'uint64', name: 'idx' },
|
|
734
|
+
{ type: 'string', name: 'ingress' },
|
|
735
|
+
{ type: 'string', name: 'egress' },
|
|
736
|
+
],
|
|
737
|
+
outputs: [],
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
name: 'transferValidatorOwnership',
|
|
741
|
+
type: 'function',
|
|
742
|
+
stateMutability: 'nonpayable',
|
|
743
|
+
inputs: [
|
|
744
|
+
{ type: 'uint64', name: 'idx' },
|
|
745
|
+
{ type: 'address', name: 'newAddress' },
|
|
746
|
+
],
|
|
747
|
+
outputs: [],
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
name: 'transferOwnership',
|
|
751
|
+
type: 'function',
|
|
752
|
+
stateMutability: 'nonpayable',
|
|
753
|
+
inputs: [{ type: 'address', name: 'newOwner' }],
|
|
754
|
+
outputs: [],
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
name: 'setNetworkIdentityRotationEpoch',
|
|
758
|
+
type: 'function',
|
|
759
|
+
stateMutability: 'nonpayable',
|
|
760
|
+
inputs: [{ type: 'uint64', name: 'epoch' }],
|
|
761
|
+
outputs: [],
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
name: 'migrateValidator',
|
|
765
|
+
type: 'function',
|
|
766
|
+
stateMutability: 'nonpayable',
|
|
767
|
+
inputs: [{ type: 'uint64', name: 'idx' }],
|
|
768
|
+
outputs: [],
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
name: 'initializeIfMigrated',
|
|
772
|
+
type: 'function',
|
|
773
|
+
stateMutability: 'nonpayable',
|
|
774
|
+
inputs: [],
|
|
775
|
+
outputs: [],
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
name: 'ValidatorAdded',
|
|
779
|
+
type: 'event',
|
|
780
|
+
inputs: [
|
|
781
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
782
|
+
{ type: 'address', name: 'validatorAddress', indexed: true },
|
|
783
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
784
|
+
{ type: 'string', name: 'ingress' },
|
|
785
|
+
{ type: 'string', name: 'egress' },
|
|
786
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
787
|
+
],
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
name: 'ValidatorDeactivated',
|
|
791
|
+
type: 'event',
|
|
792
|
+
inputs: [
|
|
793
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
794
|
+
{ type: 'address', name: 'validatorAddress', indexed: true },
|
|
795
|
+
],
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
name: 'ValidatorRotated',
|
|
799
|
+
type: 'event',
|
|
800
|
+
inputs: [
|
|
801
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
802
|
+
{ type: 'uint64', name: 'deactivatedIndex', indexed: true },
|
|
803
|
+
{ type: 'address', name: 'validatorAddress', indexed: true },
|
|
804
|
+
{ type: 'bytes32', name: 'oldPublicKey' },
|
|
805
|
+
{ type: 'bytes32', name: 'newPublicKey' },
|
|
806
|
+
{ type: 'string', name: 'ingress' },
|
|
807
|
+
{ type: 'string', name: 'egress' },
|
|
808
|
+
{ type: 'address', name: 'caller' },
|
|
809
|
+
],
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
name: 'FeeRecipientUpdated',
|
|
813
|
+
type: 'event',
|
|
814
|
+
inputs: [
|
|
815
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
816
|
+
{ type: 'address', name: 'feeRecipient' },
|
|
817
|
+
{ type: 'address', name: 'caller' },
|
|
818
|
+
],
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
name: 'IpAddressesUpdated',
|
|
822
|
+
type: 'event',
|
|
823
|
+
inputs: [
|
|
824
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
825
|
+
{ type: 'string', name: 'ingress' },
|
|
826
|
+
{ type: 'string', name: 'egress' },
|
|
827
|
+
{ type: 'address', name: 'caller' },
|
|
828
|
+
],
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
name: 'ValidatorOwnershipTransferred',
|
|
832
|
+
type: 'event',
|
|
833
|
+
inputs: [
|
|
834
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
835
|
+
{ type: 'address', name: 'oldAddress', indexed: true },
|
|
836
|
+
{ type: 'address', name: 'newAddress', indexed: true },
|
|
837
|
+
{ type: 'address', name: 'caller' },
|
|
838
|
+
],
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
name: 'OwnershipTransferred',
|
|
842
|
+
type: 'event',
|
|
843
|
+
inputs: [
|
|
844
|
+
{ type: 'address', name: 'oldOwner', indexed: true },
|
|
845
|
+
{ type: 'address', name: 'newOwner', indexed: true },
|
|
846
|
+
],
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
name: 'ValidatorMigrated',
|
|
850
|
+
type: 'event',
|
|
851
|
+
inputs: [
|
|
852
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
853
|
+
{ type: 'address', name: 'validatorAddress', indexed: true },
|
|
854
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
855
|
+
],
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
name: 'NetworkIdentityRotationEpochSet',
|
|
859
|
+
type: 'event',
|
|
860
|
+
inputs: [
|
|
861
|
+
{ type: 'uint64', name: 'previousEpoch', indexed: true },
|
|
862
|
+
{ type: 'uint64', name: 'nextEpoch', indexed: true },
|
|
863
|
+
],
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
name: 'Initialized',
|
|
867
|
+
type: 'event',
|
|
868
|
+
inputs: [{ type: 'uint64', name: 'height' }],
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
name: 'SkippedValidatorMigration',
|
|
872
|
+
type: 'event',
|
|
873
|
+
inputs: [
|
|
874
|
+
{ type: 'uint64', name: 'index', indexed: true },
|
|
875
|
+
{ type: 'address', name: 'validatorAddress', indexed: true },
|
|
876
|
+
{ type: 'bytes32', name: 'publicKey' },
|
|
877
|
+
],
|
|
878
|
+
},
|
|
879
|
+
{ name: 'AlreadyInitialized', type: 'error', inputs: [] },
|
|
880
|
+
{
|
|
881
|
+
name: 'IngressAlreadyExists',
|
|
882
|
+
type: 'error',
|
|
883
|
+
inputs: [{ type: 'string', name: 'ingress' }],
|
|
884
|
+
},
|
|
885
|
+
{ name: 'EmptyV1ValidatorSet', type: 'error', inputs: [] },
|
|
886
|
+
{ name: 'InvalidMigrationIndex', type: 'error', inputs: [] },
|
|
887
|
+
{ name: 'InvalidOwner', type: 'error', inputs: [] },
|
|
888
|
+
{ name: 'InvalidPublicKey', type: 'error', inputs: [] },
|
|
889
|
+
{ name: 'InvalidSignature', type: 'error', inputs: [] },
|
|
890
|
+
{ name: 'InvalidSignatureFormat', type: 'error', inputs: [] },
|
|
891
|
+
{ name: 'InvalidValidatorAddress', type: 'error', inputs: [] },
|
|
892
|
+
{ name: 'MigrationNotComplete', type: 'error', inputs: [] },
|
|
893
|
+
{ name: 'NotInitialized', type: 'error', inputs: [] },
|
|
894
|
+
{
|
|
895
|
+
name: 'NotIp',
|
|
896
|
+
type: 'error',
|
|
897
|
+
inputs: [
|
|
898
|
+
{ type: 'string', name: 'input' },
|
|
899
|
+
{ type: 'string', name: 'backtrace' },
|
|
900
|
+
],
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: 'NotIpPort',
|
|
904
|
+
type: 'error',
|
|
905
|
+
inputs: [
|
|
906
|
+
{ type: 'string', name: 'input' },
|
|
907
|
+
{ type: 'string', name: 'backtrace' },
|
|
908
|
+
],
|
|
909
|
+
},
|
|
910
|
+
{ name: 'PublicKeyAlreadyExists', type: 'error', inputs: [] },
|
|
911
|
+
{ name: 'Unauthorized', type: 'error', inputs: [] },
|
|
912
|
+
{ name: 'AddressAlreadyHasValidator', type: 'error', inputs: [] },
|
|
913
|
+
{ name: 'ValidatorAlreadyDeactivated', type: 'error', inputs: [] },
|
|
914
|
+
{ name: 'ValidatorNotFound', type: 'error', inputs: [] },
|
|
915
|
+
];
|
|
916
|
+
exports.signatureVerifier = [
|
|
917
|
+
{
|
|
918
|
+
name: 'recover',
|
|
919
|
+
type: 'function',
|
|
920
|
+
stateMutability: 'view',
|
|
921
|
+
inputs: [
|
|
922
|
+
{ type: 'bytes32', name: 'hash' },
|
|
923
|
+
{ type: 'bytes', name: 'signature' },
|
|
924
|
+
],
|
|
925
|
+
outputs: [{ type: 'address', name: 'signer' }],
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
name: 'verify',
|
|
929
|
+
type: 'function',
|
|
930
|
+
stateMutability: 'view',
|
|
931
|
+
inputs: [
|
|
932
|
+
{ type: 'address', name: 'signer' },
|
|
933
|
+
{ type: 'bytes32', name: 'hash' },
|
|
934
|
+
{ type: 'bytes', name: 'signature' },
|
|
935
|
+
],
|
|
936
|
+
outputs: [{ type: 'bool' }],
|
|
937
|
+
},
|
|
938
|
+
{ name: 'InvalidFormat', type: 'error', inputs: [] },
|
|
939
|
+
{ name: 'InvalidSignature', type: 'error', inputs: [] },
|
|
940
|
+
];
|
|
532
941
|
exports.stablecoinDex = [
|
|
533
942
|
{
|
|
534
943
|
name: 'createPair',
|
|
@@ -842,6 +1251,70 @@ exports.stablecoinDex = [
|
|
|
842
1251
|
{ name: 'InvalidBaseToken', type: 'error', inputs: [] },
|
|
843
1252
|
{ name: 'OrderNotStale', type: 'error', inputs: [] },
|
|
844
1253
|
];
|
|
1254
|
+
exports.addressRegistry = [
|
|
1255
|
+
{
|
|
1256
|
+
name: 'registerVirtualMaster',
|
|
1257
|
+
type: 'function',
|
|
1258
|
+
stateMutability: 'nonpayable',
|
|
1259
|
+
inputs: [{ type: 'bytes32', name: 'salt' }],
|
|
1260
|
+
outputs: [{ type: 'bytes4', name: 'masterId' }],
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
name: 'getMaster',
|
|
1264
|
+
type: 'function',
|
|
1265
|
+
stateMutability: 'view',
|
|
1266
|
+
inputs: [{ type: 'bytes4', name: 'masterId' }],
|
|
1267
|
+
outputs: [{ type: 'address' }],
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
name: 'resolveRecipient',
|
|
1271
|
+
type: 'function',
|
|
1272
|
+
stateMutability: 'view',
|
|
1273
|
+
inputs: [{ type: 'address', name: 'to' }],
|
|
1274
|
+
outputs: [{ type: 'address', name: 'effectiveRecipient' }],
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
name: 'resolveVirtualAddress',
|
|
1278
|
+
type: 'function',
|
|
1279
|
+
stateMutability: 'view',
|
|
1280
|
+
inputs: [{ type: 'address', name: 'virtualAddr' }],
|
|
1281
|
+
outputs: [{ type: 'address', name: 'master' }],
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
name: 'isVirtualAddress',
|
|
1285
|
+
type: 'function',
|
|
1286
|
+
stateMutability: 'pure',
|
|
1287
|
+
inputs: [{ type: 'address', name: 'addr' }],
|
|
1288
|
+
outputs: [{ type: 'bool' }],
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
name: 'decodeVirtualAddress',
|
|
1292
|
+
type: 'function',
|
|
1293
|
+
stateMutability: 'pure',
|
|
1294
|
+
inputs: [{ type: 'address', name: 'addr' }],
|
|
1295
|
+
outputs: [
|
|
1296
|
+
{ type: 'bool', name: 'isVirtual' },
|
|
1297
|
+
{ type: 'bytes4', name: 'masterId' },
|
|
1298
|
+
{ type: 'bytes6', name: 'userTag' },
|
|
1299
|
+
],
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
name: 'MasterRegistered',
|
|
1303
|
+
type: 'event',
|
|
1304
|
+
inputs: [
|
|
1305
|
+
{ type: 'bytes4', name: 'masterId', indexed: true },
|
|
1306
|
+
{ type: 'address', name: 'masterAddress', indexed: true },
|
|
1307
|
+
],
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
name: 'MasterIdCollision',
|
|
1311
|
+
type: 'error',
|
|
1312
|
+
inputs: [{ type: 'address', name: 'master' }],
|
|
1313
|
+
},
|
|
1314
|
+
{ name: 'InvalidMasterAddress', type: 'error', inputs: [] },
|
|
1315
|
+
{ name: 'ProofOfWorkFailed', type: 'error', inputs: [] },
|
|
1316
|
+
{ name: 'VirtualAddressUnregistered', type: 'error', inputs: [] },
|
|
1317
|
+
];
|
|
845
1318
|
exports.feeManager = [
|
|
846
1319
|
{
|
|
847
1320
|
name: 'userTokens',
|
|
@@ -1119,6 +1592,49 @@ exports.accountKeychain = [
|
|
|
1119
1592
|
],
|
|
1120
1593
|
outputs: [],
|
|
1121
1594
|
},
|
|
1595
|
+
{
|
|
1596
|
+
name: 'authorizeKey',
|
|
1597
|
+
type: 'function',
|
|
1598
|
+
stateMutability: 'nonpayable',
|
|
1599
|
+
inputs: [
|
|
1600
|
+
{ type: 'address', name: 'keyId' },
|
|
1601
|
+
{ type: 'uint8', name: 'signatureType' },
|
|
1602
|
+
{
|
|
1603
|
+
type: 'tuple',
|
|
1604
|
+
name: 'config',
|
|
1605
|
+
components: [
|
|
1606
|
+
{ type: 'uint64', name: 'expiry' },
|
|
1607
|
+
{ type: 'bool', name: 'enforceLimits' },
|
|
1608
|
+
{
|
|
1609
|
+
type: 'tuple[]',
|
|
1610
|
+
name: 'limits',
|
|
1611
|
+
components: [
|
|
1612
|
+
{ type: 'address', name: 'token' },
|
|
1613
|
+
{ type: 'uint256', name: 'amount' },
|
|
1614
|
+
{ type: 'uint64', name: 'period' },
|
|
1615
|
+
],
|
|
1616
|
+
},
|
|
1617
|
+
{ type: 'bool', name: 'allowAnyCalls' },
|
|
1618
|
+
{
|
|
1619
|
+
type: 'tuple[]',
|
|
1620
|
+
name: 'allowedCalls',
|
|
1621
|
+
components: [
|
|
1622
|
+
{ type: 'address', name: 'target' },
|
|
1623
|
+
{
|
|
1624
|
+
type: 'tuple[]',
|
|
1625
|
+
name: 'selectorRules',
|
|
1626
|
+
components: [
|
|
1627
|
+
{ type: 'bytes4', name: 'selector' },
|
|
1628
|
+
{ type: 'address[]', name: 'recipients' },
|
|
1629
|
+
],
|
|
1630
|
+
},
|
|
1631
|
+
],
|
|
1632
|
+
},
|
|
1633
|
+
],
|
|
1634
|
+
},
|
|
1635
|
+
],
|
|
1636
|
+
outputs: [],
|
|
1637
|
+
},
|
|
1122
1638
|
{
|
|
1123
1639
|
name: 'revokeKey',
|
|
1124
1640
|
type: 'function',
|
|
@@ -1137,6 +1653,40 @@ exports.accountKeychain = [
|
|
|
1137
1653
|
],
|
|
1138
1654
|
outputs: [],
|
|
1139
1655
|
},
|
|
1656
|
+
{
|
|
1657
|
+
name: 'setAllowedCalls',
|
|
1658
|
+
type: 'function',
|
|
1659
|
+
stateMutability: 'nonpayable',
|
|
1660
|
+
inputs: [
|
|
1661
|
+
{ type: 'address', name: 'keyId' },
|
|
1662
|
+
{
|
|
1663
|
+
type: 'tuple[]',
|
|
1664
|
+
name: 'scopes',
|
|
1665
|
+
components: [
|
|
1666
|
+
{ type: 'address', name: 'target' },
|
|
1667
|
+
{
|
|
1668
|
+
type: 'tuple[]',
|
|
1669
|
+
name: 'selectorRules',
|
|
1670
|
+
components: [
|
|
1671
|
+
{ type: 'bytes4', name: 'selector' },
|
|
1672
|
+
{ type: 'address[]', name: 'recipients' },
|
|
1673
|
+
],
|
|
1674
|
+
},
|
|
1675
|
+
],
|
|
1676
|
+
},
|
|
1677
|
+
],
|
|
1678
|
+
outputs: [],
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
name: 'removeAllowedCalls',
|
|
1682
|
+
type: 'function',
|
|
1683
|
+
stateMutability: 'nonpayable',
|
|
1684
|
+
inputs: [
|
|
1685
|
+
{ type: 'address', name: 'keyId' },
|
|
1686
|
+
{ type: 'address', name: 'target' },
|
|
1687
|
+
],
|
|
1688
|
+
outputs: [],
|
|
1689
|
+
},
|
|
1140
1690
|
{
|
|
1141
1691
|
name: 'getKey',
|
|
1142
1692
|
type: 'function',
|
|
@@ -1167,7 +1717,48 @@ exports.accountKeychain = [
|
|
|
1167
1717
|
{ type: 'address', name: 'keyId' },
|
|
1168
1718
|
{ type: 'address', name: 'token' },
|
|
1169
1719
|
],
|
|
1170
|
-
outputs: [{ type: 'uint256' }],
|
|
1720
|
+
outputs: [{ type: 'uint256', name: 'remaining' }],
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
name: 'getRemainingLimitWithPeriod',
|
|
1724
|
+
type: 'function',
|
|
1725
|
+
stateMutability: 'view',
|
|
1726
|
+
inputs: [
|
|
1727
|
+
{ type: 'address', name: 'account' },
|
|
1728
|
+
{ type: 'address', name: 'keyId' },
|
|
1729
|
+
{ type: 'address', name: 'token' },
|
|
1730
|
+
],
|
|
1731
|
+
outputs: [
|
|
1732
|
+
{ type: 'uint256', name: 'remaining' },
|
|
1733
|
+
{ type: 'uint64', name: 'periodEnd' },
|
|
1734
|
+
],
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: 'getAllowedCalls',
|
|
1738
|
+
type: 'function',
|
|
1739
|
+
stateMutability: 'view',
|
|
1740
|
+
inputs: [
|
|
1741
|
+
{ type: 'address', name: 'account' },
|
|
1742
|
+
{ type: 'address', name: 'keyId' },
|
|
1743
|
+
],
|
|
1744
|
+
outputs: [
|
|
1745
|
+
{ type: 'bool', name: 'isScoped' },
|
|
1746
|
+
{
|
|
1747
|
+
type: 'tuple[]',
|
|
1748
|
+
name: 'scopes',
|
|
1749
|
+
components: [
|
|
1750
|
+
{ type: 'address', name: 'target' },
|
|
1751
|
+
{
|
|
1752
|
+
type: 'tuple[]',
|
|
1753
|
+
name: 'selectorRules',
|
|
1754
|
+
components: [
|
|
1755
|
+
{ type: 'bytes4', name: 'selector' },
|
|
1756
|
+
{ type: 'address[]', name: 'recipients' },
|
|
1757
|
+
],
|
|
1758
|
+
},
|
|
1759
|
+
],
|
|
1760
|
+
},
|
|
1761
|
+
],
|
|
1171
1762
|
},
|
|
1172
1763
|
{
|
|
1173
1764
|
name: 'getTransactionKey',
|
|
@@ -1204,15 +1795,42 @@ exports.accountKeychain = [
|
|
|
1204
1795
|
{ type: 'uint256', name: 'newLimit' },
|
|
1205
1796
|
],
|
|
1206
1797
|
},
|
|
1798
|
+
{
|
|
1799
|
+
name: 'AccessKeySpend',
|
|
1800
|
+
type: 'event',
|
|
1801
|
+
inputs: [
|
|
1802
|
+
{ type: 'address', name: 'account', indexed: true },
|
|
1803
|
+
{ type: 'address', name: 'publicKey', indexed: true },
|
|
1804
|
+
{ type: 'address', name: 'token', indexed: true },
|
|
1805
|
+
{ type: 'uint256', name: 'amount' },
|
|
1806
|
+
{ type: 'uint256', name: 'remainingLimit' },
|
|
1807
|
+
],
|
|
1808
|
+
},
|
|
1207
1809
|
{ name: 'UnauthorizedCaller', type: 'error', inputs: [] },
|
|
1208
1810
|
{ name: 'KeyAlreadyExists', type: 'error', inputs: [] },
|
|
1209
1811
|
{ name: 'KeyNotFound', type: 'error', inputs: [] },
|
|
1210
1812
|
{ name: 'KeyExpired', type: 'error', inputs: [] },
|
|
1211
1813
|
{ name: 'SpendingLimitExceeded', type: 'error', inputs: [] },
|
|
1814
|
+
{ name: 'InvalidSpendingLimit', type: 'error', inputs: [] },
|
|
1212
1815
|
{ name: 'InvalidSignatureType', type: 'error', inputs: [] },
|
|
1213
1816
|
{ name: 'ZeroPublicKey', type: 'error', inputs: [] },
|
|
1214
1817
|
{ name: 'ExpiryInPast', type: 'error', inputs: [] },
|
|
1215
1818
|
{ name: 'KeyAlreadyRevoked', type: 'error', inputs: [] },
|
|
1819
|
+
{
|
|
1820
|
+
name: 'SignatureTypeMismatch',
|
|
1821
|
+
type: 'error',
|
|
1822
|
+
inputs: [
|
|
1823
|
+
{ type: 'uint8', name: 'expected' },
|
|
1824
|
+
{ type: 'uint8', name: 'actual' },
|
|
1825
|
+
],
|
|
1826
|
+
},
|
|
1827
|
+
{ name: 'CallNotAllowed', type: 'error', inputs: [] },
|
|
1828
|
+
{ name: 'InvalidCallScope', type: 'error', inputs: [] },
|
|
1829
|
+
{
|
|
1830
|
+
name: 'LegacyAuthorizeKeySelectorChanged',
|
|
1831
|
+
type: 'error',
|
|
1832
|
+
inputs: [{ type: 'bytes4', name: 'newSelector' }],
|
|
1833
|
+
},
|
|
1216
1834
|
];
|
|
1217
1835
|
exports.nonce = [
|
|
1218
1836
|
{
|
|
@@ -1237,6 +1855,9 @@ exports.nonce = [
|
|
|
1237
1855
|
{ name: 'ProtocolNonceNotSupported', type: 'error', inputs: [] },
|
|
1238
1856
|
{ name: 'InvalidNonceKey', type: 'error', inputs: [] },
|
|
1239
1857
|
{ name: 'NonceOverflow', type: 'error', inputs: [] },
|
|
1858
|
+
{ name: 'ExpiringNonceReplay', type: 'error', inputs: [] },
|
|
1859
|
+
{ name: 'ExpiringNonceSetFull', type: 'error', inputs: [] },
|
|
1860
|
+
{ name: 'InvalidExpiringNonceExpiry', type: 'error', inputs: [] },
|
|
1240
1861
|
];
|
|
1241
1862
|
exports.tip20Factory = [
|
|
1242
1863
|
{
|
|
@@ -1327,6 +1948,47 @@ exports.tip403Registry = [
|
|
|
1327
1948
|
],
|
|
1328
1949
|
outputs: [{ type: 'bool' }],
|
|
1329
1950
|
},
|
|
1951
|
+
{
|
|
1952
|
+
name: 'isAuthorizedSender',
|
|
1953
|
+
type: 'function',
|
|
1954
|
+
stateMutability: 'view',
|
|
1955
|
+
inputs: [
|
|
1956
|
+
{ type: 'uint64', name: 'policyId' },
|
|
1957
|
+
{ type: 'address', name: 'user' },
|
|
1958
|
+
],
|
|
1959
|
+
outputs: [{ type: 'bool' }],
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
name: 'isAuthorizedRecipient',
|
|
1963
|
+
type: 'function',
|
|
1964
|
+
stateMutability: 'view',
|
|
1965
|
+
inputs: [
|
|
1966
|
+
{ type: 'uint64', name: 'policyId' },
|
|
1967
|
+
{ type: 'address', name: 'user' },
|
|
1968
|
+
],
|
|
1969
|
+
outputs: [{ type: 'bool' }],
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
name: 'isAuthorizedMintRecipient',
|
|
1973
|
+
type: 'function',
|
|
1974
|
+
stateMutability: 'view',
|
|
1975
|
+
inputs: [
|
|
1976
|
+
{ type: 'uint64', name: 'policyId' },
|
|
1977
|
+
{ type: 'address', name: 'user' },
|
|
1978
|
+
],
|
|
1979
|
+
outputs: [{ type: 'bool' }],
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
name: 'compoundPolicyData',
|
|
1983
|
+
type: 'function',
|
|
1984
|
+
stateMutability: 'view',
|
|
1985
|
+
inputs: [{ type: 'uint64', name: 'policyId' }],
|
|
1986
|
+
outputs: [
|
|
1987
|
+
{ type: 'uint64', name: 'senderPolicyId' },
|
|
1988
|
+
{ type: 'uint64', name: 'recipientPolicyId' },
|
|
1989
|
+
{ type: 'uint64', name: 'mintRecipientPolicyId' },
|
|
1990
|
+
],
|
|
1991
|
+
},
|
|
1330
1992
|
{
|
|
1331
1993
|
name: 'createPolicy',
|
|
1332
1994
|
type: 'function',
|
|
@@ -1380,6 +2042,17 @@ exports.tip403Registry = [
|
|
|
1380
2042
|
],
|
|
1381
2043
|
outputs: [],
|
|
1382
2044
|
},
|
|
2045
|
+
{
|
|
2046
|
+
name: 'createCompoundPolicy',
|
|
2047
|
+
type: 'function',
|
|
2048
|
+
stateMutability: 'nonpayable',
|
|
2049
|
+
inputs: [
|
|
2050
|
+
{ type: 'uint64', name: 'senderPolicyId' },
|
|
2051
|
+
{ type: 'uint64', name: 'recipientPolicyId' },
|
|
2052
|
+
{ type: 'uint64', name: 'mintRecipientPolicyId' },
|
|
2053
|
+
],
|
|
2054
|
+
outputs: [{ type: 'uint64' }],
|
|
2055
|
+
},
|
|
1383
2056
|
{
|
|
1384
2057
|
name: 'PolicyAdminUpdated',
|
|
1385
2058
|
type: 'event',
|
|
@@ -1418,11 +2091,25 @@ exports.tip403Registry = [
|
|
|
1418
2091
|
{ type: 'bool', name: 'restricted' },
|
|
1419
2092
|
],
|
|
1420
2093
|
},
|
|
2094
|
+
{
|
|
2095
|
+
name: 'CompoundPolicyCreated',
|
|
2096
|
+
type: 'event',
|
|
2097
|
+
inputs: [
|
|
2098
|
+
{ type: 'uint64', name: 'policyId', indexed: true },
|
|
2099
|
+
{ type: 'address', name: 'creator', indexed: true },
|
|
2100
|
+
{ type: 'uint64', name: 'senderPolicyId' },
|
|
2101
|
+
{ type: 'uint64', name: 'recipientPolicyId' },
|
|
2102
|
+
{ type: 'uint64', name: 'mintRecipientPolicyId' },
|
|
2103
|
+
],
|
|
2104
|
+
},
|
|
1421
2105
|
{ name: 'Unauthorized', type: 'error', inputs: [] },
|
|
1422
|
-
{ name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
|
|
1423
2106
|
{ name: 'PolicyNotFound', type: 'error', inputs: [] },
|
|
2107
|
+
{ name: 'PolicyNotSimple', type: 'error', inputs: [] },
|
|
2108
|
+
{ name: 'InvalidPolicyType', type: 'error', inputs: [] },
|
|
2109
|
+
{ name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
|
|
2110
|
+
{ name: 'VirtualAddressNotAllowed', type: 'error', inputs: [] },
|
|
1424
2111
|
];
|
|
1425
|
-
exports.
|
|
2112
|
+
exports.validatorConfig = [
|
|
1426
2113
|
{
|
|
1427
2114
|
name: 'getValidators',
|
|
1428
2115
|
type: 'function',
|
|
@@ -1478,6 +2165,16 @@ exports.validator = [
|
|
|
1478
2165
|
],
|
|
1479
2166
|
outputs: [],
|
|
1480
2167
|
},
|
|
2168
|
+
{
|
|
2169
|
+
name: 'changeValidatorStatusByIndex',
|
|
2170
|
+
type: 'function',
|
|
2171
|
+
stateMutability: 'nonpayable',
|
|
2172
|
+
inputs: [
|
|
2173
|
+
{ type: 'uint64', name: 'index' },
|
|
2174
|
+
{ type: 'bool', name: 'active' },
|
|
2175
|
+
],
|
|
2176
|
+
outputs: [],
|
|
2177
|
+
},
|
|
1481
2178
|
{
|
|
1482
2179
|
name: 'owner',
|
|
1483
2180
|
type: 'function',
|