@paraspell/sdk 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.cjs +710 -774
- package/dist/index.d.ts +19 -8
- package/dist/index.mjs +710 -774
- package/package.json +17 -18
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ NOTES:
|
|
|
65
65
|
- When using a multilocation array the amount parameter is overridden.
|
|
66
66
|
- Multilocation arrays are now available. Customize your asset multilocations by .currency([{multilocation1},{multilocation2}..{multilocationN}]) For more information refer to the official documentation or following PR https://github.com/paraspell/xcm-tools/pull/224.
|
|
67
67
|
- POLKADOT <> KUSAMA Bridge is now available! Try sending DOT or KSM between AssetHubs.
|
|
68
|
+
- You can now customize XCM Version! Try using .xcmVersion parameter after address in builder.
|
|
68
69
|
```
|
|
69
70
|
|
|
70
71
|
### Builder pattern:
|
|
@@ -78,6 +79,7 @@ await Builder(/*node api - optional*/)
|
|
|
78
79
|
/*.feeAsset(feeAsset) - Parameter required when using MultilocationArray*/
|
|
79
80
|
.amount(amount) // Overriden when using MultilocationArray
|
|
80
81
|
.address(address | Multilocation object /*If you are sending through xTokens, you need to pass the destination and address multilocation in one object (x2)*/)
|
|
82
|
+
/*.xcmVersion(Version.V1/V2/V3/V4) //Optional parameter for manual override of XCM Version used in call*/
|
|
81
83
|
.build()
|
|
82
84
|
/*
|
|
83
85
|
EXAMPLE:
|
|
@@ -96,6 +98,7 @@ await Builder(/*node api - optional*/)
|
|
|
96
98
|
.to(NODE/*,customParaId - optional*/ | Multilocation object)
|
|
97
99
|
.amount(amount)
|
|
98
100
|
.address(address | Multilocation object)
|
|
101
|
+
/*.xcmVersion(Version.V1/V2/V3/V4) //Optional parameter for manual override of XCM Version used in call*/
|
|
99
102
|
.build()
|
|
100
103
|
/*
|
|
101
104
|
EXAMPLE:
|
|
@@ -112,6 +115,7 @@ await Builder(/*node api - optional*/)
|
|
|
112
115
|
.from(NODE)
|
|
113
116
|
.amount(amount)
|
|
114
117
|
.address(address | Multilocation object)
|
|
118
|
+
/*.xcmVersion(Version.V1/V2/V3/V4) //Optional parameter for manual override of XCM Version used in call*/
|
|
115
119
|
.build()
|
|
116
120
|
/*
|
|
117
121
|
EXAMPLE:
|
|
@@ -132,6 +136,7 @@ await Builder(/*node api - optional*/)
|
|
|
132
136
|
.amount(amount)
|
|
133
137
|
.address(address)
|
|
134
138
|
.useKeepAlive(destinationParaAPI)
|
|
139
|
+
/*.xcmVersion(Version.V1/V2/V3/V4) //Optional parameter for manual override of XCM Version used in call*/
|
|
135
140
|
.build()
|
|
136
141
|
```
|
|
137
142
|
##### Close HRMP channels
|