Update bridges types (#3835)

* Update bridges types

* BitVec

* BitVec
This commit is contained in:
Jaco
2021-08-03 09:39:32 +02:00
committed by GitHub
parent 9c611e9414
commit d60b1818d0
3 changed files with 218 additions and 20 deletions
+50 -7
View File
@@ -10,7 +10,7 @@ import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
import type { BridgedBlockHash, BridgedBlockNumber, BridgedHeader, ChainId, Id, InitializationData, LaneId, MessageKey, MessageNonce } from '@polkadot/types/interfaces/bridges';
import type { BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
import type { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims';
@@ -103,6 +103,7 @@ declare module '@polkadot/types/types/registry' {
'Compact<MomentOf>': Compact<MomentOf>;
'Compact<NominatorIndex>': Compact<NominatorIndex>;
'Compact<OffchainAccuracy>': Compact<OffchainAccuracy>;
'Compact<OutboundMessageFee>': Compact<OutboundMessageFee>;
'Compact<OverweightIndex>': Compact<OverweightIndex>;
'Compact<PageCounter>': Compact<PageCounter>;
'Compact<ParaId>': Compact<ParaId>;
@@ -275,13 +276,13 @@ declare module '@polkadot/types/types/registry' {
'Option<CallHash>': Option<CallHash>;
'Option<CallHashOf>': Option<CallHashOf>;
'Option<CallIndex>': Option<CallIndex>;
'Option<CallOrigin>': Option<CallOrigin>;
'Option<CandidateCommitments>': Option<CandidateCommitments>;
'Option<CandidateDescriptor>': Option<CandidateDescriptor>;
'Option<CandidateHash>': Option<CandidateHash>;
'Option<CandidateInfo>': Option<CandidateInfo>;
'Option<CandidatePendingAvailability>': Option<CandidatePendingAvailability>;
'Option<CandidateReceipt>': Option<CandidateReceipt>;
'Option<ChainId>': Option<ChainId>;
'Option<ChainProperties>': Option<ChainProperties>;
'Option<ChainType>': Option<ChainType>;
'Option<ChangesTrieConfiguration>': Option<ChangesTrieConfiguration>;
@@ -355,6 +356,7 @@ declare module '@polkadot/types/types/registry' {
'Option<DelayKindBest>': Option<DelayKindBest>;
'Option<Delegations>': Option<Delegations>;
'Option<DeletedContract>': Option<DeletedContract>;
'Option<DeliveredMessages>': Option<DeliveredMessages>;
'Option<DepositBalance>': Option<DepositBalance>;
'Option<DepositBalanceOf>': Option<DepositBalanceOf>;
'Option<DestroyWitness>': Option<DestroyWitness>;
@@ -365,6 +367,7 @@ declare module '@polkadot/types/types/registry' {
'Option<DispatchError>': Option<DispatchError>;
'Option<DispatchErrorModule>': Option<DispatchErrorModule>;
'Option<DispatchErrorTo198>': Option<DispatchErrorTo198>;
'Option<DispatchFeePayment>': Option<DispatchFeePayment>;
'Option<DispatchInfo>': Option<DispatchInfo>;
'Option<DispatchInfoTo190>': Option<DispatchInfoTo190>;
'Option<DispatchInfoTo244>': Option<DispatchInfoTo244>;
@@ -546,7 +549,6 @@ declare module '@polkadot/types/types/registry' {
'Option<I64>': Option<I64>;
'Option<i8>': Option<i8>;
'Option<I8>': Option<I8>;
'Option<Id>': Option<Id>;
'Option<IdentificationTuple>': Option<IdentificationTuple>;
'Option<IdentityFields>': Option<IdentityFields>;
'Option<IdentityInfo>': Option<IdentityInfo>;
@@ -557,6 +559,8 @@ declare module '@polkadot/types/types/registry' {
'Option<InboundDownwardMessage>': Option<InboundDownwardMessage>;
'Option<InboundHrmpMessage>': Option<InboundHrmpMessage>;
'Option<InboundHrmpMessages>': Option<InboundHrmpMessages>;
'Option<InboundLaneData>': Option<InboundLaneData>;
'Option<InboundRelayer>': Option<InboundRelayer>;
'Option<InboundStatus>': Option<InboundStatus>;
'Option<IncludedBlocks>': Option<IncludedBlocks>;
'Option<InclusionFee>': Option<InclusionFee>;
@@ -604,11 +608,14 @@ declare module '@polkadot/types/types/registry' {
'Option<MaybeVrf>': Option<MaybeVrf>;
'Option<MemberCount>': Option<MemberCount>;
'Option<MembershipProof>': Option<MembershipProof>;
'Option<MessageData>': Option<MessageData>;
'Option<MessageId>': Option<MessageId>;
'Option<MessageIngestionType>': Option<MessageIngestionType>;
'Option<MessageKey>': Option<MessageKey>;
'Option<MessageNonce>': Option<MessageNonce>;
'Option<MessageQueueChain>': Option<MessageQueueChain>;
'Option<MessagesDeliveryProofOf>': Option<MessagesDeliveryProofOf>;
'Option<MessagesProofOf>': Option<MessagesProofOf>;
'Option<MessagingStateSnapshot>': Option<MessagingStateSnapshot>;
'Option<MessagingStateSnapshotEgressEntry>': Option<MessagingStateSnapshotEgressEntry>;
'Option<MetadataAll>': Option<MetadataAll>;
@@ -677,9 +684,13 @@ declare module '@polkadot/types/types/registry' {
'Option<OpenTipFinderTo225>': Option<OpenTipFinderTo225>;
'Option<OpenTipTip>': Option<OpenTipTip>;
'Option<OpenTipTo225>': Option<OpenTipTo225>;
'Option<OperatingMode>': Option<OperatingMode>;
'Option<Origin>': Option<Origin>;
'Option<OriginCaller>': Option<OriginCaller>;
'Option<OutboundHrmpMessage>': Option<OutboundHrmpMessage>;
'Option<OutboundLaneData>': Option<OutboundLaneData>;
'Option<OutboundMessageFee>': Option<OutboundMessageFee>;
'Option<OutboundPayload>': Option<OutboundPayload>;
'Option<OutboundStatus>': Option<OutboundStatus>;
'Option<Outcome>': Option<Outcome>;
'Option<OverweightIndex>': Option<OverweightIndex>;
@@ -709,6 +720,7 @@ declare module '@polkadot/types/types/registry' {
'Option<ParaId>': Option<ParaId>;
'Option<ParaInfo>': Option<ParaInfo>;
'Option<ParaLifecycle>': Option<ParaLifecycle>;
'Option<Parameter>': Option<Parameter>;
'Option<ParaPastCodeMeta>': Option<ParaPastCodeMeta>;
'Option<ParaScheduling>': Option<ParaScheduling>;
'Option<ParathreadClaim>': Option<ParathreadClaim>;
@@ -799,6 +811,7 @@ declare module '@polkadot/types/types/registry' {
'Option<RelayBlockNumber>': Option<RelayBlockNumber>;
'Option<RelayChainBlockNumber>': Option<RelayChainBlockNumber>;
'Option<RelayChainHash>': Option<RelayChainHash>;
'Option<RelayerId>': Option<RelayerId>;
'Option<RelayHash>': Option<RelayHash>;
'Option<Releases>': Option<Releases>;
'Option<Remark>': Option<Remark>;
@@ -1003,6 +1016,8 @@ declare module '@polkadot/types/types/registry' {
'Option<UncleEntryItem>': Option<UncleEntryItem>;
'Option<UnknownTransaction>': Option<UnknownTransaction>;
'Option<UnlockChunk>': Option<UnlockChunk>;
'Option<UnrewardedRelayer>': Option<UnrewardedRelayer>;
'Option<UnrewardedRelayersState>': Option<UnrewardedRelayersState>;
'Option<UpwardMessage>': Option<UpwardMessage>;
'Option<usize>': Option<usize>;
'Option<USize>': Option<USize>;
@@ -1199,13 +1214,13 @@ declare module '@polkadot/types/types/registry' {
'Vec<CallHash>': Vec<CallHash>;
'Vec<CallHashOf>': Vec<CallHashOf>;
'Vec<CallIndex>': Vec<CallIndex>;
'Vec<CallOrigin>': Vec<CallOrigin>;
'Vec<CandidateCommitments>': Vec<CandidateCommitments>;
'Vec<CandidateDescriptor>': Vec<CandidateDescriptor>;
'Vec<CandidateHash>': Vec<CandidateHash>;
'Vec<CandidateInfo>': Vec<CandidateInfo>;
'Vec<CandidatePendingAvailability>': Vec<CandidatePendingAvailability>;
'Vec<CandidateReceipt>': Vec<CandidateReceipt>;
'Vec<ChainId>': Vec<ChainId>;
'Vec<ChainProperties>': Vec<ChainProperties>;
'Vec<ChainType>': Vec<ChainType>;
'Vec<ChangesTrieConfiguration>': Vec<ChangesTrieConfiguration>;
@@ -1279,6 +1294,7 @@ declare module '@polkadot/types/types/registry' {
'Vec<DelayKindBest>': Vec<DelayKindBest>;
'Vec<Delegations>': Vec<Delegations>;
'Vec<DeletedContract>': Vec<DeletedContract>;
'Vec<DeliveredMessages>': Vec<DeliveredMessages>;
'Vec<DepositBalance>': Vec<DepositBalance>;
'Vec<DepositBalanceOf>': Vec<DepositBalanceOf>;
'Vec<DestroyWitness>': Vec<DestroyWitness>;
@@ -1289,6 +1305,7 @@ declare module '@polkadot/types/types/registry' {
'Vec<DispatchError>': Vec<DispatchError>;
'Vec<DispatchErrorModule>': Vec<DispatchErrorModule>;
'Vec<DispatchErrorTo198>': Vec<DispatchErrorTo198>;
'Vec<DispatchFeePayment>': Vec<DispatchFeePayment>;
'Vec<DispatchInfo>': Vec<DispatchInfo>;
'Vec<DispatchInfoTo190>': Vec<DispatchInfoTo190>;
'Vec<DispatchInfoTo244>': Vec<DispatchInfoTo244>;
@@ -1470,7 +1487,6 @@ declare module '@polkadot/types/types/registry' {
'Vec<I64>': Vec<I64>;
'Vec<i8>': Vec<i8>;
'Vec<I8>': Vec<I8>;
'Vec<Id>': Vec<Id>;
'Vec<IdentificationTuple>': Vec<IdentificationTuple>;
'Vec<IdentityFields>': Vec<IdentityFields>;
'Vec<IdentityInfo>': Vec<IdentityInfo>;
@@ -1481,6 +1497,8 @@ declare module '@polkadot/types/types/registry' {
'Vec<InboundDownwardMessage>': Vec<InboundDownwardMessage>;
'Vec<InboundHrmpMessage>': Vec<InboundHrmpMessage>;
'Vec<InboundHrmpMessages>': Vec<InboundHrmpMessages>;
'Vec<InboundLaneData>': Vec<InboundLaneData>;
'Vec<InboundRelayer>': Vec<InboundRelayer>;
'Vec<InboundStatus>': Vec<InboundStatus>;
'Vec<IncludedBlocks>': Vec<IncludedBlocks>;
'Vec<InclusionFee>': Vec<InclusionFee>;
@@ -1528,11 +1546,14 @@ declare module '@polkadot/types/types/registry' {
'Vec<MaybeVrf>': Vec<MaybeVrf>;
'Vec<MemberCount>': Vec<MemberCount>;
'Vec<MembershipProof>': Vec<MembershipProof>;
'Vec<MessageData>': Vec<MessageData>;
'Vec<MessageId>': Vec<MessageId>;
'Vec<MessageIngestionType>': Vec<MessageIngestionType>;
'Vec<MessageKey>': Vec<MessageKey>;
'Vec<MessageNonce>': Vec<MessageNonce>;
'Vec<MessageQueueChain>': Vec<MessageQueueChain>;
'Vec<MessagesDeliveryProofOf>': Vec<MessagesDeliveryProofOf>;
'Vec<MessagesProofOf>': Vec<MessagesProofOf>;
'Vec<MessagingStateSnapshot>': Vec<MessagingStateSnapshot>;
'Vec<MessagingStateSnapshotEgressEntry>': Vec<MessagingStateSnapshotEgressEntry>;
'Vec<MetadataAll>': Vec<MetadataAll>;
@@ -1601,9 +1622,13 @@ declare module '@polkadot/types/types/registry' {
'Vec<OpenTipFinderTo225>': Vec<OpenTipFinderTo225>;
'Vec<OpenTipTip>': Vec<OpenTipTip>;
'Vec<OpenTipTo225>': Vec<OpenTipTo225>;
'Vec<OperatingMode>': Vec<OperatingMode>;
'Vec<Origin>': Vec<Origin>;
'Vec<OriginCaller>': Vec<OriginCaller>;
'Vec<OutboundHrmpMessage>': Vec<OutboundHrmpMessage>;
'Vec<OutboundLaneData>': Vec<OutboundLaneData>;
'Vec<OutboundMessageFee>': Vec<OutboundMessageFee>;
'Vec<OutboundPayload>': Vec<OutboundPayload>;
'Vec<OutboundStatus>': Vec<OutboundStatus>;
'Vec<Outcome>': Vec<Outcome>;
'Vec<OverweightIndex>': Vec<OverweightIndex>;
@@ -1633,6 +1658,7 @@ declare module '@polkadot/types/types/registry' {
'Vec<ParaId>': Vec<ParaId>;
'Vec<ParaInfo>': Vec<ParaInfo>;
'Vec<ParaLifecycle>': Vec<ParaLifecycle>;
'Vec<Parameter>': Vec<Parameter>;
'Vec<ParaPastCodeMeta>': Vec<ParaPastCodeMeta>;
'Vec<ParaScheduling>': Vec<ParaScheduling>;
'Vec<ParathreadClaim>': Vec<ParathreadClaim>;
@@ -1723,6 +1749,7 @@ declare module '@polkadot/types/types/registry' {
'Vec<RelayBlockNumber>': Vec<RelayBlockNumber>;
'Vec<RelayChainBlockNumber>': Vec<RelayChainBlockNumber>;
'Vec<RelayChainHash>': Vec<RelayChainHash>;
'Vec<RelayerId>': Vec<RelayerId>;
'Vec<RelayHash>': Vec<RelayHash>;
'Vec<Releases>': Vec<Releases>;
'Vec<Remark>': Vec<Remark>;
@@ -1927,6 +1954,8 @@ declare module '@polkadot/types/types/registry' {
'Vec<UncleEntryItem>': Vec<UncleEntryItem>;
'Vec<UnknownTransaction>': Vec<UnknownTransaction>;
'Vec<UnlockChunk>': Vec<UnlockChunk>;
'Vec<UnrewardedRelayer>': Vec<UnrewardedRelayer>;
'Vec<UnrewardedRelayersState>': Vec<UnrewardedRelayersState>;
'Vec<UpwardMessage>': Vec<UpwardMessage>;
'Vec<usize>': Vec<usize>;
'Vec<USize>': Vec<USize>;
@@ -2123,13 +2152,13 @@ declare module '@polkadot/types/types/registry' {
CallHash: CallHash;
CallHashOf: CallHashOf;
CallIndex: CallIndex;
CallOrigin: CallOrigin;
CandidateCommitments: CandidateCommitments;
CandidateDescriptor: CandidateDescriptor;
CandidateHash: CandidateHash;
CandidateInfo: CandidateInfo;
CandidatePendingAvailability: CandidatePendingAvailability;
CandidateReceipt: CandidateReceipt;
ChainId: ChainId;
ChainProperties: ChainProperties;
ChainType: ChainType;
ChangesTrieConfiguration: ChangesTrieConfiguration;
@@ -2203,6 +2232,7 @@ declare module '@polkadot/types/types/registry' {
DelayKindBest: DelayKindBest;
Delegations: Delegations;
DeletedContract: DeletedContract;
DeliveredMessages: DeliveredMessages;
DepositBalance: DepositBalance;
DepositBalanceOf: DepositBalanceOf;
DestroyWitness: DestroyWitness;
@@ -2213,6 +2243,7 @@ declare module '@polkadot/types/types/registry' {
DispatchError: DispatchError;
DispatchErrorModule: DispatchErrorModule;
DispatchErrorTo198: DispatchErrorTo198;
DispatchFeePayment: DispatchFeePayment;
DispatchInfo: DispatchInfo;
DispatchInfoTo190: DispatchInfoTo190;
DispatchInfoTo244: DispatchInfoTo244;
@@ -2394,7 +2425,6 @@ declare module '@polkadot/types/types/registry' {
I64: I64;
i8: i8;
I8: I8;
Id: Id;
IdentificationTuple: IdentificationTuple;
IdentityFields: IdentityFields;
IdentityInfo: IdentityInfo;
@@ -2405,6 +2435,8 @@ declare module '@polkadot/types/types/registry' {
InboundDownwardMessage: InboundDownwardMessage;
InboundHrmpMessage: InboundHrmpMessage;
InboundHrmpMessages: InboundHrmpMessages;
InboundLaneData: InboundLaneData;
InboundRelayer: InboundRelayer;
InboundStatus: InboundStatus;
IncludedBlocks: IncludedBlocks;
InclusionFee: InclusionFee;
@@ -2452,11 +2484,14 @@ declare module '@polkadot/types/types/registry' {
MaybeVrf: MaybeVrf;
MemberCount: MemberCount;
MembershipProof: MembershipProof;
MessageData: MessageData;
MessageId: MessageId;
MessageIngestionType: MessageIngestionType;
MessageKey: MessageKey;
MessageNonce: MessageNonce;
MessageQueueChain: MessageQueueChain;
MessagesDeliveryProofOf: MessagesDeliveryProofOf;
MessagesProofOf: MessagesProofOf;
MessagingStateSnapshot: MessagingStateSnapshot;
MessagingStateSnapshotEgressEntry: MessagingStateSnapshotEgressEntry;
MetadataAll: MetadataAll;
@@ -2525,9 +2560,13 @@ declare module '@polkadot/types/types/registry' {
OpenTipFinderTo225: OpenTipFinderTo225;
OpenTipTip: OpenTipTip;
OpenTipTo225: OpenTipTo225;
OperatingMode: OperatingMode;
Origin: Origin;
OriginCaller: OriginCaller;
OutboundHrmpMessage: OutboundHrmpMessage;
OutboundLaneData: OutboundLaneData;
OutboundMessageFee: OutboundMessageFee;
OutboundPayload: OutboundPayload;
OutboundStatus: OutboundStatus;
Outcome: Outcome;
OverweightIndex: OverweightIndex;
@@ -2557,6 +2596,7 @@ declare module '@polkadot/types/types/registry' {
ParaId: ParaId;
ParaInfo: ParaInfo;
ParaLifecycle: ParaLifecycle;
Parameter: Parameter;
ParaPastCodeMeta: ParaPastCodeMeta;
ParaScheduling: ParaScheduling;
ParathreadClaim: ParathreadClaim;
@@ -2647,6 +2687,7 @@ declare module '@polkadot/types/types/registry' {
RelayBlockNumber: RelayBlockNumber;
RelayChainBlockNumber: RelayChainBlockNumber;
RelayChainHash: RelayChainHash;
RelayerId: RelayerId;
RelayHash: RelayHash;
Releases: Releases;
Remark: Remark;
@@ -2851,6 +2892,8 @@ declare module '@polkadot/types/types/registry' {
UncleEntryItem: UncleEntryItem;
UnknownTransaction: UnknownTransaction;
UnlockChunk: UnlockChunk;
UnrewardedRelayer: UnrewardedRelayer;
UnrewardedRelayersState: UnrewardedRelayersState;
UpwardMessage: UpwardMessage;
usize: usize;
USize: USize;
@@ -12,21 +12,81 @@ export default {
BridgedBlockHash: 'H256',
BridgedBlockNumber: 'BlockNumber',
BridgedHeader: 'Header',
CallOrigin: {
_enum: {
SourceRoot: 'Null',
TargetAccount: '(AccountId, MultiSigner, MultiSignature)',
SourceAccount: 'AccountId'
}
},
DeliveredMessages: {
begin: 'MessageNonce',
end: 'MessageNonce',
// pub type DispatchResultsBitVec = BitVec<Msb0, u8>;
dispatchResults: 'BitVec'
},
DispatchFeePayment: {
_enum: ['AtSourceChain', 'AtTargetChain']
},
InboundLaneData: {
relayers: 'Vec<UnrewardedRelayer>',
lastConfirmedNonce: 'MessageNonce'
},
InboundRelayer: 'AccountId',
InitializationData: {
header: 'Header',
authorityList: 'AuthorityList',
setId: 'SetId',
isHalted: 'bool'
},
Id: '[u8; 4]',
ChainId: 'Id',
LaneId: 'Id',
MessageNonce: 'u64',
// Overrides what is in cumulus, however needed - needs an alias
// MessageId: '(Id, u64)',
LaneId: '[u8; 4]',
MessageData: {
payload: 'Bytes',
fee: 'Balance'
},
MessagesDeliveryProofOf: {
bridgedHeaderHash: 'BlockHash',
storageProof: 'Vec<Bytes>',
lane: 'LaneId'
},
MessageKey: {
laneId: 'LaneId',
nonce: 'MessageNonce'
},
MessageNonce: 'u64',
MessagesProofOf: {
bridgedHeaderHash: 'BridgedBlockHash',
storageProof: 'Vec<Bytes>',
lane: 'LaneId',
noncesStart: 'MessageNonce',
noncesEnd: 'MessageNonce'
},
OperatingMode: {
_enum: ['Normal', 'RejectingOutboundMessages', 'Halted']
},
OutboundLaneData: {
latestGeneratedNonce: 'MessageNonce',
latestReceivedNonce: 'MessageNonce',
oldestUnprunedNonce: 'MessageNonce'
},
OutboundMessageFee: 'Balance',
OutboundPayload: {
specVersion: 'u32',
weight: 'Weight',
origin: 'CallOrigin',
dispatchFeePayment: 'DispatchFeePayment',
call: 'Bytes'
},
Parameter: 'Null',
RelayerId: 'AccountId',
UnrewardedRelayer: {
relayer: 'RelayerId',
messages: 'DeliveredMessages'
},
UnrewardedRelayersState: {
unrewardedRelayer_Entries: 'MessageNonce',
messagesInOldestEntry: 'MessageNonce',
totalMessages: 'MessageNonce'
}
}
} as Definitions;
+102 -7
View File
@@ -1,9 +1,12 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { Struct, U8aFixed, bool, u64 } from '@polkadot/types';
import type { BitVec, Bytes, Enum, Null, Struct, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types';
import type { ITuple } from '@polkadot/types/types';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics';
import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
import type { BlockNumber, H256, Header } from '@polkadot/types/interfaces/runtime';
import type { AccountId, Balance, BlockNumber, H256, Header, MultiSigner, Weight } from '@polkadot/types/interfaces/runtime';
/** @name BridgedBlockHash */
export interface BridgedBlockHash extends H256 {}
@@ -14,11 +17,36 @@ export interface BridgedBlockNumber extends BlockNumber {}
/** @name BridgedHeader */
export interface BridgedHeader extends Header {}
/** @name ChainId */
export interface ChainId extends Id {}
/** @name CallOrigin */
export interface CallOrigin extends Enum {
readonly isSourceRoot: boolean;
readonly isTargetAccount: boolean;
readonly asTargetAccount: ITuple<[AccountId, MultiSigner, MultiSignature]>;
readonly isSourceAccount: boolean;
readonly asSourceAccount: AccountId;
}
/** @name Id */
export interface Id extends U8aFixed {}
/** @name DeliveredMessages */
export interface DeliveredMessages extends Struct {
readonly begin: MessageNonce;
readonly end: MessageNonce;
readonly dispatchResults: BitVec;
}
/** @name DispatchFeePayment */
export interface DispatchFeePayment extends Enum {
readonly isAtSourceChain: boolean;
readonly isAtTargetChain: boolean;
}
/** @name InboundLaneData */
export interface InboundLaneData extends Struct {
readonly relayers: Vec<UnrewardedRelayer>;
readonly lastConfirmedNonce: MessageNonce;
}
/** @name InboundRelayer */
export interface InboundRelayer extends AccountId {}
/** @name InitializationData */
export interface InitializationData extends Struct {
@@ -29,7 +57,13 @@ export interface InitializationData extends Struct {
}
/** @name LaneId */
export interface LaneId extends Id {}
export interface LaneId extends U8aFixed {}
/** @name MessageData */
export interface MessageData extends Struct {
readonly payload: Bytes;
readonly fee: Balance;
}
/** @name MessageKey */
export interface MessageKey extends Struct {
@@ -40,4 +74,65 @@ export interface MessageKey extends Struct {
/** @name MessageNonce */
export interface MessageNonce extends u64 {}
/** @name MessagesDeliveryProofOf */
export interface MessagesDeliveryProofOf extends Struct {
readonly bridgedHeaderHash: BlockHash;
readonly storageProof: Vec<Bytes>;
readonly lane: LaneId;
}
/** @name MessagesProofOf */
export interface MessagesProofOf extends Struct {
readonly bridgedHeaderHash: BridgedBlockHash;
readonly storageProof: Vec<Bytes>;
readonly lane: LaneId;
readonly noncesStart: MessageNonce;
readonly noncesEnd: MessageNonce;
}
/** @name OperatingMode */
export interface OperatingMode extends Enum {
readonly isNormal: boolean;
readonly isRejectingOutboundMessages: boolean;
readonly isHalted: boolean;
}
/** @name OutboundLaneData */
export interface OutboundLaneData extends Struct {
readonly latestGeneratedNonce: MessageNonce;
readonly latestReceivedNonce: MessageNonce;
readonly oldestUnprunedNonce: MessageNonce;
}
/** @name OutboundMessageFee */
export interface OutboundMessageFee extends Balance {}
/** @name OutboundPayload */
export interface OutboundPayload extends Struct {
readonly specVersion: u32;
readonly weight: Weight;
readonly origin: CallOrigin;
readonly dispatchFeePayment: DispatchFeePayment;
readonly call: Bytes;
}
/** @name Parameter */
export interface Parameter extends Null {}
/** @name RelayerId */
export interface RelayerId extends AccountId {}
/** @name UnrewardedRelayer */
export interface UnrewardedRelayer extends Struct {
readonly relayer: RelayerId;
readonly messages: DeliveredMessages;
}
/** @name UnrewardedRelayersState */
export interface UnrewardedRelayersState extends Struct {
readonly unrewardedRelayer_Entries: MessageNonce;
readonly messagesInOldestEntry: MessageNonce;
readonly totalMessages: MessageNonce;
}
export type PHANTOM_BRIDGES = 'bridges';