Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions builders/interoperability/xcm/xcm-sdk/v1/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,16 @@ The XCM SDK is based on the premise of defining an asset to transfer and then de

- `SourceChainTransferData` - defines the source chain data for the transfer

| Name | Type | Description |
|:--------------------:|:-------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:|
| `balance` | *AssetAmount* | The balance of the asset being transferred for the source address |
| `chain` | *AnyChain* | The source chain information |
| `existentialDeposit` | *AssetAmount* | The existential deposit for the asset being transferred on the source chain |
| `fee` | *AssetAmount* | The amount of fees for the asset being transferred on the source chain |
| `feeBalance` | *AssetAmount* | The balance of the asset being transferred on the source chain |
| `min` | *AssetAmount* | The minimum amount of the asset that should be kept on the source chain, taking into consideration the `existentialDeposit` and `fee` for the transfer |
| `max` | *AssetAmount* | The maximum amount of the asset that *can* be transferred |
| Name | Type | Description |
|:-----------------------:|:-------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:|
| `balance` | *AssetAmount* | The balance of the asset being transferred for the source address |
| `chain` | *AnyChain* | The source chain information |
| `destinationFeeBalance` | *AssetAmount* | The balance of the asset used to pay for fees in the destination chain |
| `existentialDeposit` | *AssetAmount* | The existential deposit for the asset being transferred on the source chain |
| `fee` | *AssetAmount* | The amount of fees for the asset being transferred on the source chain |
| `feeBalance` | *AssetAmount* | The balance of the asset being transferred on the source chain |
| `min` | *AssetAmount* | The minimum amount of the asset that should be kept on the source chain, taking into consideration the `existentialDeposit` and `fee` for the transfer |
| `max` | *AssetAmount* | The maximum amount of the asset that *can* be transferred |

## Core Methods {: #core-sdk-methods }

Expand Down Expand Up @@ -219,7 +220,7 @@ When building transfer data with the `Sdk().assets()` function, you'll use multi
|:----------:|:--------:|:---------------------------------------------------------------------------------------------:|
| `accounts` | function | Sets the source address, the destination address, and the signer(s) required for the transfer |

- `accounts()` - sets the source address, the destination address, and the signer(s) required for the transfer. **Must call `destionation()` first**
- `accounts()` - sets the source address, the destination address, and the signer(s) required for the transfer. **Must call `destination()` first**

??? code "Parameters"
| Name | Type | Description |
Expand Down
14 changes: 14 additions & 0 deletions builders/interoperability/xcm/xcm-sdk/v1/xcm-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ As previously mentioned, regardless of which method you use to build the transfe
weight: 1000000000,
ws: 'wss://rpc.polkadot.io'
},
destinationFeeBalance: e {
key: 'dot',
originSymbol: 'DOT',
amount: 0n,
decimals: 10,
symbol: 'DOT'
},
existentialDeposit: e {
key: 'dot',
originSymbol: 'DOT',
Expand Down Expand Up @@ -513,6 +520,13 @@ The `swap` function returns the transfer data with the original source chain and
id: 1284,
rpc: 'https://rpc.api.moonbeam.network'
},
destinationFeeBalance: e {
key: 'dot',
originSymbol: 'DOT',
amount: 0n,
decimals: 10,
symbol: 'DOT'
},
existentialDeposit: e {
key: 'glmr',
originSymbol: 'GLMR',
Expand Down