Bump metadata (w/ AssetBalance, AssetDetails) (#2917)

* Bump metadata (w/ AssetBalance, AssetDetails)

* Bluperint for new-style with salt as default

* Use TBalance

* Easier overrides

* Balance

* Build types
This commit is contained in:
Jaco Greeff
2020-12-06 11:31:54 +01:00
committed by GitHub
parent 4e2ab3d11c
commit 8b4d3872d7
11 changed files with 1020 additions and 16 deletions
+15
View File
@@ -2,6 +2,7 @@
/* eslint-disable */
import type { BitVec, Bool, Bytes, Compact, Data, DoNotConstruct, I128, I16, I256, I32, I64, I8, Json, Null, Option, Raw, StorageKey, Text, Type, U128, U16, U256, U32, U64, U8, USize, Vec, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types';
import type { AssetBalance, AssetDetails, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
@@ -396,6 +397,20 @@ declare module '@polkadot/types/types/registry' {
Consensus: Consensus;
'Option<Consensus>': Option<Consensus>;
'Vec<Consensus>': Vec<Consensus>;
AssetBalance: AssetBalance;
'Option<AssetBalance>': Option<AssetBalance>;
'Vec<AssetBalance>': Vec<AssetBalance>;
AssetDetails: AssetDetails;
'Option<AssetDetails>': Option<AssetDetails>;
'Vec<AssetDetails>': Vec<AssetDetails>;
TAssetBalance: TAssetBalance;
'Compact<TAssetBalance>': Compact<TAssetBalance>;
'Option<TAssetBalance>': Option<TAssetBalance>;
'Vec<TAssetBalance>': Vec<TAssetBalance>;
TAssetDepositBalance: TAssetDepositBalance;
'Compact<TAssetDepositBalance>': Compact<TAssetDepositBalance>;
'Option<TAssetDepositBalance>': Option<TAssetDepositBalance>;
'Vec<TAssetDepositBalance>': Vec<TAssetDepositBalance>;
UncleEntryItem: UncleEntryItem;
'Option<UncleEntryItem>': Option<UncleEntryItem>;
'Vec<UncleEntryItem>': Vec<UncleEntryItem>;
@@ -0,0 +1,32 @@
// Copyright 2017-2020 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// order important in structs... :)
/* eslint-disable sort-keys */
import type { Definitions } from '../../types';
export default {
rpc: {},
types: {
AssetBalance: {
balance: 'TAssetBalance',
isFrozen: 'bool',
isZombie: 'bool'
},
AssetDetails: {
owner: 'AccountId',
issuer: 'AccountId',
admin: 'AccountId',
freezer: 'AccountId',
supply: 'TAssetBalance',
deposit: 'TAssetDepositBalance',
maxZombies: 'u32',
minBalance: 'TAssetBalance',
zombies: 'u32',
accounts: 'u32'
},
TAssetBalance: 'Balance',
TAssetDepositBalance: 'BalanceOf'
}
} as Definitions;
@@ -0,0 +1,4 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export * from './types';
@@ -0,0 +1,34 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { Struct, bool, u32 } from '@polkadot/types';
import type { AccountId, Balance, BalanceOf } from '@polkadot/types/interfaces/runtime';
/** @name AssetBalance */
export interface AssetBalance extends Struct {
readonly balance: TAssetBalance;
readonly isFrozen: bool;
readonly isZombie: bool;
}
/** @name AssetDetails */
export interface AssetDetails extends Struct {
readonly owner: AccountId;
readonly issuer: AccountId;
readonly admin: AccountId;
readonly freezer: AccountId;
readonly supply: TAssetBalance;
readonly deposit: TAssetDepositBalance;
readonly maxZombies: u32;
readonly minBalance: TAssetBalance;
readonly zombies: u32;
readonly accounts: u32;
}
/** @name TAssetBalance */
export interface TAssetBalance extends Balance {}
/** @name TAssetDepositBalance */
export interface TAssetDepositBalance extends BalanceOf {}
export type PHANTOM_ASSETS = 'assets';
@@ -5,6 +5,7 @@
export { default as runtime } from './runtime/definitions';
// substrate types
export { default as assets } from './assets/definitions';
export { default as authorship } from './authorship/definitions';
export { default as aura } from './aura/definitions';
export { default as babe } from './babe/definitions';
+1
View File
@@ -2,6 +2,7 @@
/* eslint-disable */
export * from './runtime/types';
export * from './assets/types';
export * from './authorship/types';
export * from './aura/types';
export * from './babe/types';