@moonbeam-network/xcm-builder 1.0.0-dev.268 → 1.0.0-dev.269
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/build/index.d.ts +33 -1188
- package/build/index.mjs +211 -1262
- package/build/index.mjs.map +1 -1
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Chain, AnyParachain, AssetAmount, ChainAssetId, ChainAsset, AnyChain } from '@moonbeam-network/xcm-types';
|
|
1
|
+
import { Chain, AnyParachain, AssetAmount, ChainAssetId, ChainAsset, AnyChain, EvmParachain } from '@moonbeam-network/xcm-types';
|
|
2
2
|
import { ApiPromise } from '@polkadot/api';
|
|
3
3
|
import { FrameSystemAccountInfo, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
4
4
|
import { Struct, u128, Enum } from '@polkadot/types';
|
|
@@ -32,18 +32,15 @@ declare class BaseConfig {
|
|
|
32
32
|
constructor({ module, func }: BaseConfigConstructorParams);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
type QueryType = 'query' | 'call';
|
|
36
35
|
interface QueryConfigConstructorParams extends BaseConfigConstructorParams {
|
|
37
|
-
queryType?: QueryType;
|
|
38
36
|
args?: unknown[];
|
|
39
37
|
transform: (data: any) => Promise<bigint>;
|
|
40
38
|
}
|
|
41
39
|
declare class SubstrateQueryConfig extends BaseConfig {
|
|
42
40
|
readonly args: unknown[];
|
|
43
|
-
readonly queryType: QueryType;
|
|
44
41
|
readonly transform: (data: unknown) => Promise<bigint>;
|
|
45
42
|
static is(obj: unknown): obj is SubstrateQueryConfig;
|
|
46
|
-
constructor({ args, transform,
|
|
43
|
+
constructor({ args, transform, ...other }: QueryConfigConstructorParams);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
type AssetMinConfigBuilder = ConfigBuilder<SubstrateQueryConfig, AssetMinConfigBuilderParams>;
|
|
@@ -72,16 +69,14 @@ declare function foreignAssets$1(): {
|
|
|
72
69
|
interface ContractConfigConstructorParams extends BaseConfigConstructorParams {
|
|
73
70
|
address: string;
|
|
74
71
|
abi: Abi;
|
|
75
|
-
args:
|
|
76
|
-
value?: bigint;
|
|
72
|
+
args: any[];
|
|
77
73
|
}
|
|
78
74
|
declare class ContractConfig extends BaseConfig {
|
|
79
75
|
readonly address: string;
|
|
80
76
|
readonly abi: Abi;
|
|
81
|
-
readonly args:
|
|
82
|
-
readonly value?: bigint;
|
|
77
|
+
readonly args: any[];
|
|
83
78
|
static is(obj: unknown): obj is ContractConfig;
|
|
84
|
-
constructor({ address, abi, args,
|
|
79
|
+
constructor({ address, abi, args, ...other }: ContractConfigConstructorParams);
|
|
85
80
|
encodeFunctionData(): `0x${string}`;
|
|
86
81
|
}
|
|
87
82
|
|
|
@@ -448,7 +443,7 @@ declare function polkadotXcm$1(): {
|
|
|
448
443
|
};
|
|
449
444
|
};
|
|
450
445
|
|
|
451
|
-
declare function xcmPallet
|
|
446
|
+
declare function xcmPallet(): {
|
|
452
447
|
limitedReserveTransferAssets: (parents?: Parents) => {
|
|
453
448
|
here: () => ExtrinsicConfigBuilder;
|
|
454
449
|
};
|
|
@@ -479,7 +474,7 @@ declare function ExtrinsicBuilder(): {
|
|
|
479
474
|
xTokens: typeof xTokens;
|
|
480
475
|
xTransfer: typeof xTransfer;
|
|
481
476
|
polkadotXcm: typeof polkadotXcm$1;
|
|
482
|
-
xcmPallet: typeof xcmPallet
|
|
477
|
+
xcmPallet: typeof xcmPallet;
|
|
483
478
|
};
|
|
484
479
|
|
|
485
480
|
interface SubstrateCallConfigConstructorParams {
|
|
@@ -493,24 +488,15 @@ declare class SubstrateCallConfig {
|
|
|
493
488
|
constructor({ api, call }: SubstrateCallConfigConstructorParams);
|
|
494
489
|
}
|
|
495
490
|
|
|
496
|
-
type FeeConfigBuilder = ConfigBuilder<SubstrateCallConfig
|
|
497
|
-
type BridgeFeeConfigBuilder = ConfigBuilder<SubstrateQueryConfig | ContractConfig, BridgeFeeConfigBuilderParams>;
|
|
491
|
+
type FeeConfigBuilder = ConfigBuilder<SubstrateCallConfig, FeeConfigBuilderParams>;
|
|
498
492
|
interface FeeConfigBuilderParams {
|
|
499
493
|
address: string;
|
|
500
494
|
api: ApiPromise;
|
|
501
495
|
asset: ChainAsset;
|
|
502
|
-
|
|
503
|
-
destination: AnyChain;
|
|
496
|
+
destination: AnyParachain;
|
|
504
497
|
feeAsset: ChainAsset;
|
|
505
498
|
source: AnyChain;
|
|
506
499
|
}
|
|
507
|
-
interface BridgeFeeConfigBuilderParams {
|
|
508
|
-
asset: ChainAsset;
|
|
509
|
-
address: string;
|
|
510
|
-
balance?: AssetAmount;
|
|
511
|
-
destination: AnyChain;
|
|
512
|
-
source: AnyChain;
|
|
513
|
-
}
|
|
514
500
|
interface XcmPaymentFeeProps {
|
|
515
501
|
isAssetReserveChain: boolean;
|
|
516
502
|
shouldTransferAssetPrecedeFeeAsset?: boolean;
|
|
@@ -524,14 +510,6 @@ interface MoonbeamRuntimeXcmConfigAssetType extends Enum {
|
|
|
524
510
|
}
|
|
525
511
|
type GetVersionedAssetId = (params: FeeConfigBuilderParams) => Promise<object> | object;
|
|
526
512
|
|
|
527
|
-
declare function gateway(): {
|
|
528
|
-
quoteSendTokenFee(): BridgeFeeConfigBuilder;
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
declare function outboundQueueApi(): {
|
|
532
|
-
calculateFee: () => BridgeFeeConfigBuilder;
|
|
533
|
-
};
|
|
534
|
-
|
|
535
513
|
declare function xcmPaymentApi(): {
|
|
536
514
|
fromCurrencyIdToLocations: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
537
515
|
fromAssetIdQuery: (options: XcmPaymentFeeProps) => FeeConfigBuilder;
|
|
@@ -548,8 +526,6 @@ declare function xcmPaymentApi(): {
|
|
|
548
526
|
};
|
|
549
527
|
|
|
550
528
|
declare function FeeBuilder(): {
|
|
551
|
-
gateway: typeof gateway;
|
|
552
|
-
outboundQueueApi: typeof outboundQueueApi;
|
|
553
529
|
xcmPaymentApi: typeof xcmPaymentApi;
|
|
554
530
|
};
|
|
555
531
|
|
|
@@ -599,1125 +575,29 @@ interface EventMonitoringConfig {
|
|
|
599
575
|
checkDestination: DestinationChecker;
|
|
600
576
|
}
|
|
601
577
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
578
|
+
declare enum Protocols {
|
|
579
|
+
TokenBridge = "TokenBridge",
|
|
580
|
+
AutomaticTokenBridge = "AutomaticTokenBridge",
|
|
581
|
+
ExecutorTokenBridge = "ExecutorTokenBridge"
|
|
582
|
+
}
|
|
583
|
+
type WormholeTransferFunctions = 'tokenTransfer';
|
|
584
|
+
interface WormholeFunctionArgs {
|
|
585
|
+
token: TokenId;
|
|
607
586
|
amount: bigint;
|
|
608
|
-
|
|
609
|
-
|
|
587
|
+
from: ChainAddress;
|
|
588
|
+
to: ChainAddress;
|
|
589
|
+
protocol: TokenTransfer.Protocol;
|
|
590
|
+
payload?: Uint8Array;
|
|
610
591
|
}
|
|
611
|
-
interface
|
|
612
|
-
args:
|
|
613
|
-
func:
|
|
592
|
+
interface WormholeConfigConstructorParams {
|
|
593
|
+
args: WormholeFunctionArgs;
|
|
594
|
+
func: WormholeTransferFunctions;
|
|
614
595
|
}
|
|
615
|
-
declare class
|
|
616
|
-
readonly args:
|
|
617
|
-
readonly func:
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
constructor({ args, func }: SnowbridgeConfigConstructorParams);
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
declare const GATEWAY_ABI: readonly [{
|
|
624
|
-
readonly inputs: readonly [{
|
|
625
|
-
readonly internalType: "address";
|
|
626
|
-
readonly name: "beefyClient";
|
|
627
|
-
readonly type: "address";
|
|
628
|
-
}, {
|
|
629
|
-
readonly internalType: "address";
|
|
630
|
-
readonly name: "agentExecutor";
|
|
631
|
-
readonly type: "address";
|
|
632
|
-
}, {
|
|
633
|
-
readonly internalType: "ParaID";
|
|
634
|
-
readonly name: "bridgeHubParaID";
|
|
635
|
-
readonly type: "uint32";
|
|
636
|
-
}, {
|
|
637
|
-
readonly internalType: "bytes32";
|
|
638
|
-
readonly name: "bridgeHubAgentID";
|
|
639
|
-
readonly type: "bytes32";
|
|
640
|
-
}, {
|
|
641
|
-
readonly internalType: "uint8";
|
|
642
|
-
readonly name: "foreignTokenDecimals";
|
|
643
|
-
readonly type: "uint8";
|
|
644
|
-
}, {
|
|
645
|
-
readonly internalType: "uint128";
|
|
646
|
-
readonly name: "maxDestinationFee";
|
|
647
|
-
readonly type: "uint128";
|
|
648
|
-
}];
|
|
649
|
-
readonly stateMutability: "nonpayable";
|
|
650
|
-
readonly type: "constructor";
|
|
651
|
-
}, {
|
|
652
|
-
readonly inputs: readonly [];
|
|
653
|
-
readonly name: "AgentAlreadyCreated";
|
|
654
|
-
readonly type: "error";
|
|
655
|
-
}, {
|
|
656
|
-
readonly inputs: readonly [];
|
|
657
|
-
readonly name: "AgentDoesNotExist";
|
|
658
|
-
readonly type: "error";
|
|
659
|
-
}, {
|
|
660
|
-
readonly inputs: readonly [];
|
|
661
|
-
readonly name: "CantSetMiddlewareToSameAddress";
|
|
662
|
-
readonly type: "error";
|
|
663
|
-
}, {
|
|
664
|
-
readonly inputs: readonly [];
|
|
665
|
-
readonly name: "CantSetMiddlewareToZeroAddress";
|
|
666
|
-
readonly type: "error";
|
|
667
|
-
}, {
|
|
668
|
-
readonly inputs: readonly [];
|
|
669
|
-
readonly name: "ChannelAlreadyCreated";
|
|
670
|
-
readonly type: "error";
|
|
671
|
-
}, {
|
|
672
|
-
readonly inputs: readonly [];
|
|
673
|
-
readonly name: "ChannelDoesNotExist";
|
|
674
|
-
readonly type: "error";
|
|
675
|
-
}, {
|
|
676
|
-
readonly inputs: readonly [];
|
|
677
|
-
readonly name: "Disabled";
|
|
678
|
-
readonly type: "error";
|
|
679
|
-
}, {
|
|
680
|
-
readonly inputs: readonly [{
|
|
681
|
-
readonly internalType: "uint256";
|
|
682
|
-
readonly name: "epoch";
|
|
683
|
-
readonly type: "uint256";
|
|
684
|
-
}, {
|
|
685
|
-
readonly internalType: "uint256";
|
|
686
|
-
readonly name: "eraIndex";
|
|
687
|
-
readonly type: "uint256";
|
|
688
|
-
}, {
|
|
689
|
-
readonly internalType: "address";
|
|
690
|
-
readonly name: "tokenAddress";
|
|
691
|
-
readonly type: "address";
|
|
692
|
-
}, {
|
|
693
|
-
readonly internalType: "uint256";
|
|
694
|
-
readonly name: "totalPointsToken";
|
|
695
|
-
readonly type: "uint256";
|
|
696
|
-
}, {
|
|
697
|
-
readonly internalType: "uint256";
|
|
698
|
-
readonly name: "totalTokensInflated";
|
|
699
|
-
readonly type: "uint256";
|
|
700
|
-
}, {
|
|
701
|
-
readonly internalType: "bytes32";
|
|
702
|
-
readonly name: "rewardsRoot";
|
|
703
|
-
readonly type: "bytes32";
|
|
704
|
-
}, {
|
|
705
|
-
readonly internalType: "bytes";
|
|
706
|
-
readonly name: "errorBytes";
|
|
707
|
-
readonly type: "bytes";
|
|
708
|
-
}];
|
|
709
|
-
readonly name: "EUnableToProcessRewardsB";
|
|
710
|
-
readonly type: "error";
|
|
711
|
-
}, {
|
|
712
|
-
readonly inputs: readonly [{
|
|
713
|
-
readonly internalType: "uint256";
|
|
714
|
-
readonly name: "epoch";
|
|
715
|
-
readonly type: "uint256";
|
|
716
|
-
}, {
|
|
717
|
-
readonly internalType: "uint256";
|
|
718
|
-
readonly name: "eraIndex";
|
|
719
|
-
readonly type: "uint256";
|
|
720
|
-
}, {
|
|
721
|
-
readonly internalType: "address";
|
|
722
|
-
readonly name: "tokenAddress";
|
|
723
|
-
readonly type: "address";
|
|
724
|
-
}, {
|
|
725
|
-
readonly internalType: "uint256";
|
|
726
|
-
readonly name: "totalPointsToken";
|
|
727
|
-
readonly type: "uint256";
|
|
728
|
-
}, {
|
|
729
|
-
readonly internalType: "uint256";
|
|
730
|
-
readonly name: "totalTokensInflated";
|
|
731
|
-
readonly type: "uint256";
|
|
732
|
-
}, {
|
|
733
|
-
readonly internalType: "bytes32";
|
|
734
|
-
readonly name: "rewardsRoot";
|
|
735
|
-
readonly type: "bytes32";
|
|
736
|
-
}, {
|
|
737
|
-
readonly internalType: "string";
|
|
738
|
-
readonly name: "errorString";
|
|
739
|
-
readonly type: "string";
|
|
740
|
-
}];
|
|
741
|
-
readonly name: "EUnableToProcessRewardsS";
|
|
742
|
-
readonly type: "error";
|
|
743
|
-
}, {
|
|
744
|
-
readonly inputs: readonly [];
|
|
745
|
-
readonly name: "FeePaymentToLow";
|
|
746
|
-
readonly type: "error";
|
|
747
|
-
}, {
|
|
748
|
-
readonly inputs: readonly [];
|
|
749
|
-
readonly name: "InvalidAgentExecutionPayload";
|
|
750
|
-
readonly type: "error";
|
|
751
|
-
}, {
|
|
752
|
-
readonly inputs: readonly [];
|
|
753
|
-
readonly name: "InvalidChannelUpdate";
|
|
754
|
-
readonly type: "error";
|
|
755
|
-
}, {
|
|
756
|
-
readonly inputs: readonly [];
|
|
757
|
-
readonly name: "InvalidCodeHash";
|
|
758
|
-
readonly type: "error";
|
|
759
|
-
}, {
|
|
760
|
-
readonly inputs: readonly [];
|
|
761
|
-
readonly name: "InvalidConstructorParams";
|
|
762
|
-
readonly type: "error";
|
|
763
|
-
}, {
|
|
764
|
-
readonly inputs: readonly [];
|
|
765
|
-
readonly name: "InvalidContract";
|
|
766
|
-
readonly type: "error";
|
|
767
|
-
}, {
|
|
768
|
-
readonly inputs: readonly [];
|
|
769
|
-
readonly name: "InvalidNonce";
|
|
770
|
-
readonly type: "error";
|
|
771
|
-
}, {
|
|
772
|
-
readonly inputs: readonly [];
|
|
773
|
-
readonly name: "InvalidProof";
|
|
774
|
-
readonly type: "error";
|
|
775
|
-
}, {
|
|
776
|
-
readonly inputs: readonly [];
|
|
777
|
-
readonly name: "MiddlewareNotSet";
|
|
778
|
-
readonly type: "error";
|
|
779
|
-
}, {
|
|
780
|
-
readonly inputs: readonly [];
|
|
781
|
-
readonly name: "NativeTransferFailed";
|
|
782
|
-
readonly type: "error";
|
|
783
|
-
}, {
|
|
784
|
-
readonly inputs: readonly [];
|
|
785
|
-
readonly name: "NotEnoughGas";
|
|
786
|
-
readonly type: "error";
|
|
787
|
-
}, {
|
|
788
|
-
readonly inputs: readonly [];
|
|
789
|
-
readonly name: "Operators__OperatorsKeysCannotBeEmpty";
|
|
790
|
-
readonly type: "error";
|
|
791
|
-
}, {
|
|
792
|
-
readonly inputs: readonly [];
|
|
793
|
-
readonly name: "Operators__OperatorsLengthTooLong";
|
|
794
|
-
readonly type: "error";
|
|
795
|
-
}, {
|
|
796
|
-
readonly inputs: readonly [{
|
|
797
|
-
readonly internalType: "uint256";
|
|
798
|
-
readonly name: "x";
|
|
799
|
-
readonly type: "uint256";
|
|
800
|
-
}, {
|
|
801
|
-
readonly internalType: "uint256";
|
|
802
|
-
readonly name: "y";
|
|
803
|
-
readonly type: "uint256";
|
|
804
|
-
}];
|
|
805
|
-
readonly name: "PRBMath_MulDiv18_Overflow";
|
|
806
|
-
readonly type: "error";
|
|
807
|
-
}, {
|
|
808
|
-
readonly inputs: readonly [{
|
|
809
|
-
readonly internalType: "uint256";
|
|
810
|
-
readonly name: "x";
|
|
811
|
-
readonly type: "uint256";
|
|
812
|
-
}, {
|
|
813
|
-
readonly internalType: "uint256";
|
|
814
|
-
readonly name: "y";
|
|
815
|
-
readonly type: "uint256";
|
|
816
|
-
}, {
|
|
817
|
-
readonly internalType: "uint256";
|
|
818
|
-
readonly name: "denominator";
|
|
819
|
-
readonly type: "uint256";
|
|
820
|
-
}];
|
|
821
|
-
readonly name: "PRBMath_MulDiv_Overflow";
|
|
822
|
-
readonly type: "error";
|
|
823
|
-
}, {
|
|
824
|
-
readonly inputs: readonly [{
|
|
825
|
-
readonly internalType: "uint256";
|
|
826
|
-
readonly name: "x";
|
|
827
|
-
readonly type: "uint256";
|
|
828
|
-
}];
|
|
829
|
-
readonly name: "PRBMath_UD60x18_Convert_Overflow";
|
|
830
|
-
readonly type: "error";
|
|
831
|
-
}, {
|
|
832
|
-
readonly inputs: readonly [{
|
|
833
|
-
readonly internalType: "UD60x18";
|
|
834
|
-
readonly name: "x";
|
|
835
|
-
readonly type: "uint256";
|
|
836
|
-
}];
|
|
837
|
-
readonly name: "PRBMath_UD60x18_Exp2_InputTooBig";
|
|
838
|
-
readonly type: "error";
|
|
839
|
-
}, {
|
|
840
|
-
readonly inputs: readonly [{
|
|
841
|
-
readonly internalType: "UD60x18";
|
|
842
|
-
readonly name: "x";
|
|
843
|
-
readonly type: "uint256";
|
|
844
|
-
}];
|
|
845
|
-
readonly name: "PRBMath_UD60x18_Log_InputTooSmall";
|
|
846
|
-
readonly type: "error";
|
|
847
|
-
}, {
|
|
848
|
-
readonly inputs: readonly [];
|
|
849
|
-
readonly name: "TokenNotRegistered";
|
|
850
|
-
readonly type: "error";
|
|
851
|
-
}, {
|
|
852
|
-
readonly inputs: readonly [];
|
|
853
|
-
readonly name: "Unauthorized";
|
|
854
|
-
readonly type: "error";
|
|
855
|
-
}, {
|
|
856
|
-
readonly anonymous: false;
|
|
857
|
-
readonly inputs: readonly [{
|
|
858
|
-
readonly indexed: false;
|
|
859
|
-
readonly internalType: "bytes32";
|
|
860
|
-
readonly name: "agentID";
|
|
861
|
-
readonly type: "bytes32";
|
|
862
|
-
}, {
|
|
863
|
-
readonly indexed: false;
|
|
864
|
-
readonly internalType: "address";
|
|
865
|
-
readonly name: "agent";
|
|
866
|
-
readonly type: "address";
|
|
867
|
-
}];
|
|
868
|
-
readonly name: "AgentCreated";
|
|
869
|
-
readonly type: "event";
|
|
870
|
-
}, {
|
|
871
|
-
readonly anonymous: false;
|
|
872
|
-
readonly inputs: readonly [{
|
|
873
|
-
readonly indexed: true;
|
|
874
|
-
readonly internalType: "bytes32";
|
|
875
|
-
readonly name: "agentID";
|
|
876
|
-
readonly type: "bytes32";
|
|
877
|
-
}, {
|
|
878
|
-
readonly indexed: true;
|
|
879
|
-
readonly internalType: "address";
|
|
880
|
-
readonly name: "recipient";
|
|
881
|
-
readonly type: "address";
|
|
882
|
-
}, {
|
|
883
|
-
readonly indexed: false;
|
|
884
|
-
readonly internalType: "uint256";
|
|
885
|
-
readonly name: "amount";
|
|
886
|
-
readonly type: "uint256";
|
|
887
|
-
}];
|
|
888
|
-
readonly name: "AgentFundsWithdrawn";
|
|
889
|
-
readonly type: "event";
|
|
890
|
-
}, {
|
|
891
|
-
readonly anonymous: false;
|
|
892
|
-
readonly inputs: readonly [{
|
|
893
|
-
readonly indexed: true;
|
|
894
|
-
readonly internalType: "ChannelID";
|
|
895
|
-
readonly name: "channelID";
|
|
896
|
-
readonly type: "bytes32";
|
|
897
|
-
}];
|
|
898
|
-
readonly name: "ChannelCreated";
|
|
899
|
-
readonly type: "event";
|
|
900
|
-
}, {
|
|
901
|
-
readonly anonymous: false;
|
|
902
|
-
readonly inputs: readonly [{
|
|
903
|
-
readonly indexed: true;
|
|
904
|
-
readonly internalType: "ChannelID";
|
|
905
|
-
readonly name: "channelID";
|
|
906
|
-
readonly type: "bytes32";
|
|
907
|
-
}];
|
|
908
|
-
readonly name: "ChannelUpdated";
|
|
909
|
-
readonly type: "event";
|
|
910
|
-
}, {
|
|
911
|
-
readonly anonymous: false;
|
|
912
|
-
readonly inputs: readonly [{
|
|
913
|
-
readonly indexed: true;
|
|
914
|
-
readonly internalType: "bytes32";
|
|
915
|
-
readonly name: "tokenID";
|
|
916
|
-
readonly type: "bytes32";
|
|
917
|
-
}, {
|
|
918
|
-
readonly indexed: false;
|
|
919
|
-
readonly internalType: "address";
|
|
920
|
-
readonly name: "token";
|
|
921
|
-
readonly type: "address";
|
|
922
|
-
}];
|
|
923
|
-
readonly name: "ForeignTokenRegistered";
|
|
924
|
-
readonly type: "event";
|
|
925
|
-
}, {
|
|
926
|
-
readonly anonymous: false;
|
|
927
|
-
readonly inputs: readonly [{
|
|
928
|
-
readonly indexed: true;
|
|
929
|
-
readonly internalType: "ChannelID";
|
|
930
|
-
readonly name: "channelID";
|
|
931
|
-
readonly type: "bytes32";
|
|
932
|
-
}, {
|
|
933
|
-
readonly indexed: false;
|
|
934
|
-
readonly internalType: "uint64";
|
|
935
|
-
readonly name: "nonce";
|
|
936
|
-
readonly type: "uint64";
|
|
937
|
-
}, {
|
|
938
|
-
readonly indexed: true;
|
|
939
|
-
readonly internalType: "bytes32";
|
|
940
|
-
readonly name: "messageID";
|
|
941
|
-
readonly type: "bytes32";
|
|
942
|
-
}, {
|
|
943
|
-
readonly indexed: false;
|
|
944
|
-
readonly internalType: "bool";
|
|
945
|
-
readonly name: "success";
|
|
946
|
-
readonly type: "bool";
|
|
947
|
-
}];
|
|
948
|
-
readonly name: "InboundMessageDispatched";
|
|
949
|
-
readonly type: "event";
|
|
950
|
-
}, {
|
|
951
|
-
readonly anonymous: false;
|
|
952
|
-
readonly inputs: readonly [{
|
|
953
|
-
readonly indexed: true;
|
|
954
|
-
readonly internalType: "address";
|
|
955
|
-
readonly name: "previousMiddleware";
|
|
956
|
-
readonly type: "address";
|
|
957
|
-
}, {
|
|
958
|
-
readonly indexed: true;
|
|
959
|
-
readonly internalType: "address";
|
|
960
|
-
readonly name: "newMiddleware";
|
|
961
|
-
readonly type: "address";
|
|
962
|
-
}];
|
|
963
|
-
readonly name: "MiddlewareChanged";
|
|
964
|
-
readonly type: "event";
|
|
965
|
-
}, {
|
|
966
|
-
readonly anonymous: false;
|
|
967
|
-
readonly inputs: readonly [{
|
|
968
|
-
readonly indexed: false;
|
|
969
|
-
readonly internalType: "enum OperatingMode";
|
|
970
|
-
readonly name: "mode";
|
|
971
|
-
readonly type: "uint8";
|
|
972
|
-
}];
|
|
973
|
-
readonly name: "OperatingModeChanged";
|
|
974
|
-
readonly type: "event";
|
|
975
|
-
}, {
|
|
976
|
-
readonly anonymous: false;
|
|
977
|
-
readonly inputs: readonly [{
|
|
978
|
-
readonly indexed: true;
|
|
979
|
-
readonly internalType: "uint256";
|
|
980
|
-
readonly name: "validatorsCount";
|
|
981
|
-
readonly type: "uint256";
|
|
982
|
-
}, {
|
|
983
|
-
readonly indexed: false;
|
|
984
|
-
readonly internalType: "bytes";
|
|
985
|
-
readonly name: "payload";
|
|
986
|
-
readonly type: "bytes";
|
|
987
|
-
}];
|
|
988
|
-
readonly name: "OperatorsDataCreated";
|
|
989
|
-
readonly type: "event";
|
|
990
|
-
}, {
|
|
991
|
-
readonly anonymous: false;
|
|
992
|
-
readonly inputs: readonly [{
|
|
993
|
-
readonly indexed: true;
|
|
994
|
-
readonly internalType: "ChannelID";
|
|
995
|
-
readonly name: "channelID";
|
|
996
|
-
readonly type: "bytes32";
|
|
997
|
-
}, {
|
|
998
|
-
readonly indexed: false;
|
|
999
|
-
readonly internalType: "uint64";
|
|
1000
|
-
readonly name: "nonce";
|
|
1001
|
-
readonly type: "uint64";
|
|
1002
|
-
}, {
|
|
1003
|
-
readonly indexed: true;
|
|
1004
|
-
readonly internalType: "bytes32";
|
|
1005
|
-
readonly name: "messageID";
|
|
1006
|
-
readonly type: "bytes32";
|
|
1007
|
-
}, {
|
|
1008
|
-
readonly indexed: false;
|
|
1009
|
-
readonly internalType: "bytes";
|
|
1010
|
-
readonly name: "payload";
|
|
1011
|
-
readonly type: "bytes";
|
|
1012
|
-
}];
|
|
1013
|
-
readonly name: "OutboundMessageAccepted";
|
|
1014
|
-
readonly type: "event";
|
|
1015
|
-
}, {
|
|
1016
|
-
readonly anonymous: false;
|
|
1017
|
-
readonly inputs: readonly [{
|
|
1018
|
-
readonly indexed: true;
|
|
1019
|
-
readonly internalType: "address";
|
|
1020
|
-
readonly name: "previousOwner";
|
|
1021
|
-
readonly type: "address";
|
|
1022
|
-
}, {
|
|
1023
|
-
readonly indexed: true;
|
|
1024
|
-
readonly internalType: "address";
|
|
1025
|
-
readonly name: "newOwner";
|
|
1026
|
-
readonly type: "address";
|
|
1027
|
-
}];
|
|
1028
|
-
readonly name: "OwnershipTransferred";
|
|
1029
|
-
readonly type: "event";
|
|
1030
|
-
}, {
|
|
1031
|
-
readonly anonymous: false;
|
|
1032
|
-
readonly inputs: readonly [];
|
|
1033
|
-
readonly name: "PricingParametersChanged";
|
|
1034
|
-
readonly type: "event";
|
|
1035
|
-
}, {
|
|
1036
|
-
readonly anonymous: false;
|
|
1037
|
-
readonly inputs: readonly [{
|
|
1038
|
-
readonly indexed: false;
|
|
1039
|
-
readonly internalType: "address";
|
|
1040
|
-
readonly name: "token";
|
|
1041
|
-
readonly type: "address";
|
|
1042
|
-
}];
|
|
1043
|
-
readonly name: "TokenRegistrationSent";
|
|
1044
|
-
readonly type: "event";
|
|
1045
|
-
}, {
|
|
1046
|
-
readonly anonymous: false;
|
|
1047
|
-
readonly inputs: readonly [{
|
|
1048
|
-
readonly indexed: true;
|
|
1049
|
-
readonly internalType: "address";
|
|
1050
|
-
readonly name: "token";
|
|
1051
|
-
readonly type: "address";
|
|
1052
|
-
}, {
|
|
1053
|
-
readonly indexed: true;
|
|
1054
|
-
readonly internalType: "address";
|
|
1055
|
-
readonly name: "sender";
|
|
1056
|
-
readonly type: "address";
|
|
1057
|
-
}, {
|
|
1058
|
-
readonly indexed: true;
|
|
1059
|
-
readonly internalType: "ParaID";
|
|
1060
|
-
readonly name: "destinationChain";
|
|
1061
|
-
readonly type: "uint32";
|
|
1062
|
-
}, {
|
|
1063
|
-
readonly components: readonly [{
|
|
1064
|
-
readonly internalType: "enum Kind";
|
|
1065
|
-
readonly name: "kind";
|
|
1066
|
-
readonly type: "uint8";
|
|
1067
|
-
}, {
|
|
1068
|
-
readonly internalType: "bytes";
|
|
1069
|
-
readonly name: "data";
|
|
1070
|
-
readonly type: "bytes";
|
|
1071
|
-
}];
|
|
1072
|
-
readonly indexed: false;
|
|
1073
|
-
readonly internalType: "struct MultiAddress";
|
|
1074
|
-
readonly name: "destinationAddress";
|
|
1075
|
-
readonly type: "tuple";
|
|
1076
|
-
}, {
|
|
1077
|
-
readonly indexed: false;
|
|
1078
|
-
readonly internalType: "uint128";
|
|
1079
|
-
readonly name: "amount";
|
|
1080
|
-
readonly type: "uint128";
|
|
1081
|
-
}];
|
|
1082
|
-
readonly name: "TokenSent";
|
|
1083
|
-
readonly type: "event";
|
|
1084
|
-
}, {
|
|
1085
|
-
readonly anonymous: false;
|
|
1086
|
-
readonly inputs: readonly [];
|
|
1087
|
-
readonly name: "TokenTransferFeesChanged";
|
|
1088
|
-
readonly type: "event";
|
|
1089
|
-
}, {
|
|
1090
|
-
readonly anonymous: false;
|
|
1091
|
-
readonly inputs: readonly [{
|
|
1092
|
-
readonly indexed: true;
|
|
1093
|
-
readonly internalType: "bytes32";
|
|
1094
|
-
readonly name: "operatorKey";
|
|
1095
|
-
readonly type: "bytes32";
|
|
1096
|
-
}, {
|
|
1097
|
-
readonly indexed: false;
|
|
1098
|
-
readonly internalType: "uint256";
|
|
1099
|
-
readonly name: "slashFranction";
|
|
1100
|
-
readonly type: "uint256";
|
|
1101
|
-
}, {
|
|
1102
|
-
readonly indexed: true;
|
|
1103
|
-
readonly internalType: "uint256";
|
|
1104
|
-
readonly name: "epoch";
|
|
1105
|
-
readonly type: "uint256";
|
|
1106
|
-
}, {
|
|
1107
|
-
readonly indexed: false;
|
|
1108
|
-
readonly internalType: "bytes";
|
|
1109
|
-
readonly name: "error";
|
|
1110
|
-
readonly type: "bytes";
|
|
1111
|
-
}];
|
|
1112
|
-
readonly name: "UnableToProcessIndividualSlashB";
|
|
1113
|
-
readonly type: "event";
|
|
1114
|
-
}, {
|
|
1115
|
-
readonly anonymous: false;
|
|
1116
|
-
readonly inputs: readonly [{
|
|
1117
|
-
readonly indexed: true;
|
|
1118
|
-
readonly internalType: "bytes32";
|
|
1119
|
-
readonly name: "operatorKey";
|
|
1120
|
-
readonly type: "bytes32";
|
|
1121
|
-
}, {
|
|
1122
|
-
readonly indexed: false;
|
|
1123
|
-
readonly internalType: "uint256";
|
|
1124
|
-
readonly name: "slashFranction";
|
|
1125
|
-
readonly type: "uint256";
|
|
1126
|
-
}, {
|
|
1127
|
-
readonly indexed: true;
|
|
1128
|
-
readonly internalType: "uint256";
|
|
1129
|
-
readonly name: "epoch";
|
|
1130
|
-
readonly type: "uint256";
|
|
1131
|
-
}, {
|
|
1132
|
-
readonly indexed: false;
|
|
1133
|
-
readonly internalType: "string";
|
|
1134
|
-
readonly name: "error";
|
|
1135
|
-
readonly type: "string";
|
|
1136
|
-
}];
|
|
1137
|
-
readonly name: "UnableToProcessIndividualSlashS";
|
|
1138
|
-
readonly type: "event";
|
|
1139
|
-
}, {
|
|
1140
|
-
readonly anonymous: false;
|
|
1141
|
-
readonly inputs: readonly [{
|
|
1142
|
-
readonly indexed: false;
|
|
1143
|
-
readonly internalType: "bytes";
|
|
1144
|
-
readonly name: "error";
|
|
1145
|
-
readonly type: "bytes";
|
|
1146
|
-
}];
|
|
1147
|
-
readonly name: "UnableToProcessRewardsMessageB";
|
|
1148
|
-
readonly type: "event";
|
|
1149
|
-
}, {
|
|
1150
|
-
readonly anonymous: false;
|
|
1151
|
-
readonly inputs: readonly [{
|
|
1152
|
-
readonly indexed: false;
|
|
1153
|
-
readonly internalType: "string";
|
|
1154
|
-
readonly name: "error";
|
|
1155
|
-
readonly type: "string";
|
|
1156
|
-
}];
|
|
1157
|
-
readonly name: "UnableToProcessRewardsMessageS";
|
|
1158
|
-
readonly type: "event";
|
|
1159
|
-
}, {
|
|
1160
|
-
readonly anonymous: false;
|
|
1161
|
-
readonly inputs: readonly [{
|
|
1162
|
-
readonly indexed: false;
|
|
1163
|
-
readonly internalType: "bytes";
|
|
1164
|
-
readonly name: "error";
|
|
1165
|
-
readonly type: "bytes";
|
|
1166
|
-
}];
|
|
1167
|
-
readonly name: "UnableToProcessSlashMessageB";
|
|
1168
|
-
readonly type: "event";
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly anonymous: false;
|
|
1171
|
-
readonly inputs: readonly [{
|
|
1172
|
-
readonly indexed: false;
|
|
1173
|
-
readonly internalType: "string";
|
|
1174
|
-
readonly name: "error";
|
|
1175
|
-
readonly type: "string";
|
|
1176
|
-
}];
|
|
1177
|
-
readonly name: "UnableToProcessSlashMessageS";
|
|
1178
|
-
readonly type: "event";
|
|
1179
|
-
}, {
|
|
1180
|
-
readonly anonymous: false;
|
|
1181
|
-
readonly inputs: readonly [{
|
|
1182
|
-
readonly indexed: true;
|
|
1183
|
-
readonly internalType: "address";
|
|
1184
|
-
readonly name: "implementation";
|
|
1185
|
-
readonly type: "address";
|
|
1186
|
-
}];
|
|
1187
|
-
readonly name: "Upgraded";
|
|
1188
|
-
readonly type: "event";
|
|
1189
|
-
}, {
|
|
1190
|
-
readonly inputs: readonly [];
|
|
1191
|
-
readonly name: "AGENT_EXECUTOR";
|
|
1192
|
-
readonly outputs: readonly [{
|
|
1193
|
-
readonly internalType: "address";
|
|
1194
|
-
readonly name: "";
|
|
1195
|
-
readonly type: "address";
|
|
1196
|
-
}];
|
|
1197
|
-
readonly stateMutability: "view";
|
|
1198
|
-
readonly type: "function";
|
|
1199
|
-
}, {
|
|
1200
|
-
readonly inputs: readonly [];
|
|
1201
|
-
readonly name: "BEEFY_CLIENT";
|
|
1202
|
-
readonly outputs: readonly [{
|
|
1203
|
-
readonly internalType: "address";
|
|
1204
|
-
readonly name: "";
|
|
1205
|
-
readonly type: "address";
|
|
1206
|
-
}];
|
|
1207
|
-
readonly stateMutability: "view";
|
|
1208
|
-
readonly type: "function";
|
|
1209
|
-
}, {
|
|
1210
|
-
readonly inputs: readonly [{
|
|
1211
|
-
readonly internalType: "bytes";
|
|
1212
|
-
readonly name: "data";
|
|
1213
|
-
readonly type: "bytes";
|
|
1214
|
-
}];
|
|
1215
|
-
readonly name: "agentExecute";
|
|
1216
|
-
readonly outputs: readonly [];
|
|
1217
|
-
readonly stateMutability: "nonpayable";
|
|
1218
|
-
readonly type: "function";
|
|
1219
|
-
}, {
|
|
1220
|
-
readonly inputs: readonly [{
|
|
1221
|
-
readonly internalType: "bytes32";
|
|
1222
|
-
readonly name: "agentID";
|
|
1223
|
-
readonly type: "bytes32";
|
|
1224
|
-
}];
|
|
1225
|
-
readonly name: "agentOf";
|
|
1226
|
-
readonly outputs: readonly [{
|
|
1227
|
-
readonly internalType: "address";
|
|
1228
|
-
readonly name: "";
|
|
1229
|
-
readonly type: "address";
|
|
1230
|
-
}];
|
|
1231
|
-
readonly stateMutability: "view";
|
|
1232
|
-
readonly type: "function";
|
|
1233
|
-
}, {
|
|
1234
|
-
readonly inputs: readonly [{
|
|
1235
|
-
readonly internalType: "ChannelID";
|
|
1236
|
-
readonly name: "channelID";
|
|
1237
|
-
readonly type: "bytes32";
|
|
1238
|
-
}];
|
|
1239
|
-
readonly name: "channelNoncesOf";
|
|
1240
|
-
readonly outputs: readonly [{
|
|
1241
|
-
readonly internalType: "uint64";
|
|
1242
|
-
readonly name: "";
|
|
1243
|
-
readonly type: "uint64";
|
|
1244
|
-
}, {
|
|
1245
|
-
readonly internalType: "uint64";
|
|
1246
|
-
readonly name: "";
|
|
1247
|
-
readonly type: "uint64";
|
|
1248
|
-
}];
|
|
1249
|
-
readonly stateMutability: "view";
|
|
1250
|
-
readonly type: "function";
|
|
1251
|
-
}, {
|
|
1252
|
-
readonly inputs: readonly [{
|
|
1253
|
-
readonly internalType: "ChannelID";
|
|
1254
|
-
readonly name: "channelID";
|
|
1255
|
-
readonly type: "bytes32";
|
|
1256
|
-
}];
|
|
1257
|
-
readonly name: "channelOperatingModeOf";
|
|
1258
|
-
readonly outputs: readonly [{
|
|
1259
|
-
readonly internalType: "enum OperatingMode";
|
|
1260
|
-
readonly name: "";
|
|
1261
|
-
readonly type: "uint8";
|
|
1262
|
-
}];
|
|
1263
|
-
readonly stateMutability: "view";
|
|
1264
|
-
readonly type: "function";
|
|
1265
|
-
}, {
|
|
1266
|
-
readonly inputs: readonly [{
|
|
1267
|
-
readonly internalType: "bytes";
|
|
1268
|
-
readonly name: "data";
|
|
1269
|
-
readonly type: "bytes";
|
|
1270
|
-
}];
|
|
1271
|
-
readonly name: "createAgent";
|
|
1272
|
-
readonly outputs: readonly [];
|
|
1273
|
-
readonly stateMutability: "nonpayable";
|
|
1274
|
-
readonly type: "function";
|
|
1275
|
-
}, {
|
|
1276
|
-
readonly inputs: readonly [{
|
|
1277
|
-
readonly internalType: "bytes";
|
|
1278
|
-
readonly name: "data";
|
|
1279
|
-
readonly type: "bytes";
|
|
1280
|
-
}];
|
|
1281
|
-
readonly name: "createChannel";
|
|
1282
|
-
readonly outputs: readonly [];
|
|
1283
|
-
readonly stateMutability: "nonpayable";
|
|
1284
|
-
readonly type: "function";
|
|
1285
|
-
}, {
|
|
1286
|
-
readonly inputs: readonly [];
|
|
1287
|
-
readonly name: "implementation";
|
|
1288
|
-
readonly outputs: readonly [{
|
|
1289
|
-
readonly internalType: "address";
|
|
1290
|
-
readonly name: "";
|
|
1291
|
-
readonly type: "address";
|
|
1292
|
-
}];
|
|
1293
|
-
readonly stateMutability: "view";
|
|
1294
|
-
readonly type: "function";
|
|
1295
|
-
}, {
|
|
1296
|
-
readonly inputs: readonly [{
|
|
1297
|
-
readonly internalType: "bytes";
|
|
1298
|
-
readonly name: "data";
|
|
1299
|
-
readonly type: "bytes";
|
|
1300
|
-
}];
|
|
1301
|
-
readonly name: "initialize";
|
|
1302
|
-
readonly outputs: readonly [];
|
|
1303
|
-
readonly stateMutability: "nonpayable";
|
|
1304
|
-
readonly type: "function";
|
|
1305
|
-
}, {
|
|
1306
|
-
readonly inputs: readonly [{
|
|
1307
|
-
readonly internalType: "address";
|
|
1308
|
-
readonly name: "token";
|
|
1309
|
-
readonly type: "address";
|
|
1310
|
-
}];
|
|
1311
|
-
readonly name: "isTokenRegistered";
|
|
1312
|
-
readonly outputs: readonly [{
|
|
1313
|
-
readonly internalType: "bool";
|
|
1314
|
-
readonly name: "";
|
|
1315
|
-
readonly type: "bool";
|
|
1316
|
-
}];
|
|
1317
|
-
readonly stateMutability: "view";
|
|
1318
|
-
readonly type: "function";
|
|
1319
|
-
}, {
|
|
1320
|
-
readonly inputs: readonly [{
|
|
1321
|
-
readonly internalType: "bytes";
|
|
1322
|
-
readonly name: "data";
|
|
1323
|
-
readonly type: "bytes";
|
|
1324
|
-
}];
|
|
1325
|
-
readonly name: "mintForeignToken";
|
|
1326
|
-
readonly outputs: readonly [];
|
|
1327
|
-
readonly stateMutability: "nonpayable";
|
|
1328
|
-
readonly type: "function";
|
|
1329
|
-
}, {
|
|
1330
|
-
readonly inputs: readonly [];
|
|
1331
|
-
readonly name: "operatingMode";
|
|
1332
|
-
readonly outputs: readonly [{
|
|
1333
|
-
readonly internalType: "enum OperatingMode";
|
|
1334
|
-
readonly name: "";
|
|
1335
|
-
readonly type: "uint8";
|
|
1336
|
-
}];
|
|
1337
|
-
readonly stateMutability: "view";
|
|
1338
|
-
readonly type: "function";
|
|
1339
|
-
}, {
|
|
1340
|
-
readonly inputs: readonly [];
|
|
1341
|
-
readonly name: "pricingParameters";
|
|
1342
|
-
readonly outputs: readonly [{
|
|
1343
|
-
readonly internalType: "UD60x18";
|
|
1344
|
-
readonly name: "";
|
|
1345
|
-
readonly type: "uint256";
|
|
1346
|
-
}, {
|
|
1347
|
-
readonly internalType: "uint128";
|
|
1348
|
-
readonly name: "";
|
|
1349
|
-
readonly type: "uint128";
|
|
1350
|
-
}];
|
|
1351
|
-
readonly stateMutability: "view";
|
|
1352
|
-
readonly type: "function";
|
|
1353
|
-
}, {
|
|
1354
|
-
readonly inputs: readonly [{
|
|
1355
|
-
readonly internalType: "address";
|
|
1356
|
-
readonly name: "token";
|
|
1357
|
-
readonly type: "address";
|
|
1358
|
-
}];
|
|
1359
|
-
readonly name: "queryForeignTokenID";
|
|
1360
|
-
readonly outputs: readonly [{
|
|
1361
|
-
readonly internalType: "bytes32";
|
|
1362
|
-
readonly name: "";
|
|
1363
|
-
readonly type: "bytes32";
|
|
1364
|
-
}];
|
|
1365
|
-
readonly stateMutability: "view";
|
|
1366
|
-
readonly type: "function";
|
|
1367
|
-
}, {
|
|
1368
|
-
readonly inputs: readonly [];
|
|
1369
|
-
readonly name: "quoteRegisterTokenFee";
|
|
1370
|
-
readonly outputs: readonly [{
|
|
1371
|
-
readonly internalType: "uint256";
|
|
1372
|
-
readonly name: "";
|
|
1373
|
-
readonly type: "uint256";
|
|
1374
|
-
}];
|
|
1375
|
-
readonly stateMutability: "view";
|
|
1376
|
-
readonly type: "function";
|
|
1377
|
-
}, {
|
|
1378
|
-
readonly inputs: readonly [{
|
|
1379
|
-
readonly internalType: "address";
|
|
1380
|
-
readonly name: "token";
|
|
1381
|
-
readonly type: "address";
|
|
1382
|
-
}, {
|
|
1383
|
-
readonly internalType: "ParaID";
|
|
1384
|
-
readonly name: "destinationChain";
|
|
1385
|
-
readonly type: "uint32";
|
|
1386
|
-
}, {
|
|
1387
|
-
readonly internalType: "uint128";
|
|
1388
|
-
readonly name: "destinationFee";
|
|
1389
|
-
readonly type: "uint128";
|
|
1390
|
-
}];
|
|
1391
|
-
readonly name: "quoteSendTokenFee";
|
|
1392
|
-
readonly outputs: readonly [{
|
|
1393
|
-
readonly internalType: "uint256";
|
|
1394
|
-
readonly name: "";
|
|
1395
|
-
readonly type: "uint256";
|
|
1396
|
-
}];
|
|
1397
|
-
readonly stateMutability: "view";
|
|
1398
|
-
readonly type: "function";
|
|
1399
|
-
}, {
|
|
1400
|
-
readonly inputs: readonly [{
|
|
1401
|
-
readonly internalType: "bytes";
|
|
1402
|
-
readonly name: "data";
|
|
1403
|
-
readonly type: "bytes";
|
|
1404
|
-
}];
|
|
1405
|
-
readonly name: "registerForeignToken";
|
|
1406
|
-
readonly outputs: readonly [];
|
|
1407
|
-
readonly stateMutability: "nonpayable";
|
|
1408
|
-
readonly type: "function";
|
|
1409
|
-
}, {
|
|
1410
|
-
readonly inputs: readonly [{
|
|
1411
|
-
readonly internalType: "address";
|
|
1412
|
-
readonly name: "token";
|
|
1413
|
-
readonly type: "address";
|
|
1414
|
-
}];
|
|
1415
|
-
readonly name: "registerToken";
|
|
1416
|
-
readonly outputs: readonly [];
|
|
1417
|
-
readonly stateMutability: "payable";
|
|
1418
|
-
readonly type: "function";
|
|
1419
|
-
}, {
|
|
1420
|
-
readonly inputs: readonly [{
|
|
1421
|
-
readonly internalType: "bytes";
|
|
1422
|
-
readonly name: "data";
|
|
1423
|
-
readonly type: "bytes";
|
|
1424
|
-
}];
|
|
1425
|
-
readonly name: "reportSlashes";
|
|
1426
|
-
readonly outputs: readonly [];
|
|
1427
|
-
readonly stateMutability: "nonpayable";
|
|
1428
|
-
readonly type: "function";
|
|
1429
|
-
}, {
|
|
1430
|
-
readonly inputs: readonly [];
|
|
1431
|
-
readonly name: "s_middleware";
|
|
1432
|
-
readonly outputs: readonly [{
|
|
1433
|
-
readonly internalType: "address";
|
|
1434
|
-
readonly name: "";
|
|
1435
|
-
readonly type: "address";
|
|
1436
|
-
}];
|
|
1437
|
-
readonly stateMutability: "view";
|
|
1438
|
-
readonly type: "function";
|
|
1439
|
-
}, {
|
|
1440
|
-
readonly inputs: readonly [{
|
|
1441
|
-
readonly internalType: "bytes32[]";
|
|
1442
|
-
readonly name: "data";
|
|
1443
|
-
readonly type: "bytes32[]";
|
|
1444
|
-
}, {
|
|
1445
|
-
readonly internalType: "uint48";
|
|
1446
|
-
readonly name: "epoch";
|
|
1447
|
-
readonly type: "uint48";
|
|
1448
|
-
}];
|
|
1449
|
-
readonly name: "sendOperatorsData";
|
|
1450
|
-
readonly outputs: readonly [];
|
|
1451
|
-
readonly stateMutability: "nonpayable";
|
|
1452
|
-
readonly type: "function";
|
|
1453
|
-
}, {
|
|
1454
|
-
readonly inputs: readonly [{
|
|
1455
|
-
readonly internalType: "bytes";
|
|
1456
|
-
readonly name: "data";
|
|
1457
|
-
readonly type: "bytes";
|
|
1458
|
-
}];
|
|
1459
|
-
readonly name: "sendRewards";
|
|
1460
|
-
readonly outputs: readonly [];
|
|
1461
|
-
readonly stateMutability: "nonpayable";
|
|
1462
|
-
readonly type: "function";
|
|
1463
|
-
}, {
|
|
1464
|
-
readonly inputs: readonly [{
|
|
1465
|
-
readonly internalType: "address";
|
|
1466
|
-
readonly name: "token";
|
|
1467
|
-
readonly type: "address";
|
|
1468
|
-
}, {
|
|
1469
|
-
readonly internalType: "ParaID";
|
|
1470
|
-
readonly name: "destinationChain";
|
|
1471
|
-
readonly type: "uint32";
|
|
1472
|
-
}, {
|
|
1473
|
-
readonly components: readonly [{
|
|
1474
|
-
readonly internalType: "enum Kind";
|
|
1475
|
-
readonly name: "kind";
|
|
1476
|
-
readonly type: "uint8";
|
|
1477
|
-
}, {
|
|
1478
|
-
readonly internalType: "bytes";
|
|
1479
|
-
readonly name: "data";
|
|
1480
|
-
readonly type: "bytes";
|
|
1481
|
-
}];
|
|
1482
|
-
readonly internalType: "struct MultiAddress";
|
|
1483
|
-
readonly name: "destinationAddress";
|
|
1484
|
-
readonly type: "tuple";
|
|
1485
|
-
}, {
|
|
1486
|
-
readonly internalType: "uint128";
|
|
1487
|
-
readonly name: "destinationFee";
|
|
1488
|
-
readonly type: "uint128";
|
|
1489
|
-
}, {
|
|
1490
|
-
readonly internalType: "uint128";
|
|
1491
|
-
readonly name: "amount";
|
|
1492
|
-
readonly type: "uint128";
|
|
1493
|
-
}];
|
|
1494
|
-
readonly name: "sendToken";
|
|
1495
|
-
readonly outputs: readonly [];
|
|
1496
|
-
readonly stateMutability: "payable";
|
|
1497
|
-
readonly type: "function";
|
|
1498
|
-
}, {
|
|
1499
|
-
readonly inputs: readonly [{
|
|
1500
|
-
readonly internalType: "address";
|
|
1501
|
-
readonly name: "middleware";
|
|
1502
|
-
readonly type: "address";
|
|
1503
|
-
}];
|
|
1504
|
-
readonly name: "setMiddleware";
|
|
1505
|
-
readonly outputs: readonly [];
|
|
1506
|
-
readonly stateMutability: "nonpayable";
|
|
1507
|
-
readonly type: "function";
|
|
1508
|
-
}, {
|
|
1509
|
-
readonly inputs: readonly [{
|
|
1510
|
-
readonly internalType: "bytes";
|
|
1511
|
-
readonly name: "data";
|
|
1512
|
-
readonly type: "bytes";
|
|
1513
|
-
}];
|
|
1514
|
-
readonly name: "setOperatingMode";
|
|
1515
|
-
readonly outputs: readonly [];
|
|
1516
|
-
readonly stateMutability: "nonpayable";
|
|
1517
|
-
readonly type: "function";
|
|
1518
|
-
}, {
|
|
1519
|
-
readonly inputs: readonly [{
|
|
1520
|
-
readonly internalType: "bytes";
|
|
1521
|
-
readonly name: "data";
|
|
1522
|
-
readonly type: "bytes";
|
|
1523
|
-
}];
|
|
1524
|
-
readonly name: "setPricingParameters";
|
|
1525
|
-
readonly outputs: readonly [];
|
|
1526
|
-
readonly stateMutability: "nonpayable";
|
|
1527
|
-
readonly type: "function";
|
|
1528
|
-
}, {
|
|
1529
|
-
readonly inputs: readonly [{
|
|
1530
|
-
readonly internalType: "bytes";
|
|
1531
|
-
readonly name: "data";
|
|
1532
|
-
readonly type: "bytes";
|
|
1533
|
-
}];
|
|
1534
|
-
readonly name: "setTokenTransferFees";
|
|
1535
|
-
readonly outputs: readonly [];
|
|
1536
|
-
readonly stateMutability: "nonpayable";
|
|
1537
|
-
readonly type: "function";
|
|
1538
|
-
}, {
|
|
1539
|
-
readonly inputs: readonly [{
|
|
1540
|
-
readonly components: readonly [{
|
|
1541
|
-
readonly internalType: "ChannelID";
|
|
1542
|
-
readonly name: "channelID";
|
|
1543
|
-
readonly type: "bytes32";
|
|
1544
|
-
}, {
|
|
1545
|
-
readonly internalType: "uint64";
|
|
1546
|
-
readonly name: "nonce";
|
|
1547
|
-
readonly type: "uint64";
|
|
1548
|
-
}, {
|
|
1549
|
-
readonly internalType: "enum Command";
|
|
1550
|
-
readonly name: "command";
|
|
1551
|
-
readonly type: "uint8";
|
|
1552
|
-
}, {
|
|
1553
|
-
readonly internalType: "bytes";
|
|
1554
|
-
readonly name: "params";
|
|
1555
|
-
readonly type: "bytes";
|
|
1556
|
-
}, {
|
|
1557
|
-
readonly internalType: "uint64";
|
|
1558
|
-
readonly name: "maxDispatchGas";
|
|
1559
|
-
readonly type: "uint64";
|
|
1560
|
-
}, {
|
|
1561
|
-
readonly internalType: "uint256";
|
|
1562
|
-
readonly name: "maxFeePerGas";
|
|
1563
|
-
readonly type: "uint256";
|
|
1564
|
-
}, {
|
|
1565
|
-
readonly internalType: "uint256";
|
|
1566
|
-
readonly name: "reward";
|
|
1567
|
-
readonly type: "uint256";
|
|
1568
|
-
}, {
|
|
1569
|
-
readonly internalType: "bytes32";
|
|
1570
|
-
readonly name: "id";
|
|
1571
|
-
readonly type: "bytes32";
|
|
1572
|
-
}];
|
|
1573
|
-
readonly internalType: "struct InboundMessage";
|
|
1574
|
-
readonly name: "message";
|
|
1575
|
-
readonly type: "tuple";
|
|
1576
|
-
}, {
|
|
1577
|
-
readonly internalType: "bytes32[]";
|
|
1578
|
-
readonly name: "leafProof";
|
|
1579
|
-
readonly type: "bytes32[]";
|
|
1580
|
-
}, {
|
|
1581
|
-
readonly components: readonly [{
|
|
1582
|
-
readonly components: readonly [{
|
|
1583
|
-
readonly internalType: "uint8";
|
|
1584
|
-
readonly name: "version";
|
|
1585
|
-
readonly type: "uint8";
|
|
1586
|
-
}, {
|
|
1587
|
-
readonly internalType: "uint32";
|
|
1588
|
-
readonly name: "parentNumber";
|
|
1589
|
-
readonly type: "uint32";
|
|
1590
|
-
}, {
|
|
1591
|
-
readonly internalType: "bytes32";
|
|
1592
|
-
readonly name: "parentHash";
|
|
1593
|
-
readonly type: "bytes32";
|
|
1594
|
-
}, {
|
|
1595
|
-
readonly internalType: "uint64";
|
|
1596
|
-
readonly name: "nextAuthoritySetID";
|
|
1597
|
-
readonly type: "uint64";
|
|
1598
|
-
}, {
|
|
1599
|
-
readonly internalType: "uint32";
|
|
1600
|
-
readonly name: "nextAuthoritySetLen";
|
|
1601
|
-
readonly type: "uint32";
|
|
1602
|
-
}, {
|
|
1603
|
-
readonly internalType: "bytes32";
|
|
1604
|
-
readonly name: "nextAuthoritySetRoot";
|
|
1605
|
-
readonly type: "bytes32";
|
|
1606
|
-
}];
|
|
1607
|
-
readonly internalType: "struct Verification.MMRLeafPartial";
|
|
1608
|
-
readonly name: "leafPartial";
|
|
1609
|
-
readonly type: "tuple";
|
|
1610
|
-
}, {
|
|
1611
|
-
readonly internalType: "bytes32[]";
|
|
1612
|
-
readonly name: "leafProof";
|
|
1613
|
-
readonly type: "bytes32[]";
|
|
1614
|
-
}, {
|
|
1615
|
-
readonly internalType: "bytes32";
|
|
1616
|
-
readonly name: "parachainHeadsRoot";
|
|
1617
|
-
readonly type: "bytes32";
|
|
1618
|
-
}, {
|
|
1619
|
-
readonly internalType: "uint256";
|
|
1620
|
-
readonly name: "leafProofOrder";
|
|
1621
|
-
readonly type: "uint256";
|
|
1622
|
-
}];
|
|
1623
|
-
readonly internalType: "struct Verification.Proof";
|
|
1624
|
-
readonly name: "headerProof";
|
|
1625
|
-
readonly type: "tuple";
|
|
1626
|
-
}];
|
|
1627
|
-
readonly name: "submitV1";
|
|
1628
|
-
readonly outputs: readonly [];
|
|
1629
|
-
readonly stateMutability: "nonpayable";
|
|
1630
|
-
readonly type: "function";
|
|
1631
|
-
}, {
|
|
1632
|
-
readonly inputs: readonly [{
|
|
1633
|
-
readonly internalType: "bytes32";
|
|
1634
|
-
readonly name: "tokenID";
|
|
1635
|
-
readonly type: "bytes32";
|
|
1636
|
-
}];
|
|
1637
|
-
readonly name: "tokenAddressOf";
|
|
1638
|
-
readonly outputs: readonly [{
|
|
1639
|
-
readonly internalType: "address";
|
|
1640
|
-
readonly name: "";
|
|
1641
|
-
readonly type: "address";
|
|
1642
|
-
}];
|
|
1643
|
-
readonly stateMutability: "view";
|
|
1644
|
-
readonly type: "function";
|
|
1645
|
-
}, {
|
|
1646
|
-
readonly inputs: readonly [{
|
|
1647
|
-
readonly internalType: "bytes";
|
|
1648
|
-
readonly name: "data";
|
|
1649
|
-
readonly type: "bytes";
|
|
1650
|
-
}];
|
|
1651
|
-
readonly name: "transferNativeFromAgent";
|
|
1652
|
-
readonly outputs: readonly [];
|
|
1653
|
-
readonly stateMutability: "nonpayable";
|
|
1654
|
-
readonly type: "function";
|
|
1655
|
-
}, {
|
|
1656
|
-
readonly inputs: readonly [{
|
|
1657
|
-
readonly internalType: "bytes";
|
|
1658
|
-
readonly name: "data";
|
|
1659
|
-
readonly type: "bytes";
|
|
1660
|
-
}];
|
|
1661
|
-
readonly name: "transferNativeToken";
|
|
1662
|
-
readonly outputs: readonly [];
|
|
1663
|
-
readonly stateMutability: "nonpayable";
|
|
1664
|
-
readonly type: "function";
|
|
1665
|
-
}, {
|
|
1666
|
-
readonly inputs: readonly [{
|
|
1667
|
-
readonly internalType: "address";
|
|
1668
|
-
readonly name: "newOwner";
|
|
1669
|
-
readonly type: "address";
|
|
1670
|
-
}];
|
|
1671
|
-
readonly name: "transferOwnership";
|
|
1672
|
-
readonly outputs: readonly [];
|
|
1673
|
-
readonly stateMutability: "nonpayable";
|
|
1674
|
-
readonly type: "function";
|
|
1675
|
-
}, {
|
|
1676
|
-
readonly inputs: readonly [{
|
|
1677
|
-
readonly internalType: "bytes";
|
|
1678
|
-
readonly name: "data";
|
|
1679
|
-
readonly type: "bytes";
|
|
1680
|
-
}];
|
|
1681
|
-
readonly name: "updateChannel";
|
|
1682
|
-
readonly outputs: readonly [];
|
|
1683
|
-
readonly stateMutability: "nonpayable";
|
|
1684
|
-
readonly type: "function";
|
|
1685
|
-
}, {
|
|
1686
|
-
readonly inputs: readonly [{
|
|
1687
|
-
readonly internalType: "bytes";
|
|
1688
|
-
readonly name: "data";
|
|
1689
|
-
readonly type: "bytes";
|
|
1690
|
-
}];
|
|
1691
|
-
readonly name: "upgrade";
|
|
1692
|
-
readonly outputs: readonly [];
|
|
1693
|
-
readonly stateMutability: "nonpayable";
|
|
1694
|
-
readonly type: "function";
|
|
1695
|
-
}];
|
|
1696
|
-
|
|
1697
|
-
declare enum Protocols {
|
|
1698
|
-
TokenBridge = "TokenBridge",
|
|
1699
|
-
AutomaticTokenBridge = "AutomaticTokenBridge",
|
|
1700
|
-
ExecutorTokenBridge = "ExecutorTokenBridge"
|
|
1701
|
-
}
|
|
1702
|
-
type WormholeTransferFunctions = 'tokenTransfer';
|
|
1703
|
-
interface WormholeFunctionArgs {
|
|
1704
|
-
token: TokenId;
|
|
1705
|
-
amount: bigint;
|
|
1706
|
-
from: ChainAddress;
|
|
1707
|
-
to: ChainAddress;
|
|
1708
|
-
protocol: TokenTransfer.Protocol;
|
|
1709
|
-
payload?: Uint8Array;
|
|
1710
|
-
}
|
|
1711
|
-
interface WormholeConfigConstructorParams {
|
|
1712
|
-
args: WormholeFunctionArgs;
|
|
1713
|
-
func: WormholeTransferFunctions;
|
|
1714
|
-
}
|
|
1715
|
-
declare class WormholeConfig {
|
|
1716
|
-
readonly args: WormholeFunctionArgs;
|
|
1717
|
-
readonly func: WormholeTransferFunctions;
|
|
1718
|
-
readonly provider: "wormhole";
|
|
1719
|
-
static is(obj: unknown): obj is WormholeConfig;
|
|
1720
|
-
constructor({ args, func }: WormholeConfigConstructorParams);
|
|
596
|
+
declare class WormholeConfig {
|
|
597
|
+
readonly args: WormholeFunctionArgs;
|
|
598
|
+
readonly func: WormholeTransferFunctions;
|
|
599
|
+
static is(obj: unknown): obj is WormholeConfig;
|
|
600
|
+
constructor({ args, func }: WormholeConfigConstructorParams);
|
|
1721
601
|
}
|
|
1722
602
|
|
|
1723
603
|
declare function wormhole$1(): {
|
|
@@ -1726,18 +606,14 @@ declare function wormhole$1(): {
|
|
|
1726
606
|
|
|
1727
607
|
declare function wormholeFactory(chain: AnyChain): Wormhole<"Testnet" | "Mainnet">;
|
|
1728
608
|
|
|
1729
|
-
type
|
|
1730
|
-
type MrlConfigBuilder = ConfigBuilder<ContractConfig | ExtrinsicConfig | WormholeConfig | SnowbridgeConfig, MrlBuilderParams> & {
|
|
1731
|
-
provider?: Provider;
|
|
1732
|
-
};
|
|
609
|
+
type MrlConfigBuilder = ConfigBuilder<ContractConfig | ExtrinsicConfig | WormholeConfig, MrlBuilderParams>;
|
|
1733
610
|
type MrlExecuteConfigBuilder = ConfigBuilder<ContractConfig, MrlExecuteBuilderParams>;
|
|
1734
611
|
interface MrlBuilderParams extends BuilderParams<AnyChain> {
|
|
1735
612
|
isAutomatic: boolean;
|
|
1736
|
-
protocolFee?: AssetAmount;
|
|
1737
613
|
moonApi: ApiPromise;
|
|
1738
614
|
moonAsset: ChainAsset;
|
|
1739
|
-
|
|
1740
|
-
|
|
615
|
+
moonChain: EvmParachain;
|
|
616
|
+
moonGasLimit?: bigint;
|
|
1741
617
|
sendOnlyRemoteExecution?: boolean;
|
|
1742
618
|
transact?: Transact;
|
|
1743
619
|
}
|
|
@@ -1752,36 +628,6 @@ interface Transact {
|
|
|
1752
628
|
};
|
|
1753
629
|
}
|
|
1754
630
|
|
|
1755
|
-
declare function Gateway(): {
|
|
1756
|
-
sendToken: () => MrlConfigBuilder;
|
|
1757
|
-
approveAndSendToken: () => MrlConfigBuilder;
|
|
1758
|
-
};
|
|
1759
|
-
|
|
1760
|
-
declare function contract$1(): {
|
|
1761
|
-
Gateway: typeof Gateway;
|
|
1762
|
-
};
|
|
1763
|
-
|
|
1764
|
-
declare function ethereumTokenTransfers(): {
|
|
1765
|
-
transferNativeToken: () => MrlConfigBuilder;
|
|
1766
|
-
};
|
|
1767
|
-
|
|
1768
|
-
declare function xcmPallet(): {
|
|
1769
|
-
transferAssets: () => {
|
|
1770
|
-
globalConsensus: () => MrlConfigBuilder;
|
|
1771
|
-
globalConsensusErc20: () => MrlConfigBuilder;
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
|
|
1775
|
-
declare function extrinsic$1(): {
|
|
1776
|
-
ethereumTokenTransfers: typeof ethereumTokenTransfers;
|
|
1777
|
-
xcmPallet: typeof xcmPallet;
|
|
1778
|
-
};
|
|
1779
|
-
|
|
1780
|
-
declare function snowbridge(): {
|
|
1781
|
-
contract: typeof contract$1;
|
|
1782
|
-
extrinsic: typeof extrinsic$1;
|
|
1783
|
-
};
|
|
1784
|
-
|
|
1785
631
|
declare function Batch(): {
|
|
1786
632
|
transferAssetsAndMessage: () => MrlConfigBuilder;
|
|
1787
633
|
};
|
|
@@ -1913,10 +759,9 @@ declare function wormhole(): {
|
|
|
1913
759
|
};
|
|
1914
760
|
|
|
1915
761
|
declare function MrlBuilder(): {
|
|
1916
|
-
snowbridge: typeof snowbridge;
|
|
1917
762
|
wormhole: typeof wormhole;
|
|
1918
763
|
};
|
|
1919
764
|
|
|
1920
765
|
declare const BATCH_CONTRACT_ADDRESS = "0x0000000000000000000000000000000000000808";
|
|
1921
766
|
|
|
1922
|
-
export { type AssetAddressFormat, AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, type AssetMultilocation, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type
|
|
767
|
+
export { type AssetAddressFormat, AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, type AssetMultilocation, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type BuilderParams, type ConfigBuilder, ContractBuilder, ContractConfig, type ContractConfigBuilder, type ContractConfigConstructorParams, type DestinationMultilocation, ERC20_ABI, type EquilibriumSystemBalanceData, type EventMonitoringConfig, type EvmFunctionArgs, EvmQueryConfig, type EvmQueryConfigParams, type EvmQueryFunctions, ExtrinsicBuilder, ExtrinsicConfig, type ExtrinsicConfigBuilder, type ExtrinsicConfigConstructorParams, FeeBuilder, type FeeConfigBuilder, type FeeConfigBuilderParams, type GetVersionedAssetId, MonitoringBuilder, type MonitoringBuilderConfig, type MoonbeamRuntimeXcmConfigAssetType, MrlBuilder, type MrlBuilderParams, type MrlConfigBuilder, type MrlExecuteBuilderParams, type MrlExecuteConfigBuilder, type PalletBalancesAccountDataOld, type Parents, Protocols, type QueryConfigConstructorParams, SubstrateCallConfig, type SubstrateCallConfigConstructorParams, SubstrateQueryConfig, type TokensPalletAccountData, type Transact, TransferType, WormholeConfig, type WormholeConfigConstructorParams, type WormholeFunctionArgs, type WormholeTransferFunctions, type XcmPaymentFeeProps, XcmVersion, calculateSystemAccountBalance, evm, substrate, wormhole, wormholeFactory };
|