@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,489 @@
|
|
|
1
|
+
import * as reified from "../../../../_framework/reified";
|
|
2
|
+
import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../../../_framework/reified";
|
|
3
|
+
import { FieldsWithTypes } from "../../../../_framework/util";
|
|
4
|
+
import { Vector } from "../../../../_framework/vector";
|
|
5
|
+
import { String } from "../../0x1/ascii/structs";
|
|
6
|
+
import { TypeName } from "../../0x1/type-name/structs";
|
|
7
|
+
import { Balance } from "../../0x2/balance/structs";
|
|
8
|
+
import { UID } from "../../0x2/object/structs";
|
|
9
|
+
import { BigVector } from "../big-vector/structs";
|
|
10
|
+
import { PKG_V1 } from "../index";
|
|
11
|
+
import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
|
|
12
|
+
export declare function isAirdrop(type: string): boolean;
|
|
13
|
+
export interface AirdropFields {
|
|
14
|
+
user: ToField<"address">;
|
|
15
|
+
value: ToField<"u64">;
|
|
16
|
+
}
|
|
17
|
+
export type AirdropReified = Reified<Airdrop, AirdropFields>;
|
|
18
|
+
export declare class Airdrop implements StructClass {
|
|
19
|
+
__StructClass: true;
|
|
20
|
+
static readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::Airdrop";
|
|
21
|
+
static readonly $numTypeParams = 0;
|
|
22
|
+
static readonly $isPhantom: readonly [];
|
|
23
|
+
readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::Airdrop";
|
|
24
|
+
readonly $fullTypeName: `${typeof PKG_V1}::airdrop::Airdrop`;
|
|
25
|
+
readonly $typeArgs: [];
|
|
26
|
+
readonly $isPhantom: readonly [];
|
|
27
|
+
readonly user: ToField<"address">;
|
|
28
|
+
readonly value: ToField<"u64">;
|
|
29
|
+
private constructor();
|
|
30
|
+
static reified(): AirdropReified;
|
|
31
|
+
static get r(): reified.StructClassReified<Airdrop, AirdropFields>;
|
|
32
|
+
static phantom(): PhantomReified<ToTypeStr<Airdrop>>;
|
|
33
|
+
static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::Airdrop">;
|
|
34
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
35
|
+
user: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}, {
|
|
38
|
+
user: string;
|
|
39
|
+
value: string | number | bigint;
|
|
40
|
+
}>;
|
|
41
|
+
static fromFields(fields: Record<string, any>): Airdrop;
|
|
42
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): Airdrop;
|
|
43
|
+
static fromBcs(data: Uint8Array): Airdrop;
|
|
44
|
+
toJSONField(): {
|
|
45
|
+
user: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
toJSON(): {
|
|
49
|
+
user: string;
|
|
50
|
+
value: string;
|
|
51
|
+
$typeName: string;
|
|
52
|
+
$typeArgs: [];
|
|
53
|
+
};
|
|
54
|
+
static fromJSONField(field: any): Airdrop;
|
|
55
|
+
static fromJSON(json: Record<string, any>): Airdrop;
|
|
56
|
+
static fromSuiParsedData(content: SuiParsedData): Airdrop;
|
|
57
|
+
static fromSuiObjectData(data: SuiObjectData): Airdrop;
|
|
58
|
+
static fetch(client: SuiClient, id: string): Promise<Airdrop>;
|
|
59
|
+
}
|
|
60
|
+
export declare function isAirdropInfo(type: string): boolean;
|
|
61
|
+
export interface AirdropInfoFields<TOKEN extends PhantomTypeArgument> {
|
|
62
|
+
id: ToField<UID>;
|
|
63
|
+
balance: ToField<Balance<TOKEN>>;
|
|
64
|
+
airdrops: ToField<BigVector>;
|
|
65
|
+
}
|
|
66
|
+
export type AirdropInfoReified<TOKEN extends PhantomTypeArgument> = Reified<AirdropInfo<TOKEN>, AirdropInfoFields<TOKEN>>;
|
|
67
|
+
export declare class AirdropInfo<TOKEN extends PhantomTypeArgument> implements StructClass {
|
|
68
|
+
__StructClass: true;
|
|
69
|
+
static readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::AirdropInfo";
|
|
70
|
+
static readonly $numTypeParams = 1;
|
|
71
|
+
static readonly $isPhantom: readonly [true];
|
|
72
|
+
readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::AirdropInfo";
|
|
73
|
+
readonly $fullTypeName: `${typeof PKG_V1}::airdrop::AirdropInfo<${PhantomToTypeStr<TOKEN>}>`;
|
|
74
|
+
readonly $typeArgs: [PhantomToTypeStr<TOKEN>];
|
|
75
|
+
readonly $isPhantom: readonly [true];
|
|
76
|
+
readonly id: ToField<UID>;
|
|
77
|
+
readonly balance: ToField<Balance<TOKEN>>;
|
|
78
|
+
readonly airdrops: ToField<BigVector>;
|
|
79
|
+
private constructor();
|
|
80
|
+
static reified<TOKEN extends PhantomReified<PhantomTypeArgument>>(TOKEN: TOKEN): AirdropInfoReified<ToPhantomTypeArgument<TOKEN>>;
|
|
81
|
+
static get r(): typeof AirdropInfo.reified;
|
|
82
|
+
static phantom<TOKEN extends PhantomReified<PhantomTypeArgument>>(TOKEN: TOKEN): PhantomReified<ToTypeStr<AirdropInfo<ToPhantomTypeArgument<TOKEN>>>>;
|
|
83
|
+
static get p(): typeof AirdropInfo.phantom;
|
|
84
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
85
|
+
id: {
|
|
86
|
+
id: {
|
|
87
|
+
bytes: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
balance: {
|
|
91
|
+
value: string;
|
|
92
|
+
};
|
|
93
|
+
airdrops: {
|
|
94
|
+
id: {
|
|
95
|
+
id: {
|
|
96
|
+
bytes: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
element_type: {
|
|
100
|
+
name: {
|
|
101
|
+
bytes: number[];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
slice_idx: string;
|
|
105
|
+
slice_size: number;
|
|
106
|
+
length: string;
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
id: {
|
|
110
|
+
id: {
|
|
111
|
+
bytes: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
balance: {
|
|
115
|
+
value: string | number | bigint;
|
|
116
|
+
};
|
|
117
|
+
airdrops: {
|
|
118
|
+
id: {
|
|
119
|
+
id: {
|
|
120
|
+
bytes: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
element_type: {
|
|
124
|
+
name: {
|
|
125
|
+
bytes: Iterable<number> & {
|
|
126
|
+
length: number;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
slice_idx: string | number | bigint;
|
|
131
|
+
slice_size: number;
|
|
132
|
+
length: string | number | bigint;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
static fromFields<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, fields: Record<string, any>): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
136
|
+
static fromFieldsWithTypes<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, item: FieldsWithTypes): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
137
|
+
static fromBcs<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, data: Uint8Array): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
138
|
+
toJSONField(): {
|
|
139
|
+
id: string;
|
|
140
|
+
balance: {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
143
|
+
airdrops: {
|
|
144
|
+
id: string;
|
|
145
|
+
elementType: {
|
|
146
|
+
name: string;
|
|
147
|
+
};
|
|
148
|
+
sliceIdx: string;
|
|
149
|
+
sliceSize: number;
|
|
150
|
+
length: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
toJSON(): {
|
|
154
|
+
id: string;
|
|
155
|
+
balance: {
|
|
156
|
+
value: string;
|
|
157
|
+
};
|
|
158
|
+
airdrops: {
|
|
159
|
+
id: string;
|
|
160
|
+
elementType: {
|
|
161
|
+
name: string;
|
|
162
|
+
};
|
|
163
|
+
sliceIdx: string;
|
|
164
|
+
sliceSize: number;
|
|
165
|
+
length: string;
|
|
166
|
+
};
|
|
167
|
+
$typeName: string;
|
|
168
|
+
$typeArgs: [reified.PhantomToTypeStr<TOKEN>];
|
|
169
|
+
};
|
|
170
|
+
static fromJSONField<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, field: any): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
171
|
+
static fromJSON<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, json: Record<string, any>): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
172
|
+
static fromSuiParsedData<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, content: SuiParsedData): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
173
|
+
static fromSuiObjectData<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, data: SuiObjectData): AirdropInfo<ToPhantomTypeArgument<TOKEN>>;
|
|
174
|
+
static fetch<TOKEN extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: TOKEN, id: string): Promise<AirdropInfo<ToPhantomTypeArgument<TOKEN>>>;
|
|
175
|
+
}
|
|
176
|
+
export declare function isClaimAirdropEvent(type: string): boolean;
|
|
177
|
+
export interface ClaimAirdropEventFields {
|
|
178
|
+
token: ToField<TypeName>;
|
|
179
|
+
key: ToField<String>;
|
|
180
|
+
user: ToField<"address">;
|
|
181
|
+
log: ToField<Vector<"u64">>;
|
|
182
|
+
bcsPadding: ToField<Vector<Vector<"u8">>>;
|
|
183
|
+
}
|
|
184
|
+
export type ClaimAirdropEventReified = Reified<ClaimAirdropEvent, ClaimAirdropEventFields>;
|
|
185
|
+
export declare class ClaimAirdropEvent implements StructClass {
|
|
186
|
+
__StructClass: true;
|
|
187
|
+
static readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::ClaimAirdropEvent";
|
|
188
|
+
static readonly $numTypeParams = 0;
|
|
189
|
+
static readonly $isPhantom: readonly [];
|
|
190
|
+
readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::ClaimAirdropEvent";
|
|
191
|
+
readonly $fullTypeName: `${typeof PKG_V1}::airdrop::ClaimAirdropEvent`;
|
|
192
|
+
readonly $typeArgs: [];
|
|
193
|
+
readonly $isPhantom: readonly [];
|
|
194
|
+
readonly token: ToField<TypeName>;
|
|
195
|
+
readonly key: ToField<String>;
|
|
196
|
+
readonly user: ToField<"address">;
|
|
197
|
+
readonly log: ToField<Vector<"u64">>;
|
|
198
|
+
readonly bcsPadding: ToField<Vector<Vector<"u8">>>;
|
|
199
|
+
private constructor();
|
|
200
|
+
static reified(): ClaimAirdropEventReified;
|
|
201
|
+
static get r(): reified.StructClassReified<ClaimAirdropEvent, ClaimAirdropEventFields>;
|
|
202
|
+
static phantom(): PhantomReified<ToTypeStr<ClaimAirdropEvent>>;
|
|
203
|
+
static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::ClaimAirdropEvent">;
|
|
204
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
205
|
+
token: {
|
|
206
|
+
name: {
|
|
207
|
+
bytes: number[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
key: {
|
|
211
|
+
bytes: number[];
|
|
212
|
+
};
|
|
213
|
+
user: string;
|
|
214
|
+
log: string[];
|
|
215
|
+
bcs_padding: number[][];
|
|
216
|
+
}, {
|
|
217
|
+
token: {
|
|
218
|
+
name: {
|
|
219
|
+
bytes: Iterable<number> & {
|
|
220
|
+
length: number;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
key: {
|
|
225
|
+
bytes: Iterable<number> & {
|
|
226
|
+
length: number;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
user: string;
|
|
230
|
+
log: Iterable<string | number | bigint> & {
|
|
231
|
+
length: number;
|
|
232
|
+
};
|
|
233
|
+
bcs_padding: Iterable<Iterable<number> & {
|
|
234
|
+
length: number;
|
|
235
|
+
}> & {
|
|
236
|
+
length: number;
|
|
237
|
+
};
|
|
238
|
+
}>;
|
|
239
|
+
static fromFields(fields: Record<string, any>): ClaimAirdropEvent;
|
|
240
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): ClaimAirdropEvent;
|
|
241
|
+
static fromBcs(data: Uint8Array): ClaimAirdropEvent;
|
|
242
|
+
toJSONField(): {
|
|
243
|
+
token: {
|
|
244
|
+
name: string;
|
|
245
|
+
};
|
|
246
|
+
key: string;
|
|
247
|
+
user: string;
|
|
248
|
+
log: string[];
|
|
249
|
+
bcsPadding: number[][];
|
|
250
|
+
};
|
|
251
|
+
toJSON(): {
|
|
252
|
+
token: {
|
|
253
|
+
name: string;
|
|
254
|
+
};
|
|
255
|
+
key: string;
|
|
256
|
+
user: string;
|
|
257
|
+
log: string[];
|
|
258
|
+
bcsPadding: number[][];
|
|
259
|
+
$typeName: string;
|
|
260
|
+
$typeArgs: [];
|
|
261
|
+
};
|
|
262
|
+
static fromJSONField(field: any): ClaimAirdropEvent;
|
|
263
|
+
static fromJSON(json: Record<string, any>): ClaimAirdropEvent;
|
|
264
|
+
static fromSuiParsedData(content: SuiParsedData): ClaimAirdropEvent;
|
|
265
|
+
static fromSuiObjectData(data: SuiObjectData): ClaimAirdropEvent;
|
|
266
|
+
static fetch(client: SuiClient, id: string): Promise<ClaimAirdropEvent>;
|
|
267
|
+
}
|
|
268
|
+
export declare function isRemoveAirdropEvent(type: string): boolean;
|
|
269
|
+
export interface RemoveAirdropEventFields {
|
|
270
|
+
token: ToField<TypeName>;
|
|
271
|
+
key: ToField<String>;
|
|
272
|
+
log: ToField<Vector<"u64">>;
|
|
273
|
+
bcsPadding: ToField<Vector<Vector<"u8">>>;
|
|
274
|
+
}
|
|
275
|
+
export type RemoveAirdropEventReified = Reified<RemoveAirdropEvent, RemoveAirdropEventFields>;
|
|
276
|
+
export declare class RemoveAirdropEvent implements StructClass {
|
|
277
|
+
__StructClass: true;
|
|
278
|
+
static readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::RemoveAirdropEvent";
|
|
279
|
+
static readonly $numTypeParams = 0;
|
|
280
|
+
static readonly $isPhantom: readonly [];
|
|
281
|
+
readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::RemoveAirdropEvent";
|
|
282
|
+
readonly $fullTypeName: `${typeof PKG_V1}::airdrop::RemoveAirdropEvent`;
|
|
283
|
+
readonly $typeArgs: [];
|
|
284
|
+
readonly $isPhantom: readonly [];
|
|
285
|
+
readonly token: ToField<TypeName>;
|
|
286
|
+
readonly key: ToField<String>;
|
|
287
|
+
readonly log: ToField<Vector<"u64">>;
|
|
288
|
+
readonly bcsPadding: ToField<Vector<Vector<"u8">>>;
|
|
289
|
+
private constructor();
|
|
290
|
+
static reified(): RemoveAirdropEventReified;
|
|
291
|
+
static get r(): reified.StructClassReified<RemoveAirdropEvent, RemoveAirdropEventFields>;
|
|
292
|
+
static phantom(): PhantomReified<ToTypeStr<RemoveAirdropEvent>>;
|
|
293
|
+
static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::RemoveAirdropEvent">;
|
|
294
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
295
|
+
token: {
|
|
296
|
+
name: {
|
|
297
|
+
bytes: number[];
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
key: {
|
|
301
|
+
bytes: number[];
|
|
302
|
+
};
|
|
303
|
+
log: string[];
|
|
304
|
+
bcs_padding: number[][];
|
|
305
|
+
}, {
|
|
306
|
+
token: {
|
|
307
|
+
name: {
|
|
308
|
+
bytes: Iterable<number> & {
|
|
309
|
+
length: number;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
key: {
|
|
314
|
+
bytes: Iterable<number> & {
|
|
315
|
+
length: number;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
log: Iterable<string | number | bigint> & {
|
|
319
|
+
length: number;
|
|
320
|
+
};
|
|
321
|
+
bcs_padding: Iterable<Iterable<number> & {
|
|
322
|
+
length: number;
|
|
323
|
+
}> & {
|
|
324
|
+
length: number;
|
|
325
|
+
};
|
|
326
|
+
}>;
|
|
327
|
+
static fromFields(fields: Record<string, any>): RemoveAirdropEvent;
|
|
328
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): RemoveAirdropEvent;
|
|
329
|
+
static fromBcs(data: Uint8Array): RemoveAirdropEvent;
|
|
330
|
+
toJSONField(): {
|
|
331
|
+
token: {
|
|
332
|
+
name: string;
|
|
333
|
+
};
|
|
334
|
+
key: string;
|
|
335
|
+
log: string[];
|
|
336
|
+
bcsPadding: number[][];
|
|
337
|
+
};
|
|
338
|
+
toJSON(): {
|
|
339
|
+
token: {
|
|
340
|
+
name: string;
|
|
341
|
+
};
|
|
342
|
+
key: string;
|
|
343
|
+
log: string[];
|
|
344
|
+
bcsPadding: number[][];
|
|
345
|
+
$typeName: string;
|
|
346
|
+
$typeArgs: [];
|
|
347
|
+
};
|
|
348
|
+
static fromJSONField(field: any): RemoveAirdropEvent;
|
|
349
|
+
static fromJSON(json: Record<string, any>): RemoveAirdropEvent;
|
|
350
|
+
static fromSuiParsedData(content: SuiParsedData): RemoveAirdropEvent;
|
|
351
|
+
static fromSuiObjectData(data: SuiObjectData): RemoveAirdropEvent;
|
|
352
|
+
static fetch(client: SuiClient, id: string): Promise<RemoveAirdropEvent>;
|
|
353
|
+
}
|
|
354
|
+
export declare function isSetAirdropEvent(type: string): boolean;
|
|
355
|
+
export interface SetAirdropEventFields {
|
|
356
|
+
token: ToField<TypeName>;
|
|
357
|
+
key: ToField<String>;
|
|
358
|
+
log: ToField<Vector<"u64">>;
|
|
359
|
+
bcsPadding: ToField<Vector<Vector<"u8">>>;
|
|
360
|
+
}
|
|
361
|
+
export type SetAirdropEventReified = Reified<SetAirdropEvent, SetAirdropEventFields>;
|
|
362
|
+
export declare class SetAirdropEvent implements StructClass {
|
|
363
|
+
__StructClass: true;
|
|
364
|
+
static readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::SetAirdropEvent";
|
|
365
|
+
static readonly $numTypeParams = 0;
|
|
366
|
+
static readonly $isPhantom: readonly [];
|
|
367
|
+
readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::SetAirdropEvent";
|
|
368
|
+
readonly $fullTypeName: `${typeof PKG_V1}::airdrop::SetAirdropEvent`;
|
|
369
|
+
readonly $typeArgs: [];
|
|
370
|
+
readonly $isPhantom: readonly [];
|
|
371
|
+
readonly token: ToField<TypeName>;
|
|
372
|
+
readonly key: ToField<String>;
|
|
373
|
+
readonly log: ToField<Vector<"u64">>;
|
|
374
|
+
readonly bcsPadding: ToField<Vector<Vector<"u8">>>;
|
|
375
|
+
private constructor();
|
|
376
|
+
static reified(): SetAirdropEventReified;
|
|
377
|
+
static get r(): reified.StructClassReified<SetAirdropEvent, SetAirdropEventFields>;
|
|
378
|
+
static phantom(): PhantomReified<ToTypeStr<SetAirdropEvent>>;
|
|
379
|
+
static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::SetAirdropEvent">;
|
|
380
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
381
|
+
token: {
|
|
382
|
+
name: {
|
|
383
|
+
bytes: number[];
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
key: {
|
|
387
|
+
bytes: number[];
|
|
388
|
+
};
|
|
389
|
+
log: string[];
|
|
390
|
+
bcs_padding: number[][];
|
|
391
|
+
}, {
|
|
392
|
+
token: {
|
|
393
|
+
name: {
|
|
394
|
+
bytes: Iterable<number> & {
|
|
395
|
+
length: number;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
key: {
|
|
400
|
+
bytes: Iterable<number> & {
|
|
401
|
+
length: number;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
log: Iterable<string | number | bigint> & {
|
|
405
|
+
length: number;
|
|
406
|
+
};
|
|
407
|
+
bcs_padding: Iterable<Iterable<number> & {
|
|
408
|
+
length: number;
|
|
409
|
+
}> & {
|
|
410
|
+
length: number;
|
|
411
|
+
};
|
|
412
|
+
}>;
|
|
413
|
+
static fromFields(fields: Record<string, any>): SetAirdropEvent;
|
|
414
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): SetAirdropEvent;
|
|
415
|
+
static fromBcs(data: Uint8Array): SetAirdropEvent;
|
|
416
|
+
toJSONField(): {
|
|
417
|
+
token: {
|
|
418
|
+
name: string;
|
|
419
|
+
};
|
|
420
|
+
key: string;
|
|
421
|
+
log: string[];
|
|
422
|
+
bcsPadding: number[][];
|
|
423
|
+
};
|
|
424
|
+
toJSON(): {
|
|
425
|
+
token: {
|
|
426
|
+
name: string;
|
|
427
|
+
};
|
|
428
|
+
key: string;
|
|
429
|
+
log: string[];
|
|
430
|
+
bcsPadding: number[][];
|
|
431
|
+
$typeName: string;
|
|
432
|
+
$typeArgs: [];
|
|
433
|
+
};
|
|
434
|
+
static fromJSONField(field: any): SetAirdropEvent;
|
|
435
|
+
static fromJSON(json: Record<string, any>): SetAirdropEvent;
|
|
436
|
+
static fromSuiParsedData(content: SuiParsedData): SetAirdropEvent;
|
|
437
|
+
static fromSuiObjectData(data: SuiObjectData): SetAirdropEvent;
|
|
438
|
+
static fetch(client: SuiClient, id: string): Promise<SetAirdropEvent>;
|
|
439
|
+
}
|
|
440
|
+
export declare function isTypusAirdropRegistry(type: string): boolean;
|
|
441
|
+
export interface TypusAirdropRegistryFields {
|
|
442
|
+
id: ToField<UID>;
|
|
443
|
+
}
|
|
444
|
+
export type TypusAirdropRegistryReified = Reified<TypusAirdropRegistry, TypusAirdropRegistryFields>;
|
|
445
|
+
export declare class TypusAirdropRegistry implements StructClass {
|
|
446
|
+
__StructClass: true;
|
|
447
|
+
static readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::TypusAirdropRegistry";
|
|
448
|
+
static readonly $numTypeParams = 0;
|
|
449
|
+
static readonly $isPhantom: readonly [];
|
|
450
|
+
readonly $typeName = "0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::TypusAirdropRegistry";
|
|
451
|
+
readonly $fullTypeName: `${typeof PKG_V1}::airdrop::TypusAirdropRegistry`;
|
|
452
|
+
readonly $typeArgs: [];
|
|
453
|
+
readonly $isPhantom: readonly [];
|
|
454
|
+
readonly id: ToField<UID>;
|
|
455
|
+
private constructor();
|
|
456
|
+
static reified(): TypusAirdropRegistryReified;
|
|
457
|
+
static get r(): reified.StructClassReified<TypusAirdropRegistry, TypusAirdropRegistryFields>;
|
|
458
|
+
static phantom(): PhantomReified<ToTypeStr<TypusAirdropRegistry>>;
|
|
459
|
+
static get p(): reified.PhantomReified<"0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a::airdrop::TypusAirdropRegistry">;
|
|
460
|
+
static get bcs(): import("@mysten/sui/bcs").BcsType<{
|
|
461
|
+
id: {
|
|
462
|
+
id: {
|
|
463
|
+
bytes: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
}, {
|
|
467
|
+
id: {
|
|
468
|
+
id: {
|
|
469
|
+
bytes: string;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
static fromFields(fields: Record<string, any>): TypusAirdropRegistry;
|
|
474
|
+
static fromFieldsWithTypes(item: FieldsWithTypes): TypusAirdropRegistry;
|
|
475
|
+
static fromBcs(data: Uint8Array): TypusAirdropRegistry;
|
|
476
|
+
toJSONField(): {
|
|
477
|
+
id: string;
|
|
478
|
+
};
|
|
479
|
+
toJSON(): {
|
|
480
|
+
id: string;
|
|
481
|
+
$typeName: string;
|
|
482
|
+
$typeArgs: [];
|
|
483
|
+
};
|
|
484
|
+
static fromJSONField(field: any): TypusAirdropRegistry;
|
|
485
|
+
static fromJSON(json: Record<string, any>): TypusAirdropRegistry;
|
|
486
|
+
static fromSuiParsedData(content: SuiParsedData): TypusAirdropRegistry;
|
|
487
|
+
static fromSuiObjectData(data: SuiObjectData): TypusAirdropRegistry;
|
|
488
|
+
static fetch(client: SuiClient, id: string): Promise<TypusAirdropRegistry>;
|
|
489
|
+
}
|