@gainsnetwork/sdk 1.0.5-rc3 → 1.0.6-rc2
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/backend/globalTrades/index.js +10 -10
- package/lib/backend/tradingVariables/converter.js +57 -57
- package/lib/backend/tradingVariables/index.js +6 -7
- package/lib/contracts/addresses.js +4 -1
- package/lib/contracts/index.d.ts +1 -1
- package/lib/contracts/index.js +3 -3
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +386 -260
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +2 -10
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +1621 -219
- package/lib/contracts/utils/borrowingFees.js +9 -20
- package/lib/contracts/utils/openTrades.js +11 -20
- package/lib/contracts/utils/pairs.js +12 -21
- package/lib/markets/forex.js +1 -1
- package/lib/markets/leverage/builder.js +2 -2
- package/lib/markets/price/index.d.ts +1 -0
- package/lib/markets/price/index.js +1 -0
- package/lib/markets/price/signedPrices.d.ts +20 -4
- package/lib/markets/price/signedPrices.js +65 -21
- package/lib/markets/price/types.d.ts +23 -0
- package/lib/trade/fees/borrowing/builder.js +2 -3
- package/lib/trade/fees/borrowing/converter.js +5 -1
- package/lib/trade/fees/borrowing/index.js +5 -5
- package/lib/trade/fees/borrowingV2/builder.js +3 -4
- package/lib/trade/fees/borrowingV2/converter.js +1 -1
- package/lib/trade/fees/borrowingV2/fetcher.js +26 -32
- package/lib/trade/fees/borrowingV2/index.js +3 -3
- package/lib/trade/fees/converter.js +22 -22
- package/lib/trade/fees/fundingFees/builder.js +6 -7
- package/lib/trade/fees/fundingFees/converter.js +1 -1
- package/lib/trade/fees/fundingFees/fetcher.js +16 -25
- package/lib/trade/fees/fundingFees/index.js +2 -3
- package/lib/trade/fees/tiers/index.js +1 -2
- package/lib/trade/fees/trading/index.js +5 -3
- package/lib/trade/liquidation/builder.js +6 -3
- package/lib/trade/liquidation/index.js +4 -6
- package/lib/trade/oiWindows.js +1 -2
- package/lib/trade/pnl/builder.js +1 -2
- package/lib/trade/pnl/converter.js +1 -1
- package/lib/trade/pnl/index.js +4 -7
- package/lib/trade/priceImpact/close/builder.js +1 -2
- package/lib/trade/priceImpact/close/index.js +4 -1
- package/lib/trade/priceImpact/cumulVol/builder.js +18 -10
- package/lib/trade/priceImpact/cumulVol/index.js +21 -16
- package/lib/trade/priceImpact/open/builder.js +1 -2
- package/lib/trade/priceImpact/open/index.js +4 -1
- package/lib/trade/priceImpact/skew/builder.js +2 -3
- package/lib/trade/priceImpact/skew/converter.js +1 -1
- package/lib/trade/priceImpact/skew/fetcher.js +24 -33
- package/package.json +2 -2
|
@@ -3,14 +3,6 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { GNSMultiCollatDiamond, GNSMultiCollatDiamondInterface } from "../GNSMultiCollatDiamond";
|
|
4
4
|
export declare class GNSMultiCollatDiamond__factory {
|
|
5
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
6
|
inputs: {
|
|
15
7
|
internalType: string;
|
|
16
8
|
name: string;
|
|
@@ -18,8 +10,8 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
18
10
|
}[];
|
|
19
11
|
name: string;
|
|
20
12
|
type: string;
|
|
21
|
-
stateMutability?: undefined;
|
|
22
13
|
outputs?: undefined;
|
|
14
|
+
stateMutability?: undefined;
|
|
23
15
|
signature?: undefined;
|
|
24
16
|
anonymous?: undefined;
|
|
25
17
|
} | {
|
|
@@ -158,8 +150,8 @@ export declare class GNSMultiCollatDiamond__factory {
|
|
|
158
150
|
name: string;
|
|
159
151
|
type: string;
|
|
160
152
|
signature: string;
|
|
161
|
-
stateMutability?: undefined;
|
|
162
153
|
outputs?: undefined;
|
|
154
|
+
stateMutability?: undefined;
|
|
163
155
|
} | {
|
|
164
156
|
inputs: ({
|
|
165
157
|
components: {
|