mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-29 21:49:53 +00:00
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.
This commit is contained in:
1 parent
5b1dbd15db
commit
7fae8bc279
153 files changed
+67
-117855
No files matched your search
@@ -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<AccountId>',
|
||||
votes_against: 'Vec<AccountId>',
|
||||
status: 'ProposalStatus',
|
||||
expiry: 'BlockNumber'
|
||||
},
|
||||
TokenId: 'u256',
|
||||
Erc721Token: {
|
||||
id: 'TokenId',
|
||||
metadata: 'Vec<u8>'
|
||||
},
|
||||
Address: 'IndicesLookupSource',
|
||||
LookupSource: 'IndicesLookupSource',
|
||||
AccountInfo: 'AccountInfoWithDualRefCount',
|
||||
ValidatorPrefs: {
|
||||
commission: 'Compact<Perbill>'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [
|
||||
282,
|
||||
294
|
||||
],
|
||||
types: {
|
||||
ChainId: 'u8',
|
||||
DepositNonce: 'u64',
|
||||
ResourceId: '[u8; 32]',
|
||||
ProposalStatus: {
|
||||
_enum: [
|
||||
'Initiated',
|
||||
'Approved',
|
||||
'Rejected'
|
||||
]
|
||||
},
|
||||
ProposalVotes: {
|
||||
votes_for: 'Vec<AccountId>',
|
||||
votes_against: 'Vec<AccountId>',
|
||||
status: 'ProposalStatus',
|
||||
expiry: 'BlockNumber'
|
||||
},
|
||||
TokenId: 'u256',
|
||||
Erc721Token: {
|
||||
id: 'TokenId',
|
||||
metadata: 'Vec<u8>'
|
||||
},
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
AccountInfo: 'AccountInfoWithDualRefCount'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [295, null],
|
||||
types: {}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@@ -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<string, OverrideBundleDefinition> = {
|
||||
'Cere Mainnet Beta': cere
|
||||
};
|
||||
// Type bundles by system.chain name; see spec/index.ts.
|
||||
const chain: Record<string, OverrideBundleDefinition> = {};
|
||||
|
||||
export default chain;
|
||||
Reference in new issue
Block a user