@typus/typus-perp-sdk 1.1.28 → 1.1.29-codegen-test
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/_dependencies/source/0x1/ascii/structs.d.ts +7 -11
- package/dist/src/_dependencies/source/0x1/option/structs.d.ts +4 -6
- package/dist/src/_dependencies/source/0x1/string/structs.d.ts +4 -6
- package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +6 -10
- package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +8 -15
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +6 -10
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +85 -139
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +27 -48
- package/dist/src/_dependencies/source/0x2/object/structs.d.ts +8 -14
- package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +8 -15
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +3 -5
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +8 -15
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +10 -19
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +90 -118
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +70 -92
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +6 -10
- package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +13 -18
- package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +4 -6
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +86 -153
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +21 -38
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +34 -65
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +58 -101
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +36 -61
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +125 -224
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +31 -56
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +26 -46
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +186 -300
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +43 -78
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +48 -82
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +18 -33
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +65 -118
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +10 -19
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +133 -253
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +3 -5
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +26 -46
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +433 -713
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +69 -125
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +7 -12
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +87 -155
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +10 -19
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +183 -326
- package/dist/src/_framework/util.d.ts +1 -1
- package/dist/src/_framework/vector.d.ts +12 -5
- package/dist/src/index.js +16 -15
- package/dist/src/typus_perp/admin/structs.d.ts +85 -147
- package/dist/src/typus_perp/competition/structs.d.ts +16 -28
- package/dist/src/typus_perp/escrow/structs.d.ts +20 -32
- package/dist/src/typus_perp/lp-pool/structs.d.ts +736 -1299
- package/dist/src/typus_perp/position/structs.d.ts +236 -395
- package/dist/src/typus_perp/symbol/structs.d.ts +14 -25
- package/dist/src/typus_perp/tlp/structs.d.ts +42 -18
- package/dist/src/typus_perp/tlp/structs.js +53 -2
- package/dist/src/typus_perp/trading/structs.d.ts +714 -1267
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +7 -13
- package/dist/src/typus_perp/user-account/structs.d.ts +27 -47
- package/dist/src/typus_stake_pool/admin/structs.d.ts +67 -115
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +371 -649
- package/dist/src/user/history.js +1 -1
- package/dist/src/user/orderWithBidReceipt.d.ts +1 -0
- package/package.json +13 -4
|
@@ -15,11 +15,18 @@ export declare class Vector<T extends TypeArgument> implements VectorClass {
|
|
|
15
15
|
constructor(typeArgs: [ToTypeStr<T>], elements: VectorElements<T>);
|
|
16
16
|
static reified<T extends Reified<TypeArgument, any>>(T: T): VectorReified<ToTypeArgument<T>>;
|
|
17
17
|
static get r(): typeof Vector.reified;
|
|
18
|
-
static get bcs():
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
static get bcs(): {
|
|
19
|
+
<T extends import("@mysten/sui/bcs").BcsType<any>, Name extends string = `vector<${T["name"]}>`>(type: T, options?: import("@mysten/sui/bcs").BcsTypeOptions<import("@mysten/bcs").InferBcsType<T>[], Iterable<import("@mysten/bcs").InferBcsInput<T>> & {
|
|
20
|
+
length: number;
|
|
21
|
+
}, Name>): import("@mysten/sui/bcs").BcsType<import("@mysten/bcs").InferBcsType<T>[], Iterable<import("@mysten/bcs").InferBcsInput<T>> & {
|
|
22
|
+
length: number;
|
|
23
|
+
}, Name>;
|
|
24
|
+
<T, Input, Name extends string = string>(type: import("@mysten/sui/bcs").BcsType<T, Input, Name>, options?: import("@mysten/sui/bcs").BcsTypeOptions<T[], Iterable<Input> & {
|
|
25
|
+
length: number;
|
|
26
|
+
}, `vector<${Name}>`>): import("@mysten/sui/bcs").BcsType<T[], Iterable<Input> & {
|
|
27
|
+
length: number;
|
|
28
|
+
}, `vector<${Name}>`>;
|
|
29
|
+
};
|
|
23
30
|
static fromFields<T extends Reified<TypeArgument, any>>(typeArg: T, elements: any[]): Vector<ToTypeArgument<T>>;
|
|
24
31
|
static fromFieldsWithTypes<T extends Reified<TypeArgument, any>>(typeArg: T, item: FieldsWithTypes): Vector<ToTypeArgument<T>>;
|
|
25
32
|
static fromBcs<T extends Reified<TypeArgument, any>>(typeArg: T, data: Uint8Array): Vector<ToTypeArgument<T>>;
|
package/dist/src/index.js
CHANGED
|
@@ -35,58 +35,59 @@ var plugin = (0, transactions_1.namedPackagesPlugin)({ url: mvrPlugin });
|
|
|
35
35
|
transactions_1.Transaction.registerGlobalSerializationPlugin("namedPackagesPlugin", plugin);
|
|
36
36
|
exports.PERP_PACKAGE_ID = exports.NETWORK == "MAINNET"
|
|
37
37
|
? "0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5"
|
|
38
|
-
: "
|
|
38
|
+
: "0x29d1dcc803ec1cc1b4c98a8c818c655ecf432ebd2f85757bffc21806d329e240";
|
|
39
39
|
exports.PERP_PUBLISHED_AT = exports.NETWORK == "MAINNET" ? "0x9eda9afa0b42bf908766c42d02a549c271d7d0ae02c8c58c5075858f8f4d3b69" : "@typus/perp";
|
|
40
40
|
exports.PERP_PKG_V1 = exports.NETWORK == "MAINNET"
|
|
41
41
|
? "0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5"
|
|
42
42
|
: "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9";
|
|
43
43
|
exports.STAKE_PACKAGE_ID = exports.NETWORK == "MAINNET"
|
|
44
44
|
? "0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966"
|
|
45
|
-
: "
|
|
45
|
+
: "0xcfe3d323fec2dde129480328dbcf075bc47bac50f916f33746d74f1c875acd2e";
|
|
46
46
|
exports.STAKE_PUBLISHED_AT = exports.NETWORK == "MAINNET"
|
|
47
47
|
? "0xdf96424bc1ba70a6e53c07b2b55c597eccb8a21f722a917a5b4c9d8514b2d858"
|
|
48
|
-
: "
|
|
48
|
+
: "0xcfe3d323fec2dde129480328dbcf075bc47bac50f916f33746d74f1c875acd2e";
|
|
49
49
|
exports.STAKE_PKG_V1 = exports.NETWORK == "MAINNET"
|
|
50
50
|
? "0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966"
|
|
51
51
|
: "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6";
|
|
52
52
|
// Registry
|
|
53
53
|
exports.LP_POOL = exports.NETWORK == "MAINNET"
|
|
54
54
|
? "0xfee68e535bf24702be28fa38ea2d5946e617e0035027d5ca29dbed99efd82aaa"
|
|
55
|
-
: "
|
|
55
|
+
: "0x351312d71a8834cd978649ef065dc48928eaf07a279566bc93050a89c2b1edae";
|
|
56
56
|
exports.LIQUIDITY_POOL = exports.NETWORK == "MAINNET"
|
|
57
57
|
? "0x9973b7dd68ab8ba18702d913191a4c62c597847d9cd9f0b5bd97f1b938fc9a0a"
|
|
58
|
-
: "
|
|
58
|
+
: "0x185f5713a04a01dbb2ef1ca603177b21c26a8a1f7c3b60b0b94c77c31dd4602d";
|
|
59
59
|
exports.LIQUIDITY_POOL_0 = exports.NETWORK == "MAINNET"
|
|
60
60
|
? "0x98110aae0ffaf294259066380a2d35aba74e42860f1e87ee9c201f471eb3ba03"
|
|
61
|
-
: "
|
|
61
|
+
: "0x310a065075d2d49a09440402fcf8d2238886111c063cddaa4c118b09b1790e5e";
|
|
62
62
|
// MarketRegistry
|
|
63
63
|
exports.MARKET = exports.NETWORK == "MAINNET"
|
|
64
64
|
? "0xc969d946a2b6b917a83b5fb71765793c4a52149e50d2c8cf5c01d7421fc7cd73"
|
|
65
|
-
: "
|
|
65
|
+
: "0x00fdefdaa281113998afe29b3b8906a8f7bfdfc031891da3b9d7ddc08a924919";
|
|
66
66
|
// MARKET_0 = 0x442cc2c27cadaf287a5f4413967b4dacc6532bc9063875efbc7b178e5add3e4e
|
|
67
|
+
// testnet MARKET_0 = 0x7f427b15136ab0f5919e66612ff343f9c34d2733e636c95f6d9563a596a4b6ac
|
|
67
68
|
exports.PERP_VERSION = exports.NETWORK == "MAINNET"
|
|
68
69
|
? "0xa12c282a068328833ec4a9109fc77803ec1f523f8da1bb0f82bac8450335f0c9"
|
|
69
|
-
: "
|
|
70
|
+
: "0xfd3699c86cda99e542e4517dc3ad4d9164806664fcbcc23981ad0d5101b87abd";
|
|
70
71
|
// LpRegistry
|
|
71
72
|
exports.TLP = exports.NETWORK == "MAINNET"
|
|
72
73
|
? "0xc0a8cc0201d202321cd40b3f19fcf4cc88d6b63ceac0de55b08a2ab16f8a721e"
|
|
73
|
-
: "
|
|
74
|
+
: ""; // deprecated in new version TLP
|
|
74
75
|
exports.TLP_TOKEN = exports.NETWORK == "MAINNET"
|
|
75
76
|
? "0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::tlp::TLP"
|
|
76
|
-
: "
|
|
77
|
+
: "0xc44ba56ee8f91195facaf7a5a39b5522e0e8268a21b324275757ecc8baaa4e11::itlp_typus::ITLP_TYPUS";
|
|
77
78
|
exports.TLP_TREASURY_CAP = exports.NETWORK == "MAINNET"
|
|
78
79
|
? "0x77c75fb1d78cca25b5e2d69decfe2837abf95c4ef44b809868e6ca20f42b63bc"
|
|
79
|
-
: "
|
|
80
|
+
: "0x118bd86c1885a02c2c8f8bb017b40b4a928d5dad1aa68802158171427f4c19c9";
|
|
80
81
|
// StakePoolRegistry
|
|
81
82
|
exports.STAKE_POOL = exports.NETWORK == "MAINNET"
|
|
82
83
|
? "0x2cdf93717f87a8a7aeb98b27777b3b643f0ae2b277f44e6bcda0fc655a47d3e0"
|
|
83
|
-
: "
|
|
84
|
+
: "0xc48d38a6cd76ac6628ba98f1bdad7ade8d4b5273066aa4408a81e5e00a92363e";
|
|
84
85
|
exports.STAKE_POOL_0 = exports.NETWORK == "MAINNET"
|
|
85
86
|
? "0x5c984987380805fbaaf78f41d8ff1973807b6c85176aa87cf5a58518e0a87418"
|
|
86
|
-
: "
|
|
87
|
+
: "0xce188b7277324a817a91ce1953dd1d71f2dbb4685364caa90eb430c9ac453dc8";
|
|
87
88
|
exports.STAKE_POOL_VERSION = exports.NETWORK == "MAINNET"
|
|
88
89
|
? "0xdf3ed1599218b2415b2cd7fa06296f7f647676019b2873ec18e55a626c584f1b"
|
|
89
|
-
: "
|
|
90
|
+
: "0x138583562f9f8fc6261e8fd752a105eb42c8887f83efaba87b42a757f3d98765";
|
|
90
91
|
exports.COMPETITION_CONFIG = exports.NETWORK == "MAINNET"
|
|
91
92
|
? "0x36056abf9adde86f81667dad680a8ac98868c9fc1cb4d519fd2222d5d4522906"
|
|
92
|
-
: "
|
|
93
|
+
: "0xbb246d6ee24d7c751777d81cbf95ffcfcda26910fecfdcfedab81b2b8e48dfe5";
|
|
@@ -29,23 +29,16 @@ export declare class FeeInfo implements StructClass {
|
|
|
29
29
|
static get r(): reified.StructClassReified<FeeInfo, FeeInfoFields>;
|
|
30
30
|
static phantom(): PhantomReified<ToTypeStr<FeeInfo>>;
|
|
31
31
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::FeeInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::FeeInfo">;
|
|
32
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
33
|
-
token: {
|
|
34
|
-
name: {
|
|
35
|
-
bytes: number[]
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
value: string;
|
|
39
|
-
}, {
|
|
40
|
-
token: {
|
|
41
|
-
name: {
|
|
42
|
-
bytes: Iterable<number> & {
|
|
32
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
33
|
+
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
34
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
35
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
43
36
|
length: number;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
value: string | number | bigint
|
|
48
|
-
}>;
|
|
37
|
+
}, string>;
|
|
38
|
+
}, string>;
|
|
39
|
+
}, string>;
|
|
40
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
41
|
+
}, string>;
|
|
49
42
|
static fromFields(fields: Record<string, any>): FeeInfo;
|
|
50
43
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeeInfo;
|
|
51
44
|
static fromBcs(data: Uint8Array): FeeInfo;
|
|
@@ -91,27 +84,20 @@ export declare class FeePool implements StructClass {
|
|
|
91
84
|
static get r(): reified.StructClassReified<FeePool, FeePoolFields>;
|
|
92
85
|
static phantom(): PhantomReified<ToTypeStr<FeePool>>;
|
|
93
86
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::FeePool" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::FeePool">;
|
|
94
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
95
|
-
id: {
|
|
96
|
-
id: {
|
|
97
|
-
bytes: string
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
fee_infos: {
|
|
87
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
88
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
89
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
90
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
91
|
+
}, string>;
|
|
92
|
+
}, string>;
|
|
93
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
101
94
|
token: {
|
|
102
95
|
name: {
|
|
103
96
|
bytes: number[];
|
|
104
97
|
};
|
|
105
98
|
};
|
|
106
99
|
value: string;
|
|
107
|
-
}[]
|
|
108
|
-
}, {
|
|
109
|
-
id: {
|
|
110
|
-
id: {
|
|
111
|
-
bytes: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
fee_infos: Iterable<{
|
|
100
|
+
}[], Iterable<{
|
|
115
101
|
token: {
|
|
116
102
|
name: {
|
|
117
103
|
bytes: Iterable<number> & {
|
|
@@ -122,8 +108,8 @@ export declare class FeePool implements StructClass {
|
|
|
122
108
|
value: string | number | bigint;
|
|
123
109
|
}> & {
|
|
124
110
|
length: number;
|
|
125
|
-
}
|
|
126
|
-
}>;
|
|
111
|
+
}, string>;
|
|
112
|
+
}, string>;
|
|
127
113
|
static fromFields(fields: Record<string, any>): FeePool;
|
|
128
114
|
static fromFieldsWithTypes(item: FieldsWithTypes): FeePool;
|
|
129
115
|
static fromBcs(data: Uint8Array): FeePool;
|
|
@@ -175,23 +161,16 @@ export declare class ProtocolFeeEvent implements StructClass {
|
|
|
175
161
|
static get r(): reified.StructClassReified<ProtocolFeeEvent, ProtocolFeeEventFields>;
|
|
176
162
|
static phantom(): PhantomReified<ToTypeStr<ProtocolFeeEvent>>;
|
|
177
163
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::ProtocolFeeEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::ProtocolFeeEvent">;
|
|
178
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
179
|
-
token: {
|
|
180
|
-
name: {
|
|
181
|
-
bytes: number[]
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
amount: string;
|
|
185
|
-
}, {
|
|
186
|
-
token: {
|
|
187
|
-
name: {
|
|
188
|
-
bytes: Iterable<number> & {
|
|
164
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
165
|
+
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
166
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
167
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
189
168
|
length: number;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
amount: string | number | bigint
|
|
194
|
-
}>;
|
|
169
|
+
}, string>;
|
|
170
|
+
}, string>;
|
|
171
|
+
}, string>;
|
|
172
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
173
|
+
}, string>;
|
|
195
174
|
static fromFields(fields: Record<string, any>): ProtocolFeeEvent;
|
|
196
175
|
static fromFieldsWithTypes(item: FieldsWithTypes): ProtocolFeeEvent;
|
|
197
176
|
static fromBcs(data: Uint8Array): ProtocolFeeEvent;
|
|
@@ -237,23 +216,16 @@ export declare class PutInsuranceFundEvent implements StructClass {
|
|
|
237
216
|
static get r(): reified.StructClassReified<PutInsuranceFundEvent, PutInsuranceFundEventFields>;
|
|
238
217
|
static phantom(): PhantomReified<ToTypeStr<PutInsuranceFundEvent>>;
|
|
239
218
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::PutInsuranceFundEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::PutInsuranceFundEvent">;
|
|
240
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
241
|
-
token: {
|
|
242
|
-
name: {
|
|
243
|
-
bytes: number[]
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
amount: string;
|
|
247
|
-
}, {
|
|
248
|
-
token: {
|
|
249
|
-
name: {
|
|
250
|
-
bytes: Iterable<number> & {
|
|
219
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
220
|
+
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
221
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
222
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
251
223
|
length: number;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
amount: string | number | bigint
|
|
256
|
-
}>;
|
|
224
|
+
}, string>;
|
|
225
|
+
}, string>;
|
|
226
|
+
}, string>;
|
|
227
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
228
|
+
}, string>;
|
|
257
229
|
static fromFields(fields: Record<string, any>): PutInsuranceFundEvent;
|
|
258
230
|
static fromFieldsWithTypes(item: FieldsWithTypes): PutInsuranceFundEvent;
|
|
259
231
|
static fromBcs(data: Uint8Array): PutInsuranceFundEvent;
|
|
@@ -299,23 +271,16 @@ export declare class SendFeeEvent implements StructClass {
|
|
|
299
271
|
static get r(): reified.StructClassReified<SendFeeEvent, SendFeeEventFields>;
|
|
300
272
|
static phantom(): PhantomReified<ToTypeStr<SendFeeEvent>>;
|
|
301
273
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::SendFeeEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::SendFeeEvent">;
|
|
302
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
303
|
-
token: {
|
|
304
|
-
name: {
|
|
305
|
-
bytes: number[]
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
amount: string;
|
|
309
|
-
}, {
|
|
310
|
-
token: {
|
|
311
|
-
name: {
|
|
312
|
-
bytes: Iterable<number> & {
|
|
274
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
275
|
+
token: import("@mysten/sui/bcs").BcsStruct<{
|
|
276
|
+
name: import("@mysten/sui/bcs").BcsStruct<{
|
|
277
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
313
278
|
length: number;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
amount: string | number | bigint
|
|
318
|
-
}>;
|
|
279
|
+
}, string>;
|
|
280
|
+
}, string>;
|
|
281
|
+
}, string>;
|
|
282
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
283
|
+
}, string>;
|
|
319
284
|
static fromFields(fields: Record<string, any>): SendFeeEvent;
|
|
320
285
|
static fromFieldsWithTypes(item: FieldsWithTypes): SendFeeEvent;
|
|
321
286
|
static fromBcs(data: Uint8Array): SendFeeEvent;
|
|
@@ -369,61 +334,27 @@ export declare class Version implements StructClass {
|
|
|
369
334
|
static get r(): reified.StructClassReified<Version, VersionFields>;
|
|
370
335
|
static phantom(): PhantomReified<ToTypeStr<Version>>;
|
|
371
336
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::admin::Version" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::admin::Version">;
|
|
372
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
373
|
-
id: {
|
|
374
|
-
id: {
|
|
375
|
-
bytes: string
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
value: string
|
|
379
|
-
fee_pool: {
|
|
380
|
-
id: {
|
|
381
|
-
id: {
|
|
382
|
-
bytes: string
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
fee_infos: {
|
|
337
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
338
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
339
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
340
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
341
|
+
}, string>;
|
|
342
|
+
}, string>;
|
|
343
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
344
|
+
fee_pool: import("@mysten/sui/bcs").BcsStruct<{
|
|
345
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
346
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
347
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
348
|
+
}, string>;
|
|
349
|
+
}, string>;
|
|
350
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
386
351
|
token: {
|
|
387
352
|
name: {
|
|
388
353
|
bytes: number[];
|
|
389
354
|
};
|
|
390
355
|
};
|
|
391
356
|
value: string;
|
|
392
|
-
}[]
|
|
393
|
-
};
|
|
394
|
-
liquidator_fee_pool: {
|
|
395
|
-
id: {
|
|
396
|
-
id: {
|
|
397
|
-
bytes: string;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
fee_infos: {
|
|
401
|
-
token: {
|
|
402
|
-
name: {
|
|
403
|
-
bytes: number[];
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
value: string;
|
|
407
|
-
}[];
|
|
408
|
-
};
|
|
409
|
-
authority: {
|
|
410
|
-
contents: any[];
|
|
411
|
-
};
|
|
412
|
-
u64_padding: string[];
|
|
413
|
-
}, {
|
|
414
|
-
id: {
|
|
415
|
-
id: {
|
|
416
|
-
bytes: string;
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
value: string | number | bigint;
|
|
420
|
-
fee_pool: {
|
|
421
|
-
id: {
|
|
422
|
-
id: {
|
|
423
|
-
bytes: string;
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
fee_infos: Iterable<{
|
|
357
|
+
}[], Iterable<{
|
|
427
358
|
token: {
|
|
428
359
|
name: {
|
|
429
360
|
bytes: Iterable<number> & {
|
|
@@ -434,15 +365,22 @@ export declare class Version implements StructClass {
|
|
|
434
365
|
value: string | number | bigint;
|
|
435
366
|
}> & {
|
|
436
367
|
length: number;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
liquidator_fee_pool: {
|
|
440
|
-
id: {
|
|
441
|
-
id: {
|
|
442
|
-
bytes: string
|
|
368
|
+
}, string>;
|
|
369
|
+
}, string>;
|
|
370
|
+
liquidator_fee_pool: import("@mysten/sui/bcs").BcsStruct<{
|
|
371
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
372
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
373
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
374
|
+
}, string>;
|
|
375
|
+
}, string>;
|
|
376
|
+
fee_infos: import("@mysten/sui/bcs").BcsType<{
|
|
377
|
+
token: {
|
|
378
|
+
name: {
|
|
379
|
+
bytes: number[];
|
|
380
|
+
};
|
|
443
381
|
};
|
|
444
|
-
|
|
445
|
-
|
|
382
|
+
value: string;
|
|
383
|
+
}[], Iterable<{
|
|
446
384
|
token: {
|
|
447
385
|
name: {
|
|
448
386
|
bytes: Iterable<number> & {
|
|
@@ -453,17 +391,17 @@ export declare class Version implements StructClass {
|
|
|
453
391
|
value: string | number | bigint;
|
|
454
392
|
}> & {
|
|
455
393
|
length: number;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
authority: {
|
|
459
|
-
contents: Iterable<
|
|
394
|
+
}, string>;
|
|
395
|
+
}, string>;
|
|
396
|
+
authority: import("@mysten/sui/bcs").BcsStruct<{
|
|
397
|
+
contents: import("@mysten/sui/bcs").BcsType<string[], Iterable<string> & {
|
|
460
398
|
length: number;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
399
|
+
}, string>;
|
|
400
|
+
}, string>;
|
|
401
|
+
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
464
402
|
length: number;
|
|
465
|
-
}
|
|
466
|
-
}>;
|
|
403
|
+
}, string>;
|
|
404
|
+
}, string>;
|
|
467
405
|
static fromFields(fields: Record<string, any>): Version;
|
|
468
406
|
static fromFieldsWithTypes(item: FieldsWithTypes): Version;
|
|
469
407
|
static fromBcs(data: Uint8Array): Version;
|
|
@@ -34,37 +34,25 @@ export declare class CompetitionConfig implements StructClass {
|
|
|
34
34
|
static get r(): reified.StructClassReified<CompetitionConfig, CompetitionConfigFields>;
|
|
35
35
|
static phantom(): PhantomReified<ToTypeStr<CompetitionConfig>>;
|
|
36
36
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::competition::CompetitionConfig" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::competition::CompetitionConfig">;
|
|
37
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
38
|
-
id: {
|
|
39
|
-
id: {
|
|
40
|
-
bytes: string
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
boost_bp: string[]
|
|
44
|
-
is_active: boolean;
|
|
45
|
-
program_name: {
|
|
46
|
-
bytes: number[];
|
|
47
|
-
};
|
|
48
|
-
u64_padding: string[];
|
|
49
|
-
}, {
|
|
50
|
-
id: {
|
|
51
|
-
id: {
|
|
52
|
-
bytes: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
boost_bp: Iterable<string | number | bigint> & {
|
|
37
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
38
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
39
|
+
id: import("@mysten/sui/bcs").BcsStruct<{
|
|
40
|
+
bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
41
|
+
}, string>;
|
|
42
|
+
}, string>;
|
|
43
|
+
boost_bp: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
56
44
|
length: number;
|
|
57
|
-
}
|
|
58
|
-
is_active: boolean
|
|
59
|
-
program_name: {
|
|
60
|
-
bytes: Iterable<number> & {
|
|
45
|
+
}, string>;
|
|
46
|
+
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
47
|
+
program_name: import("@mysten/sui/bcs").BcsStruct<{
|
|
48
|
+
bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
61
49
|
length: number;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
u64_padding: Iterable<string | number | bigint> & {
|
|
50
|
+
}, string>;
|
|
51
|
+
}, string>;
|
|
52
|
+
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
65
53
|
length: number;
|
|
66
|
-
}
|
|
67
|
-
}>;
|
|
54
|
+
}, string>;
|
|
55
|
+
}, string>;
|
|
68
56
|
static fromFields(fields: Record<string, any>): CompetitionConfig;
|
|
69
57
|
static fromFieldsWithTypes(item: FieldsWithTypes): CompetitionConfig;
|
|
70
58
|
static fromBcs(data: Uint8Array): CompetitionConfig;
|
|
@@ -46,8 +46,8 @@ export declare class UnsettledBidReceipt implements StructClass {
|
|
|
46
46
|
static get r(): reified.StructClassReified<UnsettledBidReceipt, UnsettledBidReceiptFields>;
|
|
47
47
|
static phantom(): PhantomReified<ToTypeStr<UnsettledBidReceipt>>;
|
|
48
48
|
static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::escrow::UnsettledBidReceipt" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::escrow::UnsettledBidReceipt">;
|
|
49
|
-
static get bcs(): import("@mysten/sui/bcs").
|
|
50
|
-
receipt: {
|
|
49
|
+
static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
|
|
50
|
+
receipt: import("@mysten/sui/bcs").BcsType<{
|
|
51
51
|
id: {
|
|
52
52
|
id: {
|
|
53
53
|
bytes: string;
|
|
@@ -61,23 +61,7 @@ export declare class UnsettledBidReceipt implements StructClass {
|
|
|
61
61
|
bytes: number[];
|
|
62
62
|
};
|
|
63
63
|
u64_padding: string[];
|
|
64
|
-
}[]
|
|
65
|
-
position_id: string;
|
|
66
|
-
user: string;
|
|
67
|
-
token_types: {
|
|
68
|
-
name: {
|
|
69
|
-
bytes: number[];
|
|
70
|
-
};
|
|
71
|
-
}[];
|
|
72
|
-
unrealized_pnl_sign: boolean;
|
|
73
|
-
unrealized_pnl: string;
|
|
74
|
-
unrealized_trading_fee: string;
|
|
75
|
-
unrealized_borrow_fee: string;
|
|
76
|
-
unrealized_funding_fee_sign: boolean;
|
|
77
|
-
unrealized_funding_fee: string;
|
|
78
|
-
unrealized_liquidator_fee: string;
|
|
79
|
-
}, {
|
|
80
|
-
receipt: Iterable<{
|
|
64
|
+
}[], Iterable<{
|
|
81
65
|
id: {
|
|
82
66
|
id: {
|
|
83
67
|
bytes: string;
|
|
@@ -97,10 +81,14 @@ export declare class UnsettledBidReceipt implements StructClass {
|
|
|
97
81
|
};
|
|
98
82
|
}> & {
|
|
99
83
|
length: number;
|
|
100
|
-
}
|
|
101
|
-
position_id: string | number | bigint
|
|
102
|
-
user: string
|
|
103
|
-
token_types:
|
|
84
|
+
}, string>;
|
|
85
|
+
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
86
|
+
user: import("@mysten/sui/bcs").BcsType<string, string, string>;
|
|
87
|
+
token_types: import("@mysten/sui/bcs").BcsType<{
|
|
88
|
+
name: {
|
|
89
|
+
bytes: number[];
|
|
90
|
+
};
|
|
91
|
+
}[], Iterable<{
|
|
104
92
|
name: {
|
|
105
93
|
bytes: Iterable<number> & {
|
|
106
94
|
length: number;
|
|
@@ -108,15 +96,15 @@ export declare class UnsettledBidReceipt implements StructClass {
|
|
|
108
96
|
};
|
|
109
97
|
}> & {
|
|
110
98
|
length: number;
|
|
111
|
-
}
|
|
112
|
-
unrealized_pnl_sign: boolean
|
|
113
|
-
unrealized_pnl: string | number | bigint
|
|
114
|
-
unrealized_trading_fee: string | number | bigint
|
|
115
|
-
unrealized_borrow_fee: string | number | bigint
|
|
116
|
-
unrealized_funding_fee_sign: boolean
|
|
117
|
-
unrealized_funding_fee: string | number | bigint
|
|
118
|
-
unrealized_liquidator_fee: string | number | bigint
|
|
119
|
-
}>;
|
|
99
|
+
}, string>;
|
|
100
|
+
unrealized_pnl_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
101
|
+
unrealized_pnl: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
102
|
+
unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
103
|
+
unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
104
|
+
unrealized_funding_fee_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
105
|
+
unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
106
|
+
unrealized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
107
|
+
}, string>;
|
|
120
108
|
static fromFields(fields: Record<string, any>): UnsettledBidReceipt;
|
|
121
109
|
static fromFieldsWithTypes(item: FieldsWithTypes): UnsettledBidReceipt;
|
|
122
110
|
static fromBcs(data: Uint8Array): UnsettledBidReceipt;
|