statemint known-types (#3404)

This commit is contained in:
Jaco
2021-04-16 17:39:21 +02:00
committed by GitHub
parent cf48762ff2
commit e0069b6f7d
2 changed files with 30 additions and 0 deletions
+2
View File
@@ -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;