@typus/typus-perp-sdk 1.1.19 → 1.1.20

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.
@@ -7,214 +7,6 @@ import { FieldsWithTypes } from "../../_framework/util";
7
7
  import { Vector } from "../../_framework/vector";
8
8
  import { PKG_V1 } from "../index";
9
9
  import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
10
- export declare function isFeeInfo(type: string): boolean;
11
- export interface FeeInfoFields {
12
- token: ToField<TypeName>;
13
- value: ToField<"u64">;
14
- }
15
- export type FeeInfoReified = Reified<FeeInfo, FeeInfoFields>;
16
- export declare class FeeInfo implements StructClass {
17
- __StructClass: true;
18
- static readonly $typeName: string;
19
- static readonly $numTypeParams = 0;
20
- static readonly $isPhantom: readonly [];
21
- readonly $typeName: string;
22
- readonly $fullTypeName: `${typeof PKG_V1}::admin::FeeInfo`;
23
- readonly $typeArgs: [];
24
- readonly $isPhantom: readonly [];
25
- readonly token: ToField<TypeName>;
26
- readonly value: ToField<"u64">;
27
- private constructor();
28
- static reified(): FeeInfoReified;
29
- static get r(): reified.StructClassReified<FeeInfo, FeeInfoFields>;
30
- static phantom(): PhantomReified<ToTypeStr<FeeInfo>>;
31
- static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::FeeInfo" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::FeeInfo">;
32
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
33
- token: {
34
- name: {
35
- bytes: number[];
36
- };
37
- };
38
- value: string;
39
- }, {
40
- token: {
41
- name: {
42
- bytes: Iterable<number> & {
43
- length: number;
44
- };
45
- };
46
- };
47
- value: string | number | bigint;
48
- }>;
49
- static fromFields(fields: Record<string, any>): FeeInfo;
50
- static fromFieldsWithTypes(item: FieldsWithTypes): FeeInfo;
51
- static fromBcs(data: Uint8Array): FeeInfo;
52
- toJSONField(): {
53
- token: {
54
- name: string;
55
- };
56
- value: string;
57
- };
58
- toJSON(): {
59
- token: {
60
- name: string;
61
- };
62
- value: string;
63
- $typeName: string;
64
- $typeArgs: [];
65
- };
66
- static fromJSONField(field: any): FeeInfo;
67
- static fromJSON(json: Record<string, any>): FeeInfo;
68
- static fromSuiParsedData(content: SuiParsedData): FeeInfo;
69
- static fromSuiObjectData(data: SuiObjectData): FeeInfo;
70
- static fetch(client: SuiClient, id: string): Promise<FeeInfo>;
71
- }
72
- export declare function isFeePool(type: string): boolean;
73
- export interface FeePoolFields {
74
- id: ToField<UID>;
75
- feeInfos: ToField<Vector<FeeInfo>>;
76
- }
77
- export type FeePoolReified = Reified<FeePool, FeePoolFields>;
78
- export declare class FeePool implements StructClass {
79
- __StructClass: true;
80
- static readonly $typeName: string;
81
- static readonly $numTypeParams = 0;
82
- static readonly $isPhantom: readonly [];
83
- readonly $typeName: string;
84
- readonly $fullTypeName: `${typeof PKG_V1}::admin::FeePool`;
85
- readonly $typeArgs: [];
86
- readonly $isPhantom: readonly [];
87
- readonly id: ToField<UID>;
88
- readonly feeInfos: ToField<Vector<FeeInfo>>;
89
- private constructor();
90
- static reified(): FeePoolReified;
91
- static get r(): reified.StructClassReified<FeePool, FeePoolFields>;
92
- static phantom(): PhantomReified<ToTypeStr<FeePool>>;
93
- static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::FeePool" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::FeePool">;
94
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
95
- id: {
96
- id: {
97
- bytes: string;
98
- };
99
- };
100
- fee_infos: {
101
- token: {
102
- name: {
103
- bytes: number[];
104
- };
105
- };
106
- value: string;
107
- }[];
108
- }, {
109
- id: {
110
- id: {
111
- bytes: string;
112
- };
113
- };
114
- fee_infos: Iterable<{
115
- token: {
116
- name: {
117
- bytes: Iterable<number> & {
118
- length: number;
119
- };
120
- };
121
- };
122
- value: string | number | bigint;
123
- }> & {
124
- length: number;
125
- };
126
- }>;
127
- static fromFields(fields: Record<string, any>): FeePool;
128
- static fromFieldsWithTypes(item: FieldsWithTypes): FeePool;
129
- static fromBcs(data: Uint8Array): FeePool;
130
- toJSONField(): {
131
- id: string;
132
- feeInfos: {
133
- token: {
134
- name: string;
135
- };
136
- value: string;
137
- }[];
138
- };
139
- toJSON(): {
140
- id: string;
141
- feeInfos: {
142
- token: {
143
- name: string;
144
- };
145
- value: string;
146
- }[];
147
- $typeName: string;
148
- $typeArgs: [];
149
- };
150
- static fromJSONField(field: any): FeePool;
151
- static fromJSON(json: Record<string, any>): FeePool;
152
- static fromSuiParsedData(content: SuiParsedData): FeePool;
153
- static fromSuiObjectData(data: SuiObjectData): FeePool;
154
- static fetch(client: SuiClient, id: string): Promise<FeePool>;
155
- }
156
- export declare function isSendFeeEvent(type: string): boolean;
157
- export interface SendFeeEventFields {
158
- token: ToField<TypeName>;
159
- amount: ToField<"u64">;
160
- }
161
- export type SendFeeEventReified = Reified<SendFeeEvent, SendFeeEventFields>;
162
- export declare class SendFeeEvent implements StructClass {
163
- __StructClass: true;
164
- static readonly $typeName: string;
165
- static readonly $numTypeParams = 0;
166
- static readonly $isPhantom: readonly [];
167
- readonly $typeName: string;
168
- readonly $fullTypeName: `${typeof PKG_V1}::admin::SendFeeEvent`;
169
- readonly $typeArgs: [];
170
- readonly $isPhantom: readonly [];
171
- readonly token: ToField<TypeName>;
172
- readonly amount: ToField<"u64">;
173
- private constructor();
174
- static reified(): SendFeeEventReified;
175
- static get r(): reified.StructClassReified<SendFeeEvent, SendFeeEventFields>;
176
- static phantom(): PhantomReified<ToTypeStr<SendFeeEvent>>;
177
- static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::SendFeeEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::SendFeeEvent">;
178
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
179
- token: {
180
- name: {
181
- bytes: number[];
182
- };
183
- };
184
- amount: string;
185
- }, {
186
- token: {
187
- name: {
188
- bytes: Iterable<number> & {
189
- length: number;
190
- };
191
- };
192
- };
193
- amount: string | number | bigint;
194
- }>;
195
- static fromFields(fields: Record<string, any>): SendFeeEvent;
196
- static fromFieldsWithTypes(item: FieldsWithTypes): SendFeeEvent;
197
- static fromBcs(data: Uint8Array): SendFeeEvent;
198
- toJSONField(): {
199
- token: {
200
- name: string;
201
- };
202
- amount: string;
203
- };
204
- toJSON(): {
205
- token: {
206
- name: string;
207
- };
208
- amount: string;
209
- $typeName: string;
210
- $typeArgs: [];
211
- };
212
- static fromJSONField(field: any): SendFeeEvent;
213
- static fromJSON(json: Record<string, any>): SendFeeEvent;
214
- static fromSuiParsedData(content: SuiParsedData): SendFeeEvent;
215
- static fromSuiObjectData(data: SuiObjectData): SendFeeEvent;
216
- static fetch(client: SuiClient, id: string): Promise<SendFeeEvent>;
217
- }
218
10
  export declare function isVersion(type: string): boolean;
219
11
  export interface VersionFields {
220
12
  id: ToField<UID>;
@@ -245,6 +37,8 @@ export declare class Version implements StructClass {
245
37
  static get r(): reified.StructClassReified<Version, VersionFields>;
246
38
  static phantom(): PhantomReified<ToTypeStr<Version>>;
247
39
  static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::Version" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::Version">;
40
+ private static instantiateBcs;
41
+ private static cachedBcs;
248
42
  static get bcs(): import("@mysten/sui/bcs").BcsType<{
249
43
  id: {
250
44
  id: {
@@ -403,3 +197,217 @@ export declare class Version implements StructClass {
403
197
  static fromSuiObjectData(data: SuiObjectData): Version;
404
198
  static fetch(client: SuiClient, id: string): Promise<Version>;
405
199
  }
200
+ export declare function isFeePool(type: string): boolean;
201
+ export interface FeePoolFields {
202
+ id: ToField<UID>;
203
+ feeInfos: ToField<Vector<FeeInfo>>;
204
+ }
205
+ export type FeePoolReified = Reified<FeePool, FeePoolFields>;
206
+ export declare class FeePool implements StructClass {
207
+ __StructClass: true;
208
+ static readonly $typeName: string;
209
+ static readonly $numTypeParams = 0;
210
+ static readonly $isPhantom: readonly [];
211
+ readonly $typeName: string;
212
+ readonly $fullTypeName: `${typeof PKG_V1}::admin::FeePool`;
213
+ readonly $typeArgs: [];
214
+ readonly $isPhantom: readonly [];
215
+ readonly id: ToField<UID>;
216
+ readonly feeInfos: ToField<Vector<FeeInfo>>;
217
+ private constructor();
218
+ static reified(): FeePoolReified;
219
+ static get r(): reified.StructClassReified<FeePool, FeePoolFields>;
220
+ static phantom(): PhantomReified<ToTypeStr<FeePool>>;
221
+ static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::FeePool" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::FeePool">;
222
+ private static instantiateBcs;
223
+ private static cachedBcs;
224
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
225
+ id: {
226
+ id: {
227
+ bytes: string;
228
+ };
229
+ };
230
+ fee_infos: {
231
+ token: {
232
+ name: {
233
+ bytes: number[];
234
+ };
235
+ };
236
+ value: string;
237
+ }[];
238
+ }, {
239
+ id: {
240
+ id: {
241
+ bytes: string;
242
+ };
243
+ };
244
+ fee_infos: Iterable<{
245
+ token: {
246
+ name: {
247
+ bytes: Iterable<number> & {
248
+ length: number;
249
+ };
250
+ };
251
+ };
252
+ value: string | number | bigint;
253
+ }> & {
254
+ length: number;
255
+ };
256
+ }>;
257
+ static fromFields(fields: Record<string, any>): FeePool;
258
+ static fromFieldsWithTypes(item: FieldsWithTypes): FeePool;
259
+ static fromBcs(data: Uint8Array): FeePool;
260
+ toJSONField(): {
261
+ id: string;
262
+ feeInfos: {
263
+ token: {
264
+ name: string;
265
+ };
266
+ value: string;
267
+ }[];
268
+ };
269
+ toJSON(): {
270
+ id: string;
271
+ feeInfos: {
272
+ token: {
273
+ name: string;
274
+ };
275
+ value: string;
276
+ }[];
277
+ $typeName: string;
278
+ $typeArgs: [];
279
+ };
280
+ static fromJSONField(field: any): FeePool;
281
+ static fromJSON(json: Record<string, any>): FeePool;
282
+ static fromSuiParsedData(content: SuiParsedData): FeePool;
283
+ static fromSuiObjectData(data: SuiObjectData): FeePool;
284
+ static fetch(client: SuiClient, id: string): Promise<FeePool>;
285
+ }
286
+ export declare function isFeeInfo(type: string): boolean;
287
+ export interface FeeInfoFields {
288
+ token: ToField<TypeName>;
289
+ value: ToField<"u64">;
290
+ }
291
+ export type FeeInfoReified = Reified<FeeInfo, FeeInfoFields>;
292
+ export declare class FeeInfo implements StructClass {
293
+ __StructClass: true;
294
+ static readonly $typeName: string;
295
+ static readonly $numTypeParams = 0;
296
+ static readonly $isPhantom: readonly [];
297
+ readonly $typeName: string;
298
+ readonly $fullTypeName: `${typeof PKG_V1}::admin::FeeInfo`;
299
+ readonly $typeArgs: [];
300
+ readonly $isPhantom: readonly [];
301
+ readonly token: ToField<TypeName>;
302
+ readonly value: ToField<"u64">;
303
+ private constructor();
304
+ static reified(): FeeInfoReified;
305
+ static get r(): reified.StructClassReified<FeeInfo, FeeInfoFields>;
306
+ static phantom(): PhantomReified<ToTypeStr<FeeInfo>>;
307
+ static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::FeeInfo" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::FeeInfo">;
308
+ private static instantiateBcs;
309
+ private static cachedBcs;
310
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
311
+ token: {
312
+ name: {
313
+ bytes: number[];
314
+ };
315
+ };
316
+ value: string;
317
+ }, {
318
+ token: {
319
+ name: {
320
+ bytes: Iterable<number> & {
321
+ length: number;
322
+ };
323
+ };
324
+ };
325
+ value: string | number | bigint;
326
+ }>;
327
+ static fromFields(fields: Record<string, any>): FeeInfo;
328
+ static fromFieldsWithTypes(item: FieldsWithTypes): FeeInfo;
329
+ static fromBcs(data: Uint8Array): FeeInfo;
330
+ toJSONField(): {
331
+ token: {
332
+ name: string;
333
+ };
334
+ value: string;
335
+ };
336
+ toJSON(): {
337
+ token: {
338
+ name: string;
339
+ };
340
+ value: string;
341
+ $typeName: string;
342
+ $typeArgs: [];
343
+ };
344
+ static fromJSONField(field: any): FeeInfo;
345
+ static fromJSON(json: Record<string, any>): FeeInfo;
346
+ static fromSuiParsedData(content: SuiParsedData): FeeInfo;
347
+ static fromSuiObjectData(data: SuiObjectData): FeeInfo;
348
+ static fetch(client: SuiClient, id: string): Promise<FeeInfo>;
349
+ }
350
+ export declare function isSendFeeEvent(type: string): boolean;
351
+ export interface SendFeeEventFields {
352
+ token: ToField<TypeName>;
353
+ amount: ToField<"u64">;
354
+ }
355
+ export type SendFeeEventReified = Reified<SendFeeEvent, SendFeeEventFields>;
356
+ export declare class SendFeeEvent implements StructClass {
357
+ __StructClass: true;
358
+ static readonly $typeName: string;
359
+ static readonly $numTypeParams = 0;
360
+ static readonly $isPhantom: readonly [];
361
+ readonly $typeName: string;
362
+ readonly $fullTypeName: `${typeof PKG_V1}::admin::SendFeeEvent`;
363
+ readonly $typeArgs: [];
364
+ readonly $isPhantom: readonly [];
365
+ readonly token: ToField<TypeName>;
366
+ readonly amount: ToField<"u64">;
367
+ private constructor();
368
+ static reified(): SendFeeEventReified;
369
+ static get r(): reified.StructClassReified<SendFeeEvent, SendFeeEventFields>;
370
+ static phantom(): PhantomReified<ToTypeStr<SendFeeEvent>>;
371
+ static get p(): reified.PhantomReified<"0xc427209145715a00a93d7e674a95c556a7147d79fda1bbaeb1a1cac5f9923966::admin::SendFeeEvent" | "0x220e7ba8923c0c30b57c0baab3bc15d781a39bb294cf7af318c0fc816b5cf7e6::admin::SendFeeEvent">;
372
+ private static instantiateBcs;
373
+ private static cachedBcs;
374
+ static get bcs(): import("@mysten/sui/bcs").BcsType<{
375
+ token: {
376
+ name: {
377
+ bytes: number[];
378
+ };
379
+ };
380
+ amount: string;
381
+ }, {
382
+ token: {
383
+ name: {
384
+ bytes: Iterable<number> & {
385
+ length: number;
386
+ };
387
+ };
388
+ };
389
+ amount: string | number | bigint;
390
+ }>;
391
+ static fromFields(fields: Record<string, any>): SendFeeEvent;
392
+ static fromFieldsWithTypes(item: FieldsWithTypes): SendFeeEvent;
393
+ static fromBcs(data: Uint8Array): SendFeeEvent;
394
+ toJSONField(): {
395
+ token: {
396
+ name: string;
397
+ };
398
+ amount: string;
399
+ };
400
+ toJSON(): {
401
+ token: {
402
+ name: string;
403
+ };
404
+ amount: string;
405
+ $typeName: string;
406
+ $typeArgs: [];
407
+ };
408
+ static fromJSONField(field: any): SendFeeEvent;
409
+ static fromJSON(json: Record<string, any>): SendFeeEvent;
410
+ static fromSuiParsedData(content: SuiParsedData): SendFeeEvent;
411
+ static fromSuiObjectData(data: SuiObjectData): SendFeeEvent;
412
+ static fetch(client: SuiClient, id: string): Promise<SendFeeEvent>;
413
+ }