@gainsnetwork/sdk 0.2.12-rc4 → 0.2.13
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/lib/constants.d.ts +0 -1
- package/lib/constants.js +2 -3
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +979 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +2 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +1058 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +2 -0
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +412 -892
- package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +911 -0
- package/lib/contracts/types/generated/GNSPairInfosV6_1.js +2 -0
- package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +660 -0
- package/lib/contracts/types/generated/GNSPairsStorageV6.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +806 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +821 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +2 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +88 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +1654 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +1742 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +94 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +852 -2130
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +98 -0
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +1485 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +117 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +1265 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +1273 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +1326 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -0
- package/lib/contracts/utils/openLimitOrders.d.ts +8 -0
- package/lib/contracts/utils/openLimitOrders.js +88 -0
- package/lib/contracts/utils/openTrades.js +2 -11
- package/lib/contracts/utils/pairs.d.ts +0 -1
- package/lib/contracts/utils/pairs.js +1 -18
- package/lib/markets/forex.js +3 -3
- package/lib/trade/liquidation.d.ts +2 -7
- package/lib/trade/liquidation.js +3 -34
- package/lib/trade/openLimitOrder.d.ts +2 -0
- package/lib/trade/openLimitOrder.js +23 -0
- package/lib/trade/pnl.d.ts +2 -2
- package/lib/trade/pnl.js +2 -4
- package/lib/trade/spread.d.ts +2 -13
- package/lib/trade/spread.js +8 -54
- package/lib/trade/types.d.ts +1 -10
- package/package.json +1 -1
|
@@ -8,7 +8,9 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
8
8
|
type: string;
|
|
9
9
|
name?: undefined;
|
|
10
10
|
outputs?: undefined;
|
|
11
|
+
constant?: undefined;
|
|
11
12
|
signature?: undefined;
|
|
13
|
+
payable?: undefined;
|
|
12
14
|
anonymous?: undefined;
|
|
13
15
|
} | {
|
|
14
16
|
inputs: {
|
|
@@ -20,7 +22,9 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
20
22
|
type: string;
|
|
21
23
|
stateMutability?: undefined;
|
|
22
24
|
outputs?: undefined;
|
|
25
|
+
constant?: undefined;
|
|
23
26
|
signature?: undefined;
|
|
27
|
+
payable?: undefined;
|
|
24
28
|
anonymous?: undefined;
|
|
25
29
|
} | {
|
|
26
30
|
inputs: {
|
|
@@ -51,7 +55,9 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
51
55
|
}[];
|
|
52
56
|
stateMutability: string;
|
|
53
57
|
type: string;
|
|
58
|
+
constant: boolean;
|
|
54
59
|
signature: string;
|
|
60
|
+
payable?: undefined;
|
|
55
61
|
anonymous?: undefined;
|
|
56
62
|
} | {
|
|
57
63
|
inputs: ({
|
|
@@ -84,6 +90,64 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
84
90
|
stateMutability: string;
|
|
85
91
|
type: string;
|
|
86
92
|
signature: string;
|
|
93
|
+
constant?: undefined;
|
|
94
|
+
payable?: undefined;
|
|
95
|
+
anonymous?: undefined;
|
|
96
|
+
} | {
|
|
97
|
+
inputs: {
|
|
98
|
+
internalType: string;
|
|
99
|
+
name: string;
|
|
100
|
+
type: string;
|
|
101
|
+
}[];
|
|
102
|
+
name: string;
|
|
103
|
+
outputs: {
|
|
104
|
+
internalType: string;
|
|
105
|
+
name: string;
|
|
106
|
+
type: string;
|
|
107
|
+
}[];
|
|
108
|
+
stateMutability: string;
|
|
109
|
+
type: string;
|
|
110
|
+
signature: string;
|
|
111
|
+
constant?: undefined;
|
|
112
|
+
payable?: undefined;
|
|
113
|
+
anonymous?: undefined;
|
|
114
|
+
} | {
|
|
115
|
+
inputs: {
|
|
116
|
+
components: {
|
|
117
|
+
internalType: string;
|
|
118
|
+
name: string;
|
|
119
|
+
type: string;
|
|
120
|
+
}[];
|
|
121
|
+
internalType: string;
|
|
122
|
+
name: string;
|
|
123
|
+
type: string;
|
|
124
|
+
}[];
|
|
125
|
+
name: string;
|
|
126
|
+
outputs: {
|
|
127
|
+
components: ({
|
|
128
|
+
components: {
|
|
129
|
+
internalType: string;
|
|
130
|
+
name: string;
|
|
131
|
+
type: string;
|
|
132
|
+
}[];
|
|
133
|
+
internalType: string;
|
|
134
|
+
name: string;
|
|
135
|
+
type: string;
|
|
136
|
+
} | {
|
|
137
|
+
internalType: string;
|
|
138
|
+
name: string;
|
|
139
|
+
type: string;
|
|
140
|
+
components?: undefined;
|
|
141
|
+
})[];
|
|
142
|
+
internalType: string;
|
|
143
|
+
name: string;
|
|
144
|
+
type: string;
|
|
145
|
+
}[];
|
|
146
|
+
stateMutability: string;
|
|
147
|
+
type: string;
|
|
148
|
+
constant: boolean;
|
|
149
|
+
signature: string;
|
|
150
|
+
payable?: undefined;
|
|
87
151
|
anonymous?: undefined;
|
|
88
152
|
} | {
|
|
89
153
|
inputs: ({
|
|
@@ -109,7 +173,9 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
109
173
|
}[];
|
|
110
174
|
stateMutability: string;
|
|
111
175
|
type: string;
|
|
176
|
+
constant: boolean;
|
|
112
177
|
signature: string;
|
|
178
|
+
payable?: undefined;
|
|
113
179
|
anonymous?: undefined;
|
|
114
180
|
} | {
|
|
115
181
|
inputs: {
|
|
@@ -156,6 +222,32 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
156
222
|
stateMutability: string;
|
|
157
223
|
type: string;
|
|
158
224
|
signature: string;
|
|
225
|
+
constant?: undefined;
|
|
226
|
+
payable?: undefined;
|
|
227
|
+
anonymous?: undefined;
|
|
228
|
+
} | {
|
|
229
|
+
inputs: ({
|
|
230
|
+
components: {
|
|
231
|
+
internalType: string;
|
|
232
|
+
name: string;
|
|
233
|
+
type: string;
|
|
234
|
+
}[];
|
|
235
|
+
internalType: string;
|
|
236
|
+
name: string;
|
|
237
|
+
type: string;
|
|
238
|
+
} | {
|
|
239
|
+
internalType: string;
|
|
240
|
+
name: string;
|
|
241
|
+
type: string;
|
|
242
|
+
components?: undefined;
|
|
243
|
+
})[];
|
|
244
|
+
name: string;
|
|
245
|
+
outputs: never[];
|
|
246
|
+
stateMutability: string;
|
|
247
|
+
type: string;
|
|
248
|
+
payable: boolean;
|
|
249
|
+
signature: string;
|
|
250
|
+
constant?: undefined;
|
|
159
251
|
anonymous?: undefined;
|
|
160
252
|
} | {
|
|
161
253
|
anonymous: boolean;
|
|
@@ -191,6 +283,8 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
191
283
|
signature: string;
|
|
192
284
|
stateMutability?: undefined;
|
|
193
285
|
outputs?: undefined;
|
|
286
|
+
constant?: undefined;
|
|
287
|
+
payable?: undefined;
|
|
194
288
|
})[];
|
|
195
289
|
static createInterface(): GNSMultiCollatDiamondInterface;
|
|
196
290
|
static connect(address: string, signerOrProvider: Signer | Provider): GNSMultiCollatDiamond;
|