@arcanetech/privacy-sdk-stellar 0.3.0 → 0.4.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/README.md +6 -6
- package/dist/index.d.ts +306 -159
- package/dist/index.js +2295 -1804
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +49 -118
- package/dist/node.js +1260 -1568
- package/dist/node.js.map +1 -1
- package/dist/state/index.d.ts +7 -122
- package/dist/state/index.js +96 -490
- package/dist/state/index.js.map +1 -1
- package/dist/testing/index.d.ts +14 -32
- package/dist/transact/index.d.ts +362 -61
- package/dist/transact/index.js +2371 -940
- package/dist/transact/index.js.map +1 -1
- package/generated/contract/README.md +4 -4
- package/generated/contract/dist/index.d.ts +231 -256
- package/generated/contract/dist/index.js +71 -57
- package/generated/contract/package.json +1 -1
- package/generated/contract/src/index.ts +211 -242
- package/generated/registry/README.md +4 -4
- package/generated/registry/dist/index.d.ts +56 -123
- package/generated/registry/dist/index.js +39 -37
- package/generated/registry/package.json +1 -1
- package/generated/registry/src/index.ts +56 -132
- package/package.json +2 -2
|
@@ -6,9 +6,9 @@ This library was automatically generated by Soroban CLI using a command similar
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
soroban contract bindings ts \
|
|
9
|
-
--rpc-url
|
|
10
|
-
--network-passphrase "
|
|
11
|
-
--contract-id
|
|
9
|
+
--rpc-url INSERT_RPC_URL_HERE \
|
|
10
|
+
--network-passphrase "INSERT_NETWORK_PASSPHRASE_HERE" \
|
|
11
|
+
--contract-id INSERT_CONTRACT_ID_HERE \
|
|
12
12
|
--output-dir ./path/to/registry
|
|
13
13
|
```
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ However, we've actually encountered [frustration](https://github.com/stellar/sor
|
|
|
30
30
|
|
|
31
31
|
```json
|
|
32
32
|
"scripts": {
|
|
33
|
-
"postinstall": "soroban contract bindings ts --rpc-url
|
|
33
|
+
"postinstall": "soroban contract bindings ts --rpc-url INSERT_RPC_URL_HERE --network-passphrase \"INSERT_NETWORK_PASSPHRASE_HERE\" --id INSERT_CONTRACT_ID_HERE --name registry"
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -1,68 +1,61 @@
|
|
|
1
1
|
import { Buffer } from "buffer";
|
|
2
2
|
import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions, MethodOptions } from "@stellar/stellar-sdk/contract";
|
|
3
|
-
import type { u32,
|
|
3
|
+
import type { u32, Option } from "@stellar/stellar-sdk/contract";
|
|
4
4
|
export * from "@stellar/stellar-sdk";
|
|
5
5
|
export * as contract from "@stellar/stellar-sdk/contract";
|
|
6
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: "CCO5QRTS5HFVPR356FFC4NI62IMBQNDGMOAXR4K5UVTV3YMRWDZGKXGC";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
7
|
export declare const Errors: {
|
|
14
8
|
1: {
|
|
15
9
|
message: string;
|
|
16
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Reserved: trusted-pool coupling removed (N2/N6). Do not reuse.
|
|
13
|
+
*/
|
|
17
14
|
2: {
|
|
18
15
|
message: string;
|
|
19
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Reserved: pending-note index removed (N2). Do not reuse.
|
|
19
|
+
*/
|
|
20
20
|
3: {
|
|
21
21
|
message: string;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Reserved: pending-note payload removed (M1). Do not reuse.
|
|
25
|
+
*/
|
|
23
26
|
4: {
|
|
24
27
|
message: string;
|
|
25
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Reserved: pending-note payload removed (N6). Do not reuse.
|
|
31
|
+
*/
|
|
26
32
|
5: {
|
|
27
33
|
message: string;
|
|
28
34
|
};
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Plaintext note fields stored in registry for onboarding claim.
|
|
32
|
-
*/
|
|
33
|
-
export interface PlaintextNote {
|
|
34
|
-
asset_hi: Buffer;
|
|
35
|
-
asset_lo: Buffer;
|
|
36
35
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
tag: "Some";
|
|
57
|
-
values: readonly [PrivateAddressRegistration];
|
|
36
|
+
* A required constructor-set config value is missing; only reachable if the
|
|
37
|
+
* contract is queried before `__constructor` has run.
|
|
38
|
+
*/
|
|
39
|
+
6: {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Owner already has a registered private address with a different public key; private
|
|
44
|
+
* addresses are permanent and cannot be changed once registered.
|
|
45
|
+
*/
|
|
46
|
+
7: {
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The given public key is already registered to a different owner.
|
|
51
|
+
*/
|
|
52
|
+
8: {
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
58
55
|
};
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
owner: string;
|
|
63
|
-
private_address_registration: OptionalPrivateAddressRegistration;
|
|
64
|
-
temp_public_key_x: Buffer;
|
|
65
|
-
temp_public_key_y: Buffer;
|
|
56
|
+
export interface KytPassageRecord {
|
|
57
|
+
consumed: boolean;
|
|
58
|
+
expires_at_ledger: u32;
|
|
66
59
|
}
|
|
67
60
|
export interface PrivateAddressRecord {
|
|
68
61
|
owner: string;
|
|
@@ -70,107 +63,54 @@ export interface PrivateAddressRecord {
|
|
|
70
63
|
public_key_y: Buffer;
|
|
71
64
|
updated_at_ledger: u32;
|
|
72
65
|
}
|
|
73
|
-
export interface PendingNullifierRecord {
|
|
74
|
-
created_at_ledger: u32;
|
|
75
|
-
created_by: string;
|
|
76
|
-
encrypted_private_key: Buffer;
|
|
77
|
-
note: PlaintextNote;
|
|
78
|
-
owner: string;
|
|
79
|
-
temp_public_key_x: Buffer;
|
|
80
|
-
temp_public_key_y: Buffer;
|
|
81
|
-
}
|
|
82
|
-
export interface KytPassageRecord {
|
|
83
|
-
expires_at_ledger: u32;
|
|
84
|
-
}
|
|
85
66
|
export interface KytPassageAuthorization {
|
|
86
67
|
expiration_ledger: u32;
|
|
87
68
|
signature: Buffer;
|
|
88
69
|
}
|
|
70
|
+
export interface PrivateAddressRegistration {
|
|
71
|
+
owner: string;
|
|
72
|
+
public_key_x: Buffer;
|
|
73
|
+
public_key_y: Buffer;
|
|
74
|
+
}
|
|
89
75
|
export interface Client {
|
|
90
|
-
/**
|
|
91
|
-
* Construct and simulate a set_trusted_pool 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.
|
|
92
|
-
*/
|
|
93
|
-
set_trusted_pool: ({ admin, trusted_pool }: {
|
|
94
|
-
admin: string;
|
|
95
|
-
trusted_pool: string;
|
|
96
|
-
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
97
|
-
/**
|
|
98
|
-
* Construct and simulate a get_trusted_pool 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.
|
|
99
|
-
*/
|
|
100
|
-
get_trusted_pool: (options?: MethodOptions) => Promise<AssembledTransaction<string>>;
|
|
101
|
-
/**
|
|
102
|
-
* Construct and simulate a register_private_address 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.
|
|
103
|
-
* Owner registers a permanent private address directly.
|
|
104
|
-
*/
|
|
105
|
-
register_private_address: ({ owner, public_key_x, public_key_y }: {
|
|
106
|
-
owner: string;
|
|
107
|
-
public_key_x: Buffer;
|
|
108
|
-
public_key_y: Buffer;
|
|
109
|
-
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
110
|
-
/**
|
|
111
|
-
* Construct and simulate a register_address_via_pool 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.
|
|
112
|
-
* Trusted pool forwards registration after owner auth in the same transaction.
|
|
113
|
-
*/
|
|
114
|
-
register_address_via_pool: ({ registration }: {
|
|
115
|
-
registration: PrivateAddressRegistration;
|
|
116
|
-
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
117
76
|
/**
|
|
118
77
|
* Construct and simulate a get_private_address 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.
|
|
119
78
|
*/
|
|
120
79
|
get_private_address: ({ owner }: {
|
|
121
80
|
owner: string;
|
|
122
81
|
}, options?: MethodOptions) => Promise<AssembledTransaction<Option<PrivateAddressRecord>>>;
|
|
123
|
-
/**
|
|
124
|
-
* Construct and simulate a get_owner_by_public_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.
|
|
125
|
-
* Resolve the Stellar G-address owner from a registered private-address public key.
|
|
126
|
-
*/
|
|
127
|
-
get_owner_by_public_key: ({ public_key_x, public_key_y }: {
|
|
128
|
-
public_key_x: Buffer;
|
|
129
|
-
public_key_y: Buffer;
|
|
130
|
-
}, options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>;
|
|
131
82
|
/**
|
|
132
83
|
* Construct and simulate a seed_private_address 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.
|
|
133
84
|
* Admin-only migration helper: seed forward and reverse indexes without owner auth.
|
|
134
85
|
*/
|
|
135
|
-
seed_private_address: ({
|
|
136
|
-
admin: string;
|
|
86
|
+
seed_private_address: ({ registration, updated_at_ledger }: {
|
|
137
87
|
registration: PrivateAddressRegistration;
|
|
138
88
|
updated_at_ledger: u32;
|
|
139
89
|
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
140
90
|
/**
|
|
141
|
-
* Construct and simulate a
|
|
142
|
-
*
|
|
143
|
-
*/
|
|
144
|
-
register_pending_notes: ({ sender, payload }: {
|
|
145
|
-
sender: string;
|
|
146
|
-
payload: OnboardingPayload;
|
|
147
|
-
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
148
|
-
/**
|
|
149
|
-
* Construct and simulate a auth_address_for_nullifier 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.
|
|
91
|
+
* Construct and simulate a get_owner_by_public_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.
|
|
92
|
+
* Resolve the Stellar G-address owner from a registered private-address public key.
|
|
150
93
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
94
|
+
get_owner_by_public_key: ({ public_key_x, public_key_y }: {
|
|
95
|
+
public_key_x: Buffer;
|
|
96
|
+
public_key_y: Buffer;
|
|
153
97
|
}, options?: MethodOptions) => Promise<AssembledTransaction<Option<string>>>;
|
|
154
98
|
/**
|
|
155
|
-
* Construct and simulate a
|
|
156
|
-
|
|
157
|
-
get_pending_nullifier_record: ({ nullifier_hash }: {
|
|
158
|
-
nullifier_hash: Buffer;
|
|
159
|
-
}, options?: MethodOptions) => Promise<AssembledTransaction<Option<PendingNullifierRecord>>>;
|
|
160
|
-
/**
|
|
161
|
-
* Construct and simulate a future_nullifier_hash 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.
|
|
99
|
+
* Construct and simulate a register_private_address 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.
|
|
100
|
+
* Owner registers a permanent private address directly.
|
|
162
101
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
102
|
+
register_private_address: ({ owner, public_key_x, public_key_y }: {
|
|
103
|
+
owner: string;
|
|
104
|
+
public_key_x: Buffer;
|
|
105
|
+
public_key_y: Buffer;
|
|
106
|
+
}, options?: MethodOptions) => Promise<AssembledTransaction<null>>;
|
|
166
107
|
}
|
|
167
108
|
export declare class Client extends ContractClient {
|
|
168
109
|
readonly options: ContractClientOptions;
|
|
169
110
|
static deploy<T = Client>(
|
|
170
111
|
/** Constructor/Initialization Args for the contract's `__constructor` method */
|
|
171
|
-
{ admin
|
|
112
|
+
{ admin }: {
|
|
172
113
|
admin: string;
|
|
173
|
-
trusted_pool: string;
|
|
174
114
|
},
|
|
175
115
|
/** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
|
|
176
116
|
options: MethodOptions & Omit<ContractClientOptions, "contractId"> & {
|
|
@@ -183,16 +123,9 @@ export declare class Client extends ContractClient {
|
|
|
183
123
|
}): Promise<AssembledTransaction<T>>;
|
|
184
124
|
constructor(options: ContractClientOptions);
|
|
185
125
|
readonly fromJSON: {
|
|
186
|
-
set_trusted_pool: (json: string) => AssembledTransaction<null>;
|
|
187
|
-
get_trusted_pool: (json: string) => AssembledTransaction<string>;
|
|
188
|
-
register_private_address: (json: string) => AssembledTransaction<null>;
|
|
189
|
-
register_address_via_pool: (json: string) => AssembledTransaction<null>;
|
|
190
126
|
get_private_address: (json: string) => AssembledTransaction<Option<PrivateAddressRecord>>;
|
|
191
|
-
get_owner_by_public_key: (json: string) => AssembledTransaction<Option<string>>;
|
|
192
127
|
seed_private_address: (json: string) => AssembledTransaction<null>;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
get_pending_nullifier_record: (json: string) => AssembledTransaction<Option<PendingNullifierRecord>>;
|
|
196
|
-
future_nullifier_hash: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>>;
|
|
128
|
+
get_owner_by_public_key: (json: string) => AssembledTransaction<Option<string>>;
|
|
129
|
+
register_private_address: (json: string) => AssembledTransaction<null>;
|
|
197
130
|
};
|
|
198
131
|
}
|
|
@@ -7,64 +7,66 @@ if (typeof window !== "undefined") {
|
|
|
7
7
|
//@ts-ignore Buffer exists
|
|
8
8
|
window.Buffer = window.Buffer || Buffer;
|
|
9
9
|
}
|
|
10
|
-
export const networks = {
|
|
11
|
-
testnet: {
|
|
12
|
-
networkPassphrase: "Test SDF Network ; September 2015",
|
|
13
|
-
contractId: "CCO5QRTS5HFVPR356FFC4NI62IMBQNDGMOAXR4K5UVTV3YMRWDZGKXGC",
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
10
|
export const Errors = {
|
|
17
11
|
1: { message: "OnlyAdmin" },
|
|
12
|
+
/**
|
|
13
|
+
* Reserved: trusted-pool coupling removed (N2/N6). Do not reuse.
|
|
14
|
+
*/
|
|
18
15
|
2: { message: "UntrustedCaller" },
|
|
16
|
+
/**
|
|
17
|
+
* Reserved: pending-note index removed (N2). Do not reuse.
|
|
18
|
+
*/
|
|
19
19
|
3: { message: "DuplicatePendingNullifier" },
|
|
20
|
+
/**
|
|
21
|
+
* Reserved: pending-note payload removed (M1). Do not reuse.
|
|
22
|
+
*/
|
|
20
23
|
4: { message: "ForbiddenEphemeralScalar" },
|
|
21
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Reserved: pending-note payload removed (N6). Do not reuse.
|
|
26
|
+
*/
|
|
27
|
+
5: { message: "EmptyNotes" },
|
|
28
|
+
/**
|
|
29
|
+
* A required constructor-set config value is missing; only reachable if the
|
|
30
|
+
* contract is queried before `__constructor` has run.
|
|
31
|
+
*/
|
|
32
|
+
6: { message: "NotInitialized" },
|
|
33
|
+
/**
|
|
34
|
+
* Owner already has a registered private address with a different public key; private
|
|
35
|
+
* addresses are permanent and cannot be changed once registered.
|
|
36
|
+
*/
|
|
37
|
+
7: { message: "PrivateAddressImmutable" },
|
|
38
|
+
/**
|
|
39
|
+
* The given public key is already registered to a different owner.
|
|
40
|
+
*/
|
|
41
|
+
8: { message: "PublicKeyAlreadyRegistered" }
|
|
22
42
|
};
|
|
23
43
|
export class Client extends ContractClient {
|
|
24
44
|
options;
|
|
25
45
|
static async deploy(
|
|
26
46
|
/** Constructor/Initialization Args for the contract's `__constructor` method */
|
|
27
|
-
{ admin
|
|
47
|
+
{ admin },
|
|
28
48
|
/** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
|
|
29
49
|
options) {
|
|
30
|
-
return ContractClient.deploy({ admin
|
|
50
|
+
return ContractClient.deploy({ admin }, options);
|
|
31
51
|
}
|
|
32
52
|
constructor(options) {
|
|
33
|
-
super(new ContractSpec(["
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"AAAAAAAAAAAAAAAQZ2V0X3RydXN0ZWRfcG9vbAAAAAAAAAABAAAAEw==",
|
|
37
|
-
"AAAAAAAAADVPd25lciByZWdpc3RlcnMgYSBwZXJtYW5lbnQgcHJpdmF0ZSBhZGRyZXNzIGRpcmVjdGx5LgAAAAAAABhyZWdpc3Rlcl9wcml2YXRlX2FkZHJlc3MAAAADAAAAAAAAAAVvd25lcgAAAAAAABMAAAAAAAAADHB1YmxpY19rZXlfeAAAA+4AAAAgAAAAAAAAAAxwdWJsaWNfa2V5X3kAAAPuAAAAIAAAAAA=",
|
|
38
|
-
"AAAAAAAAAExUcnVzdGVkIHBvb2wgZm9yd2FyZHMgcmVnaXN0cmF0aW9uIGFmdGVyIG93bmVyIGF1dGggaW4gdGhlIHNhbWUgdHJhbnNhY3Rpb24uAAAAGXJlZ2lzdGVyX2FkZHJlc3NfdmlhX3Bvb2wAAAAAAAABAAAAAAAAAAxyZWdpc3RyYXRpb24AAAfQAAAAGlByaXZhdGVBZGR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AAAAAAGlByaXZhdGVBZGRyZXNzUmVnaXN0cmF0aW9uAAAAAAADAAAAAAAAAAVvd25lcgAAAAAAABMAAAAAAAAADHB1YmxpY19rZXlfeAAAA+4AAAAgAAAAAAAAAAxwdWJsaWNfa2V5X3kAAAPuAAAAIA=="]), options);
|
|
55
64
|
this.options = options;
|
|
56
65
|
}
|
|
57
66
|
fromJSON = {
|
|
58
|
-
set_trusted_pool: (this.txFromJSON),
|
|
59
|
-
get_trusted_pool: (this.txFromJSON),
|
|
60
|
-
register_private_address: (this.txFromJSON),
|
|
61
|
-
register_address_via_pool: (this.txFromJSON),
|
|
62
67
|
get_private_address: (this.txFromJSON),
|
|
63
|
-
get_owner_by_public_key: (this.txFromJSON),
|
|
64
68
|
seed_private_address: (this.txFromJSON),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
get_pending_nullifier_record: (this.txFromJSON),
|
|
68
|
-
future_nullifier_hash: (this.txFromJSON)
|
|
69
|
+
get_owner_by_public_key: (this.txFromJSON),
|
|
70
|
+
register_private_address: (this.txFromJSON)
|
|
69
71
|
};
|
|
70
72
|
}
|