@typus/typus-perp-sdk 1.0.61-ut-upgrade → 1.0.62
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 +0 -6
- package/dist/src/fetch.js +0 -46
- package/dist/src/index.js +4 -6
- package/dist/src/typus_perp/error/functions.d.ts +0 -2
- package/dist/src/typus_perp/error/functions.js +0 -10
- package/dist/src/typus_perp/lp-pool/functions.d.ts +31 -44
- package/dist/src/typus_perp/lp-pool/functions.js +56 -69
- package/dist/src/typus_perp/lp-pool/structs.d.ts +210 -161
- package/dist/src/typus_perp/lp-pool/structs.js +284 -384
- package/dist/src/typus_perp/trading/functions.d.ts +0 -30
- package/dist/src/typus_perp/trading/functions.js +0 -47
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -9
- package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -20
- package/dist/src/user/tlp.d.ts +9 -16
- package/dist/src/user/tlp.js +61 -121
- package/package.json +2 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as reified from "../../_framework/reified";
|
|
2
2
|
import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
|
|
3
|
-
import { Balance } from "../../_dependencies/source/0x2/balance/structs";
|
|
4
3
|
import { UID } from "../../_dependencies/source/0x2/object/structs";
|
|
5
|
-
import { PhantomReified,
|
|
4
|
+
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
|
|
6
5
|
import { FieldsWithTypes } from "../../_framework/util";
|
|
7
6
|
import { Vector } from "../../_framework/vector";
|
|
8
7
|
import { UnsettledBidReceipt } from "../escrow/structs";
|
|
@@ -620,75 +619,117 @@ export declare class Config implements StructClass {
|
|
|
620
619
|
static fromSuiObjectData(data: SuiObjectData): Config;
|
|
621
620
|
static fetch(client: SuiClient, id: string): Promise<Config>;
|
|
622
621
|
}
|
|
623
|
-
export declare function
|
|
624
|
-
export interface
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
622
|
+
export declare function isDepositLendingEvent(type: string): boolean;
|
|
623
|
+
export interface DepositLendingEventFields {
|
|
624
|
+
index: ToField<"u64">;
|
|
625
|
+
lendingIndex: ToField<"u64">;
|
|
626
|
+
cTokenType: ToField<TypeName>;
|
|
627
|
+
depositAmount: ToField<"u64">;
|
|
628
|
+
mintedMarketCoinAmount: ToField<"u64">;
|
|
629
|
+
latestLendingAmount: ToField<"u64">;
|
|
630
|
+
latestMarketCoinAmount: ToField<"u64">;
|
|
631
|
+
latestReservedAmount: ToField<"u64">;
|
|
632
|
+
latestLiquidityAmount: ToField<"u64">;
|
|
628
633
|
u64Padding: ToField<Vector<"u64">>;
|
|
629
634
|
}
|
|
630
|
-
export type
|
|
631
|
-
export declare class
|
|
635
|
+
export type DepositLendingEventReified = Reified<DepositLendingEvent, DepositLendingEventFields>;
|
|
636
|
+
export declare class DepositLendingEvent implements StructClass {
|
|
632
637
|
__StructClass: true;
|
|
633
638
|
static readonly $typeName: string;
|
|
634
|
-
static readonly $numTypeParams =
|
|
635
|
-
static readonly $isPhantom: readonly [
|
|
639
|
+
static readonly $numTypeParams = 0;
|
|
640
|
+
static readonly $isPhantom: readonly [];
|
|
636
641
|
readonly $typeName: string;
|
|
637
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::
|
|
638
|
-
readonly $typeArgs: [
|
|
639
|
-
readonly $isPhantom: readonly [
|
|
640
|
-
readonly
|
|
641
|
-
readonly
|
|
642
|
-
readonly
|
|
642
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::DepositLendingEvent`;
|
|
643
|
+
readonly $typeArgs: [];
|
|
644
|
+
readonly $isPhantom: readonly [];
|
|
645
|
+
readonly index: ToField<"u64">;
|
|
646
|
+
readonly lendingIndex: ToField<"u64">;
|
|
647
|
+
readonly cTokenType: ToField<TypeName>;
|
|
648
|
+
readonly depositAmount: ToField<"u64">;
|
|
649
|
+
readonly mintedMarketCoinAmount: ToField<"u64">;
|
|
650
|
+
readonly latestLendingAmount: ToField<"u64">;
|
|
651
|
+
readonly latestMarketCoinAmount: ToField<"u64">;
|
|
652
|
+
readonly latestReservedAmount: ToField<"u64">;
|
|
653
|
+
readonly latestLiquidityAmount: ToField<"u64">;
|
|
643
654
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
644
655
|
private constructor();
|
|
645
|
-
static reified
|
|
646
|
-
static get r():
|
|
647
|
-
static phantom
|
|
648
|
-
static get p():
|
|
656
|
+
static reified(): DepositLendingEventReified;
|
|
657
|
+
static get r(): reified.StructClassReified<DepositLendingEvent, DepositLendingEventFields>;
|
|
658
|
+
static phantom(): PhantomReified<ToTypeStr<DepositLendingEvent>>;
|
|
659
|
+
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::DepositLendingEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::DepositLendingEvent">;
|
|
649
660
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
650
|
-
|
|
651
|
-
|
|
661
|
+
index: string;
|
|
662
|
+
lending_index: string;
|
|
663
|
+
c_token_type: {
|
|
664
|
+
name: {
|
|
665
|
+
bytes: number[];
|
|
666
|
+
};
|
|
652
667
|
};
|
|
653
|
-
|
|
654
|
-
|
|
668
|
+
deposit_amount: string;
|
|
669
|
+
minted_market_coin_amount: string;
|
|
670
|
+
latest_lending_amount: string;
|
|
671
|
+
latest_market_coin_amount: string;
|
|
672
|
+
latest_reserved_amount: string;
|
|
673
|
+
latest_liquidity_amount: string;
|
|
655
674
|
u64_padding: string[];
|
|
656
675
|
}, {
|
|
657
|
-
|
|
658
|
-
|
|
676
|
+
index: string | number | bigint;
|
|
677
|
+
lending_index: string | number | bigint;
|
|
678
|
+
c_token_type: {
|
|
679
|
+
name: {
|
|
680
|
+
bytes: Iterable<number> & {
|
|
681
|
+
length: number;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
659
684
|
};
|
|
660
|
-
|
|
661
|
-
|
|
685
|
+
deposit_amount: string | number | bigint;
|
|
686
|
+
minted_market_coin_amount: string | number | bigint;
|
|
687
|
+
latest_lending_amount: string | number | bigint;
|
|
688
|
+
latest_market_coin_amount: string | number | bigint;
|
|
689
|
+
latest_reserved_amount: string | number | bigint;
|
|
690
|
+
latest_liquidity_amount: string | number | bigint;
|
|
662
691
|
u64_padding: Iterable<string | number | bigint> & {
|
|
663
692
|
length: number;
|
|
664
693
|
};
|
|
665
694
|
}>;
|
|
666
|
-
static fromFields
|
|
667
|
-
static fromFieldsWithTypes
|
|
668
|
-
static fromBcs
|
|
695
|
+
static fromFields(fields: Record<string, any>): DepositLendingEvent;
|
|
696
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DepositLendingEvent;
|
|
697
|
+
static fromBcs(data: Uint8Array): DepositLendingEvent;
|
|
669
698
|
toJSONField(): {
|
|
670
|
-
|
|
671
|
-
|
|
699
|
+
index: string;
|
|
700
|
+
lendingIndex: string;
|
|
701
|
+
cTokenType: {
|
|
702
|
+
name: string;
|
|
672
703
|
};
|
|
673
|
-
|
|
674
|
-
|
|
704
|
+
depositAmount: string;
|
|
705
|
+
mintedMarketCoinAmount: string;
|
|
706
|
+
latestLendingAmount: string;
|
|
707
|
+
latestMarketCoinAmount: string;
|
|
708
|
+
latestReservedAmount: string;
|
|
709
|
+
latestLiquidityAmount: string;
|
|
675
710
|
u64Padding: string[];
|
|
676
711
|
};
|
|
677
712
|
toJSON(): {
|
|
678
|
-
|
|
679
|
-
|
|
713
|
+
index: string;
|
|
714
|
+
lendingIndex: string;
|
|
715
|
+
cTokenType: {
|
|
716
|
+
name: string;
|
|
680
717
|
};
|
|
681
|
-
|
|
682
|
-
|
|
718
|
+
depositAmount: string;
|
|
719
|
+
mintedMarketCoinAmount: string;
|
|
720
|
+
latestLendingAmount: string;
|
|
721
|
+
latestMarketCoinAmount: string;
|
|
722
|
+
latestReservedAmount: string;
|
|
723
|
+
latestLiquidityAmount: string;
|
|
683
724
|
u64Padding: string[];
|
|
684
725
|
$typeName: string;
|
|
685
|
-
$typeArgs: [
|
|
726
|
+
$typeArgs: [];
|
|
686
727
|
};
|
|
687
|
-
static fromJSONField
|
|
688
|
-
static fromJSON
|
|
689
|
-
static fromSuiParsedData
|
|
690
|
-
static fromSuiObjectData
|
|
691
|
-
static fetch
|
|
728
|
+
static fromJSONField(field: any): DepositLendingEvent;
|
|
729
|
+
static fromJSON(json: Record<string, any>): DepositLendingEvent;
|
|
730
|
+
static fromSuiParsedData(content: SuiParsedData): DepositLendingEvent;
|
|
731
|
+
static fromSuiObjectData(data: SuiObjectData): DepositLendingEvent;
|
|
732
|
+
static fetch(client: SuiClient, id: string): Promise<DepositLendingEvent>;
|
|
692
733
|
}
|
|
693
734
|
export declare function isLiquidityPool(type: string): boolean;
|
|
694
735
|
export interface LiquidityPoolFields {
|
|
@@ -1688,86 +1729,6 @@ export declare class NewLiquidityPoolEvent implements StructClass {
|
|
|
1688
1729
|
static fromSuiObjectData(data: SuiObjectData): NewLiquidityPoolEvent;
|
|
1689
1730
|
static fetch(client: SuiClient, id: string): Promise<NewLiquidityPoolEvent>;
|
|
1690
1731
|
}
|
|
1691
|
-
export declare function isRedeemEvent(type: string): boolean;
|
|
1692
|
-
export interface RedeemEventFields {
|
|
1693
|
-
sender: ToField<"address">;
|
|
1694
|
-
index: ToField<"u64">;
|
|
1695
|
-
share: ToField<"u64">;
|
|
1696
|
-
sharePrice: ToField<"u64">;
|
|
1697
|
-
timestampTsMs: ToField<"u64">;
|
|
1698
|
-
unlockTsMs: ToField<"u64">;
|
|
1699
|
-
u64Padding: ToField<Vector<"u64">>;
|
|
1700
|
-
}
|
|
1701
|
-
export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
|
|
1702
|
-
export declare class RedeemEvent implements StructClass {
|
|
1703
|
-
__StructClass: true;
|
|
1704
|
-
static readonly $typeName: string;
|
|
1705
|
-
static readonly $numTypeParams = 0;
|
|
1706
|
-
static readonly $isPhantom: readonly [];
|
|
1707
|
-
readonly $typeName: string;
|
|
1708
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RedeemEvent`;
|
|
1709
|
-
readonly $typeArgs: [];
|
|
1710
|
-
readonly $isPhantom: readonly [];
|
|
1711
|
-
readonly sender: ToField<"address">;
|
|
1712
|
-
readonly index: ToField<"u64">;
|
|
1713
|
-
readonly share: ToField<"u64">;
|
|
1714
|
-
readonly sharePrice: ToField<"u64">;
|
|
1715
|
-
readonly timestampTsMs: ToField<"u64">;
|
|
1716
|
-
readonly unlockTsMs: ToField<"u64">;
|
|
1717
|
-
readonly u64Padding: ToField<Vector<"u64">>;
|
|
1718
|
-
private constructor();
|
|
1719
|
-
static reified(): RedeemEventReified;
|
|
1720
|
-
static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
|
|
1721
|
-
static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
|
|
1722
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RedeemEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RedeemEvent">;
|
|
1723
|
-
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
1724
|
-
sender: string;
|
|
1725
|
-
index: string;
|
|
1726
|
-
share: string;
|
|
1727
|
-
share_price: string;
|
|
1728
|
-
timestamp_ts_ms: string;
|
|
1729
|
-
unlock_ts_ms: string;
|
|
1730
|
-
u64_padding: string[];
|
|
1731
|
-
}, {
|
|
1732
|
-
sender: string;
|
|
1733
|
-
index: string | number | bigint;
|
|
1734
|
-
share: string | number | bigint;
|
|
1735
|
-
share_price: string | number | bigint;
|
|
1736
|
-
timestamp_ts_ms: string | number | bigint;
|
|
1737
|
-
unlock_ts_ms: string | number | bigint;
|
|
1738
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
1739
|
-
length: number;
|
|
1740
|
-
};
|
|
1741
|
-
}>;
|
|
1742
|
-
static fromFields(fields: Record<string, any>): RedeemEvent;
|
|
1743
|
-
static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
|
|
1744
|
-
static fromBcs(data: Uint8Array): RedeemEvent;
|
|
1745
|
-
toJSONField(): {
|
|
1746
|
-
sender: string;
|
|
1747
|
-
index: string;
|
|
1748
|
-
share: string;
|
|
1749
|
-
sharePrice: string;
|
|
1750
|
-
timestampTsMs: string;
|
|
1751
|
-
unlockTsMs: string;
|
|
1752
|
-
u64Padding: string[];
|
|
1753
|
-
};
|
|
1754
|
-
toJSON(): {
|
|
1755
|
-
sender: string;
|
|
1756
|
-
index: string;
|
|
1757
|
-
share: string;
|
|
1758
|
-
sharePrice: string;
|
|
1759
|
-
timestampTsMs: string;
|
|
1760
|
-
unlockTsMs: string;
|
|
1761
|
-
u64Padding: string[];
|
|
1762
|
-
$typeName: string;
|
|
1763
|
-
$typeArgs: [];
|
|
1764
|
-
};
|
|
1765
|
-
static fromJSONField(field: any): RedeemEvent;
|
|
1766
|
-
static fromJSON(json: Record<string, any>): RedeemEvent;
|
|
1767
|
-
static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
|
|
1768
|
-
static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
|
|
1769
|
-
static fetch(client: SuiClient, id: string): Promise<RedeemEvent>;
|
|
1770
|
-
}
|
|
1771
1732
|
export declare function isRegistry(type: string): boolean;
|
|
1772
1733
|
export interface RegistryFields {
|
|
1773
1734
|
id: ToField<UID>;
|
|
@@ -3424,71 +3385,159 @@ export declare class UpdateSpotConfigEvent implements StructClass {
|
|
|
3424
3385
|
static fromSuiObjectData(data: SuiObjectData): UpdateSpotConfigEvent;
|
|
3425
3386
|
static fetch(client: SuiClient, id: string): Promise<UpdateSpotConfigEvent>;
|
|
3426
3387
|
}
|
|
3427
|
-
export declare function
|
|
3428
|
-
export interface
|
|
3429
|
-
sender: ToField<"address">;
|
|
3388
|
+
export declare function isWithdrawLendingEvent(type: string): boolean;
|
|
3389
|
+
export interface WithdrawLendingEventFields {
|
|
3430
3390
|
index: ToField<"u64">;
|
|
3431
|
-
|
|
3432
|
-
|
|
3391
|
+
lendingIndex: ToField<"u64">;
|
|
3392
|
+
cTokenType: ToField<TypeName>;
|
|
3393
|
+
rTokenType: ToField<TypeName>;
|
|
3394
|
+
withdrawAmount: ToField<"u64">;
|
|
3395
|
+
withdrawnCollateralAmount: ToField<"u64">;
|
|
3396
|
+
latestLendingAmount: ToField<"u64">;
|
|
3397
|
+
latestMarketCoinAmount: ToField<"u64">;
|
|
3398
|
+
latestReservedAmount: ToField<"u64">;
|
|
3399
|
+
latestLiquidityAmount: ToField<"u64">;
|
|
3400
|
+
lendingInterest: ToField<"u64">;
|
|
3401
|
+
protocolShare: ToField<"u64">;
|
|
3402
|
+
lendingReward: ToField<"u64">;
|
|
3403
|
+
rewardProtocolShare: ToField<"u64">;
|
|
3433
3404
|
u64Padding: ToField<Vector<"u64">>;
|
|
3434
3405
|
}
|
|
3435
|
-
export type
|
|
3436
|
-
export declare class
|
|
3406
|
+
export type WithdrawLendingEventReified = Reified<WithdrawLendingEvent, WithdrawLendingEventFields>;
|
|
3407
|
+
export declare class WithdrawLendingEvent implements StructClass {
|
|
3437
3408
|
__StructClass: true;
|
|
3438
3409
|
static readonly $typeName: string;
|
|
3439
3410
|
static readonly $numTypeParams = 0;
|
|
3440
3411
|
static readonly $isPhantom: readonly [];
|
|
3441
3412
|
readonly $typeName: string;
|
|
3442
|
-
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::
|
|
3413
|
+
readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::WithdrawLendingEvent`;
|
|
3443
3414
|
readonly $typeArgs: [];
|
|
3444
3415
|
readonly $isPhantom: readonly [];
|
|
3445
|
-
readonly sender: ToField<"address">;
|
|
3446
3416
|
readonly index: ToField<"u64">;
|
|
3447
|
-
readonly
|
|
3448
|
-
readonly
|
|
3417
|
+
readonly lendingIndex: ToField<"u64">;
|
|
3418
|
+
readonly cTokenType: ToField<TypeName>;
|
|
3419
|
+
readonly rTokenType: ToField<TypeName>;
|
|
3420
|
+
readonly withdrawAmount: ToField<"u64">;
|
|
3421
|
+
readonly withdrawnCollateralAmount: ToField<"u64">;
|
|
3422
|
+
readonly latestLendingAmount: ToField<"u64">;
|
|
3423
|
+
readonly latestMarketCoinAmount: ToField<"u64">;
|
|
3424
|
+
readonly latestReservedAmount: ToField<"u64">;
|
|
3425
|
+
readonly latestLiquidityAmount: ToField<"u64">;
|
|
3426
|
+
readonly lendingInterest: ToField<"u64">;
|
|
3427
|
+
readonly protocolShare: ToField<"u64">;
|
|
3428
|
+
readonly lendingReward: ToField<"u64">;
|
|
3429
|
+
readonly rewardProtocolShare: ToField<"u64">;
|
|
3449
3430
|
readonly u64Padding: ToField<Vector<"u64">>;
|
|
3450
3431
|
private constructor();
|
|
3451
|
-
static reified():
|
|
3452
|
-
static get r(): reified.StructClassReified<
|
|
3453
|
-
static phantom(): PhantomReified<ToTypeStr<
|
|
3454
|
-
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::
|
|
3432
|
+
static reified(): WithdrawLendingEventReified;
|
|
3433
|
+
static get r(): reified.StructClassReified<WithdrawLendingEvent, WithdrawLendingEventFields>;
|
|
3434
|
+
static phantom(): PhantomReified<ToTypeStr<WithdrawLendingEvent>>;
|
|
3435
|
+
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::WithdrawLendingEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::WithdrawLendingEvent">;
|
|
3455
3436
|
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
3456
|
-
sender: string;
|
|
3457
3437
|
index: string;
|
|
3458
|
-
|
|
3459
|
-
|
|
3438
|
+
lending_index: string;
|
|
3439
|
+
c_token_type: {
|
|
3440
|
+
name: {
|
|
3441
|
+
bytes: number[];
|
|
3442
|
+
};
|
|
3443
|
+
};
|
|
3444
|
+
r_token_type: {
|
|
3445
|
+
name: {
|
|
3446
|
+
bytes: number[];
|
|
3447
|
+
};
|
|
3448
|
+
};
|
|
3449
|
+
withdraw_amount: string;
|
|
3450
|
+
withdrawn_collateral_amount: string;
|
|
3451
|
+
latest_lending_amount: string;
|
|
3452
|
+
latest_market_coin_amount: string;
|
|
3453
|
+
latest_reserved_amount: string;
|
|
3454
|
+
latest_liquidity_amount: string;
|
|
3455
|
+
lending_interest: string;
|
|
3456
|
+
protocol_share: string;
|
|
3457
|
+
lending_reward: string;
|
|
3458
|
+
reward_protocol_share: string;
|
|
3460
3459
|
u64_padding: string[];
|
|
3461
3460
|
}, {
|
|
3462
|
-
sender: string;
|
|
3463
3461
|
index: string | number | bigint;
|
|
3464
|
-
|
|
3465
|
-
|
|
3462
|
+
lending_index: string | number | bigint;
|
|
3463
|
+
c_token_type: {
|
|
3464
|
+
name: {
|
|
3465
|
+
bytes: Iterable<number> & {
|
|
3466
|
+
length: number;
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
};
|
|
3470
|
+
r_token_type: {
|
|
3471
|
+
name: {
|
|
3472
|
+
bytes: Iterable<number> & {
|
|
3473
|
+
length: number;
|
|
3474
|
+
};
|
|
3475
|
+
};
|
|
3476
|
+
};
|
|
3477
|
+
withdraw_amount: string | number | bigint;
|
|
3478
|
+
withdrawn_collateral_amount: string | number | bigint;
|
|
3479
|
+
latest_lending_amount: string | number | bigint;
|
|
3480
|
+
latest_market_coin_amount: string | number | bigint;
|
|
3481
|
+
latest_reserved_amount: string | number | bigint;
|
|
3482
|
+
latest_liquidity_amount: string | number | bigint;
|
|
3483
|
+
lending_interest: string | number | bigint;
|
|
3484
|
+
protocol_share: string | number | bigint;
|
|
3485
|
+
lending_reward: string | number | bigint;
|
|
3486
|
+
reward_protocol_share: string | number | bigint;
|
|
3466
3487
|
u64_padding: Iterable<string | number | bigint> & {
|
|
3467
3488
|
length: number;
|
|
3468
3489
|
};
|
|
3469
3490
|
}>;
|
|
3470
|
-
static fromFields(fields: Record<string, any>):
|
|
3471
|
-
static fromFieldsWithTypes(item: FieldsWithTypes):
|
|
3472
|
-
static fromBcs(data: Uint8Array):
|
|
3491
|
+
static fromFields(fields: Record<string, any>): WithdrawLendingEvent;
|
|
3492
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): WithdrawLendingEvent;
|
|
3493
|
+
static fromBcs(data: Uint8Array): WithdrawLendingEvent;
|
|
3473
3494
|
toJSONField(): {
|
|
3474
|
-
sender: string;
|
|
3475
3495
|
index: string;
|
|
3476
|
-
|
|
3477
|
-
|
|
3496
|
+
lendingIndex: string;
|
|
3497
|
+
cTokenType: {
|
|
3498
|
+
name: string;
|
|
3499
|
+
};
|
|
3500
|
+
rTokenType: {
|
|
3501
|
+
name: string;
|
|
3502
|
+
};
|
|
3503
|
+
withdrawAmount: string;
|
|
3504
|
+
withdrawnCollateralAmount: string;
|
|
3505
|
+
latestLendingAmount: string;
|
|
3506
|
+
latestMarketCoinAmount: string;
|
|
3507
|
+
latestReservedAmount: string;
|
|
3508
|
+
latestLiquidityAmount: string;
|
|
3509
|
+
lendingInterest: string;
|
|
3510
|
+
protocolShare: string;
|
|
3511
|
+
lendingReward: string;
|
|
3512
|
+
rewardProtocolShare: string;
|
|
3478
3513
|
u64Padding: string[];
|
|
3479
3514
|
};
|
|
3480
3515
|
toJSON(): {
|
|
3481
|
-
sender: string;
|
|
3482
3516
|
index: string;
|
|
3483
|
-
|
|
3484
|
-
|
|
3517
|
+
lendingIndex: string;
|
|
3518
|
+
cTokenType: {
|
|
3519
|
+
name: string;
|
|
3520
|
+
};
|
|
3521
|
+
rTokenType: {
|
|
3522
|
+
name: string;
|
|
3523
|
+
};
|
|
3524
|
+
withdrawAmount: string;
|
|
3525
|
+
withdrawnCollateralAmount: string;
|
|
3526
|
+
latestLendingAmount: string;
|
|
3527
|
+
latestMarketCoinAmount: string;
|
|
3528
|
+
latestReservedAmount: string;
|
|
3529
|
+
latestLiquidityAmount: string;
|
|
3530
|
+
lendingInterest: string;
|
|
3531
|
+
protocolShare: string;
|
|
3532
|
+
lendingReward: string;
|
|
3533
|
+
rewardProtocolShare: string;
|
|
3485
3534
|
u64Padding: string[];
|
|
3486
3535
|
$typeName: string;
|
|
3487
3536
|
$typeArgs: [];
|
|
3488
3537
|
};
|
|
3489
|
-
static fromJSONField(field: any):
|
|
3490
|
-
static fromJSON(json: Record<string, any>):
|
|
3491
|
-
static fromSuiParsedData(content: SuiParsedData):
|
|
3492
|
-
static fromSuiObjectData(data: SuiObjectData):
|
|
3493
|
-
static fetch(client: SuiClient, id: string): Promise<
|
|
3538
|
+
static fromJSONField(field: any): WithdrawLendingEvent;
|
|
3539
|
+
static fromJSON(json: Record<string, any>): WithdrawLendingEvent;
|
|
3540
|
+
static fromSuiParsedData(content: SuiParsedData): WithdrawLendingEvent;
|
|
3541
|
+
static fromSuiObjectData(data: SuiObjectData): WithdrawLendingEvent;
|
|
3542
|
+
static fetch(client: SuiClient, id: string): Promise<WithdrawLendingEvent>;
|
|
3494
3543
|
}
|