@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,231 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import * as object from "./deps/sui/object.js";
|
|
5
|
+
import { MoveTuple, MoveStruct, normalizeMoveArguments, } from "../utils/index.js";
|
|
6
|
+
import { bcs } from "@mysten/sui/bcs";
|
|
7
|
+
const $moduleName = "@local-pkg/zing_studio::enclave";
|
|
8
|
+
export const Pcrs = new MoveTuple({
|
|
9
|
+
name: `${$moduleName}::Pcrs`,
|
|
10
|
+
fields: [bcs.vector(bcs.u8()), bcs.vector(bcs.u8()), bcs.vector(bcs.u8())],
|
|
11
|
+
});
|
|
12
|
+
export const EnclaveConfig = new MoveStruct({
|
|
13
|
+
name: `${$moduleName}::EnclaveConfig`,
|
|
14
|
+
fields: {
|
|
15
|
+
id: object.UID,
|
|
16
|
+
name: bcs.string(),
|
|
17
|
+
pcrs: Pcrs,
|
|
18
|
+
version: bcs.u64(),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
export const Enclave = new MoveStruct({
|
|
22
|
+
name: `${$moduleName}::Enclave`,
|
|
23
|
+
fields: {
|
|
24
|
+
id: object.UID,
|
|
25
|
+
pk: bcs.vector(bcs.u8()),
|
|
26
|
+
config_version: bcs.u64(),
|
|
27
|
+
owner: bcs.Address,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
export function IntentMessage(...typeParameters) {
|
|
31
|
+
return new MoveStruct({
|
|
32
|
+
name: `${$moduleName}::IntentMessage<${typeParameters[0].name}>`,
|
|
33
|
+
fields: {
|
|
34
|
+
intent: bcs.u8(),
|
|
35
|
+
timestamp_ms: bcs.u64(),
|
|
36
|
+
payload: typeParameters[0],
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export function createEnclaveConfig(options) {
|
|
41
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
42
|
+
const argumentsTypes = [
|
|
43
|
+
`${packageAddress}::admin::AdminCap`,
|
|
44
|
+
"0x0000000000000000000000000000000000000000000000000000000000000001::string::String",
|
|
45
|
+
"vector<u8>",
|
|
46
|
+
"vector<u8>",
|
|
47
|
+
"vector<u8>",
|
|
48
|
+
];
|
|
49
|
+
const parameterNames = ["Cap", "name", "pcr0", "pcr1", "pcr2"];
|
|
50
|
+
return (tx) => tx.moveCall({
|
|
51
|
+
package: packageAddress,
|
|
52
|
+
module: "enclave",
|
|
53
|
+
function: "create_enclave_config",
|
|
54
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
export function registerEnclave(options) {
|
|
58
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
59
|
+
const argumentsTypes = [
|
|
60
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
61
|
+
"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument",
|
|
62
|
+
];
|
|
63
|
+
const parameterNames = ["enclaveConfig", "document"];
|
|
64
|
+
return (tx) => tx.moveCall({
|
|
65
|
+
package: packageAddress,
|
|
66
|
+
module: "enclave",
|
|
67
|
+
function: "register_enclave",
|
|
68
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export function verifySignature(options) {
|
|
72
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
73
|
+
const argumentsTypes = [
|
|
74
|
+
`${packageAddress}::enclave::Enclave`,
|
|
75
|
+
"u8",
|
|
76
|
+
"u64",
|
|
77
|
+
`${options.typeArguments[0]}`,
|
|
78
|
+
"vector<u8>",
|
|
79
|
+
];
|
|
80
|
+
const parameterNames = [
|
|
81
|
+
"enclave",
|
|
82
|
+
"intentScope",
|
|
83
|
+
"timestampMs",
|
|
84
|
+
"payload",
|
|
85
|
+
"signature",
|
|
86
|
+
];
|
|
87
|
+
return (tx) => tx.moveCall({
|
|
88
|
+
package: packageAddress,
|
|
89
|
+
module: "enclave",
|
|
90
|
+
function: "verify_signature",
|
|
91
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
92
|
+
typeArguments: options.typeArguments,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export function updatePcrsWithDocument(options) {
|
|
96
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
97
|
+
const argumentsTypes = [
|
|
98
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
99
|
+
`${packageAddress}::admin::AdminCap`,
|
|
100
|
+
"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument",
|
|
101
|
+
];
|
|
102
|
+
const parameterNames = ["config", "Cap", "document"];
|
|
103
|
+
return (tx) => tx.moveCall({
|
|
104
|
+
package: packageAddress,
|
|
105
|
+
module: "enclave",
|
|
106
|
+
function: "update_pcrs_with_document",
|
|
107
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
export function updatePcrs(options) {
|
|
111
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
112
|
+
const argumentsTypes = [
|
|
113
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
114
|
+
`${packageAddress}::admin::AdminCap`,
|
|
115
|
+
"vector<u8>",
|
|
116
|
+
"vector<u8>",
|
|
117
|
+
"vector<u8>",
|
|
118
|
+
];
|
|
119
|
+
const parameterNames = ["config", "Cap", "pcr0", "pcr1", "pcr2"];
|
|
120
|
+
return (tx) => tx.moveCall({
|
|
121
|
+
package: packageAddress,
|
|
122
|
+
module: "enclave",
|
|
123
|
+
function: "update_pcrs",
|
|
124
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export function updateName(options) {
|
|
128
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
129
|
+
const argumentsTypes = [
|
|
130
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
131
|
+
`${packageAddress}::admin::AdminCap`,
|
|
132
|
+
"0x0000000000000000000000000000000000000000000000000000000000000001::string::String",
|
|
133
|
+
];
|
|
134
|
+
const parameterNames = ["config", "Cap", "name"];
|
|
135
|
+
return (tx) => tx.moveCall({
|
|
136
|
+
package: packageAddress,
|
|
137
|
+
module: "enclave",
|
|
138
|
+
function: "update_name",
|
|
139
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
export function pcr0(options) {
|
|
143
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
144
|
+
const argumentsTypes = [
|
|
145
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
146
|
+
];
|
|
147
|
+
const parameterNames = ["config"];
|
|
148
|
+
return (tx) => tx.moveCall({
|
|
149
|
+
package: packageAddress,
|
|
150
|
+
module: "enclave",
|
|
151
|
+
function: "pcr0",
|
|
152
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
export function pcr1(options) {
|
|
156
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
157
|
+
const argumentsTypes = [
|
|
158
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
159
|
+
];
|
|
160
|
+
const parameterNames = ["config"];
|
|
161
|
+
return (tx) => tx.moveCall({
|
|
162
|
+
package: packageAddress,
|
|
163
|
+
module: "enclave",
|
|
164
|
+
function: "pcr1",
|
|
165
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
export function pcr2(options) {
|
|
169
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
170
|
+
const argumentsTypes = [
|
|
171
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
172
|
+
];
|
|
173
|
+
const parameterNames = ["config"];
|
|
174
|
+
return (tx) => tx.moveCall({
|
|
175
|
+
package: packageAddress,
|
|
176
|
+
module: "enclave",
|
|
177
|
+
function: "pcr2",
|
|
178
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
export function pk(options) {
|
|
182
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
183
|
+
const argumentsTypes = [
|
|
184
|
+
`${packageAddress}::enclave::Enclave`,
|
|
185
|
+
];
|
|
186
|
+
const parameterNames = ["enclave"];
|
|
187
|
+
return (tx) => tx.moveCall({
|
|
188
|
+
package: packageAddress,
|
|
189
|
+
module: "enclave",
|
|
190
|
+
function: "pk",
|
|
191
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
export function destroyOldEnclave(options) {
|
|
195
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
196
|
+
const argumentsTypes = [
|
|
197
|
+
`${packageAddress}::enclave::Enclave`,
|
|
198
|
+
`${packageAddress}::enclave::EnclaveConfig`,
|
|
199
|
+
];
|
|
200
|
+
const parameterNames = ["e", "config"];
|
|
201
|
+
return (tx) => tx.moveCall({
|
|
202
|
+
package: packageAddress,
|
|
203
|
+
module: "enclave",
|
|
204
|
+
function: "destroy_old_enclave",
|
|
205
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
export function deployOldEnclaveByOwner(options) {
|
|
209
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
210
|
+
const argumentsTypes = [
|
|
211
|
+
`${packageAddress}::enclave::Enclave`,
|
|
212
|
+
];
|
|
213
|
+
const parameterNames = ["e"];
|
|
214
|
+
return (tx) => tx.moveCall({
|
|
215
|
+
package: packageAddress,
|
|
216
|
+
module: "enclave",
|
|
217
|
+
function: "deploy_old_enclave_by_owner",
|
|
218
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
export function pkToAddress(options) {
|
|
222
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
223
|
+
const argumentsTypes = ["vector<u8>"];
|
|
224
|
+
const parameterNames = ["pk"];
|
|
225
|
+
return (tx) => tx.moveCall({
|
|
226
|
+
package: packageAddress,
|
|
227
|
+
module: "enclave",
|
|
228
|
+
function: "pk_to_address",
|
|
229
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
230
|
+
});
|
|
231
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveStruct } from "../utils/index.js";
|
|
5
|
+
import type { RawTransactionArgument } from "../utils/index.js";
|
|
6
|
+
import type { Transaction } from "@mysten/sui/transactions";
|
|
7
|
+
export declare const PCREntry: MoveStruct<{
|
|
8
|
+
index: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
9
|
+
value: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
10
|
+
length: number;
|
|
11
|
+
}, string>;
|
|
12
|
+
}, "@local-pkg/zing_studio::nitro_attestation::PCREntry">;
|
|
13
|
+
export declare const NitroAttestationDocument: MoveStruct<{
|
|
14
|
+
/** Issuing Nitro hypervisor module ID. */
|
|
15
|
+
module_id: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
16
|
+
length: number;
|
|
17
|
+
}, string>;
|
|
18
|
+
/** UTC time when document was created, in milliseconds since UNIX epoch. */
|
|
19
|
+
timestamp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
20
|
+
/** The digest function used for calculating the register values. */
|
|
21
|
+
digest: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
|
|
22
|
+
length: number;
|
|
23
|
+
}, string>;
|
|
24
|
+
/**
|
|
25
|
+
* A list of PCREntry containing the index and the PCR bytes.
|
|
26
|
+
* <https://docs.aws.amazon.com/enclaves/latest/user/set-up-attestation.html#where>.
|
|
27
|
+
*/
|
|
28
|
+
pcrs: import("@mysten/sui/bcs").BcsType<{
|
|
29
|
+
index: number;
|
|
30
|
+
value: number[];
|
|
31
|
+
}[], Iterable<{
|
|
32
|
+
index: number;
|
|
33
|
+
value: Iterable<number> & {
|
|
34
|
+
length: number;
|
|
35
|
+
};
|
|
36
|
+
}> & {
|
|
37
|
+
length: number;
|
|
38
|
+
}, string>;
|
|
39
|
+
/**
|
|
40
|
+
* An optional DER-encoded key the attestation, consumer can use to encrypt data
|
|
41
|
+
* with.
|
|
42
|
+
*/
|
|
43
|
+
public_key: import("@mysten/sui/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
44
|
+
length: number;
|
|
45
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
46
|
+
/** Additional signed user data, defined by protocol. */
|
|
47
|
+
user_data: import("@mysten/sui/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
48
|
+
length: number;
|
|
49
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
50
|
+
/**
|
|
51
|
+
* An optional cryptographic nonce provided by the attestation consumer as a proof
|
|
52
|
+
* of authenticity.
|
|
53
|
+
*/
|
|
54
|
+
nonce: import("@mysten/sui/bcs").BcsType<number[] | null, (Iterable<number> & {
|
|
55
|
+
length: number;
|
|
56
|
+
}) | null | undefined, "Option<vector<u8>>">;
|
|
57
|
+
}, "@local-pkg/zing_studio::nitro_attestation::NitroAttestationDocument">;
|
|
58
|
+
export interface LoadNitroAttestationArguments {
|
|
59
|
+
attestation: RawTransactionArgument<number[]>;
|
|
60
|
+
}
|
|
61
|
+
export interface LoadNitroAttestationOptions {
|
|
62
|
+
package?: string;
|
|
63
|
+
arguments: LoadNitroAttestationArguments | [attestation: RawTransactionArgument<number[]>];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @param attestation: attesttaion documents bytes data. @param clock: the clock
|
|
67
|
+
* object.
|
|
68
|
+
*
|
|
69
|
+
* Returns the parsed NitroAttestationDocument after verifying the attestation, may
|
|
70
|
+
* abort with errors described above.
|
|
71
|
+
*/
|
|
72
|
+
export declare function loadNitroAttestation(options: LoadNitroAttestationOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
73
|
+
export interface ModuleIdArguments {
|
|
74
|
+
attestation: RawTransactionArgument<string>;
|
|
75
|
+
}
|
|
76
|
+
export interface ModuleIdOptions {
|
|
77
|
+
package?: string;
|
|
78
|
+
arguments: ModuleIdArguments | [attestation: RawTransactionArgument<string>];
|
|
79
|
+
}
|
|
80
|
+
export declare function moduleId(options: ModuleIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
81
|
+
export interface TimestampArguments {
|
|
82
|
+
attestation: RawTransactionArgument<string>;
|
|
83
|
+
}
|
|
84
|
+
export interface TimestampOptions {
|
|
85
|
+
package?: string;
|
|
86
|
+
arguments: TimestampArguments | [attestation: RawTransactionArgument<string>];
|
|
87
|
+
}
|
|
88
|
+
export declare function timestamp(options: TimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
89
|
+
export interface DigestArguments {
|
|
90
|
+
attestation: RawTransactionArgument<string>;
|
|
91
|
+
}
|
|
92
|
+
export interface DigestOptions {
|
|
93
|
+
package?: string;
|
|
94
|
+
arguments: DigestArguments | [attestation: RawTransactionArgument<string>];
|
|
95
|
+
}
|
|
96
|
+
export declare function digest(options: DigestOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
97
|
+
export interface PcrsArguments {
|
|
98
|
+
attestation: RawTransactionArgument<string>;
|
|
99
|
+
}
|
|
100
|
+
export interface PcrsOptions {
|
|
101
|
+
package?: string;
|
|
102
|
+
arguments: PcrsArguments | [attestation: RawTransactionArgument<string>];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Returns a list of mapping PCREntry containg the index and the PCR bytes.
|
|
106
|
+
* Currently AWS supports PCR0, PCR1, PCR2, PCR3, PCR4, PCR8.
|
|
107
|
+
*/
|
|
108
|
+
export declare function pcrs(options: PcrsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
109
|
+
export interface PublicKeyArguments {
|
|
110
|
+
attestation: RawTransactionArgument<string>;
|
|
111
|
+
}
|
|
112
|
+
export interface PublicKeyOptions {
|
|
113
|
+
package?: string;
|
|
114
|
+
arguments: PublicKeyArguments | [attestation: RawTransactionArgument<string>];
|
|
115
|
+
}
|
|
116
|
+
export declare function publicKey(options: PublicKeyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
117
|
+
export interface UserDataArguments {
|
|
118
|
+
attestation: RawTransactionArgument<string>;
|
|
119
|
+
}
|
|
120
|
+
export interface UserDataOptions {
|
|
121
|
+
package?: string;
|
|
122
|
+
arguments: UserDataArguments | [attestation: RawTransactionArgument<string>];
|
|
123
|
+
}
|
|
124
|
+
export declare function userData(options: UserDataOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
125
|
+
export interface NonceArguments {
|
|
126
|
+
attestation: RawTransactionArgument<string>;
|
|
127
|
+
}
|
|
128
|
+
export interface NonceOptions {
|
|
129
|
+
package?: string;
|
|
130
|
+
arguments: NonceArguments | [attestation: RawTransactionArgument<string>];
|
|
131
|
+
}
|
|
132
|
+
export declare function nonce(options: NonceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
133
|
+
export interface IndexArguments {
|
|
134
|
+
entry: RawTransactionArgument<string>;
|
|
135
|
+
}
|
|
136
|
+
export interface IndexOptions {
|
|
137
|
+
package?: string;
|
|
138
|
+
arguments: IndexArguments | [entry: RawTransactionArgument<string>];
|
|
139
|
+
}
|
|
140
|
+
export declare function index(options: IndexOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
141
|
+
export interface ValueArguments {
|
|
142
|
+
entry: RawTransactionArgument<string>;
|
|
143
|
+
}
|
|
144
|
+
export interface ValueOptions {
|
|
145
|
+
package?: string;
|
|
146
|
+
arguments: ValueArguments | [entry: RawTransactionArgument<string>];
|
|
147
|
+
}
|
|
148
|
+
export declare function value(options: ValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
|
|
5
|
+
import { bcs } from "@mysten/sui/bcs";
|
|
6
|
+
const $moduleName = "@local-pkg/zing_studio::nitro_attestation";
|
|
7
|
+
export const PCREntry = new MoveStruct({
|
|
8
|
+
name: `${$moduleName}::PCREntry`,
|
|
9
|
+
fields: {
|
|
10
|
+
index: bcs.u8(),
|
|
11
|
+
value: bcs.vector(bcs.u8()),
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
export const NitroAttestationDocument = new MoveStruct({
|
|
15
|
+
name: `${$moduleName}::NitroAttestationDocument`,
|
|
16
|
+
fields: {
|
|
17
|
+
/** Issuing Nitro hypervisor module ID. */
|
|
18
|
+
module_id: bcs.vector(bcs.u8()),
|
|
19
|
+
/** UTC time when document was created, in milliseconds since UNIX epoch. */
|
|
20
|
+
timestamp: bcs.u64(),
|
|
21
|
+
/** The digest function used for calculating the register values. */
|
|
22
|
+
digest: bcs.vector(bcs.u8()),
|
|
23
|
+
/**
|
|
24
|
+
* A list of PCREntry containing the index and the PCR bytes.
|
|
25
|
+
* <https://docs.aws.amazon.com/enclaves/latest/user/set-up-attestation.html#where>.
|
|
26
|
+
*/
|
|
27
|
+
pcrs: bcs.vector(PCREntry),
|
|
28
|
+
/**
|
|
29
|
+
* An optional DER-encoded key the attestation, consumer can use to encrypt data
|
|
30
|
+
* with.
|
|
31
|
+
*/
|
|
32
|
+
public_key: bcs.option(bcs.vector(bcs.u8())),
|
|
33
|
+
/** Additional signed user data, defined by protocol. */
|
|
34
|
+
user_data: bcs.option(bcs.vector(bcs.u8())),
|
|
35
|
+
/**
|
|
36
|
+
* An optional cryptographic nonce provided by the attestation consumer as a proof
|
|
37
|
+
* of authenticity.
|
|
38
|
+
*/
|
|
39
|
+
nonce: bcs.option(bcs.vector(bcs.u8())),
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* @param attestation: attesttaion documents bytes data. @param clock: the clock
|
|
44
|
+
* object.
|
|
45
|
+
*
|
|
46
|
+
* Returns the parsed NitroAttestationDocument after verifying the attestation, may
|
|
47
|
+
* abort with errors described above.
|
|
48
|
+
*/
|
|
49
|
+
export function loadNitroAttestation(options) {
|
|
50
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
51
|
+
const argumentsTypes = [
|
|
52
|
+
"vector<u8>",
|
|
53
|
+
"0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock",
|
|
54
|
+
];
|
|
55
|
+
const parameterNames = ["attestation"];
|
|
56
|
+
return (tx) => tx.moveCall({
|
|
57
|
+
package: packageAddress,
|
|
58
|
+
module: "nitro_attestation",
|
|
59
|
+
function: "load_nitro_attestation",
|
|
60
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export function moduleId(options) {
|
|
64
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
65
|
+
const argumentsTypes = [
|
|
66
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
67
|
+
];
|
|
68
|
+
const parameterNames = ["attestation"];
|
|
69
|
+
return (tx) => tx.moveCall({
|
|
70
|
+
package: packageAddress,
|
|
71
|
+
module: "nitro_attestation",
|
|
72
|
+
function: "module_id",
|
|
73
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
export function timestamp(options) {
|
|
77
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
78
|
+
const argumentsTypes = [
|
|
79
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
80
|
+
];
|
|
81
|
+
const parameterNames = ["attestation"];
|
|
82
|
+
return (tx) => tx.moveCall({
|
|
83
|
+
package: packageAddress,
|
|
84
|
+
module: "nitro_attestation",
|
|
85
|
+
function: "timestamp",
|
|
86
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
export function digest(options) {
|
|
90
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
91
|
+
const argumentsTypes = [
|
|
92
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
93
|
+
];
|
|
94
|
+
const parameterNames = ["attestation"];
|
|
95
|
+
return (tx) => tx.moveCall({
|
|
96
|
+
package: packageAddress,
|
|
97
|
+
module: "nitro_attestation",
|
|
98
|
+
function: "digest",
|
|
99
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Returns a list of mapping PCREntry containg the index and the PCR bytes.
|
|
104
|
+
* Currently AWS supports PCR0, PCR1, PCR2, PCR3, PCR4, PCR8.
|
|
105
|
+
*/
|
|
106
|
+
export function pcrs(options) {
|
|
107
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
108
|
+
const argumentsTypes = [
|
|
109
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
110
|
+
];
|
|
111
|
+
const parameterNames = ["attestation"];
|
|
112
|
+
return (tx) => tx.moveCall({
|
|
113
|
+
package: packageAddress,
|
|
114
|
+
module: "nitro_attestation",
|
|
115
|
+
function: "pcrs",
|
|
116
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export function publicKey(options) {
|
|
120
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
121
|
+
const argumentsTypes = [
|
|
122
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
123
|
+
];
|
|
124
|
+
const parameterNames = ["attestation"];
|
|
125
|
+
return (tx) => tx.moveCall({
|
|
126
|
+
package: packageAddress,
|
|
127
|
+
module: "nitro_attestation",
|
|
128
|
+
function: "public_key",
|
|
129
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
export function userData(options) {
|
|
133
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
134
|
+
const argumentsTypes = [
|
|
135
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
136
|
+
];
|
|
137
|
+
const parameterNames = ["attestation"];
|
|
138
|
+
return (tx) => tx.moveCall({
|
|
139
|
+
package: packageAddress,
|
|
140
|
+
module: "nitro_attestation",
|
|
141
|
+
function: "user_data",
|
|
142
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
export function nonce(options) {
|
|
146
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
147
|
+
const argumentsTypes = [
|
|
148
|
+
`${packageAddress}::nitro_attestation::NitroAttestationDocument`,
|
|
149
|
+
];
|
|
150
|
+
const parameterNames = ["attestation"];
|
|
151
|
+
return (tx) => tx.moveCall({
|
|
152
|
+
package: packageAddress,
|
|
153
|
+
module: "nitro_attestation",
|
|
154
|
+
function: "nonce",
|
|
155
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
export function index(options) {
|
|
159
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
160
|
+
const argumentsTypes = [
|
|
161
|
+
`${packageAddress}::nitro_attestation::PCREntry`,
|
|
162
|
+
];
|
|
163
|
+
const parameterNames = ["entry"];
|
|
164
|
+
return (tx) => tx.moveCall({
|
|
165
|
+
package: packageAddress,
|
|
166
|
+
module: "nitro_attestation",
|
|
167
|
+
function: "index",
|
|
168
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export function value(options) {
|
|
172
|
+
const packageAddress = options.package ?? "@local-pkg/zing_studio";
|
|
173
|
+
const argumentsTypes = [
|
|
174
|
+
`${packageAddress}::nitro_attestation::PCREntry`,
|
|
175
|
+
];
|
|
176
|
+
const parameterNames = ["entry"];
|
|
177
|
+
return (tx) => tx.moveCall({
|
|
178
|
+
package: packageAddress,
|
|
179
|
+
module: "nitro_attestation",
|
|
180
|
+
function: "value",
|
|
181
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
182
|
+
});
|
|
183
|
+
}
|