From c32fe0a952b249864f349036e6a666a0aad9eaf2 Mon Sep 17 00:00:00 2001 From: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Date: Mon, 18 Sep 2023 12:25:52 -0700 Subject: [PATCH] fix!: replace AssetsTransferApi with AssetTransferApi (#287) --- README.md | 18 +++++------ docs/assets/search.js | 2 +- ...=> AssetTransferApi.AssetTransferApi.html} | 30 ++++++++--------- .../errors_BaseError.BaseErrorsEnum.html | 32 +++++++++---------- docs/enums/types.Direction.html | 20 ++++++------ ...nstructApiPromise.constructApiPromise.html | 6 ++-- docs/index.html | 12 +++---- .../constructApiPromise.ApiInfo.html | 12 +++---- docs/interfaces/types.TransferArgsOpts.html | 22 ++++++------- docs/interfaces/types.TxResult.html | 18 +++++------ ...TransferApi.html => AssetTransferApi.html} | 14 ++++---- docs/modules/constructApiPromise.html | 4 +-- docs/modules/errors_BaseError.html | 4 +-- docs/modules/types.html | 4 +-- docs/types/types.ConstructedFormat.html | 4 +-- docs/types/types.Format.html | 4 +-- docs/types/types.LocalTransferTypes.html | 4 +-- docs/types/types.Methods.html | 4 +-- examples/localLpToken.ts | 6 ++-- .../paraToSystemParachainPrimaryNative.ts | 6 ++-- examples/paraToSystemTransferMultiAsset.ts | 6 ++-- .../paraToSystemTransferMultiAssetWithFee.ts | 6 ++-- examples/paraToSystemTransferMultiAssets.ts | 6 ++-- examples/relayToPara.ts | 6 ++-- examples/relayToSystem.ts | 6 ++-- examples/submittable.ts | 6 ++-- examples/systemToPara.ts | 6 ++-- examples/systemToParaLpToken.ts | 6 ++-- examples/systemToParaPaysWithFeeOrigin.ts | 6 ++-- ...ystemToParaReserveTransferForeignAssets.ts | 6 ++-- examples/systemToParaTeleportForeignAssets.ts | 6 ++-- examples/systemToRelay.ts | 6 ++-- examples/systemToSystem.ts | 6 ++-- examples/systemToSystemLocalForeignAssets.ts | 6 ++-- ...erApi.spec.ts => AssetTransferApi.spec.ts} | 10 +++--- ...setsTransferApi.ts => AssetTransferApi.ts} | 14 ++++---- src/createXcmTypes/util/getAssetId.spec.ts | 4 +-- src/errors/checkLocalTxInputs.spec.ts | 4 +-- src/errors/checkXcmTxInputs.spec.ts | 4 +-- src/index.ts | 2 +- .../AssetsTransferApi.spec.ts | 8 ++--- src/registry/Registry.ts | 4 +-- src/registry/parseRegistry.ts | 4 +-- src/types.ts | 2 +- src/util/getFeeAssetItemIndex.spec.ts | 6 ++-- typedoc.config.cjs | 2 +- 46 files changed, 187 insertions(+), 187 deletions(-) rename docs/classes/{AssetsTransferApi.AssetsTransferApi.html => AssetTransferApi.AssetTransferApi.html} (78%) rename docs/modules/{AssetsTransferApi.html => AssetTransferApi.html} (67%) rename src/{AssetsTransferApi.spec.ts => AssetTransferApi.spec.ts} (98%) rename src/{AssetsTransferApi.ts => AssetTransferApi.ts} (98%) diff --git a/README.md b/README.md index 40cd07eb..2311bb84 100644 --- a/README.md +++ b/README.md @@ -63,15 +63,15 @@ Note: System refers to System Parachains like Asset Hub. run these examples: `yarn build:examples && node ./examples/build/examples/.js`. ```typescript -import { AssetsTransferApi, constructApiPromise } from '@substrate/asset-transfer-api'; +import { AssetTransferApi, constructApiPromise } from '@substrate/asset-transfer-api'; // NOTE: This should all be wrapped in an asynchronous layer. // This constructs a polkadot-js ApiPromise, it is totally viable for one to construct their -// own ApiPromise, and pass it into AssetsTransferApi, but keep in mind the `specName`, and `safeXcmVersion` are also necessary. +// own ApiPromise, and pass it into AssetTransferApi, but keep in mind the `specName`, and `safeXcmVersion` are also necessary. const { api, specName, safeXcmVersion } = await constructApiPromise('wss://westmint-rpc.polkadot.io'); -const assetsApi = new AssetsTransferApi(api, specName, safeXcmVersion); +const assetsApi = new AssetTransferApi(api, specName, safeXcmVersion); const call = assetsApi.createTransferTransaction( '2001', // destChainId (If the destination is a relay chain put `0`) @@ -86,10 +86,10 @@ const call = assetsApi.createTransferTransaction( ) ``` -### AssetTransferApi & AssetsTransferApiOpts & TransferArgsOpts +### AssetTransferApi & AssetTransferApiOpts & TransferArgsOpts ```Typescript -// The AssetsTransferApi exposes one method as of now called: `createTransferTransaction` +// The AssetTransferApi exposes one method as of now called: `createTransferTransaction` /** * Create an XCM transaction to transfer Assets, or native tokens from one @@ -101,7 +101,7 @@ const call = assetsApi.createTransferTransaction( * @param amounts Array of the amounts of each token to transfer * @param opts Options */ -AssetsTransferApi.createTransferTransaction( +AssetTransferApi.createTransferTransaction( destChainId: string, destAddr: string, assetIds: string[], @@ -112,9 +112,9 @@ AssetsTransferApi.createTransferTransaction( ```typescript -// AssetsTransferApiOpts are the options for the `AssetsTransferApi` +// AssetTransferApiOpts are the options for the `AssetTransferApi` -type AssetsTransferApiOpts = { +type AssetTransferApiOpts = { /** * The injectedRegistry allows you to add custom values to the predefined initialized registry. * If you would like to see the registry you may visit https://github.com/paritytech/asset-transfer-api-registry/blob/main/registry.json @@ -188,7 +188,7 @@ interface TransferArgsOpts { ### Teleport and Reserve Transfer via polkadotXcm pallet -The `AssetsTransferApi.createTransferTransaction` is able to infer what kind of transaction is necessary given the inputs. When sending cross chain transfers the api does a lot of validation to ensure the inputs are valid, and the assets either exist or dont. This process is done through a registry which is maintained in a seperate repo [here](https://github.com/paritytech/asset-transfer-api-registry). If the asset in not in the registry it will then lookup if that asset exists on chain and cache it if necessary. On chain verification is not always possible in respect to the direction the asset is being sent and what the destination chain is since we only maintain one api connection. Therefore, if you would like the inject information into the registry, you can using the `injectedRegistry` option for the `AssetsTransferApi`. +The `AssetTransferApi.createTransferTransaction` is able to infer what kind of transaction is necessary given the inputs. When sending cross chain transfers the api does a lot of validation to ensure the inputs are valid, and the assets either exist or dont. This process is done through a registry which is maintained in a seperate repo [here](https://github.com/paritytech/asset-transfer-api-registry). If the asset in not in the registry it will then lookup if that asset exists on chain and cache it if necessary. On chain verification is not always possible in respect to the direction the asset is being sent and what the destination chain is since we only maintain one api connection. Therefore, if you would like the inject information into the registry, you can using the `injectedRegistry` option for the `AssetTransferApi`. ### Transferring assets via xTokens pallet diff --git a/docs/assets/search.js b/docs/assets/search.js index 5712604c..a7367e11 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"rows\":[{\"kind\":2,\"name\":\"AssetsTransferApi\",\"url\":\"modules/AssetsTransferApi.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"AssetsTransferApi\",\"url\":\"classes/AssetsTransferApi.AssetsTransferApi.html\",\"classes\":\"\",\"parent\":\"AssetsTransferApi\"},{\"kind\":2048,\"name\":\"createTransferTransaction\",\"url\":\"classes/AssetsTransferApi.AssetsTransferApi.html#createTransferTransaction\",\"classes\":\"\",\"parent\":\"AssetsTransferApi.AssetsTransferApi\"},{\"kind\":2048,\"name\":\"fetchFeeInfo\",\"url\":\"classes/AssetsTransferApi.AssetsTransferApi.html#fetchFeeInfo\",\"classes\":\"\",\"parent\":\"AssetsTransferApi.AssetsTransferApi\"},{\"kind\":2048,\"name\":\"decodeExtrinsic\",\"url\":\"classes/AssetsTransferApi.AssetsTransferApi.html#decodeExtrinsic\",\"classes\":\"\",\"parent\":\"AssetsTransferApi.AssetsTransferApi\"},{\"kind\":2,\"name\":\"constructApiPromise\",\"url\":\"modules/constructApiPromise.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"ApiInfo\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html\",\"classes\":\"\",\"parent\":\"constructApiPromise\"},{\"kind\":1024,\"name\":\"api\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html#api\",\"classes\":\"\",\"parent\":\"constructApiPromise.ApiInfo\"},{\"kind\":1024,\"name\":\"specName\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html#specName\",\"classes\":\"\",\"parent\":\"constructApiPromise.ApiInfo\"},{\"kind\":1024,\"name\":\"safeXcmVersion\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html#safeXcmVersion\",\"classes\":\"\",\"parent\":\"constructApiPromise.ApiInfo\"},{\"kind\":64,\"name\":\"constructApiPromise\",\"url\":\"functions/constructApiPromise.constructApiPromise.html\",\"classes\":\"\",\"parent\":\"constructApiPromise\"},{\"kind\":2,\"name\":\"types\",\"url\":\"modules/types.html\",\"classes\":\"\"},{\"kind\":8,\"name\":\"Direction\",\"url\":\"enums/types.Direction.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":16,\"name\":\"SystemToPara\",\"url\":\"enums/types.Direction.html#SystemToPara\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"SystemToRelay\",\"url\":\"enums/types.Direction.html#SystemToRelay\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"SystemToSystem\",\"url\":\"enums/types.Direction.html#SystemToSystem\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"ParaToPara\",\"url\":\"enums/types.Direction.html#ParaToPara\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"ParaToRelay\",\"url\":\"enums/types.Direction.html#ParaToRelay\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"ParaToSystem\",\"url\":\"enums/types.Direction.html#ParaToSystem\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"RelayToSystem\",\"url\":\"enums/types.Direction.html#RelayToSystem\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"RelayToPara\",\"url\":\"enums/types.Direction.html#RelayToPara\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":4194304,\"name\":\"Format\",\"url\":\"types/types.Format.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":4194304,\"name\":\"ConstructedFormat\",\"url\":\"types/types.ConstructedFormat.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":4194304,\"name\":\"LocalTransferTypes\",\"url\":\"types/types.LocalTransferTypes.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":4194304,\"name\":\"Methods\",\"url\":\"types/types.Methods.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":256,\"name\":\"TxResult\",\"url\":\"interfaces/types.TxResult.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":1024,\"name\":\"dest\",\"url\":\"interfaces/types.TxResult.html#dest\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"origin\",\"url\":\"interfaces/types.TxResult.html#origin\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"format\",\"url\":\"interfaces/types.TxResult.html#format\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"xcmVersion\",\"url\":\"interfaces/types.TxResult.html#xcmVersion\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"direction\",\"url\":\"interfaces/types.TxResult.html#direction\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"method\",\"url\":\"interfaces/types.TxResult.html#method\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"tx\",\"url\":\"interfaces/types.TxResult.html#tx\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":256,\"name\":\"TransferArgsOpts\",\"url\":\"interfaces/types.TransferArgsOpts.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":1024,\"name\":\"format\",\"url\":\"interfaces/types.TransferArgsOpts.html#format\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"paysWithFeeOrigin\",\"url\":\"interfaces/types.TransferArgsOpts.html#paysWithFeeOrigin\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"paysWithFeeDest\",\"url\":\"interfaces/types.TransferArgsOpts.html#paysWithFeeDest\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"sendersAddr\",\"url\":\"interfaces/types.TransferArgsOpts.html#sendersAddr\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"isLimited\",\"url\":\"interfaces/types.TransferArgsOpts.html#isLimited\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"weightLimit\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit.__type\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts.weightLimit\"},{\"kind\":1024,\"name\":\"refTime\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit.__type.refTime\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts.weightLimit.__type\"},{\"kind\":1024,\"name\":\"proofSize\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit.__type.proofSize\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts.weightLimit.__type\"},{\"kind\":1024,\"name\":\"xcmVersion\",\"url\":\"interfaces/types.TransferArgsOpts.html#xcmVersion\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"keepAlive\",\"url\":\"interfaces/types.TransferArgsOpts.html#keepAlive\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"transferLiquidToken\",\"url\":\"interfaces/types.TransferArgsOpts.html#transferLiquidToken\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":2,\"name\":\"errors/BaseError\",\"url\":\"modules/errors_BaseError.html\",\"classes\":\"\"},{\"kind\":8,\"name\":\"BaseErrorsEnum\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html\",\"classes\":\"\",\"parent\":\"errors/BaseError\"},{\"kind\":16,\"name\":\"InvalidInput\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidInput\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidAsset\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidAsset\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"AssetNotFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#AssetNotFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidPallet\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidPallet\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"PalletNotFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#PalletNotFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidDirection\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidDirection\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidMultiLocationAsset\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidMultiLocationAsset\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"MultipleNonUniqueAssetsFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#MultipleNonUniqueAssetsFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"RegistryNotFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#RegistryNotFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidXcmVersion\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidXcmVersion\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"NotImplemented\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#NotImplemented\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InternalError\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InternalError\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidAddress\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidAddress\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"DisabledOption\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#DisabledOption\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,32.268]],[\"comment/0\",[]],[\"name/1\",[0,32.268]],[\"comment/1\",[]],[\"name/2\",[1,37.377]],[\"comment/2\",[]],[\"name/3\",[2,37.377]],[\"comment/3\",[]],[\"name/4\",[3,37.377]],[\"comment/4\",[]],[\"name/5\",[4,32.268]],[\"comment/5\",[]],[\"name/6\",[5,37.377]],[\"comment/6\",[]],[\"name/7\",[6,37.377]],[\"comment/7\",[]],[\"name/8\",[7,37.377]],[\"comment/8\",[]],[\"name/9\",[8,37.377]],[\"comment/9\",[]],[\"name/10\",[4,32.268]],[\"comment/10\",[]],[\"name/11\",[9,37.377]],[\"comment/11\",[]],[\"name/12\",[10,32.268]],[\"comment/12\",[]],[\"name/13\",[11,37.377]],[\"comment/13\",[]],[\"name/14\",[12,37.377]],[\"comment/14\",[]],[\"name/15\",[13,37.377]],[\"comment/15\",[]],[\"name/16\",[14,37.377]],[\"comment/16\",[]],[\"name/17\",[15,37.377]],[\"comment/17\",[]],[\"name/18\",[16,37.377]],[\"comment/18\",[]],[\"name/19\",[17,37.377]],[\"comment/19\",[]],[\"name/20\",[18,37.377]],[\"comment/20\",[]],[\"name/21\",[19,28.904]],[\"comment/21\",[]],[\"name/22\",[20,37.377]],[\"comment/22\",[]],[\"name/23\",[21,37.377]],[\"comment/23\",[]],[\"name/24\",[22,37.377]],[\"comment/24\",[]],[\"name/25\",[23,37.377]],[\"comment/25\",[]],[\"name/26\",[24,37.377]],[\"comment/26\",[]],[\"name/27\",[25,37.377]],[\"comment/27\",[]],[\"name/28\",[19,28.904]],[\"comment/28\",[]],[\"name/29\",[26,32.268]],[\"comment/29\",[]],[\"name/30\",[10,32.268]],[\"comment/30\",[]],[\"name/31\",[27,37.377]],[\"comment/31\",[]],[\"name/32\",[28,37.377]],[\"comment/32\",[]],[\"name/33\",[29,37.377]],[\"comment/33\",[]],[\"name/34\",[19,28.904]],[\"comment/34\",[]],[\"name/35\",[30,37.377]],[\"comment/35\",[]],[\"name/36\",[31,37.377]],[\"comment/36\",[]],[\"name/37\",[32,37.377]],[\"comment/37\",[]],[\"name/38\",[33,37.377]],[\"comment/38\",[]],[\"name/39\",[34,37.377]],[\"comment/39\",[]],[\"name/40\",[35,37.377]],[\"comment/40\",[]],[\"name/41\",[36,37.377]],[\"comment/41\",[]],[\"name/42\",[37,37.377]],[\"comment/42\",[]],[\"name/43\",[26,32.268]],[\"comment/43\",[]],[\"name/44\",[38,37.377]],[\"comment/44\",[]],[\"name/45\",[39,37.377]],[\"comment/45\",[]],[\"name/46\",[40,37.377]],[\"comment/46\",[]],[\"name/47\",[41,37.377]],[\"comment/47\",[]],[\"name/48\",[42,37.377]],[\"comment/48\",[]],[\"name/49\",[43,37.377]],[\"comment/49\",[]],[\"name/50\",[44,37.377]],[\"comment/50\",[]],[\"name/51\",[45,37.377]],[\"comment/51\",[]],[\"name/52\",[46,37.377]],[\"comment/52\",[]],[\"name/53\",[47,37.377]],[\"comment/53\",[]],[\"name/54\",[48,37.377]],[\"comment/54\",[]],[\"name/55\",[49,37.377]],[\"comment/55\",[]],[\"name/56\",[50,37.377]],[\"comment/56\",[]],[\"name/57\",[51,37.377]],[\"comment/57\",[]],[\"name/58\",[52,37.377]],[\"comment/58\",[]],[\"name/59\",[53,37.377]],[\"comment/59\",[]],[\"name/60\",[54,37.377]],[\"comment/60\",[]],[\"name/61\",[55,37.377]],[\"comment/61\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":35,\"name\":{\"40\":{}},\"comment\":{}}],[\"api\",{\"_index\":6,\"name\":{\"7\":{}},\"comment\":{}}],[\"apiinfo\",{\"_index\":5,\"name\":{\"6\":{}},\"comment\":{}}],[\"assetnotfound\",{\"_index\":44,\"name\":{\"50\":{}},\"comment\":{}}],[\"assetstransferapi\",{\"_index\":0,\"name\":{\"0\":{},\"1\":{}},\"comment\":{}}],[\"baseerrorsenum\",{\"_index\":41,\"name\":{\"47\":{}},\"comment\":{}}],[\"constructapipromise\",{\"_index\":4,\"name\":{\"5\":{},\"10\":{}},\"comment\":{}}],[\"constructedformat\",{\"_index\":20,\"name\":{\"22\":{}},\"comment\":{}}],[\"createtransfertransaction\",{\"_index\":1,\"name\":{\"2\":{}},\"comment\":{}}],[\"decodeextrinsic\",{\"_index\":3,\"name\":{\"4\":{}},\"comment\":{}}],[\"dest\",{\"_index\":24,\"name\":{\"26\":{}},\"comment\":{}}],[\"direction\",{\"_index\":10,\"name\":{\"12\":{},\"30\":{}},\"comment\":{}}],[\"disabledoption\",{\"_index\":55,\"name\":{\"61\":{}},\"comment\":{}}],[\"errors/baseerror\",{\"_index\":40,\"name\":{\"46\":{}},\"comment\":{}}],[\"fetchfeeinfo\",{\"_index\":2,\"name\":{\"3\":{}},\"comment\":{}}],[\"format\",{\"_index\":19,\"name\":{\"21\":{},\"28\":{},\"34\":{}},\"comment\":{}}],[\"internalerror\",{\"_index\":53,\"name\":{\"59\":{}},\"comment\":{}}],[\"invalidaddress\",{\"_index\":54,\"name\":{\"60\":{}},\"comment\":{}}],[\"invalidasset\",{\"_index\":43,\"name\":{\"49\":{}},\"comment\":{}}],[\"invaliddirection\",{\"_index\":47,\"name\":{\"53\":{}},\"comment\":{}}],[\"invalidinput\",{\"_index\":42,\"name\":{\"48\":{}},\"comment\":{}}],[\"invalidmultilocationasset\",{\"_index\":48,\"name\":{\"54\":{}},\"comment\":{}}],[\"invalidpallet\",{\"_index\":45,\"name\":{\"51\":{}},\"comment\":{}}],[\"invalidxcmversion\",{\"_index\":51,\"name\":{\"57\":{}},\"comment\":{}}],[\"islimited\",{\"_index\":33,\"name\":{\"38\":{}},\"comment\":{}}],[\"keepalive\",{\"_index\":38,\"name\":{\"44\":{}},\"comment\":{}}],[\"localtransfertypes\",{\"_index\":21,\"name\":{\"23\":{}},\"comment\":{}}],[\"method\",{\"_index\":27,\"name\":{\"31\":{}},\"comment\":{}}],[\"methods\",{\"_index\":22,\"name\":{\"24\":{}},\"comment\":{}}],[\"multiplenonuniqueassetsfound\",{\"_index\":49,\"name\":{\"55\":{}},\"comment\":{}}],[\"notimplemented\",{\"_index\":52,\"name\":{\"58\":{}},\"comment\":{}}],[\"origin\",{\"_index\":25,\"name\":{\"27\":{}},\"comment\":{}}],[\"palletnotfound\",{\"_index\":46,\"name\":{\"52\":{}},\"comment\":{}}],[\"paratopara\",{\"_index\":14,\"name\":{\"16\":{}},\"comment\":{}}],[\"paratorelay\",{\"_index\":15,\"name\":{\"17\":{}},\"comment\":{}}],[\"paratosystem\",{\"_index\":16,\"name\":{\"18\":{}},\"comment\":{}}],[\"payswithfeedest\",{\"_index\":31,\"name\":{\"36\":{}},\"comment\":{}}],[\"payswithfeeorigin\",{\"_index\":30,\"name\":{\"35\":{}},\"comment\":{}}],[\"proofsize\",{\"_index\":37,\"name\":{\"42\":{}},\"comment\":{}}],[\"reftime\",{\"_index\":36,\"name\":{\"41\":{}},\"comment\":{}}],[\"registrynotfound\",{\"_index\":50,\"name\":{\"56\":{}},\"comment\":{}}],[\"relaytopara\",{\"_index\":18,\"name\":{\"20\":{}},\"comment\":{}}],[\"relaytosystem\",{\"_index\":17,\"name\":{\"19\":{}},\"comment\":{}}],[\"safexcmversion\",{\"_index\":8,\"name\":{\"9\":{}},\"comment\":{}}],[\"sendersaddr\",{\"_index\":32,\"name\":{\"37\":{}},\"comment\":{}}],[\"specname\",{\"_index\":7,\"name\":{\"8\":{}},\"comment\":{}}],[\"systemtopara\",{\"_index\":11,\"name\":{\"13\":{}},\"comment\":{}}],[\"systemtorelay\",{\"_index\":12,\"name\":{\"14\":{}},\"comment\":{}}],[\"systemtosystem\",{\"_index\":13,\"name\":{\"15\":{}},\"comment\":{}}],[\"transferargsopts\",{\"_index\":29,\"name\":{\"33\":{}},\"comment\":{}}],[\"transferliquidtoken\",{\"_index\":39,\"name\":{\"45\":{}},\"comment\":{}}],[\"tx\",{\"_index\":28,\"name\":{\"32\":{}},\"comment\":{}}],[\"txresult\",{\"_index\":23,\"name\":{\"25\":{}},\"comment\":{}}],[\"types\",{\"_index\":9,\"name\":{\"11\":{}},\"comment\":{}}],[\"weightlimit\",{\"_index\":34,\"name\":{\"39\":{}},\"comment\":{}}],[\"xcmversion\",{\"_index\":26,\"name\":{\"29\":{},\"43\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"rows\":[{\"kind\":2,\"name\":\"AssetTransferApi\",\"url\":\"modules/AssetTransferApi.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"AssetTransferApi\",\"url\":\"classes/AssetTransferApi.AssetTransferApi.html\",\"classes\":\"\",\"parent\":\"AssetTransferApi\"},{\"kind\":2048,\"name\":\"createTransferTransaction\",\"url\":\"classes/AssetTransferApi.AssetTransferApi.html#createTransferTransaction\",\"classes\":\"\",\"parent\":\"AssetTransferApi.AssetTransferApi\"},{\"kind\":2048,\"name\":\"fetchFeeInfo\",\"url\":\"classes/AssetTransferApi.AssetTransferApi.html#fetchFeeInfo\",\"classes\":\"\",\"parent\":\"AssetTransferApi.AssetTransferApi\"},{\"kind\":2048,\"name\":\"decodeExtrinsic\",\"url\":\"classes/AssetTransferApi.AssetTransferApi.html#decodeExtrinsic\",\"classes\":\"\",\"parent\":\"AssetTransferApi.AssetTransferApi\"},{\"kind\":2,\"name\":\"constructApiPromise\",\"url\":\"modules/constructApiPromise.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"ApiInfo\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html\",\"classes\":\"\",\"parent\":\"constructApiPromise\"},{\"kind\":1024,\"name\":\"api\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html#api\",\"classes\":\"\",\"parent\":\"constructApiPromise.ApiInfo\"},{\"kind\":1024,\"name\":\"specName\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html#specName\",\"classes\":\"\",\"parent\":\"constructApiPromise.ApiInfo\"},{\"kind\":1024,\"name\":\"safeXcmVersion\",\"url\":\"interfaces/constructApiPromise.ApiInfo.html#safeXcmVersion\",\"classes\":\"\",\"parent\":\"constructApiPromise.ApiInfo\"},{\"kind\":64,\"name\":\"constructApiPromise\",\"url\":\"functions/constructApiPromise.constructApiPromise.html\",\"classes\":\"\",\"parent\":\"constructApiPromise\"},{\"kind\":2,\"name\":\"types\",\"url\":\"modules/types.html\",\"classes\":\"\"},{\"kind\":8,\"name\":\"Direction\",\"url\":\"enums/types.Direction.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":16,\"name\":\"SystemToPara\",\"url\":\"enums/types.Direction.html#SystemToPara\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"SystemToRelay\",\"url\":\"enums/types.Direction.html#SystemToRelay\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"SystemToSystem\",\"url\":\"enums/types.Direction.html#SystemToSystem\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"ParaToPara\",\"url\":\"enums/types.Direction.html#ParaToPara\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"ParaToRelay\",\"url\":\"enums/types.Direction.html#ParaToRelay\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"ParaToSystem\",\"url\":\"enums/types.Direction.html#ParaToSystem\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"RelayToSystem\",\"url\":\"enums/types.Direction.html#RelayToSystem\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":16,\"name\":\"RelayToPara\",\"url\":\"enums/types.Direction.html#RelayToPara\",\"classes\":\"\",\"parent\":\"types.Direction\"},{\"kind\":4194304,\"name\":\"Format\",\"url\":\"types/types.Format.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":4194304,\"name\":\"ConstructedFormat\",\"url\":\"types/types.ConstructedFormat.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":4194304,\"name\":\"LocalTransferTypes\",\"url\":\"types/types.LocalTransferTypes.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":4194304,\"name\":\"Methods\",\"url\":\"types/types.Methods.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":256,\"name\":\"TxResult\",\"url\":\"interfaces/types.TxResult.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":1024,\"name\":\"dest\",\"url\":\"interfaces/types.TxResult.html#dest\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"origin\",\"url\":\"interfaces/types.TxResult.html#origin\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"format\",\"url\":\"interfaces/types.TxResult.html#format\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"xcmVersion\",\"url\":\"interfaces/types.TxResult.html#xcmVersion\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"direction\",\"url\":\"interfaces/types.TxResult.html#direction\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"method\",\"url\":\"interfaces/types.TxResult.html#method\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":1024,\"name\":\"tx\",\"url\":\"interfaces/types.TxResult.html#tx\",\"classes\":\"\",\"parent\":\"types.TxResult\"},{\"kind\":256,\"name\":\"TransferArgsOpts\",\"url\":\"interfaces/types.TransferArgsOpts.html\",\"classes\":\"\",\"parent\":\"types\"},{\"kind\":1024,\"name\":\"format\",\"url\":\"interfaces/types.TransferArgsOpts.html#format\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"paysWithFeeOrigin\",\"url\":\"interfaces/types.TransferArgsOpts.html#paysWithFeeOrigin\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"paysWithFeeDest\",\"url\":\"interfaces/types.TransferArgsOpts.html#paysWithFeeDest\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"sendersAddr\",\"url\":\"interfaces/types.TransferArgsOpts.html#sendersAddr\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"isLimited\",\"url\":\"interfaces/types.TransferArgsOpts.html#isLimited\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"weightLimit\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit.__type\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts.weightLimit\"},{\"kind\":1024,\"name\":\"refTime\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit.__type.refTime\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts.weightLimit.__type\"},{\"kind\":1024,\"name\":\"proofSize\",\"url\":\"interfaces/types.TransferArgsOpts.html#weightLimit.__type.proofSize\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts.weightLimit.__type\"},{\"kind\":1024,\"name\":\"xcmVersion\",\"url\":\"interfaces/types.TransferArgsOpts.html#xcmVersion\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"keepAlive\",\"url\":\"interfaces/types.TransferArgsOpts.html#keepAlive\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":1024,\"name\":\"transferLiquidToken\",\"url\":\"interfaces/types.TransferArgsOpts.html#transferLiquidToken\",\"classes\":\"\",\"parent\":\"types.TransferArgsOpts\"},{\"kind\":2,\"name\":\"errors/BaseError\",\"url\":\"modules/errors_BaseError.html\",\"classes\":\"\"},{\"kind\":8,\"name\":\"BaseErrorsEnum\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html\",\"classes\":\"\",\"parent\":\"errors/BaseError\"},{\"kind\":16,\"name\":\"InvalidInput\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidInput\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidAsset\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidAsset\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"AssetNotFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#AssetNotFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidPallet\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidPallet\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"PalletNotFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#PalletNotFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidDirection\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidDirection\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidMultiLocationAsset\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidMultiLocationAsset\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"MultipleNonUniqueAssetsFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#MultipleNonUniqueAssetsFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"RegistryNotFound\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#RegistryNotFound\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidXcmVersion\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidXcmVersion\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"NotImplemented\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#NotImplemented\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InternalError\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InternalError\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"InvalidAddress\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#InvalidAddress\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"},{\"kind\":16,\"name\":\"DisabledOption\",\"url\":\"enums/errors_BaseError.BaseErrorsEnum.html#DisabledOption\",\"classes\":\"\",\"parent\":\"errors/BaseError.BaseErrorsEnum\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,32.268]],[\"comment/0\",[]],[\"name/1\",[0,32.268]],[\"comment/1\",[]],[\"name/2\",[1,37.377]],[\"comment/2\",[]],[\"name/3\",[2,37.377]],[\"comment/3\",[]],[\"name/4\",[3,37.377]],[\"comment/4\",[]],[\"name/5\",[4,32.268]],[\"comment/5\",[]],[\"name/6\",[5,37.377]],[\"comment/6\",[]],[\"name/7\",[6,37.377]],[\"comment/7\",[]],[\"name/8\",[7,37.377]],[\"comment/8\",[]],[\"name/9\",[8,37.377]],[\"comment/9\",[]],[\"name/10\",[4,32.268]],[\"comment/10\",[]],[\"name/11\",[9,37.377]],[\"comment/11\",[]],[\"name/12\",[10,32.268]],[\"comment/12\",[]],[\"name/13\",[11,37.377]],[\"comment/13\",[]],[\"name/14\",[12,37.377]],[\"comment/14\",[]],[\"name/15\",[13,37.377]],[\"comment/15\",[]],[\"name/16\",[14,37.377]],[\"comment/16\",[]],[\"name/17\",[15,37.377]],[\"comment/17\",[]],[\"name/18\",[16,37.377]],[\"comment/18\",[]],[\"name/19\",[17,37.377]],[\"comment/19\",[]],[\"name/20\",[18,37.377]],[\"comment/20\",[]],[\"name/21\",[19,28.904]],[\"comment/21\",[]],[\"name/22\",[20,37.377]],[\"comment/22\",[]],[\"name/23\",[21,37.377]],[\"comment/23\",[]],[\"name/24\",[22,37.377]],[\"comment/24\",[]],[\"name/25\",[23,37.377]],[\"comment/25\",[]],[\"name/26\",[24,37.377]],[\"comment/26\",[]],[\"name/27\",[25,37.377]],[\"comment/27\",[]],[\"name/28\",[19,28.904]],[\"comment/28\",[]],[\"name/29\",[26,32.268]],[\"comment/29\",[]],[\"name/30\",[10,32.268]],[\"comment/30\",[]],[\"name/31\",[27,37.377]],[\"comment/31\",[]],[\"name/32\",[28,37.377]],[\"comment/32\",[]],[\"name/33\",[29,37.377]],[\"comment/33\",[]],[\"name/34\",[19,28.904]],[\"comment/34\",[]],[\"name/35\",[30,37.377]],[\"comment/35\",[]],[\"name/36\",[31,37.377]],[\"comment/36\",[]],[\"name/37\",[32,37.377]],[\"comment/37\",[]],[\"name/38\",[33,37.377]],[\"comment/38\",[]],[\"name/39\",[34,37.377]],[\"comment/39\",[]],[\"name/40\",[35,37.377]],[\"comment/40\",[]],[\"name/41\",[36,37.377]],[\"comment/41\",[]],[\"name/42\",[37,37.377]],[\"comment/42\",[]],[\"name/43\",[26,32.268]],[\"comment/43\",[]],[\"name/44\",[38,37.377]],[\"comment/44\",[]],[\"name/45\",[39,37.377]],[\"comment/45\",[]],[\"name/46\",[40,37.377]],[\"comment/46\",[]],[\"name/47\",[41,37.377]],[\"comment/47\",[]],[\"name/48\",[42,37.377]],[\"comment/48\",[]],[\"name/49\",[43,37.377]],[\"comment/49\",[]],[\"name/50\",[44,37.377]],[\"comment/50\",[]],[\"name/51\",[45,37.377]],[\"comment/51\",[]],[\"name/52\",[46,37.377]],[\"comment/52\",[]],[\"name/53\",[47,37.377]],[\"comment/53\",[]],[\"name/54\",[48,37.377]],[\"comment/54\",[]],[\"name/55\",[49,37.377]],[\"comment/55\",[]],[\"name/56\",[50,37.377]],[\"comment/56\",[]],[\"name/57\",[51,37.377]],[\"comment/57\",[]],[\"name/58\",[52,37.377]],[\"comment/58\",[]],[\"name/59\",[53,37.377]],[\"comment/59\",[]],[\"name/60\",[54,37.377]],[\"comment/60\",[]],[\"name/61\",[55,37.377]],[\"comment/61\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":35,\"name\":{\"40\":{}},\"comment\":{}}],[\"api\",{\"_index\":6,\"name\":{\"7\":{}},\"comment\":{}}],[\"apiinfo\",{\"_index\":5,\"name\":{\"6\":{}},\"comment\":{}}],[\"assetnotfound\",{\"_index\":44,\"name\":{\"50\":{}},\"comment\":{}}],[\"assettransferapi\",{\"_index\":0,\"name\":{\"0\":{},\"1\":{}},\"comment\":{}}],[\"baseerrorsenum\",{\"_index\":41,\"name\":{\"47\":{}},\"comment\":{}}],[\"constructapipromise\",{\"_index\":4,\"name\":{\"5\":{},\"10\":{}},\"comment\":{}}],[\"constructedformat\",{\"_index\":20,\"name\":{\"22\":{}},\"comment\":{}}],[\"createtransfertransaction\",{\"_index\":1,\"name\":{\"2\":{}},\"comment\":{}}],[\"decodeextrinsic\",{\"_index\":3,\"name\":{\"4\":{}},\"comment\":{}}],[\"dest\",{\"_index\":24,\"name\":{\"26\":{}},\"comment\":{}}],[\"direction\",{\"_index\":10,\"name\":{\"12\":{},\"30\":{}},\"comment\":{}}],[\"disabledoption\",{\"_index\":55,\"name\":{\"61\":{}},\"comment\":{}}],[\"errors/baseerror\",{\"_index\":40,\"name\":{\"46\":{}},\"comment\":{}}],[\"fetchfeeinfo\",{\"_index\":2,\"name\":{\"3\":{}},\"comment\":{}}],[\"format\",{\"_index\":19,\"name\":{\"21\":{},\"28\":{},\"34\":{}},\"comment\":{}}],[\"internalerror\",{\"_index\":53,\"name\":{\"59\":{}},\"comment\":{}}],[\"invalidaddress\",{\"_index\":54,\"name\":{\"60\":{}},\"comment\":{}}],[\"invalidasset\",{\"_index\":43,\"name\":{\"49\":{}},\"comment\":{}}],[\"invaliddirection\",{\"_index\":47,\"name\":{\"53\":{}},\"comment\":{}}],[\"invalidinput\",{\"_index\":42,\"name\":{\"48\":{}},\"comment\":{}}],[\"invalidmultilocationasset\",{\"_index\":48,\"name\":{\"54\":{}},\"comment\":{}}],[\"invalidpallet\",{\"_index\":45,\"name\":{\"51\":{}},\"comment\":{}}],[\"invalidxcmversion\",{\"_index\":51,\"name\":{\"57\":{}},\"comment\":{}}],[\"islimited\",{\"_index\":33,\"name\":{\"38\":{}},\"comment\":{}}],[\"keepalive\",{\"_index\":38,\"name\":{\"44\":{}},\"comment\":{}}],[\"localtransfertypes\",{\"_index\":21,\"name\":{\"23\":{}},\"comment\":{}}],[\"method\",{\"_index\":27,\"name\":{\"31\":{}},\"comment\":{}}],[\"methods\",{\"_index\":22,\"name\":{\"24\":{}},\"comment\":{}}],[\"multiplenonuniqueassetsfound\",{\"_index\":49,\"name\":{\"55\":{}},\"comment\":{}}],[\"notimplemented\",{\"_index\":52,\"name\":{\"58\":{}},\"comment\":{}}],[\"origin\",{\"_index\":25,\"name\":{\"27\":{}},\"comment\":{}}],[\"palletnotfound\",{\"_index\":46,\"name\":{\"52\":{}},\"comment\":{}}],[\"paratopara\",{\"_index\":14,\"name\":{\"16\":{}},\"comment\":{}}],[\"paratorelay\",{\"_index\":15,\"name\":{\"17\":{}},\"comment\":{}}],[\"paratosystem\",{\"_index\":16,\"name\":{\"18\":{}},\"comment\":{}}],[\"payswithfeedest\",{\"_index\":31,\"name\":{\"36\":{}},\"comment\":{}}],[\"payswithfeeorigin\",{\"_index\":30,\"name\":{\"35\":{}},\"comment\":{}}],[\"proofsize\",{\"_index\":37,\"name\":{\"42\":{}},\"comment\":{}}],[\"reftime\",{\"_index\":36,\"name\":{\"41\":{}},\"comment\":{}}],[\"registrynotfound\",{\"_index\":50,\"name\":{\"56\":{}},\"comment\":{}}],[\"relaytopara\",{\"_index\":18,\"name\":{\"20\":{}},\"comment\":{}}],[\"relaytosystem\",{\"_index\":17,\"name\":{\"19\":{}},\"comment\":{}}],[\"safexcmversion\",{\"_index\":8,\"name\":{\"9\":{}},\"comment\":{}}],[\"sendersaddr\",{\"_index\":32,\"name\":{\"37\":{}},\"comment\":{}}],[\"specname\",{\"_index\":7,\"name\":{\"8\":{}},\"comment\":{}}],[\"systemtopara\",{\"_index\":11,\"name\":{\"13\":{}},\"comment\":{}}],[\"systemtorelay\",{\"_index\":12,\"name\":{\"14\":{}},\"comment\":{}}],[\"systemtosystem\",{\"_index\":13,\"name\":{\"15\":{}},\"comment\":{}}],[\"transferargsopts\",{\"_index\":29,\"name\":{\"33\":{}},\"comment\":{}}],[\"transferliquidtoken\",{\"_index\":39,\"name\":{\"45\":{}},\"comment\":{}}],[\"tx\",{\"_index\":28,\"name\":{\"32\":{}},\"comment\":{}}],[\"txresult\",{\"_index\":23,\"name\":{\"25\":{}},\"comment\":{}}],[\"types\",{\"_index\":9,\"name\":{\"11\":{}},\"comment\":{}}],[\"weightlimit\",{\"_index\":34,\"name\":{\"39\":{}},\"comment\":{}}],[\"xcmversion\",{\"_index\":26,\"name\":{\"29\":{},\"43\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/classes/AssetsTransferApi.AssetsTransferApi.html b/docs/classes/AssetTransferApi.AssetTransferApi.html similarity index 78% rename from docs/classes/AssetsTransferApi.AssetsTransferApi.html rename to docs/classes/AssetTransferApi.AssetTransferApi.html index 2c5c9280..6b9f6846 100644 --- a/docs/classes/AssetsTransferApi.AssetsTransferApi.html +++ b/docs/classes/AssetTransferApi.AssetTransferApi.html @@ -1,4 +1,4 @@ -AssetsTransferApi | @substrate/asset-transfer-api - v0.1.0-beta.5
+AssetTransferApi | @substrate/asset-transfer-api - v0.1.0-beta.5

Holds open an api connection to a specified chain within the ApiPromise in order to help construct transactions for assets and estimating fees.

-
import { AssetsTransferApi, constructApiPromise } from '@substrate/asset-transfer-api'

const main = () => {
const { api, specName, safeXcmVersion } = await constructApiPromise('wss://some_ws_url');
const assetsApi = new AssetsTransferApi(api, specName, safeXcmVersion);
} +
import { AssetTransferApi, constructApiPromise } from '@substrate/asset-transfer-api'

const main = () => {
const { api, specName, safeXcmVersion } = await constructApiPromise('wss://some_ws_url');
const assetsApi = new AssetTransferApi(api, specName, safeXcmVersion);
}

Hierarchy

    -
  • AssetsTransferApi
@@ -36,9 +36,9 @@

Methods

@@ -88,7 +88,7 @@
opts: Returns Promise<TxResult<T>>
+
  • Defined in AssetTransferApi.ts:124
  • +
  • Defined in AssetTransferApi.ts:506
    • @@ -150,7 +150,7 @@
      format: Returns Promise<null | RuntimeDispatchInfo | RuntimeDispatchInfoV1>
    +
  • Defined in AssetTransferApi.ts:460
  • diff --git a/docs/enums/errors_BaseError.BaseErrorsEnum.html b/docs/enums/errors_BaseError.BaseErrorsEnum.html index a93c630a..575c3ae4 100644 --- a/docs/enums/errors_BaseError.BaseErrorsEnum.html +++ b/docs/enums/errors_BaseError.BaseErrorsEnum.html @@ -21,7 +21,7 @@

    Enumeration BaseErrorsEnum

    +
  • Defined in errors/BaseError.ts:6
  • @@ -53,7 +53,7 @@
    +
  • Defined in errors/BaseError.ts:20
  • DisabledOption: "DisabledOption"
    @@ -61,7 +61,7 @@
    +
  • Defined in errors/BaseError.ts:64
  • InternalError: "InternalError"
    @@ -69,7 +69,7 @@
    +
  • Defined in errors/BaseError.ts:56
  • InvalidAddress: "InvalidAddress"
    @@ -77,7 +77,7 @@
    +
  • Defined in errors/BaseError.ts:60
  • InvalidAsset: "InvalidAsset"
    @@ -86,7 +86,7 @@
    +
  • Defined in errors/BaseError.ts:16
  • InvalidDirection: "InvalidDirection"
    @@ -94,7 +94,7 @@
    +
  • Defined in errors/BaseError.ts:32
  • InvalidInput: "InvalidInput"
    @@ -103,7 +103,7 @@
    +
  • Defined in errors/BaseError.ts:11
  • InvalidMultiLocationAsset: "InvalidMultiLocationAsset"
    @@ -111,7 +111,7 @@
    +
  • Defined in errors/BaseError.ts:36
  • InvalidPallet: "InvalidPallet"
    @@ -119,7 +119,7 @@
    +
  • Defined in errors/BaseError.ts:24
  • InvalidXcmVersion: "InvalidXcmVersion"
    @@ -127,7 +127,7 @@
    +
  • Defined in errors/BaseError.ts:48
  • MultipleNonUniqueAssetsFound: "MultipleNonUniqueAssetsFound"
    @@ -135,7 +135,7 @@
    +
  • Defined in errors/BaseError.ts:40
  • NotImplemented: "NotImplemented"
    @@ -143,7 +143,7 @@
    +
  • Defined in errors/BaseError.ts:52
  • PalletNotFound: "PalletNotFound"
    @@ -151,7 +151,7 @@
    +
  • Defined in errors/BaseError.ts:28
  • RegistryNotFound: "RegistryNotFound"
    @@ -159,7 +159,7 @@
    +
  • Defined in errors/BaseError.ts:44
  • +
  • Defined in types.ts:25
  • @@ -47,7 +47,7 @@
    +
  • Defined in types.ts:41
  • ParaToRelay: "ParaToRelay"
    @@ -55,7 +55,7 @@
    +
  • Defined in types.ts:45
  • ParaToSystem: "ParaToSystem"
    @@ -63,7 +63,7 @@
    +
  • Defined in types.ts:49
  • RelayToPara: "RelayToPara"
    @@ -71,7 +71,7 @@
    +
  • Defined in types.ts:57
  • RelayToSystem: "RelayToSystem"
    @@ -79,7 +79,7 @@
    +
  • Defined in types.ts:53
  • SystemToPara: "SystemToPara"
    @@ -87,7 +87,7 @@
    +
  • Defined in types.ts:29
  • SystemToRelay: "SystemToRelay"
    @@ -95,7 +95,7 @@
    +
  • Defined in types.ts:33
  • SystemToSystem: "SystemToSystem"
    @@ -103,7 +103,7 @@
    +
  • Defined in types.ts:37
  • +
  • Defined in constructApiPromise.ts:39
  • +
  • Defined in AssetTransferApi.ts:1
  • Index

    Classes

    -
    +
  • Defined in errors/BaseError.ts:1
  • Index

    @@ -40,7 +40,7 @@

    Theme

    +
  • Defined in types.ts:81
  • +
  • Defined in types.ts:92