@polkadot/types/types#OverrideBundleDefinition TypeScript Examples
The following examples show how to use
@polkadot/types/types#OverrideBundleDefinition.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: hydrate.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Amount: 'i128',
AmountOf: 'Amount',
Address: 'AccountId',
BalanceInfo: {
amount: 'Balance',
assetId: 'AssetId'
},
CurrencyId: 'AssetId',
CurrencyIdOf: 'AssetId',
Intention: {
who: 'AccountId',
asset_sell: 'AssetId',
asset_buy: 'AssetId',
amount: 'Balance',
discount: 'bool',
sell_or_buy: 'IntentionType'
},
IntentionId: 'u128',
IntentionType: {
_enum: [
'SELL',
'BUY'
]
},
LookupSource: 'AccountId',
OrderedSet: 'Vec<AssetId>',
Price: 'Balance'
}
}
]
}
Example #2
Source File: zero.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId',
Campaign: {
id: 'Hash',
manager: 'AccountId',
deposit: 'Balance',
expiry: 'BlockNumber',
cap: 'Balance',
name: 'Vec<u8>',
protocol: 'u8',
status: 'u8'
},
EventMessage: 'Vec<u8>',
Nonce: 'u64'
}
}
]
}
Example #3
Source File: vln.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
minmax: [0, undefined],
types: {
Asset: {
_enum: {
Collateral: 'Collateral',
Fiat: 'Fiat',
Usdv: null
}
},
Collateral: {
_enum: [
'Usdc'
]
},
Fiat: {
_enum: [
'Cop',
'Vez'
]
},
CurrencyId: 'Asset',
OracleKey: 'Asset',
OracleValue: 'FixedU128',
CurrencyIdOf: 'Asset',
TimestampedValue: {
value: 'OracleValue',
timestamp: 'Moment'
},
TimestampedValueOf: 'TimestampedValue',
OrderedSet: 'Vec<AccountId>',
Share: 'Permill'
}
}]
}
Example #4
Source File: ternoa.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
NFTId: 'u32',
NFTIdOf: 'NFTId',
NFTData: {
owner: 'AccountId',
details: 'NFTDetails',
sealed: 'bool',
locked: 'bool'
},
NFTDetails: {
offchain_uri: 'Vec<u8>'
},
LookupSource: 'AccountId'
}
}
]
}
Example #5
Source File: subsocial.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: typesFromDefs(subsocialDefinitions)
}
]
}
Example #6
Source File: subdao.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {}
}
]
}
Example #7
Source File: sgc.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
TokenId: 'u64',
InstanceId: 'u64',
ExchangeId: 'u32',
TokenSymbol: {
_enum: {
SGC: 0,
DOT: 1,
ACA: 2,
AUSD: 3
}
},
CurrencyId: {
_enum: {
Token: 'TokenSymbol'
}
},
CurrencyIdOf: 'CurrencyId',
CollectionId: 'u64',
AssetId: '64'
}
}
]
}
Example #8
Source File: robonomics.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Record: 'Vec<u8>',
TechnicalParam: 'Vec<u8>',
TechnicalReport: 'Vec<u8>',
EconomicalParam: '{}',
ProofParam: 'MultiSignature',
LiabilityIndex: 'u64',
ValidationFunctionParams: {
max_code_size: 'u32',
relay_chain_height: 'u32',
code_upgrade_allowed: 'Option<u32>'
}
}
}
]
}
Example #9
Source File: plasm-parachain.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId',
ChainId: {
_enum: {
RelayChain: null,
Parachain: 'ParaId'
}
},
XCurrencyId: {
chain_id: 'ChainId',
currency_id: 'Bytes'
},
CurrencyIdOf: 'CurrencyId',
CurrencyId: {
_enum: {
Token: 'TokenSymbol'
}
},
TokenSymbol: {
_enum: ['ACA', 'AUSD', 'DOT', 'XBTC', 'LDOT', 'RENBTC', 'SDN', 'PLM']
},
AmountOf: 'Amount',
Amount: 'i128'
}
}
]
}
Example #10
Source File: phala.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
EcdsaSignature: '[u8; 65]',
EthereumAddress: 'H160',
EthereumTxHash: 'H256',
MiningInfo: {
isMining: 'bool',
startBlock: 'Option<BlockNumber>'
},
PayoutPrefs: {
commission: 'u32',
target: 'AccountId'
},
Score: {
features: 'Vec<u32>',
overallScore: 'u32'
},
StashInfo: {
controller: 'AccountId',
payoutPrefs: 'PayoutPrefs'
},
WorkerInfo: {
machineId: 'Vec<u8>',
pubkey: 'Vec<u8>',
lastUpdated: 'u64',
score: 'Option<Score>',
status: 'i32'
}
}
}
]
}
Example #11
Source File: jupiter.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
LookupSource: 'MultiAddress',
Address: 'MultiAddress',
FullIdentification: 'AccountId',
AuthorityState: {
_enum: [
'Working',
'Waiting'
]
},
EraIndex: 'u32',
ActiveEraInfo: {
index: 'EraIndex',
start: 'Option<u64>'
},
UnappliedSlash: {
validator: 'AccountId',
reporters: 'Vec<AccountId>'
}
}
}
]
}
Example #12
Source File: jupiter-rococo.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
LookupSource: 'MultiAddress',
Address: 'MultiAddress'
}
}
]
}
Example #13
Source File: integritee.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'MultiAddress',
Enclave: {
mrenclave: 'Hash',
pubkey: 'AccountId',
timestamp: 'u64',
url: 'Text'
},
LookupSource: 'MultiAddress',
Request: {
cyphertext: 'Vec<u8>',
shard: 'ShardIdentifier'
},
ShardIdentifier: 'Hash'
}
}
]
}
Example #14
Source File: hanonycash.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Difficulty: 'U256',
DifficultyAndTimestamp: {
difficulty: 'Difficulty',
timestamp: 'Moment'
},
Era: {
genesisBlockHash: 'H256',
finalBlockHash: 'H256',
finalStateRoot: 'H256'
},
RefCount: 'u8'
}
}
]
}
Example #15
Source File: index.ts From moonbeam with GNU General Public License v3.0 | 6 votes |
moonbeamDefinitionsDeprecated = {
...moonbeamDefinitions,
types: [
...(moonbeamDefinitions.types as OverrideVersionedType[]),
{
minmax: [900, undefined],
types: TYPES_900_undefined_deprecated,
},
],
} as OverrideBundleDefinition
Example #16
Source File: ares-parachain.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId'
}
}
]
}
Example #17
Source File: canvas.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId',
Schedule: 'ScheduleTo258'
}
}
]
}
Example #18
Source File: cumulus-test-parachain.ts From crust-apps with Apache License 2.0 | 6 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId',
RefCount: 'u8'
}
}
]
}
Example #19
Source File: nodle.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Amendment: 'Call',
Application: {
candidate: 'AccountId',
candidate_deposit: 'Balance',
challenged_block: 'BlockNumber',
challenger: 'Option<AccountId>',
challenger_deposit: 'Option<Balance>',
created_block: 'BlockNumber',
metadata: 'Vec<u8>',
voters_against: 'Vec<(AccountId, Balance)>',
voters_for: 'Vec<(AccountId, Balance)>',
votes_against: 'Option<Balance>',
votes_for: 'Option<Balance>'
},
CertificateId: 'AccountId',
RootCertificate: {
child_revocations: 'Vec<CertificateId>',
created: 'BlockNumber',
key: 'CertificateId',
owner: 'AccountId',
renewed: 'BlockNumber',
revoked: 'bool',
validity: 'BlockNumber'
},
VestingSchedule: {
start: 'BlockNumber',
period: 'BlockNumber',
period_count: 'u32',
per_period: 'Balance'
},
VestingScheduleOf: 'VestingSchedule'
}
}
]
}
Example #20
Source File: zenlink.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId',
RefCount: 'u32',
AccountInfo: 'AccountInfoWithRefCount',
PairId: 'u32',
Pair: {
token_0: 'AssetId',
token_1: 'AssetId',
account: 'AccountId',
total_liquidity: 'TokenBalance',
lp_asset_id: 'AssetId'
},
PairInfo: {
token_0: 'AssetId',
token_1: 'AssetId',
account: 'AccountId',
total_liquidity: 'TokenBalance',
holding_liquidity: 'TokenBalance',
reserve_0: 'TokenBalance',
reserve_1: 'TokenBalance',
lp_asset_id: 'AssetId'
},
AssetId: {
chain_id: 'u32',
module_index: 'u8',
asset_index: 'u32'
},
TokenId: 'u32',
AssetProperty: {
_enum: {
FOREIGN: null,
LP: 'LpProperty'
}
},
LpProperty: {
token_0: 'AssetId',
token_1: 'AssetId'
},
TokenBalance: 'u128'
}
}
]
}
Example #21
Source File: bitcountry.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
Balance: 'u128',
AssetId: 'u64',
BlockNumber: 'u32',
AssetInfo: {
owner: 'AccountId',
data: 'AssetData'
},
AssetData: {
name: 'Vec<u8>',
description: 'Vec<u8>',
properties: 'Vec<u8>',
supporters: 'Vec<AccountId>'
},
AuctionId: 'u64',
AuctionItem: {
asset_id: 'AssetId',
recipient: 'AccountId',
initial_amount: 'Balance',
amount: 'Balance',
start_time: 'u32',
ed_time: 'u32'
},
AuctionInfo: {
bid: 'Option<(AccountId,Balance)>',
start: 'BlockNumber',
end: 'Option<BlockNumber>'
},
RentId: 'u64 ',
RentalInfo: {
owner: 'AccountId',
start: 'BlockNumber',
end: 'Option<BlockNumber>',
price_per_block: 'Balance'
},
CountryId: 'u64',
CollectionId: 'u64',
CurrencyId: 'u32',
TokenId: 'u64',
CurrencyIdOf: 'CurrencyId',
BalanceIdOf: 'Balance'
}
}
]
}
Example #22
Source File: centrifuge-chain.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
AnchorData: {
id: 'H256',
docRoot: 'H256',
anchoredBlock: 'u64'
},
Fee: {
key: 'Hash',
price: 'Balance'
},
PreCommitData: {
signingRoot: 'H256',
identity: 'H256',
expirationBlock: 'u64'
},
Proof: {
leafHash: 'H256',
sortedHashes: 'H256'
},
// MultiAccount
MultiAccountData: {
threshold: 'u16',
signatories: 'Vec<AccountId>',
deposit: 'Balance',
depositor: 'AccountId'
},
// Bridge constants
ChainId: 'u8',
ResourceId: '[u8; 32]',
'chainbridge::ChainId': 'u8',
DepositNonce: 'u64',
// NFT
RegistryId: 'H160',
TokenId: 'U256',
AssetId: {
registryId: 'RegistryId',
tokenId: 'TokenId'
},
RegistryInfo: {
ownerCanBurn: 'bool',
fields: 'Vec<Bytes>'
},
AssetInfo: {
metadata: 'Bytes'
},
ProofMint: {
value: 'Bytes',
property: 'Bytes',
salt: '[u8; 32]',
hashes: 'Vec<Hash>'
},
MintInfo: {
anchorId: 'Hash',
staticHashes: '[Hash; 3]',
proofs: 'Vec<ProofMint>'
}
}
}
]
}
Example #23
Source File: realis.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
TokenId: 'u32',
Rarity: {
_enum: [
'Common',
'Uncommon',
'Rare',
'Mythical',
'Legendary'
]
},
Socket: {
_enum: [
'Head',
'Body',
'LegLeft',
'LegRight',
'ArmLeft',
'ArmRight',
'Weapon'
]
},
Params: {
strength: 'u8',
agility: 'u8',
intelligence: 'u8'
},
Token: {
rarity: 'Rarity',
socket: 'Socket',
params: 'Params'
}
}
}
]
}
Example #24
Source File: polkadex.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
OrderType: {
_enum: [
'BidLimit',
'BidMarket',
'AskLimit',
'AskMarket'
]
},
Order: {
id: 'Hash',
trading_pair: 'Hash',
trader: 'AccountId',
price: 'FixedU128',
quantity: 'FixedU128',
order_type: 'OrderType'
},
Order4RPC: {
id: '[u8;32]',
trading_pair: '[u8;32]',
trader: '[u8;32]',
price: 'Vec<u8>',
quantity: 'Vec<u8>',
order_type: 'OrderType'
},
MarketData: {
low: 'FixedU128',
high: 'FixedU128',
volume: 'FixedU128',
open: 'FixedU128',
close: 'FixedU128'
},
LinkedPriceLevel: {
next: 'Option<FixedU128>',
prev: 'Option<FixedU128>',
orders: 'Vec<Order>'
},
LinkedPriceLevelRpc: {
next: 'Vec<u8>',
prev: 'Vec<u8>',
orders: 'Vec<Order4RPC>'
},
Orderbook: {
trading_pair: 'Hash',
base_asset_id: 'u32',
quote_asset_id: 'u32',
best_bid_price: 'FixedU128',
best_ask_price: 'FixedU128'
},
OrderbookRPC: {
trading_pair: '[u8;32]',
base_asset_id: 'u32',
quote_asset_id: 'u32',
best_bid_price: 'Vec<u8>',
best_ask_price: 'Vec<u8>'
},
FrontendPricelevel: {
price: 'FixedU128',
quantity: 'FixedU128'
},
OrderbookUpdates: {
bids: 'Vec<FrontendPricelevel>',
asks: 'Vec<FrontendPricelevel>'
},
LookupSource: 'AccountId',
Address: 'AccountId'
}
}
]
}
Example #25
Source File: polkabtc.ts From crust-apps with Apache License 2.0 | 5 votes |
extended = definitions as OverrideBundleDefinition
Example #26
Source File: plasm.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
AuthorityId: 'AccountId',
AuthorityVote: 'u32',
Claim: {
amount: 'u128',
approve: 'BTreeSet<AuthorityId>',
complete: 'bool',
decline: 'BTreeSet<AuthorityId>',
params: 'Lockdrop'
},
ClaimId: 'H256',
ClaimVote: {
approve: 'bool',
authority: 'u16',
claim_id: 'ClaimId'
},
DollarRate: 'u128',
Keys: 'SessionKeys2',
Lockdrop: {
duration: 'u64',
public_key: '[u8; 33]',
transaction_hash: 'H256',
type: 'u8',
value: 'u128'
},
PredicateHash: 'H256',
RefCount: 'u8',
TickerRate: {
authority: 'u16',
btc: 'u128',
eth: 'u128'
}
}
}
]
}
Example #27
Source File: clover-rococo.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Amount: 'i128',
AmountOf: 'Amount',
Balance: 'u128',
CurrencyId: {
_enum: ['CLV', 'CUSDT', 'DOT', 'CETH']
},
CurrencyIdOf: 'CurrencyId',
CurrencyTypeEnum: {
_enum: ['CLV', 'CUSDT', 'DOT', 'CETH']
},
PairKey: 'u64',
Rate: 'FixedU128',
Ratio: 'FixedU128',
Price: 'FixedU128',
Share: 'u128',
OracleKey: 'CurrencyId',
CurrencyInfo: {
id: 'CurrencyId',
name: 'CurrencyTypeEnum'
},
ExchangeInfo: {
balance: 'Balance',
routes: 'Vec<CurrencyTypeEnum>'
},
PoolId: {
_enum: {
Swap: 'u64'
}
},
EcdsaSignature: '[u8; 65]',
EvmAddress: 'H160',
ExitSucceed: {
_enum: ['Stopped', 'Returned', 'Suicided']
},
ExitRevert: {
_enum: ['Reverted']
},
ExitError: {
_enum: [
'StackUnderflow', 'StackOverflow', 'InvalidJump', 'InvalidRange', 'DesignatedInvalid', 'CallTooDeep',
'CreateCollision', 'CreateContractLimit', 'OutOfOffset', 'OutOfGas', 'OutOfFund', 'PCUnderflow', 'CreateEmpty',
'Other<String>'
]
},
ExitFatal: {
_enum: ['NotSupported', 'UnhandledInterrupt', 'CallErrorAsFatal', 'Other<String>']
},
ExitReason: {
_enum: ['Succeed<ExitSucceed>',
'Error<ExitError>',
'Revert<ExitRevert>',
'Fatal<ExitFatal>'
]
}
}
}
]
}
Example #28
Source File: phala-parachain.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
EthereumAddress: 'H160',
EcdsaSignature: '[u8; 65]',
EthereumTxHash: 'H256',
WorkerStateEnum: {
_enum: {
Empty: null,
Free: null,
Gatekeeper: null,
MiningPending: null,
Mining: 'BlockNumber',
MiningStopping: null
}
},
WorkerInfo: {
machineId: 'Vec<u8>',
pubkey: 'Vec<u8>',
lastUpdated: 'u64',
state: 'WorkerStateEnum',
score: 'Option<Score>'
},
Score: {
overallScore: 'u32',
features: 'Vec<u32>'
},
StashInfo: {
controller: 'AccountId',
payoutPrefs: 'PayoutPrefs'
},
PayoutPrefs: {
commission: 'u32',
target: 'AccountId'
},
BlockRewardInfo: {
seed: 'U256',
onlineTarget: 'U256',
computeTarget: 'U256'
},
RoundInfo: {
round: 'u32',
startBlock: 'BlockNumber'
},
RoundStats: {
round: 'u32',
onlineWorkers: 'u32',
computeWorkers: 'u32',
fracTargetOnlineReward: 'u32',
totalPower: 'u32'
},
MinerStatsDelta: {
numWorker: 'i32',
numPower: 'i32'
}
}
}
]
}
Example #29
Source File: kulupu.ts From crust-apps with Apache License 2.0 | 5 votes |
definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: {
CurvePoint: {
start: 'BlockNumber',
reward: 'Balance',
taxation: 'Perbill'
},
Difficulty: 'U256',
DifficultyAndTimestamp: {
difficulty: 'Difficulty',
timestamp: 'Moment'
},
Era: {
genesisBlockHash: 'H256',
finalBlockHash: 'H256',
finalStateRoot: 'H256'
}
}
},
{
// swap to MultiAddress in runtime 13
minmax: [13, undefined],
types: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress'
}
},
{
// enable pallet-lockdrop in runtime 17
minmax: [17, undefined],
types: {
CampaignIdentifier: '[u8; 4]'
}
}
]
}