diff --git a/packages/types/src/interfaces/definitions.ts b/packages/types/src/interfaces/definitions.ts index 05891fdaee..ed5435e825 100644 --- a/packages/types/src/interfaces/definitions.ts +++ b/packages/types/src/interfaces/definitions.ts @@ -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'; diff --git a/packages/types/src/interfaces/fungibles/definitions.ts b/packages/types/src/interfaces/fungibles/definitions.ts new file mode 100644 index 0000000000..a2fd72b21d --- /dev/null +++ b/packages/types/src/interfaces/fungibles/definitions.ts @@ -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; diff --git a/packages/types/src/interfaces/fungibles/index.ts b/packages/types/src/interfaces/fungibles/index.ts new file mode 100644 index 0000000000..7f1de782f7 --- /dev/null +++ b/packages/types/src/interfaces/fungibles/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types.js'; diff --git a/packages/types/src/interfaces/fungibles/runtime.ts b/packages/types/src/interfaces/fungibles/runtime.ts new file mode 100644 index 0000000000..1812c8528b --- /dev/null +++ b/packages/types/src/interfaces/fungibles/runtime.ts @@ -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, FungiblesAccessError>' + } + }, + version: 1 + } + ] +}; diff --git a/packages/types/src/interfaces/fungibles/types.ts b/packages/types/src/interfaces/fungibles/types.ts new file mode 100644 index 0000000000..a0fa0a3a21 --- /dev/null +++ b/packages/types/src/interfaces/fungibles/types.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +