@galacticcouncil/sdk 0.5.0 → 0.5.1
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/dist/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/dist/types/types.d.ts +6 -5
- package/dist/types/utils/math.d.ts +1 -1
- package/package.json +2 -2
package/dist/types/types.d.ts
CHANGED
|
@@ -4,12 +4,13 @@ export type PoolAsset = {
|
|
|
4
4
|
symbol: string;
|
|
5
5
|
};
|
|
6
6
|
export declare enum PoolType {
|
|
7
|
-
XYK = "
|
|
8
|
-
LBP = "
|
|
9
|
-
Stable = "
|
|
10
|
-
Omni = "
|
|
7
|
+
XYK = "Xyk",
|
|
8
|
+
LBP = "Lbp",
|
|
9
|
+
Stable = "Stableswap",
|
|
10
|
+
Omni = "Omnipool"
|
|
11
11
|
}
|
|
12
12
|
export declare enum PoolError {
|
|
13
|
+
UnknownError = "UnknownError",
|
|
13
14
|
InsufficientTradingAmount = "InsufficientTradingAmount",
|
|
14
15
|
MaxInRatioExceeded = "MaxInRatioExceeded",
|
|
15
16
|
MaxOutRatioExceeded = "MaxOutRatioExceeded"
|
|
@@ -76,7 +77,7 @@ export interface Transaction {
|
|
|
76
77
|
get<T>(): T;
|
|
77
78
|
}
|
|
78
79
|
export type Hop = {
|
|
79
|
-
|
|
80
|
+
pool: PoolType;
|
|
80
81
|
poolId: string;
|
|
81
82
|
assetIn: string;
|
|
82
83
|
assetOut: string;
|
|
@@ -22,7 +22,7 @@ export declare function calculatePriceImpact(amount: BigNumber, decimals: number
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function calculateSellFee(delta0Y: BigNumber, deltaY: BigNumber): BigNumber;
|
|
24
24
|
/**
|
|
25
|
-
* The total fee paid for a buy transaction
|
|
25
|
+
* The total fee paid for a ‘buy‘ transaction
|
|
26
26
|
* Suppose the trader is buying Y using X
|
|
27
27
|
*
|
|
28
28
|
* fee = (deltaX / delta0X) - 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacticcouncil/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Galactic SDK",
|
|
6
6
|
"author": "Pavol Noha <palo@hydradx.io>",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"test:coverage": "jest --coverage",
|
|
16
16
|
"pckg:build": "npm run cleanup && npm run build",
|
|
17
17
|
"pckg:beta": "npm run pckg:build && npm publish --tag beta",
|
|
18
|
-
"pckg:release": "npm run pckg:build &&
|
|
18
|
+
"pckg:release": "npm run pckg:build && standard-version --tag-prefix=''",
|
|
19
19
|
"pckg:publish": "git push --follow-tags origin master && npm publish",
|
|
20
20
|
"xcmgr:sync": "node ./xcmgr.sync.mjs"
|
|
21
21
|
},
|