diff --git a/packages/apps-config/src/api/spec/basilisk.ts b/packages/apps-config/src/api/spec/basilisk.ts new file mode 100644 index 0000000000..6bdf1de5cf --- /dev/null +++ b/packages/apps-config/src/api/spec/basilisk.ts @@ -0,0 +1,86 @@ +// Copyright 2017-2021 @polkadot/apps-config authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import type { OverrideBundleDefinition } from '@polkadot/types/types'; + +/* eslint-disable sort-keys */ + +const definitions: OverrideBundleDefinition = { + alias: { tokens: { AccountData: 'OrmlAccountData' } }, + types: [ + { + // on all versions + minmax: [0, undefined], + types: { + AssetPair: { asset_in: 'AssetId', asset_out: 'AssetId' }, + Amount: 'i128', + AmountOf: 'Amount', + Address: 'AccountId', + OrmlAccountData: { free: 'Balance', frozen: 'Balance', reserved: 'Balance' }, + Fee: { numerator: 'u32', denominator: 'u32' }, + BalanceInfo: { amount: 'Balance', assetId: 'AssetId' }, + Chain: { genesisHash: 'Vec', lastBlockHash: 'Vec' }, + Currency: 'AssetId', + CurrencyId: 'AssetId', + CurrencyIdOf: 'AssetId', + Intention: { + who: 'AccountId', + asset_sell: 'AssetId', + asset_buy: 'AssetId', + amount: 'Balance', + discount: 'bool', + sell_or_buy: 'IntentionType' + }, + IntentionId: 'Hash', + IntentionType: { _enum: ['SELL', 'BUY'] }, + LookupSource: 'AccountId', + Price: 'Balance', + ClassId: 'u64', + TokenId: 'u64', + ClassData: { is_pool: 'bool' }, + TokenData: { locked: 'bool' }, + ClassInfo: { metadata: 'Vec', total_issuance: 'TokenId', owner: 'AccountId', data: 'ClassData' }, + TokenInfo: { metadata: 'Vec', owner: 'AccountId', data: 'TokenData' }, + ClassInfoOf: 'ClassInfo', + TokenInfoOf: 'TokenInfo', + ClassIdOf: 'ClassId', + TokenIdOf: 'TokenId', + OrderedSet: 'Vec', + VestingSchedule: { + start: 'BlockNumber', + period: 'BlockNumber', + period_count: 'u32', + per_period: 'Compact' + }, + VestingScheduleOf: 'VestingSchedule', + LBPAssetInfo: { id: 'AssetId', amount: 'Balance', initial_weight: 'LBPWeight', final_weight: 'LBPWeight' }, + LBPWeight: 'u128', + WeightPair: { weight_a: 'LBPWeight', weight_b: 'LBPWeight' }, + WeightCurveType: { _enum: ['Linear'] }, + PoolId: 'AccountId', + BalanceOf: 'Balance', + AssetType: { _enum: ['Token'] }, + Pool: { + owner: 'AccountId', + start: 'BlockNumber', + end: 'BlockNumber', + assets: 'AssetPair', + initial_weights: 'WeightPair', + final_weights: 'WeightPair', + last_weight_update: 'BlockNumber', + last_weights: 'WeightPair', + weight_curve: 'WeightCurveType', + pausable: 'bool', + paused: 'bool', + fee: 'Fee', + fee_receiver: 'AccountId' + }, + AssetNativeLocation: 'MultiLocation', + AssetDetails: { name: 'Vec', asset_type: 'AssetType', locked: 'bool' }, + AssetMetadata: { symbol: 'Vec', decimals: 'u8' } + } + } + ] +}; + +export default definitions; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index 1efd865deb..ed599afa74 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -6,6 +6,7 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types'; import acala from './acala'; import apron from './apron'; import aresParachain from './ares-parachain'; +import basilisk from './basilisk'; import beresheet from './beresheet'; import bifrost from './bifrost'; import bifrostAsgard from './bifrost-asgard'; @@ -115,7 +116,7 @@ const spec: Record = { apron, 'ares-parachain': aresParachain, asgard: bifrostAsgard, - basilisk: hydrate, + basilisk, beresheet, bifrost: bifrost, 'bifrost-parachain': bifrostParachain,