From 7fae8bc2794bea4b16fd588a2bf89c9ae0baa44d Mon Sep 17 00:00:00 2001 From: Satoshi Qazi Muhammed Date: Sat, 10 Oct 2026 04:36:20 +0400 Subject: [PATCH] apps-config: drop the foreign chains' type bundles typesBundle carried overrides for 140 chains inherited from upstream; none of them is a Pezkuwi chain. The live Pezkuwi and Zagros runtimes (pezkuwichain, asset-hub-pezkuwichain, people-pezkuwichain, zagros and its asset hub, bridge hub, collectives, coretime and people) match no entry and need none: they carry metadata v14+. The spec files, the Cere chain bundle, the custom derives and the 32 npm packages they came from are removed, among them GPL-3.0-only ones (pontem, moonbeam, subsocial, jamton) that were bundled into this Apache-2.0 app. The spec/chain/derives mechanism stays, empty, for a chain that ever needs one. typesBundle.ts is regenerated (15 lines). yarn.lock loses 3250 lines, elliptic and the old @polkadot/api trees with them. --- packages/apps-config/package.json | 32 - packages/apps-config/src/api/chain/cere.ts | 83 - packages/apps-config/src/api/chain/index.ts | 8 +- packages/apps-config/src/api/derives.ts | 30 +- packages/apps-config/src/api/spec/acala.ts | 9 - packages/apps-config/src/api/spec/ajuna.ts | 19 - packages/apps-config/src/api/spec/allfeat.ts | 20 - packages/apps-config/src/api/spec/altair.ts | 35 - packages/apps-config/src/api/spec/apron.ts | 21 - .../apps-config/src/api/spec/ares-gladios.ts | 207 - .../src/api/spec/ares-parachain.ts | 208 - packages/apps-config/src/api/spec/argon.ts | 60 - packages/apps-config/src/api/spec/astar.ts | 42 - packages/apps-config/src/api/spec/bajun.ts | 19 - packages/apps-config/src/api/spec/basilisk.ts | 97 - .../apps-config/src/api/spec/beresheet.ts | 8 - .../src/api/spec/bifrost-asgard.ts | 8 - .../src/api/spec/bifrost-parachain.ts | 8 - packages/apps-config/src/api/spec/bifrost.ts | 8 - .../src/api/spec/bitcountry-pezkuwichain.ts | 128 - .../src/api/spec/bitcountry-pioneer.ts | 6 - .../apps-config/src/api/spec/bitcountry.ts | 82 - .../apps-config/src/api/spec/bittensor.ts | 44 - .../src/api/spec/centrifuge-chain.ts | 75 - .../apps-config/src/api/spec/centrifuge.ts | 53 - packages/apps-config/src/api/spec/chainx.ts | 462 - .../src/api/spec/clover-pezkuwichain.ts | 74 - packages/apps-config/src/api/spec/clover.ts | 32 - .../apps-config/src/api/spec/coinversation.ts | 21 - .../apps-config/src/api/spec/communeai.ts | 44 - .../src/api/spec/competitors-club.ts | 82 - .../apps-config/src/api/spec/contracts.ts | 29 - .../src/api/spec/crown-sterling.ts | 53 - packages/apps-config/src/api/spec/crust.ts | 8 - .../src/api/spec/cumulus-test-parachain.ts | 21 - packages/apps-config/src/api/spec/curio.ts | 58 - .../apps-config/src/api/spec/datahighway.ts | 238 - .../apps-config/src/api/spec/dock-mainnet.ts | 9 - .../apps-config/src/api/spec/dock-testnet.ts | 9 - packages/apps-config/src/api/spec/dolphin.ts | 30 - packages/apps-config/src/api/spec/dotmog.ts | 81 - packages/apps-config/src/api/spec/eave.ts | 430 - packages/apps-config/src/api/spec/edgeware.ts | 8 - packages/apps-config/src/api/spec/elysium.ts | 38 - .../src/api/spec/encointer-node-notee.ts | 254 - .../src/api/spec/encointer-node-teeproxy.ts | 54 - .../src/api/spec/encointer-para.ts | 258 - .../apps-config/src/api/spec/equilibrium.ts | 108 - packages/apps-config/src/api/spec/fantour.ts | 68 - packages/apps-config/src/api/spec/ferrum.ts | 31 - packages/apps-config/src/api/spec/fragnova.ts | 19 - .../apps-config/src/api/spec/frequency.ts | 19 - .../src/api/spec/galital-parachain.ts | 70 - packages/apps-config/src/api/spec/galital.ts | 75 - packages/apps-config/src/api/spec/galois.ts | 52 - .../apps-config/src/api/spec/gamepower.ts | 76 - packages/apps-config/src/api/spec/genshiro.ts | 15 - .../apps-config/src/api/spec/hanonycash.ts | 31 - packages/apps-config/src/api/spec/heima.ts | 21 - packages/apps-config/src/api/spec/hydrate.ts | 60 - .../apps-config/src/api/spec/hyperbridge.ts | 12 - packages/apps-config/src/api/spec/idavoll.ts | 21 - packages/apps-config/src/api/spec/imbue.ts | 30 - packages/apps-config/src/api/spec/index.ts | 324 +- .../apps-config/src/api/spec/integritee.ts | 32 - packages/apps-config/src/api/spec/interbtc.ts | 76 - packages/apps-config/src/api/spec/ipse.ts | 122 - packages/apps-config/src/api/spec/jamton.ts | 22 - .../src/api/spec/jupiter-pezkuwichain.ts | 22 - packages/apps-config/src/api/spec/jupiter.ts | 72 - packages/apps-config/src/api/spec/jur.ts | 16 - packages/apps-config/src/api/spec/khala.ts | 8 - packages/apps-config/src/api/spec/kilt.ts | 10 - packages/apps-config/src/api/spec/konomi.ts | 21 - packages/apps-config/src/api/spec/kpron.ts | 21 - packages/apps-config/src/api/spec/kulupu.ts | 65 - packages/apps-config/src/api/spec/kusari.ts | 82 - packages/apps-config/src/api/spec/kylin.ts | 34 - packages/apps-config/src/api/spec/laminar.ts | 8 - .../src/api/spec/logion-parachain.ts | 108 - packages/apps-config/src/api/spec/logion.ts | 820 - packages/apps-config/src/api/spec/mangata.ts | 77 - packages/apps-config/src/api/spec/manta.ts | 30 - .../apps-config/src/api/spec/mathchain.ts | 52 - packages/apps-config/src/api/spec/moonbeam.ts | 9 - packages/apps-config/src/api/spec/muse.ts | 22 - packages/apps-config/src/api/spec/mybank.ts | 83 - packages/apps-config/src/api/spec/mythos.ts | 22 - packages/apps-config/src/api/spec/neatcoin.ts | 30 - packages/apps-config/src/api/spec/neuroweb.ts | 21 - packages/apps-config/src/api/spec/nftmart.ts | 146 - packages/apps-config/src/api/spec/nodle.ts | 51 - packages/apps-config/src/api/spec/oak.ts | 18 - packages/apps-config/src/api/spec/opal.ts | 13 - .../apps-config/src/api/spec/opportunity.ts | 92 - .../apps-config/src/api/spec/oz-template.ts | 21 - packages/apps-config/src/api/spec/parallel.ts | 9 - packages/apps-config/src/api/spec/parami.ts | 18 - packages/apps-config/src/api/spec/peaq.ts | 8 - .../apps-config/src/api/spec/peerplays.ts | 314 - packages/apps-config/src/api/spec/pendulum.ts | 8 - packages/apps-config/src/api/spec/phoenix.ts | 49 - packages/apps-config/src/api/spec/pichiu.ts | 34 - packages/apps-config/src/api/spec/plasm.ts | 51 - packages/apps-config/src/api/spec/polimec.ts | 21 - packages/apps-config/src/api/spec/polkadex.ts | 30 - .../apps-config/src/api/spec/polkafoundry.ts | 41 - .../src/api/spec/polymesh-mainnet.ts | 10 - .../src/api/spec/polymesh-testnet.ts | 10 - packages/apps-config/src/api/spec/pontem.ts | 6 - packages/apps-config/src/api/spec/prism.ts | 21 - packages/apps-config/src/api/spec/quartz.ts | 13 - packages/apps-config/src/api/spec/realis.ts | 55 - packages/apps-config/src/api/spec/riochain.ts | 103 - .../apps-config/src/api/spec/robonomics.ts | 39 - packages/apps-config/src/api/spec/rootnet.ts | 32 - packages/apps-config/src/api/spec/sapphire.ts | 13 - packages/apps-config/src/api/spec/shibuya.ts | 52 - packages/apps-config/src/api/spec/shiden.ts | 53 - .../apps-config/src/api/spec/snowbridge.ts | 6 - .../apps-config/src/api/spec/soraSubstrate.ts | 8 - packages/apps-config/src/api/spec/spanner.ts | 516 - .../apps-config/src/api/spec/spreehafen.ts | 18 - packages/apps-config/src/api/spec/stafi.ts | 22 - packages/apps-config/src/api/spec/standard.ts | 92 - packages/apps-config/src/api/spec/subdao.ts | 18 - packages/apps-config/src/api/spec/subgame.ts | 183 - .../apps-config/src/api/spec/subsocial.ts | 12 - packages/apps-config/src/api/spec/subspace.ts | 130 - .../src/api/spec/substrateContractsNode.ts | 20 - packages/apps-config/src/api/spec/swapdex.ts | 82 - packages/apps-config/src/api/spec/t0rn.ts | 203 - .../apps-config/src/api/spec/tanganika.ts | 18 - packages/apps-config/src/api/spec/ternoa.ts | 102 - packages/apps-config/src/api/spec/torus.ts | 34 - .../apps-config/src/api/spec/trustbase.ts | 21 - packages/apps-config/src/api/spec/turing.ts | 18 - packages/apps-config/src/api/spec/uart.ts | 310 - packages/apps-config/src/api/spec/unique.ts | 13 - .../apps-config/src/api/spec/unitnetwork.ts | 18 - packages/apps-config/src/api/spec/unitv.ts | 22 - .../src/api/spec/vln-pezkuwichain.ts | 118 - packages/apps-config/src/api/spec/vln.ts | 47 - packages/apps-config/src/api/spec/vodka.ts | 19 - packages/apps-config/src/api/spec/watr.ts | 21 - .../apps-config/src/api/spec/web3games.ts | 41 - packages/apps-config/src/api/spec/westlake.ts | 303 - packages/apps-config/src/api/spec/zCloak.ts | 49 - .../apps-config/src/api/spec/zeitgeist.ts | 31 - packages/apps-config/src/api/spec/zenlink.ts | 55 - packages/apps-config/src/api/spec/zero.ts | 8 - packages/apps-config/src/api/typesBundle.ts | 104152 +-------------- yarn.lock | 3361 +- 153 files changed, 67 insertions(+), 117855 deletions(-) delete mode 100644 packages/apps-config/src/api/chain/cere.ts delete mode 100644 packages/apps-config/src/api/spec/acala.ts delete mode 100644 packages/apps-config/src/api/spec/ajuna.ts delete mode 100644 packages/apps-config/src/api/spec/allfeat.ts delete mode 100644 packages/apps-config/src/api/spec/altair.ts delete mode 100644 packages/apps-config/src/api/spec/apron.ts delete mode 100644 packages/apps-config/src/api/spec/ares-gladios.ts delete mode 100644 packages/apps-config/src/api/spec/ares-parachain.ts delete mode 100644 packages/apps-config/src/api/spec/argon.ts delete mode 100644 packages/apps-config/src/api/spec/astar.ts delete mode 100644 packages/apps-config/src/api/spec/bajun.ts delete mode 100644 packages/apps-config/src/api/spec/basilisk.ts delete mode 100644 packages/apps-config/src/api/spec/beresheet.ts delete mode 100644 packages/apps-config/src/api/spec/bifrost-asgard.ts delete mode 100644 packages/apps-config/src/api/spec/bifrost-parachain.ts delete mode 100644 packages/apps-config/src/api/spec/bifrost.ts delete mode 100644 packages/apps-config/src/api/spec/bitcountry-pezkuwichain.ts delete mode 100644 packages/apps-config/src/api/spec/bitcountry-pioneer.ts delete mode 100644 packages/apps-config/src/api/spec/bitcountry.ts delete mode 100644 packages/apps-config/src/api/spec/bittensor.ts delete mode 100644 packages/apps-config/src/api/spec/centrifuge-chain.ts delete mode 100644 packages/apps-config/src/api/spec/centrifuge.ts delete mode 100644 packages/apps-config/src/api/spec/chainx.ts delete mode 100644 packages/apps-config/src/api/spec/clover-pezkuwichain.ts delete mode 100644 packages/apps-config/src/api/spec/clover.ts delete mode 100644 packages/apps-config/src/api/spec/coinversation.ts delete mode 100644 packages/apps-config/src/api/spec/communeai.ts delete mode 100644 packages/apps-config/src/api/spec/competitors-club.ts delete mode 100644 packages/apps-config/src/api/spec/contracts.ts delete mode 100644 packages/apps-config/src/api/spec/crown-sterling.ts delete mode 100644 packages/apps-config/src/api/spec/crust.ts delete mode 100644 packages/apps-config/src/api/spec/cumulus-test-parachain.ts delete mode 100644 packages/apps-config/src/api/spec/curio.ts delete mode 100644 packages/apps-config/src/api/spec/datahighway.ts delete mode 100644 packages/apps-config/src/api/spec/dock-mainnet.ts delete mode 100644 packages/apps-config/src/api/spec/dock-testnet.ts delete mode 100644 packages/apps-config/src/api/spec/dolphin.ts delete mode 100644 packages/apps-config/src/api/spec/dotmog.ts delete mode 100644 packages/apps-config/src/api/spec/eave.ts delete mode 100644 packages/apps-config/src/api/spec/edgeware.ts delete mode 100644 packages/apps-config/src/api/spec/elysium.ts delete mode 100644 packages/apps-config/src/api/spec/encointer-node-notee.ts delete mode 100644 packages/apps-config/src/api/spec/encointer-node-teeproxy.ts delete mode 100644 packages/apps-config/src/api/spec/encointer-para.ts delete mode 100644 packages/apps-config/src/api/spec/equilibrium.ts delete mode 100644 packages/apps-config/src/api/spec/fantour.ts delete mode 100644 packages/apps-config/src/api/spec/ferrum.ts delete mode 100644 packages/apps-config/src/api/spec/fragnova.ts delete mode 100644 packages/apps-config/src/api/spec/frequency.ts delete mode 100644 packages/apps-config/src/api/spec/galital-parachain.ts delete mode 100644 packages/apps-config/src/api/spec/galital.ts delete mode 100644 packages/apps-config/src/api/spec/galois.ts delete mode 100644 packages/apps-config/src/api/spec/gamepower.ts delete mode 100644 packages/apps-config/src/api/spec/genshiro.ts delete mode 100644 packages/apps-config/src/api/spec/hanonycash.ts delete mode 100644 packages/apps-config/src/api/spec/heima.ts delete mode 100644 packages/apps-config/src/api/spec/hydrate.ts delete mode 100644 packages/apps-config/src/api/spec/hyperbridge.ts delete mode 100644 packages/apps-config/src/api/spec/idavoll.ts delete mode 100644 packages/apps-config/src/api/spec/imbue.ts delete mode 100644 packages/apps-config/src/api/spec/integritee.ts delete mode 100644 packages/apps-config/src/api/spec/interbtc.ts delete mode 100644 packages/apps-config/src/api/spec/ipse.ts delete mode 100644 packages/apps-config/src/api/spec/jamton.ts delete mode 100644 packages/apps-config/src/api/spec/jupiter-pezkuwichain.ts delete mode 100644 packages/apps-config/src/api/spec/jupiter.ts delete mode 100644 packages/apps-config/src/api/spec/jur.ts delete mode 100644 packages/apps-config/src/api/spec/khala.ts delete mode 100644 packages/apps-config/src/api/spec/kilt.ts delete mode 100644 packages/apps-config/src/api/spec/konomi.ts delete mode 100644 packages/apps-config/src/api/spec/kpron.ts delete mode 100644 packages/apps-config/src/api/spec/kulupu.ts delete mode 100644 packages/apps-config/src/api/spec/kusari.ts delete mode 100644 packages/apps-config/src/api/spec/kylin.ts delete mode 100644 packages/apps-config/src/api/spec/laminar.ts delete mode 100644 packages/apps-config/src/api/spec/logion-parachain.ts delete mode 100644 packages/apps-config/src/api/spec/logion.ts delete mode 100644 packages/apps-config/src/api/spec/mangata.ts delete mode 100644 packages/apps-config/src/api/spec/manta.ts delete mode 100644 packages/apps-config/src/api/spec/mathchain.ts delete mode 100644 packages/apps-config/src/api/spec/moonbeam.ts delete mode 100644 packages/apps-config/src/api/spec/muse.ts delete mode 100644 packages/apps-config/src/api/spec/mybank.ts delete mode 100644 packages/apps-config/src/api/spec/mythos.ts delete mode 100644 packages/apps-config/src/api/spec/neatcoin.ts delete mode 100644 packages/apps-config/src/api/spec/neuroweb.ts delete mode 100644 packages/apps-config/src/api/spec/nftmart.ts delete mode 100644 packages/apps-config/src/api/spec/nodle.ts delete mode 100644 packages/apps-config/src/api/spec/oak.ts delete mode 100644 packages/apps-config/src/api/spec/opal.ts delete mode 100644 packages/apps-config/src/api/spec/opportunity.ts delete mode 100644 packages/apps-config/src/api/spec/oz-template.ts delete mode 100644 packages/apps-config/src/api/spec/parallel.ts delete mode 100644 packages/apps-config/src/api/spec/parami.ts delete mode 100644 packages/apps-config/src/api/spec/peaq.ts delete mode 100644 packages/apps-config/src/api/spec/peerplays.ts delete mode 100644 packages/apps-config/src/api/spec/pendulum.ts delete mode 100644 packages/apps-config/src/api/spec/phoenix.ts delete mode 100644 packages/apps-config/src/api/spec/pichiu.ts delete mode 100644 packages/apps-config/src/api/spec/plasm.ts delete mode 100644 packages/apps-config/src/api/spec/polimec.ts delete mode 100644 packages/apps-config/src/api/spec/polkadex.ts delete mode 100644 packages/apps-config/src/api/spec/polkafoundry.ts delete mode 100644 packages/apps-config/src/api/spec/polymesh-mainnet.ts delete mode 100644 packages/apps-config/src/api/spec/polymesh-testnet.ts delete mode 100644 packages/apps-config/src/api/spec/pontem.ts delete mode 100644 packages/apps-config/src/api/spec/prism.ts delete mode 100644 packages/apps-config/src/api/spec/quartz.ts delete mode 100644 packages/apps-config/src/api/spec/realis.ts delete mode 100644 packages/apps-config/src/api/spec/riochain.ts delete mode 100644 packages/apps-config/src/api/spec/robonomics.ts delete mode 100644 packages/apps-config/src/api/spec/rootnet.ts delete mode 100644 packages/apps-config/src/api/spec/sapphire.ts delete mode 100644 packages/apps-config/src/api/spec/shibuya.ts delete mode 100644 packages/apps-config/src/api/spec/shiden.ts delete mode 100644 packages/apps-config/src/api/spec/snowbridge.ts delete mode 100644 packages/apps-config/src/api/spec/soraSubstrate.ts delete mode 100644 packages/apps-config/src/api/spec/spanner.ts delete mode 100644 packages/apps-config/src/api/spec/spreehafen.ts delete mode 100644 packages/apps-config/src/api/spec/stafi.ts delete mode 100644 packages/apps-config/src/api/spec/standard.ts delete mode 100644 packages/apps-config/src/api/spec/subdao.ts delete mode 100644 packages/apps-config/src/api/spec/subgame.ts delete mode 100644 packages/apps-config/src/api/spec/subsocial.ts delete mode 100644 packages/apps-config/src/api/spec/subspace.ts delete mode 100644 packages/apps-config/src/api/spec/substrateContractsNode.ts delete mode 100644 packages/apps-config/src/api/spec/swapdex.ts delete mode 100644 packages/apps-config/src/api/spec/t0rn.ts delete mode 100644 packages/apps-config/src/api/spec/tanganika.ts delete mode 100644 packages/apps-config/src/api/spec/ternoa.ts delete mode 100644 packages/apps-config/src/api/spec/torus.ts delete mode 100644 packages/apps-config/src/api/spec/trustbase.ts delete mode 100644 packages/apps-config/src/api/spec/turing.ts delete mode 100644 packages/apps-config/src/api/spec/uart.ts delete mode 100644 packages/apps-config/src/api/spec/unique.ts delete mode 100644 packages/apps-config/src/api/spec/unitnetwork.ts delete mode 100644 packages/apps-config/src/api/spec/unitv.ts delete mode 100644 packages/apps-config/src/api/spec/vln-pezkuwichain.ts delete mode 100644 packages/apps-config/src/api/spec/vln.ts delete mode 100644 packages/apps-config/src/api/spec/vodka.ts delete mode 100644 packages/apps-config/src/api/spec/watr.ts delete mode 100644 packages/apps-config/src/api/spec/web3games.ts delete mode 100644 packages/apps-config/src/api/spec/westlake.ts delete mode 100644 packages/apps-config/src/api/spec/zCloak.ts delete mode 100644 packages/apps-config/src/api/spec/zeitgeist.ts delete mode 100644 packages/apps-config/src/api/spec/zenlink.ts delete mode 100644 packages/apps-config/src/api/spec/zero.ts diff --git a/packages/apps-config/package.json b/packages/apps-config/package.json index 75a64f4..44614db 100644 --- a/packages/apps-config/package.json +++ b/packages/apps-config/package.json @@ -16,26 +16,6 @@ "version": "1.0.2-1-x", "main": "index.js", "dependencies": { - "@acala-network/type-definitions": "5.1.2", - "@bifrost-finance/type-definitions": "1.11.3", - "@crustio/type-definitions": "1.3.0", - "@darwinia/types": "2.8.10", - "@darwinia/types-known": "2.8.10", - "@docknetwork/node-types": "0.16.0", - "@edgeware/node-types": "3.6.2-wako", - "@equilab/definitions": "1.4.18", - "@fragnova/api-augment": "0.1.0-spec-1.0.4-mainnet", - "@frequency-chain/api-augment": "1.11.1", - "@interlay/interbtc-types": "1.13.0", - "@jamton/teyrchain-ts-interfaces": "npm:@jamton/parachain-ts-interfaces@1.10.4", - "@kiltprotocol/type-definitions": "^1.11502.1", - "@laminar/type-definitions": "0.3.1", - "@mangata-finance/type-definitions": "^2.1.2", - "@metaverse-network-sdk/type-definitions": "0.0.1-16", - "@moonbeam-network/types-bundle": "1.0.2", - "@parallel-finance/type-definitions": "2.0.1", - "@peaqnetwork/type-definitions": "0.0.4", - "@pendulum-chain/type-definitions": "0.3.8", "@pezkuwi/api": "^16.5.37", "@pezkuwi/api-derive": "^16.5.37", "@pezkuwi/networks": "^14.0.26", @@ -47,18 +27,6 @@ "@pezkuwi/wasm-util": "^7.5.20", "@pezkuwi/x-fetch": "^14.0.26", "@pezkuwi/x-ws": "^14.0.26", - "@phala/typedefs": "0.2.33", - "@polymeshassociation/polymesh-types": "5.7.0", - "@snowfork/snowbridge-types": "0.2.7", - "@sora-bizinikiwi/type-definitions": "npm:@sora-substrate/type-definitions@1.27.7", - "@subsocial/definitions": "0.8.14", - "@unique-nft/opal-testnet-types": "1003.70.0", - "@unique-nft/quartz-mainnet-types": "1003.70.0", - "@unique-nft/sapphire-mainnet-types": "1003.70.0", - "@unique-nft/unique-mainnet-types": "1001.63.0", - "@zeitgeistpm/type-defs": "1.0.0", - "@zeroio/type-definitions": "0.0.14", - "pontem-types-bundle": "1.0.15", "rxjs": "^7.8.1", "tslib": "^2.8.1" } diff --git a/packages/apps-config/src/api/chain/cere.ts b/packages/apps-config/src/api/chain/cere.ts deleted file mode 100644 index ad56fd1..0000000 --- a/packages/apps-config/src/api/chain/cere.ts +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ -const definitions: OverrideBundleDefinition = { - types: [ - { - minmax: [ - 266, - 281 - ], - types: { - ChainId: 'u8', - DepositNonce: 'u64', - ResourceId: '[u8; 32]', - ProposalStatus: { - _enum: [ - 'Initiated', - 'Approved', - 'Rejected' - ] - }, - ProposalVotes: { - votes_for: 'Vec', - votes_against: 'Vec', - status: 'ProposalStatus', - expiry: 'BlockNumber' - }, - TokenId: 'u256', - Erc721Token: { - id: 'TokenId', - metadata: 'Vec' - }, - Address: 'IndicesLookupSource', - LookupSource: 'IndicesLookupSource', - AccountInfo: 'AccountInfoWithDualRefCount', - ValidatorPrefs: { - commission: 'Compact' - } - } - }, - { - minmax: [ - 282, - 294 - ], - types: { - ChainId: 'u8', - DepositNonce: 'u64', - ResourceId: '[u8; 32]', - ProposalStatus: { - _enum: [ - 'Initiated', - 'Approved', - 'Rejected' - ] - }, - ProposalVotes: { - votes_for: 'Vec', - votes_against: 'Vec', - status: 'ProposalStatus', - expiry: 'BlockNumber' - }, - TokenId: 'u256', - Erc721Token: { - id: 'TokenId', - metadata: 'Vec' - }, - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AccountInfo: 'AccountInfoWithDualRefCount' - } - }, - { - minmax: [295, null], - types: {} - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/chain/index.ts b/packages/apps-config/src/api/chain/index.ts index 875201a..1a5fc05 100644 --- a/packages/apps-config/src/api/chain/index.ts +++ b/packages/apps-config/src/api/chain/index.ts @@ -3,11 +3,7 @@ import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; -import cere from './cere.js'; - -// NOTE: The mapping is done from chain name in system.chain -const chain: Record = { - 'Cere Mainnet Beta': cere -}; +// Type bundles by system.chain name; see spec/index.ts. +const chain: Record = {}; export default chain; diff --git a/packages/apps-config/src/api/derives.ts b/packages/apps-config/src/api/derives.ts index 06165ad..263475a 100644 --- a/packages/apps-config/src/api/derives.ts +++ b/packages/apps-config/src/api/derives.ts @@ -3,24 +3,10 @@ import type { OverrideBundleDefinition, OverrideBundleType } from '@pezkuwi/types/types'; -import equilibrium from './spec/equilibrium.js'; -import genshiro from './spec/genshiro.js'; -import hyperbridge from './spec/hyperbridge.js'; -import interbtc from './spec/interbtc.js'; -import mangata from './spec/mangata.js'; -import subspace from './spec/subspace.js'; - -const mapping: [OverrideBundleDefinition, string[]][] = [ - [equilibrium, ['Equilibrium', 'Equilibrium-teyrchain']], - [genshiro, ['Genshiro', 'Gens-teyrchain']], - [interbtc, ['interbtc-teyrchain', 'interbtc-standalone', 'interlay-teyrchain', 'kintsugi-teyrchain', 'testnet-kintsugi', 'testnet-interlay']], - [subspace, ['subspace']], - [mangata, ['mangata', 'mangata-teyrchain']] -]; - -const specMappings: [OverrideBundleDefinition, string[]][] = [ - [hyperbridge, ['nexus', 'messier', 'gargantua']] -]; +// Custom derives travel outside typesBundle.ts (the generator drops them, as +// they are functions): a spec with derives is listed here against the +// specNames it applies to. None of the Pezkuwi chains needs one. +const mapping: [OverrideBundleDefinition, string[]][] = []; export function applyDerives (typesBundle: OverrideBundleType): OverrideBundleType { mapping.forEach(([{ derives }, chains]): void => { @@ -31,13 +17,5 @@ export function applyDerives (typesBundle: OverrideBundleType): OverrideBundleTy }); }); - specMappings.forEach(([spec, chains]): void => { - chains.forEach((chain): void => { - if (typesBundle.spec?.[chain]) { - typesBundle.spec[chain] = spec; - } - }); - }); - return typesBundle; } diff --git a/packages/apps-config/src/api/spec/acala.ts b/packages/apps-config/src/api/spec/acala.ts deleted file mode 100644 index 555c159..0000000 --- a/packages/apps-config/src/api/spec/acala.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundleForPolkadot as typesBundleForPezkuwi } from '@acala-network/type-definitions'; - -// External package types, cast to proper type for compatibility -export default ((typesBundleForPezkuwi as Record).spec || {}) as Record; diff --git a/packages/apps-config/src/api/spec/ajuna.ts b/packages/apps-config/src/api/spec/ajuna.ts deleted file mode 100644 index 3495bac..0000000 --- a/packages/apps-config/src/api/spec/ajuna.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/allfeat.ts b/packages/apps-config/src/api/spec/allfeat.ts deleted file mode 100644 index f068e26..0000000 --- a/packages/apps-config/src/api/spec/allfeat.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AccountId: 'EthereumAccountId', - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/altair.ts b/packages/apps-config/src/api/spec/altair.ts deleted file mode 100644 index e715041..0000000 --- a/packages/apps-config/src/api/spec/altair.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - TeyrchainAccountIdOf: 'AccountId', - Proof: { - leafHash: 'Hash', - sortedHashes: 'Vec' - }, - ProxyType: { - _enum: [ - 'Any', - 'NonTransfer', - 'Governance', - '_Staking', - 'NonProxy' - ] - }, - RelayChainAccountId: 'AccountId', - RootHashOf: 'Hash' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/apron.ts b/packages/apps-config/src/api/spec/apron.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/apron.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/ares-gladios.ts b/packages/apps-config/src/api/spec/ares-gladios.ts deleted file mode 100644 index 933cb33..0000000 --- a/packages/apps-config/src/api/spec/ares-gladios.ts +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - AskPeriodNum: 'u64', - AskPointNum: 'u32', - AuthorityAres: 'AccountId', - AccountParticipateEstimates: { - account: 'AccountId', - end: 'BlockNumber', - estimates: 'Option', - range_index: 'Option', - bsc_address: 'Option', - multiplier: 'MultiplierOption', - reward: 'u128' - }, - AresPriceData: { - price: 'u64', - account_id: 'AccountId', - create_bn: 'BlockNumber', - fraction_len: 'FractionLength', - raw_number: 'JsonNumberValue', - timestamp: 'u64' - }, - BalanceOf: 'Balance', - ChooseWinnersPayload: { - block_number: 'BlockNumber', - winners: 'Vec', - public: 'AccountId', - estimates_id: 'u64', - symbol: 'Bytes', - price: '(u64, FractionLength)' - }, - EstimatesState: { - _enum: [ - 'InActive', - 'Active', - 'WaitingPayout', - 'Completed' - ] - }, - EstimatesType: { - _enum: [ - 'DEVIATION', 'RANGE' - ] - }, - FractionLength: 'u32', - HttpError: { - _enum: { - IoErr: 'Bytes', - TimeOut: 'Bytes', - StatusErr: '(Bytes,u16)', - ParseErr: 'Bytes' - } - }, - HttpErrTracePayload: { - trace_data: 'HttpErrTraceData', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - HttpErrTraceData: { - block_number: 'BlockNumber', - err_auth: 'AuthorityId', - err_status: 'HttpError', - tip: 'Bytes' - }, - JsonNumberValue: { - integer: 'u64', - fraction: 'u64', - fraction_length: 'u32', - exponent: 'u32' - }, - Keys: 'SessionKeys3', - LookupSource: 'MultiAddress', - MultiplierOption: { - _enum: [ - 'Base1', 'Base2', 'Base5' - ] - }, - OcwControlData: { - need_verifier_check: 'bool', - open_free_price_reporter: 'bool', - open_paid_price_reporter: 'bool' - }, - OffchainSignature: 'MultiSignature', - PaidValue: { - create_bn: 'BlockNumber', - amount: 'BalanceOf', - is_income: 'bool' - }, - PurchasedId: 'Bytes', - PriceKey: 'Vec', - PriceToken: 'Bytes', - PreCheckPayload: { - block_number: 'BlockNumber', - pre_check_stash: 'AccountId', - pre_check_auth: 'AuthorityId', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PreCheckResultPayload: { - block_number: 'BlockNumber', - pre_check_list: 'Vec', - pre_check_stash: 'AccountId', - pre_check_auth: 'AuthorityId', - public: 'MultiSigner' - }, - PreCheckCompareLog: { - chain_avg_price_list: 'BTreeMap', - validator_up_price_list: 'BTreeMap', - raw_precheck_list: 'Vec' - }, - PreCheckStruct: { - price_key: 'Vec', - number_val: 'JsonNumberValue', - max_offset: 'Percent', - timestamp: 'u64' - }, - PricePayloadSubPrice: '(PriceKey, u64, FractionLength, JsonNumberValue, u64)', - PricePayloadSubJumpBlock: '(PriceKey, RequestInterval)', - PricePayload: { - block_number: 'BlockNumber', - price: 'Vec', - jump_block: 'Vec', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PreCheckStatus: { - _enum: [ - 'Review', - 'Prohibit', - 'Pass' - ] - }, - PurchasedRequestData: { - account_id: 'AccountId', - offer: 'BalanceOf', - create_bn: 'BlockNumber', - submit_threshold: 'u8', - max_duration: 'u64', - request_keys: 'Vec>' - }, - PurchasedPricePayload: { - block_number: 'BlockNumber', - purchase_id: 'Vec', - price: 'Vec', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PurchasedAvgPriceData: { - create_bn: 'u64', - reached_type: 'u8', - price_data: '(u64, FractionLength)' - }, - PurchasedDefaultData: { - submit_threshold: 'u8', - max_duration: 'u64', - avg_keep_duration: 'u64' - }, - PurchasedForceCleanPayload: { - BlockNumber: 'BlockNumber', - purchase_id_list: 'Vec>', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PurchaseId: 'Vec', - Releases: { - _enum: [ - 'V1_0_0_Ancestral', - 'V1_0_1_HttpErrUpgrade', - 'V1_1_0_HttpErrUpgrade', - 'V1_2_0' - ] - }, - RequestInterval: 'u8', - StatusErr: '(u16)', - SymbolEstimatesConfig: { - symbol: 'Bytes', - estimates_type: 'EstimatesType', - id: 'u64', - ticket_price: 'Balance', - symbol_completed_price: 'u64', - symbol_fraction: 'FractionLength', - start: 'BlockNumber', - end: 'BlockNumber', - distribute: 'BlockNumber', - deviation: 'Option', - range: 'Option>', - total_reward: 'Balance', - state: 'EstimatesState' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/ares-parachain.ts b/packages/apps-config/src/api/spec/ares-parachain.ts deleted file mode 100644 index a23c021..0000000 --- a/packages/apps-config/src/api/spec/ares-parachain.ts +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - AskPeriodNum: 'u64', - AskPointNum: 'u32', - AuthorityAres: 'AccountId', - AccountParticipateEstimates: { - account: 'AccountId', - end: 'BlockNumber', - estimates: 'Option', - range_index: 'Option', - eth_address: 'Option', - multiplier: 'MultiplierOption', - reward: 'u128' - }, - AresPriceData: { - price: 'u64', - account_id: 'AccountId', - create_bn: 'BlockNumber', - fraction_len: 'FractionLength', - raw_number: 'JsonNumberValue', - timestamp: 'u64' - }, - BalanceOf: 'Balance', - ChooseWinnersPayload: { - block_number: 'BlockNumber', - winners: 'Vec', - public: 'AccountId', - estimates_config: 'Bytes', - symbol: 'Bytes', - price: '(u64, FractionLength)' - }, - EstimatesState: { - _enum: [ - 'InActive', - 'Active', - 'WaitingPayout', - 'Completed' - ] - }, - EstimatesType: { - _enum: [ - 'DEVIATION', 'RANGE' - ] - }, - FractionLength: 'u32', - HttpError: { - _enum: { - IoErr: 'Bytes', - TimeOut: 'Bytes', - StatusErr: '(Bytes,u16)', - ParseErr: 'Bytes' - } - }, - HttpErrTracePayload: { - trace_data: 'HttpErrTraceData', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - HttpErrTraceData: { - block_number: 'BlockNumber', - err_auth: 'AuthorityId', - err_status: 'HttpError', - tip: 'Bytes' - }, - JsonNumberValue: { - integer: 'u64', - fraction: 'u64', - fraction_length: 'u32', - exponent: 'u32' - }, - Keys: 'SessionKeys4', - LookupSource: 'MultiAddress', - MultiplierOption: { - _enum: [ - 'Base1', 'Base2', 'Base5' - ] - }, - OcwControlData: { - need_verifier_check: 'bool', - open_free_price_reporter: 'bool', - open_paid_price_reporter: 'bool' - }, - OffchainSignature: 'MultiSignature', - PaidValue: { - create_bn: 'BlockNumber', - amount: 'BalanceOf', - is_income: 'bool' - }, - PurchasedId: 'Bytes', - PriceKey: 'Vec', - PriceToken: 'Bytes', - PreCheckPayload: { - block_number: 'BlockNumber', - pre_check_stash: 'AccountId', - pre_check_auth: 'AuthorityId', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PreCheckResultPayload: { - block_number: 'BlockNumber', - pre_check_list: 'Vec', - pre_check_stash: 'AccountId', - pre_check_auth: 'AuthorityId', - public: 'MultiSigner' - }, - PreCheckCompareLog: { - chain_avg_price_list: 'BTreeMap', - validator_up_price_list: 'BTreeMap', - raw_precheck_list: 'Vec' - }, - PreCheckStruct: { - price_key: 'Vec', - number_val: 'JsonNumberValue', - max_offset: 'Percent', - timestamp: 'u64' - }, - PricePayloadSubPrice: '(PriceKey, u64, FractionLength, JsonNumberValue, u64)', - PricePayloadSubJumpBlock: '(PriceKey, RequestInterval)', - PricePayload: { - block_number: 'BlockNumber', - price: 'Vec', - jump_block: 'Vec', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PreCheckStatus: { - _enum: [ - 'Review', - 'Prohibit', - 'Pass' - ] - }, - PurchasedRequestData: { - account_id: 'AccountId', - offer: 'BalanceOf', - create_bn: 'BlockNumber', - submit_threshold: 'u8', - max_duration: 'u64', - request_keys: 'Vec>' - }, - PurchasedPricePayload: { - block_number: 'BlockNumber', - purchase_id: 'Vec', - price: 'Vec', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PurchasedAvgPriceData: { - create_bn: 'u64', - reached_type: 'u8', - price_data: '(u64, FractionLength)' - }, - PurchasedDefaultData: { - submit_threshold: 'u8', - max_duration: 'u64', - avg_keep_duration: 'u64' - }, - PurchasedForceCleanPayload: { - BlockNumber: 'BlockNumber', - purchase_id_list: 'Vec>', - auth: 'AuthorityId', - public: 'MultiSigner' - }, - PurchaseId: 'Vec', - Releases: { - _enum: [ - 'V1_0_0_Ancestral', - 'V1_0_1_HttpErrUpgrade', - 'V1_1_0_HttpErrUpgrade', - 'V1_2_0' - ] - }, - RequestInterval: 'u8', - StatusErr: '(u16)', - SymbolEstimatesConfig: { - symbol: 'Bytes', - estimates_type: 'EstimatesType', - id: 'u64', - ticket_price: 'Balance', - symbol_completed_price: 'u64', - symbol_fraction: 'FractionLength', - start: 'BlockNumber', - end: 'BlockNumber', - distribute: 'BlockNumber', - deviation: 'Option', - range: 'Option>', - total_reward: 'Balance', - state: 'EstimatesState' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/argon.ts b/packages/apps-config/src/api/spec/argon.ts deleted file mode 100644 index bf91b40..0000000 --- a/packages/apps-config/src/api/spec/argon.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Satoshis: 'u64' - } - } - ], - runtime: { - MiningSlotApi: [ - { - methods: { - next_slot_era: { - description: 'Get the next slot block start and end', - params: [], - type: '(BlockNumber, BlockNumber)' - } - }, - version: 1 - } - ], - BitcoinApis: [ - { - methods: { - redemption_rate: { - description: 'Get the current redemption rate for a given number of satoshis', - params: [ - { - name: 'satoshis', - type: 'Satoshis' - } - ], - type: 'Balance' - }, - market_rate: { - description: 'Get the current market rate for a given number of satoshis', - params: [ - { - name: 'satoshis', - type: 'Satoshis' - } - ], - type: 'Balance' - } - }, - version: 1 - } - ] - } -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/astar.ts b/packages/apps-config/src/api/spec/astar.ts deleted file mode 100644 index 44a0681..0000000 --- a/packages/apps-config/src/api/spec/astar.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Keys: 'AccountId', - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AmountOf: 'Amount', - Amount: 'i128', - SmartContract: { - _enum: { - Evm: 'H160', - Wasm: 'AccountId' - } - }, - EraStakingPoints: { - total: 'Balance', - stakers: 'BTreeMap', - formerStakedEra: 'EraIndex', - claimedRewards: 'Balance' - }, - EraRewardAndStake: { - rewards: 'Balance', - staked: 'Balance' - }, - EraIndex: 'u32' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/bajun.ts b/packages/apps-config/src/api/spec/bajun.ts deleted file mode 100644 index 3495bac..0000000 --- a/packages/apps-config/src/api/spec/bajun.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/basilisk.ts b/packages/apps-config/src/api/spec/basilisk.ts deleted file mode 100644 index 66d637a..0000000 --- a/packages/apps-config/src/api/spec/basilisk.ts +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/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', - LBPWeight: 'u32', - WeightCurveType: { _enum: ['Linear'] }, - PoolId: 'AccountId', - BalanceOf: 'Balance', - AssetType: { - _enum: { - Token: 'Null', - PoolShare: '(AssetId,AssetId)' - } - }, - Pool: { - owner: 'AccountId', - start: 'BlockNumber', - end: 'BlockNumber', - assets: 'AssetPair', - initial_weights: 'LBPWeight', - final_weights: 'LBPWeight', - weight_curve: 'WeightCurveType', - pausable: 'bool', - paused: 'bool', - fee: 'Fee', - fee_receiver: 'AccountId' - }, - AssetDetails: { - name: 'Vec', - asset_type: 'AssetType', - existential_deposit: 'Balance', - locked: 'bool' - }, - AssetDetailsT: 'AssetDetails', - AssetMetadata: { symbol: 'Vec', decimals: 'u8' }, - AssetInstance: 'AssetInstanceV1', - MultiLocation: 'MultiLocationV1', - MultiAsset: 'MultiAssetV1', - Xcm: 'XcmV1', - XcmOrder: 'XcmOrderV1' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/beresheet.ts b/packages/apps-config/src/api/spec/beresheet.ts deleted file mode 100644 index fd43fd5..0000000 --- a/packages/apps-config/src/api/spec/beresheet.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import pkg from '@edgeware/node-types'; - -export default (pkg.spec.typesBundle as { spec: { edgeware: OverrideBundleDefinition } }).spec.edgeware; diff --git a/packages/apps-config/src/api/spec/bifrost-asgard.ts b/packages/apps-config/src/api/spec/bifrost-asgard.ts deleted file mode 100644 index f123983..0000000 --- a/packages/apps-config/src/api/spec/bifrost-asgard.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundleForPolkadot as typesBundleForPezkuwi } from '@bifrost-finance/type-definitions'; - -export default (typesBundleForPezkuwi as { spec: { asgard: OverrideBundleDefinition } }).spec.asgard; diff --git a/packages/apps-config/src/api/spec/bifrost-parachain.ts b/packages/apps-config/src/api/spec/bifrost-parachain.ts deleted file mode 100644 index b035093..0000000 --- a/packages/apps-config/src/api/spec/bifrost-parachain.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundleForPolkadot as typesBundleForPezkuwi } from '@bifrost-finance/type-definitions'; - -export default (typesBundleForPezkuwi as { spec: { bifrost: OverrideBundleDefinition } }).spec.bifrost; diff --git a/packages/apps-config/src/api/spec/bifrost.ts b/packages/apps-config/src/api/spec/bifrost.ts deleted file mode 100644 index b035093..0000000 --- a/packages/apps-config/src/api/spec/bifrost.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundleForPolkadot as typesBundleForPezkuwi } from '@bifrost-finance/type-definitions'; - -export default (typesBundleForPezkuwi as { spec: { bifrost: OverrideBundleDefinition } }).spec.bifrost; diff --git a/packages/apps-config/src/api/spec/bitcountry-pezkuwichain.ts b/packages/apps-config/src/api/spec/bitcountry-pezkuwichain.ts deleted file mode 100644 index c094c29..0000000 --- a/packages/apps-config/src/api/spec/bitcountry-pezkuwichain.ts +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AssetInfo: { - owner: 'AccountId', - data: 'AssetData' - }, - AssetData: { - name: 'Text', - description: 'Text', - properties: 'Text', - supporters: 'Vec' - }, - AuctionId: 'u64', - AuctionItem: { - asset_id: 'TokenId', - class_id: 'ClassId', - recipient: 'AccountId', - initial_amount: 'Balance', - amount: 'Balance', - start_time: 'u32', - end_time: 'u32' - }, - AuctionInfo: { - bid: 'Option<(AccountId,Balance)>', - start: 'BlockNumber', - end: 'Option' - }, - RentId: 'u64', - RentalInfo: { - owner: 'AccountId', - start: 'BlockNumber', - end: 'Option', - price_per_block: 'Balance' - }, - CountryId: 'u64', - CollectionId: 'u64', - ClassId: 'u32', - TokenId: 'u64', - ClassInfoOf: { - metadata: 'Vec', - total_issuance: 'TokenId', - owner: 'AccountId', - data: 'NftClassData' - }, - TokenInfoOf: { - metadata: 'Vec', - owner: 'AccountId', - data: 'NftAssetData' - }, - NftCollectionData: { - name: 'Vec', - owner: 'AccountId', - properties: 'Vec' - }, - TokenType: { - _enum: [ - 'Transferrable', - 'BoundToAddress' - ] - }, - NftAssetData: { - name: 'Vec', - description: 'Vec', - properties: 'Vec' - }, - NftClassData: { - deposit: 'Balance', - properties: 'Vec', - token_type: 'TokenType' - }, - NetworkId: { - _enum: { - Any: 'Null', - Named: 'Vec', - Pezkuwi: 'Null', - Dicle: 'Null' - } - }, - CurrencyId: { - _enum: { - Token: 'TokenSymbol' - } - }, - TokenSymbol: { - _enum: [ - 'NUUM', - 'AUSD', - 'ACA', - 'HEZ' - ] - }, - CountryCurrencyId: 'u32', - CurrencyIdOf: 'CurrencyId', - BalanceIdOf: 'Balance', - ChainId: { - _enum: { - RelayChain: 'Null', - ParaChain: 'ParaId' - } - }, - XCurrencyId: { - chain_id: 'ChainId', - currency_id: 'CurrencyId' - }, - GroupCollectionId: 'u64', - ClassIdOf: 'u32', - TokenIdOf: 'u32', - SpotId: 'u32' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/bitcountry-pioneer.ts b/packages/apps-config/src/api/spec/bitcountry-pioneer.ts deleted file mode 100644 index 1d1771b..0000000 --- a/packages/apps-config/src/api/spec/bitcountry-pioneer.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { types } from '@metaverse-network-sdk/type-definitions'; - -export default types; diff --git a/packages/apps-config/src/api/spec/bitcountry.ts b/packages/apps-config/src/api/spec/bitcountry.ts deleted file mode 100644 index a16c11d..0000000 --- a/packages/apps-config/src/api/spec/bitcountry.ts +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AssetInfo: { - owner: 'AccountId', - data: 'AssetData' - }, - AssetData: { - name: 'Text', - description: 'Text', - properties: 'Text', - supporters: 'Vec' - }, - AuctionId: 'u64', - AuctionItem: { - asset_id: 'TokenId', - class_id: 'ClassId', - recipient: 'AccountId', - initial_amount: 'Balance', - amount: 'Balance', - start_time: 'u32', - end_time: 'u32' - }, - AuctionInfo: { - bid: 'Option<(AccountId,Balance)>', - start: 'BlockNumber', - end: 'Option' - }, - RentId: 'u64', - RentalInfo: { - owner: 'AccountId', - start: 'BlockNumber', - end: 'Option', - price_per_block: 'Balance' - }, - CountryId: 'u64', - CountryCurrencyId: 'u32', - CollectionId: 'u64', - ClassId: 'u32', - TokenId: 'u64', - ClassInfoOf: { - metadata: 'Vec', - total_issuance: 'TokenId', - owner: 'AccountId', - data: 'NftClassData' - }, - TokenInfoOf: { - metadata: 'Vec', - owner: 'AccountId', - data: 'NftAssetData' - }, - NftCollectionData: { - name: 'Vec', - owner: 'AccountId', - properties: 'Vec' - }, - CurrencyId: 'u32', - CurrencyIdOf: 'CurrencyId', - BalanceIdOf: 'Balance', - GroupCollectionId: 'u64', - ClassIdOf: 'u32', - TokenIdOf: 'u32', - SpotId: 'u32' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/bittensor.ts b/packages/apps-config/src/api/spec/bittensor.ts deleted file mode 100644 index b60d402..0000000 --- a/packages/apps-config/src/api/spec/bittensor.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Balance: 'u64', - NeuronMetadata: { - version: 'u32', - ip: 'u128', - port: 'u16', - ipType: 'u8', - uid: 'u32', - netuid: 'u16', - modality: 'u8', - hotkey: 'AccountId', - coldkey: 'AccountId', - active: 'u32', - lastUpdate: 'u64', - priority: 'u64', - stake: 'u64', - rank: 'u64', - trust: 'u64', - consensus: 'u64', - incentive: 'u64', - dividends: 'u64', - emission: 'u64', - bonds: 'Vec<(u32, u64)>', - weights: 'Vec<(u32, u32)>' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/centrifuge-chain.ts b/packages/apps-config/src/api/spec/centrifuge-chain.ts deleted file mode 100644 index 854b58f..0000000 --- a/packages/apps-config/src/api/spec/centrifuge-chain.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const 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', - 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' - }, - AssetInfo: { - metadata: 'Bytes' - }, - ProofMint: { - value: 'Bytes', - property: 'Bytes', - salt: '[u8; 32]', - hashes: 'Vec' - }, - MintInfo: { - anchorId: 'Hash', - staticHashes: '[Hash; 3]', - proofs: 'Vec' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/centrifuge.ts b/packages/apps-config/src/api/spec/centrifuge.ts deleted file mode 100644 index 45978ab..0000000 --- a/packages/apps-config/src/api/spec/centrifuge.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AnchorData: { - id: 'Hash', - docRoot: 'Hash', - anchoredBlock: 'u64' - }, - ChainId: 'u8', - 'chainbridge::ChainId': 'u8', - DepositNonce: 'u64', - Fee: { - key: 'Hash', - price: 'Balance' - }, - TeyrchainAccountIdOf: 'AccountId', - PreCommitData: { - signingRoot: 'Hash', - identity: 'AccountId', - expirationBlock: 'u64' - }, - Proof: { - leafHash: 'Hash', - sortedHashes: 'Vec' - }, - ProxyType: { - _enum: [ - 'Any', - 'NonTransfer', - 'Governance', - '_Staking', - 'NonProxy' - ] - }, - ResourceId: '[u8; 32]', - RelayChainAccountId: 'AccountId', - RootHashOf: 'Hash' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/chainx.ts b/packages/apps-config/src/api/spec/chainx.ts deleted file mode 100644 index 495fded..0000000 --- a/packages/apps-config/src/api/spec/chainx.ts +++ /dev/null @@ -1,462 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId', - Chain: { - _enum: [ - 'ChainX', - 'Bitcoin', - 'Ethereum', - 'Pezkuwi' - ] - }, - NetworkType: { - _enum: [ - 'Mainnet', - 'Testnet' - ] - }, - AssetType: { - _enum: [ - 'Usable', - 'Locked', - 'Reserved', - 'ReservedWithdrawal', - 'ReservedDexSpot' - ] - }, - OrderType: { - _enum: [ - 'Limit', - 'Market' - ] - }, - Side: { - _enum: [ - 'Buy', - 'Sell' - ] - }, - LockedType: { - _enum: [ - 'Bonded', - 'BondedWithdrawal' - ] - }, - Memo: 'Text', - AssetInfo: { - token: 'String', - tokenName: 'String', - chain: 'Chain', - decimals: 'Decimals', - desc: 'String' - }, - TradingPairProfile: { - id: 'TradingPairId', - currencyPair: 'CurrencyPair', - pipDecimals: 'u32', - tickDecimals: 'u32', - tradable: 'bool' - }, - Order: { - props: 'OrderProperty', - status: 'OrderStatus', - remaining: 'Balance', - executedIndices: 'Vec', - alreadyFilled: 'Balance', - lastUpdateAt: 'BlockNumber' - }, - TradingPairInfo: { - latestPrice: 'Price', - lastUpdated: 'BlockNumber' - }, - OrderExecutedInfo: { - tradingHistoryIdx: 'TradingHistoryIndex', - pairId: 'TradingPairId', - price: 'Price', - maker: 'AccountId', - taker: 'AccountId', - makerOrderId: 'OrderId', - takerOrderId: 'OrderId', - turnover: 'Balance', - executedAt: 'BlockNumber' - }, - BtcHeaderInfo: { - header: 'BtcHeader', - height: 'u32' - }, - BtcParams: { - maxBits: 'u32', - blockMaxFuture: 'u32', - targetTimespanSeconds: 'u32', - targetSpacingSeconds: 'u32', - retargetingFactor: 'u32', - retargetingInterval: 'u32', - minTimespan: 'u32', - maxTimespan: 'u32' - }, - MiningAssetInfo: { - assetId: 'AssetId', - miningPower: 'FixedAssetPower', - rewardPot: 'AccountId', - rewardPotBalance: 'RpcBalance', - lastTotalMiningWeight: 'RpcMiningWeight', - lastTotalMiningWeightUpdate: 'BlockNumber' - }, - MiningDividendInfo: { - own: 'Balance', - other: 'Balance', - insufficientStake: 'Balance' - }, - AssetLedger: { - lastTotalMiningWeight: 'MiningWeight', - lastTotalMiningWeightUpdate: 'BlockNumber' - }, - MinerLedger: { - lastMiningWeight: 'MiningWeight', - lastMiningWeightUpdate: 'BlockNumber', - lastClaim: 'Option' - }, - ClaimRestriction: { - stakingRequirement: 'StakingRequirement', - frequencyLimit: 'BlockNumber' - }, - NominatorInfo: { - lastRebond: 'Option' - }, - BondRequirement: { - selfBonded: 'Balance', - total: 'Balance' - }, - Unbonded: { - value: 'Balance', - lockedUntil: 'BlockNumber' - }, - ValidatorLedger: { - totalNomination: 'Balance', - lastTotalVoteWeight: 'VoteWeight', - lastTotalVoteWeightUpdate: 'BlockNumber' - }, - NominatorLedger: { - nomination: 'Balance', - lastVoteWeight: 'VoteWeight', - lastVoteWeightUpdate: 'BlockNumber', - unbondedChunks: 'Vec' - }, - ValidatorProfile: { - registeredAt: 'BlockNumber', - isChilled: 'bool', - lastChilled: 'Option', - referralId: 'ReferralId' - }, - GlobalDistribution: { - treasury: 'u32', - mining: 'u32' - }, - MiningDistribution: { - asset: 'u32', - staking: 'u32' - }, - InclusionFee: { - baseFee: 'Balance', - lenFee: 'Balance', - adjustedWeightFee: 'Balance' - }, - FeeDetails: { - inclusionFee: 'Option>', - extraFee: 'Balance', - tip: 'Balance', - finalFee: 'Balance' - }, - UnbondedIndex: 'u32', - Token: 'Text', - Desc: 'Text', - AddrStr: 'Text', - HandicapInfo: 'Handicap', - Price: 'u128', - OrderId: 'u64', - TradingPairId: 'u32', - TradingHistoryIndex: 'u64', - PriceFluctuation: 'u32', - BtcAddress: 'Text', - FixedAssetPower: 'u32', - StakingRequirement: 'u32', - Decimals: 'u8', - CurrencyPair: { - base: 'AssetId', - quote: 'AssetId' - }, - OrderStatus: { - _enum: [ - 'Created', - 'PartialFill', - 'Filled', - 'PartialFillAndCanceled', - 'Canceled' - ] - }, - AssetId: 'u32', - MiningWeight: 'u128', - VoteWeight: 'u128', - ReferralId: 'Text', - AssetRestriction: { - _enum: [ - 'Move', - 'Transfer', - 'Deposit', - 'Withdraw', - 'DestroyWithdrawal', - 'DestroyFree' - ] - }, - AssetRestrictions: { - bits: 'u32' - }, - BtcHeader: 'Vec', - BtcNetwork: { - _enum: [ - 'Mainnet', - 'Testnet' - ] - }, - OrderInfo: 'Order', - Amount: 'i128', - AmountOf: 'Amount', - CurrencyIdOf: 'AssetId', - CurrencyId: 'AssetId', - Handicap: { - highestBid: 'Price', - lowestAsk: 'Price' - }, - OrderProperty: { - id: 'OrderId', - side: 'Side', - price: 'Price', - amount: 'Amount', - pairId: 'TradingPairId', - submitter: 'AccountId', - orderType: 'OrderType', - createdAt: 'BlockNumber' - }, - TotalAssetInfo: { - info: 'AssetInfo', - balance: 'BTreeMap', - isOnline: 'bool', - restrictions: 'AssetRestrictions' - }, - WithdrawalRecordId: 'u32', - WithdrawalState: { - _enum: [ - 'Applying', - 'Processing', - 'NormalFinish', - 'RootFinish', - 'NormalCancel', - 'RootCancel' - ] - }, - WithdrawalRecord: { - assetId: 'AssetId', - applicant: 'AccountId', - balance: 'Balance', - addr: 'AddrStr', - ext: 'Memo', - height: 'BlockNumber' - }, - WithdrawalLimit: { - minimalWithdrawal: 'Balance', - fee: 'Balance' - }, - TrusteeInfoConfig: { - minTrusteeCount: 'u32', - maxTrusteeCount: 'u32' - }, - GenericTrusteeIntentionProps: { - about: 'Text', - hotEntity: 'Vec', - coldEntity: 'Vec' - }, - GenericTrusteeSessionInfo: { - trusteeList: 'Vec', - threshold: 'u16', - hotAddress: 'Vec', - coldAddress: 'Vec' - }, - ChainAddress: 'Vec', - BtcTrusteeType: 'Vec', - BtcTrusteeAddrInfo: { - addr: 'BtcAddress', - redeemScript: 'Vec' - }, - BtcTrusteeIntentionProps: { - about: 'Text', - hotEntity: 'BtcTrusteeType', - coldEntity: 'BtcTrusteeType' - }, - BtcTrusteeSessionInfo: { - trusteeList: 'Vec', - threshold: 'u16', - hotAddress: 'BtcTrusteeAddrInfo', - coldAddress: 'BtcTrusteeAddrInfo' - }, - BtcTransaction: 'Vec', - BtcPartialMerkleTree: 'Vec', - BtcRelayedTxInfo: { - blockHash: 'H256', - merkleProof: 'BtcPartialMerkleTree' - }, - BtcHeaderIndex: { - hash: 'H256', - height: 'u32' - }, - BtcTxResult: { - _enum: [ - 'Success', - 'Failure' - ] - }, - BtcTxState: { - txType: 'BtcTxType', - result: 'BtcTxResult' - }, - BtcTxType: { - _enum: [ - 'Withdrawal', - 'Deposit', - 'HotAndCold', - 'TrusteeTransition', - 'Irrelevance' - ] - }, - BtcDepositCache: { - txid: 'H256', - balance: 'u64' - }, - BtcVoteResult: { - _enum: [ - 'Unfinish', - 'Finish' - ] - }, - BtcWithdrawalProposal: { - sigState: 'BtcVoteResult', - withdrawalIdList: 'Vec', - tx: 'BtcTransaction', - trusteeList: 'Vec<(AccountId, bool)>' - }, - BtcTxVerifier: { - _enum: [ - 'Recover', - 'RuntimeInterface' - ] - }, - RpcTotalAssetInfo: { - info: 'AssetInfo', - balance: 'BTreeMap', - isOnline: 'bool', - restrictions: 'AssetRestrictions' - }, - RpcOrder: { - id: 'OrderId', - side: 'Side', - price: 'RpcPrice', - amount: 'RpcBalance', - pairId: 'TradingPairId', - submitter: 'AccountId', - orderType: 'OrderType', - createdAt: 'BlockNumber', - status: 'OrderStatus', - remaining: 'RpcBalance', - executedIndices: 'Vec', - alreadyFilled: 'RpcBalance', - reservedBalance: 'RpcBalance', - lastUpdateAt: 'BlockNumber' - }, - RpcWithdrawalRecord: { - assetId: 'AssetId', - applicant: 'AccountId', - balance: 'RpcBalance', - addr: 'String', - ext: 'String', - height: 'BlockNumber', - state: 'WithdrawalState' - }, - RpcMiningDividendInfo: { - own: 'RpcBalance', - other: 'RpcBalance', - insufficientStake: 'RpcBalance' - }, - RpcInclusionFee: { - baseFee: 'RpcBalance', - lenFee: 'RpcBalance', - adjustedWeightFee: 'RpcBalance' - }, - RpcFeeDetails: { - inclusionFee: 'Option', - tip: 'RpcBalance', - extraFee: 'RpcBalance', - finalFee: 'RpcBalance' - }, - ValidatorInfo: { - account: 'AccountId', - registeredAt: 'BlockNumber', - isChilled: 'bool', - lastChilled: 'Option', - totalNomination: 'RpcBalance', - lastTotalVoteWeight: 'RpcVoteWeight', - lastTotalVoteWeightUpdate: 'BlockNumber', - isValidating: 'bool', - selfBonded: 'RpcBalance', - referralId: 'String', - rewardPotAccount: 'AccountId', - rewardPotBalance: 'RpcBalance' - }, - FullPairInfo: { - baseCurrency: 'AssetId', - highestBid: 'RpcPrice', - id: 'TradingPairId', - latestPrice: 'RpcPrice', - latestPriceUpdatedAt: 'BlockNumber', - lowestAsk: 'RpcPrice', - maxValidBid: 'RpcPrice', - minValidAsk: 'RpcPrice', - pipDecimals: 'u32', - quoteCurrency: 'AssetId', - tickDecimals: 'u32', - tradable: 'bool' - }, - Depth: { - asks: 'Vec<(RpcPrice, RpcBalance)>', - bids: 'Vec<(RpcPrice, RpcBalance)>' - }, - Page: { - pageIndex: 'u32', - pageSize: 'u32', - data: 'Vec' - }, - String: 'Text', - Balance: 'u128', - RpcPrice: 'String', - RpcBalance: 'String', - RpcMiningWeight: 'String', - RpcVoteWeight: 'String', - FullIdentification: 'ValidatorId', - WithdrawalRecordOf: 'WithdrawalRecord' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/clover-pezkuwichain.ts b/packages/apps-config/src/api/spec/clover-pezkuwichain.ts deleted file mode 100644 index e20ddb2..0000000 --- a/packages/apps-config/src/api/spec/clover-pezkuwichain.ts +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Amount: 'i128', - AmountOf: 'Amount', - Balance: 'u128', - CurrencyId: { - _enum: ['CLV', 'CUSDT', 'HEZ', 'CETH'] - }, - CurrencyIdOf: 'CurrencyId', - CurrencyTypeEnum: { - _enum: ['CLV', 'CUSDT', 'HEZ', 'CETH'] - }, - PairKey: 'u64', - Rate: 'FixedU128', - Ratio: 'FixedU128', - Price: 'FixedU128', - Share: 'u128', - OracleKey: 'CurrencyId', - CurrencyInfo: { - id: 'CurrencyId', - name: 'CurrencyTypeEnum' - }, - ExchangeInfo: { - balance: 'Balance', - routes: 'Vec' - }, - 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' - ] - }, - ExitFatal: { - _enum: ['NotSupported', 'UnhandledInterrupt', 'CallErrorAsFatal', 'Other'] - }, - ExitReason: { - _enum: ['Succeed', - 'Error', - 'Revert', - 'Fatal' - ] - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/clover.ts b/packages/apps-config/src/api/spec/clover.ts deleted file mode 100644 index 54b04ba..0000000 --- a/packages/apps-config/src/api/spec/clover.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Amount: 'i128', - Keys: 'SessionKeys4', - AmountOf: 'Amount', - Balance: 'u128', - Rate: 'FixedU128', - Ratio: 'FixedU128', - EcdsaSignature: '[u8; 65]', - EvmAddress: 'H160', - EthereumTxHash: 'H256', - BridgeNetworks: { - _enum: ['BSC', 'Ethereum', 'CloverPara'] - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/coinversation.ts b/packages/apps-config/src/api/spec/coinversation.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/coinversation.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/communeai.ts b/packages/apps-config/src/api/spec/communeai.ts deleted file mode 100644 index b60d402..0000000 --- a/packages/apps-config/src/api/spec/communeai.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Balance: 'u64', - NeuronMetadata: { - version: 'u32', - ip: 'u128', - port: 'u16', - ipType: 'u8', - uid: 'u32', - netuid: 'u16', - modality: 'u8', - hotkey: 'AccountId', - coldkey: 'AccountId', - active: 'u32', - lastUpdate: 'u64', - priority: 'u64', - stake: 'u64', - rank: 'u64', - trust: 'u64', - consensus: 'u64', - incentive: 'u64', - dividends: 'u64', - emission: 'u64', - bonds: 'Vec<(u32, u64)>', - weights: 'Vec<(u32, u32)>' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/competitors-club.ts b/packages/apps-config/src/api/spec/competitors-club.ts deleted file mode 100644 index 1caceb1..0000000 --- a/packages/apps-config/src/api/spec/competitors-club.ts +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - ClassId: 'u64', - ClassInfoOf: 'ClassId', - BalanceOf: 'Balance', - BalanceReservableOf: 'BalanceOf', - Moment: 'u64', - Place: { - spot: 'u32', - payout: 'Balance' - }, - Competitor: { - vie_id: '[u8;16]', - staked: 'bool', - submitted_winner: 'bool' - }, - Vie: { - operator: 'AccountId', - stake: 'Balance', - places: 'Vec', - time: 'Moment', - competitors: 'Vec', - memo: 'Vec' - }, - VieOf: 'Vie', - VieReq: { - stake: 'Balance', - places: 'Vec', - competitors: 'Vec', - memo: 'Vec' - }, - VieRequestOf: 'VieReq', - Participants: { - AccountId: '[u8;16]' - }, - Operators: { - AccountId: '[u8;16]' - }, - StandingReq: { - competitor: 'AccountId', - spot: 'u32' - }, - PodiumReq: { - champion: 'AccountId', - podium: 'Vec' - }, - PodiumReqOf: 'PodiumReq', - Trophy: { - trophy: '[u8; 16]', - competitors: 'Vec', - stake: 'Balance', - memo: 'Vec', - time: 'u64', - podium: 'Vec' - }, - TokenId: 'u64', - TokenInfo: { - metadata: 'Vec', - owner: 'AccountId', - data: 'Trophy' - }, - TokenInfoOf: 'TokenInfo' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/contracts.ts b/packages/apps-config/src/api/spec/contracts.ts deleted file mode 100644 index 9e8efe7..0000000 --- a/packages/apps-config/src/api/spec/contracts.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - minmax: [0, 8], - types: { - Address: 'AccountId', - Keys: 'SessionKeys2', - LookupSource: 'AccountId', - Schedule: 'ScheduleTo258' - } - }, - { - // updated to Bizinikiwi master - minmax: [9, undefined], - types: { - Keys: 'SessionKeys2' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/crown-sterling.ts b/packages/apps-config/src/api/spec/crown-sterling.ts deleted file mode 100644 index 244dd07..0000000 --- a/packages/apps-config/src/api/spec/crown-sterling.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AccountInfo: { - nonce: 'Index', - consumers: 'RefCount', - providers: 'RefCount', - data: 'AccountData' - }, - Balance: 'u128', - BalanceOf: 'Balance', - AuthorityOf: 'AccountId', - PaymentId: '[u8;16]', - Payment: { - id: 'PaymentId', - account_id: 'AccountId', - success_url: 'Vec', - failure_url: 'Vec', - paid: 'bool', - pay_to: 'AccountId' - }, - PeerId: '(Vec)', - Amendment: { - statement: 'Vec', - owners: 'Vec' - }, - BlockNumber: 'u32', - VestingSchedule: { - start: 'BlockNumber', - period: 'BlockNumber', - period_count: 'BlockNumber', - per_period: 'Compact' - }, - VestingScheduleOf: 'VestingSchedule' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/crust.ts b/packages/apps-config/src/api/spec/crust.ts deleted file mode 100644 index 9945fba..0000000 --- a/packages/apps-config/src/api/spec/crust.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundleForPolkadot as typesBundleForPezkuwi } from '@crustio/type-definitions'; - -export default (typesBundleForPezkuwi as Record>).spec.crust as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/spec/cumulus-test-parachain.ts b/packages/apps-config/src/api/spec/cumulus-test-parachain.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/cumulus-test-parachain.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/curio.ts b/packages/apps-config/src/api/spec/curio.ts deleted file mode 100644 index c5f5842..0000000 --- a/packages/apps-config/src/api/spec/curio.ts +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - StakingRates: { - collatorStakingRate: 'Perquintill', - collatorRewardRate: 'Perquintill', - delegatorStakingRate: 'Perquintill', - delegatorRewardRate: 'Perquintill' - } - } - } - ], - runtime: { - Staking: [ - { - methods: { - get_staking_rates: { - description: 'Calculate the current staking and reward rates for collators and delegators', - params: [], - type: 'StakingRates' - }, - get_unclaimed_staking_rewards: { - description: 'Calculate the claimable staking rewards for a given account address', - params: [ - { - name: 'account', - type: 'AccountId32' - } - ], - type: 'Balance' - }, - get_sorted_proposed_candidates: { - description: 'Provides a sorted list of collators most suited for given delegator\'s stake amount determined with some heuristic algorithm', - params: [ - { - name: 'balance', - type: 'Balance' - } - ], - type: 'Vec' - } - }, - version: 1 - } - ] - } -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/datahighway.ts b/packages/apps-config/src/api/spec/datahighway.ts deleted file mode 100644 index 3da82f1..0000000 --- a/packages/apps-config/src/api/spec/datahighway.ts +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Keys: 'SessionKeys2', - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - RoamingOperator: '[u8; 16]', - RoamingOperatorIndex: 'u64', - RoamingNetwork: '[u8; 16]', - RoamingNetworkIndex: 'u64', - RoamingOrganization: '[u8; 16]', - RoamingOrganizationIndex: 'u64', - RoamingNetworkServer: '[u8; 16]', - RoamingNetworkServerIndex: 'u64', - RoamingDevice: '[u8; 16]', - RoamingDeviceIndex: 'u64', - RoamingRoutingProfile: '[u8; 16]', - RoamingRoutingProfileIndex: 'u64', - RoamingRoutingProfileAppServer: 'Text', - RoamingServiceProfile: '[u8; 16]', - RoamingServiceProfileIndex: 'u64', - RoamingServiceProfileUplinkRate: 'u32', - RoamingServiceProfileDownlinkRate: 'u32', - RoamingAccountingPolicy: '[u8; 16]', - RoamingAccountingPolicyIndex: 'u64', - RoamingAccountingPolicyType: 'Text', - RoamingAccountingPolicyUplinkFeeFactor: 'u32', - RoamingAccountingPolicyDownlinkFeeFactor: 'u32', - RoamingAccountingPolicyConfig: { - policy_type: 'Text', - subscription_fee: 'Balance', - uplink_fee_factor: 'u32', - downlink_fee_factor: 'u32' - }, - RoamingAgreementPolicy: '[u8; 16]', - RoamingAgreementPolicyIndex: 'u64', - RoamingAgreementPolicyActivationType: 'Text', - RoamingAgreementPolicyConfig: { - policy_activation_type: 'Text', - policy_expiry_block: 'Moment' - }, - RoamingNetworkProfile: '[u8; 16]', - RoamingNetworkProfileIndex: 'u64', - RoamingDeviceProfile: '[u8; 16]', - RoamingDeviceProfileIndex: 'u64', - RoamingDeviceProfileDevAddr: 'Text', - RoamingDeviceProfileDevEUI: 'Text', - RoamingDeviceProfileJoinEUI: 'Text', - RoamingDeviceProfileVendorID: 'Text', - RoamingDeviceProfileConfig: { - device_profile_devaddr: 'Text', - device_profile_deveui: 'Text', - device_profile_joineui: 'Text', - device_profile_vendorid: 'Text' - }, - RoamingSession: '[u8; 16]', - RoamingSessionIndex: 'u64', - RoamingSessionJoinRequest: { - session_network_server_id: 'Moment', - session_join_requested_at_block: 'Moment' - }, - RoamingSessionJoinAccept: { - session_join_request_accept_expiry: 'Moment', - session_join_request_accept_accepted_at_block: 'Moment' - }, - RoamingBillingPolicy: '[u8; 16]', - RoamingBillingPolicyIndex: 'u64', - RoamingBillingPolicyConfig: { - policy_next_billing_at_block: 'Moment', - policy_frequency_in_blocks: 'Moment' - }, - RoamingChargingPolicy: '[u8; 16]', - RoamingChargingPolicyIndex: 'u64', - RoamingChargingPolicyConfig: { - policy_next_charging_at_block: 'Moment', - policy_delay_after_billing_in_blocks: 'u64' - }, - RoamingPacketBundle: '[u8; 16]', - RoamingPacketBundleIndex: 'u64', - RoamingPacketBundleReceivedAtHome: 'bool', - RoamingPacketBundleReceivedPacketsCount: 'u64', - RoamingPacketBundleReceivedPacketsOkCount: 'u64', - RoamingPacketBundleExternalDataStorageHash: 'Hash', - RoamingPacketBundleReceiver: { - packet_bundle_received_at_home: 'bool', - packet_bundle_received_packets_count: 'u64', - packet_bundle_received_packets_ok_count: 'u64', - packet_bundle_received_started_at_block: 'Moment', - packet_bundle_received_ended_at_block: 'Moment', - packet_bundle_external_data_storage_hash: 'Hash' - }, - MiningRatesToken: '[u8; 16]', - MiningRatesTokenIndex: 'u64', - MiningRatesTokenTokenDOT: 'u32', - MiningRatesTokenTokenMXC: 'u32', - MiningRatesTokenTokenIOTA: 'u32', - MiningRatesTokenMaxToken: 'u32', - MiningRatesTokenMaxLoyalty: 'u32', - MiningRatesTokenConfig: { - token_token_mxc: 'u32', - token_token_iota: 'u32', - token_token_dot: 'u32', - token_max_token: 'u32', - token_max_loyalty: 'u32' - }, - MiningRatesHardware: '[u8; 16]', - MiningRatesHardwareIndex: 'u64', - MiningRatesHardwareSecure: 'u32', - MiningRatesHardwareInsecure: 'u32', - MiningRatesHardwareMaxHardware: 'u32', - MiningRatesHardwareCategory1MaxTokenBonusPerGateway: 'u32', - MiningRatesHardwareCategory2MaxTokenBonusPerGateway: 'u32', - MiningRatesHardwareCategory3MaxTokenBonusPerGateway: 'u32', - MiningRatesHardwareConfig: { - hardware_hardware_secure: 'u32', - hardware_hardware_insecure: 'u32', - hardware_max_hardware: 'u32', - hardware_category_1_max_token_bonus_per_gateway: 'u32', - hardware_category_2_max_token_bonus_per_gateway: 'u32', - hardware_category_3_max_token_bonus_per_gateway: 'u32' - }, - MiningConfigToken: '[u8; 16]', - MiningConfigTokenIndex: 'u64', - MiningConfigTokenType: 'Text', - MiningConfigTokenLockAmount: 'u64', - MiningConfigTokenConfig: { - token_type: 'Text', - token_lock_amount: 'u64', - token_lock_start_block: 'Moment', - token_lock_interval_blocks: 'Moment' - }, - MiningConfigTokenRequirementsConfig: { - token_type: 'Text', - token_lock_min_amount: 'u64', - token_lock_min_blocks: 'u32' - }, - MiningConfigHardware: '[u8; 16]', - MiningConfigHardwareIndex: 'u64', - MiningConfigHardwareSecure: 'bool', - MiningConfigHardwareType: 'Text', - MiningConfigHardwareID: 'u64', - MiningConfigHardwareDevEUI: 'u64', - MiningConfigHardwareConfig: { - hardware_secure: 'bool', - hardware_type: 'Text', - hardware_id: 'u64', - hardware_dev_eui: 'u64', - hardware_lock_start_block: 'Moment', - hardware_lock_interval_blocks: 'Moment' - }, - MiningSamplingToken: '[u8; 16]', - MiningSamplingTokenIndex: 'u64', - MiningSamplingTokenSampleLockedAmount: 'u64', - MiningSamplingTokenConfig: { - token_sample_block: 'Moment', - token_sample_locked_amount: 'u64' - }, - MiningSamplingHardware: '[u8; 16]', - MiningSamplingHardwareIndex: 'u64', - MiningSamplingHardwareSampleHardwareOnline: 'u64', - MiningSamplingHardwareConfig: { - hardware_sample_block: 'Moment', - hardware_sample_hardware_online: 'bool' - }, - MiningEligibilityToken: '[u8; 16]', - MiningEligibilityTokenIndex: 'u64', - MiningEligibilityTokenCalculatedEligibility: 'u64', - MiningEligibilityTokenLockedPercentage: 'u32', - MiningEligibilityTokenAuditorAccountID: 'u64', - MiningEligibilityTokenResult: { - token_calculated_eligibility: 'u64', - token_token_locked_percentage: 'u32', - token_date_audited: 'Moment', - token_auditor_account_id: 'u64' - }, - MiningEligibilityHardware: '[u8; 16]', - MiningEligibilityHardwareIndex: 'u64', - MiningEligibilityHardwareCalculatedEligibility: 'u64', - MiningEligibilityHardwareUptimePercentage: 'u32', - MiningEligibilityHardwareAuditorAccountID: 'u64', - MiningEligibilityHardwareResult: { - hardware_calculated_eligibility: 'u64', - hardware_uptime_percentage: 'u32', - hardware_block_audited: 'Moment', - hardware_auditor_account_id: 'u64' - }, - MiningClaimsToken: '[u8; 16]', - MiningClaimsTokenIndex: 'u64', - MiningClaimsTokenClaimAmount: 'u64', - MiningClaimsTokenClaimResult: { - token_claim_amount: 'u64', - token_claim_block_redeemed: 'u64' - }, - MiningClaimsHardware: '[u8; 16]', - MiningClaimsHardwareIndex: 'u64', - MiningClaimsHardwareClaimAmount: 'u64', - MiningClaimsHardwareClaimResult: { - hardware_claim_amount: 'u64', - hardware_claim_block_redeemed: 'u64' - }, - MiningExecutionToken: '[u8; 16]', - MiningExecutionTokenIndex: 'u64', - MiningExecutionTokenExecutorAccountID: 'u64', - MiningExecutionTokenExecutionResult: { - token_execution_exector_account_id: 'u64', - token_execution_started_block: 'Moment', - token_execution_ended_block: 'Moment' - }, - ExchangeRateIndex: 'u64', - ExchangeRateConfig: { - hbtc: 'u64', - dot: 'u64', - iota: 'u64', - fil: 'u64', - decimals_after_point: 'u32' - }, - HBTCRate: 'u64', - DOTRate: 'u64', - IOTARate: 'u64', - FILRate: 'u64', - DecimalsAfterPoint: 'u32' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/dock-mainnet.ts b/packages/apps-config/src/api/spec/dock-mainnet.ts deleted file mode 100644 index 1aecf2f..0000000 --- a/packages/apps-config/src/api/spec/dock-mainnet.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// @ts-expect-error No definitions provided in package -import { spec } from '@docknetwork/node-types'; - -export default (spec as { 'dock-main-runtime': OverrideBundleDefinition })['dock-main-runtime']; diff --git a/packages/apps-config/src/api/spec/dock-testnet.ts b/packages/apps-config/src/api/spec/dock-testnet.ts deleted file mode 100644 index c010715..0000000 --- a/packages/apps-config/src/api/spec/dock-testnet.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// @ts-expect-error No definitions provided in package -import { spec } from '@docknetwork/node-types'; - -export default (spec as { 'dock-test-runtime': OverrideBundleDefinition })['dock-test-runtime']; diff --git a/packages/apps-config/src/api/spec/dolphin.ts b/packages/apps-config/src/api/spec/dolphin.ts deleted file mode 100644 index 46d897f..0000000 --- a/packages/apps-config/src/api/spec/dolphin.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: - { - CurrencyId: { - _enum: [ - 'DOL' - ] - }, - CurrencyIdOf: 'CurrencyId', - Amount: 'i128', - AmountOf: 'Amount', - AccountInfo: 'AccountInfoWithDualRefCount' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/dotmog.ts b/packages/apps-config/src/api/spec/dotmog.ts deleted file mode 100644 index c43cdbe..0000000 --- a/packages/apps-config/src/api/spec/dotmog.ts +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - MogwaiStruct: { - id: 'Hash', - dna: 'Hash', - genesis: 'BlockNumber', - price: 'Balance', - gen: 'u32', - rarity: 'RarityType' - }, - MogwaiBios: { - mogwai_id: 'Hash', - state: 'u32', - metaxy: 'Vec<[u8;16]>', - intrinsic: 'Balance', - level: 'u8', - phases: 'Vec', - adaptations: 'Vec' - }, - GameEvent: { - id: 'Hash', - begin: 'BlockNumber', - duration: 'u16', - event_type: 'GameEventType', - hashes: 'Vec', - value: 'u64' - }, - GameEventType: { - _enum: [ - 'Default', - 'Hatch' - ] - }, - RarityType: { - _enum: [ - 'Minor', - 'Normal', - 'Rare', - 'Epic', - 'Legendary' - ] - }, - MogwaicoinAddress: { - address: 'Vec', - account: 'AccountId', - signature: 'Vec', - state: 'ClaimState', - balance: 'Balance' - }, - ClaimState: { - _enum: [ - 'None', - 'Registred', - 'Verified', - 'Secured', - 'Processed', - 'Holded', - 'Failed', - 'Cancelled' - ] - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/eave.ts b/packages/apps-config/src/api/spec/eave.ts deleted file mode 100644 index 048c520..0000000 --- a/packages/apps-config/src/api/spec/eave.ts +++ /dev/null @@ -1,430 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AccountIdOf: 'AccountId', - Address: 'MultiAddress', - AirDropCurrencyId: { - _enum: [ - 'ICE', - 'EAVE' - ] - }, - Amount: 'i128', - AmountOf: 'Amount', - AsOriginId: 'AuthoritysOriginId', - AssetId: 'u64', - AssetIdOf: 'AssetId', - AuctionId: 'u32', - AuctionIdOf: 'AuctionId', - AuctionInfo: { - bid: 'Option<(AccountId, Balance)>', - start: 'BlockNumber', - end: 'Option' - }, - AuthoritysOriginId: { - _enum: [ - 'Root', - 'EaveTreasury', - 'CdpTreasury', - 'ElpTreasury', - 'DSWF' - ] - }, - BalanceInfo: { - amount: 'Balance' - }, - BalanceRequest: { - amount: 'Balance' - }, - BalanceWrapper: { - amount: 'Balance' - }, - BondingLedger: { - total: 'Compact', - active: 'Compact', - unlocking: 'Vec' - }, - CID: 'Vec', - CallOf: 'Call', - CallRequest: { - from: 'Option', - to: 'Option', - gasLimit: 'Option', - storageLimit: 'Option', - value: 'Option', - data: 'Option' - }, - ChainId: { - _enum: { - RelayChain: 'Null', - ParaChain: 'ParaId' - } - }, - ChangeBalance: { - _enum: { - NoChange: 'Null', - NewValue: 'Balance' - } - }, - ChangeOptionRate: { - _enum: { - NoChange: 'Null', - NewValue: 'OptionRate' - } - }, - ChangeOptionRatio: { - _enum: { - NoChange: 'Null', - NewValue: 'OptionRatio' - } - }, - ChangeRate: { - _enum: { - NoChange: 'Null', - NewValue: 'Rate' - } - }, - ChangeRatio: { - _enum: { - NoChange: 'Null', - NewValue: 'Ratio' - } - }, - ClassData: { - deposit: 'Balance', - properties: 'Properties' - }, - ClassId: 'u32', - ClassIdOf: 'ClassId', - ClassInfoOf: { - metadata: 'CID', - totalIssuance: 'TokenId', - owner: 'AccountId', - data: 'ClassData' - }, - CodeInfo: { - codeSize: 'u32', - refCount: 'u32' - }, - CollateralAuctionItem: { - refundRecipient: 'AccountId', - currencyId: 'CurrencyId', - initialAmount: 'Compact', - amount: 'Compact', - target: 'Compact', - startTime: 'BlockNumber' - }, - CurrencyId: { - _enum: { - Token: 'TokenSymbol', - DEXShare: '(TokenSymbol, TokenSymbol)', - ERC20: 'EvmAddress' - } - }, - CurrencyIdOf: 'CurrencyId', - DataProviderId: { - _enum: [ - 'Aggregated', - 'Eave', - 'Band' - ] - }, - DebitAuctionItem: { - initialAmount: 'Compact', - amount: 'Compact', - fix: 'Compact', - startTime: 'BlockNumber' - }, - DelayedDispatchTime: { - _enum: { - At: 'BlockNumber', - After: 'BlockNumber' - } - }, - DelayedOrigin: { - delay: 'BlockNumber', - origin: 'PalletsOrigin' - }, - DestAddress: 'Vec', - DispatchId: 'u32', - DispatchTime: { - _enum: { - At: 'BlockNumber', - After: 'BlockNumber' - } - }, - ElpUnlockChunk: { - value: 'Compact', - era: 'Compact' - }, - EvmAccountInfo: { - nonce: 'Index', - contractInfo: 'Option', - developerDeposit: 'Option' - }, - EvmAddress: 'H160', - EvmContractInfo: { - codeHash: 'H256', - maintainer: 'H160', - deployed: 'bool' - }, - ExchangeRate: 'FixedU128', - GraduallyUpdate: { - key: 'StorageKey', - targetValue: 'StorageValue', - perBlock: 'StorageValue' - }, - Keys: 'SessionKeys2', - Ledger: { - bonded: 'Balance', - unbondingToFree: 'Balance', - freePool: 'Balance', - toUnbondNextEra: '(Balance, Balance)' - }, - LiquidationStrategy: { - _enum: [ - 'Auction', - 'Exchange' - ] - }, - LiquidityPool: { - currency_ids: 'Vec', - lp_token_id: 'AssetId', - pool_config_id: 'u32', - pool_reserves: 'Vec' - }, - LiquidityPoolConfig_: 'PoolConfig', - LiquidityPool_: 'LiquidityPool', - LookupSource: 'MultiAddress', - NomineeId: 'AccountId', - NFTBalance: 'u128', - OptionRate: 'Option', - OptionRatio: 'Option', - OracleKey: 'CurrencyId', - OracleValue: 'Price', - OrderedSet: 'Vec', - OrmlAccountData: { - free: 'Balance', - frozen: 'Balance', - reserved: 'Balance' - }, - OrmlBalanceLock: { - amount: 'Balance', - id: 'LockIdentifier' - }, - OrmlVestingSchedule: { - start: 'BlockNumber', - period: 'BlockNumber', - periodCount: 'u32', - perPeriod: 'Compact' - }, - PalletBalanceOf: 'Balance', - PalletsOrigin: { - _enum: { - System: 'SystemOrigin', - Timestamp: 'Null', - RandomnessCollectiveFlip: 'Null', - Balances: 'Null', - Accounts: 'Null', - Currencies: 'Null', - Tokens: 'Null', - Vesting: 'Null', - EaveTreasury: 'Null', - Utility: 'Null', - Multisig: 'Null', - Recovery: 'Null', - Proxy: 'Null', - Scheduler: 'Null', - Indices: 'Null', - GraduallyUpdate: 'Null', - Authorship: 'Null', - Babe: 'Null', - Grandpa: 'Null', - Staking: 'Null', - Session: 'Null', - Historical: 'Null', - GeneralCouncil: 'CollectiveOrigin', - GeneralCouncilMembership: 'Null', - EYECouncil: 'CollectiveOrigin', - EYECouncilMembership: 'Null', - ElpCouncil: 'CollectiveOrigin', - ElpCouncilMembership: 'Null', - TechnicalCommittee: 'CollectiveOrigin', - TechnicalCommitteeMembership: 'Null', - Authority: 'DelayedOrigin', - ElectionsPhragmen: 'Null', - EaveOracle: 'Null', - BandOracle: 'Null', - OperatorMembershipEave: 'Null', - OperatorMembershipBand: 'Null', - Auction: 'Null', - Rewards: 'Null', - OrmlNFT: 'Null', - Prices: 'Null', - Dex: 'Null', - AuctionManager: 'Null', - Loans: 'Null', - EYE: 'Null', - CdpTreasury: 'Null', - CdpEngine: 'Null', - EmergencyShutdown: 'Null', - Elp: 'Null', - NomineesElection: 'Null', - StakingPool: 'Null', - PezkuwiBridge: 'Null', - Incentives: 'Null', - AirDrop: 'Null', - NFT: 'Null', - RenVmBridge: 'Null', - Contracts: 'Null', - EVM: 'Null', - Sudo: 'Null', - TransactionPayment: 'Null' - } - }, - Params: { - targetMaxFreeUnbondedRatio: 'Ratio', - targetMinFreeUnbondedRatio: 'Ratio', - targetUnbondingToFreeRatio: 'Ratio', - unbondingToFreeAdjustment: 'Ratio', - baseFeeRate: 'Rate' - }, - PezkuwiAccountId: 'AccountId', - PezkuwiAccountIdOf: 'PezkuwiAccountId', - PoolId: { - _enum: { - Loans: 'CurrencyId', - DexIncentive: 'CurrencyId', - DexSaving: 'CurrencyId', - Elp: 'Null' - } - }, - PoolInfo: { - totalShares: 'Compact', - totalRewards: 'Compact', - totalWithdrawnRewards: 'Compact' - }, - Position: { - collateral: 'Balance', - debit: 'Balance' - }, - Price: 'FixedU128', - Properties: { - _set: { - _bitLength: 8, - Transferable: 1, - Burnable: 2 - } - }, - PublicKey: '[u8; 20]', - Rate: 'FixedU128', - Ratio: 'FixedU128', - RedeemStrategy: { - _enum: { - Immediately: 'Null', - Target: 'EraIndex', - WaitForUnbonding: 'Null' - } - }, - RelaychainAccountId: 'AccountId', - RiskManagementParams: { - maximumTotalDebitValue: 'Balance', - stabilityFee: 'Option', - liquidationRatio: 'Option', - liquidationPenalty: 'Option', - requiredCollateralRatio: 'Option' - }, - RpcDataProviderId: 'Text', - ScheduleTaskIndex: 'u32', - Share: 'u128', - StorageKeyBytes: 'Vec', - StorageValue: 'Vec', - StorageValueBytes: 'Vec', - SubAccountStatus: { - bonded: 'Balance', - available: 'Balance', - unbonding: 'Vec<(EraIndex,Balance)>', - mockRewardRate: 'Rate' - }, - SurplusAuctionItem: { - amount: 'Compact', - startTime: 'BlockNumber' - }, - TimestampedValue: { - value: 'OracleValue', - timestamp: 'Moment' - }, - TimestampedValueOf: 'TimestampedValue', - TokenBalanceOf: 'Balance', - TokenData: { - deposit: 'Balance' - }, - TokenId: 'u64', - TokenIdOf: 'TokenId', - TokenInfo: { - name: 'Text', - symbol: 'Text', - decimals: 'u8', - owner: 'AccountId' - }, - TokenInfoOf: { - metadata: 'CID', - owner: 'AccountId', - data: 'TokenData' - }, - TokenSymbol: { - _enum: { - EAVE: 0, - EUSD: 1, - HEZ: 2, - LDOT: 3, - XBTC: 4, - RENBTC: 5, - INTERBTC: 6, - PLM: 7, - PHA: 8, - HDT: 9, - ICE: 128, - IUSD: 129, - DCL: 130, - LKSM: 131, - SDN: 135, - KILT: 138 - } - }, - TradingPair: '(CurrencyId, CurrencyId)', - TradingPairProvisionParameters: { - minContribution: '(Balance, Balance)', - targetProvision: '(Balance, Balance)', - accumulatedProvision: '(Balance, Balance)', - notBefore: 'BlockNumber' - }, - TradingPairStatus: { - _enum: { - NotEnabled: 'Null', - Provisioning: 'TradingPairProvisionParameters', - Enabled: 'Null' - } - }, - VestingScheduleOf: 'OrmlVestingSchedule', - XCurrencyId: { - chainId: 'ChainId', - currencyId: 'Vec' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/edgeware.ts b/packages/apps-config/src/api/spec/edgeware.ts deleted file mode 100644 index fd43fd5..0000000 --- a/packages/apps-config/src/api/spec/edgeware.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import pkg from '@edgeware/node-types'; - -export default (pkg.spec.typesBundle as { spec: { edgeware: OverrideBundleDefinition } }).spec.edgeware; diff --git a/packages/apps-config/src/api/spec/elysium.ts b/packages/apps-config/src/api/spec/elysium.ts deleted file mode 100644 index 85e8544..0000000 --- a/packages/apps-config/src/api/spec/elysium.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -/* eslint-disable sort-keys */ -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - Account: { - nonce: 'U256', - balance: 'U256' - }, - Transaction: { - nonce: 'U256', - action: 'String', - gas_price: 'u64', - gas_limit: 'u64', - value: 'U256', - input: 'Vec', - signature: 'Signature' - }, - Signature: { - v: 'u64', - r: 'H256', - s: 'H256' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/encointer-node-notee.ts b/packages/apps-config/src/api/spec/encointer-node-notee.ts deleted file mode 100644 index 720521d..0000000 --- a/packages/apps-config/src/api/spec/encointer-node-notee.ts +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // Metadata v14 was introduced here. Hence, we don't need type overrides anymore. - minmax: [9, undefined], - types: { - // Types for the signed extensions still need to be declared. - CommunityIdentifier: { - geohash: 'GeoHash', - digest: 'CidDigest' - }, - GeoHash: '[u8; 5]', - // We need to call it `CidDigest` because plain `Digest` is already a bizinikiwi type. - CidDigest: '[u8; 4]' - } - }, - { - // until v14 - minmax: [0, 8], - types: { - ShardIdentifier: 'Hash', - GetterArgs: '(AccountId, CommunityIdentifier)', - Enclave: { - pubkey: 'AccountId', - mrenclave: 'Hash', - timestamp: 'u64', - url: 'Text' - }, - PublicGetter: { - _enum: { - total_issuance: 'CommunityIdentifier', - participant_count: 'CommunityIdentifier', - meetup_count: 'CommunityIdentifier', - ceremony_reward: 'CommunityIdentifier', - location_tolerance: 'CommunityIdentifier', - time_tolerance: 'CommunityIdentifier', - scheduler_state: 'CommunityIdentifier' - } - }, - TrustedGetter: { - _enum: { - balance: '(AccountId, CommunityIdentifier)', - participant_index: '(AccountId, CommunityIdentifier)', - meetup_index: '(AccountId, CommunityIdentifier)', - attestations: '(AccountId, CommunityIdentifier)', - meetup_registry: '(AccountId, CommunityIdentifier)' - } - }, - TrustedGetterSigned: { - getter: 'TrustedGetter', - signature: 'Signature' - }, - Getter: { - _enum: { - public: 'PublicGetter', - trusted: 'TrustedGetterSigned' - } - }, - ClientRequest: { - _enum: { - PubKeyWorker: null, - MuRaPortWorker: null, - StfState: '(Getter, ShardIdentifier)' - } - }, - WorkerEncoded: 'Vec', - Request: { - shard: 'ShardIdentifier', - cyphertext: 'WorkerEncoded' - }, - TrustedCallSigned: { - call: 'TrustedCall', - nonce: 'u32', - signature: 'Signature' - }, - TrustedCall: { - _enum: { - balance_transfer: 'BalanceTransferArgs', - ceremonies_register_participant: 'RegisterParticipantArgs', - ceremonies_register_attestations: 'RegisterAttestationsArgs', - ceremonies_grant_reputation: 'GrantReputationArgs' - } - }, - BalanceTransferArgs: '(AccountId, AccountId, CommunityIdentifier, BalanceType)', - RegisterParticipantArgs: '(AccountId, CommunityIdentifier, Option>)', - RegisterAttestationsArgs: '(AccountId, Vec>)', - GrantReputationArgs: '(AccountId, CommunityIdentifier, AccountId)', - BalanceType: 'i128', - BalanceEntry: { - principal: 'BalanceType', - lastUpdate: 'BlockNumber' - }, - Demurrage: 'BalanceType', - - BusinessIdentifier: { - communityIdentifier: 'CommunityIdentifier', - controller: 'AccountId' - }, - OfferingIdentifier: 'u32', - BusinessData: { - url: 'PalletString', - last_oid: 'u32' - }, - OfferingData: { - url: 'PalletString' - }, - PalletString: 'Text', - IpfsCid: 'Text', - FixedI64F64: { - bits: 'i128' - }, - CeremonyIndexType: 'u32', - CeremonyPhaseType: { - _enum: ['Registering', 'Assigning', 'Attesting'] - }, - ParticipantIndexType: 'u64', - MeetupIndexType: 'u64', - AttestationIndexType: 'u64', - MeetupAssignment: '(MeetupIndexType, Option)', - MeetupTimeOffsetType: 'i32', - Reputation: { - _enum: ['Unverified', 'UnverifiedReputable', 'VerifiedUnlinked', 'VerifiedLinked'] - }, - CommunityReputation: { - communityIdentifier: 'CommunityIdentifier', - reputation: 'Reputation' - }, - ClaimOfAttendance: { - claimantPublic: 'AccountId', - ceremonyIndex: 'CeremonyIndexType', - communityIdentifier: 'CommunityIdentifier', - meetupIndex: 'MeetupIndexType', - location: 'Location', - timestamp: 'Moment', - numberOfParticipantsConfirmed: 'u32', - claimantSignature: 'Option' - }, - ClaimOfAttendanceSigningPayload: { - claimantPublic: 'AccountId', - ceremonyIndex: 'CeremonyIndexType', - communityIdentifier: 'CommunityIdentifier', - meetupIndex: 'MeetupIndexType', - location: 'Location', - timestamp: 'Moment', - numberOfParticipantsConfirmed: 'u32' - }, - AssignmentCount: { - bootstrappers: 'ParticipantIndexType', - reputables: 'ParticipantIndexType', - endorsees: 'ParticipantIndexType', - newbies: 'ParticipantIndexType' - }, - Assignment: { - bootstrappersReputables: 'AssignmentParams', - endorsees: 'AssignmentParams', - newbies: 'AssignmentParams', - locations: 'AssignmentParams' - }, - AssignmentParams: { - m: 'u64', - s1: 'u64', - s2: 'u64' - }, - CommunityCeremonyStats: { - communityCeremony: '(CommunityIdentifier, CeremonyIndexType)', - assignment: 'Assignment', - assignmentCount: 'AssignmentCount', - meetupCount: 'MeetupIndexType', - meetups: 'Vec' - }, - Meetup: { - index: 'MeetupIndexType', - location: 'LocationRpc', - time: 'Moment', - registrations: 'Vec<(AccountId, ParticipantRegistration)>' - }, - ParticipantRegistration: { - index: 'ParticipantIndexType', - registrationType: 'RegistrationType' - }, - RegistrationType: { - _enum: ['Bootstrapper', 'Reputable', 'Endorsee', 'Newbie'] - }, - // Todo: remove this type does no longer exist in ceremonies, but it still exists in the trusted stuff. - Attestation: { - claim: 'ClaimOfAttendance', - signature: 'MultiSignature', - public: 'AccountId' - }, - ProofOfAttendance: { - proverPublic: 'AccountId', - ceremonyIndex: 'CeremonyIndexType', - communityIdentifier: 'CommunityIdentifier', - attendeePublic: 'AccountId', - attendeeSignature: 'MultiSignature' - }, - CommunityIdentifier: { - geohash: 'GeoHash', - digest: 'CidDigest' - }, - GeoHash: '[u8; 5]', - // We need to call it `CidDigest` because plain `Digest` is already a bizinikiwi type. - CidDigest: '[u8; 4]', - CommunityCeremony: '(CommunityIdentifier,CeremonyIndexType)', - NominalIncomeType: 'BalanceType', - // This is used when handling fixed-point numbers that have been serialized with `serialize_fixed` on rusts end, - // which is the case when we call any rpc-getters. - DegreeRpc: 'Text', - // This is used when we need to encode fixed-point numbers with scale-codec, e.g., when using it in an extrinsic. - DegreeFixed: 'i128', - Location: { - lat: 'DegreeFixed', - lon: 'DegreeFixed' - }, - LocationRpc: { - lat: 'DegreeRpc', - lon: 'DegreeRpc' - }, - CidName: { - cid: 'CommunityIdentifier', - name: 'Text' - }, - CommunityMetadataType: { - name: 'Text', - symbol: 'Text', - assets: 'Text', - theme: 'Option', - url: 'Option' - }, - SystemNumber: 'u32', - SchedulerState: '(CeremonyIndexType, CeremonyPhaseType, SystemNumber)' - } - } - ], - signedExtensions: { - ChargeAssetTxPayment: { - extrinsic: { - tip: 'Compact', - assetId: 'Option' - }, - payload: {} - } - } -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts b/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts deleted file mode 100644 index 03f2e2c..0000000 --- a/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - CeremonyPhaseType: { - _enum: [ - 'Registering', - 'Assigning', - 'Attesting' - ] - }, - CeremonyIndexType: 'u32', - CurrencyIdentifier: 'Hash', - CurrencyCeremony: { - cid: 'CurrencyIdentifier', - cindex: 'CeremonyIndexType' - }, - Location: { - lat: 'i64', - lon: 'i64' - }, - CurrencyPropertiesType: { - name_utf8: 'Text', - demurrage_per_block: 'i128' - }, - ShardIdentifier: 'Hash', - Request: { - shard: 'ShardIdentifier', - cyphertext: 'Vec' - }, - Enclave: { - pubkey: 'AccountId', - mrenclave: 'Hash', - timestamp: 'u64', - url: 'Text' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/encointer-para.ts b/packages/apps-config/src/api/spec/encointer-para.ts deleted file mode 100644 index a6bc415..0000000 --- a/packages/apps-config/src/api/spec/encointer-para.ts +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // metadata v14 was introduced here. Hence, we don't need type overrides anymore. - minmax: [3, undefined], - types: { - CommunityIdentifier: { - geohash: 'GeoHash', - digest: 'CidDigest' - }, - GeoHash: '[u8; 5]', - // We need to call it `CidDigest` because plain `Digest` is already a bizinikiwi type. - CidDigest: '[u8; 4]' - } - }, - { - // until metadata v14 - minmax: [0, 2], - types: { - ShardIdentifier: 'Hash', - GetterArgs: '(AccountId, CommunityIdentifier)', - Enclave: { - pubkey: 'AccountId', - mrenclave: 'Hash', - timestamp: 'u64', - url: 'Text' - }, - PublicGetter: { - _enum: { - total_issuance: 'CommunityIdentifier', - participant_count: 'CommunityIdentifier', - meetup_count: 'CommunityIdentifier', - ceremony_reward: 'CommunityIdentifier', - location_tolerance: 'CommunityIdentifier', - time_tolerance: 'CommunityIdentifier', - scheduler_state: 'CommunityIdentifier' - } - }, - TrustedGetter: { - _enum: { - balance: '(AccountId, CommunityIdentifier)', - participant_index: '(AccountId, CommunityIdentifier)', - meetup_index: '(AccountId, CommunityIdentifier)', - attestations: '(AccountId, CommunityIdentifier)', - meetup_registry: '(AccountId, CommunityIdentifier)' - } - }, - TrustedGetterSigned: { - getter: 'TrustedGetter', - signature: 'Signature' - }, - Getter: { - _enum: { - public: 'PublicGetter', - trusted: 'TrustedGetterSigned' - } - }, - ClientRequest: { - _enum: { - PubKeyWorker: null, - MuRaPortWorker: null, - StfState: '(Getter, ShardIdentifier)' - } - }, - WorkerEncoded: 'Vec', - Request: { - shard: 'ShardIdentifier', - cyphertext: 'WorkerEncoded' - }, - TrustedCallSigned: { - call: 'TrustedCall', - nonce: 'u32', - signature: 'Signature' - }, - TrustedCall: { - _enum: { - balance_transfer: 'BalanceTransferArgs', - ceremonies_register_participant: 'RegisterParticipantArgs', - ceremonies_register_attestations: 'RegisterAttestationsArgs', - ceremonies_grant_reputation: 'GrantReputationArgs' - } - }, - BalanceTransferArgs: '(AccountId, AccountId, CommunityIdentifier, BalanceType)', - RegisterParticipantArgs: '(AccountId, CommunityIdentifier, Option>)', - RegisterAttestationsArgs: '(AccountId, Vec>)', - GrantReputationArgs: '(AccountId, CommunityIdentifier, AccountId)', - - BalanceType: 'i128', - BalanceEntry: { - principal: 'BalanceType', - lastUpdate: 'BlockNumber' - }, - Demurrage: 'BalanceType', - - BusinessIdentifier: { - communityIdentifier: 'CommunityIdentifier', - controller: 'AccountId' - }, - OfferingIdentifier: 'u32', - BusinessData: { - url: 'PalletString', - last_oid: 'u32' - }, - OfferingData: { - url: 'PalletString' - }, - - PalletString: 'Text', - IpfsCid: 'Text', - FixedI64F64: { - bits: 'i128' - }, - - CeremonyIndexType: 'u32', - CeremonyPhaseType: { - _enum: ['Registering', 'Assigning', 'Attesting'] - }, - ParticipantIndexType: 'u64', - MeetupIndexType: 'u64', - AttestationIndexType: 'u64', - MeetupAssignment: '(MeetupIndexType, Option)', - MeetupTimeOffsetType: 'i32', - Reputation: { - _enum: ['Unverified', 'UnverifiedReputable', 'VerifiedUnlinked', 'VerifiedLinked'] - }, - CommunityReputation: { - communityIdentifier: 'CommunityIdentifier', - reputation: 'Reputation' - }, - ClaimOfAttendance: { - claimantPublic: 'AccountId', - ceremonyIndex: 'CeremonyIndexType', - communityIdentifier: 'CommunityIdentifier', - meetupIndex: 'MeetupIndexType', - location: 'Location', - timestamp: 'Moment', - numberOfParticipantsConfirmed: 'u32', - claimantSignature: 'Option' - }, - ClaimOfAttendanceSigningPayload: { - claimantPublic: 'AccountId', - ceremonyIndex: 'CeremonyIndexType', - communityIdentifier: 'CommunityIdentifier', - meetupIndex: 'MeetupIndexType', - location: 'Location', - timestamp: 'Moment', - numberOfParticipantsConfirmed: 'u32' - }, - AssignmentCount: { - bootstrappers: 'ParticipantIndexType', - reputables: 'ParticipantIndexType', - endorsees: 'ParticipantIndexType', - newbies: 'ParticipantIndexType' - }, - Assignment: { - bootstrappersReputables: 'AssignmentParams', - endorsees: 'AssignmentParams', - newbies: 'AssignmentParams', - locations: 'AssignmentParams' - }, - AssignmentParams: { - m: 'u64', - s1: 'u64', - s2: 'u64' - }, - CommunityCeremonyStats: { - communityCeremony: '(CommunityIdentifier, CeremonyIndexType)', - assignment: 'Assignment', - assignmentCount: 'AssignmentCount', - meetupCount: 'MeetupIndexType', - meetups: 'Vec' - }, - Meetup: { - index: 'MeetupIndexType', - location: 'LocationRpc', - time: 'Moment', - registrations: 'Vec<(AccountId, ParticipantRegistration)>' - }, - ParticipantRegistration: { - index: 'ParticipantIndexType', - registrationType: 'RegistrationType' - }, - RegistrationType: { - _enum: ['Bootstrapper', 'Reputable', 'Endorsee', 'Newbie'] - }, - // Todo: remove this type does no longer exist in ceremonies, but it still exists in the trusted stuff. - Attestation: { - claim: 'ClaimOfAttendance', - signature: 'MultiSignature', - public: 'AccountId' - }, - ProofOfAttendance: { - proverPublic: 'AccountId', - ceremonyIndex: 'CeremonyIndexType', - communityIdentifier: 'CommunityIdentifier', - attendeePublic: 'AccountId', - attendeeSignature: 'MultiSignature' - }, - - CommunityIdentifier: { - geohash: 'GeoHash', - digest: 'CidDigest' - }, - GeoHash: '[u8; 5]', - // We need to call it `CidDigest` because plain `Digest` is already a bizinikiwi type. - CidDigest: '[u8; 4]', - CommunityCeremony: '(CommunityIdentifier,CeremonyIndexType)', - NominalIncomeType: 'BalanceType', - // This is used when handling fixed-point numbers that have been serialized with `serialize_fixed` on rusts end, - // which is the case when we call any rpc-getters. - DegreeRpc: 'Text', - // This is used when we need to encode fixed-point numbers with scale-codec, e.g., when using it in an extrinsic. - DegreeFixed: 'i128', - Location: { - lat: 'DegreeFixed', - lon: 'DegreeFixed' - }, - LocationRpc: { - lat: 'DegreeRpc', - lon: 'DegreeRpc' - }, - CidName: { - cid: 'CommunityIdentifier', - name: 'Text' - }, - CommunityMetadataType: { - name: 'Text', - symbol: 'Text', - assets: 'Text', - theme: 'Option', - url: 'Option' - }, - - SystemNumber: 'u32', - SchedulerState: '(CeremonyIndexType, CeremonyPhaseType, SystemNumber)' - } - } - ], - signedExtensions: { - ChargeAssetTxPayment: { - extrinsic: { - tip: 'Compact', - assetId: 'Option' - }, - payload: {} - } - } -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/equilibrium.ts b/packages/apps-config/src/api/spec/equilibrium.ts deleted file mode 100644 index f9c7cc0..0000000 --- a/packages/apps-config/src/api/spec/equilibrium.ts +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { ApiInterfaceRx } from '@pezkuwi/api/types'; -import type { Enum } from '@pezkuwi/types'; -import type { AccountId, AccountIndex, Address, Balance } from '@pezkuwi/types/interfaces'; -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; -import type { Struct, u64, u128, Vec } from '@pezkuwi/types-codec'; -import type { ITuple } from '@pezkuwi/types-codec/types'; - -import { map, of } from 'rxjs'; - -import { memo } from '@pezkuwi/api-derive/util'; -import { U8aFixed } from '@pezkuwi/types-codec'; - -export interface SignedBalance extends Enum { - readonly isPositive: boolean; - readonly asPositive: Balance; - readonly isNegative: boolean; - readonly asNegative: Balance; -} - -export const u64FromCurrency = (currency: string): bigint => { - const buf = Buffer.from(currency.toLowerCase()); - const size = buf.length; - - return buf.reduce((val, digit, i) => { - const exp = BigInt(size - 1 - i); - - return BigInt(val) + BigInt(256) ** exp * BigInt(digit); - }, BigInt(0)); -}; - -const TOKENS = ['eq']; - -interface EqPrimitivesBalanceAccountData extends Enum { - readonly isV0: boolean; - readonly asV0: { - readonly lock: u128; - readonly balance: Vec>; - } & Struct; - readonly type: 'V0'; -} - -interface EqPrimitivesSignedBalance extends Enum { - readonly isPositive: boolean; - readonly asPositive: u128; - readonly isNegative: boolean; - readonly asNegative: u128; - readonly type: 'Positive' | 'Negative'; -} - -export const createDerives = (tokens: string[]) => tokens.reduce((prev, token, i) => { - const isNative = !i; - - return { - ...prev, - - [token]: { customAccount: (instanceId: string, api: ApiInterfaceRx) => { - const { registry } = api; - const asset = u64FromCurrency(token); - - return memo(instanceId, (address: AccountIndex | AccountId | Address | string) => api.query.system.account(address).pipe(map((v) => { - const data = (v as unknown as { data: EqPrimitivesBalanceAccountData }).data; - - const miscFrozen = isNative ? data.asV0.lock : registry.createType('u128', 0); - const feeFrozen = miscFrozen; - const reserved = registry.createType('u128', 0); - - const entry = data.asV0.balance.find(([assetId]) => { - return assetId.toBigInt() === asset; - }); - - const balance = entry?.[1]; - - const free = balance?.isPositive - ? balance.asPositive - : registry.createType('u128', 0); - - return { - feeFrozen, free, miscFrozen, reserved - }; - }))); - }, - customLocks: (instanceId: string, api: ApiInterfaceRx) => { - const { registry } = api; - - return memo(instanceId, (address: AccountIndex | AccountId | Address | string) => isNative - ? api.query.system.account(address).pipe(map((v) => { - const data = (v as unknown as { data: EqPrimitivesBalanceAccountData }).data; - - return [{ - amount: data.asV0.lock, - id: new U8aFixed(registry), - reasons: '' - }]; - })) - : of([])); - } } - }; -}, {}); - -const definitions: OverrideBundleDefinition = { - derives: createDerives(TOKENS), - instances: { balances: TOKENS } -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/fantour.ts b/packages/apps-config/src/api/spec/fantour.ts deleted file mode 100644 index c1d12af..0000000 --- a/packages/apps-config/src/api/spec/fantour.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// structs need to be in order -/* eslint-disable sort-keys */ - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Properties: 'u8', - NFTMetadata: 'Vec', - BlockNumber: 'u32', - BlockNumberOf: 'BlockNumber', - - OrderData: { - currencyId: 'Compact', - price: 'Compact', - deposit: 'Compact', - deadline: 'Compact', - categoryId: 'Compact' - }, - - CategoryId: 'u32', - CategoryIdOf: 'CategoryId', - CategoryData: { - metadata: 'NFTMetadata', - nftCount: 'Compact' - }, - - CurrencyId: 'u32', - CurrencyIdOf: 'CurrencyId', - Amount: 'i128', - AmountOf: 'Amount', - - ClassId: 'u32', - ClassIdOf: 'ClassId', - ClassInfoOf: { - metadata: 'NFTMetadata', - totalIssuance: 'TokenId', - owner: 'AccountId', - data: 'ClassData' - }, - ClassData: { - deposit: 'Compact', - properties: 'Properties', - name: 'Vec', - description: 'Vec', - createBlock: 'Compact' - }, - - TokenId: 'u64', - TokenIdOf: 'TokenId', - TokenInfoOf: { metadata: 'NFTMetadata', owner: 'AccountId', data: 'TokenData' }, - TokenData: { - deposit: 'Compact', - createBlock: 'Compact' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/ferrum.ts b/packages/apps-config/src/api/spec/ferrum.ts deleted file mode 100644 index 6e6eb79..0000000 --- a/packages/apps-config/src/api/spec/ferrum.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AccountId: 'EthereumAccountId', - AccountId20: 'EthereumAccountId', - Address: 'AccountId', - LookupSource: 'AccountId', - Lookup0: 'AccountId', - EthereumSignature: { - r: 'H256', - s: 'H256', - v: 'U8' - }, - ExtrinsicSignature: 'EthereumSignature' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/fragnova.ts b/packages/apps-config/src/api/spec/fragnova.ts deleted file mode 100644 index 7cbbf96..0000000 --- a/packages/apps-config/src/api/spec/fragnova.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Not used/included in index.ts as of https://github.com/pezkuwichain/pezkuwi-apps/pull/9243 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { options } from '@fragnova/api-augment'; - -export default { - ...options, - types: [ - { - // on all versions - minmax: [0, undefined], - types: options.types - } - ] -} as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/spec/frequency.ts b/packages/apps-config/src/api/spec/frequency.ts deleted file mode 100644 index c5c9a6b..0000000 --- a/packages/apps-config/src/api/spec/frequency.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { rpc, runtime, signedExtensions, types } from '@frequency-chain/api-augment'; - -export default { - rpc, - runtime, - signedExtensions, - types: [ - { - // on all versions - minmax: [0, undefined], - types - } - ] -} as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/spec/galital-parachain.ts b/packages/apps-config/src/api/spec/galital-parachain.ts deleted file mode 100644 index 5360212..0000000 --- a/packages/apps-config/src/api/spec/galital-parachain.ts +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId', - Account: { - nonce: 'U256', - balance: 'U256' - }, - Transaction: { - nonce: 'U256', - action: 'String', - gas_price: 'u64', - gas_limit: 'u64', - value: 'U256', - input: 'Vec', - signature: 'Signature' - }, - Signature: { - v: 'u64', - r: 'H256', - s: 'H256' - }, - ClassId: 'u64', - TokenId: 'u64', - ClassData: 'Vec', - TokenData: 'Vec', - ReportReason: { - _enum: [ - 'None', - 'Illigal', - 'Plagiarism', - 'Duplicate', - 'Reported' - ] - }, - ClassInfoOf: { - metadata: 'Vec', - total_issuance: 'TokenId', - - owner: 'AccountId', - class_data: 'ClassData' - }, - ExtendedInfo: { - display_flag: 'bool', - report: 'ReportReason', - frozen: 'bool' - }, - TokenInfoOf: { - metadata: 'Vec', - owner: 'AccountId', - class_data: 'ClassData' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/galital.ts b/packages/apps-config/src/api/spec/galital.ts deleted file mode 100644 index 2bea93b..0000000 --- a/packages/apps-config/src/api/spec/galital.ts +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AccountInfo: 'AccountInfoWithTripleRefCount', - Account: { - nonce: 'U256', - balance: 'U256' - }, - Transaction: { - nonce: 'U256', - action: 'String', - gas_price: 'u64', - gas_limit: 'u64', - value: 'U256', - input: 'Vec', - signature: 'Signature' - }, - ChainId: 'u8', - ResourceId: '[u8; 32]', - DepositNonce: 'u64', - ProposalVotes: { - votes_for: 'Vec', - votes_against: 'Vec', - status: 'u8', - expiry: 'U256' - }, - ClassId: 'u64', - TokenId: 'u64', - ClassData: 'Vec', - TokenData: 'Vec', - ReportReason: { - _enum: [ - 'None', - 'Illigal', - 'Plagiarism', - 'Duplicate', - 'Reported' - ] - }, - ClassInfoOf: { - metadata: 'Vec', - total_issuance: 'TokenId', - - owner: 'AccountId', - class_data: 'ClassData' - }, - ExtendedInfo: { - display_flag: 'bool', - report: 'ReportReason', - frozen: 'bool' - }, - TokenInfoOf: { - metadata: 'Vec', - owner: 'AccountId', - class_data: 'ClassData' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/galois.ts b/packages/apps-config/src/api/spec/galois.ts deleted file mode 100644 index 856a88d..0000000 --- a/packages/apps-config/src/api/spec/galois.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - Balance: 'u128', - RefCount: 'u32', - Account: { - nonce: 'U256', - balance: 'U256' - }, - AccountServiceEnum: { - _enum: { - Nickname: 'String', - Ethereum: 'H160' - } - }, - MultiAddressDetails: { - nickname: 'AccountServiceEnum', - ethereum: 'AccountServiceEnum' - }, - Nickname: 'String', - Ethereum: 'H160', - TransferAmountInfo: { - date: 'u64', - daily_info: 'Balance', - monthly_info: 'Balance', - yearly_info: 'Balance' - }, - AccountLimit: { - daily_limit: 'Balance', - monthly_limit: 'Balance', - yearly_limit: 'Balance' - }, - Keys: 'SessionKeys2' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/gamepower.ts b/packages/apps-config/src/api/spec/gamepower.ts deleted file mode 100644 index 21b2f9d..0000000 --- a/packages/apps-config/src/api/spec/gamepower.ts +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AccountInfo: 'AccountInfoWithDualRefCount', - AssetId: 'u64', - SeriesId: 'u64', - ClassId: 'u32', - ClassIdOf: 'ClassId', - ClassInfoOf: 'ClassInfo', - TokenId: 'u64', - TokenIdOf: 'TokenId', - TokenInfoOf: 'TokenInfo', - ClassInfo: { - metadata: 'Vec', - total_issuance: 'TokenId', - owner: 'AccountId', - data: 'NftClassData' - }, - TokenInfo: { - metadata: 'Vec', - owner: 'AccountId', - data: 'NftAssetData' - }, - NftSeriesData: { - name: 'Vec', - owner: 'AccountId', - properties: 'Vec' - }, - NftClassData: { - deposit: 'Balance', - properties: 'Vec', - token_type: 'TokenType', - collection_type: 'CollectionType', - total_supply: 'u64', - initial_supply: 'u64' - }, - NftAssetData: { - deposit: 'Balance', - name: 'Vec', - description: 'Vec', - properties: 'Vec' - }, - TokenType: { - _enum: [ - 'Transferrable', - 'BoundToAddress' - ] - }, - CollectionType: { - _enum: [ - 'Collectable', - 'Wearable', - 'Executable' - ] - }, - ClassProperties: { - Transferrable: 'bool', - Burnable: 'bool' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/genshiro.ts b/packages/apps-config/src/api/spec/genshiro.ts deleted file mode 100644 index a376106..0000000 --- a/packages/apps-config/src/api/spec/genshiro.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { createDerives } from './equilibrium.js'; - -const TOKENS = ['gens']; - -const definitions: OverrideBundleDefinition = { - derives: createDerives(TOKENS), - instances: { balances: TOKENS } -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/hanonycash.ts b/packages/apps-config/src/api/spec/hanonycash.ts deleted file mode 100644 index 875fb59..0000000 --- a/packages/apps-config/src/api/spec/hanonycash.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const 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' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/heima.ts b/packages/apps-config/src/api/spec/heima.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/heima.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/hydrate.ts b/packages/apps-config/src/api/spec/hydrate.ts deleted file mode 100644 index 4674d1e..0000000 --- a/packages/apps-config/src/api/spec/hydrate.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Amount: 'i128', - AmountOf: 'Amount', - Address: 'AccountId', - OrmlAccountData: { - free: 'Balance', - frozen: 'Balance', - reserved: 'Balance' - }, - Fee: { - numerator: 'u32', - denominator: 'u32' - }, - 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', - Price: 'Balance', - Chain: { - genesisHash: 'Vec', - lastBlockHash: 'Vec' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/hyperbridge.ts b/packages/apps-config/src/api/spec/hyperbridge.ts deleted file mode 100644 index e3e2e93..0000000 --- a/packages/apps-config/src/api/spec/hyperbridge.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { keccakAsU8a } from '@pezkuwi/util-crypto'; - -const definitions: OverrideBundleDefinition = { - hasher: keccakAsU8a -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/idavoll.ts b/packages/apps-config/src/api/spec/idavoll.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/idavoll.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/imbue.ts b/packages/apps-config/src/api/spec/imbue.ts deleted file mode 100644 index 0a7695b..0000000 --- a/packages/apps-config/src/api/spec/imbue.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -const definitions: OverrideBundleDefinition = { - rpc: { - proposals: { - getProjectKitty: { - description: 'Get the escrow address associated with a project', - params: [{ - name: 'project_id', - type: 'u32' - }], - type: 'AccountId' - } - } - }, - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress' - } - }] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index 0cdd7f5..c59cb80 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -3,325 +3,9 @@ import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; -import acala from './acala.js'; -import ajuna from './ajuna.js'; -import altair from './altair.js'; -import apron from './apron.js'; -import aresGladios from './ares-gladios.js'; -import aresTeyrchain from './ares-parachain.js'; -import argon from './argon.js'; -import astar from './astar.js'; -import bajun from './bajun.js'; -import basilisk from './basilisk.js'; -import beresheet from './beresheet.js'; -import bifrost from './bifrost.js'; -import bifrostAsgard from './bifrost-asgard.js'; -import bifrostTeyrchain from './bifrost-parachain.js'; -import bitcountry from './bitcountry.js'; -import bitcountryTeyrchain from './bitcountry-pezkuwichain.js'; -import bitcountryPioneer from './bitcountry-pioneer.js'; -import bittensor from './bittensor.js'; -import centrifuge from './centrifuge.js'; -import centrifugeChain from './centrifuge-chain.js'; -import chainx from './chainx.js'; -import clover from './clover.js'; -import cloverPezkuwiChain from './clover-pezkuwichain.js'; -import coinversation from './coinversation.js'; -import communeai from './communeai.js'; -import competitorsClub from './competitors-club.js'; -import contracts from './contracts.js'; -import crownSterlingChain from './crown-sterling.js'; -import crust from './crust.js'; -import testPara from './cumulus-test-parachain.js'; -import curio from './curio.js'; -import datahighwayTeyrchain from './datahighway.js'; -import dockMainnet from './dock-mainnet.js'; -import dockTestnet from './dock-testnet.js'; -import dotmog from './dotmog.js'; -import eave from './eave.js'; -import edgeware from './edgeware.js'; -import elysium from './elysium.js'; -import encointerNodeNotee from './encointer-node-notee.js'; -import encointerNodeTeeproxy from './encointer-node-teeproxy.js'; -import encointerPara from './encointer-para.js'; -import equilibrium from './equilibrium.js'; -import fantour from './fantour.js'; -// See https://github.com/pezkuwichain/pezkuwi-apps/pull/9243 -// import fragnova from './fragnova.js'; -import ferrum from './ferrum.js'; -import frequency from './frequency.js'; -import galital from './galital.js'; -import galitalTeyrchain from './galital-parachain.js'; -import galois from './galois.js'; -import gamepower from './gamepower.js'; -import genshiro from './genshiro.js'; -import hanonycash from './hanonycash.js'; -import heima from './heima.js'; -import hydrate from './hydrate.js'; -import hyperbridge from './hyperbridge.js'; -import idavoll from './idavoll.js'; -import imbue from './imbue.js'; -import integritee from './integritee.js'; -import interbtc from './interbtc.js'; -import ipse from './ipse.js'; -import jamton from './jamton.js'; -import jupiter from './jupiter.js'; -import jupiterPezkuwiChain from './jupiter-pezkuwichain.js'; -import jur from './jur.js'; -import khala from './khala.js'; -import kilt from './kilt.js'; -import konomi from './konomi.js'; -import kpron from './kpron.js'; -import kulupu from './kulupu.js'; -import kusari from './kusari.js'; -import kylin from './kylin.js'; -import laminar from './laminar.js'; -import logion from './logion.js'; -import logionTeyrchain from './logion-parachain.js'; -import mangata from './mangata.js'; -import manta from './manta.js'; -import mathchain from './mathchain.js'; -import moonbeam from './moonbeam.js'; -import muse from './muse.js'; -import mybank from './mybank.js'; -import mythos from './mythos.js'; -import neatcoin from './neatcoin.js'; -import neuroweb from './neuroweb.js'; -import nftmart from './nftmart.js'; -import nodle from './nodle.js'; -import oak from './oak.js'; -import opal from './opal.js'; -import opportunity from './opportunity.js'; -import parallel from './parallel.js'; -import parami from './parami.js'; -import peaq from './peaq.js'; -import peerplays from './peerplays.js'; -import pendulum from './pendulum.js'; -import phoenix from './phoenix.js'; -import pichiu from './pichiu.js'; -import polkadex from './polkadex.js'; -import polkafoundry from './polkafoundry.js'; -import polymeshMainnet from './polymesh-mainnet.js'; -import polymeshTestnet from './polymesh-testnet.js'; -import pontem from './pontem.js'; -import prism from './prism.js'; -import quartz from './quartz.js'; -import realis from './realis.js'; -import riochain from './riochain.js'; -import robonomics from './robonomics.js'; -import rootnet from './rootnet.js'; -import sapphire from './sapphire.js'; -import shibuya from './shibuya.js'; -import shiden from './shiden.js'; -import snowbridge from './snowbridge.js'; -import soraBizinikiwi from './soraSubstrate.js'; -import spanner from './spanner.js'; -import stafi from './stafi.js'; -import standard from './standard.js'; -import subdao from './subdao.js'; -import subgame from './subgame.js'; -import subsocial from './subsocial.js'; -import subspace from './subspace.js'; -import bizinikiwiContractsNode from './substrateContractsNode.js'; -import swapdex from './swapdex.js'; -import t0rn from './t0rn.js'; -import ternoa from './ternoa.js'; -import torus from './torus.js'; -import trustbase from './trustbase.js'; -import turing from './turing.js'; -import uart from './uart.js'; -import unique from './unique.js'; -import unitnetwork from './unitnetwork.js'; -import unitv from './unitv.js'; -import vln from './vln.js'; -import vlnpezkuwichain from './vln-pezkuwichain.js'; -import vodka from './vodka.js'; -import web3games from './web3games.js'; -import westlake from './westlake.js'; -import zCloak from './zCloak.js'; -import zeitgeist from './zeitgeist.js'; -import zenlink from './zenlink.js'; -import zero from './zero.js'; - -// NOTE: The mapping is done from specName in state.getRuntimeVersion -const spec: Record = { - Equilibrium: equilibrium, - Genshiro: genshiro, - VLN: vln, - 'VLN-PC': vlnpezkuwichain, - ...acala, - ajuna, - altair, - amplitude: pendulum, - apron, - 'ares-gladios': aresGladios, - 'ares-mars': aresTeyrchain, - 'ares-odyssey': aresTeyrchain, - argon, - asgard: bifrostAsgard, - astar, - bajun, - basilisk, - beresheet, - bifrost, - 'bifrost-teyrchain': bifrostTeyrchain, - 'bitcountry-node': bitcountry, - 'bitcountry-teyrchain': bitcountryTeyrchain, - bittensor, - 'bizinikiwi-contracts-node': bizinikiwiContractsNode, - centrifuge, - 'centrifuge-chain': centrifugeChain, - chainx, - 'chainx-teyrchain': chainx, - clover, - 'clover-pezkuwichain': cloverPezkuwiChain, - coinversation, - communeai, - 'competitors-club': competitorsClub, - 'continuum-runtime': bitcountryPioneer, - contracts, - 'crown-sterling': crownSterlingChain, - crust, - 'crust-teyrchain': crust, - 'cumulus-test-teyrchain': testPara, - 'curio-mainnet': curio, - 'curio-testnet': curio, - datahighway: westlake, - 'datahighway-teyrchain': datahighwayTeyrchain, - dawn: eave, - 'dev-teyrchain': zenlink, - 'dock-pos-main-runtime': dockMainnet, - 'dock-pos-test-runtime': dockTestnet, - 'dotmog-node': dotmog, - edgeware, - elysium, - 'encointer-node-notee': encointerNodeNotee, - 'encointer-node-teeproxy': encointerNodeTeeproxy, - 'encointer-teyrchain': encointerPara, - fantour, - // See https://github.com/pezkuwichain/pezkuwi-apps/pull/9243 - // fragnova, - // 'fragnova-testnet': fragnova, - 'ferrum-teyrchain': ferrum, - foucoco: pendulum, - frequency, - 'frequency-testnet': frequency, - galital, - 'galital-collator': galitalTeyrchain, - gamepower, - gargantua: hyperbridge, - 'hack-hydra-dx': hydrate, - halongbay: polkafoundry, - hanonycash, - heiko: parallel, - heima, - 'hydra-dx': hydrate, - hyperbridge, - idavoll, - imbue, - 'integritee-teyrchain': integritee, - 'interbtc-standalone': interbtc, - 'interbtc-teyrchain': interbtc, - 'interlay-teyrchain': interbtc, - 'ipse-node': ipse, - 'jamton-runtime': jamton, - 'jupiter-pezkuwichain': jupiterPezkuwiChain, - 'jupiter-prep': jupiter, - 'jur-chain': jur, - 'jur-node': jur, - kerria: parallel, - khala, - ...kilt, - 'kintsugi-teyrchain': interbtc, - konomi, - kpron, - kulupu, - kusari, - kylin, - laminar, - logion, - 'logion-teyrchain': logionTeyrchain, - mangata, - 'mangata-teyrchain': mangata, - 'manta-node': manta, - mathchain, - 'mathchain-galois': galois, - messier: hyperbridge, - moonbase: moonbeam, - moonbeam, - moonriver: moonbeam, - moonshadow: moonbeam, - muse, - 'mybank.network Testnet': mybank, - mythos, - neatcoin, - neuroweb, - nexus: hyperbridge, - nftmart, - 'node-moonbeam': moonbeam, - 'node-polkadex': polkadex, - 'nodle-chain': nodle, - oak, - opal, - opportunity, - parallel, - parami, - 'peaq-node': peaq, - 'peaq-node-dev': peaq, - 'peaq-node-krest': peaq, - peerplays, - pendulum, - 'phoenix-node': phoenix, - 'phoenix-teyrchain': phoenix, - pichiu, - 'pioneer-runtime': bitcountryPioneer, - polymesh_mainnet: polymeshMainnet, - polymesh_testnet: polymeshTestnet, - 'pontem-node': pontem as OverrideBundleDefinition, - prism, - 'quantum-portal-network-teyrchain': ferrum, - quartz, - realis, - 'riochain-runtime': riochain, - robonomics, - root: rootnet, - sapphire, - shibuya, - shiden, - snowbridge: snowbridge as OverrideBundleDefinition, - 'sora-bizinikiwi': soraBizinikiwi, - sora_ksm: soraBizinikiwi, - 'spacewalk-standalone': pendulum, - spanner, - stafi, - standard, - steam: eave, - subdao, - subgame, - subsocial: subsocial as OverrideBundleDefinition, - subspace, - subzero: zero, - swapdex, - t0rn, - ternoa, - 'testnet-interlay': interbtc, - 'testnet-kintsugi': interbtc, - torus, - trustbase, - turing, - uart, - unique, - 'unit-node': unitv, - 'unit-teyrchain': unitv, - 'unitnetwork-node': unitnetwork, - 'unitnetwork-teyrchain': unitnetwork, - unorthodox: standard, - vanilla: parallel, - vara: standard, - vodka, - 'web3games-node': web3games, - 'zcloak-network': zCloak, - zeitgeist -}; +// Type bundles by runtime specName. The Pezkuwi and Zagros runtimes carry +// metadata v14+ and need none; a chain that does is added here, built into +// typesBundle.ts by `yarn build:typesBundle`. +const spec: Record = {}; export default spec; diff --git a/packages/apps-config/src/api/spec/integritee.ts b/packages/apps-config/src/api/spec/integritee.ts deleted file mode 100644 index 22528a8..0000000 --- a/packages/apps-config/src/api/spec/integritee.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const 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', - shard: 'ShardIdentifier' - }, - ShardIdentifier: 'Hash' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/interbtc.ts b/packages/apps-config/src/api/spec/interbtc.ts deleted file mode 100644 index 31d86af..0000000 --- a/packages/apps-config/src/api/spec/interbtc.ts +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { Observable } from 'rxjs'; -import type { ApiInterfaceRx } from '@pezkuwi/api/types'; -import type { DeriveBalancesAll } from '@pezkuwi/api-derive/types'; -import type { AccountInfo, Balance } from '@pezkuwi/types/interfaces'; -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import interbtc from '@interlay/interbtc-types'; -import { combineLatest, map } from 'rxjs'; - -import { memo } from '@pezkuwi/api-derive/util'; -import { TypeRegistry, U128 } from '@pezkuwi/types'; -import { BN, formatBalance } from '@pezkuwi/util'; - -function balanceOf (number: number | string): U128 { - return new U128(new TypeRegistry(), number); -} - -function defaultAccountBalance (): DeriveBalancesAll { - return { - accountNonce: new BN(1), - additional: [], - availableBalance: balanceOf(0), - freeBalance: balanceOf(0), - lockedBalance: balanceOf(0), - lockedBreakdown: [], - namedReserves: [], - reservedBalance: balanceOf(0) - } as any; -} - -interface OrmlAccountData { - free: Balance, - reserved: Balance, - frozen: Balance, -} - -export function getBalance ( - instanceId: string, - api: ApiInterfaceRx -): () => Observable { - const nativeToken = api.registry.chainTokens[0] || formatBalance.getDefaults().unit; - - return memo( - instanceId, - (account: string): Observable => - combineLatest<[any, any]>([api.query.tokens.accounts(account, { Token: nativeToken }), api.query.system.account(account)]).pipe( - map(([data, systemAccount]: [OrmlAccountData, AccountInfo]): DeriveBalancesAll => { - return { - ...defaultAccountBalance(), - accountId: api.registry.createType('AccountId', account), - accountNonce: systemAccount.nonce, - availableBalance: api.registry.createType('Balance', data.free.sub(data.frozen)), - freeBalance: data.free, - lockedBalance: data.frozen, - reservedBalance: data.reserved - }; - }) - ) - ); -} - -const definitions: OverrideBundleDefinition = { - derives: { - balances: { - account: getBalance, - all: getBalance - } - }, - - ...interbtc -} as any; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/ipse.ts b/packages/apps-config/src/api/spec/ipse.ts deleted file mode 100644 index 9c3961f..0000000 --- a/packages/apps-config/src/api/spec/ipse.ts +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - test: 'u64', - Address: 'IndicesLookupSource', - LookupSource: 'IndicesLookupSource', - GIB: 'u64', - Amount: 'u128', - Miner: { - account_id: 'AccountId', - nickname: 'Vec', - region: 'Vec', - url: 'Vec', - public_key: 'Vec', - stash_address: 'AccountId', - capacity: 'u128', - unit_price: 'Balance', - violation_times: 'u64', - total_staking: 'Balance', - create_ts: 'u64', - update_ts: 'u64' - }, - Order: { - miner: 'AccountId', - label: 'Vec', - hash: '[u8; 46]', - size: 'u128', - user: 'AccountId', - orders: 'Vec>', - status: 'OrderStatus', - create_ts: 'u64', - update_ts: 'u64', - duration: 'u64' - }, - MinerOrder: { - miner: 'AccountId', - day_price: 'Balance', - total_price: 'Balance', - verify_result: 'bool', - verify_ts: 'u64', - confirm_ts: 'u64', - url: 'Option>' - }, - OrderStatus: { - _enum: [ - 'Created', - 'Confirmed', - 'Expired', - 'Deleted' - ] - }, - MiningInfo: { - miner: 'Option', - best_dl: 'u64', - block: 'u64' - }, - Difficulty: { - base_target: 'u64', - net_difficulty: 'u64', - block: 'u64' - }, - MachineInfo: { - plot_size: 'u64', - numeric_id: 'u128', - update_time: 'BlockNumber', - is_stop: 'bool', - reward_dest: 'AccountId' - }, - StakingInfo: { - miner: 'AccountId', - miner_proportion: 'Percent', - total_staking: 'Balance', - others: 'Vec<(AccountId, Balance, Balance)>' - }, - Oprate: { - _enum: [ - 'Add', - 'Sub' - ] - }, - MiningHistory: { - total_num: 'u64', - history: 'Vec<(BlockNumber, Balance)>' - }, - PostTxTransferData: { - verify_status: 'u64', - irreversible: 'bool', - is_post_transfer: 'bool', - contract_account: 'Vec', - from: 'Vec', - to: 'Vec', - quantity: 'u64', - memo: 'Vec' - }, - AddressStatus: { - _enum: [ - 'active', - 'inActive' - ] - }, - FetchFailedOf: { - block_num: 'BlockNumber', - tx: 'Vec', - err: 'Vec' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/jamton.ts b/packages/apps-config/src/api/spec/jamton.ts deleted file mode 100644 index b048127..0000000 --- a/packages/apps-config/src/api/spec/jamton.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { rpc, runtime, signedExtensions, types } from '@jamton/teyrchain-ts-interfaces/bundle'; - -/* eslint-disable sort-keys */ -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types - } - ], - runtime, - rpc, - signedExtensions -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/jupiter-pezkuwichain.ts b/packages/apps-config/src/api/spec/jupiter-pezkuwichain.ts deleted file mode 100644 index d579059..0000000 --- a/packages/apps-config/src/api/spec/jupiter-pezkuwichain.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - LookupSource: 'MultiAddress', - Address: 'MultiAddress' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/jupiter.ts b/packages/apps-config/src/api/spec/jupiter.ts deleted file mode 100644 index d6c97d1..0000000 --- a/packages/apps-config/src/api/spec/jupiter.ts +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, 2], - types: { - LookupSource: 'MultiAddress', - Address: 'MultiAddress', - AccountInfo: 'AccountInfoWithDualRefCount', - FullIdentification: 'AccountId', - AuthorityState: { - _enum: [ - 'Working', - 'Waiting' - ] - }, - EraIndex: 'u32', - ActiveEraInfo: { - index: 'EraIndex', - start: 'Option' - }, - UnappliedSlash: { - validator: 'AccountId', - reporters: 'Vec' - } - } - }, - { - // on all versions - minmax: [3, undefined], - types: { - LookupSource: 'MultiAddress', - Address: 'MultiAddress', - AccountInfo: 'AccountInfoWithTripleRefCount', - AliveContractInfo: { - trieId: 'TrieId', - storageSize: 'u32', - pairCount: 'u32', - codeHash: 'CodeHash', - rentAllowance: 'Balance', - rentPayed: 'Balance', - deductBlock: 'BlockNumber', - lastWrite: 'Option', - _reserved: 'Option' - }, - FullIdentification: 'AccountId', - AuthorityState: { - _enum: ['Working', 'Waiting'] - }, - EraIndex: 'u32', - ActiveEraInfo: { - index: 'EraIndex', - start: 'Option' - }, - UnappliedSlash: { - validator: 'AccountId', - reporters: 'Vec' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/jur.ts b/packages/apps-config/src/api/spec/jur.ts deleted file mode 100644 index 05991a1..0000000 --- a/packages/apps-config/src/api/spec/jur.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: {} - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/khala.ts b/packages/apps-config/src/api/spec/khala.ts deleted file mode 100644 index 94267bb..0000000 --- a/packages/apps-config/src/api/spec/khala.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundle } from '@phala/typedefs'; - -export default typesBundle as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/spec/kilt.ts b/packages/apps-config/src/api/spec/kilt.ts deleted file mode 100644 index 577afb2..0000000 --- a/packages/apps-config/src/api/spec/kilt.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { typesBundle } from '@kiltprotocol/type-definitions'; - -if (!typesBundle.spec) { - throw new Error('Unable to find chain definitions'); -} - -export default typesBundle.spec; diff --git a/packages/apps-config/src/api/spec/konomi.ts b/packages/apps-config/src/api/spec/konomi.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/konomi.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/kpron.ts b/packages/apps-config/src/api/spec/kpron.ts deleted file mode 100644 index 3c548dc..0000000 --- a/packages/apps-config/src/api/spec/kpron.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/kulupu.ts b/packages/apps-config/src/api/spec/kulupu.ts deleted file mode 100644 index b33dbc9..0000000 --- a/packages/apps-config/src/api/spec/kulupu.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const 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]' - } - }, - { - // enable pallet-atomic-swap in runtime 24 - minmax: [24, undefined], - types: { - HashedProof: '[u8; 32]', - PendingSwap: { - source: 'AccountId', - action: 'SwapAction', - endBlock: 'BlockNumber' - }, - SwapAction: { - value: 'Balance' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/kusari.ts b/packages/apps-config/src/api/spec/kusari.ts deleted file mode 100644 index 60f0709..0000000 --- a/packages/apps-config/src/api/spec/kusari.ts +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - EvmAddress: 'H160', - EthereumTxHash: 'H256', - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - AccountInfo: 'AccountInfoWithTripleRefCount', - Account: { - nonce: 'U256', - balance: 'U256' - }, - Transaction: { - nonce: 'U256', - action: 'String', - gas_price: 'u64', - gas_limit: 'u64', - value: 'U256', - input: 'Vec', - signature: 'Signature' - }, - Signature: { - v: 'u64', - r: 'H256', - s: 'H256' - }, - ClassId: 'u64', - TokenId: 'u64', - ClassData: 'Vec', - TokenData: 'Vec', - ReportReason: { - _enum: [ - 'None', - 'Illigal', - 'Plagiarism', - 'Duplicate', - 'Reported' - ] - }, - ClassInfoOf: { - metadata: 'Vec', - total_issuance: 'TokenId', - - owner: 'AccountId', - class_data: 'ClassData' - }, - ExtendedInfo: { - display_flag: 'bool', - report: 'ReportReason', - frozen: 'bool' - }, - TokenInfoOf: { - metadata: 'Vec', - owner: 'AccountId', - class_data: 'ClassData' - }, - 'bridge::ChainId': 'u8', - ChainId: 'u8', - ResourceId: '[u8; 32]', - DepositNonce: 'u64', - ProposalVotes: { - votes_for: 'Vec', - votes_against: 'Vec', - status: 'enum' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/kylin.ts b/packages/apps-config/src/api/spec/kylin.ts deleted file mode 100644 index 39f2a66..0000000 --- a/packages/apps-config/src/api/spec/kylin.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - DataRequest: { - para_id: 'Option', - account_id: 'Option', - requested_block_number: 'BlockNumber', - processed_block_number: 'Option', - requested_timestamp: 'u128', - processed_timestamp: 'Option', - payload: 'Text', - feed_name: 'Text', - is_query: 'bool', - url: 'Option' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/laminar.ts b/packages/apps-config/src/api/spec/laminar.ts deleted file mode 100644 index 6a26147..0000000 --- a/packages/apps-config/src/api/spec/laminar.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { typesBundleForPolkadot as typesBundleForPezkuwi } from '@laminar/type-definitions'; - -export default (typesBundleForPezkuwi as Record>).spec.laminar as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/spec/logion-parachain.ts b/packages/apps-config/src/api/spec/logion-parachain.ts deleted file mode 100644 index 408bd8b..0000000 --- a/packages/apps-config/src/api/spec/logion-parachain.ts +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const logionDefault = { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - PeerId: '(Vec)', - AccountInfo: 'AccountInfoWithDualRefCount', - TAssetBalance: 'u128', - AssetId: 'u64', - AssetDetails: { - owner: 'AccountId', - issuer: 'AccountId', - admin: 'AccountId', - freezer: 'AccountId', - supply: 'Balance', - deposit: 'DepositBalance', - max_zombies: 'u32', - min_balance: 'Balance', - zombies: 'u32', - accounts: 'u32', - is_frozen: 'bool' - }, - AssetMetadata: { - deposit: 'DepositBalance', - name: 'Vec', - symbol: 'Vec', - decimals: 'u8' - }, - LocId: 'u128', - LegalOfficerCaseOf: { - owner: 'AccountId', - requester: 'Requester', - metadata: 'Vec', - files: 'Vec', - closed: 'bool', - loc_type: 'LocType', - links: 'Vec', - void_info: 'Option>', - replacer_of: 'Option', - collection_last_block_submission: 'Option', - collection_max_size: 'Option' - }, - MetadataItem: { - name: 'Vec', - value: 'Vec', - submitter: 'AccountId' - }, - LocType: { - _enum: [ - 'Transaction', - 'Identity', - 'Collection' - ] - }, - LocLink: { - id: 'LocId', - nature: 'Vec' - }, - File: { - hash: 'Hash', - nature: 'Vec', - submitter: 'AccountId' - }, - LocVoidInfo: { - replacer: 'Option' - }, - StorageVersion: { - _enum: [ - 'V1', - 'V2MakeLocVoid', - 'V3RequesterEnum', - 'V4ItemSubmitter', - 'V5Collection' - ] - }, - Requester: { - _enum: { - None: null, - Account: 'AccountId', - Loc: 'LocId' - } - }, - CollectionSize: 'u32', - CollectionItemId: 'Hash', - CollectionItem: { - description: 'Vec' - } -}; - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - ...logionDefault - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/logion.ts b/packages/apps-config/src/api/spec/logion.ts deleted file mode 100644 index f5e8f3e..0000000 --- a/packages/apps-config/src/api/spec/logion.ts +++ /dev/null @@ -1,820 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// structs need to be in order -/* eslint-disable sort-keys */ - -import type { DefinitionsTypes, OverrideBundleDefinition, RegistryTypes } from '@pezkuwi/types/types'; - -// The type definitions @logion/node-api 0.27.0-4 (Apache-2.0, logion-network/logion-api) -// exports from interfaces/definitions, kept here as data: the package itself depends on -// an old @polkadot/api tree. -// RegistryTypes does not model a struct's `_alias` map (TransactionInfo), which the -// registry accepts; the package's own declarations hid that by typing these narrowly. -const logionDefault: { types: DefinitionsTypes } = { types: { - OpaquePeerId: 'Vec', - AccountInfo: 'AccountInfoWithDualRefCount', - TAssetBalance: 'u128', - AssetDetails: { - owner: 'AccountId', - issuer: 'AccountId', - admin: 'AccountId', - freezer: 'AccountId', - supply: 'Balance', - deposit: 'DepositBalance', - max_zombies: 'u32', - min_balance: 'Balance', - zombies: 'u32', - accounts: 'u32', - is_frozen: 'bool' - }, - AssetMetadata: { - deposit: 'DepositBalance', - name: 'Vec', - symbol: 'Vec', - decimals: 'u8' - }, - LocId: 'u128', - LegalOfficerCaseOf: { - owner: 'AccountId', - requester: 'Requester', - metadata: 'Vec', - files: 'Vec', - closed: 'bool', - loc_type: 'LocType', - links: 'Vec', - void_info: 'Option>', - replacer_of: 'Option', - collection_last_block_submission: 'Option', - collection_max_size: 'Option', - collection_can_upload: 'bool', - seal: 'Option', - sponsorship_id: 'Option', - value_fee: 'Balance', - legal_fee: 'Balance', - collection_item_fee: 'Balance', - tokens_record_fee: 'Balance' - }, - MetadataItemParams: { - name: 'Hash', - value: 'Hash', - submitter: 'SupportedAccountId' - }, - MetadataItem: { - name: 'Hash', - value: 'Hash', - submitter: 'SupportedAccountId', - acknowledgedByOwner: 'bool', - acknowledgedByVerifiedIssuer: 'bool' - }, - LocType: { - _enum: [ - 'Transaction', - 'Identity', - 'Collection' - ] - }, - LocLinkParams: { - id: 'LocId', - nature: 'Hash', - submitter: 'SupportedAccountId' - }, - LocLink: { - id: 'LocId', - nature: 'Hash', - submitter: 'SupportedAccountId', - acknowledgedByOwner: 'bool', - acknowledgedByVerifiedIssuer: 'bool' - }, - FileParams: { - hash: 'Hash', - nature: 'Hash', - submitter: 'SupportedAccountId' - }, - File: { - hash: 'Hash', - nature: 'Hash', - submitter: 'SupportedAccountId', - acknowledgedByOwner: 'bool', - acknowledgedByVerifiedIssuer: 'bool' - }, - LocVoidInfo: { - replacer: 'Option' - }, - StorageVersion: { - _enum: [ - 'V1', - 'V2MakeLocVoid', - 'V3RequesterEnum', - 'V4ItemSubmitter', - 'V5Collection', - 'V6ItemUpload', - 'V7ItemToken', - 'V8AddSeal', - 'V9TermsAndConditions', - 'V10AddLocFileSize', - 'V11EnableEthereumSubmitter', - 'V12Sponsorship', - 'V13AcknowledgeItems', - 'V14HashLocPublicData', - 'V15AddTokenIssuance', - 'V16MoveTokenIssuance', - 'V17HashItemRecordPublicData', - 'V18AddValueFee', - 'V19AcknowledgeItemsByIssuer', - 'V20AddCustomLegalFee', - 'V21EnableRequesterLinks', - 'V22AddRecurrentFees' - ] - }, - Requester: { - _enum: { - None: null, - Account: 'AccountId', - Loc: 'LocId', - OtherAccount: 'OtherAccountId' - } - }, - CollectionSize: 'u32', - CollectionItemId: 'Hash', - CollectionItem: { - description: 'Hash', - files: 'Vec', - token: 'Option', - restricted_delivery: 'bool', - terms_and_conditions: 'Vec' - }, - TokenIssuance: 'u64', - CollectionItemFile: { - name: 'Hash', - content_type: 'Hash', - fileSize: 'u32', - hash: 'Hash' - }, - CollectionItemToken: { - token_type: 'Hash', - token_id: 'Hash', - token_issuance: 'TokenIssuance' - }, - LegalOfficerData: { - _enum: { - Host: 'HostData', - Guest: 'AccountId' - } - }, - HostData: { - node_id: 'Option', - base_url: 'Option>', - region: 'Region' - }, - Region: { - _enum: [ - 'Europe' - ] - }, - LoAuthorityListStorageVersion: { - _enum: [ - 'V1', - 'V2AddOnchainSettings', - 'V3GuestLegalOfficers', - 'V4Region' - ] - }, - TermsAndConditionsElement: { - tcType: 'Hash', - tcLoc: 'LocId', - details: 'Hash' - }, - LogionVote: { - locId: 'LocId', - ballots: 'Vec' - }, - Ballot: { - voter: 'LocId', - status: 'AccountId' - }, - BallotStatus: { - _enum: [ - 'NotVoted', - 'VotedYes', - 'VotedNo' - ] - }, - VoteId: 'u64', - VoteClosed: 'bool', - VoteApproved: 'bool', - LegalOfficerCaseSummary: { - owner: 'AccountId', - requester: 'Option' - }, - TokensRecord: { - description: 'Hash', - files: 'Vec', - submitter: 'AccountId' - }, - TokensRecordFile: { - name: 'Hash', - contentType: 'Hash', - file_size: 'u32', - hash: 'Hash' - }, - VerifiedIssuer: { - identityLoc: 'LocId' - }, - OtherAccountId: { - _enum: { - Ethereum: 'H160' - } - }, - SupportedAccountId: { - _enum: { - None: null, - Polkadot: 'AccountId', - Other: 'OtherAccountId' - } - }, - SponsorshipId: 'u128', - Sponsorship: { - sponsor: 'AccountId', - sponsored_account: 'SupportedAccountId', - legal_officer: 'AccountId', - loc_id: 'Option' - }, - Beneficiary: { - _enum: { - Other: null, - LegalOfficer: 'AccountId' - } - }, - ItemsParams: { - metadata: 'Vec', - files: 'Vec', - links: 'Vec' - } -} }; - -const logionRuntime: { types: DefinitionsTypes } = { types: { - Fixed64: 'Int<64, Fixed64>', - FixedI64: 'Int<64, FixedI64>', - FixedU64: 'UInt<64, FixedU64>', - Fixed128: 'Int<128, Fixed128>', - FixedI128: 'Int<128, FixedI128>', - FixedU128: 'UInt<128, FixedU128>', - I32F32: 'Int<64, I32F32>', - U32F32: 'UInt<64, U32F32>', - PerU16: 'UInt<16, PerU16>', - Perbill: 'UInt<32, Perbill>', - Percent: 'UInt<8, Percent>', - Permill: 'UInt<32, Permill>', - Perquintill: 'UInt<64, Perquintill>', - AccountId: 'AccountId32', - AccountId20: 'GenericEthereumAccountId', - AccountId32: 'GenericAccountId32', - AccountId33: 'GenericAccountId33', - AccountIdOf: 'AccountId', - AccountIndex: 'GenericAccountIndex', - Address: 'MultiAddress', - AssetId: 'u64', - Balance: 'UInt<128, Balance>', - BalanceOf: 'Balance', - Block: 'GenericBlock', - BlockNumber: 'u32', - BlockNumberFor: 'BlockNumber', - BlockNumberOf: 'BlockNumber', - Call: 'GenericCall', - CallHash: 'Hash', - CallHashOf: 'CallHash', - ChangesTrieConfiguration: { - digestInterval: 'u32', - digestLevels: 'u32' - }, - ChangesTrieSignal: { - _enum: { - NewConfiguration: 'Option' - } - }, - ConsensusEngineId: 'GenericConsensusEngineId', - CodecHash: 'Hash', - CrateVersion: { - major: 'u16', - minor: 'u8', - patch: 'u8' - }, - Digest: { - logs: 'Vec' - }, - DigestItem: { - _enum: { - Other: 'Bytes', - AuthoritiesChange: 'Vec', - ChangesTrieRoot: 'Hash', - SealV0: 'SealV0', - Consensus: 'Consensus', - Seal: 'Seal', - PreRuntime: 'PreRuntime', - ChangesTrieSignal: 'ChangesTrieSignal', - RuntimeEnvironmentUpdated: 'Null' - } - }, - ExtrinsicsWeight: { - normal: 'Weight', - operational: 'Weight' - }, - H32: '[u8; 4; H32]', - H64: '[u8; 8; H64]', - H128: '[u8; 16; H128]', - H160: '[u8; 20; H160]', - H256: '[u8; 32; H256]', - H512: '[u8; 64; H512]', - H1024: '[u8; 128; H1024]', - H2048: '[u8; 256; H2048]', - Hash: 'H256', - Header: { - parentHash: 'Hash', - number: 'Compact', - stateRoot: 'Hash', - extrinsicsRoot: 'Hash', - digest: 'Digest' - }, - HeaderPartial: { - parentHash: 'Hash', - number: 'BlockNumber' - }, - IndicesLookupSource: 'GenericLookupSource', - Index: 'u32', - Justification: '(ConsensusEngineId, EncodedJustification)', - EncodedJustification: 'Bytes', - Justifications: 'Vec', - KeyValue: '(StorageKey, StorageData)', - KeyTypeId: 'u32', - LockIdentifier: '[u8; 8]', - LookupSource: 'MultiAddress', - LookupTarget: 'AccountId', - ModuleId: 'LockIdentifier', - MultiAddress: 'GenericMultiAddress', - MultiSigner: { - _enum: { - Ed25519: '[u8; 32]', - Sr25519: '[u8; 32]', - Ecdsa: '[u8; 33]' - } - }, - Moment: 'UInt<64, Moment>', - OpaqueCall: 'Bytes', - Origin: 'DoNotConstruct', - OriginCaller: { - _enum: { - System: 'SystemOrigin' - } - }, - PalletId: 'LockIdentifier', - PalletsOrigin: 'OriginCaller', - PalletVersion: { - major: 'u16', - minor: 'u8', - patch: 'u8' - }, - Pays: { - _enum: [ - 'Yes', - 'No' - ] - }, - Phantom: 'Null', - PhantomData: 'Null', - Releases: { - _enum: [ - 'V1', - 'V2', - 'V3', - 'V4', - 'V5', - 'V6', - 'V7', - 'V8', - 'V9', - 'V10' - ] - }, - RuntimeCall: 'Call', - RuntimeEvent: 'Event', - RuntimeDbWeight: { - read: 'Weight', - write: 'Weight' - }, - SignedBlock: 'SignedBlockWithJustifications', - SignedBlockWithJustification: { - block: 'Block', - justification: 'Option' - }, - SignedBlockWithJustifications: { - block: 'Block', - justifications: 'Option' - }, - Slot: 'u64', - SlotDuration: 'u64', - StorageData: 'Bytes', - StorageInfo: { - palletName: 'Bytes', - storage_name: 'Bytes', - prefix: 'Bytes', - maxValues: 'Option', - maxSize: 'Option' - }, - StorageProof: { - trieNodes: 'Vec' - }, - TransactionPriority: 'u64', - TransactionLongevity: 'u64', - TransactionTag: 'Bytes', - TransactionInfo: { - _alias: { - dataSize: 'size' - }, - chunkRoot: 'H256', - contentHash: 'H256', - dataSize: 'u32', - blockChunks: 'u32' - }, - TransactionStorageProof: { - chunk: 'Vec', - proof: 'Vec>' - }, - ValidatorId: 'AccountId', - ValidatorIdOf: 'ValidatorId', - WeightV0: 'u32', - WeightV1: 'u64', - WeightV2: { - refTime: 'Compact', - proofSize: 'Compact' - }, - Weight: 'WeightV2', - WeightMultiplier: 'Fixed64', - PreRuntime: '(ConsensusEngineId, Bytes)', - SealV0: '(u64, Signature)', - Seal: '(ConsensusEngineId, Bytes)', - Consensus: '(ConsensusEngineId, Bytes)', - ExtrinsicInclusionMode: { - _enum: [ - 'AllExtrinsics', - 'OnlyInherents' - ] - } -} }; - -const logionSession: { types: DefinitionsTypes } = { types: { - 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', - validatorCount: 'ValidatorCount' - }, - SessionIndex: 'u32', - ValidatorCount: 'u32' -} }; - -const defaultTypesUpTo109 = { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - PeerId: '(Vec)', - AccountInfo: 'AccountInfoWithDualRefCount', - TAssetBalance: 'u128', - AssetId: 'u64', - AssetDetails: { - owner: 'AccountId', - issuer: 'AccountId', - admin: 'AccountId', - freezer: 'AccountId', - supply: 'Balance', - deposit: 'DepositBalance', - max_zombies: 'u32', - min_balance: 'Balance', - zombies: 'u32', - accounts: 'u32', - is_frozen: 'bool' - }, - AssetMetadata: { - deposit: 'DepositBalance', - name: 'Vec', - symbol: 'Vec', - decimals: 'u8' - }, - LocId: 'u128', - LegalOfficerCaseOf: { - owner: 'AccountId', - requester: 'Requester', - metadata: 'Vec', - files: 'Vec', - closed: 'bool', - loc_type: 'LocType', - links: 'Vec', - void_info: 'Option>', - replacer_of: 'Option', - collection_last_block_submission: 'Option', - collection_max_size: 'Option' - }, - MetadataItem: { - name: 'Vec', - value: 'Vec', - submitter: 'AccountId' - }, - LocType: { - _enum: [ - 'Transaction', - 'Identity', - 'Collection' - ] - }, - LocLink: { - id: 'LocId', - nature: 'Vec' - }, - File: { - hash: 'Hash', - nature: 'Vec', - submitter: 'AccountId' - }, - LocVoidInfo: { - replacer: 'Option' - }, - StorageVersion: { - _enum: [ - 'V1', - 'V2MakeLocVoid', - 'V3RequesterEnum', - 'V4ItemSubmitter', - 'V5Collection' - ] - }, - Requester: { - _enum: { - None: null, - Account: 'AccountId', - Loc: 'LocId' - } - }, - CollectionSize: 'u32', - CollectionItemId: 'Hash', - CollectionItem: { - description: 'Vec' - } -}; - -const defaultTypesUpTo111 = { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - PeerId: '(Vec)', - AccountInfo: 'AccountInfoWithDualRefCount', - TAssetBalance: 'u128', - AssetId: 'u64', - AssetDetails: { - owner: 'AccountId', - issuer: 'AccountId', - admin: 'AccountId', - freezer: 'AccountId', - supply: 'Balance', - deposit: 'DepositBalance', - max_zombies: 'u32', - min_balance: 'Balance', - zombies: 'u32', - accounts: 'u32', - is_frozen: 'bool' - }, - AssetMetadata: { - deposit: 'DepositBalance', - name: 'Vec', - symbol: 'Vec', - decimals: 'u8' - }, - LocId: 'u128', - LegalOfficerCaseOf: { - owner: 'AccountId', - requester: 'Requester', - metadata: 'Vec', - files: 'Vec', - closed: 'bool', - loc_type: 'LocType', - links: 'Vec', - void_info: 'Option>', - replacer_of: 'Option', - collection_last_block_submission: 'Option', - collection_max_size: 'Option', - collection_can_upload: 'bool' - }, - MetadataItem: { - name: 'Vec', - value: 'Vec', - submitter: 'AccountId' - }, - LocType: { - _enum: [ - 'Transaction', - 'Identity', - 'Collection' - ] - }, - LocLink: { - id: 'LocId', - nature: 'Vec' - }, - File: { - hash: 'Hash', - nature: 'Vec', - submitter: 'AccountId' - }, - LocVoidInfo: { - replacer: 'Option' - }, - StorageVersion: { - _enum: [ - 'V1', - 'V2MakeLocVoid', - 'V3RequesterEnum', - 'V4ItemSubmitter', - 'V5Collection', - 'V6ItemUpload' - ] - }, - Requester: { - _enum: { - None: null, - Account: 'AccountId', - Loc: 'LocId' - } - }, - CollectionSize: 'u32', - CollectionItemId: 'Hash', - CollectionItem: { - description: 'Vec', - files: 'Vec>' - }, - CollectionItemFile: { - name: 'Vec', - content_type: 'Vec', - fileSize: 'u32', - hash: 'Hash' - } -}; - -const defaultTypesUpTo116 = { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - OpaquePeerId: 'Vec', - AccountInfo: 'AccountInfoWithDualRefCount', - TAssetBalance: 'u128', - AssetId: 'u64', - AssetDetails: { - owner: 'AccountId', - issuer: 'AccountId', - admin: 'AccountId', - freezer: 'AccountId', - supply: 'Balance', - deposit: 'DepositBalance', - max_zombies: 'u32', - min_balance: 'Balance', - zombies: 'u32', - accounts: 'u32', - is_frozen: 'bool' - }, - AssetMetadata: { - deposit: 'DepositBalance', - name: 'Vec', - symbol: 'Vec', - decimals: 'u8' - }, - LocId: 'u128', - LegalOfficerCaseOf: { - owner: 'AccountId', - requester: 'Requester', - metadata: 'Vec', - files: 'Vec', - closed: 'bool', - loc_type: 'LocType', - links: 'Vec', - void_info: 'Option>', - replacer_of: 'Option', - collection_last_block_submission: 'Option', - collection_max_size: 'Option', - collection_can_upload: 'bool' - }, - MetadataItem: { - name: 'Vec', - value: 'Vec', - submitter: 'AccountId' - }, - LocType: { - _enum: [ - 'Transaction', - 'Identity', - 'Collection' - ] - }, - LocLink: { - id: 'LocId', - nature: 'Vec' - }, - File: { - hash: 'Hash', - nature: 'Vec', - submitter: 'AccountId' - }, - LocVoidInfo: { - replacer: 'Option' - }, - StorageVersion: { - _enum: [ - 'V1', - 'V2MakeLocVoid', - 'V3RequesterEnum', - 'V4ItemSubmitter', - 'V5Collection', - 'V6ItemUpload', - 'V7ItemToken' - ] - }, - Requester: { - _enum: { - None: null, - Account: 'AccountId', - Loc: 'LocId' - } - }, - CollectionSize: 'u32', - CollectionItemId: 'Hash', - CollectionItem: { - description: 'Vec', - files: 'Vec>', - token: 'Option', - restricted_delivery: 'bool' - }, - CollectionItemFile: { - name: 'Vec', - content_type: 'Vec', - fileSize: 'u32', - hash: 'Hash' - }, - CollectionItemToken: { - token_type: 'Vec', - token_id: 'Vec' - } -}; - -const definitions: OverrideBundleDefinition = { - alias: { - loAuthorityList: { - StorageVersion: 'LoAuthorityListStorageVersion' - } - }, - types: [ - { - minmax: [0, 109], - types: { - ...defaultTypesUpTo109, - ...logionSession.types - } - }, - { - minmax: [110, 111], - types: { - ...defaultTypesUpTo111, - ...logionSession.types - } - }, - { - minmax: [112, 116], - types: { - ...defaultTypesUpTo116, - ...logionSession.types - } - }, - { - // Latest - minmax: [117, undefined], - types: { - ...logionDefault.types, - ...logionRuntime.types, - ...logionSession.types - } as RegistryTypes - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/mangata.ts b/packages/apps-config/src/api/spec/mangata.ts deleted file mode 100644 index 77193e6..0000000 --- a/packages/apps-config/src/api/spec/mangata.ts +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// structs need to be in order - -import type { Observable } from 'rxjs'; -import type { ApiInterfaceRx } from '@pezkuwi/api/types'; -import type { DeriveBalancesAll } from '@pezkuwi/api-derive/types'; -import type { AccountInfo, Balance } from '@pezkuwi/types/interfaces'; -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { mangataTypesBundleForPolkadotApps } from '@mangata-finance/type-definitions'; -import { combineLatest, map } from 'rxjs'; - -import { memo } from '@pezkuwi/api-derive/util'; -import { TypeRegistry, U128 } from '@pezkuwi/types'; -import { BN } from '@pezkuwi/util'; - -function balanceOf (number: number | string): U128 { - return new U128(new TypeRegistry(), number); -} - -function defaultAccountBalance (): DeriveBalancesAll { - return { - accountNonce: new BN(1), - additional: [], - availableBalance: balanceOf(0), - freeBalance: balanceOf(0), - lockedBalance: balanceOf(0), - lockedBreakdown: [], - namedReserves: [], - reservedBalance: balanceOf(0), - vestingLocked: balanceOf(0) - } as any; -} - -interface OrmlAccountData { - free: Balance, - reserved: Balance, - frozen: Balance, -} - -export function getBalance ( - instanceId: string, - api: ApiInterfaceRx -): () => Observable { - return memo( - instanceId, - (account: string): Observable => - combineLatest<[any, any]>([api.query.tokens.accounts(account, 0), api.query.system.account(account)]).pipe( - map(([data, systemAccount]: [OrmlAccountData, AccountInfo]): DeriveBalancesAll => { - return { - ...defaultAccountBalance(), - accountId: api.registry.createType('AccountId', account), - accountNonce: systemAccount.nonce, - availableBalance: api.registry.createType('Balance', data.free.sub(data.frozen)), - freeBalance: data.free, - lockedBalance: data.frozen, - reservedBalance: data.reserved - }; - }) - ) - ); -} - -// External package types from @mangata-finance use @polkadot types, cast to any for compatibility -const definitions = { - derives: { - balances: { - account: getBalance, - all: getBalance - } - }, - ...mangataTypesBundleForPolkadotApps -} as OverrideBundleDefinition; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/manta.ts b/packages/apps-config/src/api/spec/manta.ts deleted file mode 100644 index c6078d7..0000000 --- a/packages/apps-config/src/api/spec/manta.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: - { - CurrencyId: { - _enum: [ - 'MA' - ] - }, - CurrencyIdOf: 'CurrencyId', - Amount: 'i128', - AmountOf: 'Amount', - AccountInfo: 'AccountInfoWithDualRefCount' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/mathchain.ts b/packages/apps-config/src/api/spec/mathchain.ts deleted file mode 100644 index 856a88d..0000000 --- a/packages/apps-config/src/api/spec/mathchain.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Address: 'MultiAddress', - LookupSource: 'MultiAddress', - Balance: 'u128', - RefCount: 'u32', - Account: { - nonce: 'U256', - balance: 'U256' - }, - AccountServiceEnum: { - _enum: { - Nickname: 'String', - Ethereum: 'H160' - } - }, - MultiAddressDetails: { - nickname: 'AccountServiceEnum', - ethereum: 'AccountServiceEnum' - }, - Nickname: 'String', - Ethereum: 'H160', - TransferAmountInfo: { - date: 'u64', - daily_info: 'Balance', - monthly_info: 'Balance', - yearly_info: 'Balance' - }, - AccountLimit: { - daily_limit: 'Balance', - monthly_limit: 'Balance', - yearly_limit: 'Balance' - }, - Keys: 'SessionKeys2' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/moonbeam.ts b/packages/apps-config/src/api/spec/moonbeam.ts deleted file mode 100644 index c6d95c7..0000000 --- a/packages/apps-config/src/api/spec/moonbeam.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -import { moonbeamDefinitions } from '@moonbeam-network/types-bundle'; - -// External package types, cast to proper type for compatibility -export default moonbeamDefinitions as OverrideBundleDefinition; diff --git a/packages/apps-config/src/api/spec/muse.ts b/packages/apps-config/src/api/spec/muse.ts deleted file mode 100644 index 6f932eb..0000000 --- a/packages/apps-config/src/api/spec/muse.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AccountId: 'EthereumAccountId', - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/mybank.ts b/packages/apps-config/src/api/spec/mybank.ts deleted file mode 100644 index 5f995b8..0000000 --- a/packages/apps-config/src/api/spec/mybank.ts +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - Token: 'u8', - DEXShare: '(u8, u8)', - CurrencyId: { - _enum: { - Token: 'Token', - DEXShare: 'DEXShare' - } - }, - TradingPair: '(CurrencyId, CurrencyId)', - CurrencyIds: { _: 'Vec' }, - TradingPairProvisionParameters: { - min_contribution: '(Balance, Balance)', - target_provision: '(Balance, Balance)', - accumulated_provision: '(Balance, Balance)', - not_before: 'BlockNumber' - }, - TradingPairStatus: { - _enum: { - NotEnabled: null, - Provisioning: 'TradingPairProvisionParameters', - Enabled: null - } - }, - PoolId: 'CurrencyId', - Price: 'FixedU128', - OracleKey: 'u8', - OracleValue: 'FixedU128', - Amount: 'i128', - Balance: 'u128', - Ratio: 'FixedU128', - InterestInfo: { - critical_point: 'Ratio', - base: 'Ratio', - slope_1: 'Ratio', - slope_2: 'Ratio' - }, - AssetPoolInfo: { - maximum_total_debit_ratio: 'Ratio', - minimum_deposit: 'Balance', - minimum_debit: 'Balance', - health_ratio: 'Ratio', - total_deposit: 'Balance', - total_debit: 'Balance', - deposit_rate: 'Ratio', - debit_rate: 'Ratio', - deposit_apy: 'Ratio', - debit_apy: 'Ratio', - reserve_factor: 'Ratio', - interest_info: 'InterestInfo' - }, - LoanInfo: { - deposit: 'Balance', - debit: 'Balance' - }, - TimestampedValue: { - value: 'OracleValue', - timestamp: 'u64' - }, - PoolInfo: { - total_shares: 'Compact', - total_rewards: 'Compact', - total_withdrawn_rewards: 'Compact' - } - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/mythos.ts b/packages/apps-config/src/api/spec/mythos.ts deleted file mode 100644 index 6f932eb..0000000 --- a/packages/apps-config/src/api/spec/mythos.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order - -const definitions: OverrideBundleDefinition = { - types: [ - { - // on all versions - minmax: [0, undefined], - types: { - AccountId: 'EthereumAccountId', - Address: 'AccountId', - LookupSource: 'AccountId' - } - } - ] -}; - -export default definitions; diff --git a/packages/apps-config/src/api/spec/neatcoin.ts b/packages/apps-config/src/api/spec/neatcoin.ts deleted file mode 100644 index fdda441..0000000 --- a/packages/apps-config/src/api/spec/neatcoin.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import type { OverrideBundleDefinition } from '@pezkuwi/types/types'; - -// structs need to be in order -/* eslint-disable sort-keys */ - -const definitions: OverrideBundleDefinition = { - types: [ - { - minmax: [0, undefined], - types: { - Label: 'Vec', - Name: 'Vec