@typus/typus-perp-sdk 1.0.52 → 1.0.53-upgrade
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/0x2/bag/structs.d.ts +61 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +460 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +153 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +61 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +449 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +370 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +53 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +489 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +147 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +239 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +405 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/keyed-big-vector/structs.d.ts +70 -70
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/keyed-big-vector/structs.js +174 -174
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +699 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/linked-object-table/structs.d.ts +62 -62
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/linked-object-table/structs.js +170 -170
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +147 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +1071 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +279 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +328 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +347 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +73 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +876 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +155 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
- package/dist/src/_dependencies/source/{0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded → 0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274}/vault/structs.d.ts +84 -84
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +446 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +94 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +454 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +1117 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
- package/dist/src/fetch.d.ts +1 -1
- package/dist/src/fetch.js +1 -1
- package/dist/src/index.js +18 -18
- package/dist/src/typus_perp/admin/structs.d.ts +67 -5
- package/dist/src/typus_perp/admin/structs.js +155 -1
- package/dist/src/typus_perp/escrow/functions.js +1 -1
- package/dist/src/typus_perp/escrow/structs.d.ts +2 -2
- package/dist/src/typus_perp/escrow/structs.js +1 -1
- package/dist/src/typus_perp/lp-pool/structs.d.ts +28 -28
- package/dist/src/typus_perp/position/functions.js +1 -1
- package/dist/src/typus_perp/position/structs.d.ts +6 -6
- 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/functions.js +1 -1
- package/dist/src/typus_perp/trading/structs.d.ts +32 -32
- package/dist/src/typus_perp/trading/structs.js +2 -2
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
- package/dist/src/typus_stake_pool/admin/functions.d.ts +25 -25
- package/dist/src/typus_stake_pool/admin/functions.js +66 -53
- package/dist/src/typus_stake_pool/admin/structs.d.ts +191 -191
- package/dist/src/typus_stake_pool/admin/structs.js +179 -179
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +50 -44
- package/dist/src/typus_stake_pool/stake-pool/functions.js +127 -88
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +202 -202
- package/dist/src/typus_stake_pool/stake-pool/structs.js +432 -432
- package/dist/src/user/history.js +6 -4
- package/dist/src/user/order.js +34 -34
- package/package.json +1 -1
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -8
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -11
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -6
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -6
- /package/dist/src/_dependencies/source/{0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded → 0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274}/vault/structs.js +0 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import * as reified from "../../../../_framework/reified";
|
|
2
|
+
import { PhantomReified, Reified, StructClass, ToField, ToTypeStr, ToTypeStr as ToPhantom } from "../../../../_framework/reified";
|
|
3
|
+
import { FieldsWithTypes } from "../../../../_framework/util";
|
|
4
|
+
import { Vector } from "../../../../_framework/vector";
|
|
5
|
+
import { Balance } from "../../0x2/balance/structs";
|
|
6
|
+
import { Coin } from "../../0x2/coin/structs";
|
|
7
|
+
import { ID, UID } from "../../0x2/object/structs";
|
|
8
|
+
import { SUI } from "../../0x2/sui/structs";
|
|
9
|
+
import { TableVec } from "../../0x2/table-vec/structs";
|
|
10
|
+
import { PKG_V8 } from "../index";
|
|
11
|
+
import { Tails } from "../typus-nft/structs";
|
|
12
|
+
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
13
|
+
export declare function isDiscountEventV3(type: string): boolean;
|
|
14
|
+
export interface DiscountEventV3Fields {
|
|
15
|
+
pool: ToField<ID>;
|
|
16
|
+
price: ToField<"u64">;
|
|
17
|
+
discountPct: ToField<"u64">;
|
|
18
|
+
discountPrice: ToField<"u64">;
|
|
19
|
+
user: ToField<"address">;
|
|
20
|
+
vrfInput: ToField<Vector<"u8">>;
|
|
21
|
+
level: ToField<"u64">;
|
|
22
|
+
}
|
|
23
|
+
export type DiscountEventV3Reified = Reified<DiscountEventV3, DiscountEventV3Fields>;
|
|
24
|
+
export declare class DiscountEventV3 implements StructClass {
|
|
25
|
+
__StructClass: true;
|
|
26
|
+
static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::DiscountEventV3";
|
|
27
|
+
static readonly $numTypeParams = 0;
|
|
28
|
+
static readonly $isPhantom: readonly [];
|
|
29
|
+
readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::DiscountEventV3";
|
|
30
|
+
readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::DiscountEventV3`;
|
|
31
|
+
readonly $typeArgs: [];
|
|
32
|
+
readonly $isPhantom: readonly [];
|
|
33
|
+
readonly pool: ToField<ID>;
|
|
34
|
+
readonly price: ToField<"u64">;
|
|
35
|
+
readonly discountPct: ToField<"u64">;
|
|
36
|
+
readonly discountPrice: ToField<"u64">;
|
|
37
|
+
readonly user: ToField<"address">;
|
|
38
|
+
readonly vrfInput: ToField<Vector<"u8">>;
|
|
39
|
+
readonly level: ToField<"u64">;
|
|
40
|
+
private constructor();
|
|
41
|
+
static reified(): DiscountEventV3Reified;
|
|
42
|
+
static get r(): reified.StructClassReified<DiscountEventV3, DiscountEventV3Fields>;
|
|
43
|
+
static phantom(): PhantomReified<ToTypeStr<DiscountEventV3>>;
|
|
44
|
+
static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::DiscountEventV3">;
|
|
45
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
46
|
+
pool: {
|
|
47
|
+
bytes: string;
|
|
48
|
+
};
|
|
49
|
+
price: string;
|
|
50
|
+
discount_pct: string;
|
|
51
|
+
discount_price: string;
|
|
52
|
+
user: string;
|
|
53
|
+
vrf_input: number[];
|
|
54
|
+
level: string;
|
|
55
|
+
}, {
|
|
56
|
+
pool: {
|
|
57
|
+
bytes: string;
|
|
58
|
+
};
|
|
59
|
+
price: string | number | bigint;
|
|
60
|
+
discount_pct: string | number | bigint;
|
|
61
|
+
discount_price: string | number | bigint;
|
|
62
|
+
user: string;
|
|
63
|
+
vrf_input: Iterable<number> & {
|
|
64
|
+
length: number;
|
|
65
|
+
};
|
|
66
|
+
level: string | number | bigint;
|
|
67
|
+
}>;
|
|
68
|
+
static fromFields(fields: Record<string, any>): DiscountEventV3;
|
|
69
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): DiscountEventV3;
|
|
70
|
+
static fromBcs(data: Uint8Array): DiscountEventV3;
|
|
71
|
+
toJSONField(): {
|
|
72
|
+
pool: string;
|
|
73
|
+
price: string;
|
|
74
|
+
discountPct: string;
|
|
75
|
+
discountPrice: string;
|
|
76
|
+
user: string;
|
|
77
|
+
vrfInput: number[];
|
|
78
|
+
level: string;
|
|
79
|
+
};
|
|
80
|
+
toJSON(): {
|
|
81
|
+
pool: string;
|
|
82
|
+
price: string;
|
|
83
|
+
discountPct: string;
|
|
84
|
+
discountPrice: string;
|
|
85
|
+
user: string;
|
|
86
|
+
vrfInput: number[];
|
|
87
|
+
level: string;
|
|
88
|
+
$typeName: string;
|
|
89
|
+
$typeArgs: [];
|
|
90
|
+
};
|
|
91
|
+
static fromJSONField(field: any): DiscountEventV3;
|
|
92
|
+
static fromJSON(json: Record<string, any>): DiscountEventV3;
|
|
93
|
+
static fromSuiParsedData(content: SuiParsedData): DiscountEventV3;
|
|
94
|
+
static fromSuiObjectData(data: SuiObjectData): DiscountEventV3;
|
|
95
|
+
static fetch(client: SuiClient, id: string): Promise<DiscountEventV3>;
|
|
96
|
+
}
|
|
97
|
+
export declare function isMintRequest(type: string): boolean;
|
|
98
|
+
export interface MintRequestFields {
|
|
99
|
+
user: ToField<"address">;
|
|
100
|
+
coin: ToField<Coin<ToPhantom<SUI>>>;
|
|
101
|
+
vrfInput: ToField<Vector<"u8">>;
|
|
102
|
+
}
|
|
103
|
+
export type MintRequestReified = Reified<MintRequest, MintRequestFields>;
|
|
104
|
+
export declare class MintRequest implements StructClass {
|
|
105
|
+
__StructClass: true;
|
|
106
|
+
static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequest";
|
|
107
|
+
static readonly $numTypeParams = 0;
|
|
108
|
+
static readonly $isPhantom: readonly [];
|
|
109
|
+
readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequest";
|
|
110
|
+
readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::MintRequest`;
|
|
111
|
+
readonly $typeArgs: [];
|
|
112
|
+
readonly $isPhantom: readonly [];
|
|
113
|
+
readonly user: ToField<"address">;
|
|
114
|
+
readonly coin: ToField<Coin<ToPhantom<SUI>>>;
|
|
115
|
+
readonly vrfInput: ToField<Vector<"u8">>;
|
|
116
|
+
private constructor();
|
|
117
|
+
static reified(): MintRequestReified;
|
|
118
|
+
static get r(): reified.StructClassReified<MintRequest, MintRequestFields>;
|
|
119
|
+
static phantom(): PhantomReified<ToTypeStr<MintRequest>>;
|
|
120
|
+
static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequest">;
|
|
121
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
122
|
+
user: string;
|
|
123
|
+
coin: {
|
|
124
|
+
id: {
|
|
125
|
+
id: {
|
|
126
|
+
bytes: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
balance: {
|
|
130
|
+
value: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
vrf_input: number[];
|
|
134
|
+
}, {
|
|
135
|
+
user: string;
|
|
136
|
+
coin: {
|
|
137
|
+
id: {
|
|
138
|
+
id: {
|
|
139
|
+
bytes: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
balance: {
|
|
143
|
+
value: string | number | bigint;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
vrf_input: Iterable<number> & {
|
|
147
|
+
length: number;
|
|
148
|
+
};
|
|
149
|
+
}>;
|
|
150
|
+
static fromFields(fields: Record<string, any>): MintRequest;
|
|
151
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): MintRequest;
|
|
152
|
+
static fromBcs(data: Uint8Array): MintRequest;
|
|
153
|
+
toJSONField(): {
|
|
154
|
+
user: string;
|
|
155
|
+
coin: {
|
|
156
|
+
id: string;
|
|
157
|
+
balance: {
|
|
158
|
+
value: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
vrfInput: number[];
|
|
162
|
+
};
|
|
163
|
+
toJSON(): {
|
|
164
|
+
user: string;
|
|
165
|
+
coin: {
|
|
166
|
+
id: string;
|
|
167
|
+
balance: {
|
|
168
|
+
value: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
vrfInput: number[];
|
|
172
|
+
$typeName: string;
|
|
173
|
+
$typeArgs: [];
|
|
174
|
+
};
|
|
175
|
+
static fromJSONField(field: any): MintRequest;
|
|
176
|
+
static fromJSON(json: Record<string, any>): MintRequest;
|
|
177
|
+
static fromSuiParsedData(content: SuiParsedData): MintRequest;
|
|
178
|
+
static fromSuiObjectData(data: SuiObjectData): MintRequest;
|
|
179
|
+
static fetch(client: SuiClient, id: string): Promise<MintRequest>;
|
|
180
|
+
}
|
|
181
|
+
export declare function isMintRequestEvent(type: string): boolean;
|
|
182
|
+
export interface MintRequestEventFields {
|
|
183
|
+
user: ToField<"address">;
|
|
184
|
+
vrfInput: ToField<Vector<"u8">>;
|
|
185
|
+
remaining: ToField<"u64">;
|
|
186
|
+
seed: ToField<"u64">;
|
|
187
|
+
}
|
|
188
|
+
export type MintRequestEventReified = Reified<MintRequestEvent, MintRequestEventFields>;
|
|
189
|
+
export declare class MintRequestEvent implements StructClass {
|
|
190
|
+
__StructClass: true;
|
|
191
|
+
static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequestEvent";
|
|
192
|
+
static readonly $numTypeParams = 0;
|
|
193
|
+
static readonly $isPhantom: readonly [];
|
|
194
|
+
readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequestEvent";
|
|
195
|
+
readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::MintRequestEvent`;
|
|
196
|
+
readonly $typeArgs: [];
|
|
197
|
+
readonly $isPhantom: readonly [];
|
|
198
|
+
readonly user: ToField<"address">;
|
|
199
|
+
readonly vrfInput: ToField<Vector<"u8">>;
|
|
200
|
+
readonly remaining: ToField<"u64">;
|
|
201
|
+
readonly seed: ToField<"u64">;
|
|
202
|
+
private constructor();
|
|
203
|
+
static reified(): MintRequestEventReified;
|
|
204
|
+
static get r(): reified.StructClassReified<MintRequestEvent, MintRequestEventFields>;
|
|
205
|
+
static phantom(): PhantomReified<ToTypeStr<MintRequestEvent>>;
|
|
206
|
+
static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequestEvent">;
|
|
207
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
208
|
+
user: string;
|
|
209
|
+
vrf_input: number[];
|
|
210
|
+
remaining: string;
|
|
211
|
+
seed: string;
|
|
212
|
+
}, {
|
|
213
|
+
user: string;
|
|
214
|
+
vrf_input: Iterable<number> & {
|
|
215
|
+
length: number;
|
|
216
|
+
};
|
|
217
|
+
remaining: string | number | bigint;
|
|
218
|
+
seed: string | number | bigint;
|
|
219
|
+
}>;
|
|
220
|
+
static fromFields(fields: Record<string, any>): MintRequestEvent;
|
|
221
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): MintRequestEvent;
|
|
222
|
+
static fromBcs(data: Uint8Array): MintRequestEvent;
|
|
223
|
+
toJSONField(): {
|
|
224
|
+
user: string;
|
|
225
|
+
vrfInput: number[];
|
|
226
|
+
remaining: string;
|
|
227
|
+
seed: string;
|
|
228
|
+
};
|
|
229
|
+
toJSON(): {
|
|
230
|
+
user: string;
|
|
231
|
+
vrfInput: number[];
|
|
232
|
+
remaining: string;
|
|
233
|
+
seed: string;
|
|
234
|
+
$typeName: string;
|
|
235
|
+
$typeArgs: [];
|
|
236
|
+
};
|
|
237
|
+
static fromJSONField(field: any): MintRequestEvent;
|
|
238
|
+
static fromJSON(json: Record<string, any>): MintRequestEvent;
|
|
239
|
+
static fromSuiParsedData(content: SuiParsedData): MintRequestEvent;
|
|
240
|
+
static fromSuiObjectData(data: SuiObjectData): MintRequestEvent;
|
|
241
|
+
static fetch(client: SuiClient, id: string): Promise<MintRequestEvent>;
|
|
242
|
+
}
|
|
243
|
+
export declare function isPool(type: string): boolean;
|
|
244
|
+
export interface PoolFields {
|
|
245
|
+
id: ToField<UID>;
|
|
246
|
+
num: ToField<"u64">;
|
|
247
|
+
price: ToField<"u64">;
|
|
248
|
+
startMs: ToField<"u64">;
|
|
249
|
+
endMs: ToField<"u64">;
|
|
250
|
+
authority: ToField<"address">;
|
|
251
|
+
publicKey: ToField<Vector<"u8">>;
|
|
252
|
+
discountPcts: ToField<Vector<"u64">>;
|
|
253
|
+
isLive: ToField<"bool">;
|
|
254
|
+
balance: ToField<Balance<ToPhantom<SUI>>>;
|
|
255
|
+
tails: ToField<TableVec<ToPhantom<Tails>>>;
|
|
256
|
+
requests: ToField<Vector<MintRequest>>;
|
|
257
|
+
}
|
|
258
|
+
export type PoolReified = Reified<Pool, PoolFields>;
|
|
259
|
+
export declare class Pool implements StructClass {
|
|
260
|
+
__StructClass: true;
|
|
261
|
+
static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::Pool";
|
|
262
|
+
static readonly $numTypeParams = 0;
|
|
263
|
+
static readonly $isPhantom: readonly [];
|
|
264
|
+
readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::Pool";
|
|
265
|
+
readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::Pool`;
|
|
266
|
+
readonly $typeArgs: [];
|
|
267
|
+
readonly $isPhantom: readonly [];
|
|
268
|
+
readonly id: ToField<UID>;
|
|
269
|
+
readonly num: ToField<"u64">;
|
|
270
|
+
readonly price: ToField<"u64">;
|
|
271
|
+
readonly startMs: ToField<"u64">;
|
|
272
|
+
readonly endMs: ToField<"u64">;
|
|
273
|
+
readonly authority: ToField<"address">;
|
|
274
|
+
readonly publicKey: ToField<Vector<"u8">>;
|
|
275
|
+
readonly discountPcts: ToField<Vector<"u64">>;
|
|
276
|
+
readonly isLive: ToField<"bool">;
|
|
277
|
+
readonly balance: ToField<Balance<ToPhantom<SUI>>>;
|
|
278
|
+
readonly tails: ToField<TableVec<ToPhantom<Tails>>>;
|
|
279
|
+
readonly requests: ToField<Vector<MintRequest>>;
|
|
280
|
+
private constructor();
|
|
281
|
+
static reified(): PoolReified;
|
|
282
|
+
static get r(): reified.StructClassReified<Pool, PoolFields>;
|
|
283
|
+
static phantom(): PhantomReified<ToTypeStr<Pool>>;
|
|
284
|
+
static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::Pool">;
|
|
285
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
286
|
+
id: {
|
|
287
|
+
id: {
|
|
288
|
+
bytes: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
num: string;
|
|
292
|
+
price: string;
|
|
293
|
+
start_ms: string;
|
|
294
|
+
end_ms: string;
|
|
295
|
+
authority: string;
|
|
296
|
+
public_key: number[];
|
|
297
|
+
discount_pcts: string[];
|
|
298
|
+
is_live: boolean;
|
|
299
|
+
balance: {
|
|
300
|
+
value: string;
|
|
301
|
+
};
|
|
302
|
+
tails: {
|
|
303
|
+
contents: {
|
|
304
|
+
id: {
|
|
305
|
+
id: {
|
|
306
|
+
bytes: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
size: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
requests: {
|
|
313
|
+
user: string;
|
|
314
|
+
coin: {
|
|
315
|
+
id: {
|
|
316
|
+
id: {
|
|
317
|
+
bytes: string;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
balance: {
|
|
321
|
+
value: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
vrf_input: number[];
|
|
325
|
+
}[];
|
|
326
|
+
}, {
|
|
327
|
+
id: {
|
|
328
|
+
id: {
|
|
329
|
+
bytes: string;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
num: string | number | bigint;
|
|
333
|
+
price: string | number | bigint;
|
|
334
|
+
start_ms: string | number | bigint;
|
|
335
|
+
end_ms: string | number | bigint;
|
|
336
|
+
authority: string;
|
|
337
|
+
public_key: Iterable<number> & {
|
|
338
|
+
length: number;
|
|
339
|
+
};
|
|
340
|
+
discount_pcts: Iterable<string | number | bigint> & {
|
|
341
|
+
length: number;
|
|
342
|
+
};
|
|
343
|
+
is_live: boolean;
|
|
344
|
+
balance: {
|
|
345
|
+
value: string | number | bigint;
|
|
346
|
+
};
|
|
347
|
+
tails: {
|
|
348
|
+
contents: {
|
|
349
|
+
id: {
|
|
350
|
+
id: {
|
|
351
|
+
bytes: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
size: string | number | bigint;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
requests: Iterable<{
|
|
358
|
+
user: string;
|
|
359
|
+
coin: {
|
|
360
|
+
id: {
|
|
361
|
+
id: {
|
|
362
|
+
bytes: string;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
balance: {
|
|
366
|
+
value: string | number | bigint;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
vrf_input: Iterable<number> & {
|
|
370
|
+
length: number;
|
|
371
|
+
};
|
|
372
|
+
}> & {
|
|
373
|
+
length: number;
|
|
374
|
+
};
|
|
375
|
+
}>;
|
|
376
|
+
static fromFields(fields: Record<string, any>): Pool;
|
|
377
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): Pool;
|
|
378
|
+
static fromBcs(data: Uint8Array): Pool;
|
|
379
|
+
toJSONField(): {
|
|
380
|
+
id: string;
|
|
381
|
+
num: string;
|
|
382
|
+
price: string;
|
|
383
|
+
startMs: string;
|
|
384
|
+
endMs: string;
|
|
385
|
+
authority: string;
|
|
386
|
+
publicKey: number[];
|
|
387
|
+
discountPcts: string[];
|
|
388
|
+
isLive: boolean;
|
|
389
|
+
balance: {
|
|
390
|
+
value: string;
|
|
391
|
+
};
|
|
392
|
+
tails: {
|
|
393
|
+
contents: {
|
|
394
|
+
id: string;
|
|
395
|
+
size: string;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
requests: {
|
|
399
|
+
user: string;
|
|
400
|
+
coin: {
|
|
401
|
+
id: string;
|
|
402
|
+
balance: {
|
|
403
|
+
value: string;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
vrfInput: number[];
|
|
407
|
+
}[];
|
|
408
|
+
};
|
|
409
|
+
toJSON(): {
|
|
410
|
+
id: string;
|
|
411
|
+
num: string;
|
|
412
|
+
price: string;
|
|
413
|
+
startMs: string;
|
|
414
|
+
endMs: string;
|
|
415
|
+
authority: string;
|
|
416
|
+
publicKey: number[];
|
|
417
|
+
discountPcts: string[];
|
|
418
|
+
isLive: boolean;
|
|
419
|
+
balance: {
|
|
420
|
+
value: string;
|
|
421
|
+
};
|
|
422
|
+
tails: {
|
|
423
|
+
contents: {
|
|
424
|
+
id: string;
|
|
425
|
+
size: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
requests: {
|
|
429
|
+
user: string;
|
|
430
|
+
coin: {
|
|
431
|
+
id: string;
|
|
432
|
+
balance: {
|
|
433
|
+
value: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
vrfInput: number[];
|
|
437
|
+
}[];
|
|
438
|
+
$typeName: string;
|
|
439
|
+
$typeArgs: [];
|
|
440
|
+
};
|
|
441
|
+
static fromJSONField(field: any): Pool;
|
|
442
|
+
static fromJSON(json: Record<string, any>): Pool;
|
|
443
|
+
static fromSuiParsedData(content: SuiParsedData): Pool;
|
|
444
|
+
static fromSuiObjectData(data: SuiObjectData): Pool;
|
|
445
|
+
static fetch(client: SuiClient, id: string): Promise<Pool>;
|
|
446
|
+
}
|