@paraspell/assets 13.2.2 → 13.3.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.
Files changed (3) hide show
  1. package/README.md +13 -13
  2. package/dist/index.mjs +87 -0
  3. package/package.json +4 -5
package/README.md CHANGED
@@ -41,77 +41,77 @@ import { getSupportedDestinations, getSupportedAssets, getFeeAssets, getAssetsOb
41
41
 
42
42
 
43
43
  ### Query assets object
44
- This function returns `assets object` from `assets.json` for `particular Parachain`, including information about `native` and `foreign` assets. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
44
+ This function returns `assets object` from `assets.json` for `particular Parachain`, including information about `native` and `foreign` assets. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
45
45
 
46
46
  ```ts
47
47
  getAssetsObject(TChain)
48
48
  ```
49
49
 
50
50
  ### Query asset ID
51
- This function returns `assetId` for `particular Parachain` and `asset symbol`. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
51
+ This function returns `assetId` for `particular Parachain` and `asset symbol`. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
52
52
 
53
53
  ```ts
54
54
  getAssetId(TChain, ASSET_SYMBOL)
55
55
  ```
56
56
 
57
57
  ### Query Relay chain asset symbol
58
- This function returns the `symbol` of the Relay chain for a particular Parachain. Either `DOT` or `KSM` or `WND` or `PAS`. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
58
+ This function returns the `symbol` of the Relay chain for a particular Parachain. Either `DOT` or `KSM` or `WND` or `PAS`. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
59
59
 
60
60
  ```ts
61
61
  getRelayChainSymbol(TChain)
62
62
  ```
63
63
 
64
64
  ### Query native assets
65
- This function returns a string array of `native` assets symbols for a particular Parachain. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
65
+ This function returns a string array of `native` assets symbols for a particular Parachain. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
66
66
 
67
67
  ```ts
68
68
  getNativeAssets(TChain)
69
69
  ```
70
70
 
71
71
  ### Query foreign assets
72
- This function returns an object array of foreign assets for a particular Parachain. Each object has a symbol and assetId property. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
72
+ This function returns an object array of foreign assets for a particular Parachain. Each object has a symbol and assetId property. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
73
73
 
74
74
  ```ts
75
75
  getOtherAssets(TChain)
76
76
  ```
77
77
 
78
78
  ### Query all asset symbols
79
- Function returns string array of all asset symbols for a specific Parachain. (native and foreign assets are merged into a single array). Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
79
+ Function returns string array of all asset symbols for a specific Parachain. (native and foreign assets are merged into a single array). Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
80
80
 
81
81
  ```ts
82
82
  getAllAssetsSymbols(TChain)
83
83
  ```
84
84
 
85
85
  ### Query asset support
86
- The function checks if Parachain supports a particular asset. (Both native and foreign assets are searched). Returns boolean. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
86
+ The function checks if Parachain supports a particular asset. (Both native and foreign assets are searched). Returns boolean. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
87
87
 
88
88
  ```ts
89
89
  hasSupportForAsset(TChain, ASSET_SYMBOL)
90
90
  ```
91
91
 
92
92
  ### Query asset decimals
93
- The function returns decimals for a specific asset. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
93
+ The function returns decimals for a specific asset. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
94
94
 
95
95
  ```ts
96
96
  getAssetDecimals(TChain, ASSET_SYMBOL)
97
97
  ```
98
98
 
99
99
  ### Query Parachain ID
100
- The function returns specific Parachain id. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
100
+ The function returns specific Parachain id. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
101
101
 
102
102
  ```ts
103
103
  getParaId(TChain)
104
104
  ```
105
105
 
106
106
  ### Query asset data and support for specific chain I
107
- Find out whether asset is registered on chain and return its entire parameters. If not found, returns null. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
107
+ Find out whether asset is registered on chain and return its entire parameters. If not found, returns null. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
108
108
 
109
109
  ```ts
110
110
  findAssetInfo(TChain, ASSET_SYMBOL/*, DESTINATION?*/)
111
111
  ```
112
112
 
113
113
  ### Query asset data and support for specific chain II
114
- Find out whether asset is registered on chain and return its entire parameters. If not found, returns error. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
114
+ Find out whether asset is registered on chain and return its entire parameters. If not found, returns error. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
115
115
 
116
116
  ```ts
117
117
  findAssetInfoOrThrow(TChain, ASSET_SYMBOL/*, DESTINATION?*/)
@@ -125,7 +125,7 @@ getTChain(chainID: number, ecosystem: 'Polkadot' | 'Kusama' | 'Ethereum' | 'Pase
125
125
  ```
126
126
 
127
127
  ### Convert id or symbol to location
128
- Get location for asset id or symbol. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
128
+ Get location for asset id or symbol. Function uses [TChain](https://paraspell.github.io/docs/xcm-sdk/asset-package.html#import-chains-as-types) types.
129
129
 
130
130
  ```ts
131
131
  getAssetLocation(TChain, { symbol: symbol } | { id: assetId })
@@ -148,7 +148,7 @@ getAssetLocation(TChain, { symbol: symbol } | { id: assetId })
148
148
 
149
149
  ## Contribute to XCM Tools and earn rewards 💰
150
150
 
151
- We run an open Bug Bounty Program that rewards contributors for reporting and fixing bugs in the project. More information on bug bounty can be found in the [official documentation](https://paraspell.github.io/docs/contribution.html).
151
+ We run an open Bug Bounty Program that rewards contributors for reporting and fixing bugs in the project. More information on bug bounty can be found in the [official documentation](https://paraspell.github.io/docs/contribution-guidelines.html).
152
152
 
153
153
  ## Get Support 🚑
154
154
 
package/dist/index.mjs CHANGED
@@ -2731,6 +2731,29 @@ var Hydration = {
2731
2731
  },
2732
2732
  isFeeAsset: true
2733
2733
  },
2734
+ {
2735
+ assetId: "1816",
2736
+ symbol: "aSIGIL",
2737
+ decimals: 18,
2738
+ existentialDeposit: "20000000000000000",
2739
+ location: {
2740
+ parents: 1,
2741
+ interior: {
2742
+ X2: [
2743
+ {
2744
+ Parachain: 2034
2745
+ },
2746
+ {
2747
+ AccountKey20: {
2748
+ network: null,
2749
+ key: "0x987ddc8b236fb23e1e48882b206396ca9b42648b"
2750
+ }
2751
+ }
2752
+ ]
2753
+ }
2754
+ },
2755
+ isFeeAsset: true
2756
+ },
2734
2757
  {
2735
2758
  assetId: "420",
2736
2759
  symbol: "GETH",
@@ -6987,6 +7010,29 @@ var AssetHubPolkadot = {
6987
7010
  existentialDeposit: "1000000000000000000",
6988
7011
  alias: "DED2"
6989
7012
  },
7013
+ {
7014
+ assetId: "50000496",
7015
+ symbol: "USDt",
7016
+ decimals: 6,
7017
+ location: {
7018
+ parents: 1,
7019
+ interior: {
7020
+ X3: [
7021
+ {
7022
+ Parachain: 1000
7023
+ },
7024
+ {
7025
+ PalletInstance: 50
7026
+ },
7027
+ {
7028
+ GeneralIndex: 50000496
7029
+ }
7030
+ ]
7031
+ }
7032
+ },
7033
+ existentialDeposit: "1",
7034
+ alias: "USDt4"
7035
+ },
6990
7036
  {
6991
7037
  assetId: "555",
6992
7038
  symbol: "GAME",
@@ -7237,6 +7283,29 @@ var AssetHubPolkadot = {
7237
7283
  },
7238
7284
  existentialDeposit: "1000000000000"
7239
7285
  },
7286
+ {
7287
+ assetId: "50000495",
7288
+ symbol: "USDt",
7289
+ decimals: 6,
7290
+ location: {
7291
+ parents: 1,
7292
+ interior: {
7293
+ X3: [
7294
+ {
7295
+ Parachain: 1000
7296
+ },
7297
+ {
7298
+ PalletInstance: 50
7299
+ },
7300
+ {
7301
+ GeneralIndex: 50000495
7302
+ }
7303
+ ]
7304
+ }
7305
+ },
7306
+ existentialDeposit: "1",
7307
+ alias: "USDt3"
7308
+ },
7240
7309
  {
7241
7310
  assetId: "2023",
7242
7311
  symbol: "dot",
@@ -7746,6 +7815,24 @@ var AssetHubPolkadot = {
7746
7815
  existentialDeposit: "1",
7747
7816
  isFeeAsset: true
7748
7817
  },
7818
+ {
7819
+ symbol: "HOLLAR",
7820
+ decimals: 18,
7821
+ location: {
7822
+ parents: 1,
7823
+ interior: {
7824
+ X2: [
7825
+ {
7826
+ Parachain: 2034
7827
+ },
7828
+ {
7829
+ GeneralIndex: 222
7830
+ }
7831
+ ]
7832
+ }
7833
+ },
7834
+ existentialDeposit: "20000000000000000"
7835
+ },
7749
7836
  {
7750
7837
  symbol: "SKY",
7751
7838
  decimals: 18,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/assets",
3
- "version": "13.2.2",
3
+ "version": "13.3.0",
4
4
  "description": "Assets for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,18 +12,17 @@
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/index.cjs"
15
+ "import": "./dist/index.mjs"
17
16
  }
18
17
  },
19
- "main": "dist/index.cjs",
18
+ "main": "dist/index.mjs",
20
19
  "module": "dist/index.mjs",
21
20
  "types": "dist/index.d.ts",
22
21
  "files": [
23
22
  "dist"
24
23
  ],
25
24
  "dependencies": {
26
- "@paraspell/sdk-common": "13.2.2"
25
+ "@paraspell/sdk-common": "13.3.0"
27
26
  },
28
27
  "devDependencies": {
29
28
  "@babel/plugin-syntax-import-attributes": "^7.28.6",