diff --git a/README.md b/README.md index e6d20aa4..a35f4e09 100644 --- a/README.md +++ b/README.md @@ -29,16 +29,16 @@ Find the full documentation [here](https://paritytech.github.io/asset-transfer-a The below chart is focusing on what directions are supported for constructing asset transfers and in what XCM version. The goal is to have everything in green checkmarks. Note that local transfers (intra-chain) are not visualized here. -| Direction | V2 | V3 | -| --------------------- | ------------------ | ------------------ | -| System to Parachain | ✅ | ✅ | -| System to Relay | ✅ | ✅ | -| Relay to Parachain | ✅ | ✅ | -| Relay to System | ✅ | ✅ | -| Parachain to Parachain | ✅ | ✅ | -| Parachain to Relay | ✅ | ✅ | -| Parachain to System | ✅ | ✅ | -| System to System | ✅ | ✅ | +| Direction | V2 | V3 | V4 | +| --------------------- | ------------------ | ------------------ | ------------------ | +| System to Parachain | ✅ | ✅ | ✅ | +| System to Relay | ✅ | ✅ | ✅ | +| Relay to Parachain | ✅ | ✅ | ✅ | +| Relay to System | ✅ | ✅ | ✅ | +| Parachain to Parachain | ✅ | ✅ | ✅ | +| Parachain to Relay | ✅ | ✅ | ✅ | +| Parachain to System | ✅ | ✅ | ✅ | +| System to System | ✅ | ✅ | ✅ | ## Note on Parachain to Parachain Support Parachain To Parachain support is currently limited to XCM V2, with the exception of Parachain primary asset tx construction (e.g. MOVR, SDN, etc.). diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 6693c65a..4b51b023 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA42Tb2vCMBCHv0tey5wy3ea7/XEw2NgQXwxERkivNqxNSu4KyvC7L9NamzS2fdf2Hp78cndd/TKCLbEZe0AEWhquMAbzkEs2YDmnxFYyHRUp4NAnrhLKUov9SBWx2XjARCLTyIBis1UPrUi5rQW07eeMxnf79X5QHSC0QjKFIEt+Gp1JhGb0ANQvfS5fVazPQqkITMzFBWfJe+7JtG/euFCCpCWC9s5bTG+c1oAx2uDwkSPM/x+bfTkS3xXRqykVjXNVZGcp2LeA0sXdE9xR0i4HbIY8fO6V7FkaOPTPD3VUVGU/xDlCtXZmgx85YXDyR5uPtg19uV0AFim16UqkTeP/GW7Cg6e0hUjPfH1/O5qMa/an03pB9KJNximsbmBd3jZZP8ObFjw93Wbpbknd1uS6zO9AiY4u6Mpil2MBG2k7smsJ5iBdvi+RBRa5rqsTYdt6v/4DUimcANsFAAA=" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE42Tb2vCMBCHv0tey5wy3ea7/XEw2NgQXwxERkivNqxNSu4KyvC7L9NamzS2fdf2Hp78cndd/TKCLbEZe0AEWhquMAbzkEs2YDmnxFYyHRUp4NAnrhLKUov9SBWx2XjARCLTyIBis1UPrUi5rQW07eeMxnf79X5QHSC0QjKFIEt+Gp1JhGb0ANQvfS5fVazPQqkITMzFBWfJe+7JtG/euFCCpCWC9s5bTG+c1oAx2uDwkSPM/x+bfTkS3xXRqykVjXNVZGcp2LeA0sXdE9xR0i4HbIY8fO6V7FkaOPTPD3VUVGU/xDlCtXZmgx85YXDyR5uPtg19uV0AFim16UqkTeP/GW7Cg6e0hUjPfH1/O5qMa/an03pB9KJNximsbmBd3jZZP8ObFjw93Wbpbknd1uS6zO9AiY4u6Mpil2MBG2k7smsJ5iBdvi+RBRa5rqsTYdt6v/4DUimcANsFAAA=" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 357d8f03..4652d739 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA7WbbY+bSBKA/wvz1XKGfvPMfMtdEilSdjdKZvdOikYRa7cTLhh8gCeTHeW/b3cDpgqqbTDsp4lDvXU91UU3NM9Bnn0vgrtPz8G3ON0Ed2wRpNFOB3fBy6LQ5X0epcVW5y/3cbAIDnliLuyyzSHRxYuuwPJruUuM1DqJzBVjNAh+Lhq7Ibs5b7nW7Fse4GoR7KNcpyVlvw2DXYs2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NN61zwBgxBAHpU3j0XSHP8B8wfUnvDlwJ5QiKoTCkATdHDpK9uk+uYI9A3gL/QBc1rHXlmdxgXlDiqO+Xp/cwwRTHYQr/BledecqgfuQItivgzt6rdAaZYe3FsgVyJF/w4M7lvKF3uamV7lDCT7ngUFFwC+tJubfwxfUQB1kH/l69fN6VyQPJBz7ou7OURO9igwcO5rE9XUIFcuwL/yq+dRme3dVzGg4kDCQt/cqFTz6vsloAvaS+jLVqVb1J8BAWXQFJiv4Ox5xe9xae9O3ZuzAO1J+JoK0CeogaQL32Rzp7QKd0oL+AZFL335zvW2dIfRgB5chPjG3NQHBVqBQSvfbGsMdFfjHChz32oCKqOJzkET5b6Z5UqkX2QMeGZ+z06XqBTAifmybT+6pbs/0A59Oa+PoUbuGCrgBcYsfPPafoXshIAiqG3fvGjUDOb98YAEmNJw/e1LWZUrYlKDW2bomxuNcn9agyoNvaOutQlcIPLQV6OlOxziGzvoScpXasfdU/6l6G6fOMi/8CWvMZC4U3xldYoPsAfNTfq6gz1fD9wCFeEr1PIpr79uAYpwiev11Z2RIZhVoW+Uh/Zlo4YvG0FPAVGvfM6rM6dJdSIZJAnuEXx3DzMtydUpgxs6H2Z6TnNQY9z5XQSSTMHDIjDbW53EqRH+9PDz59+fj+DLhkUAAA=="; \ No newline at end of file diff --git a/docs/classes/AssetTransferApi.AssetTransferApi.html b/docs/classes/AssetTransferApi.AssetTransferApi.html index bc2ee51f..80e24dd8 100644 --- a/docs/classes/AssetTransferApi.AssetTransferApi.html +++ b/docs/classes/AssetTransferApi.AssetTransferApi.html @@ -2,7 +2,7 @@ construct transactions for assets and estimating fees.
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);
}
-Array of the amounts of each token to transfer
Options
-Decodes the hex of an extrinsic into a string readable format.
const decodedExt = assetsApi.decodeExtrinsic(tx, 'call');
console.log(JSON.parse(decodedExt));
the hex of an extrinsic tx
The format the tx is in
-Fetch estimated fee information for an extrinsic
+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
-Initialize the registry. This will only activate the registry for the CDN. +
Array of assetId's to be transferred