aftermath-ts-sdk 1.1.1 → 1.1.2
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/general/api/transactionsApiHelpers.d.ts +4 -4
- package/dist/general/api/transactionsApiHelpers.js +1 -1
- package/dist/packages/router/api/routerAsyncApiHelpers.d.ts +4 -4
- package/dist/packages/router/utils/synchronous/routerPools/afSuiRouterPool.d.ts +4 -4
- package/dist/packages/staking/api/stakingApi.d.ts +8 -8
- package/package.json +2 -2
|
@@ -24,24 +24,24 @@ export declare class TransactionsApiHelpers {
|
|
|
24
24
|
Some: InnerType;
|
|
25
25
|
};
|
|
26
26
|
static createBuildTxFunc: <Inputs>(func: (inputs: Inputs) => Infer<Struct<{
|
|
27
|
-
kind: "Input";
|
|
28
27
|
index: number;
|
|
28
|
+
kind: "Input";
|
|
29
29
|
type?: "object" | undefined;
|
|
30
30
|
value?: any;
|
|
31
31
|
} | {
|
|
32
32
|
type: "pure";
|
|
33
|
-
kind: "Input";
|
|
34
33
|
index: number;
|
|
34
|
+
kind: "Input";
|
|
35
35
|
value?: any;
|
|
36
36
|
} | {
|
|
37
37
|
kind: "GasCoin";
|
|
38
38
|
} | {
|
|
39
|
-
kind: "Result";
|
|
40
39
|
index: number;
|
|
40
|
+
kind: "Result";
|
|
41
41
|
} | {
|
|
42
|
-
kind: "NestedResult";
|
|
43
42
|
index: number;
|
|
44
43
|
resultIndex: number;
|
|
44
|
+
kind: "NestedResult";
|
|
45
45
|
}, null>>) => (inputs: {
|
|
46
46
|
walletAddress: SuiAddress;
|
|
47
47
|
} & Omit<Inputs, "tx">) => TransactionBlock;
|
|
@@ -43,7 +43,7 @@ class TransactionsApiHelpers {
|
|
|
43
43
|
const [txResponse, referenceGasPrice] = yield Promise.all([
|
|
44
44
|
this.Provider.provider.dryRunTransactionBlock({
|
|
45
45
|
transactionBlock: yield tx.build({
|
|
46
|
-
|
|
46
|
+
client: this.Provider.provider,
|
|
47
47
|
}),
|
|
48
48
|
}),
|
|
49
49
|
this.Provider.provider.getReferenceGasPrice(),
|
|
@@ -39,24 +39,24 @@ export declare class RouterAsyncApiHelpers {
|
|
|
39
39
|
coinInBytes: Uint8Array;
|
|
40
40
|
routerSwapCapBytes: Uint8Array;
|
|
41
41
|
}) => Infer<Struct<{
|
|
42
|
-
kind: "Input";
|
|
43
42
|
index: number;
|
|
43
|
+
kind: "Input";
|
|
44
44
|
type?: "object" | undefined;
|
|
45
45
|
value?: any;
|
|
46
46
|
} | {
|
|
47
47
|
type: "pure";
|
|
48
|
-
kind: "Input";
|
|
49
48
|
index: number;
|
|
49
|
+
kind: "Input";
|
|
50
50
|
value?: any;
|
|
51
51
|
} | {
|
|
52
52
|
kind: "GasCoin";
|
|
53
53
|
} | {
|
|
54
|
-
kind: "Result";
|
|
55
54
|
index: number;
|
|
55
|
+
kind: "Result";
|
|
56
56
|
} | {
|
|
57
|
-
kind: "NestedResult";
|
|
58
57
|
index: number;
|
|
59
58
|
resultIndex: number;
|
|
59
|
+
kind: "NestedResult";
|
|
60
60
|
}, null>>;
|
|
61
61
|
}) => Promise<Balance>;
|
|
62
62
|
private protocolApisFromNames;
|
|
@@ -21,24 +21,24 @@ declare class AfSuiRouterPool implements RouterPoolInterface {
|
|
|
21
21
|
referrer?: SuiAddress;
|
|
22
22
|
}) => Balance;
|
|
23
23
|
tradeTx: (inputs: RouterPoolTradeTxInputs) => Infer<Struct<{
|
|
24
|
-
kind: "Input";
|
|
25
24
|
index: number;
|
|
25
|
+
kind: "Input";
|
|
26
26
|
type?: "object" | undefined;
|
|
27
27
|
value?: any;
|
|
28
28
|
} | {
|
|
29
29
|
type: "pure";
|
|
30
|
-
kind: "Input";
|
|
31
30
|
index: number;
|
|
31
|
+
kind: "Input";
|
|
32
32
|
value?: any;
|
|
33
33
|
} | {
|
|
34
34
|
kind: "GasCoin";
|
|
35
35
|
} | {
|
|
36
|
-
kind: "Result";
|
|
37
36
|
index: number;
|
|
37
|
+
kind: "Result";
|
|
38
38
|
} | {
|
|
39
|
-
kind: "NestedResult";
|
|
40
39
|
index: number;
|
|
41
40
|
resultIndex: number;
|
|
41
|
+
kind: "NestedResult";
|
|
42
42
|
}, null>>;
|
|
43
43
|
getTradeAmountIn: (inputs: {
|
|
44
44
|
coinInType: CoinType;
|
|
@@ -139,44 +139,44 @@ export declare class StakingApi implements RouterSynchronousApiInterface<AfSuiRo
|
|
|
139
139
|
walletAddress: SuiAddress;
|
|
140
140
|
}) => Promise<UnstakePosition[]>;
|
|
141
141
|
routerWrapperStakeTx: (inputs: RouterPoolTradeTxInputs) => Infer<Struct<{
|
|
142
|
-
kind: "Input";
|
|
143
142
|
index: number;
|
|
143
|
+
kind: "Input";
|
|
144
144
|
type?: "object" | undefined;
|
|
145
145
|
value?: any;
|
|
146
146
|
} | {
|
|
147
147
|
type: "pure";
|
|
148
|
-
kind: "Input";
|
|
149
148
|
index: number;
|
|
149
|
+
kind: "Input";
|
|
150
150
|
value?: any;
|
|
151
151
|
} | {
|
|
152
152
|
kind: "GasCoin";
|
|
153
153
|
} | {
|
|
154
|
-
kind: "Result";
|
|
155
154
|
index: number;
|
|
155
|
+
kind: "Result";
|
|
156
156
|
} | {
|
|
157
|
-
kind: "NestedResult";
|
|
158
157
|
index: number;
|
|
159
158
|
resultIndex: number;
|
|
159
|
+
kind: "NestedResult";
|
|
160
160
|
}, null>>;
|
|
161
161
|
routerWrapperAtomicUnstakeTx: (inputs: RouterPoolTradeTxInputs) => Infer<Struct<{
|
|
162
|
-
kind: "Input";
|
|
163
162
|
index: number;
|
|
163
|
+
kind: "Input";
|
|
164
164
|
type?: "object" | undefined;
|
|
165
165
|
value?: any;
|
|
166
166
|
} | {
|
|
167
167
|
type: "pure";
|
|
168
|
-
kind: "Input";
|
|
169
168
|
index: number;
|
|
169
|
+
kind: "Input";
|
|
170
170
|
value?: any;
|
|
171
171
|
} | {
|
|
172
172
|
kind: "GasCoin";
|
|
173
173
|
} | {
|
|
174
|
-
kind: "Result";
|
|
175
174
|
index: number;
|
|
175
|
+
kind: "Result";
|
|
176
176
|
} | {
|
|
177
|
-
kind: "NestedResult";
|
|
178
177
|
index: number;
|
|
179
178
|
resultIndex: number;
|
|
179
|
+
kind: "NestedResult";
|
|
180
180
|
}, null>>;
|
|
181
181
|
/**
|
|
182
182
|
* Total SUI staked for afSUI in protocol.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aftermath-ts-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Aftermath TypeScript SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/AftermathFinance/aftermath-ts-sdk#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@mysten/sui.js": "^0.
|
|
37
|
+
"@mysten/sui.js": "^0.44.0",
|
|
38
38
|
"@pythnetwork/pyth-evm-js": "^1.16.1",
|
|
39
39
|
"dayjs": "^1.11.7",
|
|
40
40
|
"i": "^0.3.7",
|