From 81ac35adcf92420148823e57314f884e422483b2 Mon Sep 17 00:00:00 2001 From: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:28:35 -0500 Subject: [PATCH] chore(release): 0.1.7 (#367) --- CHANGELOG.md | 28 ++++++++++++++ docs/assets/search.js | 2 +- .../AssetTransferApi.AssetTransferApi.html | 12 +++--- .../errors_BaseError.BaseErrorsEnum.html | 38 ++++++++++--------- docs/enums/types.Direction.html | 22 +++++------ ...nstructApiPromise.constructApiPromise.html | 4 +- docs/index.html | 5 ++- .../constructApiPromise.ApiInfo.html | 10 ++--- docs/interfaces/types.TransferArgsOpts.html | 22 +++++------ docs/interfaces/types.TxResult.html | 18 ++++----- docs/modules/AssetTransferApi.html | 4 +- docs/modules/constructApiPromise.html | 4 +- docs/modules/errors_BaseError.html | 4 +- docs/modules/types.html | 4 +- docs/types/types.AssetTransferApiOpts.html | 6 +-- docs/types/types.ConstructedFormat.html | 4 +- docs/types/types.Format.html | 4 +- docs/types/types.LocalTransferTypes.html | 4 +- docs/types/types.Methods.html | 4 +- docs/types/types.RegistryTypes.html | 4 +- docs/types/types.XcmDirection.html | 4 +- package.json | 2 +- 22 files changed, 120 insertions(+), 89 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9382d2c2..f19167e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## [0.1.7](https://github.com/paritytech/asset-transfer-api/compare/v0.1.6..v0.1.7)(2024-02-07) + +### Feat + +- feat: ensure the injectedRegsitry opt does deep comparisons ([#359](https://github.com/paritytech/asset-transfer-api/pull/359)) ([724a89d](https://github.com/paritytech/asset-transfer-api/commit/724a89d7e2728a2a42604dc4e5e2d9b535926213)) +- feat: add local transfers for orml, and parachains ([#352](https://github.com/paritytech/asset-transfer-api/pull/352)) ([57cc037](https://github.com/paritytech/asset-transfer-api/commit/57cc037190e8ca14beb1e56485e2782a34523596)) + +### Fix + +- fix(internal): add deepEqual functionality for comparing two objects ([#365](https://github.com/paritytech/asset-transfer-api/pull/365)) ([e305138](https://github.com/paritytech/asset-transfer-api/commit/e305138f79ecf7cbd118869db2429c3f2726d0a1)) +- fix(internal-refactor): adjust naming to be more conventional ([#358](https://github.com/paritytech/asset-transfer-api/pull/358)) ([6b42fdb](https://github.com/paritytech/asset-transfer-api/commit/6b42fdba43b02fb924fb824b3898d74d27ea2caa)) +- fix: renaming statemine in zombienet toml files ([#356](https://github.com/paritytech/asset-transfer-api/pull/356)) ([f653810](https://github.com/paritytech/asset-transfer-api/commit/f653810154321d349adbce7ea0b3a69efa1c9334)) + +### Chore + +- chore(yarn): update berry to 4.1.0 ([#362](https://github.com/paritytech/asset-transfer-api/pull/362)) ([46a4d07](https://github.com/paritytech/asset-transfer-api/commit/46a4d07100a89b59725946f8dae19c660de13584)) +- chore(registry): update registry dep ([#360](https://github.com/paritytech/asset-transfer-api/pull/360)) ([d71af0f](https://github.com/paritytech/asset-transfer-api/commit/d71af0fbbeacbc53221afd8ed646b51cf8c16b77)) + +### Docs + +- docs: add `RELEASE.md` ([#355](https://github.com/paritytech/asset-transfer-api/pull/355)) ([550e76f](https://github.com/paritytech/asset-transfer-api/commit/550e76f44f99458e899acb888cec38ffb3cdd000)) + +### Test + +- test: set registries to NPM for AssetTransferApi ([#363](https://github.com/paritytech/asset-transfer-api/pull/363)) ([94d6c31](https://github.com/paritytech/asset-transfer-api/commit/94d6c31e74a4d32a072c455d2f8dcbeddb605122)) +- test: e2e tests ([#343](https://github.com/paritytech/asset-transfer-api/pull/343)) ([7d5de87](https://github.com/paritytech/asset-transfer-api/commit/7d5de8726328728edca8be63eb79ce25b8439d1e)) + + ## [0.1.6](https://github.com/paritytech/asset-transfer-api/compare/v0.1.5..v0.1.6)(2024-01-22) ## Features diff --git a/docs/assets/search.js b/docs/assets/search.js index 88a50072..3184288b 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64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TIOIcV8zh8qoTjmYS7ivH7kU6SYZA7rshC6RKQA38+G2XyLSzRtoBz6uqjuEobtDCPgCuIWvLO2nmeU7hkYRZJaP5nKcREGCHAm8PivlbkmCzAx8/afWJkINmnHga8aHbUf2mLf3HRwkqPBxVRuI3eWnorz8BKIOWpL01aW9lgzcAhXhI7l4yqqPAoAimJ+511e7FgKQF4Evn/fN+y4N33eBuQaQtfQFq7yqF5cXOUGQwEQvfEyZgiCXdQzuhHyjpquJA8zc+Z3PJIndbPHNvlDHUWKE7x9eX/8G2s7WrRVCAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WbbW/bOBKA/4vy1XBDUqSTfOtdW6BAd7dos3sHFEGhtelWV1nySXKbbND/viQlWTPS0JYs7afU9bxxnhm+SPRzkGc/iuDu03PwLU43wR1fBGm008Fd8LIodHmfR2mx1fnLfRwsgkOemC922eaQ6OJFV2D5tdwlRmqdROYbYzQIfi4au4zfnLdca/YtD3C1CPZRrtOSst+Gwa/DNo51rqNSN4Lub7Qu4yy9MKCrUwaHhdoz7Is9TuMyjpL4L/1Bf4mLMn+6NGjS0szRbnW5/vpG67fpNrs0zo6NmSPc6HW20a8fyzxOi3h9aZB9MzPE2RZslho+h3VpBN7n2S4udK8rCZmTjcmlahtzHyNCcVrqfButPWZr8dPNSMUMpoVrHh7dR2AqGOH6qtIb7L5R9oVR7PX6V/vPS2IByvMFFG31f9e7P3RewMlpVFhdE1OCU+GgitweUjf50eENq9PBhdQ2Sfm0N7rdtnD/e7IR2rngVZxrvA7o9LBrbBy/PR1uFQYg2rbZu2wdJQNsXzWCJzy0KrSvj09FqXf32fsoj4a47MjP4PmDTqKnMa4bhRl8V3/HOD9qTPBuczc840h6stfB2cbik/0Oz3RHfoJnF/wY112F6b6HQsbiY/3y69sVk+0UZ2by/hzl1GvvUGDcNNV19SbLd1FJOqm+mmb+382krjcnPPWkpjl10+pxl46WC+i1LzbN7S+6/JptaF/1d9McdPeQv+1L2h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fIvTHAWYz5UfoLO3r92NAG6RQnknh43rXPLCCFsBIlHckRdLchAE5APRDn6Z9WR9VL+uBJki99KU+qX7WAuYNMFbmazqndZwrq4upoNzBRMd9ITc38kCzg3iFL8u75uI2cAf0uK9Gd/VLmzRLD+6ljSuRor8Cg+lK+YafZmaucgaSfc+CAqNf+dYrs/jH8I0CUAcdp3yjaS6qguSBqVL4VpeqssmNB1BXvhlqH+VRme3d7yZAwYDWYr7pqVLNq1+4AF2QbeZDXukW9Q9FgDKYVbk/5qfiR1zaxaW3toKeDH2ogT6RdBBB6JtV3H2jwt03Ar0J9wK+2HO9Ld21KqAHV0RfwpoliAQNQla+OmkM9DbTIGPCV9pQGfWpAJUtfPORK5F+kXGgy8/oEpUC4ua+uO3PMunJG2gzH6v6QmXkLlQCXiDu0Jdu+zvV6kVGqwgw+TA3agbz/ngdAZAGJaa8g3a5Ipoa1Bnzxl0r99sauGa+BaDRJnCBCZ35psDj0SX/UnTPLgJMK6Fv6I2BxN0mK6vbZIAcmNakr7ftPW/gFqiEvkIpH/P6VxZAEazxwuur208M1Bbz9cShfTGn4Ys5sOCAbK98Zqq7j0l1MxYkCWwWQh8p01Tk1pDD05Rv1HRHClBgwvldBJIE/bAIzNlSJ3FqhD89/Pz5N9nOL1RmQwAA"; \ No newline at end of file diff --git a/docs/classes/AssetTransferApi.AssetTransferApi.html b/docs/classes/AssetTransferApi.AssetTransferApi.html index f284bff2..9cf41c5d 100644 --- a/docs/classes/AssetTransferApi.AssetTransferApi.html +++ b/docs/classes/AssetTransferApi.AssetTransferApi.html @@ -1,8 +1,8 @@ -
Errors that may be returned by the API.
-Errors that may be returned by the API.
+Not able to find the asset.
-The following option is disabled given the inputs.
-An issue has happened internally.
-The inputted address is invalid.
-The inputted asset is incorrect or invalid, and does not exist given the surrounding specs. +
The following option is disabled given the inputs.
+An issue has happened internally.
+The inputted address is invalid.
+The inputted asset is incorrect or invalid, and does not exist given the surrounding specs.
This exlcudes MultiLocation assets which are handled using InvalidMultiLocationAsset
.
The direction in which these assets are going to be sent is incorrect.
-An input or lack of input to any public facing function by the user is incorrect, and or invalid. +
The direction in which these assets are going to be sent is incorrect.
+An input or lack of input to any public facing function by the user is incorrect, and or invalid. This may include using options incorrectly.
-The inputted multilocation is incorrect.
-The following pallet does not support the method to be used.
-The xcm version is invalid.
-Multiple assets have been found for a single token symbol.
-The provided paysWithFeeOrigin asset has no liquidity pool.
-Not Implemented yet.
-The following pallet is not found.
-Not able to find the pertinent registry to gather certain information. This can refer to xcAssets.
-The provided JS environment is not supported, and the api will not run.
-The inputted multilocation is incorrect.
+The following pallet does not support the method to be used.
+The xcm version is invalid.
+Multiple assets have been found for a single token symbol.
+The provided paysWithFeeOrigin asset has no liquidity pool.
+Not Implemented yet.
+The following pallet is not found.
+Not able to find the pertinent registry to gather certain information. This can refer to xcAssets.
+The specName was not provided when injecting a new chain in the registry.
+The provided JS environment is not supported, and the api will not run.
+Represents all possible tx directions
-Represents all possible tx directions
+Local tx
-Parachain to Parachain.
-Parachain to Relay chain.
-Parachain to System parachain.
-Relay chain to Parachain.
-Relay to System Parachain.
-System parachain to Parachain.
-System parachain to Relay chain.
-System parachain to System parachain chain.
-Parachain to Parachain.
+Parachain to Relay chain.
+Parachain to System parachain.
+Relay chain to Parachain.
+Relay to System Parachain.
+System parachain to Parachain.
+System parachain to Relay chain.
+System parachain to System parachain chain.
+Construct a Polkadot-js ApiPromise, and retrieve the specName of the chain.
+Construct a Polkadot-js ApiPromise, and retrieve the specName of the chain.
import { constructApiPromise } from '@substrate/asset-transfer-api';
const { api, specName, safeXcmVersion } = constructApiPromise('wss://some_ws_url');
WebSocket Url to connect to.
ApiOptions
-Copy each binary that is necessary into the root <root>/bin
folder.
From the root directory run ./<zombienet_binary_name> -p native spawn ./zombienet/<network_file>.toml | tee zombienet.log
From the root directory run yarn start:zombienet-post-script
. You can run this right after running your zombienet network.
You can access the E2E tests and its documentation here.
+Return value for constructApiPromise
Return value for constructApiPromise
Polkadot-js ApiPromise
-SafeXcmVersion for the chain which the api is connected too.
-SpecName of the chain which the api is connected to.
-SafeXcmVersion for the chain which the api is connected too.
+SpecName of the chain which the api is connected to.
+The TransferArgsOpts are the options passed into createTransferTransaction.
-The TransferArgsOpts are the options passed into createTransferTransaction.
+payload
, call
, or submittable
.
Note: A submittable
will return a SubmittableExtrinsic
polkadot-js type, whereas
a payload
or call
will return a hex.
Optional
isBoolean to declare if this will be with limited XCM transfers. +
Optional
isBoolean to declare if this will be with limited XCM transfers. Deafult is unlimited.
-Optional
keepFor creating local asset transfers, this will allow for a transferKeepAlive
as oppose
+
Optional
keepFor creating local asset transfers, this will allow for a transferKeepAlive
as oppose
to a transfer
.
Optional
paysAssetId to pay fee's on the destination parachain.
-Optional
paysAssetId to pay fee's on the current common good parachain. +
Optional
paysAssetId to pay fee's on the destination parachain.
+Optional
paysAssetId to pay fee's on the current common good parachain. Polkadot AssetHub: default DOT Kusama AssetHub: default KSM
-Optional
sendersThe SS58 Address the tx will be sent from. This is specifically used for the format payload
.
+
Optional
sendersThe SS58 Address the tx will be sent from. This is specifically used for the format payload
.
It is necessary because the payload
will need information such as the nonce
.
Optional
transferBoolean to declare if this will transfer liquidity tokens. +
Optional
transferBoolean to declare if this will transfer liquidity tokens. Default is false.
-Optional
weightWhen isLimited is true, the option for applying a weightLimit is possible. +
Optional
weightWhen isLimited is true, the option for applying a weightLimit is possible.
If not inputted it will default to Unlimited
.
Optional
proofProvided when creating limited txs, represents the amount of storage in bytes that can be used by the tx
Optional
refProvided when creating limited txs, represents the allowed amount of computation time the tx can use
-Optional
xcmSet the xcmVersion for message construction. If this is not present a supported version +
Optional
xcmSet the xcmVersion for message construction. If this is not present a supported version will be queried, and if there is no supported version a safe version will be queried.
-The TxResult is the result of constructing a transaction. +
The TxResult is the result of constructing a transaction. T extends Format in the context of the options passed in for the Format the user expects.
-The destination specName of the transaction
-The direction of the cross chain transfer.
-The format type the tx is ouputted in.
-The method used in the transaction.
-The origin specName of the transaction
-The constructed transaction.
-The xcm version that was used to construct the tx.
-The direction of the cross chain transfer.
+The format type the tx is ouputted in.
+The method used in the transaction.
+The origin specName of the transaction
+The constructed transaction.
+The xcm version that was used to construct the tx.
+Options that are appplied at initialization of the AssetTransferApi
.
Optional
injectedOption to inject chain information into the registry.
+Options that are appplied at initialization of the AssetTransferApi
.
Optional
injectedOption to inject chain information into the registry.
Optional
registryWhether or not to apply the registry from the npm package asset-transfer-api-registry
,
or the hosted CDN which updates frequently.
The Format types possible for a constructed transaction.
-The Format types possible for a constructed transaction.
+AssetTransferApi supports three formats to be returned:
+AssetTransferApi supports three formats to be returned:
ExtrinsicPayload
as a hex.Call
as a hex.SubmittableExtrinsic
.The types of local transactions the api can construct.
-The types of local transactions the api can construct.
+The Methods are the collections of methods the API will use to construct a transaction.
-The Methods are the collections of methods the API will use to construct a transaction.
+Types that the registry can be initialized as.
+Types that the registry can be initialized as.
CDN - The registry will be initialized with the up to date version given the CDN NPM - The registry will be initialized with the NPM version which is updated less frequently.
-The direction of the cross chain transfer. This only concerns XCM transactions.
-The direction of the cross chain transfer. This only concerns XCM transactions.
+
Holds open an api connection to a specified chain within the ApiPromise in order to help +
- Preparing search index...
- The search index is not available
@substrate/asset-transfer-api - v0.1.7Class AssetTransferApi
Holds open an api connection to a specified chain within the ApiPromise in order to help construct transactions for assets and estimating fees.
-Index
Methods
Index
Methods
assetIds: string[]
Array of assetId's to be transferred
amounts: string[]
Array of the amounts of each token to transfer
opts: TransferArgsOpts<T> = {}
Options
-Returns Promise<TxResult<T>>
decode Extrinsic
Decodes the hex of an extrinsic into a string readable format.
+Returns Promise<TxResult<T>>
decode Extrinsic
Decodes the hex of an extrinsic into a string readable format.
Type Parameters
T extends Format
Parameters
encodedTransaction: string
the hex of an extrinsic tx
format: T
The format the tx is in
-Returns string
fetch Fee Info
Fetch estimated fee information for an extrinsic
+Returns string
fetch Fee Info
Fetch estimated fee information for an extrinsic
Type Parameters
T extends Format
Parameters
tx: ConstructedFormat<T>
a payload, call or submittable
format: T
The format the tx is in
-Returns Promise<null | RuntimeDispatchInfo | RuntimeDispatchInfoV1>
initialize Registry
Initialize the registry. This will only activate the registry for the CDN. +
Returns Promise<null | RuntimeDispatchInfo | RuntimeDispatchInfoV1>
initialize Registry
Initialize the registry. This will only activate the registry for the CDN. If the
-registryType
isNPM
the initalization will exit since the AssetTransferApi initializes with the reigstry from the NPM package.Returns Promise<void>
Settings
Member Visibility
Theme
On This Page