@zing-protocol/zing-sdk 0.0.1 → 0.0.2
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/_generated/index.js +6 -0
- package/dist/_generated/utils/index.d.ts +12 -0
- package/dist/_generated/utils/index.js +135 -0
- package/dist/_generated/zing_framework/coin_utils.d.ts +15 -0
- package/dist/_generated/zing_framework/coin_utils.js +19 -0
- package/dist/_generated/zing_framework/deps/sui/object.d.ts +8 -0
- package/{src/_generated/zing_governance/deps/sui/object.ts → dist/_generated/zing_framework/deps/sui/object.js} +4 -7
- package/dist/_generated/zing_framework/derived_object_bag.d.ts +166 -0
- package/dist/_generated/zing_framework/derived_object_bag.js +221 -0
- package/dist/_generated/zing_framework/derived_table.d.ts +153 -0
- package/dist/_generated/zing_framework/derived_table.js +200 -0
- package/dist/_generated/zing_governance/admin.d.ts +20 -0
- package/dist/_generated/zing_governance/admin.js +26 -0
- package/dist/_generated/zing_governance/deps/sui/object.d.ts +8 -0
- package/{src/_generated/zing_identity/deps/sui/object.ts → dist/_generated/zing_governance/deps/sui/object.js} +4 -7
- package/dist/_generated/zing_governance/treasury.d.ts +56 -0
- package/dist/_generated/zing_governance/treasury.js +78 -0
- package/dist/_generated/zing_identity/config.d.ts +87 -0
- package/dist/_generated/zing_identity/config.js +98 -0
- package/{src/_generated/zing_studio/deps/std/type_name.ts → dist/_generated/zing_identity/deps/std/type_name.d.ts} +3 -11
- package/dist/_generated/zing_identity/deps/std/type_name.js +22 -0
- package/dist/_generated/zing_identity/deps/sui/object.d.ts +8 -0
- package/{src/_generated/zing_studio/deps/sui/object.ts → dist/_generated/zing_identity/deps/sui/object.js} +4 -7
- package/dist/_generated/zing_identity/deps/sui/object_table.d.ts +12 -0
- package/{src/_generated/zing_identity/deps/sui/object_table.ts → dist/_generated/zing_identity/deps/sui/object_table.js} +7 -10
- package/dist/_generated/zing_identity/deps/sui/table.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/sui/table.ts → dist/_generated/zing_identity/deps/sui/table.js} +7 -10
- package/{src/_generated/zing_identity/deps/sui/vec_set.ts → dist/_generated/zing_identity/deps/sui/vec_set.d.ts} +3 -14
- package/dist/_generated/zing_identity/deps/sui/vec_set.js +22 -0
- package/dist/_generated/zing_identity/ecdsa.d.ts +81 -0
- package/dist/_generated/zing_identity/ecdsa.js +87 -0
- package/dist/_generated/zing_identity/identity.d.ts +262 -0
- package/dist/_generated/zing_identity/identity.js +294 -0
- package/dist/_generated/zing_identity/reclaim.d.ts +356 -0
- package/dist/_generated/zing_identity/reclaim.js +414 -0
- package/dist/_generated/zing_studio/app.d.ts +351 -0
- package/dist/_generated/zing_studio/app.js +451 -0
- package/dist/_generated/zing_studio/article.d.ts +331 -0
- package/dist/_generated/zing_studio/article.js +331 -0
- package/dist/_generated/zing_studio/config.d.ts +203 -0
- package/dist/_generated/zing_studio/config.js +233 -0
- package/{src/_generated/zing_identity/deps/std/type_name.ts → dist/_generated/zing_studio/deps/std/type_name.d.ts} +3 -11
- package/dist/_generated/zing_studio/deps/std/type_name.js +22 -0
- package/dist/_generated/zing_studio/deps/sui/bag.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/sui/bag.ts → dist/_generated/zing_studio/deps/sui/bag.js} +7 -10
- package/dist/_generated/zing_studio/deps/sui/balance.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/sui/balance.ts → dist/_generated/zing_studio/deps/sui/balance.js} +4 -7
- package/dist/_generated/zing_studio/deps/sui/coin.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/sui/coin.ts → dist/_generated/zing_studio/deps/sui/coin.js} +5 -8
- package/dist/_generated/zing_studio/deps/sui/dynamic_field.d.ts +126 -0
- package/dist/_generated/zing_studio/deps/sui/dynamic_field.js +140 -0
- package/dist/_generated/zing_studio/deps/sui/object.d.ts +8 -0
- package/{src/_generated/zing_framework/deps/sui/object.ts → dist/_generated/zing_studio/deps/sui/object.js} +4 -7
- package/dist/_generated/zing_studio/deps/sui/table.d.ts +12 -0
- package/{src/_generated/zing_identity/deps/sui/table.ts → dist/_generated/zing_studio/deps/sui/table.js} +7 -10
- package/dist/_generated/zing_studio/deps/sui/vec_map.d.ts +30 -0
- package/{src/_generated/zing_studio/deps/sui/vec_map.ts → dist/_generated/zing_studio/deps/sui/vec_map.js} +15 -21
- package/{src/_generated/zing_studio/deps/sui/vec_set.ts → dist/_generated/zing_studio/deps/sui/vec_set.d.ts} +3 -14
- package/dist/_generated/zing_studio/deps/sui/vec_set.js +22 -0
- package/dist/_generated/zing_studio/deps/walrus/blob.d.ts +20 -0
- package/{src/_generated/zing_studio/deps/walrus/blob.ts → dist/_generated/zing_studio/deps/walrus/blob.js} +11 -12
- package/dist/_generated/zing_studio/deps/walrus/events.d.ts +83 -0
- package/dist/_generated/zing_studio/deps/walrus/events.js +122 -0
- package/dist/_generated/zing_studio/deps/walrus/metadata.d.ts +71 -0
- package/dist/_generated/zing_studio/deps/walrus/metadata.js +73 -0
- package/dist/_generated/zing_studio/deps/walrus/storage_resource.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/walrus/storage_resource.ts → dist/_generated/zing_studio/deps/walrus/storage_resource.js} +7 -8
- package/dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/zing_framework/derived_object_bag.ts → dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.js} +7 -8
- package/dist/_generated/zing_studio/deps/zing_framework/derived_table.d.ts +12 -0
- package/{src/_generated/zing_studio/deps/zing_framework/derived_table.ts → dist/_generated/zing_studio/deps/zing_framework/derived_table.js} +7 -8
- package/dist/_generated/zing_studio/donation.d.ts +24 -0
- package/{src/_generated/zing_studio/donation.ts → dist/_generated/zing_studio/donation.js} +7 -8
- package/dist/_generated/zing_studio/enclave.d.ts +187 -0
- package/dist/_generated/zing_studio/enclave.js +231 -0
- package/dist/_generated/zing_studio/nitro_attestation.d.ts +148 -0
- package/dist/_generated/zing_studio/nitro_attestation.js +183 -0
- package/dist/_generated/zing_studio/referral.d.ts +166 -0
- package/dist/_generated/zing_studio/referral.js +224 -0
- package/dist/_generated/zing_studio/storage.d.ts +327 -0
- package/dist/_generated/zing_studio/storage.js +365 -0
- package/dist/_generated/zing_studio/studio.d.ts +282 -0
- package/dist/_generated/zing_studio/studio.js +360 -0
- package/dist/bcs.d.ts +61 -0
- package/dist/bcs.js +109 -0
- package/dist/client/index.d.ts +228 -0
- package/dist/client/index.js +296 -0
- package/dist/client/types.d.ts +23 -0
- package/dist/client/types.js +1 -0
- package/dist/components/index.js +3 -0
- package/dist/components/wallet-provider.d.ts +7 -0
- package/dist/components/wallet-provider.js +33 -0
- package/dist/components/walrus-provider.d.ts +31 -0
- package/dist/components/walrus-provider.js +71 -0
- package/dist/components/zing-provider.d.ts +15 -0
- package/dist/components/zing-provider.js +22 -0
- package/dist/config/common.d.ts +23 -0
- package/dist/config/common.js +61 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.js +28 -0
- package/dist/config/mainnet.d.ts +6 -0
- package/dist/config/mainnet.js +80 -0
- package/dist/config/testnet.d.ts +6 -0
- package/dist/config/testnet.js +81 -0
- package/dist/config/types.d.ts +49 -0
- package/dist/config/types.js +1 -0
- package/dist/const.d.ts +4 -0
- package/dist/const.js +25 -0
- package/dist/getters.d.ts +228 -0
- package/dist/getters.js +317 -0
- package/{src/hooks/index.ts → dist/hooks/index.d.ts} +2 -3
- package/dist/hooks/index.js +9 -0
- package/dist/hooks/useGetStudio.d.ts +26 -0
- package/dist/hooks/useGetStudio.js +17 -0
- package/dist/hooks/useGetTierPlan.d.ts +7 -0
- package/dist/hooks/useGetTierPlan.js +85 -0
- package/dist/hooks/useReclaim.d.ts +12 -0
- package/dist/hooks/useReclaim.js +87 -0
- package/dist/hooks/useSignAndExecuteTransaction.d.ts +6 -0
- package/dist/hooks/useSignAndExecuteTransaction.js +40 -0
- package/dist/hooks/useSignPersonalMessage.d.ts +8 -0
- package/dist/hooks/useSignPersonalMessage.js +21 -0
- package/dist/hooks/useZingInfiniteQueries.d.ts +75 -0
- package/dist/hooks/useZingInfiniteQueries.js +28 -0
- package/dist/hooks/useZingMutation.d.ts +35 -0
- package/dist/hooks/useZingMutation.js +37 -0
- package/dist/hooks/useZingQueries.d.ts +127 -0
- package/dist/hooks/useZingQueries.js +37 -0
- package/dist/hooks/useZingQuery.d.ts +147 -0
- package/dist/hooks/useZingQuery.js +34 -0
- package/{src/index.ts → dist/index.d.ts} +2 -3
- package/dist/index.js +9 -0
- package/dist/lib/utils/colorful-logger.d.ts +2 -0
- package/dist/lib/utils/colorful-logger.js +23 -0
- package/dist/lib/utils/const.d.ts +25 -0
- package/dist/lib/utils/const.js +25 -0
- package/dist/lib/utils/helpers.d.ts +10 -0
- package/dist/lib/utils/helpers.js +49 -0
- package/dist/lib/utils/index.js +4 -0
- package/dist/lib/utils/init-app-with-shadow.d.ts +6 -0
- package/dist/lib/utils/init-app-with-shadow.js +28 -0
- package/dist/lib/utils/quilt.d.ts +61 -0
- package/dist/lib/utils/quilt.js +194 -0
- package/dist/lib/utils/reclaim.d.ts +29 -0
- package/dist/lib/utils/reclaim.js +88 -0
- package/dist/lib/utils/types.d.ts +5 -0
- package/dist/lib/utils/types.js +1 -0
- package/dist/mutations/index.js +3 -0
- package/dist/mutations/seal.d.ts +12 -0
- package/dist/mutations/seal.js +41 -0
- package/dist/mutations/signer.d.ts +10 -0
- package/dist/mutations/signer.js +176 -0
- package/dist/mutations/walrus.d.ts +98 -0
- package/dist/mutations/walrus.js +488 -0
- package/dist/stores/index.js +3 -0
- package/dist/stores/walletStore.d.ts +48 -0
- package/dist/stores/walletStore.js +232 -0
- package/dist/stores/walrusStore.d.ts +28 -0
- package/dist/stores/walrusStore.js +61 -0
- package/dist/stores/zkloginStore.d.ts +28 -0
- package/dist/stores/zkloginStore.js +27 -0
- package/dist/types.d.ts +99 -0
- package/dist/types.js +1 -0
- package/package.json +14 -6
- package/src/_generated/utils/index.ts +0 -181
- package/src/_generated/zing_framework/coin_utils.ts +0 -41
- package/src/_generated/zing_framework/derived_object_bag.ts +0 -400
- package/src/_generated/zing_framework/derived_table.ts +0 -366
- package/src/_generated/zing_governance/admin.ts +0 -47
- package/src/_generated/zing_governance/treasury.ts +0 -134
- package/src/_generated/zing_identity/config.ts +0 -191
- package/src/_generated/zing_identity/ecdsa.ts +0 -166
- package/src/_generated/zing_identity/identity.ts +0 -661
- package/src/_generated/zing_identity/reclaim.ts +0 -803
- package/src/_generated/zing_studio/app.ts +0 -855
- package/src/_generated/zing_studio/article.ts +0 -598
- package/src/_generated/zing_studio/config.ts +0 -475
- package/src/_generated/zing_studio/deps/sui/dynamic_field.ts +0 -272
- package/src/_generated/zing_studio/deps/walrus/events.ts +0 -124
- package/src/_generated/zing_studio/deps/walrus/metadata.ts +0 -137
- package/src/_generated/zing_studio/enclave.ts +0 -466
- package/src/_generated/zing_studio/nitro_attestation.ts +0 -308
- package/src/_generated/zing_studio/referral.ts +0 -447
- package/src/_generated/zing_studio/storage.ts +0 -664
- package/src/_generated/zing_studio/studio.ts +0 -682
- package/src/bcs.ts +0 -139
- package/src/client/index.ts +0 -557
- package/src/client/types.ts +0 -28
- package/src/components/wallet-provider.tsx +0 -53
- package/src/components/walrus-provider.tsx +0 -212
- package/src/components/zing-provider.tsx +0 -54
- package/src/config/common.ts +0 -82
- package/src/config/index.ts +0 -45
- package/src/config/mainnet.ts +0 -109
- package/src/config/testnet.ts +0 -111
- package/src/config/types.ts +0 -69
- package/src/const.ts +0 -32
- package/src/getters.ts +0 -523
- package/src/hooks/useGetStudio.ts +0 -22
- package/src/hooks/useGetTierPlan.ts +0 -115
- package/src/hooks/useReclaim.ts +0 -165
- package/src/hooks/useSignAndExecuteTransaction.ts +0 -57
- package/src/hooks/useSignPersonalMessage.ts +0 -28
- package/src/hooks/useZingInfiniteQueries.ts +0 -92
- package/src/hooks/useZingMutation.ts +0 -66
- package/src/hooks/useZingQueries.ts +0 -107
- package/src/hooks/useZingQuery.ts +0 -88
- package/src/lib/utils/colorful-logger.ts +0 -27
- package/src/lib/utils/const.ts +0 -25
- package/src/lib/utils/helpers.ts +0 -78
- package/src/lib/utils/init-app-with-shadow.ts +0 -42
- package/src/lib/utils/quilt.ts +0 -317
- package/src/lib/utils/reclaim.ts +0 -148
- package/src/lib/utils/types.ts +0 -14
- package/src/mutations/seal.ts +0 -78
- package/src/mutations/signer.ts +0 -241
- package/src/mutations/walrus.ts +0 -862
- package/src/stores/walletStore.ts +0 -360
- package/src/stores/walrusStore.ts +0 -118
- package/src/stores/zkloginStore.ts +0 -53
- package/src/types.ts +0 -120
- package/tsconfig.json +0 -12
- /package/{src/_generated/index.js → dist/_generated/index.d.ts} +0 -0
- /package/{src/components/index.ts → dist/components/index.d.ts} +0 -0
- /package/{src/lib/utils/index.ts → dist/lib/utils/index.d.ts} +0 -0
- /package/{src/mutations/index.ts → dist/mutations/index.d.ts} +0 -0
- /package/{src/stores/index.ts → dist/stores/index.d.ts} +0 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { MoveStruct } from "../utils/index.js";
|
|
2
|
+
import type { RawTransactionArgument } from "../utils/index.js";
|
|
3
|
+
import type { BcsType } from "@mysten/sui/bcs";
|
|
4
|
+
import type { Transaction } from "@mysten/sui/transactions";
|
|
5
|
+
export declare const IdentityManager: MoveStruct<{
|
|
6
|
+
id: MoveStruct<{
|
|
7
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
}, "0x2::object::UID">;
|
|
9
|
+
address_to_identifier: MoveStruct<{
|
|
10
|
+
id: MoveStruct<{
|
|
11
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
}, "0x2::object::UID">;
|
|
13
|
+
size: BcsType<string, string | number | bigint, "u64">;
|
|
14
|
+
}, "0x2::table::Table">;
|
|
15
|
+
identifier_info: MoveStruct<{
|
|
16
|
+
id: MoveStruct<{
|
|
17
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
18
|
+
}, "0x2::object::UID">;
|
|
19
|
+
size: BcsType<string, string | number | bigint, "u64">;
|
|
20
|
+
}, "0x2::table::Table">;
|
|
21
|
+
whitelist_modules: MoveStruct<{
|
|
22
|
+
contents: BcsType<{
|
|
23
|
+
name: string;
|
|
24
|
+
}[], Iterable<{
|
|
25
|
+
name: string;
|
|
26
|
+
}> & {
|
|
27
|
+
length: number;
|
|
28
|
+
}, "vector<std::type_name::TypeName>">;
|
|
29
|
+
}, string>;
|
|
30
|
+
}, "@local-pkg/zing_identity::identity::IdentityManager">;
|
|
31
|
+
export declare const IdentifierInfo: MoveStruct<{
|
|
32
|
+
owner: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
updated_at: BcsType<string, string | number | bigint, "u64">;
|
|
34
|
+
}, "@local-pkg/zing_identity::identity::IdentifierInfo">;
|
|
35
|
+
export declare const ReadAccess: MoveStruct<{
|
|
36
|
+
dummy_field: BcsType<boolean, boolean, "bool">;
|
|
37
|
+
}, "@local-pkg/zing_identity::identity::ReadAccess">;
|
|
38
|
+
export interface ModuleAddressToIdentifierBorrowArguments<T extends BcsType<any>> {
|
|
39
|
+
self: RawTransactionArgument<string>;
|
|
40
|
+
Witness: RawTransactionArgument<T>;
|
|
41
|
+
}
|
|
42
|
+
export interface ModuleAddressToIdentifierBorrowOptions<T extends BcsType<any>> {
|
|
43
|
+
package?: string;
|
|
44
|
+
arguments: ModuleAddressToIdentifierBorrowArguments<T> | [
|
|
45
|
+
self: RawTransactionArgument<string>,
|
|
46
|
+
Witness: RawTransactionArgument<T>
|
|
47
|
+
];
|
|
48
|
+
typeArguments: [string];
|
|
49
|
+
}
|
|
50
|
+
export declare function moduleAddressToIdentifierBorrow<T extends BcsType<any>>(options: ModuleAddressToIdentifierBorrowOptions<T>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
51
|
+
export interface ModuleAddressToIdentifierBorrowMutArguments<T extends BcsType<any>> {
|
|
52
|
+
self: RawTransactionArgument<string>;
|
|
53
|
+
Witness: RawTransactionArgument<T>;
|
|
54
|
+
}
|
|
55
|
+
export interface ModuleAddressToIdentifierBorrowMutOptions<T extends BcsType<any>> {
|
|
56
|
+
package?: string;
|
|
57
|
+
arguments: ModuleAddressToIdentifierBorrowMutArguments<T> | [
|
|
58
|
+
self: RawTransactionArgument<string>,
|
|
59
|
+
Witness: RawTransactionArgument<T>
|
|
60
|
+
];
|
|
61
|
+
typeArguments: [string];
|
|
62
|
+
}
|
|
63
|
+
export declare function moduleAddressToIdentifierBorrowMut<T extends BcsType<any>>(options: ModuleAddressToIdentifierBorrowMutOptions<T>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
64
|
+
export interface ModuleIdentifierInfoBorrowArguments<T extends BcsType<any>> {
|
|
65
|
+
self: RawTransactionArgument<string>;
|
|
66
|
+
Witness: RawTransactionArgument<T>;
|
|
67
|
+
}
|
|
68
|
+
export interface ModuleIdentifierInfoBorrowOptions<T extends BcsType<any>> {
|
|
69
|
+
package?: string;
|
|
70
|
+
arguments: ModuleIdentifierInfoBorrowArguments<T> | [
|
|
71
|
+
self: RawTransactionArgument<string>,
|
|
72
|
+
Witness: RawTransactionArgument<T>
|
|
73
|
+
];
|
|
74
|
+
typeArguments: [string];
|
|
75
|
+
}
|
|
76
|
+
export declare function moduleIdentifierInfoBorrow<T extends BcsType<any>>(options: ModuleIdentifierInfoBorrowOptions<T>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
77
|
+
export interface ModuleIdentifierInfoBorrowMutArguments<T extends BcsType<any>> {
|
|
78
|
+
self: RawTransactionArgument<string>;
|
|
79
|
+
Witness: RawTransactionArgument<T>;
|
|
80
|
+
}
|
|
81
|
+
export interface ModuleIdentifierInfoBorrowMutOptions<T extends BcsType<any>> {
|
|
82
|
+
package?: string;
|
|
83
|
+
arguments: ModuleIdentifierInfoBorrowMutArguments<T> | [
|
|
84
|
+
self: RawTransactionArgument<string>,
|
|
85
|
+
Witness: RawTransactionArgument<T>
|
|
86
|
+
];
|
|
87
|
+
typeArguments: [string];
|
|
88
|
+
}
|
|
89
|
+
export declare function moduleIdentifierInfoBorrowMut<T extends BcsType<any>>(options: ModuleIdentifierInfoBorrowMutOptions<T>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
90
|
+
export interface NewIdentifierInfoArguments {
|
|
91
|
+
owner: RawTransactionArgument<string>;
|
|
92
|
+
updatedAt: RawTransactionArgument<number | bigint>;
|
|
93
|
+
}
|
|
94
|
+
export interface NewIdentifierInfoOptions {
|
|
95
|
+
package?: string;
|
|
96
|
+
arguments: NewIdentifierInfoArguments | [
|
|
97
|
+
owner: RawTransactionArgument<string>,
|
|
98
|
+
updatedAt: RawTransactionArgument<number | bigint>
|
|
99
|
+
];
|
|
100
|
+
}
|
|
101
|
+
export declare function newIdentifierInfo(options: NewIdentifierInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
102
|
+
export interface DropIdentifierInfoArguments {
|
|
103
|
+
identifierInfo: RawTransactionArgument<string>;
|
|
104
|
+
}
|
|
105
|
+
export interface DropIdentifierInfoOptions {
|
|
106
|
+
package?: string;
|
|
107
|
+
arguments: DropIdentifierInfoArguments | [identifierInfo: RawTransactionArgument<string>];
|
|
108
|
+
}
|
|
109
|
+
export declare function dropIdentifierInfo(options: DropIdentifierInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
110
|
+
export interface OwnerArguments {
|
|
111
|
+
info: RawTransactionArgument<string>;
|
|
112
|
+
}
|
|
113
|
+
export interface OwnerOptions {
|
|
114
|
+
package?: string;
|
|
115
|
+
arguments: OwnerArguments | [info: RawTransactionArgument<string>];
|
|
116
|
+
}
|
|
117
|
+
export declare function owner(options: OwnerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
118
|
+
export interface UpdatedAtArguments {
|
|
119
|
+
info: RawTransactionArgument<string>;
|
|
120
|
+
}
|
|
121
|
+
export interface UpdatedAtOptions {
|
|
122
|
+
package?: string;
|
|
123
|
+
arguments: UpdatedAtArguments | [info: RawTransactionArgument<string>];
|
|
124
|
+
}
|
|
125
|
+
export declare function updatedAt(options: UpdatedAtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
126
|
+
export interface UpdateOwnerArguments {
|
|
127
|
+
info: RawTransactionArgument<string>;
|
|
128
|
+
owner: RawTransactionArgument<string>;
|
|
129
|
+
}
|
|
130
|
+
export interface UpdateOwnerOptions {
|
|
131
|
+
package?: string;
|
|
132
|
+
arguments: UpdateOwnerArguments | [
|
|
133
|
+
info: RawTransactionArgument<string>,
|
|
134
|
+
owner: RawTransactionArgument<string>
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
export declare function updateOwner(options: UpdateOwnerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
138
|
+
export interface UpdateUpdatedAtArguments {
|
|
139
|
+
info: RawTransactionArgument<string>;
|
|
140
|
+
updatedAt: RawTransactionArgument<number | bigint>;
|
|
141
|
+
}
|
|
142
|
+
export interface UpdateUpdatedAtOptions {
|
|
143
|
+
package?: string;
|
|
144
|
+
arguments: UpdateUpdatedAtArguments | [
|
|
145
|
+
info: RawTransactionArgument<string>,
|
|
146
|
+
updatedAt: RawTransactionArgument<number | bigint>
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
export declare function updateUpdatedAt(options: UpdateUpdatedAtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
150
|
+
export interface GetReadAccessArguments {
|
|
151
|
+
config: RawTransactionArgument<string>;
|
|
152
|
+
treasury: RawTransactionArgument<string>;
|
|
153
|
+
balance: RawTransactionArgument<string>;
|
|
154
|
+
}
|
|
155
|
+
export interface GetReadAccessOptions {
|
|
156
|
+
package?: string;
|
|
157
|
+
arguments: GetReadAccessArguments | [
|
|
158
|
+
config: RawTransactionArgument<string>,
|
|
159
|
+
treasury: RawTransactionArgument<string>,
|
|
160
|
+
balance: RawTransactionArgument<string>
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
export declare function getReadAccess(options: GetReadAccessOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
164
|
+
export interface IdentifierByAddressWithReadAccessArguments {
|
|
165
|
+
self: RawTransactionArgument<string>;
|
|
166
|
+
Access: RawTransactionArgument<string>;
|
|
167
|
+
user: RawTransactionArgument<string>;
|
|
168
|
+
}
|
|
169
|
+
export interface IdentifierByAddressWithReadAccessOptions {
|
|
170
|
+
package?: string;
|
|
171
|
+
arguments: IdentifierByAddressWithReadAccessArguments | [
|
|
172
|
+
self: RawTransactionArgument<string>,
|
|
173
|
+
Access: RawTransactionArgument<string>,
|
|
174
|
+
user: RawTransactionArgument<string>
|
|
175
|
+
];
|
|
176
|
+
typeArguments: [string];
|
|
177
|
+
}
|
|
178
|
+
export declare function identifierByAddressWithReadAccess(options: IdentifierByAddressWithReadAccessOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
179
|
+
export interface IdentifierInfoWithReadAccessArguments {
|
|
180
|
+
self: RawTransactionArgument<string>;
|
|
181
|
+
Access: RawTransactionArgument<string>;
|
|
182
|
+
identifier: RawTransactionArgument<string>;
|
|
183
|
+
}
|
|
184
|
+
export interface IdentifierInfoWithReadAccessOptions {
|
|
185
|
+
package?: string;
|
|
186
|
+
arguments: IdentifierInfoWithReadAccessArguments | [
|
|
187
|
+
self: RawTransactionArgument<string>,
|
|
188
|
+
Access: RawTransactionArgument<string>,
|
|
189
|
+
identifier: RawTransactionArgument<string>
|
|
190
|
+
];
|
|
191
|
+
typeArguments: [string];
|
|
192
|
+
}
|
|
193
|
+
export declare function identifierInfoWithReadAccess(options: IdentifierInfoWithReadAccessOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
194
|
+
export interface NewArguments {
|
|
195
|
+
config: RawTransactionArgument<string>;
|
|
196
|
+
Cap: RawTransactionArgument<string>;
|
|
197
|
+
}
|
|
198
|
+
export interface NewOptions {
|
|
199
|
+
package?: string;
|
|
200
|
+
arguments: NewArguments | [
|
|
201
|
+
config: RawTransactionArgument<string>,
|
|
202
|
+
Cap: RawTransactionArgument<string>
|
|
203
|
+
];
|
|
204
|
+
typeArguments: [string];
|
|
205
|
+
}
|
|
206
|
+
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
207
|
+
export interface AddWhiteslitArguments {
|
|
208
|
+
self: RawTransactionArgument<string>;
|
|
209
|
+
Cap: RawTransactionArgument<string>;
|
|
210
|
+
}
|
|
211
|
+
export interface AddWhiteslitOptions {
|
|
212
|
+
package?: string;
|
|
213
|
+
arguments: AddWhiteslitArguments | [
|
|
214
|
+
self: RawTransactionArgument<string>,
|
|
215
|
+
Cap: RawTransactionArgument<string>
|
|
216
|
+
];
|
|
217
|
+
typeArguments: [string, string];
|
|
218
|
+
}
|
|
219
|
+
export declare function addWhiteslit(options: AddWhiteslitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
220
|
+
export interface RemoveWhiteslitArguments {
|
|
221
|
+
self: RawTransactionArgument<string>;
|
|
222
|
+
Cap: RawTransactionArgument<string>;
|
|
223
|
+
}
|
|
224
|
+
export interface RemoveWhiteslitOptions {
|
|
225
|
+
package?: string;
|
|
226
|
+
arguments: RemoveWhiteslitArguments | [
|
|
227
|
+
self: RawTransactionArgument<string>,
|
|
228
|
+
Cap: RawTransactionArgument<string>
|
|
229
|
+
];
|
|
230
|
+
typeArguments: [string, string];
|
|
231
|
+
}
|
|
232
|
+
export declare function removeWhiteslit(options: RemoveWhiteslitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
233
|
+
export interface IdentifierByAddressWithWhitelistArguments<Whitelist extends BcsType<any>> {
|
|
234
|
+
self: RawTransactionArgument<string>;
|
|
235
|
+
_: RawTransactionArgument<Whitelist>;
|
|
236
|
+
user: RawTransactionArgument<string>;
|
|
237
|
+
}
|
|
238
|
+
export interface IdentifierByAddressWithWhitelistOptions<Whitelist extends BcsType<any>> {
|
|
239
|
+
package?: string;
|
|
240
|
+
arguments: IdentifierByAddressWithWhitelistArguments<Whitelist> | [
|
|
241
|
+
self: RawTransactionArgument<string>,
|
|
242
|
+
_: RawTransactionArgument<Whitelist>,
|
|
243
|
+
user: RawTransactionArgument<string>
|
|
244
|
+
];
|
|
245
|
+
typeArguments: [string, string];
|
|
246
|
+
}
|
|
247
|
+
export declare function identifierByAddressWithWhitelist<Whitelist extends BcsType<any>>(options: IdentifierByAddressWithWhitelistOptions<Whitelist>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
248
|
+
export interface IdentifierInfoWithWhitelistArguments<Whitelist extends BcsType<any>> {
|
|
249
|
+
self: RawTransactionArgument<string>;
|
|
250
|
+
_: RawTransactionArgument<Whitelist>;
|
|
251
|
+
identifier: RawTransactionArgument<string>;
|
|
252
|
+
}
|
|
253
|
+
export interface IdentifierInfoWithWhitelistOptions<Whitelist extends BcsType<any>> {
|
|
254
|
+
package?: string;
|
|
255
|
+
arguments: IdentifierInfoWithWhitelistArguments<Whitelist> | [
|
|
256
|
+
self: RawTransactionArgument<string>,
|
|
257
|
+
_: RawTransactionArgument<Whitelist>,
|
|
258
|
+
identifier: RawTransactionArgument<string>
|
|
259
|
+
];
|
|
260
|
+
typeArguments: [string, string];
|
|
261
|
+
}
|
|
262
|
+
export declare function identifierInfoWithWhitelist<Whitelist extends BcsType<any>>(options: IdentifierInfoWithWhitelistOptions<Whitelist>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import * as type_name from "./deps/std/type_name.js";
|
|
5
|
+
import * as object from "./deps/sui/object.js";
|
|
6
|
+
import * as table from "./deps/sui/table.js";
|
|
7
|
+
import * as vec_set from "./deps/sui/vec_set.js";
|
|
8
|
+
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
9
|
+
import { bcs } from "@mysten/sui/bcs";
|
|
10
|
+
const $moduleName = "@local-pkg/zing_identity::identity";
|
|
11
|
+
export const IdentityManager = new MoveStruct({
|
|
12
|
+
name: `${$moduleName}::IdentityManager`,
|
|
13
|
+
fields: {
|
|
14
|
+
id: object.UID,
|
|
15
|
+
address_to_identifier: table.Table,
|
|
16
|
+
identifier_info: table.Table,
|
|
17
|
+
whitelist_modules: vec_set.VecSet(type_name.TypeName),
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
export const IdentifierInfo = new MoveStruct({
|
|
21
|
+
name: `${$moduleName}::IdentifierInfo`,
|
|
22
|
+
fields: {
|
|
23
|
+
owner: bcs.Address,
|
|
24
|
+
updated_at: bcs.u64(),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
export const ReadAccess = new MoveStruct({
|
|
28
|
+
name: `${$moduleName}::ReadAccess`,
|
|
29
|
+
fields: {
|
|
30
|
+
dummy_field: bcs.bool(),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
export function moduleAddressToIdentifierBorrow(options) {
|
|
34
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
35
|
+
const argumentsTypes = [
|
|
36
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
37
|
+
`${options.typeArguments[0]}`,
|
|
38
|
+
];
|
|
39
|
+
const parameterNames = ["self", "Witness"];
|
|
40
|
+
return (tx) => tx.moveCall({
|
|
41
|
+
package: packageAddress,
|
|
42
|
+
module: "identity",
|
|
43
|
+
function: "module_address_to_identifier_borrow",
|
|
44
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
45
|
+
typeArguments: options.typeArguments,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
export function moduleAddressToIdentifierBorrowMut(options) {
|
|
49
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
50
|
+
const argumentsTypes = [
|
|
51
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
52
|
+
`${options.typeArguments[0]}`,
|
|
53
|
+
];
|
|
54
|
+
const parameterNames = ["self", "Witness"];
|
|
55
|
+
return (tx) => tx.moveCall({
|
|
56
|
+
package: packageAddress,
|
|
57
|
+
module: "identity",
|
|
58
|
+
function: "module_address_to_identifier_borrow_mut",
|
|
59
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
60
|
+
typeArguments: options.typeArguments,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export function moduleIdentifierInfoBorrow(options) {
|
|
64
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
65
|
+
const argumentsTypes = [
|
|
66
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
67
|
+
`${options.typeArguments[0]}`,
|
|
68
|
+
];
|
|
69
|
+
const parameterNames = ["self", "Witness"];
|
|
70
|
+
return (tx) => tx.moveCall({
|
|
71
|
+
package: packageAddress,
|
|
72
|
+
module: "identity",
|
|
73
|
+
function: "module_identifier_info_borrow",
|
|
74
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
75
|
+
typeArguments: options.typeArguments,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
export function moduleIdentifierInfoBorrowMut(options) {
|
|
79
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
80
|
+
const argumentsTypes = [
|
|
81
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
82
|
+
`${options.typeArguments[0]}`,
|
|
83
|
+
];
|
|
84
|
+
const parameterNames = ["self", "Witness"];
|
|
85
|
+
return (tx) => tx.moveCall({
|
|
86
|
+
package: packageAddress,
|
|
87
|
+
module: "identity",
|
|
88
|
+
function: "module_identifier_info_borrow_mut",
|
|
89
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
90
|
+
typeArguments: options.typeArguments,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
export function newIdentifierInfo(options) {
|
|
94
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
95
|
+
const argumentsTypes = ["address", "u64"];
|
|
96
|
+
const parameterNames = ["owner", "updatedAt"];
|
|
97
|
+
return (tx) => tx.moveCall({
|
|
98
|
+
package: packageAddress,
|
|
99
|
+
module: "identity",
|
|
100
|
+
function: "new_identifier_info",
|
|
101
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
export function dropIdentifierInfo(options) {
|
|
105
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
106
|
+
const argumentsTypes = [
|
|
107
|
+
`${packageAddress}::identity::IdentifierInfo`,
|
|
108
|
+
];
|
|
109
|
+
const parameterNames = ["identifierInfo"];
|
|
110
|
+
return (tx) => tx.moveCall({
|
|
111
|
+
package: packageAddress,
|
|
112
|
+
module: "identity",
|
|
113
|
+
function: "drop_identifier_info",
|
|
114
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export function owner(options) {
|
|
118
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
119
|
+
const argumentsTypes = [
|
|
120
|
+
`${packageAddress}::identity::IdentifierInfo`,
|
|
121
|
+
];
|
|
122
|
+
const parameterNames = ["info"];
|
|
123
|
+
return (tx) => tx.moveCall({
|
|
124
|
+
package: packageAddress,
|
|
125
|
+
module: "identity",
|
|
126
|
+
function: "owner",
|
|
127
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
export function updatedAt(options) {
|
|
131
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
132
|
+
const argumentsTypes = [
|
|
133
|
+
`${packageAddress}::identity::IdentifierInfo`,
|
|
134
|
+
];
|
|
135
|
+
const parameterNames = ["info"];
|
|
136
|
+
return (tx) => tx.moveCall({
|
|
137
|
+
package: packageAddress,
|
|
138
|
+
module: "identity",
|
|
139
|
+
function: "updated_at",
|
|
140
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
export function updateOwner(options) {
|
|
144
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
145
|
+
const argumentsTypes = [
|
|
146
|
+
`${packageAddress}::identity::IdentifierInfo`,
|
|
147
|
+
"address",
|
|
148
|
+
];
|
|
149
|
+
const parameterNames = ["info", "owner"];
|
|
150
|
+
return (tx) => tx.moveCall({
|
|
151
|
+
package: packageAddress,
|
|
152
|
+
module: "identity",
|
|
153
|
+
function: "update_owner",
|
|
154
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
export function updateUpdatedAt(options) {
|
|
158
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
159
|
+
const argumentsTypes = [
|
|
160
|
+
`${packageAddress}::identity::IdentifierInfo`,
|
|
161
|
+
"u64",
|
|
162
|
+
];
|
|
163
|
+
const parameterNames = ["info", "updatedAt"];
|
|
164
|
+
return (tx) => tx.moveCall({
|
|
165
|
+
package: packageAddress,
|
|
166
|
+
module: "identity",
|
|
167
|
+
function: "update_updated_at",
|
|
168
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export function getReadAccess(options) {
|
|
172
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
173
|
+
const argumentsTypes = [
|
|
174
|
+
`${packageAddress}::config::Config`,
|
|
175
|
+
`${packageAddress}::treasury::Treasury`,
|
|
176
|
+
"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance<0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI>",
|
|
177
|
+
];
|
|
178
|
+
const parameterNames = ["config", "treasury", "balance"];
|
|
179
|
+
return (tx) => tx.moveCall({
|
|
180
|
+
package: packageAddress,
|
|
181
|
+
module: "identity",
|
|
182
|
+
function: "get_read_access",
|
|
183
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
export function identifierByAddressWithReadAccess(options) {
|
|
187
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
188
|
+
const argumentsTypes = [
|
|
189
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
190
|
+
`${packageAddress}::identity::ReadAccess`,
|
|
191
|
+
"address",
|
|
192
|
+
];
|
|
193
|
+
const parameterNames = ["self", "Access", "user"];
|
|
194
|
+
return (tx) => tx.moveCall({
|
|
195
|
+
package: packageAddress,
|
|
196
|
+
module: "identity",
|
|
197
|
+
function: "identifier_by_address_with_read_access",
|
|
198
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
199
|
+
typeArguments: options.typeArguments,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
export function identifierInfoWithReadAccess(options) {
|
|
203
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
204
|
+
const argumentsTypes = [
|
|
205
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
206
|
+
`${packageAddress}::identity::ReadAccess`,
|
|
207
|
+
"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String",
|
|
208
|
+
];
|
|
209
|
+
const parameterNames = ["self", "Access", "identifier"];
|
|
210
|
+
return (tx) => tx.moveCall({
|
|
211
|
+
package: packageAddress,
|
|
212
|
+
module: "identity",
|
|
213
|
+
function: "identifier_info_with_read_access",
|
|
214
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
215
|
+
typeArguments: options.typeArguments,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
export function _new(options) {
|
|
219
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
220
|
+
const argumentsTypes = [
|
|
221
|
+
`${packageAddress}::config::Config`,
|
|
222
|
+
`${packageAddress}::admin::AdminCap`,
|
|
223
|
+
];
|
|
224
|
+
const parameterNames = ["config", "Cap"];
|
|
225
|
+
return (tx) => tx.moveCall({
|
|
226
|
+
package: packageAddress,
|
|
227
|
+
module: "identity",
|
|
228
|
+
function: "new",
|
|
229
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
230
|
+
typeArguments: options.typeArguments,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
export function addWhiteslit(options) {
|
|
234
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
235
|
+
const argumentsTypes = [
|
|
236
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
237
|
+
`${packageAddress}::admin::AdminCap`,
|
|
238
|
+
];
|
|
239
|
+
const parameterNames = ["self", "Cap"];
|
|
240
|
+
return (tx) => tx.moveCall({
|
|
241
|
+
package: packageAddress,
|
|
242
|
+
module: "identity",
|
|
243
|
+
function: "add_whiteslit",
|
|
244
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
245
|
+
typeArguments: options.typeArguments,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
export function removeWhiteslit(options) {
|
|
249
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
250
|
+
const argumentsTypes = [
|
|
251
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
252
|
+
`${packageAddress}::admin::AdminCap`,
|
|
253
|
+
];
|
|
254
|
+
const parameterNames = ["self", "Cap"];
|
|
255
|
+
return (tx) => tx.moveCall({
|
|
256
|
+
package: packageAddress,
|
|
257
|
+
module: "identity",
|
|
258
|
+
function: "remove_whiteslit",
|
|
259
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
260
|
+
typeArguments: options.typeArguments,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
export function identifierByAddressWithWhitelist(options) {
|
|
264
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
265
|
+
const argumentsTypes = [
|
|
266
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
267
|
+
`${options.typeArguments[1]}`,
|
|
268
|
+
"address",
|
|
269
|
+
];
|
|
270
|
+
const parameterNames = ["self", "_", "user"];
|
|
271
|
+
return (tx) => tx.moveCall({
|
|
272
|
+
package: packageAddress,
|
|
273
|
+
module: "identity",
|
|
274
|
+
function: "identifier_by_address_with_whitelist",
|
|
275
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
276
|
+
typeArguments: options.typeArguments,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
export function identifierInfoWithWhitelist(options) {
|
|
280
|
+
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
281
|
+
const argumentsTypes = [
|
|
282
|
+
`${packageAddress}::identity::IdentityManager<${options.typeArguments[0]}>`,
|
|
283
|
+
`${options.typeArguments[1]}`,
|
|
284
|
+
"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String",
|
|
285
|
+
];
|
|
286
|
+
const parameterNames = ["self", "_", "identifier"];
|
|
287
|
+
return (tx) => tx.moveCall({
|
|
288
|
+
package: packageAddress,
|
|
289
|
+
module: "identity",
|
|
290
|
+
function: "identifier_info_with_whitelist",
|
|
291
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
292
|
+
typeArguments: options.typeArguments,
|
|
293
|
+
});
|
|
294
|
+
}
|