Skip to content

Commit a1d0157

Browse files
committed
Rework docs design - SDK
1 parent 4f4248c commit a1d0157

3 files changed

Lines changed: 618 additions & 972 deletions

File tree

docs/sdk/AssetPallet.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ Following query lets you query assets supported between two selected Parachains.
4444
getSupportedAssets(TChain, TChain)
4545
```
4646

47-
**Example output:**
47+
**Example output**
4848

49-
<details>
50-
<summary>An example of output for Acala and Astar as input</summary>
49+
::: details An example of output for Acala and Astar as input
5150

5251
```json
5352
[
@@ -365,8 +364,7 @@ getSupportedAssets(TChain, TChain)
365364
}
366365
]
367366
```
368-
369-
</details>
367+
:::
370368

371369
## Query fee assets
372370
This function returns `assets object` from `assets.json` for `particular Parachain` for assets that have `feeAsset` property. Function uses [TChain](https://paraspell.github.io/docs/sdk/AssetPallet.html#import-chains-as-types) types.
@@ -426,10 +424,9 @@ This function returns `assets object` from `assets.json` for `particular Paracha
426424
getAssetsObject(TChain)
427425
```
428426

429-
**Example output:**
427+
**Example output**
430428

431-
<details>
432-
<summary>An example of output for Ajuna as input</summary>
429+
::: details An example of output for Ajuna as input
433430

434431
```json
435432
{
@@ -523,8 +520,7 @@ getAssetsObject(TChain)
523520
}
524521
```
525522

526-
</details>
527-
523+
```
528524
529525
## Query asset ID
530526
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.
@@ -585,10 +581,9 @@ This function returns an object array of foreign assets for a particular Paracha
585581
getOtherAssets(TChain)
586582
```
587583

588-
**Example output:**
584+
**Example output**
589585

590-
<details>
591-
<summary>An example of output for Darwinia as input</summary>
586+
::: details An example of output for Darwinia as input
592587

593588
```json
594589
[
@@ -659,7 +654,7 @@ getOtherAssets(TChain)
659654
]
660655
```
661656

662-
</details>
657+
:::
663658

664659
## Query all asset symbols
665660
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.

0 commit comments

Comments
 (0)