diff --git a/CHANGELOG.md b/CHANGELOG.md index b5d09fbe..d4dbf769 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [0.3.0](https://github.com/paritytech/asset-transfer-api/compare/v0.2.1..v0.3.0) + +### Feat + +- feat: support relay to bridge tx construction ([#409](https://github.com/paritytech/asset-transfer-api/pull/409))([436d78b](https://github.com/paritytech/asset-transfer-api/commit/436d78bf6cdd086ee179ebbe8e11d0e06bdcdee2)) + +### Chore + +- chore(deps): update pjs ([#414](https://github.com/paritytech/asset-transfer-api/pull/414))([563d208](https://github.com/paritytech/asset-transfer-api/commit/563d2088172feebe50402df596e8b7834e99fd2d)) +- chore(registry): update registry dep ([#413](https://github.com/paritytech/asset-transfer-api/pull/413))([f3be2fe](https://github.com/paritytech/asset-transfer-api/commit/f3be2feca6e0d19b7c571ff4b4befb3e04e8f1a6)) +- chore(yarn): bump yarn to 4.2.2 ([#411](https://github.com/paritytech/asset-transfer-api/pull/411))([54e8148](https://github.com/paritytech/asset-transfer-api/commit/54e8148431e6def75beaa6f4c14a8847270511b7)) +- chore(examples): update xmcVersion to safeXcmVersion ([#410](https://github.com/paritytech/asset-transfer-api/pull/410))([615d3be](https://github.com/paritytech/asset-transfer-api/commit/615d3be891cd554e2c9a24ac1b6e2d67828f4b6c)) + ## [0.2.1](https://github.com/paritytech/asset-transfer-api/compare/v0.2.0..v0.2.1) ### Fix diff --git a/docs/assets/search.js b/docs/assets/search.js index 17154034..22e6f0a0 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WcW5ObuBKA/4vn1eUMugAzb9lNUpWq7CaVnd2zVampFLHlCScYfABPJjuV/34kAaYbWjYY9ilx3Dfp625JRuR5kWffi8Xtp+fFtzjdLG7ZcpFGO7W4XbwsClXe5VFabFX+ch8vlotDnugvdtnmkKjiRVdg9bXcJVpqnUT6G210sfi5bOx6LDxvudb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IGDymStvmov0INfBsitcxbJr3lgD7sA4uatP7OrnwGmWHuxz4Grd621DfLh2uYJIM91xrIFk37MQgJIPXbsHvQOK4UNKEACYhcDVc5r3S8DkgTkXrkloXtAiOw1c9l0DrxKc2r75oFf4Lub7KI/KbG/fOAUZB0bMXBNWqebVu8GAPagv5moSlW5RP48BynBX4Cptc+P+e1yaNaa7RgvY3N1jPur3qQkw6cLVHuyF58JeeAaagLd04crVtozxBlGA/JauMTf5QYIGjgNXZ20M9I4kYMb4EGVU6By0Ju4qDZsi/SRjwDNze7a6RKYATsw92+byaF5dHu0dD5Lj7VGwSoEElK4EQma7+yXSKhiq76qnvHqwqtt4QlEOwKoXutLE/P8h9KLlgYF5rrKsXx2J7KsjIEPh1s3Vycx/8tI9+4A24p3T02PeH2+FgeQGnAOnDZseZfal/n8ZwLDBSsTOqffaIJhyz5XdjXKvEXqgrj1XJ2m0+wnugar2XJlY2gt1rqkDWRe4su546M4fiu6pW4CcEa6NR2Mgsa8QlNUrBMAGyAHpmkPzTh1QASuIcDWG8imv32gF3Qjw4q4Z7/UwD2SY5+okh+oqwbq5StDnFQDcodvM8Z6Hgvc8gBlQa6GrTqv3ZpLqrSowcWD80gVctwdyc8+AY+aCTfcWDopMND9rkeDul4t9rHtknGrhT/c/f/4fFGyk8gxQAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7WcW2/buBKA/4vzGqQRRYpK3rrbFijQ3Rbd7J4FiqBQbTrVqSz5SHKabtD/fkhKsmakoa3bPrWuORfONzMkLarPqzz7XqxuPz2vvsXpZnXLLldptFOr29XLolDlXR6lxVblL/fx6nJ1yBP9xS7bHBJVvOgOuPpa7hI9ap1E+hutdLX6edno9Vh4XnMt2dc8wNTlah/lKi0p/a0b7Jq3fqxzFZWqGWj/jNZlnKUTHbo4pXCYqz3FTt+TKN7ZwcVkb5GKhf2L07iMoyT+R31UD3FR5j+muklqWtjbrSrXX98o9TbdZlP97OhY2MONWmcb9fqpz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cz3UR6V2d6+FwsyDvBjLtcr0bx6gxmwB9FirmBXskX95AYIw12Bq8OYu/nf49KsMd01msNFxj3no3yfGofLg6s92KvRhb0aDSQBb+HClattGeMNIgf5LVztrMkPEjQwLF39oVHQO5KAiPlDhPG+HKwIvqs0bIqU2Zf6FWhAG9hmbttWupuiDHBi7mhbWSLPQG0wd8zNJdW8uqTaO1wkx1uqYI0DagNX+iG13d0WqRWEKXBVVF49wNWLQELliARrZuiasPk/UuglzwN16blcqF9RiewrKiC/QY4IVzMx/5FN9+QEmpDnCmYjp+e8P94+A6UBskQ6bdv0oBLUA5XFnC7U4r0mCubtuRb7RrjXRj0AzHNVViPdT3APNBXP1cZKe3HPFTqQddKF/Hhkzx+K7pmdg2Lgrvk3ChL7qkJZvaoAUh8sJsIVBfPuHjALUpW7mkr5lNdvzoJeBiLuO0PW7YAemKXnKqxDdWVh3VxZ6POS8IcaVzs7tPdJFLxPAtSAnAtd62f1fk5Svb0FAgfmL1zAdXsgjwYMGGYu2HRv8UGd8+ZHMRLc/eVqH+seGad68Kf7nz//DwjH0UXwUAAA"; \ No newline at end of file diff --git a/docs/classes/AssetTransferApi.AssetTransferApi.html b/docs/classes/AssetTransferApi.AssetTransferApi.html index 4bfea116..cf66a700 100644 --- a/docs/classes/AssetTransferApi.AssetTransferApi.html +++ b/docs/classes/AssetTransferApi.AssetTransferApi.html @@ -1,8 +1,8 @@ -
Fetch estimated fee information for an extrinsic
const feeInfo = assetApi.fetchFeeInfo(tx, 'call');
console.log(feeInfo.toJSON());
a payload, call or submittable
The format the tx is in
-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.
-Did not find the correct call in the current runtime.
-The specName was not provided when injecting a new chain in the registry.
-The tokens were not provided when injecting a new chain in the registry.
-Did not find a known consensus system for bridge transaction.
-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.
+Did not find the correct call in the current runtime.
+The specName was not provided when injecting a new chain in the registry.
+The tokens were not provided when injecting a new chain in the registry.
+Did not find a known consensus system for bridge transaction.
+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 an external GlobalConsensus
chain.
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 an external GlobalConsensus
chain.
Relay chain to Parachain.
+Relay to System Parachain.
+System parachain to an external GlobalConsensus
chain.
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
-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.
- \ No newline at end of file + \ No newline at end of file diff --git a/docs/interfaces/constructApiPromise.ApiInfo.html b/docs/interfaces/constructApiPromise.ApiInfo.html index 252fdea5..e0045c15 100644 --- a/docs/interfaces/constructApiPromise.ApiInfo.html +++ b/docs/interfaces/constructApiPromise.ApiInfo.html @@ -1,10 +1,10 @@ -Return value for constructApiPromise
Return value for constructApiPromise
Polkadot-js ApiPromise
-Chain name 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.
-Chain name 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.
+Optional
assetThe XCM TransferType
used to transfer assets.
Provided to construct transferAssetsUsingTypeAndThen
transactions.
Optional
customOptional custom XCM message to be executed on destination chain. +
Optional
customOptional custom XCM message to be executed on destination chain.
Should be provided if a custom xcm message is needed after transfering assets.
Defaults to Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])
Optional
feesThe XCM TransferType
used to pay fees for an XCM transfer.
+
Optional
feesThe XCM TransferType
used to pay fees for an XCM transfer.
Provided to construct transferAssetsUsingTypeAndThen
transactions.
Optional
formatOption that specifies the format in which to return a transaction. +
Optional
formatOption that specifies the format in which to return a transaction.
It can either be a payload
, call
, or submittable
.
Note: A submittable
will return a SubmittableExtrinsic
polkadot-js type, whereas
a payload
or call
will return a hex.
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
remoteThe RemoteReserve location for an XCM transfer. +
Optional
remoteThe RemoteReserve location for an XCM transfer.
Should be provided when specifying an assetTransferType
of RemoteReserve
.
Optional
remoteThe RemoteReserve location for an XCM transfers' fees. +
Optional
remoteThe RemoteReserve location for an XCM transfers' fees.
Should be provided when specfying a feesTransferType
of RemoteReserve.
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
weightOption for applying a custom weightLimit
.
+
Optional
weightOption for applying a custom weightLimit
.
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
.
Options that are appplied at initialization of the AssetTransferApi
.
Optional
chainChain name of the chain which the api is connected to.
Optional
injectedOption to inject chain information into the registry.
Optional
overrideOption to override the registry with the supplied chain information.
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.3.0Class 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
amounts: string[]
Array of the amounts of each trapped asset to be claimed
beneficiary: string
Address of the account to receive the trapped assets
opts: TransferArgsOpts<T>
Options
-Returns Promise<TxResult<T>>
create Transfer Transaction
Create an asset transfer transaction. This can be either locally on a systems parachain or relay chain, +
Returns Promise<TxResult<T>>
create Transfer Transaction
Create an asset transfer transaction. This can be either locally on a systems parachain or relay chain, or between chains using xcm.
@@ -23,17 +23,17 @@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