File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main # or your default branch name
7
7
8
+ # Add this permissions block
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
8
14
jobs :
9
15
build-and-deploy :
10
16
runs-on : ubuntu-latest
17
+ environment :
18
+ name : github-pages
19
+ url : ${{ steps.deployment.outputs.page_url }}
11
20
12
21
steps :
13
22
- name : Checkout repository
27
36
run : pnpm install
28
37
29
38
- name : Build docs
30
- run : pnpm docs
39
+ run : pnpm run docs
31
40
32
41
- name : Setup Pages
33
42
uses : actions/configure-pages@v4
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export class AlexSDK {
48
48
* This function returns an array of TokenInfo objects, each containing detailed
49
49
* information about a supported swappable currency.
50
50
*
51
- * @returns {Promise<TokenInfo[]> } - A promise that resolves to an array of
51
+ * @returns {Promise<TokenInfo[]> } - A promise that resolves to an array of
52
52
* `TokenInfo` objects representing the currencies available for swaps.
53
53
*/
54
54
fetchSwappableCurrency ( ) : Promise < TokenInfo [ ] > {
@@ -60,7 +60,7 @@ export class AlexSDK {
60
60
}
61
61
62
62
/**
63
- * This function returns all possible routes for swapping between two specified currencies.
63
+ * This function returns all possible routes for swapping between two specified currencies.
64
64
* It returns an array of AMMRoute, representing possible swap routes.
65
65
*
66
66
* @param {Currency } from - The currency to swap from.
@@ -197,8 +197,8 @@ export class AlexSDK {
197
197
}
198
198
199
199
/**
200
- * This function fetches the current balances of all supported tokens for a specified STX address.
201
- * It returns an object where the keys are the currency identifiers (as defined in the Currency enum)
200
+ * This function fetches the current balances of all supported tokens for a specified STX address.
201
+ * It returns an object where the keys are the currency identifiers (as defined in the Currency enum)
202
202
* and the values are the corresponding balances as bigint values.
203
203
*
204
204
* @param {string } stxAddress - The Stacks (STX) address to retrieve the balances for.
You can’t perform that action at this time.
0 commit comments