@arcanetech/privacy-sdk-stellar 0.2.0

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.
@@ -0,0 +1,54 @@
1
+ # contract JS
2
+
3
+ JS library for interacting with [Soroban](https://soroban.stellar.org/) smart contract `contract` via Soroban RPC.
4
+
5
+ This library was automatically generated by Soroban CLI using a command similar to:
6
+
7
+ ```bash
8
+ soroban contract bindings ts \
9
+ --rpc-url https://soroban-testnet.stellar.org \
10
+ --network-passphrase "Test SDF Network ; September 2015" \
11
+ --contract-id CBVQTSTSIJ4UZMN5FQBFHPUIYSW3ATGSP57BZDJNKTOBNQODQTRGE4K5 \
12
+ --output-dir ./path/to/contract
13
+ ```
14
+
15
+ The network passphrase and contract ID are exported from [index.ts](./src/index.ts) in the `networks` constant. If you are the one who generated this library and you know that this contract is also deployed to other networks, feel free to update `networks` with other valid options. This will help your contract consumers use this library more easily.
16
+
17
+ # To publish or not to publish
18
+
19
+ This library is suitable for publishing to NPM. You can publish it to NPM using the `npm publish` command.
20
+
21
+ But you don't need to publish this library to NPM to use it. You can add it to your project's `package.json` using a file path:
22
+
23
+ ```json
24
+ "dependencies": {
25
+ "contract": "./path/to/this/folder"
26
+ }
27
+ ```
28
+
29
+ However, we've actually encountered [frustration](https://github.com/stellar/soroban-example-dapp/pull/117#discussion_r1232873560) using local libraries with NPM in this way. Though it seems a bit messy, we suggest generating the library directly to your `node_modules` folder automatically after each install by using a `postinstall` script. We've had the least trouble with this approach. NPM will automatically remove what it sees as erroneous directories during the `install` step, and then regenerate them when it gets to your `postinstall` step, which will keep the library up-to-date with your contract.
30
+
31
+ ```json
32
+ "scripts": {
33
+ "postinstall": "soroban contract bindings ts --rpc-url https://soroban-testnet.stellar.org --network-passphrase \"Test SDF Network ; September 2015\" --id CBVQTSTSIJ4UZMN5FQBFHPUIYSW3ATGSP57BZDJNKTOBNQODQTRGE4K5 --name contract"
34
+ }
35
+ ```
36
+
37
+ Obviously you need to adjust the above command based on the actual command you used to generate the library.
38
+
39
+ # Use it
40
+
41
+ Now that you have your library up-to-date and added to your project, you can import it in a file and see inline documentation for all of its exported methods:
42
+
43
+ ```js
44
+ import { Contract, networks } from "contract"
45
+
46
+ const contract = new Contract({
47
+ ...networks.futurenet, // for example; check which networks this library exports
48
+ rpcUrl: '...', // use your own, or find one for testing at https://soroban.stellar.org/docs/reference/rpc#public-rpc-providers
49
+ })
50
+
51
+ contract.|
52
+ ```
53
+
54
+ As long as your editor is configured to show JavaScript/TypeScript documentation, you can pause your typing at that `|` to get a list of all exports and inline-documentation for each. It exports a separate [async](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) function for each method in the smart contract, with documentation for each generated from the comments the contract's author included in the original source code.
@@ -0,0 +1,369 @@
1
+ import { Buffer } from "buffer";
2
+ import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions, MethodOptions, Result } from "@stellar/stellar-sdk/contract";
3
+ import type { u32, i128, Option } from "@stellar/stellar-sdk/contract";
4
+ export * from "@stellar/stellar-sdk";
5
+ export * as contract from "@stellar/stellar-sdk/contract";
6
+ export * as rpc from "@stellar/stellar-sdk/rpc";
7
+ export declare const networks: {
8
+ readonly testnet: {
9
+ readonly networkPassphrase: "Test SDF Network ; September 2015";
10
+ readonly contractId: "CBVQTSTSIJ4UZMN5FQBFHPUIYSW3ATGSP57BZDJNKTOBNQODQTRGE4K5";
11
+ };
12
+ };
13
+ /**
14
+ * Per-application audit public key allowlist entry (runtime/config state).
15
+ */
16
+ export interface AppAuditState {
17
+ audit_public_key_x: Buffer;
18
+ audit_public_key_y: Buffer;
19
+ enabled: boolean;
20
+ }
21
+ /**
22
+ * Ephemeral BabyJubJub / ECDH point (not hashed into the Merkle tree).
23
+ */
24
+ export interface EphemeralKeyCoords {
25
+ x: Buffer;
26
+ y: Buffer;
27
+ }
28
+ /**
29
+ * Storage key for tree leaves — each leaf stored by index for O(1) write on deposit.
30
+ */
31
+ export type TreeDataKey = {
32
+ tag: "Leaf";
33
+ values: readonly [u32];
34
+ } | {
35
+ tag: "LeafCount";
36
+ values: void;
37
+ } | {
38
+ tag: "LeafEphemeral";
39
+ values: readonly [u32];
40
+ } | {
41
+ tag: "PairwiseFrontier";
42
+ values: void;
43
+ };
44
+ /**
45
+ * Storage key for nullifiers — each nullifier hash maps to bool (consumed or not).
46
+ */
47
+ export type NulifierDataKey = {
48
+ tag: "Nulifier";
49
+ values: readonly [Buffer];
50
+ };
51
+ /**
52
+ * Ring buffer of historical Merkle roots (for proofs generated against recent states).
53
+ */
54
+ export type RootHistoryKey = {
55
+ tag: "CurrentRootIndex";
56
+ values: void;
57
+ } | {
58
+ tag: "Root";
59
+ values: readonly [u32];
60
+ };
61
+ export declare const Errors: {
62
+ 1: {
63
+ message: string;
64
+ };
65
+ 2: {
66
+ message: string;
67
+ };
68
+ 3: {
69
+ message: string;
70
+ };
71
+ 4: {
72
+ message: string;
73
+ };
74
+ 5: {
75
+ message: string;
76
+ };
77
+ 6: {
78
+ message: string;
79
+ };
80
+ 7: {
81
+ message: string;
82
+ };
83
+ 8: {
84
+ message: string;
85
+ };
86
+ /**
87
+ * Proof `state_root` is not in the recent root history window.
88
+ */
89
+ 9: {
90
+ message: string;
91
+ };
92
+ /**
93
+ * Exactly one output commitment is non-zero; only zero/zero or two non-zero outputs are allowed.
94
+ */
95
+ 10: {
96
+ message: string;
97
+ };
98
+ /**
99
+ * Stored Merkle frontier length does not match tree depth (corrupt or outdated storage layout).
100
+ */
101
+ 11: {
102
+ message: string;
103
+ };
104
+ /**
105
+ * KYT passage registry is not configured (required for the current layout).
106
+ */
107
+ 12: {
108
+ message: string;
109
+ };
110
+ /**
111
+ * Public note audit key is not registered for any enabled application.
112
+ */
113
+ 13: {
114
+ message: string;
115
+ };
116
+ /**
117
+ * Public note audit key coordinates are not a valid BabyJubJub point.
118
+ */
119
+ 14: {
120
+ message: string;
121
+ };
122
+ };
123
+ export interface OutputNoteEventPayload {
124
+ ciphertext: Buffer;
125
+ ephemeral_x: Buffer;
126
+ ephemeral_y: Buffer;
127
+ output_index: u32;
128
+ tag: Buffer;
129
+ }
130
+ export declare const Groth16Error: {
131
+ 0: {
132
+ message: string;
133
+ };
134
+ };
135
+ /**
136
+ * Plaintext note fields stored in registry for onboarding claim.
137
+ */
138
+ export interface PlaintextNote {
139
+ asset_hi: Buffer;
140
+ asset_lo: Buffer;
141
+ /**
142
+ * Must remain `None`; registry rejects payloads that expose the sender ephemeral scalar.
143
+ */
144
+ deposited_ephemeral_scalar: Option<Buffer>;
145
+ nullifier: Buffer;
146
+ secret: Buffer;
147
+ value: i128;
148
+ }
149
+ export interface PendingNotePayload {
150
+ notes: Array<PlaintextNote>;
151
+ }
152
+ export interface PrivateAddressRegistration {
153
+ owner: string;
154
+ public_key_x: Buffer;
155
+ public_key_y: Buffer;
156
+ }
157
+ export type OptionalPrivateAddressRegistration = {
158
+ tag: "None";
159
+ values: void;
160
+ } | {
161
+ tag: "Some";
162
+ values: readonly [PrivateAddressRegistration];
163
+ };
164
+ export interface OnboardingPayload {
165
+ encrypted_private_key: Buffer;
166
+ notes: PendingNotePayload;
167
+ owner: string;
168
+ private_address_registration: OptionalPrivateAddressRegistration;
169
+ temp_public_key_x: Buffer;
170
+ temp_public_key_y: Buffer;
171
+ }
172
+ export interface PrivateAddressRecord {
173
+ owner: string;
174
+ public_key_x: Buffer;
175
+ public_key_y: Buffer;
176
+ updated_at_ledger: u32;
177
+ }
178
+ export interface PendingNullifierRecord {
179
+ created_at_ledger: u32;
180
+ created_by: string;
181
+ encrypted_private_key: Buffer;
182
+ note: PlaintextNote;
183
+ owner: string;
184
+ temp_public_key_x: Buffer;
185
+ temp_public_key_y: Buffer;
186
+ }
187
+ export interface KytPassageRecord {
188
+ expires_at_ledger: u32;
189
+ }
190
+ export interface KytPassageAuthorization {
191
+ expiration_ledger: u32;
192
+ signature: Buffer;
193
+ }
194
+ export interface Client {
195
+ /**
196
+ * Construct and simulate a transact transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
197
+ * Single entrypoint: verifies `circuits/main.circom` Groth16 proof and public signals, checks
198
+ * tree root and nullifiers, appends new output commitments (with ephemeral keys, not in Merkle),
199
+ * optionally forwards onboarding payload to the registry, then applies public token deposits /
200
+ * withdrawals: `publicDepositedAssets` + `publicDeposits` pull from `from`, and
201
+ * `publicWithdrawnAssets` + `publicWithdrawals` send to the Stellar account from
202
+ * `withdrawAddressHi` / `withdrawAddressLo`.
203
+ *
204
+ * Asset ids: Stellar **contract** token `C...` addresses encoded as two field elements (same 32-byte
205
+ * split as account keys — see `circuits/main.circom`).
206
+ *
207
+ * Withdraw destination account: Stellar **account** Ed25519 key (G-address strkey payload) split into two
208
+ * public field elements `withdrawAddressHi` / `withdrawAddressLo` — big-endian `u128` chunks
209
+ * `bytes[0..16]` and `bytes[16..32]` (see `circuits/main.circom`). Avoids mod-`r` loss from a single `Fr`.
210
+ */
211
+ transact: ({ from, proof_bytes, pub_signals_bytes, onboarding, kyt_authorization }: {
212
+ from: string;
213
+ proof_bytes: Buffer;
214
+ pub_signals_bytes: Buffer;
215
+ onboarding: Option<OnboardingPayload>;
216
+ kyt_authorization: Option<KytPassageAuthorization>;
217
+ }, options?: MethodOptions) => Promise<AssembledTransaction<Result<void>>>;
218
+ /**
219
+ * Construct and simulate a set_kyt_registry transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
220
+ */
221
+ set_kyt_registry: ({ admin, kyt_registry }: {
222
+ admin: string;
223
+ kyt_registry: string;
224
+ }, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
225
+ /**
226
+ * Construct and simulate a get_kyt_registry transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
227
+ */
228
+ get_kyt_registry: (options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>;
229
+ /**
230
+ * Construct and simulate a require_kyt_passage transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
231
+ */
232
+ require_kyt_passage: ({ passage_id }: {
233
+ passage_id: Buffer;
234
+ }, options?: MethodOptions) => Promise<AssembledTransaction<Result<void>>>;
235
+ /**
236
+ * Construct and simulate a set_app_audit_key transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
237
+ */
238
+ set_app_audit_key: ({ admin, application_id, audit_public_key_x, audit_public_key_y, enabled }: {
239
+ admin: string;
240
+ application_id: Buffer;
241
+ audit_public_key_x: Buffer;
242
+ audit_public_key_y: Buffer;
243
+ enabled: boolean;
244
+ }, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
245
+ /**
246
+ * Construct and simulate a get_app_audit_state transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
247
+ */
248
+ get_app_audit_state: ({ application_id }: {
249
+ application_id: Buffer;
250
+ }, options?: MethodOptions) => Promise<AssembledTransaction<Option<AppAuditState>>>;
251
+ /**
252
+ * Construct and simulate a set_registry transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
253
+ */
254
+ set_registry: ({ admin, registry }: {
255
+ admin: string;
256
+ registry: string;
257
+ }, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
258
+ /**
259
+ * Construct and simulate a get_registry transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
260
+ */
261
+ get_registry: (options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>;
262
+ /**
263
+ * Construct and simulate a get_merkle_root transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
264
+ * Gets the current merkle root of the commitment tree.
265
+ */
266
+ get_merkle_root: (options?: MethodOptions) => Promise<AssembledTransaction<Buffer>>;
267
+ /**
268
+ * Construct and simulate a get_merkle_depth transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
269
+ * Gets the current depth of the merkle tree
270
+ */
271
+ get_merkle_depth: (options?: MethodOptions) => Promise<AssembledTransaction<u32>>;
272
+ /**
273
+ * Construct and simulate a get_commitment_count transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
274
+ * Gets the number of commitments (leaves) in the merkle tree
275
+ */
276
+ get_commitment_count: (options?: MethodOptions) => Promise<AssembledTransaction<u32>>;
277
+ /**
278
+ * Construct and simulate a get_leaf_ephemeral transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
279
+ * Ephemeral key (x, y) for a leaf index, if present.
280
+ */
281
+ get_leaf_ephemeral: ({ leaf_index }: {
282
+ leaf_index: u32;
283
+ }, options?: MethodOptions) => Promise<AssembledTransaction<Option<EphemeralKeyCoords>>>;
284
+ /**
285
+ * Construct and simulate a get_pairwise_frontier transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
286
+ * Filled-subtree frontier after the last pairwise insert (reload on the next deposit).
287
+ */
288
+ get_pairwise_frontier: (options?: MethodOptions) => Promise<AssembledTransaction<Array<Buffer>>>;
289
+ /**
290
+ * Construct and simulate a get_commitments transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
291
+ * Gets all commitments (leaves) in the merkle tree
292
+ */
293
+ get_commitments: (options?: MethodOptions) => Promise<AssembledTransaction<Array<Buffer>>>;
294
+ /**
295
+ * Construct and simulate a is_nulifier_hash_consumed transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
296
+ * Returns true if the given nullifier hash has already been consumed (used in a withdrawal).
297
+ */
298
+ is_nulifier_hash_consumed: ({ hash }: {
299
+ hash: Buffer;
300
+ }, options?: MethodOptions) => Promise<AssembledTransaction<boolean>>;
301
+ /**
302
+ * Construct and simulate a is_known_root transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
303
+ * Returns true if `root` appears in the recent root history (ring buffer).
304
+ * All-zero bytes are never accepted.
305
+ */
306
+ is_known_root: ({ root }: {
307
+ root: Buffer;
308
+ }, options?: MethodOptions) => Promise<AssembledTransaction<boolean>>;
309
+ /**
310
+ * Construct and simulate a get_token_balance transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
311
+ * Token balance held by this contract for a Stellar asset contract (`C...`).
312
+ */
313
+ get_token_balance: ({ token }: {
314
+ token: string;
315
+ }, options?: MethodOptions) => Promise<AssembledTransaction<i128>>;
316
+ /**
317
+ * Construct and simulate a get_public_slot_config transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
318
+ * `publicNInputs` / `publicNOutputs` configured at deploy (must match the verification key circuit).
319
+ */
320
+ get_public_slot_config: (options?: MethodOptions) => Promise<AssembledTransaction<readonly [u32, u32]>>;
321
+ /**
322
+ * Construct and simulate a get_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
323
+ * Gets the admin address (the contract deployer)
324
+ */
325
+ get_admin: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
326
+ }
327
+ export declare class Client extends ContractClient {
328
+ readonly options: ContractClientOptions;
329
+ static deploy<T = Client>(
330
+ /** Constructor/Initialization Args for the contract's `__constructor` method */
331
+ { tree_depth, vk_bytes, public_n_inputs, public_n_outputs, admin }: {
332
+ tree_depth: u32;
333
+ vk_bytes: Buffer;
334
+ public_n_inputs: u32;
335
+ public_n_outputs: u32;
336
+ admin: string;
337
+ },
338
+ /** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
339
+ options: MethodOptions & Omit<ContractClientOptions, "contractId"> & {
340
+ /** The hash of the Wasm blob, which must already be installed on-chain. */
341
+ wasmHash: Buffer | string;
342
+ /** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
343
+ salt?: Buffer | Uint8Array;
344
+ /** The format used to decode `wasmHash`, if it's provided as a string. */
345
+ format?: "hex" | "base64";
346
+ }): Promise<AssembledTransaction<T>>;
347
+ constructor(options: ContractClientOptions);
348
+ readonly fromJSON: {
349
+ transact: (json: string) => AssembledTransaction<Result<void, import("@stellar/stellar-sdk/contract").ErrorMessage>>;
350
+ set_kyt_registry: (json: string) => AssembledTransaction<null>;
351
+ get_kyt_registry: (json: string) => AssembledTransaction<Option<string>>;
352
+ require_kyt_passage: (json: string) => AssembledTransaction<Result<void, import("@stellar/stellar-sdk/contract").ErrorMessage>>;
353
+ set_app_audit_key: (json: string) => AssembledTransaction<null>;
354
+ get_app_audit_state: (json: string) => AssembledTransaction<Option<AppAuditState>>;
355
+ set_registry: (json: string) => AssembledTransaction<null>;
356
+ get_registry: (json: string) => AssembledTransaction<Option<string>>;
357
+ get_merkle_root: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>>;
358
+ get_merkle_depth: (json: string) => AssembledTransaction<number>;
359
+ get_commitment_count: (json: string) => AssembledTransaction<number>;
360
+ get_leaf_ephemeral: (json: string) => AssembledTransaction<Option<EphemeralKeyCoords>>;
361
+ get_pairwise_frontier: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>[]>;
362
+ get_commitments: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>[]>;
363
+ is_nulifier_hash_consumed: (json: string) => AssembledTransaction<boolean>;
364
+ is_known_root: (json: string) => AssembledTransaction<boolean>;
365
+ get_token_balance: (json: string) => AssembledTransaction<bigint>;
366
+ get_public_slot_config: (json: string) => AssembledTransaction<readonly [number, number]>;
367
+ get_admin: (json: string) => AssembledTransaction<string>;
368
+ };
369
+ }
@@ -0,0 +1,125 @@
1
+ import { Buffer } from "buffer";
2
+ import { Client as ContractClient, Spec as ContractSpec, } from "@stellar/stellar-sdk/contract";
3
+ export * from "@stellar/stellar-sdk";
4
+ export * as contract from "@stellar/stellar-sdk/contract";
5
+ export * as rpc from "@stellar/stellar-sdk/rpc";
6
+ if (typeof window !== "undefined") {
7
+ //@ts-ignore Buffer exists
8
+ window.Buffer = window.Buffer || Buffer;
9
+ }
10
+ export const networks = {
11
+ testnet: {
12
+ networkPassphrase: "Test SDF Network ; September 2015",
13
+ contractId: "CBVQTSTSIJ4UZMN5FQBFHPUIYSW3ATGSP57BZDJNKTOBNQODQTRGE4K5",
14
+ }
15
+ };
16
+ export const Errors = {
17
+ 1: { message: "NullifierUsed" },
18
+ 2: { message: "InsufficientBalance" },
19
+ 3: { message: "ProofVerificationFailed" },
20
+ 4: { message: "OnlyAdmin" },
21
+ 5: { message: "TreeAtCapacity" },
22
+ 6: { message: "AssociationRootMismatch" },
23
+ 7: { message: "InvalidPublicSignals" },
24
+ 8: { message: "InvalidTokenAmount" },
25
+ /**
26
+ * Proof `state_root` is not in the recent root history window.
27
+ */
28
+ 9: { message: "UnknownRoot" },
29
+ /**
30
+ * Exactly one output commitment is non-zero; only zero/zero or two non-zero outputs are allowed.
31
+ */
32
+ 10: { message: "InvalidCommitmentPair" },
33
+ /**
34
+ * Stored Merkle frontier length does not match tree depth (corrupt or outdated storage layout).
35
+ */
36
+ 11: { message: "InvalidMerkleFrontier" },
37
+ /**
38
+ * KYT passage registry is not configured (required for the current layout).
39
+ */
40
+ 12: { message: "KytRegistryMissing" },
41
+ /**
42
+ * Public note audit key is not registered for any enabled application.
43
+ */
44
+ 13: { message: "UnknownAuditPublicKey" },
45
+ /**
46
+ * Public note audit key coordinates are not a valid BabyJubJub point.
47
+ */
48
+ 14: { message: "InvalidAuditPublicKey" }
49
+ };
50
+ export const Groth16Error = {
51
+ 0: { message: "MalformedVerifyingKey" }
52
+ };
53
+ export class Client extends ContractClient {
54
+ options;
55
+ static async deploy(
56
+ /** Constructor/Initialization Args for the contract's `__constructor` method */
57
+ { tree_depth, vk_bytes, public_n_inputs, public_n_outputs, admin },
58
+ /** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
59
+ options) {
60
+ return ContractClient.deploy({ tree_depth, vk_bytes, public_n_inputs, public_n_outputs, admin }, options);
61
+ }
62
+ constructor(options) {
63
+ super(new ContractSpec(["AAAAAQAAAEhQZXItYXBwbGljYXRpb24gYXVkaXQgcHVibGljIGtleSBhbGxvd2xpc3QgZW50cnkgKHJ1bnRpbWUvY29uZmlnIHN0YXRlKS4AAAAAAAAADUFwcEF1ZGl0U3RhdGUAAAAAAAADAAAAAAAAABJhdWRpdF9wdWJsaWNfa2V5X3gAAAAAA+4AAAAgAAAAAAAAABJhdWRpdF9wdWJsaWNfa2V5X3kAAAAAA+4AAAAgAAAAAAAAAAdlbmFibGVkAAAAAAE=",
64
+ "AAAAAQAAAERFcGhlbWVyYWwgQmFieUp1Ykp1YiAvIEVDREggcG9pbnQgKG5vdCBoYXNoZWQgaW50byB0aGUgTWVya2xlIHRyZWUpLgAAAAAAAAASRXBoZW1lcmFsS2V5Q29vcmRzAAAAAAACAAAAAAAAAAF4AAAAAAAD7gAAACAAAAAAAAAAAXkAAAAAAAPuAAAAIA==",
65
+ "AAAAAgAAAFRTdG9yYWdlIGtleSBmb3IgdHJlZSBsZWF2ZXMg4oCUIGVhY2ggbGVhZiBzdG9yZWQgYnkgaW5kZXggZm9yIE8oMSkgd3JpdGUgb24gZGVwb3NpdC4AAAAAAAAAC1RyZWVEYXRhS2V5AAAAAAQAAAABAAAA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",
101
+ "AAAAAQAAAAAAAAAAAAAAF0t5dFBhc3NhZ2VBdXRob3JpemF0aW9uAAAAAAIAAAAAAAAAEWV4cGlyYXRpb25fbGVkZ2VyAAAAAAAABAAAAAAAAAAJc2lnbmF0dXJlAAAAAAAD7gAAAEA="]), options);
102
+ this.options = options;
103
+ }
104
+ fromJSON = {
105
+ transact: (this.txFromJSON),
106
+ set_kyt_registry: (this.txFromJSON),
107
+ get_kyt_registry: (this.txFromJSON),
108
+ require_kyt_passage: (this.txFromJSON),
109
+ set_app_audit_key: (this.txFromJSON),
110
+ get_app_audit_state: (this.txFromJSON),
111
+ set_registry: (this.txFromJSON),
112
+ get_registry: (this.txFromJSON),
113
+ get_merkle_root: (this.txFromJSON),
114
+ get_merkle_depth: (this.txFromJSON),
115
+ get_commitment_count: (this.txFromJSON),
116
+ get_leaf_ephemeral: (this.txFromJSON),
117
+ get_pairwise_frontier: (this.txFromJSON),
118
+ get_commitments: (this.txFromJSON),
119
+ is_nulifier_hash_consumed: (this.txFromJSON),
120
+ is_known_root: (this.txFromJSON),
121
+ get_token_balance: (this.txFromJSON),
122
+ get_public_slot_config: (this.txFromJSON),
123
+ get_admin: (this.txFromJSON)
124
+ };
125
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": "0.0.0",
3
+ "name": "contract",
4
+ "type": "module",
5
+ "exports": "./dist/index.js",
6
+ "typings": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "dependencies": {
11
+ "@stellar/stellar-sdk": "^14.1.1",
12
+ "buffer": "6.0.3"
13
+ },
14
+ "devDependencies": {
15
+ "typescript": "^5.6.2"
16
+ }
17
+ }