@d8x/perpetuals-sdk 0.8.13 → 0.8.14
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/cjs/abi/IPerpetualManager.json +11 -6
- package/dist/cjs/contracts/IPerpetualManager.d.ts +19 -18
- package/dist/cjs/contracts/factories/IPerpetualManager__factory.d.ts +10 -6
- package/dist/cjs/contracts/factories/IPerpetualManager__factory.js +11 -6
- package/dist/cjs/contracts/factories/IPerpetualManager__factory.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/abi/IPerpetualManager.json +11 -6
- package/dist/esm/contracts/IPerpetualManager.d.ts +19 -18
- package/dist/esm/contracts/factories/IPerpetualManager__factory.d.ts +10 -6
- package/dist/esm/contracts/factories/IPerpetualManager__factory.js +11 -6
- package/dist/esm/contracts/factories/IPerpetualManager__factory.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/abi/IPerpetualManager.json +11 -6
- package/src/contracts/IPerpetualManager.ts +19 -13
- package/src/contracts/factories/IPerpetualManager__factory.ts +11 -6
- package/src/version.ts +1 -1
|
@@ -480,7 +480,7 @@ export interface IPerpetualManagerInterface extends utils.Interface {
|
|
|
480
480
|
"getCollateralTokenAmountForPricing(uint8)": FunctionFragment;
|
|
481
481
|
"getCurrentBrokerVolume(uint8,address)": FunctionFragment;
|
|
482
482
|
"getCurrentTraderVolume(uint8,address)": FunctionFragment;
|
|
483
|
-
"getDepositAmountForLvgPosition(int128,int128,int128,int128,int128,int128,int128)": FunctionFragment;
|
|
483
|
+
"getDepositAmountForLvgPosition(int128,int128,int128,int128,int128,int128,int128,int128)": FunctionFragment;
|
|
484
484
|
"getFeeForBrokerDesignation(uint32)": FunctionFragment;
|
|
485
485
|
"getFeeForBrokerStake(address)": FunctionFragment;
|
|
486
486
|
"getFeeForBrokerVolume(uint8,address)": FunctionFragment;
|
|
@@ -880,6 +880,7 @@ export interface IPerpetualManagerInterface extends utils.Interface {
|
|
|
880
880
|
BigNumberish,
|
|
881
881
|
BigNumberish,
|
|
882
882
|
BigNumberish,
|
|
883
|
+
BigNumberish,
|
|
883
884
|
BigNumberish
|
|
884
885
|
]
|
|
885
886
|
): string;
|
|
@@ -1796,11 +1797,11 @@ export interface IPerpetualManagerInterface extends utils.Interface {
|
|
|
1796
1797
|
"Clear(uint24,address)": EventFragment;
|
|
1797
1798
|
"DistributeFees(uint8,uint24,address,int128,int128)": EventFragment;
|
|
1798
1799
|
"Liquidate(uint24,address,address,bytes16,int128,int128,int128,int128,int128)": EventFragment;
|
|
1799
|
-
"LiquidityAdded(
|
|
1800
|
+
"LiquidityAdded(uint8,address,uint256,uint256)": EventFragment;
|
|
1800
1801
|
"LiquidityPoolCreated(uint8,address,address,uint16,int128)": EventFragment;
|
|
1801
1802
|
"LiquidityProvisionPaused(bool,uint8)": EventFragment;
|
|
1802
|
-
"LiquidityRemoved(
|
|
1803
|
-
"LiquidityWithdrawalInitiated(
|
|
1803
|
+
"LiquidityRemoved(uint8,address,uint256,uint256)": EventFragment;
|
|
1804
|
+
"LiquidityWithdrawalInitiated(uint8,address,uint256)": EventFragment;
|
|
1804
1805
|
"PerpetualCreated(uint8,uint24,int128[7],int128[5],int128[12],uint256)": EventFragment;
|
|
1805
1806
|
"PerpetualLimitOrderCancelled(uint24,bytes32)": EventFragment;
|
|
1806
1807
|
"RunLiquidityPool(uint8)": EventFragment;
|
|
@@ -1982,13 +1983,13 @@ export type LiquidateEvent = TypedEvent<
|
|
|
1982
1983
|
export type LiquidateEventFilter = TypedEventFilter<LiquidateEvent>;
|
|
1983
1984
|
|
|
1984
1985
|
export interface LiquidityAddedEventObject {
|
|
1985
|
-
poolId:
|
|
1986
|
+
poolId: number;
|
|
1986
1987
|
user: string;
|
|
1987
1988
|
tokenAmount: BigNumber;
|
|
1988
1989
|
shareAmount: BigNumber;
|
|
1989
1990
|
}
|
|
1990
1991
|
export type LiquidityAddedEvent = TypedEvent<
|
|
1991
|
-
[
|
|
1992
|
+
[number, string, BigNumber, BigNumber],
|
|
1992
1993
|
LiquidityAddedEventObject
|
|
1993
1994
|
>;
|
|
1994
1995
|
|
|
@@ -2022,13 +2023,13 @@ export type LiquidityProvisionPausedEventFilter =
|
|
|
2022
2023
|
TypedEventFilter<LiquidityProvisionPausedEvent>;
|
|
2023
2024
|
|
|
2024
2025
|
export interface LiquidityRemovedEventObject {
|
|
2025
|
-
poolId:
|
|
2026
|
+
poolId: number;
|
|
2026
2027
|
user: string;
|
|
2027
2028
|
tokenAmount: BigNumber;
|
|
2028
2029
|
shareAmount: BigNumber;
|
|
2029
2030
|
}
|
|
2030
2031
|
export type LiquidityRemovedEvent = TypedEvent<
|
|
2031
|
-
[
|
|
2032
|
+
[number, string, BigNumber, BigNumber],
|
|
2032
2033
|
LiquidityRemovedEventObject
|
|
2033
2034
|
>;
|
|
2034
2035
|
|
|
@@ -2036,12 +2037,12 @@ export type LiquidityRemovedEventFilter =
|
|
|
2036
2037
|
TypedEventFilter<LiquidityRemovedEvent>;
|
|
2037
2038
|
|
|
2038
2039
|
export interface LiquidityWithdrawalInitiatedEventObject {
|
|
2039
|
-
poolId:
|
|
2040
|
+
poolId: number;
|
|
2040
2041
|
user: string;
|
|
2041
2042
|
shareAmount: BigNumber;
|
|
2042
2043
|
}
|
|
2043
2044
|
export type LiquidityWithdrawalInitiatedEvent = TypedEvent<
|
|
2044
|
-
[
|
|
2045
|
+
[number, string, BigNumber],
|
|
2045
2046
|
LiquidityWithdrawalInitiatedEventObject
|
|
2046
2047
|
>;
|
|
2047
2048
|
|
|
@@ -2811,6 +2812,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
2811
2812
|
_fPrice: BigNumberish,
|
|
2812
2813
|
_fS2Mark: BigNumberish,
|
|
2813
2814
|
_fS3: BigNumberish,
|
|
2815
|
+
_fS2: BigNumberish,
|
|
2814
2816
|
overrides?: CallOverrides
|
|
2815
2817
|
): Promise<[BigNumber]>;
|
|
2816
2818
|
|
|
@@ -3601,6 +3603,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
3601
3603
|
_fPrice: BigNumberish,
|
|
3602
3604
|
_fS2Mark: BigNumberish,
|
|
3603
3605
|
_fS3: BigNumberish,
|
|
3606
|
+
_fS2: BigNumberish,
|
|
3604
3607
|
overrides?: CallOverrides
|
|
3605
3608
|
): Promise<BigNumber>;
|
|
3606
3609
|
|
|
@@ -4389,6 +4392,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
4389
4392
|
_fPrice: BigNumberish,
|
|
4390
4393
|
_fS2Mark: BigNumberish,
|
|
4391
4394
|
_fS3: BigNumberish,
|
|
4395
|
+
_fS2: BigNumberish,
|
|
4392
4396
|
overrides?: CallOverrides
|
|
4393
4397
|
): Promise<BigNumber>;
|
|
4394
4398
|
|
|
@@ -5030,7 +5034,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
5030
5034
|
fPnlCC?: null
|
|
5031
5035
|
): LiquidateEventFilter;
|
|
5032
5036
|
|
|
5033
|
-
"LiquidityAdded(
|
|
5037
|
+
"LiquidityAdded(uint8,address,uint256,uint256)"(
|
|
5034
5038
|
poolId?: BigNumberish | null,
|
|
5035
5039
|
user?: string | null,
|
|
5036
5040
|
tokenAmount?: null,
|
|
@@ -5067,7 +5071,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
5067
5071
|
poolId?: null
|
|
5068
5072
|
): LiquidityProvisionPausedEventFilter;
|
|
5069
5073
|
|
|
5070
|
-
"LiquidityRemoved(
|
|
5074
|
+
"LiquidityRemoved(uint8,address,uint256,uint256)"(
|
|
5071
5075
|
poolId?: BigNumberish | null,
|
|
5072
5076
|
user?: string | null,
|
|
5073
5077
|
tokenAmount?: null,
|
|
@@ -5080,7 +5084,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
5080
5084
|
shareAmount?: null
|
|
5081
5085
|
): LiquidityRemovedEventFilter;
|
|
5082
5086
|
|
|
5083
|
-
"LiquidityWithdrawalInitiated(
|
|
5087
|
+
"LiquidityWithdrawalInitiated(uint8,address,uint256)"(
|
|
5084
5088
|
poolId?: BigNumberish | null,
|
|
5085
5089
|
user?: string | null,
|
|
5086
5090
|
shareAmount?: null
|
|
@@ -5720,6 +5724,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
5720
5724
|
_fPrice: BigNumberish,
|
|
5721
5725
|
_fS2Mark: BigNumberish,
|
|
5722
5726
|
_fS3: BigNumberish,
|
|
5727
|
+
_fS2: BigNumberish,
|
|
5723
5728
|
overrides?: CallOverrides
|
|
5724
5729
|
): Promise<BigNumber>;
|
|
5725
5730
|
|
|
@@ -6507,6 +6512,7 @@ export interface IPerpetualManager extends BaseContract {
|
|
|
6507
6512
|
_fPrice: BigNumberish,
|
|
6508
6513
|
_fS2Mark: BigNumberish,
|
|
6509
6514
|
_fS3: BigNumberish,
|
|
6515
|
+
_fS2: BigNumberish,
|
|
6510
6516
|
overrides?: CallOverrides
|
|
6511
6517
|
): Promise<PopulatedTransaction>;
|
|
6512
6518
|
|
|
@@ -194,9 +194,9 @@ const _abi = [
|
|
|
194
194
|
inputs: [
|
|
195
195
|
{
|
|
196
196
|
indexed: true,
|
|
197
|
-
internalType: "
|
|
197
|
+
internalType: "uint8",
|
|
198
198
|
name: "poolId",
|
|
199
|
-
type: "
|
|
199
|
+
type: "uint8",
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
indexed: true,
|
|
@@ -281,9 +281,9 @@ const _abi = [
|
|
|
281
281
|
inputs: [
|
|
282
282
|
{
|
|
283
283
|
indexed: true,
|
|
284
|
-
internalType: "
|
|
284
|
+
internalType: "uint8",
|
|
285
285
|
name: "poolId",
|
|
286
|
-
type: "
|
|
286
|
+
type: "uint8",
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
289
|
indexed: true,
|
|
@@ -312,9 +312,9 @@ const _abi = [
|
|
|
312
312
|
inputs: [
|
|
313
313
|
{
|
|
314
314
|
indexed: true,
|
|
315
|
-
internalType: "
|
|
315
|
+
internalType: "uint8",
|
|
316
316
|
name: "poolId",
|
|
317
|
-
type: "
|
|
317
|
+
type: "uint8",
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
indexed: true,
|
|
@@ -2636,6 +2636,11 @@ const _abi = [
|
|
|
2636
2636
|
name: "_fS3",
|
|
2637
2637
|
type: "int128",
|
|
2638
2638
|
},
|
|
2639
|
+
{
|
|
2640
|
+
internalType: "int128",
|
|
2641
|
+
name: "_fS2",
|
|
2642
|
+
type: "int128",
|
|
2643
|
+
},
|
|
2639
2644
|
],
|
|
2640
2645
|
name: "getDepositAmountForLvgPosition",
|
|
2641
2646
|
outputs: [
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const D8X_SDK_VERSION = "0.8.
|
|
1
|
+
export const D8X_SDK_VERSION = "0.8.14";
|