Fungibles runtime api for statemine/statemint/westmint (#5584)
* Fungibles runtime api for statemine/statemint/westmint * Update packages/types/src/interfaces/fungibles/definitions.ts * export `./fungibles/definitions.js` --------- Co-authored-by: Jaco <jacogr@gmail.com>
This commit is contained in:
@@ -22,6 +22,7 @@ export { default as elections } from './elections/definitions.js';
|
||||
export { default as engine } from './engine/definitions.js';
|
||||
export { default as evm } from './evm/definitions.js';
|
||||
export { default as extrinsics } from './extrinsics/definitions.js';
|
||||
export { default as fungibles } from './fungibles/definitions.js';
|
||||
export { default as genericAsset } from './genericAsset/definitions.js';
|
||||
export { default as gilt } from './gilt/definitions.js';
|
||||
export { default as grandpa } from './grandpa/definitions.js';
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
FungiblesAccessError: {
|
||||
_enum: ['AssetIdConversionFailed', 'AmountToBalanceConversionFailed']
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types.js';
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
FungiblesApi: [
|
||||
{
|
||||
methods: {
|
||||
query_account_balances: {
|
||||
description: 'Returns the list of all `MultiAsset` that an `AccountId` has',
|
||||
params: [
|
||||
{
|
||||
name: 'account',
|
||||
type: 'AccountId'
|
||||
}
|
||||
],
|
||||
type: 'Result<Vec<MultiAsset>, FungiblesAccessError>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user