@darwinia/types
Advanced tools
Comparing version 2.6.8-1 to 2.6.8-2
@@ -5,3 +5,3 @@ import type { Metadata } from '@polkadot/metadata'; | ||
import type { UsableBalance } from '@darwinia/types/interfaces/balances'; | ||
import type { FeeMarketFee as Fee } from '@darwinia/types/interfaces/fee'; | ||
import type { Fee } from '@darwinia/types/interfaces/darwiniaInject'; | ||
import type { MMRProofResult } from '@darwinia/types/interfaces/headerMMR'; | ||
@@ -8,0 +8,0 @@ import type { PowerOf } from '@darwinia/types/interfaces/staking'; |
@@ -1,214 +0,19 @@ | ||
import type { Bytes, Compact, Enum, Option, Struct, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types'; | ||
import type { Struct, U8aFixed, u32 } from '@polkadot/types'; | ||
import type { ITuple } from '@polkadot/types/types'; | ||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus'; | ||
import type { MultiSignature } from '@polkadot/types/interfaces/extrinsics'; | ||
import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa'; | ||
import type { AuthoritySignature } from '@polkadot/types/interfaces/imOnline'; | ||
import type { AccountId, Consensus, H256, H512, PreRuntime, Seal, SealV0, Weight } from '@polkadot/types/interfaces/runtime'; | ||
/** @name AccountSigner */ | ||
export interface AccountSigner extends MultiSigner { | ||
import { LaneId, MessageNonce } from '../darwiniaInject'; | ||
/** @name BridgeMessageId */ | ||
export interface BridgeMessageId extends U8aFixed { | ||
} | ||
/** @name AncestryProof */ | ||
export interface AncestryProof extends ITuple<[]> { | ||
} | ||
/** @name AuthoritySet */ | ||
export interface AuthoritySet extends Struct { | ||
readonly authorities: AuthorityList; | ||
readonly set_id: SetId; | ||
} | ||
/** @name BridgedBlockHash */ | ||
export interface BridgedBlockHash extends MillauBlockHash { | ||
} | ||
/** @name BridgedBlockNumber */ | ||
export interface BridgedBlockNumber extends MillauBlockNumber { | ||
} | ||
/** @name BridgedHeader */ | ||
export interface BridgedHeader extends MillauHeader { | ||
} | ||
/** @name BridgedOpaqueCall */ | ||
export interface BridgedOpaqueCall extends Bytes { | ||
} | ||
/** @name CallOrigin */ | ||
export interface CallOrigin extends Enum { | ||
readonly isSourceRoot: boolean; | ||
readonly asSourceRoot: ITuple<[]>; | ||
readonly isTargetAccount: boolean; | ||
readonly asTargetAccount: ITuple<[SourceAccountId, MultiSigner, MultiSignature]>; | ||
readonly isSourceAccount: boolean; | ||
readonly asSourceAccount: SourceAccountId; | ||
} | ||
/** @name ChainId */ | ||
export interface ChainId extends Id { | ||
} | ||
/** @name Commit */ | ||
export interface Commit extends Struct { | ||
readonly target_hash: BridgedBlockHash; | ||
readonly target_number: BridgedBlockNumber; | ||
readonly precommits: Vec<SignedPrecommit>; | ||
} | ||
/** @name Fee */ | ||
export interface Fee extends MillauBalance { | ||
} | ||
/** @name GrandpaJustification */ | ||
export interface GrandpaJustification extends Struct { | ||
readonly round: u64; | ||
readonly commit: Commit; | ||
readonly votes_ancestries: Vec<BridgedHeader>; | ||
} | ||
/** @name Id */ | ||
export interface Id extends U8aFixed { | ||
} | ||
/** @name ImportedHeader */ | ||
export interface ImportedHeader extends Struct { | ||
readonly header: BridgedHeader; | ||
readonly requires_justification: bool; | ||
readonly is_finalized: bool; | ||
readonly signal_hash: Option<BridgedBlockHash>; | ||
} | ||
/** @name InboundLaneData */ | ||
export interface InboundLaneData extends Struct { | ||
readonly relayers: Vec<ITuple<[MessageNonce, MessageNonce, RelayerId]>>; | ||
readonly last_confirmed_nonce: MessageNonce; | ||
} | ||
/** @name InboundRelayer */ | ||
export interface InboundRelayer extends AccountId { | ||
} | ||
/** @name LaneId */ | ||
export interface LaneId extends Id { | ||
} | ||
/** @name MessageData */ | ||
export interface MessageData extends Struct { | ||
readonly payload: MessagePayload; | ||
readonly fee: Fee; | ||
} | ||
/** @name MessageFeeData */ | ||
export interface MessageFeeData extends Struct { | ||
readonly lane_id: LaneId; | ||
readonly payload: OutboundPayload; | ||
} | ||
/** @name MessageId */ | ||
export interface MessageId extends ITuple<[Id, u64]> { | ||
export interface MessageId extends ITuple<[LaneId, MessageNonce]> { | ||
} | ||
/** @name MessageKey */ | ||
export interface MessageKey extends Struct { | ||
readonly lane_id: LaneId; | ||
readonly nonce: MessageNonce; | ||
} | ||
/** @name MessageNonce */ | ||
export interface MessageNonce extends u64 { | ||
} | ||
/** @name MessagePayload */ | ||
export interface MessagePayload extends Bytes { | ||
} | ||
/** @name MessagesDeliveryProofOf */ | ||
export interface MessagesDeliveryProofOf extends Struct { | ||
readonly bridged_header_hash: BridgedBlockHash; | ||
readonly storage_proof: Vec<StorageProofItem>; | ||
readonly lane: LaneId; | ||
} | ||
/** @name MessagesProofOf */ | ||
export interface MessagesProofOf extends Struct { | ||
readonly bridged_header_hash: BridgedBlockHash; | ||
readonly storage_proof: Vec<StorageProofItem>; | ||
readonly lane: LaneId; | ||
readonly nonces_start: MessageNonce; | ||
readonly nonces_end: MessageNonce; | ||
} | ||
/** @name MillauBalance */ | ||
export interface MillauBalance extends u64 { | ||
} | ||
/** @name MillauBlockHash */ | ||
export interface MillauBlockHash extends H512 { | ||
} | ||
/** @name MillauBlockNumber */ | ||
export interface MillauBlockNumber extends u64 { | ||
} | ||
/** @name MillauDigest */ | ||
export interface MillauDigest extends Struct { | ||
readonly logs: Vec<MillauDigestItem>; | ||
} | ||
/** @name MillauDigestItem */ | ||
export interface MillauDigestItem extends Enum { | ||
readonly isOther: boolean; | ||
readonly asOther: Bytes; | ||
readonly isAuthoritiesChange: boolean; | ||
readonly asAuthoritiesChange: Vec<AuthorityId>; | ||
readonly isChangesTrieRoot: boolean; | ||
readonly asChangesTrieRoot: MillauBlockHash; | ||
readonly isSealV0: boolean; | ||
readonly asSealV0: SealV0; | ||
readonly isConsensus: boolean; | ||
readonly asConsensus: Consensus; | ||
readonly isSeal: boolean; | ||
readonly asSeal: Seal; | ||
readonly isPreRuntime: boolean; | ||
readonly asPreRuntime: PreRuntime; | ||
} | ||
/** @name MillauHeader */ | ||
export interface MillauHeader extends Struct { | ||
readonly parent_Hash: MillauBlockHash; | ||
readonly number: Compact<MillauBlockNumber>; | ||
readonly state_root: MillauBlockHash; | ||
readonly extrinsics_root: MillauBlockHash; | ||
readonly digest: MillauDigest; | ||
} | ||
/** @name MultiSigner */ | ||
export interface MultiSigner extends Enum { | ||
readonly isEd25519: boolean; | ||
readonly asEd25519: H256; | ||
readonly isSr25519: boolean; | ||
readonly asSr25519: H256; | ||
readonly isEcdsa: boolean; | ||
readonly asEcdsa: U8aFixed; | ||
} | ||
/** @name OutboundLaneData */ | ||
export interface OutboundLaneData extends Struct { | ||
readonly latest_generated_nonce: MessageNonce; | ||
readonly latest_received_nonce: MessageNonce; | ||
readonly oldest_unpruned_nonce: MessageNonce; | ||
readonly oldestUnprunedNonce: MessageNonce; | ||
readonly latestGeneratedNonce: MessageNonce; | ||
readonly latestReceivedNonce: MessageNonce; | ||
} | ||
/** @name OutboundMessageFee */ | ||
export interface OutboundMessageFee extends Fee { | ||
} | ||
/** @name OutboundPayload */ | ||
export interface OutboundPayload extends Struct { | ||
readonly spec_version: SpecVersion; | ||
readonly weight: Weight; | ||
readonly origin: CallOrigin; | ||
readonly call: BridgedOpaqueCall; | ||
} | ||
/** @name Parameter */ | ||
export interface Parameter extends Enum { | ||
readonly isMillauToRialtoConversionRate: boolean; | ||
readonly asMillauToRialtoConversionRate: u128; | ||
} | ||
/** @name Precommit */ | ||
export interface Precommit extends Struct { | ||
readonly target_hash: BridgedBlockHash; | ||
readonly target_number: BridgedBlockNumber; | ||
} | ||
/** @name RelayerId */ | ||
export interface RelayerId extends AccountId { | ||
} | ||
/** @name SignedPrecommit */ | ||
export interface SignedPrecommit extends Struct { | ||
readonly precommit: Precommit; | ||
readonly signature: AuthoritySignature; | ||
readonly id: AuthorityId; | ||
} | ||
/** @name SourceAccountId */ | ||
export interface SourceAccountId extends AccountId { | ||
} | ||
/** @name SpecVersion */ | ||
export interface SpecVersion extends u32 { | ||
} | ||
/** @name StorageProofItem */ | ||
export interface StorageProofItem extends Bytes { | ||
} | ||
/** @name UnrewardedRelayersState */ | ||
export interface UnrewardedRelayersState extends Struct { | ||
readonly unrewarded_relayer_entries: MessageNonce; | ||
readonly messages_in_oldest_entry: MessageNonce; | ||
readonly total_messages: MessageNonce; | ||
} | ||
export declare type PHANTOM_BRIDGES = 'bridges'; |
import type { Bytes, Compact, Enum, Option, Struct, Text, U256, U8aFixed, Vec, u128, u32, u64, u8 } from '@polkadot/types'; | ||
import type { ITuple } from '@polkadot/types/types'; | ||
import type { AccountId, Balance, BlockNumber, H160, H256, H512, Hash, Index, LockIdentifier } from '@polkadot/types/interfaces/runtime'; | ||
import type { EthereumAddress } from '@polkadot/types/interfaces/claims'; | ||
import type { AccountId, Balance, BlockNumber, H128, H160, H256, H512, Hash, Index, LockIdentifier } from '@polkadot/types/interfaces/runtime'; | ||
import type { RefCount } from '@polkadot/types/interfaces/system'; | ||
import { EraIndex } from '@polkadot/types/interfaces/staking'; | ||
export * from '../fee/types'; | ||
/** @name AccountData */ | ||
@@ -19,5 +21,2 @@ export interface AccountData extends Struct { | ||
} | ||
/** @name Address */ | ||
export interface Address extends AccountId { | ||
} | ||
/** @name AddressT */ | ||
@@ -29,2 +28,7 @@ export interface AddressT extends U8aFixed { | ||
} | ||
export interface Reasons extends Enum { | ||
readonly Fee: string; | ||
readonly Misc: string; | ||
readonly All: string; | ||
} | ||
/** @name BalanceLock */ | ||
@@ -78,5 +82,2 @@ export interface BalanceLock extends Struct { | ||
} | ||
/** @name EthereumAddress */ | ||
export interface EthereumAddress extends H160 { | ||
} | ||
/** @name EthereumBlockNumber */ | ||
@@ -148,5 +149,2 @@ export interface EthereumBlockNumber extends u64 { | ||
} | ||
/** @name H128 */ | ||
export interface H128 extends U8aFixed { | ||
} | ||
/** @name IndividualExposure */ | ||
@@ -179,5 +177,2 @@ export interface IndividualExposure extends Struct { | ||
} | ||
/** @name LookupSource */ | ||
export interface LookupSource extends AccountId { | ||
} | ||
/** @name MappedRing */ | ||
@@ -208,2 +203,14 @@ export interface MappedRing extends u128 { | ||
} | ||
export interface LaneId extends U8aFixed { | ||
} | ||
export interface MessageNonce extends u64 { | ||
} | ||
/** @name Order */ | ||
export interface Order extends Struct { | ||
readonly lane: LaneId; | ||
readonly message: MessageNonce; | ||
readonly sent_time: BlockNumber; | ||
readonly confirm_time: BlockNumber; | ||
readonly assigned_relayers: Vec<PriorRelayer>; | ||
} | ||
/** @name OtherAddress */ | ||
@@ -223,13 +230,10 @@ export interface OtherAddress extends Enum { | ||
} | ||
/** @name PalletId */ | ||
export interface PalletId extends LockIdentifier { | ||
} | ||
/** @name Power */ | ||
export interface Power extends u32 { | ||
} | ||
/** @name Reasons */ | ||
export interface Reasons extends Enum { | ||
readonly isFee: boolean; | ||
readonly isMisc: boolean; | ||
readonly isAll: boolean; | ||
/** @name PriorRelayer */ | ||
export interface PriorRelayer extends Struct { | ||
readonly id: AccountId; | ||
readonly fee: Balance; | ||
readonly valid_range: BlockNumber; | ||
} | ||
@@ -257,2 +261,8 @@ /** @name RedeemFor */ | ||
} | ||
/** @name Relayer */ | ||
export interface Relayer extends Struct { | ||
readonly id: AccountId; | ||
readonly collateral: Balance; | ||
readonly fee: Balance; | ||
} | ||
/** @name RingBalance */ | ||
@@ -311,2 +321,22 @@ export interface RingBalance extends Balance { | ||
} | ||
/** @name Token */ | ||
export interface Token extends Enum { | ||
readonly isInvalidToken: boolean; | ||
readonly isNative: boolean; | ||
readonly asNative: TokenInfo; | ||
readonly isErc20: boolean; | ||
readonly asErc20: TokenInfo; | ||
} | ||
/** @name TokenInfo */ | ||
export interface TokenInfo extends Struct { | ||
readonly address: H160; | ||
readonly value: Option<U256>; | ||
readonly option: Option<TokenOption>; | ||
} | ||
/** @name TokenOption */ | ||
export interface TokenOption extends Struct { | ||
readonly name: Bytes; | ||
readonly symbol: Bytes; | ||
readonly decimal: u8; | ||
} | ||
/** @name TransactionOutcome */ | ||
@@ -334,2 +364,7 @@ export interface TransactionOutcome extends Struct { | ||
} | ||
export interface ValidatorPrefsWithBlocked extends Struct { | ||
} | ||
/** @name ValidatorPrefs */ | ||
export interface ValidatorPrefs extends ValidatorPrefsWithBlocked { | ||
} | ||
export declare type PHANTOM_DARWINIAINJECT = 'darwiniaInject'; |
@@ -1,1 +0,17 @@ | ||
"use strict"; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _types = require("../fee/types"); | ||
Object.keys(_types).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _types[key]; | ||
} | ||
}); | ||
}); |
import type { Balance } from '@polkadot/types/interfaces/runtime'; | ||
/** @name Fee */ | ||
export declare type FeeMarketFee = Balance; | ||
export interface Fee extends Balance { | ||
} | ||
export declare type PHANTOM_FEE = 'fee'; |
import type { Struct, Text, u64 } from '@polkadot/types'; | ||
import type { BlockNumber } from '@polkadot/types/interfaces/runtime'; | ||
/** @name BlockNumberFor */ | ||
export interface BlockNumberFor extends BlockNumber { | ||
} | ||
/** @name MmrNodesPruningConfiguration */ | ||
@@ -7,0 +3,0 @@ export interface MmrNodesPruningConfiguration extends Struct { |
@@ -0,18 +1,11 @@ | ||
import type { AccountId, Hash, BlockNumber } from '@polkadot/types/interfaces/runtime'; | ||
import type { Enum, Struct } from '@polkadot/types'; | ||
import type { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime'; | ||
export interface ProxyAnnouncement extends Struct { | ||
real: AccountId; | ||
callHash: Hash; | ||
height: BlockNumber; | ||
} | ||
/** @name Announcement */ | ||
export interface Announcement extends ProxyAnnouncement { | ||
} | ||
/** @name ProxyAnnouncement */ | ||
export interface ProxyAnnouncement extends Struct { | ||
readonly real: AccountId; | ||
readonly callHash: Hash; | ||
readonly height: BlockNumber; | ||
} | ||
/** @name ProxyDefinition */ | ||
export interface ProxyDefinition extends Struct { | ||
readonly delegate: AccountId; | ||
readonly proxyType: ProxyType; | ||
readonly delay: BlockNumber; | ||
} | ||
/** @name ProxyType */ | ||
@@ -19,0 +12,0 @@ export interface ProxyType extends Enum { |
{ | ||
"name": "@darwinia/types", | ||
"version": "2.6.8-1", | ||
"version": "2.6.8-2", | ||
"description": "Implementation of the Parity codec", | ||
@@ -25,4 +25,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@darwinia/types-known": "^2.6.8-1" | ||
"@darwinia/types-known": "^2.6.8-2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
550701
11380