@paraspell/assets 12.10.0-rc.2 → 13.0.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 +1 -41
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ npm install | pnpm add | yarn add @paraspell/assets
|
|
|
39
39
|
To use this functionality, you first have to import it in the following way.
|
|
40
40
|
|
|
41
41
|
```ts
|
|
42
|
-
import { getSupportedDestinations, getSupportedAssets, getFeeAssets, getAssetsObject, getAssetId, getRelayChainSymbol, getNativeAssets, getNativeAssets, getOtherAssets, getAllAssetsSymbols, hasSupportForAsset, getAssetDecimals, getParaId, getTChain, getAssetLocation,
|
|
42
|
+
import { getSupportedDestinations, getSupportedAssets, getFeeAssets, getAssetsObject, getAssetId, getRelayChainSymbol, getNativeAssets, getNativeAssets, getOtherAssets, getAllAssetsSymbols, hasSupportForAsset, getAssetDecimals, getParaId, getTChain, getAssetLocation, findAssetInfo, findAssetInfoOrThrow } from '@paraspell/assets'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
|
|
@@ -127,46 +127,6 @@ Function to get specific TChain from Parachain id.
|
|
|
127
127
|
getTChain(chainID: number, ecosystem: 'Polkadot' | 'Kusama' | 'Ethereum' | 'Paseo' | 'Westend') //When Ethereum ecosystem is selected please fill chainID as 1 to select Ethereum.
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
### Import chains as types
|
|
131
|
-
There are 5 options for types you can choose based on your prefference
|
|
132
|
-
|
|
133
|
-
```ts
|
|
134
|
-
// Export all Parachains
|
|
135
|
-
console.log(TParachain)
|
|
136
|
-
|
|
137
|
-
// Export all Relay chains
|
|
138
|
-
console.log(TRelaychain)
|
|
139
|
-
|
|
140
|
-
// Export all Substrate chains (Parachains + Relays)
|
|
141
|
-
console.log(TSubstrateChain)
|
|
142
|
-
|
|
143
|
-
// Export chains outside Polkadot ecosystem (Ethereum)
|
|
144
|
-
console.log(TExternalChain)
|
|
145
|
-
|
|
146
|
-
// Export all chains implemented in ParaSpell
|
|
147
|
-
console.log(TChain)
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Import chains as constant
|
|
151
|
-
There are 5 options for constants you can choose based on your prefference
|
|
152
|
-
|
|
153
|
-
```ts
|
|
154
|
-
// Export all Parachains
|
|
155
|
-
console.log(PARACHAINS)
|
|
156
|
-
|
|
157
|
-
// Export all Relay chains
|
|
158
|
-
console.log(RELAYCHAINS)
|
|
159
|
-
|
|
160
|
-
// Export all Substrate chains (Parachains + Relays)
|
|
161
|
-
console.log(SUBSTRATE_CHAINS)
|
|
162
|
-
|
|
163
|
-
// Export chains outside Polkadot ecosystem (Ethereum)
|
|
164
|
-
console.log(EXTERNAL_CHAINS)
|
|
165
|
-
|
|
166
|
-
// Export all chains implemented in ParaSpell
|
|
167
|
-
console.log(CHAINS)
|
|
168
|
-
```
|
|
169
|
-
|
|
170
130
|
### Convert id or symbol to location
|
|
171
131
|
Get location for asset id or symbol. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
|
|
172
132
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/assets",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Assets for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@paraspell/sdk-common": "
|
|
26
|
+
"@paraspell/sdk-common": "13.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-syntax-import-attributes": "^7.28.6",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"rollup": "^4.60.1",
|
|
41
41
|
"rollup-plugin-dts": "^6.4.1",
|
|
42
42
|
"ts-node": "^10.9.2",
|
|
43
|
-
"viem": "2.47.
|
|
43
|
+
"viem": "^2.47.6"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"compile": "tsc --noEmit",
|