@gainsnetwork/sdk 0.0.0-v10.rc1
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/README.md +11 -0
- package/lib/constants.d.ts +403 -0
- package/lib/constants.js +436 -0
- package/lib/contracts/addresses.d.ts +3 -0
- package/lib/contracts/addresses.js +31 -0
- package/lib/contracts/addresses.json +127 -0
- package/lib/contracts/index.d.ts +14 -0
- package/lib/contracts/index.js +83 -0
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +8716 -0
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.js +2 -0
- package/lib/contracts/types/generated/GToken.d.ts +1917 -0
- package/lib/contracts/types/generated/GToken.js +2 -0
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.d.ts +557 -0
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.js +2 -0
- package/lib/contracts/types/generated/common.d.ts +22 -0
- package/lib/contracts/types/generated/common.js +2 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +284 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +19330 -0
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.d.ts +59 -0
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.js +765 -0
- package/lib/contracts/types/generated/factories/GToken__factory.d.ts +128 -0
- package/lib/contracts/types/generated/factories/GToken__factory.js +2871 -0
- package/lib/contracts/types/generated/factories/index.d.ts +3 -0
- package/lib/contracts/types/generated/factories/index.js +12 -0
- package/lib/contracts/types/generated/index.d.ts +7 -0
- package/lib/contracts/types/generated/index.js +33 -0
- package/lib/contracts/types/index.d.ts +32 -0
- package/lib/contracts/types/index.js +25 -0
- package/lib/contracts/utils/borrowingFees.d.ts +9 -0
- package/lib/contracts/utils/borrowingFees.js +54 -0
- package/lib/contracts/utils/index.d.ts +3 -0
- package/lib/contracts/utils/index.js +19 -0
- package/lib/contracts/utils/openTrades.d.ts +10 -0
- package/lib/contracts/utils/openTrades.js +126 -0
- package/lib/contracts/utils/pairs.d.ts +7 -0
- package/lib/contracts/utils/pairs.js +478 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +24 -0
- package/lib/markets/commodities.d.ts +1 -0
- package/lib/markets/commodities.js +33 -0
- package/lib/markets/crypto.d.ts +1 -0
- package/lib/markets/crypto.js +6 -0
- package/lib/markets/forex.d.ts +3 -0
- package/lib/markets/forex.js +45 -0
- package/lib/markets/index.d.ts +5 -0
- package/lib/markets/index.js +21 -0
- package/lib/markets/indices.d.ts +1 -0
- package/lib/markets/indices.js +6 -0
- package/lib/markets/stocks.d.ts +3 -0
- package/lib/markets/stocks.js +58 -0
- package/lib/trade/fees/borrowing/converter.d.ts +17 -0
- package/lib/trade/fees/borrowing/converter.js +42 -0
- package/lib/trade/fees/borrowing/index.d.ts +58 -0
- package/lib/trade/fees/borrowing/index.js +209 -0
- package/lib/trade/fees/borrowing/types.d.ts +36 -0
- package/lib/trade/fees/borrowing/types.js +2 -0
- package/lib/trade/fees/index.d.ts +4 -0
- package/lib/trade/fees/index.js +34 -0
- package/lib/trade/fees/tiers/index.d.ts +12 -0
- package/lib/trade/fees/tiers/index.js +54 -0
- package/lib/trade/fees/tiers/types.d.ts +15 -0
- package/lib/trade/fees/tiers/types.js +8 -0
- package/lib/trade/index.d.ts +7 -0
- package/lib/trade/index.js +23 -0
- package/lib/trade/liquidation.d.ts +12 -0
- package/lib/trade/liquidation.js +55 -0
- package/lib/trade/oiWindows.d.ts +3 -0
- package/lib/trade/oiWindows.js +20 -0
- package/lib/trade/pnl.d.ts +10 -0
- package/lib/trade/pnl.js +33 -0
- package/lib/trade/spread.d.ts +18 -0
- package/lib/trade/spread.js +108 -0
- package/lib/trade/types.d.ts +598 -0
- package/lib/trade/types.js +402 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/packing.d.ts +2 -0
- package/lib/utils/packing.js +39 -0
- package/lib/vault/index.d.ts +8 -0
- package/lib/vault/index.js +10 -0
- package/package.json +105 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { GNSMultiCollatDiamond, GNSMultiCollatDiamondInterface } from "../GNSMultiCollatDiamond";
|
|
4
|
+
export declare class GNSMultiCollatDiamond__factory {
|
|
5
|
+
static readonly abi: ({
|
|
6
|
+
inputs: never[];
|
|
7
|
+
stateMutability: string;
|
|
8
|
+
type: string;
|
|
9
|
+
name?: undefined;
|
|
10
|
+
outputs?: undefined;
|
|
11
|
+
signature?: undefined;
|
|
12
|
+
anonymous?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
inputs: {
|
|
15
|
+
internalType: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}[];
|
|
19
|
+
name: string;
|
|
20
|
+
type: string;
|
|
21
|
+
stateMutability?: undefined;
|
|
22
|
+
outputs?: undefined;
|
|
23
|
+
signature?: undefined;
|
|
24
|
+
anonymous?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
inputs: ({
|
|
27
|
+
internalType: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
components?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
components: ({
|
|
33
|
+
internalType: string;
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
components?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
components: {
|
|
39
|
+
internalType: string;
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
}[];
|
|
43
|
+
internalType: string;
|
|
44
|
+
name: string;
|
|
45
|
+
type: string;
|
|
46
|
+
})[];
|
|
47
|
+
internalType: string;
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
})[];
|
|
51
|
+
name: string;
|
|
52
|
+
outputs: never[];
|
|
53
|
+
stateMutability: string;
|
|
54
|
+
type: string;
|
|
55
|
+
signature: string;
|
|
56
|
+
anonymous?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
inputs: ({
|
|
59
|
+
components: {
|
|
60
|
+
internalType: string;
|
|
61
|
+
name: string;
|
|
62
|
+
type: string;
|
|
63
|
+
}[];
|
|
64
|
+
internalType: string;
|
|
65
|
+
name: string;
|
|
66
|
+
type: string;
|
|
67
|
+
} | {
|
|
68
|
+
internalType: string;
|
|
69
|
+
name: string;
|
|
70
|
+
type: string;
|
|
71
|
+
components?: undefined;
|
|
72
|
+
})[];
|
|
73
|
+
name: string;
|
|
74
|
+
outputs: {
|
|
75
|
+
internalType: string;
|
|
76
|
+
name: string;
|
|
77
|
+
type: string;
|
|
78
|
+
}[];
|
|
79
|
+
stateMutability: string;
|
|
80
|
+
type: string;
|
|
81
|
+
signature: string;
|
|
82
|
+
anonymous?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
inputs: {
|
|
85
|
+
components: ({
|
|
86
|
+
components: {
|
|
87
|
+
internalType: string;
|
|
88
|
+
name: string;
|
|
89
|
+
type: string;
|
|
90
|
+
}[];
|
|
91
|
+
internalType: string;
|
|
92
|
+
name: string;
|
|
93
|
+
type: string;
|
|
94
|
+
} | {
|
|
95
|
+
internalType: string;
|
|
96
|
+
name: string;
|
|
97
|
+
type: string;
|
|
98
|
+
components?: undefined;
|
|
99
|
+
})[];
|
|
100
|
+
internalType: string;
|
|
101
|
+
name: string;
|
|
102
|
+
type: string;
|
|
103
|
+
}[];
|
|
104
|
+
name: string;
|
|
105
|
+
outputs: {
|
|
106
|
+
components: ({
|
|
107
|
+
components: {
|
|
108
|
+
internalType: string;
|
|
109
|
+
name: string;
|
|
110
|
+
type: string;
|
|
111
|
+
}[];
|
|
112
|
+
internalType: string;
|
|
113
|
+
name: string;
|
|
114
|
+
type: string;
|
|
115
|
+
} | {
|
|
116
|
+
internalType: string;
|
|
117
|
+
name: string;
|
|
118
|
+
type: string;
|
|
119
|
+
components?: undefined;
|
|
120
|
+
})[];
|
|
121
|
+
internalType: string;
|
|
122
|
+
name: string;
|
|
123
|
+
type: string;
|
|
124
|
+
}[];
|
|
125
|
+
stateMutability: string;
|
|
126
|
+
type: string;
|
|
127
|
+
signature: string;
|
|
128
|
+
anonymous?: undefined;
|
|
129
|
+
} | {
|
|
130
|
+
anonymous: boolean;
|
|
131
|
+
inputs: ({
|
|
132
|
+
indexed: boolean;
|
|
133
|
+
internalType: string;
|
|
134
|
+
name: string;
|
|
135
|
+
type: string;
|
|
136
|
+
components?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
components: ({
|
|
139
|
+
internalType: string;
|
|
140
|
+
name: string;
|
|
141
|
+
type: string;
|
|
142
|
+
components?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
components: {
|
|
145
|
+
internalType: string;
|
|
146
|
+
name: string;
|
|
147
|
+
type: string;
|
|
148
|
+
}[];
|
|
149
|
+
internalType: string;
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
})[];
|
|
153
|
+
indexed: boolean;
|
|
154
|
+
internalType: string;
|
|
155
|
+
name: string;
|
|
156
|
+
type: string;
|
|
157
|
+
})[];
|
|
158
|
+
name: string;
|
|
159
|
+
type: string;
|
|
160
|
+
signature: string;
|
|
161
|
+
stateMutability?: undefined;
|
|
162
|
+
outputs?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
inputs: ({
|
|
165
|
+
components: {
|
|
166
|
+
internalType: string;
|
|
167
|
+
name: string;
|
|
168
|
+
type: string;
|
|
169
|
+
}[];
|
|
170
|
+
internalType: string;
|
|
171
|
+
name: string;
|
|
172
|
+
type: string;
|
|
173
|
+
} | {
|
|
174
|
+
internalType: string;
|
|
175
|
+
name: string;
|
|
176
|
+
type: string;
|
|
177
|
+
components?: undefined;
|
|
178
|
+
})[];
|
|
179
|
+
name: string;
|
|
180
|
+
outputs: {
|
|
181
|
+
components: ({
|
|
182
|
+
internalType: string;
|
|
183
|
+
name: string;
|
|
184
|
+
type: string;
|
|
185
|
+
components?: undefined;
|
|
186
|
+
} | {
|
|
187
|
+
components: {
|
|
188
|
+
internalType: string;
|
|
189
|
+
name: string;
|
|
190
|
+
type: string;
|
|
191
|
+
}[];
|
|
192
|
+
internalType: string;
|
|
193
|
+
name: string;
|
|
194
|
+
type: string;
|
|
195
|
+
})[];
|
|
196
|
+
internalType: string;
|
|
197
|
+
name: string;
|
|
198
|
+
type: string;
|
|
199
|
+
}[];
|
|
200
|
+
stateMutability: string;
|
|
201
|
+
type: string;
|
|
202
|
+
signature: string;
|
|
203
|
+
anonymous?: undefined;
|
|
204
|
+
} | {
|
|
205
|
+
inputs: {
|
|
206
|
+
components: ({
|
|
207
|
+
internalType: string;
|
|
208
|
+
name: string;
|
|
209
|
+
type: string;
|
|
210
|
+
components?: undefined;
|
|
211
|
+
} | {
|
|
212
|
+
components: {
|
|
213
|
+
internalType: string;
|
|
214
|
+
name: string;
|
|
215
|
+
type: string;
|
|
216
|
+
}[];
|
|
217
|
+
internalType: string;
|
|
218
|
+
name: string;
|
|
219
|
+
type: string;
|
|
220
|
+
})[];
|
|
221
|
+
internalType: string;
|
|
222
|
+
name: string;
|
|
223
|
+
type: string;
|
|
224
|
+
}[];
|
|
225
|
+
name: string;
|
|
226
|
+
outputs: {
|
|
227
|
+
internalType: string;
|
|
228
|
+
name: string;
|
|
229
|
+
type: string;
|
|
230
|
+
}[];
|
|
231
|
+
stateMutability: string;
|
|
232
|
+
type: string;
|
|
233
|
+
signature: string;
|
|
234
|
+
anonymous?: undefined;
|
|
235
|
+
} | {
|
|
236
|
+
inputs: {
|
|
237
|
+
components: ({
|
|
238
|
+
internalType: string;
|
|
239
|
+
name: string;
|
|
240
|
+
type: string;
|
|
241
|
+
components?: undefined;
|
|
242
|
+
} | {
|
|
243
|
+
components: ({
|
|
244
|
+
components: {
|
|
245
|
+
internalType: string;
|
|
246
|
+
name: string;
|
|
247
|
+
type: string;
|
|
248
|
+
}[];
|
|
249
|
+
internalType: string;
|
|
250
|
+
name: string;
|
|
251
|
+
type: string;
|
|
252
|
+
} | {
|
|
253
|
+
internalType: string;
|
|
254
|
+
name: string;
|
|
255
|
+
type: string;
|
|
256
|
+
components?: undefined;
|
|
257
|
+
})[];
|
|
258
|
+
internalType: string;
|
|
259
|
+
name: string;
|
|
260
|
+
type: string;
|
|
261
|
+
})[];
|
|
262
|
+
internalType: string;
|
|
263
|
+
name: string;
|
|
264
|
+
type: string;
|
|
265
|
+
}[];
|
|
266
|
+
name: string;
|
|
267
|
+
outputs: {
|
|
268
|
+
components: {
|
|
269
|
+
internalType: string;
|
|
270
|
+
name: string;
|
|
271
|
+
type: string;
|
|
272
|
+
}[];
|
|
273
|
+
internalType: string;
|
|
274
|
+
name: string;
|
|
275
|
+
type: string;
|
|
276
|
+
}[];
|
|
277
|
+
stateMutability: string;
|
|
278
|
+
type: string;
|
|
279
|
+
signature: string;
|
|
280
|
+
anonymous?: undefined;
|
|
281
|
+
})[];
|
|
282
|
+
static createInterface(): GNSMultiCollatDiamondInterface;
|
|
283
|
+
static connect(address: string, signerOrProvider: Signer | Provider): GNSMultiCollatDiamond;
|
|
284
|
+
}
|