Added FungiblesApi version 2 (#5687)
* Added FungiblesApi version 2 * Add exception to inspectType
This commit is contained in:
@@ -126,7 +126,9 @@ describe('runtime definitions', (): void => {
|
||||
for (const [key, { params, type }] of methodsEntries) {
|
||||
describe(`${key}`, (): void => {
|
||||
// Applied from runtime, used in Funglibles
|
||||
if (type !== 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>') {
|
||||
const skipInspectType = type === 'Result<Vec<XcmV3MultiAsset>, FungiblesAccessError>' || type === 'Result<XcmVersionedMultiAssets, FungiblesAccessError>';
|
||||
|
||||
if (!skipInspectType) {
|
||||
it(`output ${type} is known`, (): void => {
|
||||
expect(() => inspectType(type)).not.toThrow();
|
||||
});
|
||||
|
||||
@@ -19,6 +19,21 @@ export const runtime: DefinitionsCall = {
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
},
|
||||
{
|
||||
methods: {
|
||||
query_account_balances: {
|
||||
description: 'Returns the list of all `MultiAsset` that an `AccountId` has',
|
||||
params: [
|
||||
{
|
||||
name: 'account',
|
||||
type: 'AccountId'
|
||||
}
|
||||
],
|
||||
type: 'Result<XcmVersionedMultiAssets, FungiblesAccessError>'
|
||||
}
|
||||
},
|
||||
version: 2
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user