@zing-protocol/zing-sdk 0.0.17 → 0.1.1
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.d.ts +0 -2
- package/dist/_generated/index.js +0 -2
- package/dist/_generated/utils/index.d.ts +21 -2
- package/dist/_generated/utils/index.js +35 -11
- package/dist/_generated/zing_framework/coin_utils.js +1 -4
- package/dist/_generated/zing_framework/derived_object_bag.d.ts +4 -3
- package/dist/_generated/zing_framework/derived_object_bag.js +12 -37
- package/dist/_generated/zing_framework/derived_table.d.ts +5 -4
- package/dist/_generated/zing_framework/derived_table.js +12 -33
- package/dist/_generated/zing_governance/admin.d.ts +4 -17
- package/dist/_generated/zing_governance/admin.js +3 -17
- package/dist/_generated/zing_governance/treasury.d.ts +5 -4
- package/dist/_generated/zing_governance/treasury.js +5 -15
- package/dist/_generated/zing_studio/app.d.ts +70 -2
- package/dist/_generated/zing_studio/app.js +154 -100
- package/dist/_generated/zing_studio/article.d.ts +6 -52
- package/dist/_generated/zing_studio/article.js +23 -74
- package/dist/_generated/zing_studio/config.d.ts +34 -3
- package/dist/_generated/zing_studio/config.js +47 -50
- package/dist/_generated/zing_studio/deps/sui/bag.d.ts +25 -3
- package/dist/_generated/zing_studio/deps/sui/bag.js +1 -2
- package/dist/_generated/zing_studio/deps/sui/balance.d.ts +1 -1
- package/dist/_generated/zing_studio/deps/sui/balance.js +1 -1
- package/dist/_generated/zing_studio/deps/sui/coin.d.ts +3 -5
- package/dist/_generated/zing_studio/deps/sui/coin.js +3 -3
- package/dist/_generated/zing_studio/deps/sui/table.d.ts +21 -4
- package/dist/_generated/zing_studio/deps/sui/table.js +2 -3
- package/dist/_generated/zing_studio/deps/walrus/blob.d.ts +2 -6
- package/dist/_generated/zing_studio/deps/walrus/blob.js +1 -2
- package/dist/_generated/zing_studio/deps/walrus/storage_resource.d.ts +1 -3
- package/dist/_generated/zing_studio/deps/walrus/storage_resource.js +1 -2
- package/dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.d.ts +1 -3
- package/dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.js +1 -2
- package/dist/_generated/zing_studio/deps/zing_framework/derived_table.d.ts +2 -4
- package/dist/_generated/zing_studio/deps/zing_framework/derived_table.js +2 -3
- package/dist/_generated/zing_studio/donation.d.ts +6 -14
- package/dist/_generated/zing_studio/donation.js +2 -2
- package/dist/_generated/zing_studio/enclave.d.ts +17 -10
- package/dist/_generated/zing_studio/enclave.js +16 -41
- package/dist/_generated/zing_studio/referral.js +15 -46
- package/dist/_generated/zing_studio/storage.d.ts +13 -17
- package/dist/_generated/zing_studio/storage.js +46 -100
- package/dist/_generated/zing_studio/studio.d.ts +6 -28
- package/dist/_generated/zing_studio/studio.js +23 -96
- package/dist/client/index.d.ts +18 -55
- package/dist/client/index.js +1 -28
- package/dist/config/common.d.ts +0 -6
- package/dist/config/common.js +0 -51
- package/dist/config/mainnet.js +12 -38
- package/dist/config/testnet.js +2 -26
- package/dist/config/types.d.ts +1 -6
- package/dist/const.js +1 -1
- package/dist/getters.d.ts +17 -62
- package/dist/getters.js +62 -56
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useGetStudio.d.ts +4 -10
- package/dist/hooks/useReclaim.d.ts +0 -10
- package/dist/hooks/useReclaim.js +169 -92
- package/dist/hooks/useSignAndExecuteTransaction.js +4 -1
- package/dist/hooks/useZingInfiniteQueries.d.ts +3 -9
- package/dist/hooks/useZingInfiniteQueries.js +1 -0
- package/dist/hooks/useZingQueries.d.ts +8 -27
- package/dist/hooks/useZingQueries.js +1 -2
- package/dist/hooks/useZingQuery.d.ts +11 -36
- package/dist/hooks/useZingQuery.js +1 -2
- package/dist/lib/utils/index.d.ts +0 -1
- package/dist/lib/utils/index.js +0 -1
- package/dist/lib/utils/reclaim.d.ts +1 -29
- package/dist/lib/utils/reclaim.js +148 -87
- package/dist/mutations/signer.js +1 -1
- package/dist/mutations/walrus.js +1 -1
- package/package.json +1 -1
- package/dist/_generated/zing_framework/deps/sui/object.d.ts +0 -8
- package/dist/_generated/zing_framework/deps/sui/object.js +0 -13
- package/dist/_generated/zing_governance/deps/sui/object.d.ts +0 -8
- package/dist/_generated/zing_governance/deps/sui/object.js +0 -13
- package/dist/_generated/zing_identity/config.d.ts +0 -87
- package/dist/_generated/zing_identity/config.js +0 -98
- package/dist/_generated/zing_identity/deps/std/type_name.d.ts +0 -17
- package/dist/_generated/zing_identity/deps/std/type_name.js +0 -22
- package/dist/_generated/zing_identity/deps/sui/object.d.ts +0 -8
- package/dist/_generated/zing_identity/deps/sui/object.js +0 -13
- package/dist/_generated/zing_identity/deps/sui/object_table.d.ts +0 -12
- package/dist/_generated/zing_identity/deps/sui/object_table.js +0 -23
- package/dist/_generated/zing_identity/deps/sui/table.d.ts +0 -12
- package/dist/_generated/zing_identity/deps/sui/table.js +0 -35
- package/dist/_generated/zing_identity/deps/sui/vec_set.d.ts +0 -17
- package/dist/_generated/zing_identity/deps/sui/vec_set.js +0 -22
- package/dist/_generated/zing_identity/ecdsa.d.ts +0 -81
- package/dist/_generated/zing_identity/ecdsa.js +0 -87
- package/dist/_generated/zing_identity/identity.d.ts +0 -262
- package/dist/_generated/zing_identity/identity.js +0 -294
- package/dist/_generated/zing_identity/reclaim.d.ts +0 -356
- package/dist/_generated/zing_identity/reclaim.js +0 -414
- package/dist/_generated/zing_studio/nitro_attestation.d.ts +0 -148
- package/dist/_generated/zing_studio/nitro_attestation.js +0 -183
- package/dist/lib/oauth-pwa.d.ts +0 -11
- package/dist/lib/oauth-pwa.js +0 -55
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
/**
|
|
5
|
-
* A table is a map-like collection. But unlike a traditional collection, it's keys
|
|
6
|
-
* and values are not stored within the `Table` value, but instead are stored using
|
|
7
|
-
* Sui's object system. The `Table` struct acts only as a handle into the object
|
|
8
|
-
* system to retrieve those keys and values. Note that this means that `Table`
|
|
9
|
-
* values with exactly the same key-value mapping will not be equal, with `==`, at
|
|
10
|
-
* runtime. For example
|
|
11
|
-
*
|
|
12
|
-
* ```
|
|
13
|
-
* let table1 = table::new<u64, bool>();
|
|
14
|
-
* let table2 = table::new<u64, bool>();
|
|
15
|
-
* table::add(&mut table1, 0, false);
|
|
16
|
-
* table::add(&mut table1, 1, true);
|
|
17
|
-
* table::add(&mut table2, 0, false);
|
|
18
|
-
* table::add(&mut table2, 1, true);
|
|
19
|
-
* // table1 does not equal table2, despite having the same entries
|
|
20
|
-
* assert!(&table1 != &table2);
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
import * as object from "./object.js";
|
|
24
|
-
import { MoveStruct } from "../../../utils/index.js";
|
|
25
|
-
import { bcs } from "@mysten/sui/bcs";
|
|
26
|
-
const $moduleName = "0x2::table";
|
|
27
|
-
export const Table = new MoveStruct({
|
|
28
|
-
name: `${$moduleName}::Table`,
|
|
29
|
-
fields: {
|
|
30
|
-
/** the ID of this table */
|
|
31
|
-
id: object.UID,
|
|
32
|
-
/** the number of key-value pairs in the table */
|
|
33
|
-
size: bcs.u64(),
|
|
34
|
-
},
|
|
35
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
import { MoveStruct } from "../../../utils/index.js";
|
|
5
|
-
import { bcs } from "@mysten/sui/bcs";
|
|
6
|
-
import type { BcsType } from "@mysten/sui/bcs";
|
|
7
|
-
/**
|
|
8
|
-
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
9
|
-
* duplicate keys. All operations are O(N) in the size of the set
|
|
10
|
-
*
|
|
11
|
-
* - the intention of this data structure is only to provide the convenience of
|
|
12
|
-
* programming against a set API. Sets that need sorted iteration rather than
|
|
13
|
-
* insertion order iteration should be handwritten.
|
|
14
|
-
*/
|
|
15
|
-
export declare function VecSet<K extends BcsType<any>>(...typeParameters: [K]): MoveStruct<{
|
|
16
|
-
contents: ReturnType<typeof bcs.vector<K>>;
|
|
17
|
-
}>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
import { MoveStruct } from "../../../utils/index.js";
|
|
5
|
-
import { bcs } from "@mysten/sui/bcs";
|
|
6
|
-
const $moduleName = "0x2::vec_set";
|
|
7
|
-
/**
|
|
8
|
-
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
9
|
-
* duplicate keys. All operations are O(N) in the size of the set
|
|
10
|
-
*
|
|
11
|
-
* - the intention of this data structure is only to provide the convenience of
|
|
12
|
-
* programming against a set API. Sets that need sorted iteration rather than
|
|
13
|
-
* insertion order iteration should be handwritten.
|
|
14
|
-
*/
|
|
15
|
-
export function VecSet(...typeParameters) {
|
|
16
|
-
return new MoveStruct({
|
|
17
|
-
name: `${$moduleName}::VecSet<${typeParameters[0].name}>`,
|
|
18
|
-
fields: {
|
|
19
|
-
contents: bcs.vector(typeParameters[0]),
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { MoveStruct } from "../utils/index.js";
|
|
2
|
-
import type { RawTransactionArgument } from "../utils/index.js";
|
|
3
|
-
import type { Transaction } from "@mysten/sui/transactions";
|
|
4
|
-
export declare const VerifiedEvent: MoveStruct<{
|
|
5
|
-
is_verified: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
6
|
-
}, "@local-pkg/zing_identity::ecdsa::VerifiedEvent">;
|
|
7
|
-
export declare const Output: MoveStruct<{
|
|
8
|
-
id: MoveStruct<{
|
|
9
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
-
}, "0x2::object::UID">;
|
|
11
|
-
value: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
12
|
-
length: number;
|
|
13
|
-
}, string>;
|
|
14
|
-
}, "@local-pkg/zing_identity::ecdsa::Output">;
|
|
15
|
-
export interface Keccak256Arguments {
|
|
16
|
-
data: RawTransactionArgument<number[]>;
|
|
17
|
-
recipient: RawTransactionArgument<string>;
|
|
18
|
-
}
|
|
19
|
-
export interface Keccak256Options {
|
|
20
|
-
package?: string;
|
|
21
|
-
arguments: Keccak256Arguments | [
|
|
22
|
-
data: RawTransactionArgument<number[]>,
|
|
23
|
-
recipient: RawTransactionArgument<string>
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
/** Hash the data using Keccak256, output an object with the hash to recipient. */
|
|
27
|
-
export declare function keccak256(options: Keccak256Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
28
|
-
export interface EcrecoverArguments {
|
|
29
|
-
signature: RawTransactionArgument<number[]>;
|
|
30
|
-
msg: RawTransactionArgument<number[]>;
|
|
31
|
-
recipient: RawTransactionArgument<string>;
|
|
32
|
-
}
|
|
33
|
-
export interface EcrecoverOptions {
|
|
34
|
-
package?: string;
|
|
35
|
-
arguments: EcrecoverArguments | [
|
|
36
|
-
signature: RawTransactionArgument<number[]>,
|
|
37
|
-
msg: RawTransactionArgument<number[]>,
|
|
38
|
-
recipient: RawTransactionArgument<string>
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Recover the public key using the signature and message, assuming the signature
|
|
43
|
-
* was produced over the Keccak256 hash of the message. Output an object with the
|
|
44
|
-
* recovered pubkey to recipient.
|
|
45
|
-
*/
|
|
46
|
-
export declare function ecrecover(options: EcrecoverOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
47
|
-
export interface EcrecoverToEthAddressArguments {
|
|
48
|
-
signature: RawTransactionArgument<number[]>;
|
|
49
|
-
msg: RawTransactionArgument<number[]>;
|
|
50
|
-
}
|
|
51
|
-
export interface EcrecoverToEthAddressOptions {
|
|
52
|
-
package?: string;
|
|
53
|
-
arguments: EcrecoverToEthAddressArguments | [
|
|
54
|
-
signature: RawTransactionArgument<number[]>,
|
|
55
|
-
msg: RawTransactionArgument<number[]>
|
|
56
|
-
];
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Recover the Ethereum address using the signature and message, assuming the
|
|
60
|
-
* signature was produced over the Keccak256 hash of the message. Output an object
|
|
61
|
-
* with the recovered address to recipient.
|
|
62
|
-
*/
|
|
63
|
-
export declare function ecrecoverToEthAddress(options: EcrecoverToEthAddressOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
64
|
-
export interface Secp256k1VerifyArguments {
|
|
65
|
-
signature: RawTransactionArgument<number[]>;
|
|
66
|
-
publicKey: RawTransactionArgument<number[]>;
|
|
67
|
-
msg: RawTransactionArgument<number[]>;
|
|
68
|
-
}
|
|
69
|
-
export interface Secp256k1VerifyOptions {
|
|
70
|
-
package?: string;
|
|
71
|
-
arguments: Secp256k1VerifyArguments | [
|
|
72
|
-
signature: RawTransactionArgument<number[]>,
|
|
73
|
-
publicKey: RawTransactionArgument<number[]>,
|
|
74
|
-
msg: RawTransactionArgument<number[]>
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Verified the secp256k1 signature using public key and message assuming Keccak
|
|
79
|
-
* was using when signing. Emit an is_verified event of the verification result.
|
|
80
|
-
*/
|
|
81
|
-
export declare function secp256k1Verify(options: Secp256k1VerifyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
import * as object from "./deps/sui/object.js";
|
|
5
|
-
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
6
|
-
import { bcs } from "@mysten/sui/bcs";
|
|
7
|
-
const $moduleName = "@local-pkg/zing_identity::ecdsa";
|
|
8
|
-
export const VerifiedEvent = new MoveStruct({
|
|
9
|
-
name: `${$moduleName}::VerifiedEvent`,
|
|
10
|
-
fields: {
|
|
11
|
-
is_verified: bcs.bool(),
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
export const Output = new MoveStruct({
|
|
15
|
-
name: `${$moduleName}::Output`,
|
|
16
|
-
fields: {
|
|
17
|
-
id: object.UID,
|
|
18
|
-
value: bcs.vector(bcs.u8()),
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
/** Hash the data using Keccak256, output an object with the hash to recipient. */
|
|
22
|
-
export function keccak256(options) {
|
|
23
|
-
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
24
|
-
const argumentsTypes = ["vector<u8>", "address"];
|
|
25
|
-
const parameterNames = ["data", "recipient"];
|
|
26
|
-
return (tx) => tx.moveCall({
|
|
27
|
-
package: packageAddress,
|
|
28
|
-
module: "ecdsa",
|
|
29
|
-
function: "keccak256",
|
|
30
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Recover the public key using the signature and message, assuming the signature
|
|
35
|
-
* was produced over the Keccak256 hash of the message. Output an object with the
|
|
36
|
-
* recovered pubkey to recipient.
|
|
37
|
-
*/
|
|
38
|
-
export function ecrecover(options) {
|
|
39
|
-
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
40
|
-
const argumentsTypes = [
|
|
41
|
-
"vector<u8>",
|
|
42
|
-
"vector<u8>",
|
|
43
|
-
"address",
|
|
44
|
-
];
|
|
45
|
-
const parameterNames = ["signature", "msg", "recipient"];
|
|
46
|
-
return (tx) => tx.moveCall({
|
|
47
|
-
package: packageAddress,
|
|
48
|
-
module: "ecdsa",
|
|
49
|
-
function: "ecrecover",
|
|
50
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Recover the Ethereum address using the signature and message, assuming the
|
|
55
|
-
* signature was produced over the Keccak256 hash of the message. Output an object
|
|
56
|
-
* with the recovered address to recipient.
|
|
57
|
-
*/
|
|
58
|
-
export function ecrecoverToEthAddress(options) {
|
|
59
|
-
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
60
|
-
const argumentsTypes = ["vector<u8>", "vector<u8>"];
|
|
61
|
-
const parameterNames = ["signature", "msg"];
|
|
62
|
-
return (tx) => tx.moveCall({
|
|
63
|
-
package: packageAddress,
|
|
64
|
-
module: "ecdsa",
|
|
65
|
-
function: "ecrecover_to_eth_address",
|
|
66
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Verified the secp256k1 signature using public key and message assuming Keccak
|
|
71
|
-
* was using when signing. Emit an is_verified event of the verification result.
|
|
72
|
-
*/
|
|
73
|
-
export function secp256k1Verify(options) {
|
|
74
|
-
const packageAddress = options.package ?? "@local-pkg/zing_identity";
|
|
75
|
-
const argumentsTypes = [
|
|
76
|
-
"vector<u8>",
|
|
77
|
-
"vector<u8>",
|
|
78
|
-
"vector<u8>",
|
|
79
|
-
];
|
|
80
|
-
const parameterNames = ["signature", "publicKey", "msg"];
|
|
81
|
-
return (tx) => tx.moveCall({
|
|
82
|
-
package: packageAddress,
|
|
83
|
-
module: "ecdsa",
|
|
84
|
-
function: "secp256k1_verify",
|
|
85
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
86
|
-
});
|
|
87
|
-
}
|
|
@@ -1,262 +0,0 @@
|
|
|
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;
|