From 37a3ecb76ac37a8bbe52f9b6fcba47cabc2cdde2 Mon Sep 17 00:00:00 2001 From: Yiwei Li <77662702+banananeko@users.noreply.github.com> Date: Mon, 16 Jan 2023 17:51:41 +1300 Subject: [PATCH] add OnFinality endpoint for Ajuna (#8818) * add back OnFinality endpoint for Quartz * add back OnFinality endpoints for Parallel, Heiko, and Clover * add OnFinality endpoint for Bifrost * add OnFinality endpoint for HydraDX * add OnFinality endpoint for Ajuna --- packages/apps-config/src/api/typesBundle.ts | 1383 ++--------------- .../src/endpoints/productionRelayPolkadot.ts | 3 +- 2 files changed, 135 insertions(+), 1251 deletions(-) diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 881241a16c..1fb7a6ab7e 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -22048,41 +22048,13 @@ export const typesBundle = { 264 ], "types": { - "AccountData": { - "free": "Balance" - }, - "AccountIndex": "u32", "AccountInfo": { "nonce": "Index", "consumers": "RefCount", - "providers": "RefCount", - "sufficients": "RefCount", - "data": "AccountData" + "providers": "RefCount" }, - "AccountType": { - "_enum": { - "Id32": "[u8; 32]", - "Key20": "[u8; 20]" - } - }, - "Address": "MultiAddress", - "Asset": { - "0": "AssetIdInnerType" - }, - "AssetData": { - "id": "Asset", - "lot": "FixedU128", - "price_step": "FixedU128", - "maker_fee": "FixedU128", - "taker_fee": "FixedU128", - "asset_xcm_data": "Option", - "debt_weight": "DebtWeightType", - "buyout_priority": "u64", - "asset_type": "AssetType", - "is_dex_enabled": "bool" - }, - "AssetId": "Asset", - "AssetIdInnerType": "u64", + "Address": "AccountId", + "Asset": "Currency", "AssetMetrics": { "period_start": "Duration", "period_end": "Duration", @@ -22090,30 +22062,13 @@ export const typesBundle = { "volatility": "FixedNumber", "correlations": "Vec<(Asset, FixedNumber)>" }, - "AssetName": "Vec", - "AssetType": { - "_enum": { - "Native": null, - "Physical": null, - "Synthetic": null, - "Lp": "PoolId" - } - }, - "AssetXcmData": { - "multi_location": "MultiLocation", - "decimals": "u8" - }, "Balance": "u64", "BalanceOf": "Balance", "BalancesAggregate": { "total_issuance": "Balance", "total_debt": "Balance" }, - "BestPrice": { - "ask": "Option", - "bid": "Option" - }, - "BlockNumber": "u32", + "BlockNumber": "u64", "CapVec": { "head_index": "u32", "len_cap": "u32", @@ -22122,8 +22077,8 @@ export const typesBundle = { "ChainId": "u8", "Currency": { "_enum": [ - "UNKNOWN", - "Eqd", + "Unknown", + "Usd", "Eq", "Eth", "Btc", @@ -22132,15 +22087,12 @@ export const typesBundle = { "Crv" ] }, - "ChunkKey": "u64", "DataPoint": { "price": "u64", "account_id": "AccountId", "block_number": "BlockNumber", "timestamp": "u64" }, - "DebtWeightType": "i128", - "DebtWeightTypeInner": "i128", "DepositNonce": "u64", "Duration": { "secs": "u64", @@ -22155,80 +22107,16 @@ export const typesBundle = { "correlations": "Vec", "covariances": "Vec" }, - "FinancialRecalcPeriodMs": "u64", "FixedI64": "i64", "FixedNumber": "u128", - "FixedU128": "u128", "Keys": "SessionKeys3", - "LookupSource": "AccountIdLookup", - "MarginState": { - "_enum": { - "Good": null, - "SubGood": null, - "MaintenanceStart": "u64", - "MaintenanceIsGoing": "u64", - "MaintenanceTimeOver": "u64", - "MaintenanceEnd": null, - "SubCritical": null - } - }, - "MaxCountOfAssetsRecalcPerBlock": "i32", - "Number": "FixedU128", - "OperationRequestLiqFm": { - "authority_index": "AuthIndex", - "validators_len": "u32", - "block_num": "BlockNumber" - }, + "LookupSource": "AccountId", "OperationRequest": { "account": "AccountId", "authority_index": "AuthIndex", "validators_len": "u32", "block_num": "BlockNumber" }, - "OperationRequestDexDeleteOrder": { - "asset": "Asset", - "order_id": "OrderId", - "price": "FixedI64", - "who": "AccountId", - "buyout": "Option", - "authority_index": "AuthIndex", - "validators_len": "u32", - "block_num": "BlockNumber" - }, - "Order": { - "order_id": "OrderId", - "account_id": "AccountId", - "side": "OrderSide", - "price": "FixedI64", - "amount": "FixedU128", - "created_at": "u64", - "expiration_time": "u64" - }, - "OrderType": { - "_enum": { - "Limit": "FixedI64", - "Market": null - } - }, - "OrderId": "u64", - "OrderSide": { - "_enum": [ - "Buy", - "Sell" - ] - }, - "PoolId": "u32", - "PoolInfo": { - "owner": "AccountId", - "pool_asset": "AssetId", - "assets": "Vec", - "amplification": "Number", - "fee": "Permill", - "admin_fee": "Permill", - "balances": "Vec", - "total_balances": "Vec" - }, - "PoolTokenIndex": "u32", "PortfolioMetrics": { "period_start": "Duration", "period_end": "Duration", @@ -22241,12 +22129,7 @@ export const typesBundle = { "latest_timestamp": "Duration", "prices": "CapVec" }, - "PricePayload": { - "public": "[u8; 33]", - "asset": "Asset", - "price": "FixedI64", - "block_number": "BlockNumber" - }, + "PricePayload": "Data", "PricePeriod": { "_enum": [ "Min", @@ -22259,7 +22142,6 @@ export const typesBundle = { "PricePoint": { "block_number": "BlockNumber", "timestamp": "u64", - "last_fin_recalc_timestamp": "Timestamp", "price": "u64", "data_points": "Vec" }, @@ -22282,7 +22164,6 @@ export const typesBundle = { "expiry": "BlockNumber" }, "ResourceId": "[u8; 32]", - "Signature": "u32", "SignedBalance": { "_enum": { "Positive": "Balance", @@ -22296,7 +22177,6 @@ export const typesBundle = { "Lender" ] }, - "Timestamp": "u64", "TotalAggregates": { "collateral": "Balance", "debt": "Balance" @@ -22311,22 +22191,18 @@ export const typesBundle = { "TreasuryEqBuyout", "TreasuryBuyEq", "Subaccount", - "Lock", - "Unlock", - "Claim", - "CurveFeeWithdraw" + "Lock" ] }, "UserGroup": { "_enum": [ - "UNKNOWN", + "Unknown", "Balances", "Bailsmen", "Borrowers", "Lenders" ] }, - "UnsignedPriorityPair": "(u64, u64)", "VestingInfo": { "locked": "Balance", "perBlock": "Balance", @@ -22339,292 +22215,7 @@ export const typesBundle = { 265, null ], - "types": { - "AccountData": { - "free": "Balance" - }, - "AccountIndex": "u32", - "AccountInfo": { - "nonce": "Index", - "consumers": "RefCount", - "providers": "RefCount", - "sufficients": "RefCount", - "data": "AccountData" - }, - "AccountType": { - "_enum": { - "Id32": "[u8; 32]", - "Key20": "[u8; 20]" - } - }, - "Address": "MultiAddress", - "Asset": { - "0": "AssetIdInnerType" - }, - "AssetData": { - "id": "Asset", - "lot": "FixedU128", - "price_step": "FixedU128", - "maker_fee": "FixedU128", - "taker_fee": "FixedU128", - "asset_xcm_data": "Option", - "debt_weight": "DebtWeightType", - "buyout_priority": "u64", - "asset_type": "AssetType", - "is_dex_enabled": "bool" - }, - "AssetId": "Asset", - "AssetIdInnerType": "u64", - "AssetMetrics": { - "period_start": "Duration", - "period_end": "Duration", - "returns": "Vec", - "volatility": "FixedNumber", - "correlations": "Vec<(Asset, FixedNumber)>" - }, - "AssetName": "Vec", - "AssetType": { - "_enum": { - "Native": null, - "Physical": null, - "Synthetic": null, - "Lp": "PoolId" - } - }, - "AssetXcmData": { - "multi_location": "MultiLocation", - "decimals": "u8" - }, - "Balance": "u64", - "BalanceOf": "Balance", - "BalancesAggregate": { - "total_issuance": "Balance", - "total_debt": "Balance" - }, - "BestPrice": { - "ask": "Option", - "bid": "Option" - }, - "BlockNumber": "u32", - "CapVec": { - "head_index": "u32", - "len_cap": "u32", - "items": "Vec" - }, - "ChainId": "u8", - "Currency": { - "_enum": [ - "UNKNOWN", - "Eqd", - "Eq", - "Eth", - "Btc", - "Eos", - "Dot", - "Crv" - ] - }, - "ChunkKey": "u64", - "DataPoint": { - "price": "u64", - "account_id": "AccountId", - "block_number": "BlockNumber", - "timestamp": "u64" - }, - "DebtWeightType": "i128", - "DebtWeightTypeInner": "i128", - "DepositNonce": "u64", - "Duration": { - "secs": "u64", - "nanos": "u32" - }, - "FinancialMetrics": { - "period_start": "Duration", - "period_end": "Duration", - "assets": "Vec", - "mean_returns": "Vec", - "volatilities": "Vec", - "correlations": "Vec", - "covariances": "Vec" - }, - "FinancialRecalcPeriodMs": "u64", - "FixedI64": "i64", - "FixedNumber": "u128", - "FixedU128": "u128", - "Keys": "SessionKeys3", - "LookupSource": "AccountIdLookup", - "MarginState": { - "_enum": { - "Good": null, - "SubGood": null, - "MaintenanceStart": "u64", - "MaintenanceIsGoing": "u64", - "MaintenanceTimeOver": "u64", - "MaintenanceEnd": null, - "SubCritical": null - } - }, - "MaxCountOfAssetsRecalcPerBlock": "i32", - "Number": "FixedU128", - "OperationRequestLiqFm": { - "authority_index": "AuthIndex", - "validators_len": "u32", - "block_num": "BlockNumber" - }, - "OperationRequest": { - "account": "AccountId", - "authority_index": "AuthIndex", - "validators_len": "u32", - "block_num": "BlockNumber" - }, - "OperationRequestDexDeleteOrder": { - "asset": "Asset", - "order_id": "OrderId", - "price": "FixedI64", - "who": "AccountId", - "buyout": "Option", - "authority_index": "AuthIndex", - "validators_len": "u32", - "block_num": "BlockNumber" - }, - "Order": { - "order_id": "OrderId", - "account_id": "AccountId", - "side": "OrderSide", - "price": "FixedI64", - "amount": "FixedU128", - "created_at": "u64", - "expiration_time": "u64" - }, - "OrderType": { - "_enum": { - "Limit": "FixedI64", - "Market": null - } - }, - "OrderId": "u64", - "OrderSide": { - "_enum": [ - "Buy", - "Sell" - ] - }, - "PoolId": "u32", - "PoolInfo": { - "owner": "AccountId", - "pool_asset": "AssetId", - "assets": "Vec", - "amplification": "Number", - "fee": "Permill", - "admin_fee": "Permill", - "balances": "Vec", - "total_balances": "Vec" - }, - "PoolTokenIndex": "u32", - "PortfolioMetrics": { - "period_start": "Duration", - "period_end": "Duration", - "z_score": "u32", - "volatility": "FixedNumber", - "value_at_risk": "FixedNumber" - }, - "Price": "u128", - "PriceLog": { - "latest_timestamp": "Duration", - "prices": "CapVec" - }, - "PricePayload": { - "public": "[u8; 33]", - "asset": "Asset", - "price": "FixedI64", - "block_number": "BlockNumber" - }, - "PricePeriod": { - "_enum": [ - "Min", - "TenMin", - "Hour", - "FourHour", - "Day" - ] - }, - "PricePoint": { - "block_number": "BlockNumber", - "timestamp": "u64", - "last_fin_recalc_timestamp": "Timestamp", - "price": "u64", - "data_points": "Vec" - }, - "PriceUpdate": { - "period_start": "Duration", - "time": "Duration", - "price": "FixedNumber" - }, - "ProposalStatus": { - "_enum": [ - "Initiated", - "Approved", - "Rejected" - ] - }, - "ProposalVotes": { - "votes_for": "Vec", - "votes_against": "Vec", - "status": "ProposalStatus", - "expiry": "BlockNumber" - }, - "ResourceId": "[u8; 32]", - "Signature": "u32", - "SignedBalance": { - "_enum": { - "Positive": "Balance", - "Negative": "Balance" - } - }, - "SubAccType": { - "_enum": [ - "Bailsman", - "Borrower", - "Lender" - ] - }, - "Timestamp": "u64", - "TotalAggregates": { - "collateral": "Balance", - "debt": "Balance" - }, - "TransferReason": { - "_enum": [ - "Common", - "InterestFee", - "MarginCall", - "LiquidityFarming", - "BailsmenRedistribution", - "TreasuryEqBuyout", - "TreasuryBuyEq", - "Subaccount", - "Lock", - "Unlock", - "Claim", - "CurveFeeWithdraw" - ] - }, - "UserGroup": { - "_enum": [ - "UNKNOWN", - "Balances", - "Bailsmen", - "Borrowers", - "Lenders" - ] - }, - "UnsignedPriorityPair": "(u64, u64)", - "VestingInfo": { - "locked": "Balance", - "perBlock": "Balance", - "startingBlock": "BlockNumber" - } - } + "types": {} } ] }, @@ -40028,6 +39619,10 @@ export const typesBundle = { }, "IsExtended": "bool", "SystemPalletId": "PalletId", + "TimeUnit": { + "Era": "U32", + "SlashingSpan": "U32" + }, "ledger": { "Substrate": "SubstrateLedger" }, @@ -40041,14 +39636,14 @@ export const typesBundle = { "value": "Balance", "unlock_time": "TimeUnit" }, - "FilecoinLedger": { - "account": "MultiLocationV1", - "initial_pledge": "Balance" - }, - "FilecoinOwnerByMinerEntry": { - "currency_id": "AccountId", - "miner_id": "MultiLocationV1", - "owner_id": "MultiLocationV1" + "MinimumsMaximums": { + "delegator_bonded_minimum": "Balance", + "bond_extra_minimum": "Balance", + "unbond_minimum": "Balance", + "rebond_minimum": "Balance", + "unbond_record_maximum": "U32", + "validators_back_maximum": "U32", + "delegator_active_staking_maximum": "Balance" }, "TrieIndex": "u32", "FundInfo": { @@ -40236,12 +39831,10 @@ export const typesBundle = { "VSToken": "TokenSymbol", "VSBond": "(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)", "LPToken": "(TokenSymbol, u8, TokenSymbol, u8)", - "ForeignAsset": "u32", "Token2": "u8", "VToken2": "u8", "VSToken2": "u8", - "VSBond2": "u8", - "StableLpToken": "u32" + "VSBond2": "u8" } }, "CurrencyIdOf": "CurrencyId", @@ -40262,25 +39855,6 @@ export const typesBundle = { "FromSiblingParaChain": 2 } }, - "TimeUnit": { - "Era": "u32", - "SlashingSpan": "u32", - "Round": "u32", - "Kblock": "u32" - }, - "MinimumsMaximums": { - "delegator_bonded_minimum": "Balance", - "bond_extra_minimum": "Balance", - "unbond_minimum": "Balance", - "rebond_minimum": "Balance", - "unbond_record_maximum": "u32", - "validators_back_maximum": "u32", - "delegator_active_staking_maximum": "Balance", - "validators_reward_maximum": "u32", - "delegation_amount_minimum": "Balance", - "delegators_maximum": "u16", - "validators_maximum": "u16" - }, "PoolType": { "_enum": { "Mining": 0, @@ -40607,6 +40181,10 @@ export const typesBundle = { }, "IsExtended": "bool", "SystemPalletId": "PalletId", + "TimeUnit": { + "Era": "U32", + "SlashingSpan": "U32" + }, "ledger": { "Substrate": "SubstrateLedger" }, @@ -40620,14 +40198,14 @@ export const typesBundle = { "value": "Balance", "unlock_time": "TimeUnit" }, - "FilecoinLedger": { - "account": "MultiLocationV1", - "initial_pledge": "Balance" - }, - "FilecoinOwnerByMinerEntry": { - "currency_id": "AccountId", - "miner_id": "MultiLocationV1", - "owner_id": "MultiLocationV1" + "MinimumsMaximums": { + "delegator_bonded_minimum": "Balance", + "bond_extra_minimum": "Balance", + "unbond_minimum": "Balance", + "rebond_minimum": "Balance", + "unbond_record_maximum": "U32", + "validators_back_maximum": "U32", + "delegator_active_staking_maximum": "Balance" }, "TrieIndex": "u32", "FundInfo": { @@ -40815,12 +40393,10 @@ export const typesBundle = { "VSToken": "TokenSymbol", "VSBond": "(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)", "LPToken": "(TokenSymbol, u8, TokenSymbol, u8)", - "ForeignAsset": "u32", "Token2": "u8", "VToken2": "u8", "VSToken2": "u8", - "VSBond2": "u8", - "StableLpToken": "u32" + "VSBond2": "u8" } }, "CurrencyIdOf": "CurrencyId", @@ -40841,25 +40417,6 @@ export const typesBundle = { "FromSiblingParaChain": 2 } }, - "TimeUnit": { - "Era": "u32", - "SlashingSpan": "u32", - "Round": "u32", - "Kblock": "u32" - }, - "MinimumsMaximums": { - "delegator_bonded_minimum": "Balance", - "bond_extra_minimum": "Balance", - "unbond_minimum": "Balance", - "rebond_minimum": "Balance", - "unbond_record_maximum": "u32", - "validators_back_maximum": "u32", - "delegator_active_staking_maximum": "Balance", - "validators_reward_maximum": "u32", - "delegation_amount_minimum": "Balance", - "delegators_maximum": "u16", - "validators_maximum": "u16" - }, "PoolType": { "_enum": { "Mining": 0, @@ -42388,6 +41945,10 @@ export const typesBundle = { }, "IsExtended": "bool", "SystemPalletId": "PalletId", + "TimeUnit": { + "Era": "U32", + "SlashingSpan": "U32" + }, "ledger": { "Substrate": "SubstrateLedger" }, @@ -42401,14 +41962,14 @@ export const typesBundle = { "value": "Balance", "unlock_time": "TimeUnit" }, - "FilecoinLedger": { - "account": "MultiLocationV1", - "initial_pledge": "Balance" - }, - "FilecoinOwnerByMinerEntry": { - "currency_id": "AccountId", - "miner_id": "MultiLocationV1", - "owner_id": "MultiLocationV1" + "MinimumsMaximums": { + "delegator_bonded_minimum": "Balance", + "bond_extra_minimum": "Balance", + "unbond_minimum": "Balance", + "rebond_minimum": "Balance", + "unbond_record_maximum": "U32", + "validators_back_maximum": "U32", + "delegator_active_staking_maximum": "Balance" }, "TrieIndex": "u32", "FundInfo": { @@ -42595,12 +42156,10 @@ export const typesBundle = { "VSToken": "TokenSymbol", "VSBond": "(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)", "LPToken": "(TokenSymbol, u8, TokenSymbol, u8)", - "ForeignAsset": "u32", "Token2": "u8", "VToken2": "u8", "VSToken2": "u8", - "VSBond2": "u8", - "StableLpToken": "u32" + "VSBond2": "u8" } }, "CurrencyIdOf": "CurrencyId", @@ -42621,25 +42180,6 @@ export const typesBundle = { "FromSiblingParaChain": 2 } }, - "TimeUnit": { - "Era": "u32", - "SlashingSpan": "u32", - "Round": "u32", - "Kblock": "u32" - }, - "MinimumsMaximums": { - "delegator_bonded_minimum": "Balance", - "bond_extra_minimum": "Balance", - "unbond_minimum": "Balance", - "rebond_minimum": "Balance", - "unbond_record_maximum": "u32", - "validators_back_maximum": "u32", - "delegator_active_staking_maximum": "Balance", - "validators_reward_maximum": "u32", - "delegation_amount_minimum": "Balance", - "delegators_maximum": "u16", - "validators_maximum": "u16" - }, "PoolType": { "_enum": { "Mining": 0, @@ -42966,6 +42506,10 @@ export const typesBundle = { }, "IsExtended": "bool", "SystemPalletId": "PalletId", + "TimeUnit": { + "Era": "U32", + "SlashingSpan": "U32" + }, "ledger": { "Substrate": "SubstrateLedger" }, @@ -42979,14 +42523,14 @@ export const typesBundle = { "value": "Balance", "unlock_time": "TimeUnit" }, - "FilecoinLedger": { - "account": "MultiLocationV1", - "initial_pledge": "Balance" - }, - "FilecoinOwnerByMinerEntry": { - "currency_id": "AccountId", - "miner_id": "MultiLocationV1", - "owner_id": "MultiLocationV1" + "MinimumsMaximums": { + "delegator_bonded_minimum": "Balance", + "bond_extra_minimum": "Balance", + "unbond_minimum": "Balance", + "rebond_minimum": "Balance", + "unbond_record_maximum": "U32", + "validators_back_maximum": "U32", + "delegator_active_staking_maximum": "Balance" }, "TrieIndex": "u32", "FundInfo": { @@ -43173,12 +42717,10 @@ export const typesBundle = { "VSToken": "TokenSymbol", "VSBond": "(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)", "LPToken": "(TokenSymbol, u8, TokenSymbol, u8)", - "ForeignAsset": "u32", "Token2": "u8", "VToken2": "u8", "VSToken2": "u8", - "VSBond2": "u8", - "StableLpToken": "u32" + "VSBond2": "u8" } }, "CurrencyIdOf": "CurrencyId", @@ -43199,25 +42741,6 @@ export const typesBundle = { "FromSiblingParaChain": 2 } }, - "TimeUnit": { - "Era": "u32", - "SlashingSpan": "u32", - "Round": "u32", - "Kblock": "u32" - }, - "MinimumsMaximums": { - "delegator_bonded_minimum": "Balance", - "bond_extra_minimum": "Balance", - "unbond_minimum": "Balance", - "rebond_minimum": "Balance", - "unbond_record_maximum": "u32", - "validators_back_maximum": "u32", - "delegator_active_staking_maximum": "Balance", - "validators_reward_maximum": "u32", - "delegation_amount_minimum": "Balance", - "delegators_maximum": "u16", - "validators_maximum": "u16" - }, "PoolType": { "_enum": { "Mining": 0, @@ -43937,6 +43460,10 @@ export const typesBundle = { }, "IsExtended": "bool", "SystemPalletId": "PalletId", + "TimeUnit": { + "Era": "U32", + "SlashingSpan": "U32" + }, "ledger": { "Substrate": "SubstrateLedger" }, @@ -43950,14 +43477,14 @@ export const typesBundle = { "value": "Balance", "unlock_time": "TimeUnit" }, - "FilecoinLedger": { - "account": "MultiLocationV1", - "initial_pledge": "Balance" - }, - "FilecoinOwnerByMinerEntry": { - "currency_id": "AccountId", - "miner_id": "MultiLocationV1", - "owner_id": "MultiLocationV1" + "MinimumsMaximums": { + "delegator_bonded_minimum": "Balance", + "bond_extra_minimum": "Balance", + "unbond_minimum": "Balance", + "rebond_minimum": "Balance", + "unbond_record_maximum": "U32", + "validators_back_maximum": "U32", + "delegator_active_staking_maximum": "Balance" }, "TrieIndex": "u32", "FundInfo": { @@ -44144,12 +43671,10 @@ export const typesBundle = { "VSToken": "TokenSymbol", "VSBond": "(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)", "LPToken": "(TokenSymbol, u8, TokenSymbol, u8)", - "ForeignAsset": "u32", "Token2": "u8", "VToken2": "u8", "VSToken2": "u8", - "VSBond2": "u8", - "StableLpToken": "u32" + "VSBond2": "u8" } }, "CurrencyIdOf": "CurrencyId", @@ -44170,25 +43695,6 @@ export const typesBundle = { "FromSiblingParaChain": 2 } }, - "TimeUnit": { - "Era": "u32", - "SlashingSpan": "u32", - "Round": "u32", - "Kblock": "u32" - }, - "MinimumsMaximums": { - "delegator_bonded_minimum": "Balance", - "bond_extra_minimum": "Balance", - "unbond_minimum": "Balance", - "rebond_minimum": "Balance", - "unbond_record_maximum": "u32", - "validators_back_maximum": "u32", - "delegator_active_staking_maximum": "Balance", - "validators_reward_maximum": "u32", - "delegation_amount_minimum": "Balance", - "delegators_maximum": "u16", - "validators_maximum": "u16" - }, "PoolType": { "_enum": { "Mining": 0, @@ -44515,6 +44021,10 @@ export const typesBundle = { }, "IsExtended": "bool", "SystemPalletId": "PalletId", + "TimeUnit": { + "Era": "U32", + "SlashingSpan": "U32" + }, "ledger": { "Substrate": "SubstrateLedger" }, @@ -44528,14 +44038,14 @@ export const typesBundle = { "value": "Balance", "unlock_time": "TimeUnit" }, - "FilecoinLedger": { - "account": "MultiLocationV1", - "initial_pledge": "Balance" - }, - "FilecoinOwnerByMinerEntry": { - "currency_id": "AccountId", - "miner_id": "MultiLocationV1", - "owner_id": "MultiLocationV1" + "MinimumsMaximums": { + "delegator_bonded_minimum": "Balance", + "bond_extra_minimum": "Balance", + "unbond_minimum": "Balance", + "rebond_minimum": "Balance", + "unbond_record_maximum": "U32", + "validators_back_maximum": "U32", + "delegator_active_staking_maximum": "Balance" }, "TrieIndex": "u32", "FundInfo": { @@ -44722,12 +44232,10 @@ export const typesBundle = { "VSToken": "TokenSymbol", "VSBond": "(TokenSymbol, ParaId, LeasePeriod, LeasePeriod)", "LPToken": "(TokenSymbol, u8, TokenSymbol, u8)", - "ForeignAsset": "u32", "Token2": "u8", "VToken2": "u8", "VSToken2": "u8", - "VSBond2": "u8", - "StableLpToken": "u32" + "VSBond2": "u8" } }, "CurrencyIdOf": "CurrencyId", @@ -44748,25 +44256,6 @@ export const typesBundle = { "FromSiblingParaChain": 2 } }, - "TimeUnit": { - "Era": "u32", - "SlashingSpan": "u32", - "Round": "u32", - "Kblock": "u32" - }, - "MinimumsMaximums": { - "delegator_bonded_minimum": "Balance", - "bond_extra_minimum": "Balance", - "unbond_minimum": "Balance", - "rebond_minimum": "Balance", - "unbond_record_maximum": "u32", - "validators_back_maximum": "u32", - "delegator_active_staking_maximum": "Balance", - "validators_reward_maximum": "u32", - "delegation_amount_minimum": "Balance", - "delegators_maximum": "u16", - "validators_maximum": "u16" - }, "PoolType": { "_enum": { "Mining": 0, @@ -51175,45 +50664,17 @@ export const typesBundle = { "CurrencyId": { "_enum": { "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "LendToken": "LendTokenId", - "LpToken": "(LpToken, LpToken)", - "StableLpToken": "StablePoolId" - } - }, - "LpToken": { - "_enum": { - "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "StableLpToken": "StablePoolId" + "ForeignAsset": "ForeignAssetId" } }, "InterbtcPrimitivesCurrencyId": { "_enum": { "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "LendToken": "InterbtcLendTokenId", - "LpToken": "(InterbtcLpToken, InterbtcLpToken)", - "StableLpToken": "InterbtcStablePoolId" - } - }, - "InterbtcLpToken": { - "_enum": { - "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "StableLpToken": "InterbtcStablePoolId" + "ForeignAsset": "InterbtcForeignAssetId" } }, "InterbtcForeignAssetId": "u32", "ForeignAssetId": "u32", - "InterbtcLendTokenId": "u32", - "InterbtcStablePoolId": "u32", - "LendTokenId": "u32", - "StablePoolId": "u32", - "Rate": "FixedU128", - "Ratio": "Permill", - "Liquidity": "FixedU128", - "Shortfall": "FixedU128", "FundAccountJsonRpcRequest": { "account_id": "AccountId", "currency_id": "InterbtcPrimitivesCurrencyId" @@ -51291,68 +50752,6 @@ export const typesBundle = { "type": "BalanceWrapper" } }, - "loans": { - "getCollateralLiquidity": { - "description": "Retrieves collateral liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getCollateralLiquidity", - "method": "getCollateralLiquidity", - "section": "loans" - }, - "getLiquidationThresholdLiquidity": { - "description": "Retrieves liquidation threshold liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getLiquidationThresholdLiquidity", - "method": "getLiquidationThresholdLiquidity", - "section": "loans" - }, - "getMarketStatus": { - "description": "Retrieves market status data for a given asset id.", - "params": [ - { - "name": "asset_id", - "type": "CurrencyId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)", - "isSubscription": false, - "jsonrpc": "loans_getMarketStatus", - "method": "getMarketStatus", - "section": "loans" - } - }, "issue": { "getIssueRequests": { "description": "Get all issue request IDs for a particular account", @@ -51656,45 +51055,17 @@ export const typesBundle = { "CurrencyId": { "_enum": { "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "LendToken": "LendTokenId", - "LpToken": "(LpToken, LpToken)", - "StableLpToken": "StablePoolId" - } - }, - "LpToken": { - "_enum": { - "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "StableLpToken": "StablePoolId" + "ForeignAsset": "ForeignAssetId" } }, "InterbtcPrimitivesCurrencyId": { "_enum": { "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "LendToken": "InterbtcLendTokenId", - "LpToken": "(InterbtcLpToken, InterbtcLpToken)", - "StableLpToken": "InterbtcStablePoolId" - } - }, - "InterbtcLpToken": { - "_enum": { - "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "StableLpToken": "InterbtcStablePoolId" + "ForeignAsset": "InterbtcForeignAssetId" } }, "InterbtcForeignAssetId": "u32", "ForeignAssetId": "u32", - "InterbtcLendTokenId": "u32", - "InterbtcStablePoolId": "u32", - "LendTokenId": "u32", - "StablePoolId": "u32", - "Rate": "FixedU128", - "Ratio": "Permill", - "Liquidity": "FixedU128", - "Shortfall": "FixedU128", "FundAccountJsonRpcRequest": { "account_id": "AccountId", "currency_id": "InterbtcPrimitivesCurrencyId" @@ -51772,68 +51143,6 @@ export const typesBundle = { "type": "BalanceWrapper" } }, - "loans": { - "getCollateralLiquidity": { - "description": "Retrieves collateral liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getCollateralLiquidity", - "method": "getCollateralLiquidity", - "section": "loans" - }, - "getLiquidationThresholdLiquidity": { - "description": "Retrieves liquidation threshold liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getLiquidationThresholdLiquidity", - "method": "getLiquidationThresholdLiquidity", - "section": "loans" - }, - "getMarketStatus": { - "description": "Retrieves market status data for a given asset id.", - "params": [ - { - "name": "asset_id", - "type": "CurrencyId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)", - "isSubscription": false, - "jsonrpc": "loans_getMarketStatus", - "method": "getMarketStatus", - "section": "loans" - } - }, "issue": { "getIssueRequests": { "description": "Get all issue request IDs for a particular account", @@ -52137,45 +51446,17 @@ export const typesBundle = { "CurrencyId": { "_enum": { "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "LendToken": "LendTokenId", - "LpToken": "(LpToken, LpToken)", - "StableLpToken": "StablePoolId" - } - }, - "LpToken": { - "_enum": { - "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "StableLpToken": "StablePoolId" + "ForeignAsset": "ForeignAssetId" } }, "InterbtcPrimitivesCurrencyId": { "_enum": { "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "LendToken": "InterbtcLendTokenId", - "LpToken": "(InterbtcLpToken, InterbtcLpToken)", - "StableLpToken": "InterbtcStablePoolId" - } - }, - "InterbtcLpToken": { - "_enum": { - "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "StableLpToken": "InterbtcStablePoolId" + "ForeignAsset": "InterbtcForeignAssetId" } }, "InterbtcForeignAssetId": "u32", "ForeignAssetId": "u32", - "InterbtcLendTokenId": "u32", - "InterbtcStablePoolId": "u32", - "LendTokenId": "u32", - "StablePoolId": "u32", - "Rate": "FixedU128", - "Ratio": "Permill", - "Liquidity": "FixedU128", - "Shortfall": "FixedU128", "FundAccountJsonRpcRequest": { "account_id": "AccountId", "currency_id": "InterbtcPrimitivesCurrencyId" @@ -52253,68 +51534,6 @@ export const typesBundle = { "type": "BalanceWrapper" } }, - "loans": { - "getCollateralLiquidity": { - "description": "Retrieves collateral liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getCollateralLiquidity", - "method": "getCollateralLiquidity", - "section": "loans" - }, - "getLiquidationThresholdLiquidity": { - "description": "Retrieves liquidation threshold liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getLiquidationThresholdLiquidity", - "method": "getLiquidationThresholdLiquidity", - "section": "loans" - }, - "getMarketStatus": { - "description": "Retrieves market status data for a given asset id.", - "params": [ - { - "name": "asset_id", - "type": "CurrencyId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)", - "isSubscription": false, - "jsonrpc": "loans_getMarketStatus", - "method": "getMarketStatus", - "section": "loans" - } - }, "issue": { "getIssueRequests": { "description": "Get all issue request IDs for a particular account", @@ -53337,8 +52556,7 @@ export const typesBundle = { "Worker": "Sr25519PublicKey", "AccountId": "H256", "MultiLocation": "Vec", - "Gatekeeper": null, - "Cluster": "H256" + "Gatekeeper": null } }, "Attestation": { @@ -53579,8 +52797,7 @@ export const typesBundle = { "Worker": "Sr25519PublicKey", "AccountId": "H256", "MultiLocation": "Vec", - "Gatekeeper": null, - "Cluster": "H256" + "Gatekeeper": null } }, "Attestation": { @@ -53756,45 +52973,17 @@ export const typesBundle = { "CurrencyId": { "_enum": { "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "LendToken": "LendTokenId", - "LpToken": "(LpToken, LpToken)", - "StableLpToken": "StablePoolId" - } - }, - "LpToken": { - "_enum": { - "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "StableLpToken": "StablePoolId" + "ForeignAsset": "ForeignAssetId" } }, "InterbtcPrimitivesCurrencyId": { "_enum": { "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "LendToken": "InterbtcLendTokenId", - "LpToken": "(InterbtcLpToken, InterbtcLpToken)", - "StableLpToken": "InterbtcStablePoolId" - } - }, - "InterbtcLpToken": { - "_enum": { - "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "StableLpToken": "InterbtcStablePoolId" + "ForeignAsset": "InterbtcForeignAssetId" } }, "InterbtcForeignAssetId": "u32", "ForeignAssetId": "u32", - "InterbtcLendTokenId": "u32", - "InterbtcStablePoolId": "u32", - "LendTokenId": "u32", - "StablePoolId": "u32", - "Rate": "FixedU128", - "Ratio": "Permill", - "Liquidity": "FixedU128", - "Shortfall": "FixedU128", "FundAccountJsonRpcRequest": { "account_id": "AccountId", "currency_id": "InterbtcPrimitivesCurrencyId" @@ -53872,68 +53061,6 @@ export const typesBundle = { "type": "BalanceWrapper" } }, - "loans": { - "getCollateralLiquidity": { - "description": "Retrieves collateral liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getCollateralLiquidity", - "method": "getCollateralLiquidity", - "section": "loans" - }, - "getLiquidationThresholdLiquidity": { - "description": "Retrieves liquidation threshold liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getLiquidationThresholdLiquidity", - "method": "getLiquidationThresholdLiquidity", - "section": "loans" - }, - "getMarketStatus": { - "description": "Retrieves market status data for a given asset id.", - "params": [ - { - "name": "asset_id", - "type": "CurrencyId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)", - "isSubscription": false, - "jsonrpc": "loans_getMarketStatus", - "method": "getMarketStatus", - "section": "loans" - } - }, "issue": { "getIssueRequests": { "description": "Get all issue request IDs for a particular account", @@ -55296,32 +54423,17 @@ export const typesBundle = { "CollectionItem": { "description": "Vec" }, - "BeefyKey": "[u8; 33]", - "Keys": "SessionKeys2", - "SessionKeys1": "(AccountId)", - "SessionKeys2": "(AccountId, AccountId)", - "SessionKeys3": "(AccountId, AccountId, AccountId)", - "SessionKeys4": "(AccountId, AccountId, AccountId, AccountId)", - "SessionKeys5": "(AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6B": "(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys7": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys7B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys8": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys8B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys9": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys9B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys10": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys10B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", "FullIdentification": "Exposure", "IdentificationTuple": "(ValidatorId, FullIdentification)", "MembershipProof": { "session": "SessionIndex", - "trieNodes": "Vec", + "trieNodes": "Vec>", "validatorCount": "ValidatorCount" }, "SessionIndex": "u32", - "ValidatorCount": "u32" + "ValidatorCount": "u32", + "SessionKeys2": "(AccountId, AccountId)", + "Keys": "SessionKeys2" } }, { @@ -55423,32 +54535,17 @@ export const typesBundle = { "fileSize": "u32", "hash": "Hash" }, - "BeefyKey": "[u8; 33]", - "Keys": "SessionKeys2", - "SessionKeys1": "(AccountId)", - "SessionKeys2": "(AccountId, AccountId)", - "SessionKeys3": "(AccountId, AccountId, AccountId)", - "SessionKeys4": "(AccountId, AccountId, AccountId, AccountId)", - "SessionKeys5": "(AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6B": "(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys7": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys7B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys8": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys8B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys9": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys9B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys10": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys10B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", "FullIdentification": "Exposure", "IdentificationTuple": "(ValidatorId, FullIdentification)", "MembershipProof": { "session": "SessionIndex", - "trieNodes": "Vec", + "trieNodes": "Vec>", "validatorCount": "ValidatorCount" }, "SessionIndex": "u32", - "ValidatorCount": "u32" + "ValidatorCount": "u32", + "SessionKeys2": "(AccountId, AccountId)", + "Keys": "SessionKeys2" } }, { @@ -55557,32 +54654,17 @@ export const typesBundle = { "token_type": "Vec", "token_id": "Vec" }, - "BeefyKey": "[u8; 33]", - "Keys": "SessionKeys2", - "SessionKeys1": "(AccountId)", - "SessionKeys2": "(AccountId, AccountId)", - "SessionKeys3": "(AccountId, AccountId, AccountId)", - "SessionKeys4": "(AccountId, AccountId, AccountId, AccountId)", - "SessionKeys5": "(AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6B": "(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys7": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys7B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys8": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys8B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys9": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys9B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys10": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys10B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", "FullIdentification": "Exposure", "IdentificationTuple": "(ValidatorId, FullIdentification)", "MembershipProof": { "session": "SessionIndex", - "trieNodes": "Vec", + "trieNodes": "Vec>", "validatorCount": "ValidatorCount" }, "SessionIndex": "u32", - "ValidatorCount": "u32" + "ValidatorCount": "u32", + "SessionKeys2": "(AccountId, AccountId)", + "Keys": "SessionKeys2" } }, { @@ -55591,9 +54673,12 @@ export const typesBundle = { null ], "types": { + "Address": "MultiAddress", + "LookupSource": "MultiAddress", "OpaquePeerId": "Vec", "AccountInfo": "AccountInfoWithDualRefCount", "TAssetBalance": "u128", + "AssetId": "u64", "AssetDetails": { "owner": "AccountId", "issuer": "AccountId", @@ -55693,20 +54778,13 @@ export const typesBundle = { "token_id": "Vec" }, "LegalOfficerData": { - "_enum": { - "Host": "HostData", - "Guest": "AccountId" - } - }, - "HostData": { "node_id": "Option", "base_url": "Option>" }, "LoAuthorityListStorageVersion": { "_enum": [ "V1", - "V2AddOnchainSettings", - "V3GuestLegalOfficers" + "V2AddOnchainSettings" ] }, "TermsAndConditionsElement": { @@ -55714,32 +54792,17 @@ export const typesBundle = { "tcLoc": "LocId", "details": "Vec" }, - "BeefyKey": "[u8; 33]", - "Keys": "SessionKeys2", - "SessionKeys1": "(AccountId)", - "SessionKeys2": "(AccountId, AccountId)", - "SessionKeys3": "(AccountId, AccountId, AccountId)", - "SessionKeys4": "(AccountId, AccountId, AccountId, AccountId)", - "SessionKeys5": "(AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys6B": "(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys7": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys7B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys8": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys8B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys9": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys9B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", - "SessionKeys10": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)", - "SessionKeys10B": "(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)", "FullIdentification": "Exposure", "IdentificationTuple": "(ValidatorId, FullIdentification)", "MembershipProof": { "session": "SessionIndex", - "trieNodes": "Vec", + "trieNodes": "Vec>", "validatorCount": "ValidatorCount" }, "SessionIndex": "u32", - "ValidatorCount": "u32" + "ValidatorCount": "u32", + "SessionKeys2": "(AccountId, AccountId)", + "Keys": "SessionKeys2" } } ] @@ -55986,16 +55049,16 @@ export const typesBundle = { ], "type": "XYKRpcResult" }, - "calculate_balanced_sell_amount": { + "calculate_rewards_amount_v2": { "description": "", "params": [ { - "name": "total_amount", - "type": "Balance" + "name": "user", + "type": "AccountId" }, { - "name": "reserve_amount", - "type": "Balance" + "name": "liquidity_asset_id", + "type": "TokenId" } ], "type": "XYKRpcResult" @@ -56191,16 +55254,16 @@ export const typesBundle = { ], "type": "XYKRpcResult" }, - "calculate_balanced_sell_amount": { + "calculate_rewards_amount_v2": { "description": "", "params": [ { - "name": "total_amount", - "type": "Balance" + "name": "user", + "type": "AccountId" }, { - "name": "reserve_amount", - "type": "Balance" + "name": "liquidity_asset_id", + "type": "TokenId" } ], "type": "XYKRpcResult" @@ -75095,45 +74158,17 @@ export const typesBundle = { "CurrencyId": { "_enum": { "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "LendToken": "LendTokenId", - "LpToken": "(LpToken, LpToken)", - "StableLpToken": "StablePoolId" - } - }, - "LpToken": { - "_enum": { - "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "StableLpToken": "StablePoolId" + "ForeignAsset": "ForeignAssetId" } }, "InterbtcPrimitivesCurrencyId": { "_enum": { "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "LendToken": "InterbtcLendTokenId", - "LpToken": "(InterbtcLpToken, InterbtcLpToken)", - "StableLpToken": "InterbtcStablePoolId" - } - }, - "InterbtcLpToken": { - "_enum": { - "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "StableLpToken": "InterbtcStablePoolId" + "ForeignAsset": "InterbtcForeignAssetId" } }, "InterbtcForeignAssetId": "u32", "ForeignAssetId": "u32", - "InterbtcLendTokenId": "u32", - "InterbtcStablePoolId": "u32", - "LendTokenId": "u32", - "StablePoolId": "u32", - "Rate": "FixedU128", - "Ratio": "Permill", - "Liquidity": "FixedU128", - "Shortfall": "FixedU128", "FundAccountJsonRpcRequest": { "account_id": "AccountId", "currency_id": "InterbtcPrimitivesCurrencyId" @@ -75211,68 +74246,6 @@ export const typesBundle = { "type": "BalanceWrapper" } }, - "loans": { - "getCollateralLiquidity": { - "description": "Retrieves collateral liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getCollateralLiquidity", - "method": "getCollateralLiquidity", - "section": "loans" - }, - "getLiquidationThresholdLiquidity": { - "description": "Retrieves liquidation threshold liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getLiquidationThresholdLiquidity", - "method": "getLiquidationThresholdLiquidity", - "section": "loans" - }, - "getMarketStatus": { - "description": "Retrieves market status data for a given asset id.", - "params": [ - { - "name": "asset_id", - "type": "CurrencyId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)", - "isSubscription": false, - "jsonrpc": "loans_getMarketStatus", - "method": "getMarketStatus", - "section": "loans" - } - }, "issue": { "getIssueRequests": { "description": "Get all issue request IDs for a particular account", @@ -75576,45 +74549,17 @@ export const typesBundle = { "CurrencyId": { "_enum": { "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "LendToken": "LendTokenId", - "LpToken": "(LpToken, LpToken)", - "StableLpToken": "StablePoolId" - } - }, - "LpToken": { - "_enum": { - "Token": "TokenSymbol", - "ForeignAsset": "ForeignAssetId", - "StableLpToken": "StablePoolId" + "ForeignAsset": "ForeignAssetId" } }, "InterbtcPrimitivesCurrencyId": { "_enum": { "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "LendToken": "InterbtcLendTokenId", - "LpToken": "(InterbtcLpToken, InterbtcLpToken)", - "StableLpToken": "InterbtcStablePoolId" - } - }, - "InterbtcLpToken": { - "_enum": { - "Token": "InterbtcPrimitivesTokenSymbol", - "ForeignAsset": "InterbtcForeignAssetId", - "StableLpToken": "InterbtcStablePoolId" + "ForeignAsset": "InterbtcForeignAssetId" } }, "InterbtcForeignAssetId": "u32", "ForeignAssetId": "u32", - "InterbtcLendTokenId": "u32", - "InterbtcStablePoolId": "u32", - "LendTokenId": "u32", - "StablePoolId": "u32", - "Rate": "FixedU128", - "Ratio": "Permill", - "Liquidity": "FixedU128", - "Shortfall": "FixedU128", "FundAccountJsonRpcRequest": { "account_id": "AccountId", "currency_id": "InterbtcPrimitivesCurrencyId" @@ -75692,68 +74637,6 @@ export const typesBundle = { "type": "BalanceWrapper" } }, - "loans": { - "getCollateralLiquidity": { - "description": "Retrieves collateral liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getCollateralLiquidity", - "method": "getCollateralLiquidity", - "section": "loans" - }, - "getLiquidationThresholdLiquidity": { - "description": "Retrieves liquidation threshold liquidity for the given user.", - "params": [ - { - "name": "account", - "type": "AccountId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Liquidity, Shortfall, Liquidity, Shortfall)", - "isSubscription": false, - "jsonrpc": "loans_getLiquidationThresholdLiquidity", - "method": "getLiquidationThresholdLiquidity", - "section": "loans" - }, - "getMarketStatus": { - "description": "Retrieves market status data for a given asset id.", - "params": [ - { - "name": "asset_id", - "type": "CurrencyId" - }, - { - "name": "at", - "type": "BlockHash", - "isHistoric": true, - "isOptional": true - } - ], - "type": "(Rate, Rate, Rate, Ratio, Balance, Balance, FixedU128)", - "isSubscription": false, - "jsonrpc": "loans_getMarketStatus", - "method": "getMarketStatus", - "section": "loans" - } - }, "issue": { "getIssueRequests": { "description": "Get all issue request IDs for a particular account", diff --git a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts index 58da60cfb4..92d8d300be 100644 --- a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts +++ b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts @@ -38,7 +38,8 @@ export const prodParasPolkadot: EndpointOption[] = [ paraId: 2051, text: 'Ajuna Network', providers: { - AjunaNetwork: 'wss://rpc-parachain.ajuna.network' + AjunaNetwork: 'wss://rpc-parachain.ajuna.network', + OnFinality: 'wss://ajuna.api.onfinality.io/public-ws' } }, {