@typus/typus-perp-sdk 1.0.2 → 1.0.4
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/src/fetch.d.ts +2 -0
- package/dist/src/fetch.js +28 -13
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +12 -2
- package/dist/src/typus_perp/admin/structs.d.ts +66 -4
- package/dist/src/typus_perp/admin/structs.js +155 -1
- package/dist/src/typus_perp/error/functions.d.ts +1 -0
- package/dist/src/typus_perp/error/functions.js +4 -0
- package/dist/src/typus_perp/escrow/structs.d.ts +1 -1
- package/dist/src/typus_perp/index.js +3 -3
- package/dist/src/typus_perp/init.js +2 -1
- package/dist/src/typus_perp/lp-pool/structs.d.ts +26 -26
- package/dist/src/typus_perp/oracle/structs.d.ts +2 -2
- package/dist/src/typus_perp/position/functions.d.ts +3 -0
- package/dist/src/typus_perp/position/functions.js +7 -1
- package/dist/src/typus_perp/position/structs.d.ts +24 -164
- package/dist/src/typus_perp/position/structs.js +19 -209
- package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
- package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
- package/dist/src/typus_perp/trading/structs.d.ts +173 -29
- package/dist/src/typus_perp/trading/structs.js +221 -1
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
- package/dist/src/typus_stake_pool/admin/structs.d.ts +4 -4
- package/dist/src/typus_stake_pool/index.js +3 -3
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +22 -22
- package/dist/src/user/history.js +94 -14
- package/dist/src/user/order.js +17 -11
- package/dist/src/user/orderWithBidReceipt.d.ts +2 -4
- package/dist/src/user/orderWithBidReceipt.js +9 -20
- package/dist/src/user/tlp.js +18 -18
- package/package.json +2 -1
|
@@ -34,7 +34,7 @@ export declare class Config implements StructClass {
|
|
|
34
34
|
static reified(): ConfigReified;
|
|
35
35
|
static get r(): reified.StructClassReified<Config, ConfigFields>;
|
|
36
36
|
static phantom(): PhantomReified<ToTypeStr<Config>>;
|
|
37
|
-
static get p(): reified.PhantomReified<"::lp_pool::Config" | "
|
|
37
|
+
static get p(): reified.PhantomReified<"::lp_pool::Config" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::Config">;
|
|
38
38
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
39
39
|
oracle_id: string;
|
|
40
40
|
liquidity_token_decimal: string;
|
|
@@ -196,7 +196,7 @@ export declare class State implements StructClass {
|
|
|
196
196
|
static reified(): StateReified;
|
|
197
197
|
static get r(): reified.StructClassReified<State, StateFields>;
|
|
198
198
|
static phantom(): PhantomReified<ToTypeStr<State>>;
|
|
199
|
-
static get p(): reified.PhantomReified<"::lp_pool::State" | "
|
|
199
|
+
static get p(): reified.PhantomReified<"::lp_pool::State" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::State">;
|
|
200
200
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
201
201
|
liquidity_amount: string;
|
|
202
202
|
value_in_usd: string;
|
|
@@ -280,7 +280,7 @@ export declare class Registry implements StructClass {
|
|
|
280
280
|
static reified(): RegistryReified;
|
|
281
281
|
static get r(): reified.StructClassReified<Registry, RegistryFields>;
|
|
282
282
|
static phantom(): PhantomReified<ToTypeStr<Registry>>;
|
|
283
|
-
static get p(): reified.PhantomReified<"::lp_pool::Registry" | "
|
|
283
|
+
static get p(): reified.PhantomReified<"::lp_pool::Registry" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::Registry">;
|
|
284
284
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
285
285
|
id: {
|
|
286
286
|
id: {
|
|
@@ -356,7 +356,7 @@ export declare class AddLiquidityTokenEvent implements StructClass {
|
|
|
356
356
|
static reified(): AddLiquidityTokenEventReified;
|
|
357
357
|
static get r(): reified.StructClassReified<AddLiquidityTokenEvent, AddLiquidityTokenEventFields>;
|
|
358
358
|
static phantom(): PhantomReified<ToTypeStr<AddLiquidityTokenEvent>>;
|
|
359
|
-
static get p(): reified.PhantomReified<"::lp_pool::AddLiquidityTokenEvent" | "
|
|
359
|
+
static get p(): reified.PhantomReified<"::lp_pool::AddLiquidityTokenEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::AddLiquidityTokenEvent">;
|
|
360
360
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
361
361
|
sender: string;
|
|
362
362
|
index: string;
|
|
@@ -606,7 +606,7 @@ export declare class BurnLpEvent implements StructClass {
|
|
|
606
606
|
static reified(): BurnLpEventReified;
|
|
607
607
|
static get r(): reified.StructClassReified<BurnLpEvent, BurnLpEventFields>;
|
|
608
608
|
static phantom(): PhantomReified<ToTypeStr<BurnLpEvent>>;
|
|
609
|
-
static get p(): reified.PhantomReified<"::lp_pool::BurnLpEvent" | "
|
|
609
|
+
static get p(): reified.PhantomReified<"::lp_pool::BurnLpEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::BurnLpEvent">;
|
|
610
610
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
611
611
|
sender: string;
|
|
612
612
|
index: string;
|
|
@@ -718,7 +718,7 @@ export declare class CompleteRemoveLiquidityTokenProcessEvent implements StructC
|
|
|
718
718
|
static reified(): CompleteRemoveLiquidityTokenProcessEventReified;
|
|
719
719
|
static get r(): reified.StructClassReified<CompleteRemoveLiquidityTokenProcessEvent, CompleteRemoveLiquidityTokenProcessEventFields>;
|
|
720
720
|
static phantom(): PhantomReified<ToTypeStr<CompleteRemoveLiquidityTokenProcessEvent>>;
|
|
721
|
-
static get p(): reified.PhantomReified<"::lp_pool::CompleteRemoveLiquidityTokenProcessEvent" | "
|
|
721
|
+
static get p(): reified.PhantomReified<"::lp_pool::CompleteRemoveLiquidityTokenProcessEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::CompleteRemoveLiquidityTokenProcessEvent">;
|
|
722
722
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
723
723
|
index: string;
|
|
724
724
|
liquidity_token: {
|
|
@@ -808,7 +808,7 @@ export declare class LiquidityPool implements StructClass {
|
|
|
808
808
|
static reified(): LiquidityPoolReified;
|
|
809
809
|
static get r(): reified.StructClassReified<LiquidityPool, LiquidityPoolFields>;
|
|
810
810
|
static phantom(): PhantomReified<ToTypeStr<LiquidityPool>>;
|
|
811
|
-
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPool" | "
|
|
811
|
+
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPool" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::LiquidityPool">;
|
|
812
812
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
813
813
|
id: {
|
|
814
814
|
id: {
|
|
@@ -1250,7 +1250,7 @@ export declare class LiquidityPoolInfo implements StructClass {
|
|
|
1250
1250
|
static reified(): LiquidityPoolInfoReified;
|
|
1251
1251
|
static get r(): reified.StructClassReified<LiquidityPoolInfo, LiquidityPoolInfoFields>;
|
|
1252
1252
|
static phantom(): PhantomReified<ToTypeStr<LiquidityPoolInfo>>;
|
|
1253
|
-
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPoolInfo" | "
|
|
1253
|
+
static get p(): reified.PhantomReified<"::lp_pool::LiquidityPoolInfo" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::LiquidityPoolInfo">;
|
|
1254
1254
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1255
1255
|
lp_token_decimal: string;
|
|
1256
1256
|
total_share_supply: string;
|
|
@@ -1316,7 +1316,7 @@ export declare class ManagerFlashRemoveLiquidityEvent implements StructClass {
|
|
|
1316
1316
|
static reified(): ManagerFlashRemoveLiquidityEventReified;
|
|
1317
1317
|
static get r(): reified.StructClassReified<ManagerFlashRemoveLiquidityEvent, ManagerFlashRemoveLiquidityEventFields>;
|
|
1318
1318
|
static phantom(): PhantomReified<ToTypeStr<ManagerFlashRemoveLiquidityEvent>>;
|
|
1319
|
-
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRemoveLiquidityEvent" | "
|
|
1319
|
+
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRemoveLiquidityEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ManagerFlashRemoveLiquidityEvent">;
|
|
1320
1320
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1321
1321
|
index: string;
|
|
1322
1322
|
liquidity_token: {
|
|
@@ -1410,7 +1410,7 @@ export declare class ManagerFlashRepayLiquidityEvent implements StructClass {
|
|
|
1410
1410
|
static reified(): ManagerFlashRepayLiquidityEventReified;
|
|
1411
1411
|
static get r(): reified.StructClassReified<ManagerFlashRepayLiquidityEvent, ManagerFlashRepayLiquidityEventFields>;
|
|
1412
1412
|
static phantom(): PhantomReified<ToTypeStr<ManagerFlashRepayLiquidityEvent>>;
|
|
1413
|
-
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRepayLiquidityEvent" | "
|
|
1413
|
+
static get p(): reified.PhantomReified<"::lp_pool::ManagerFlashRepayLiquidityEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ManagerFlashRepayLiquidityEvent">;
|
|
1414
1414
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1415
1415
|
index: string;
|
|
1416
1416
|
liquidity_token: {
|
|
@@ -1506,7 +1506,7 @@ export declare class MarginConfig implements StructClass {
|
|
|
1506
1506
|
static reified(): MarginConfigReified;
|
|
1507
1507
|
static get r(): reified.StructClassReified<MarginConfig, MarginConfigFields>;
|
|
1508
1508
|
static phantom(): PhantomReified<ToTypeStr<MarginConfig>>;
|
|
1509
|
-
static get p(): reified.PhantomReified<"::lp_pool::MarginConfig" | "
|
|
1509
|
+
static get p(): reified.PhantomReified<"::lp_pool::MarginConfig" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::MarginConfig">;
|
|
1510
1510
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1511
1511
|
basic_borrow_rate_0: string;
|
|
1512
1512
|
basic_borrow_rate_1: string;
|
|
@@ -1594,7 +1594,7 @@ export declare class MintLpEvent implements StructClass {
|
|
|
1594
1594
|
static reified(): MintLpEventReified;
|
|
1595
1595
|
static get r(): reified.StructClassReified<MintLpEvent, MintLpEventFields>;
|
|
1596
1596
|
static phantom(): PhantomReified<ToTypeStr<MintLpEvent>>;
|
|
1597
|
-
static get p(): reified.PhantomReified<"::lp_pool::MintLpEvent" | "
|
|
1597
|
+
static get p(): reified.PhantomReified<"::lp_pool::MintLpEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::MintLpEvent">;
|
|
1598
1598
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1599
1599
|
sender: string;
|
|
1600
1600
|
index: string;
|
|
@@ -1706,7 +1706,7 @@ export declare class NewLiquidityPoolEvent implements StructClass {
|
|
|
1706
1706
|
static reified(): NewLiquidityPoolEventReified;
|
|
1707
1707
|
static get r(): reified.StructClassReified<NewLiquidityPoolEvent, NewLiquidityPoolEventFields>;
|
|
1708
1708
|
static phantom(): PhantomReified<ToTypeStr<NewLiquidityPoolEvent>>;
|
|
1709
|
-
static get p(): reified.PhantomReified<"::lp_pool::NewLiquidityPoolEvent" | "
|
|
1709
|
+
static get p(): reified.PhantomReified<"::lp_pool::NewLiquidityPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::NewLiquidityPoolEvent">;
|
|
1710
1710
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1711
1711
|
sender: string;
|
|
1712
1712
|
index: string;
|
|
@@ -1792,7 +1792,7 @@ export declare class RemoveLiquidityTokenProcess implements StructClass {
|
|
|
1792
1792
|
static reified(): RemoveLiquidityTokenProcessReified;
|
|
1793
1793
|
static get r(): reified.StructClassReified<RemoveLiquidityTokenProcess, RemoveLiquidityTokenProcessFields>;
|
|
1794
1794
|
static phantom(): PhantomReified<ToTypeStr<RemoveLiquidityTokenProcess>>;
|
|
1795
|
-
static get p(): reified.PhantomReified<"::lp_pool::RemoveLiquidityTokenProcess" | "
|
|
1795
|
+
static get p(): reified.PhantomReified<"::lp_pool::RemoveLiquidityTokenProcess" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::RemoveLiquidityTokenProcess">;
|
|
1796
1796
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1797
1797
|
liquidity_token: {
|
|
1798
1798
|
name: {
|
|
@@ -1908,7 +1908,7 @@ export declare class ResumePoolEvent implements StructClass {
|
|
|
1908
1908
|
static reified(): ResumePoolEventReified;
|
|
1909
1909
|
static get r(): reified.StructClassReified<ResumePoolEvent, ResumePoolEventFields>;
|
|
1910
1910
|
static phantom(): PhantomReified<ToTypeStr<ResumePoolEvent>>;
|
|
1911
|
-
static get p(): reified.PhantomReified<"::lp_pool::ResumePoolEvent" | "
|
|
1911
|
+
static get p(): reified.PhantomReified<"::lp_pool::ResumePoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ResumePoolEvent">;
|
|
1912
1912
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1913
1913
|
sender: string;
|
|
1914
1914
|
index: string;
|
|
@@ -1966,7 +1966,7 @@ export declare class ResumeTokenPoolEvent implements StructClass {
|
|
|
1966
1966
|
static reified(): ResumeTokenPoolEventReified;
|
|
1967
1967
|
static get r(): reified.StructClassReified<ResumeTokenPoolEvent, ResumeTokenPoolEventFields>;
|
|
1968
1968
|
static phantom(): PhantomReified<ToTypeStr<ResumeTokenPoolEvent>>;
|
|
1969
|
-
static get p(): reified.PhantomReified<"::lp_pool::ResumeTokenPoolEvent" | "
|
|
1969
|
+
static get p(): reified.PhantomReified<"::lp_pool::ResumeTokenPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::ResumeTokenPoolEvent">;
|
|
1970
1970
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1971
1971
|
sender: string;
|
|
1972
1972
|
index: string;
|
|
@@ -2054,7 +2054,7 @@ export declare class SpotConfig implements StructClass {
|
|
|
2054
2054
|
static reified(): SpotConfigReified;
|
|
2055
2055
|
static get r(): reified.StructClassReified<SpotConfig, SpotConfigFields>;
|
|
2056
2056
|
static phantom(): PhantomReified<ToTypeStr<SpotConfig>>;
|
|
2057
|
-
static get p(): reified.PhantomReified<"::lp_pool::SpotConfig" | "
|
|
2057
|
+
static get p(): reified.PhantomReified<"::lp_pool::SpotConfig" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SpotConfig">;
|
|
2058
2058
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2059
2059
|
min_deposit: string;
|
|
2060
2060
|
max_capacity: string;
|
|
@@ -2138,7 +2138,7 @@ export declare class StartRemoveLiquidityTokenProcessEvent implements StructClas
|
|
|
2138
2138
|
static reified(): StartRemoveLiquidityTokenProcessEventReified;
|
|
2139
2139
|
static get r(): reified.StructClassReified<StartRemoveLiquidityTokenProcessEvent, StartRemoveLiquidityTokenProcessEventFields>;
|
|
2140
2140
|
static phantom(): PhantomReified<ToTypeStr<StartRemoveLiquidityTokenProcessEvent>>;
|
|
2141
|
-
static get p(): reified.PhantomReified<"::lp_pool::StartRemoveLiquidityTokenProcessEvent" | "
|
|
2141
|
+
static get p(): reified.PhantomReified<"::lp_pool::StartRemoveLiquidityTokenProcessEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::StartRemoveLiquidityTokenProcessEvent">;
|
|
2142
2142
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2143
2143
|
index: string;
|
|
2144
2144
|
liquidity_token: {
|
|
@@ -2208,7 +2208,7 @@ export declare class SuspendPoolEvent implements StructClass {
|
|
|
2208
2208
|
static reified(): SuspendPoolEventReified;
|
|
2209
2209
|
static get r(): reified.StructClassReified<SuspendPoolEvent, SuspendPoolEventFields>;
|
|
2210
2210
|
static phantom(): PhantomReified<ToTypeStr<SuspendPoolEvent>>;
|
|
2211
|
-
static get p(): reified.PhantomReified<"::lp_pool::SuspendPoolEvent" | "
|
|
2211
|
+
static get p(): reified.PhantomReified<"::lp_pool::SuspendPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SuspendPoolEvent">;
|
|
2212
2212
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2213
2213
|
sender: string;
|
|
2214
2214
|
index: string;
|
|
@@ -2266,7 +2266,7 @@ export declare class SuspendTokenPoolEvent implements StructClass {
|
|
|
2266
2266
|
static reified(): SuspendTokenPoolEventReified;
|
|
2267
2267
|
static get r(): reified.StructClassReified<SuspendTokenPoolEvent, SuspendTokenPoolEventFields>;
|
|
2268
2268
|
static phantom(): PhantomReified<ToTypeStr<SuspendTokenPoolEvent>>;
|
|
2269
|
-
static get p(): reified.PhantomReified<"::lp_pool::SuspendTokenPoolEvent" | "
|
|
2269
|
+
static get p(): reified.PhantomReified<"::lp_pool::SuspendTokenPoolEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SuspendTokenPoolEvent">;
|
|
2270
2270
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2271
2271
|
sender: string;
|
|
2272
2272
|
index: string;
|
|
@@ -2358,7 +2358,7 @@ export declare class SwapEvent implements StructClass {
|
|
|
2358
2358
|
static reified(): SwapEventReified;
|
|
2359
2359
|
static get r(): reified.StructClassReified<SwapEvent, SwapEventFields>;
|
|
2360
2360
|
static phantom(): PhantomReified<ToTypeStr<SwapEvent>>;
|
|
2361
|
-
static get p(): reified.PhantomReified<"::lp_pool::SwapEvent" | "
|
|
2361
|
+
static get p(): reified.PhantomReified<"::lp_pool::SwapEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::SwapEvent">;
|
|
2362
2362
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2363
2363
|
sender: string;
|
|
2364
2364
|
index: string;
|
|
@@ -2478,7 +2478,7 @@ export declare class TokenPool implements StructClass {
|
|
|
2478
2478
|
static reified(): TokenPoolReified;
|
|
2479
2479
|
static get r(): reified.StructClassReified<TokenPool, TokenPoolFields>;
|
|
2480
2480
|
static phantom(): PhantomReified<ToTypeStr<TokenPool>>;
|
|
2481
|
-
static get p(): reified.PhantomReified<"::lp_pool::TokenPool" | "
|
|
2481
|
+
static get p(): reified.PhantomReified<"::lp_pool::TokenPool" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::TokenPool">;
|
|
2482
2482
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2483
2483
|
token_type: {
|
|
2484
2484
|
name: {
|
|
@@ -2712,7 +2712,7 @@ export declare class UpdateBorrowInfoEvent implements StructClass {
|
|
|
2712
2712
|
static reified(): UpdateBorrowInfoEventReified;
|
|
2713
2713
|
static get r(): reified.StructClassReified<UpdateBorrowInfoEvent, UpdateBorrowInfoEventFields>;
|
|
2714
2714
|
static phantom(): PhantomReified<ToTypeStr<UpdateBorrowInfoEvent>>;
|
|
2715
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateBorrowInfoEvent" | "
|
|
2715
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateBorrowInfoEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateBorrowInfoEvent">;
|
|
2716
2716
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2717
2717
|
index: string;
|
|
2718
2718
|
liquidity_token_type: {
|
|
@@ -2810,7 +2810,7 @@ export declare class UpdateLiquidityValueEvent implements StructClass {
|
|
|
2810
2810
|
static reified(): UpdateLiquidityValueEventReified;
|
|
2811
2811
|
static get r(): reified.StructClassReified<UpdateLiquidityValueEvent, UpdateLiquidityValueEventFields>;
|
|
2812
2812
|
static phantom(): PhantomReified<ToTypeStr<UpdateLiquidityValueEvent>>;
|
|
2813
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateLiquidityValueEvent" | "
|
|
2813
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateLiquidityValueEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateLiquidityValueEvent">;
|
|
2814
2814
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2815
2815
|
sender: string;
|
|
2816
2816
|
index: string;
|
|
@@ -2902,7 +2902,7 @@ export declare class UpdateMarginConfigEvent implements StructClass {
|
|
|
2902
2902
|
static reified(): UpdateMarginConfigEventReified;
|
|
2903
2903
|
static get r(): reified.StructClassReified<UpdateMarginConfigEvent, UpdateMarginConfigEventFields>;
|
|
2904
2904
|
static phantom(): PhantomReified<ToTypeStr<UpdateMarginConfigEvent>>;
|
|
2905
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateMarginConfigEvent" | "
|
|
2905
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateMarginConfigEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateMarginConfigEvent">;
|
|
2906
2906
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
2907
2907
|
sender: string;
|
|
2908
2908
|
index: string;
|
|
@@ -3066,7 +3066,7 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3066
3066
|
static reified(): UpdateSpotConfigEventReified;
|
|
3067
3067
|
static get r(): reified.StructClassReified<UpdateSpotConfigEvent, UpdateSpotConfigEventFields>;
|
|
3068
3068
|
static phantom(): PhantomReified<ToTypeStr<UpdateSpotConfigEvent>>;
|
|
3069
|
-
static get p(): reified.PhantomReified<"::lp_pool::UpdateSpotConfigEvent" | "
|
|
3069
|
+
static get p(): reified.PhantomReified<"::lp_pool::UpdateSpotConfigEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::lp_pool::UpdateSpotConfigEvent">;
|
|
3070
3070
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3071
3071
|
sender: string;
|
|
3072
3072
|
index: string;
|
|
@@ -28,7 +28,7 @@ export declare class PythPrice implements StructClass {
|
|
|
28
28
|
static reified(): PythPriceReified;
|
|
29
29
|
static get r(): import("../../_framework/reified").StructClassReified<PythPrice, PythPriceFields>;
|
|
30
30
|
static phantom(): PhantomReified<ToTypeStr<PythPrice>>;
|
|
31
|
-
static get p(): PhantomReified<"::oracle::PythPrice" | "
|
|
31
|
+
static get p(): PhantomReified<"::oracle::PythPrice" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::oracle::PythPrice">;
|
|
32
32
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
33
33
|
price: string;
|
|
34
34
|
conf: string;
|
|
@@ -82,7 +82,7 @@ export declare class PythPriceInfoObject implements StructClass {
|
|
|
82
82
|
static reified(): PythPriceInfoObjectReified;
|
|
83
83
|
static get r(): import("../../_framework/reified").StructClassReified<PythPriceInfoObject, PythPriceInfoObjectFields>;
|
|
84
84
|
static phantom(): PhantomReified<ToTypeStr<PythPriceInfoObject>>;
|
|
85
|
-
static get p(): PhantomReified<"::oracle::PythPriceInfoObject" | "
|
|
85
|
+
static get p(): PhantomReified<"::oracle::PythPriceInfoObject" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::oracle::PythPriceInfoObject">;
|
|
86
86
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
87
87
|
id: {
|
|
88
88
|
bytes: string;
|
|
@@ -167,6 +167,7 @@ export interface EmitRealizedFundingEventArgs {
|
|
|
167
167
|
positionId: bigint | TransactionArgument;
|
|
168
168
|
realizedFundingSign: boolean | TransactionArgument;
|
|
169
169
|
realizedFundingFee: bigint | TransactionArgument;
|
|
170
|
+
realizedFundingFeeUsd: bigint | TransactionArgument;
|
|
170
171
|
u64Padding: Array<bigint | TransactionArgument> | TransactionArgument;
|
|
171
172
|
}
|
|
172
173
|
export declare function emitRealizedFundingEvent(tx: Transaction, args: EmitRealizedFundingEventArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -294,6 +295,8 @@ export declare function orderFilledWithBidReceiptsCollateral(tx: Transaction, ty
|
|
|
294
295
|
export interface RealizeFundingArgs {
|
|
295
296
|
position: TransactionObjectInput;
|
|
296
297
|
fundingIncome: TransactionObjectInput;
|
|
298
|
+
collateralOraclePrice: bigint | TransactionArgument;
|
|
299
|
+
collateralOraclePriceDecimal: bigint | TransactionArgument;
|
|
297
300
|
}
|
|
298
301
|
export declare function realizeFunding(tx: Transaction, typeArg: string, args: RealizeFundingArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
299
302
|
export interface ReleaseCollateralArgs {
|
|
@@ -293,6 +293,7 @@ function emitRealizedFundingEvent(tx, args) {
|
|
|
293
293
|
(0, util_1.pure)(tx, args.positionId, "u64"),
|
|
294
294
|
(0, util_1.pure)(tx, args.realizedFundingSign, "bool"),
|
|
295
295
|
(0, util_1.pure)(tx, args.realizedFundingFee, "u64"),
|
|
296
|
+
(0, util_1.pure)(tx, args.realizedFundingFeeUsd, "u64"),
|
|
296
297
|
(0, util_1.pure)(tx, args.u64Padding, "vector<u64>"),
|
|
297
298
|
],
|
|
298
299
|
});
|
|
@@ -517,7 +518,12 @@ function realizeFunding(tx, typeArg, args) {
|
|
|
517
518
|
return tx.moveCall({
|
|
518
519
|
target: "".concat(__1.PUBLISHED_AT, "::position::realize_funding"),
|
|
519
520
|
typeArguments: [typeArg],
|
|
520
|
-
arguments: [
|
|
521
|
+
arguments: [
|
|
522
|
+
(0, util_1.obj)(tx, args.position),
|
|
523
|
+
(0, util_1.obj)(tx, args.fundingIncome),
|
|
524
|
+
(0, util_1.pure)(tx, args.collateralOraclePrice, "u64"),
|
|
525
|
+
(0, util_1.pure)(tx, args.collateralOraclePriceDecimal, "u64"),
|
|
526
|
+
],
|
|
521
527
|
});
|
|
522
528
|
}
|
|
523
529
|
function releaseCollateral(tx, typeArg, args) {
|
|
@@ -31,7 +31,7 @@ export declare class OptionCollateralInfo implements StructClass {
|
|
|
31
31
|
static reified(): OptionCollateralInfoReified;
|
|
32
32
|
static get r(): reified.StructClassReified<OptionCollateralInfo, OptionCollateralInfoFields>;
|
|
33
33
|
static phantom(): PhantomReified<ToTypeStr<OptionCollateralInfo>>;
|
|
34
|
-
static get p(): reified.PhantomReified<"::position::OptionCollateralInfo" | "
|
|
34
|
+
static get p(): reified.PhantomReified<"::position::OptionCollateralInfo" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::position::OptionCollateralInfo">;
|
|
35
35
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
36
36
|
index: string;
|
|
37
37
|
bid_token: {
|
|
@@ -96,6 +96,8 @@ export interface OrderFilledEventFields {
|
|
|
96
96
|
realizedTradingFee: ToField<"u64">;
|
|
97
97
|
realizedBorrowFee: ToField<"u64">;
|
|
98
98
|
realizedFeeInUsd: ToField<"u64">;
|
|
99
|
+
realizedAmount: ToField<"u64">;
|
|
100
|
+
realizedAmountSign: ToField<"bool">;
|
|
99
101
|
u64Padding: ToField<Vector<"u64">>;
|
|
100
102
|
}
|
|
101
103
|
export type OrderFilledEventReified = Reified<OrderFilledEvent, OrderFilledEventFields>;
|
|
@@ -122,12 +124,14 @@ export declare class OrderFilledEvent implements StructClass {
|
|
|
122
124
|
readonly realizedTradingFee: ToField<"u64">;
|
|
123
125
|
readonly realizedBorrowFee: ToField<"u64">;
|
|
124
126
|
readonly realizedFeeInUsd: ToField<"u64">;
|
|
127
|
+
readonly realizedAmount: ToField<"u64">;
|
|
128
|
+
readonly realizedAmountSign: ToField<"bool">;
|
|
125
129
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
126
130
|
private constructor();
|
|
127
131
|
static reified(): OrderFilledEventReified;
|
|
128
132
|
static get r(): reified.StructClassReified<OrderFilledEvent, OrderFilledEventFields>;
|
|
129
133
|
static phantom(): PhantomReified<ToTypeStr<OrderFilledEvent>>;
|
|
130
|
-
static get p(): reified.PhantomReified<"::position::OrderFilledEvent" | "
|
|
134
|
+
static get p(): reified.PhantomReified<"::position::OrderFilledEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::position::OrderFilledEvent">;
|
|
131
135
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
132
136
|
user: string;
|
|
133
137
|
collateral_token: {
|
|
@@ -162,6 +166,8 @@ export declare class OrderFilledEvent implements StructClass {
|
|
|
162
166
|
realized_trading_fee: string;
|
|
163
167
|
realized_borrow_fee: string;
|
|
164
168
|
realized_fee_in_usd: string;
|
|
169
|
+
realized_amount: string;
|
|
170
|
+
realized_amount_sign: boolean;
|
|
165
171
|
u64_padding: string[];
|
|
166
172
|
}, {
|
|
167
173
|
user: string;
|
|
@@ -207,6 +213,8 @@ export declare class OrderFilledEvent implements StructClass {
|
|
|
207
213
|
realized_trading_fee: string | number | bigint;
|
|
208
214
|
realized_borrow_fee: string | number | bigint;
|
|
209
215
|
realized_fee_in_usd: string | number | bigint;
|
|
216
|
+
realized_amount: string | number | bigint;
|
|
217
|
+
realized_amount_sign: boolean;
|
|
210
218
|
u64_padding: Iterable<string | number | bigint> & {
|
|
211
219
|
length: number;
|
|
212
220
|
};
|
|
@@ -238,6 +246,8 @@ export declare class OrderFilledEvent implements StructClass {
|
|
|
238
246
|
realizedTradingFee: string;
|
|
239
247
|
realizedBorrowFee: string;
|
|
240
248
|
realizedFeeInUsd: string;
|
|
249
|
+
realizedAmount: string;
|
|
250
|
+
realizedAmountSign: boolean;
|
|
241
251
|
u64Padding: string[];
|
|
242
252
|
};
|
|
243
253
|
toJSON(): {
|
|
@@ -264,6 +274,8 @@ export declare class OrderFilledEvent implements StructClass {
|
|
|
264
274
|
realizedTradingFee: string;
|
|
265
275
|
realizedBorrowFee: string;
|
|
266
276
|
realizedFeeInUsd: string;
|
|
277
|
+
realizedAmount: string;
|
|
278
|
+
realizedAmountSign: boolean;
|
|
267
279
|
u64Padding: string[];
|
|
268
280
|
$typeName: string;
|
|
269
281
|
$typeArgs: [];
|
|
@@ -343,7 +355,7 @@ export declare class Position implements StructClass {
|
|
|
343
355
|
static reified(): PositionReified;
|
|
344
356
|
static get r(): reified.StructClassReified<Position, PositionFields>;
|
|
345
357
|
static phantom(): PhantomReified<ToTypeStr<Position>>;
|
|
346
|
-
static get p(): reified.PhantomReified<"::position::Position" | "
|
|
358
|
+
static get p(): reified.PhantomReified<"::position::Position" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::position::Position">;
|
|
347
359
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
348
360
|
id: {
|
|
349
361
|
id: {
|
|
@@ -560,6 +572,7 @@ export interface RealizeFundingEventFields {
|
|
|
560
572
|
positionId: ToField<"u64">;
|
|
561
573
|
realizedFundingSign: ToField<"bool">;
|
|
562
574
|
realizedFundingFee: ToField<"u64">;
|
|
575
|
+
realizedFundingFeeUsd: ToField<"u64">;
|
|
563
576
|
u64Padding: ToField<Vector<"u64">>;
|
|
564
577
|
}
|
|
565
578
|
export type RealizeFundingEventReified = Reified<RealizeFundingEvent, RealizeFundingEventFields>;
|
|
@@ -578,12 +591,13 @@ export declare class RealizeFundingEvent implements StructClass {
|
|
|
578
591
|
readonly positionId: ToField<"u64">;
|
|
579
592
|
readonly realizedFundingSign: ToField<"bool">;
|
|
580
593
|
readonly realizedFundingFee: ToField<"u64">;
|
|
594
|
+
readonly realizedFundingFeeUsd: ToField<"u64">;
|
|
581
595
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
582
596
|
private constructor();
|
|
583
597
|
static reified(): RealizeFundingEventReified;
|
|
584
598
|
static get r(): reified.StructClassReified<RealizeFundingEvent, RealizeFundingEventFields>;
|
|
585
599
|
static phantom(): PhantomReified<ToTypeStr<RealizeFundingEvent>>;
|
|
586
|
-
static get p(): reified.PhantomReified<"::position::RealizeFundingEvent" | "
|
|
600
|
+
static get p(): reified.PhantomReified<"::position::RealizeFundingEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::position::RealizeFundingEvent">;
|
|
587
601
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
588
602
|
user: string;
|
|
589
603
|
collateral_token: {
|
|
@@ -606,6 +620,7 @@ export declare class RealizeFundingEvent implements StructClass {
|
|
|
606
620
|
position_id: string;
|
|
607
621
|
realized_funding_sign: boolean;
|
|
608
622
|
realized_funding_fee: string;
|
|
623
|
+
realized_funding_fee_usd: string;
|
|
609
624
|
u64_padding: string[];
|
|
610
625
|
}, {
|
|
611
626
|
user: string;
|
|
@@ -635,6 +650,7 @@ export declare class RealizeFundingEvent implements StructClass {
|
|
|
635
650
|
position_id: string | number | bigint;
|
|
636
651
|
realized_funding_sign: boolean;
|
|
637
652
|
realized_funding_fee: string | number | bigint;
|
|
653
|
+
realized_funding_fee_usd: string | number | bigint;
|
|
638
654
|
u64_padding: Iterable<string | number | bigint> & {
|
|
639
655
|
length: number;
|
|
640
656
|
};
|
|
@@ -658,6 +674,7 @@ export declare class RealizeFundingEvent implements StructClass {
|
|
|
658
674
|
positionId: string;
|
|
659
675
|
realizedFundingSign: boolean;
|
|
660
676
|
realizedFundingFee: string;
|
|
677
|
+
realizedFundingFeeUsd: string;
|
|
661
678
|
u64Padding: string[];
|
|
662
679
|
};
|
|
663
680
|
toJSON(): {
|
|
@@ -676,6 +693,7 @@ export declare class RealizeFundingEvent implements StructClass {
|
|
|
676
693
|
positionId: string;
|
|
677
694
|
realizedFundingSign: boolean;
|
|
678
695
|
realizedFundingFee: string;
|
|
696
|
+
realizedFundingFeeUsd: string;
|
|
679
697
|
u64Padding: string[];
|
|
680
698
|
$typeName: string;
|
|
681
699
|
$typeArgs: [];
|
|
@@ -686,164 +704,6 @@ export declare class RealizeFundingEvent implements StructClass {
|
|
|
686
704
|
static fromSuiObjectData(data: SuiObjectData): RealizeFundingEvent;
|
|
687
705
|
static fetch(client: SuiClient, id: string): Promise<RealizeFundingEvent>;
|
|
688
706
|
}
|
|
689
|
-
export declare function isRealizedPnlEvent(type: string): boolean;
|
|
690
|
-
export interface RealizedPnlEventFields {
|
|
691
|
-
user: ToField<"address">;
|
|
692
|
-
collateralToken: ToField<TypeName>;
|
|
693
|
-
symbol: ToField<Symbol>;
|
|
694
|
-
positionId: ToField<"u64">;
|
|
695
|
-
positionAverageEntryPrice: ToField<"u64">;
|
|
696
|
-
filledPrice: ToField<"u64">;
|
|
697
|
-
realizedPnlSign: ToField<"bool">;
|
|
698
|
-
realizedPnl: ToField<"u64">;
|
|
699
|
-
realizedTradingFee: ToField<"u64">;
|
|
700
|
-
realizedBorrowFee: ToField<"u64">;
|
|
701
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
702
|
-
}
|
|
703
|
-
export type RealizedPnlEventReified = Reified<RealizedPnlEvent, RealizedPnlEventFields>;
|
|
704
|
-
export declare class RealizedPnlEvent implements StructClass {
|
|
705
|
-
__StructClass: true;
|
|
706
|
-
static readonly $typeName: string;
|
|
707
|
-
static readonly $numTypeParams = 0;
|
|
708
|
-
static readonly $isPhantom: readonly [];
|
|
709
|
-
readonly $typeName: string;
|
|
710
|
-
readonly $fullTypeName: `${typeof PKG_V1}::position::RealizedPnlEvent`;
|
|
711
|
-
readonly $typeArgs: [];
|
|
712
|
-
readonly $isPhantom: readonly [];
|
|
713
|
-
readonly user: ToField<"address">;
|
|
714
|
-
readonly collateralToken: ToField<TypeName>;
|
|
715
|
-
readonly symbol: ToField<Symbol>;
|
|
716
|
-
readonly positionId: ToField<"u64">;
|
|
717
|
-
readonly positionAverageEntryPrice: ToField<"u64">;
|
|
718
|
-
readonly filledPrice: ToField<"u64">;
|
|
719
|
-
readonly realizedPnlSign: ToField<"bool">;
|
|
720
|
-
readonly realizedPnl: ToField<"u64">;
|
|
721
|
-
readonly realizedTradingFee: ToField<"u64">;
|
|
722
|
-
readonly realizedBorrowFee: ToField<"u64">;
|
|
723
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
724
|
-
private constructor();
|
|
725
|
-
static reified(): RealizedPnlEventReified;
|
|
726
|
-
static get r(): reified.StructClassReified<RealizedPnlEvent, RealizedPnlEventFields>;
|
|
727
|
-
static phantom(): PhantomReified<ToTypeStr<RealizedPnlEvent>>;
|
|
728
|
-
static get p(): reified.PhantomReified<"::position::RealizedPnlEvent" | "0xac3919fd321e4c397a5c17d0cc01ed150a5e0f7d8c0f2b728fde3f5d719a2f0e::position::RealizedPnlEvent">;
|
|
729
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
730
|
-
user: string;
|
|
731
|
-
collateral_token: {
|
|
732
|
-
name: {
|
|
733
|
-
bytes: number[];
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
symbol: {
|
|
737
|
-
base_token: {
|
|
738
|
-
name: {
|
|
739
|
-
bytes: number[];
|
|
740
|
-
};
|
|
741
|
-
};
|
|
742
|
-
quote_token: {
|
|
743
|
-
name: {
|
|
744
|
-
bytes: number[];
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
position_id: string;
|
|
749
|
-
position_average_entry_price: string;
|
|
750
|
-
filled_price: string;
|
|
751
|
-
realized_pnl_sign: boolean;
|
|
752
|
-
realized_pnl: string;
|
|
753
|
-
realized_trading_fee: string;
|
|
754
|
-
realized_borrow_fee: string;
|
|
755
|
-
u64_padding: string[];
|
|
756
|
-
}, {
|
|
757
|
-
user: string;
|
|
758
|
-
collateral_token: {
|
|
759
|
-
name: {
|
|
760
|
-
bytes: Iterable<number> & {
|
|
761
|
-
length: number;
|
|
762
|
-
};
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
symbol: {
|
|
766
|
-
base_token: {
|
|
767
|
-
name: {
|
|
768
|
-
bytes: Iterable<number> & {
|
|
769
|
-
length: number;
|
|
770
|
-
};
|
|
771
|
-
};
|
|
772
|
-
};
|
|
773
|
-
quote_token: {
|
|
774
|
-
name: {
|
|
775
|
-
bytes: Iterable<number> & {
|
|
776
|
-
length: number;
|
|
777
|
-
};
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
};
|
|
781
|
-
position_id: string | number | bigint;
|
|
782
|
-
position_average_entry_price: string | number | bigint;
|
|
783
|
-
filled_price: string | number | bigint;
|
|
784
|
-
realized_pnl_sign: boolean;
|
|
785
|
-
realized_pnl: string | number | bigint;
|
|
786
|
-
realized_trading_fee: string | number | bigint;
|
|
787
|
-
realized_borrow_fee: string | number | bigint;
|
|
788
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
789
|
-
length: number;
|
|
790
|
-
};
|
|
791
|
-
}>;
|
|
792
|
-
static fromFields(fields: Record<string, any>): RealizedPnlEvent;
|
|
793
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RealizedPnlEvent;
|
|
794
|
-
static fromBcs(data: Uint8Array): RealizedPnlEvent;
|
|
795
|
-
toJSONField(): {
|
|
796
|
-
user: string;
|
|
797
|
-
collateralToken: {
|
|
798
|
-
name: string;
|
|
799
|
-
};
|
|
800
|
-
symbol: {
|
|
801
|
-
baseToken: {
|
|
802
|
-
name: string;
|
|
803
|
-
};
|
|
804
|
-
quoteToken: {
|
|
805
|
-
name: string;
|
|
806
|
-
};
|
|
807
|
-
};
|
|
808
|
-
positionId: string;
|
|
809
|
-
positionAverageEntryPrice: string;
|
|
810
|
-
filledPrice: string;
|
|
811
|
-
realizedPnlSign: boolean;
|
|
812
|
-
realizedPnl: string;
|
|
813
|
-
realizedTradingFee: string;
|
|
814
|
-
realizedBorrowFee: string;
|
|
815
|
-
u64Padding: string[];
|
|
816
|
-
};
|
|
817
|
-
toJSON(): {
|
|
818
|
-
user: string;
|
|
819
|
-
collateralToken: {
|
|
820
|
-
name: string;
|
|
821
|
-
};
|
|
822
|
-
symbol: {
|
|
823
|
-
baseToken: {
|
|
824
|
-
name: string;
|
|
825
|
-
};
|
|
826
|
-
quoteToken: {
|
|
827
|
-
name: string;
|
|
828
|
-
};
|
|
829
|
-
};
|
|
830
|
-
positionId: string;
|
|
831
|
-
positionAverageEntryPrice: string;
|
|
832
|
-
filledPrice: string;
|
|
833
|
-
realizedPnlSign: boolean;
|
|
834
|
-
realizedPnl: string;
|
|
835
|
-
realizedTradingFee: string;
|
|
836
|
-
realizedBorrowFee: string;
|
|
837
|
-
u64Padding: string[];
|
|
838
|
-
$typeName: string;
|
|
839
|
-
$typeArgs: [];
|
|
840
|
-
};
|
|
841
|
-
static fromJSONField(field: any): RealizedPnlEvent;
|
|
842
|
-
static fromJSON(json: Record<string, any>): RealizedPnlEvent;
|
|
843
|
-
static fromSuiParsedData(content: SuiParsedData): RealizedPnlEvent;
|
|
844
|
-
static fromSuiObjectData(data: SuiObjectData): RealizedPnlEvent;
|
|
845
|
-
static fetch(client: SuiClient, id: string): Promise<RealizedPnlEvent>;
|
|
846
|
-
}
|
|
847
707
|
export declare function isRemovePositionEvent(type: string): boolean;
|
|
848
708
|
export interface RemovePositionEventFields {
|
|
849
709
|
user: ToField<"address">;
|
|
@@ -879,7 +739,7 @@ export declare class RemovePositionEvent implements StructClass {
|
|
|
879
739
|
static reified(): RemovePositionEventReified;
|
|
880
740
|
static get r(): reified.StructClassReified<RemovePositionEvent, RemovePositionEventFields>;
|
|
881
741
|
static phantom(): PhantomReified<ToTypeStr<RemovePositionEvent>>;
|
|
882
|
-
static get p(): reified.PhantomReified<"::position::RemovePositionEvent" | "
|
|
742
|
+
static get p(): reified.PhantomReified<"::position::RemovePositionEvent" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::position::RemovePositionEvent">;
|
|
883
743
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
884
744
|
user: string;
|
|
885
745
|
collateral_token: {
|
|
@@ -1045,7 +905,7 @@ export declare class TradingOrder implements StructClass {
|
|
|
1045
905
|
static reified(): TradingOrderReified;
|
|
1046
906
|
static get r(): reified.StructClassReified<TradingOrder, TradingOrderFields>;
|
|
1047
907
|
static phantom(): PhantomReified<ToTypeStr<TradingOrder>>;
|
|
1048
|
-
static get p(): reified.PhantomReified<"::position::TradingOrder" | "
|
|
908
|
+
static get p(): reified.PhantomReified<"::position::TradingOrder" | "0x7c19f81d9d411e78305d7af8dad25317c56bb449fede8a78b6021232478f0509::position::TradingOrder">;
|
|
1049
909
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1050
910
|
id: {
|
|
1051
911
|
id: {
|