statemint known-types (#3404)
This commit is contained in:
@@ -9,6 +9,7 @@ import node from './node';
|
||||
import nodeTemplate from './node-template';
|
||||
import polkadot from './polkadot';
|
||||
import rococo from './rococo';
|
||||
import statemint from './statemint';
|
||||
import westend from './westend';
|
||||
|
||||
// Type overrides for specific spec types & versions as given in runtimeVersion
|
||||
@@ -19,6 +20,7 @@ const typesSpec: Record<string, OverrideVersionedType[]> = {
|
||||
'node-template': nodeTemplate,
|
||||
polkadot,
|
||||
rococo,
|
||||
statemint,
|
||||
westend
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
// Copyright 2017-2021 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
// these are override types for Polkadot
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
{
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
TAssetBalance: 'u128',
|
||||
ProxyType: {
|
||||
_enum: {
|
||||
Any: 0,
|
||||
NonTransfer: 1,
|
||||
CancelProxy: 2,
|
||||
Assets: 3,
|
||||
AssetOwner: 4,
|
||||
AssetManager: 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
export default versioned;
|
||||
Reference in New Issue
Block a user