@invisi-labs/protocol 1.1.7 → 1.2.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.
Files changed (44) hide show
  1. package/README.md +5 -0
  2. package/dist/chunk-7SS2YSEF.js +199 -0
  3. package/dist/chunk-7SS2YSEF.js.map +1 -0
  4. package/dist/{chunk-BYJ4LXCJ.js → chunk-HHJLFLVJ.js} +616 -714
  5. package/dist/chunk-HHJLFLVJ.js.map +1 -0
  6. package/dist/chunk-MVQQD5W5.js +487 -0
  7. package/dist/chunk-MVQQD5W5.js.map +1 -0
  8. package/dist/chunk-Z2XPYNMC.js +446 -0
  9. package/dist/chunk-Z2XPYNMC.js.map +1 -0
  10. package/dist/contracts.cjs +615 -713
  11. package/dist/contracts.cjs.map +1 -1
  12. package/dist/contracts.d.cts +5 -5
  13. package/dist/contracts.d.ts +5 -5
  14. package/dist/contracts.js +1 -1
  15. package/dist/credit.cjs +3367 -0
  16. package/dist/credit.cjs.map +1 -0
  17. package/dist/credit.d.cts +252 -0
  18. package/dist/credit.d.ts +252 -0
  19. package/dist/credit.js +53 -0
  20. package/dist/credit.js.map +1 -0
  21. package/dist/index.cjs +6054 -6053
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +89 -893
  24. package/dist/index.d.ts +89 -893
  25. package/dist/index.js +2956 -3762
  26. package/dist/index.js.map +1 -1
  27. package/dist/note.cjs +3456 -0
  28. package/dist/note.cjs.map +1 -0
  29. package/dist/note.d.cts +232 -0
  30. package/dist/note.d.ts +232 -0
  31. package/dist/note.js +43 -0
  32. package/dist/note.js.map +1 -0
  33. package/dist/provenance.cjs +558 -0
  34. package/dist/provenance.cjs.map +1 -0
  35. package/dist/provenance.d.cts +188 -0
  36. package/dist/provenance.d.ts +188 -0
  37. package/dist/provenance.js +499 -0
  38. package/dist/provenance.js.map +1 -0
  39. package/dist/{types-Bvakbfeb.d.cts → types-CUnFzl5S.d.cts} +530 -590
  40. package/dist/{types-Bvakbfeb.d.ts → types-CUnFzl5S.d.ts} +530 -590
  41. package/dist/validation-8g0SQVE5.d.ts +235 -0
  42. package/dist/validation-MgURYiNF.d.cts +235 -0
  43. package/package.json +20 -5
  44. package/dist/chunk-BYJ4LXCJ.js.map +0 -1
@@ -0,0 +1,252 @@
1
+ import { C as CreateCreditParams, D as Delivery, a as CreditDrawParams, i as RevokeCreditParams, U as UpdateCreditParams } from './types-CUnFzl5S.cjs';
2
+ export { b as CreditGrantRef, c as CreditPayer } from './types-CUnFzl5S.cjs';
3
+ import { T as TransactionContext } from './validation-MgURYiNF.cjs';
4
+ import { Hex } from '@invisi-labs/primitives';
5
+
6
+ declare const CREATE_CREDIT_FIELDS: readonly ["token", "owner", "revocationShard", "revocationSlot", "creditCommitment", "deadline", "feeRecipient", "feeAmount"];
7
+ declare function validateCreateCreditRequest(c: TransactionContext, p: CreateCreditParams, deliveries: readonly Delivery[]): {
8
+ owner: `0x${string}`;
9
+ revocationShard: bigint;
10
+ revocationSlot: bigint;
11
+ creditCommitment: `0x${string}`;
12
+ deadline: bigint;
13
+ deliveries: Delivery[];
14
+ feeRecipient: `0x${string}`;
15
+ feeAmount: bigint;
16
+ chainId: bigint;
17
+ protocolAddress: Hex;
18
+ tokenAddress: Hex;
19
+ now?: bigint;
20
+ timestamp?: bigint;
21
+ };
22
+ declare function createCreditBaseInputs(c: TransactionContext, p: CreateCreditParams, d: readonly Delivery[]): `0x${string}`[];
23
+ declare function authorizedCreditInputs(c: TransactionContext, operation: "create-credit" | "credit-draw" | "update-credit", capacity: number, base: readonly Hex[]): `0x${string}`[];
24
+ declare function createCreditPublicInputs(c: TransactionContext, p: CreateCreditParams, d: readonly Delivery[]): `0x${string}`[];
25
+ declare function encodeCreateCreditTypedData(c: TransactionContext, p: CreateCreditParams, d: readonly Delivery[]): {
26
+ domain: {
27
+ name: string;
28
+ version: string;
29
+ chainId: bigint;
30
+ verifyingContract: `0x${string}`;
31
+ };
32
+ types: {
33
+ readonly WalletAuthorization: readonly [{
34
+ readonly name: "operation";
35
+ readonly type: "bytes32";
36
+ }, {
37
+ readonly name: "statementHash";
38
+ readonly type: "bytes32";
39
+ }];
40
+ };
41
+ primaryType: "WalletAuthorization";
42
+ message: {
43
+ operation: `0x${string}`;
44
+ statementHash: `0x${string}`;
45
+ };
46
+ };
47
+ declare function encodeCreditProof(proof: Hex): Hex;
48
+ interface BuildCreateCreditCalldataParams {
49
+ context: TransactionContext;
50
+ proof: Hex;
51
+ params: CreateCreditParams;
52
+ deliveries: readonly Delivery[];
53
+ }
54
+ declare function buildCreateCreditCalldata(p: BuildCreateCreditCalldataParams): {
55
+ data: Hex;
56
+ approveAmount: bigint;
57
+ approvalRequirements: {
58
+ token: `0x${string}`;
59
+ payer: `0x${string}`;
60
+ amount: bigint;
61
+ }[];
62
+ };
63
+
64
+ declare const CREDIT_DRAW_CAPACITIES: readonly [1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 60, 70, 80];
65
+ declare function selectCreditDrawCircuit(count: number): {
66
+ name: string;
67
+ capacity: 5 | 3 | 1 | 2 | 4 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80;
68
+ publicInputCount: number;
69
+ };
70
+ declare function validateCreditDrawRequest(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): {
71
+ profile: {
72
+ name: string;
73
+ capacity: 5 | 3 | 1 | 2 | 4 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80;
74
+ publicInputCount: number;
75
+ };
76
+ sources: {
77
+ treeId: bigint;
78
+ merkleRoot: `0x${string}`;
79
+ }[];
80
+ payers: {
81
+ payer: `0x${string}`;
82
+ amount: bigint;
83
+ }[];
84
+ grantRefs: {
85
+ payerIndex: bigint;
86
+ shard: bigint;
87
+ slot: bigint;
88
+ }[];
89
+ nullifiers: `0x${string}`[];
90
+ creditCommitments: `0x${string}`[];
91
+ recoveryAmounts: `0x${string}`[];
92
+ noteCommitment: `0x${string}`;
93
+ totalAmount: bigint;
94
+ deadline: bigint;
95
+ periods: {
96
+ currentDay: bigint;
97
+ currentMonth: bigint;
98
+ };
99
+ deliveries: Delivery[];
100
+ feeRecipient: `0x${string}`;
101
+ feeAmount: bigint;
102
+ chainId: bigint;
103
+ protocolAddress: Hex;
104
+ tokenAddress: Hex;
105
+ now?: bigint;
106
+ timestamp?: bigint;
107
+ };
108
+ declare function creditDrawBaseInputs(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): `0x${string}`[];
109
+ declare function creditDrawPublicInputs(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): `0x${string}`[];
110
+ declare function encodeCreditDrawTypedData(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): {
111
+ domain: {
112
+ name: string;
113
+ version: string;
114
+ chainId: bigint;
115
+ verifyingContract: `0x${string}`;
116
+ };
117
+ types: {
118
+ readonly WalletAuthorization: readonly [{
119
+ readonly name: "operation";
120
+ readonly type: "bytes32";
121
+ }, {
122
+ readonly name: "statementHash";
123
+ readonly type: "bytes32";
124
+ }];
125
+ };
126
+ primaryType: "WalletAuthorization";
127
+ message: {
128
+ operation: `0x${string}`;
129
+ statementHash: `0x${string}`;
130
+ };
131
+ };
132
+ declare function validateUpdateCreditRequest(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): {
133
+ owner: `0x${string}`;
134
+ source: {
135
+ treeId: bigint;
136
+ merkleRoot: `0x${string}`;
137
+ };
138
+ nullifier: `0x${string}`;
139
+ creditCommitment: `0x${string}`;
140
+ revocationShard: bigint;
141
+ revocationSlot: bigint;
142
+ deadline: bigint;
143
+ deliveries: Delivery[];
144
+ feeRecipient: `0x${string}`;
145
+ feeAmount: bigint;
146
+ chainId: bigint;
147
+ protocolAddress: Hex;
148
+ tokenAddress: Hex;
149
+ now?: bigint;
150
+ timestamp?: bigint;
151
+ };
152
+ declare function updateCreditBaseInputs(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): `0x${string}`[];
153
+ declare function updateCreditPublicInputs(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): `0x${string}`[];
154
+ declare function encodeUpdateCreditTypedData(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): {
155
+ domain: {
156
+ name: string;
157
+ version: string;
158
+ chainId: bigint;
159
+ verifyingContract: `0x${string}`;
160
+ };
161
+ types: {
162
+ readonly WalletAuthorization: readonly [{
163
+ readonly name: "operation";
164
+ readonly type: "bytes32";
165
+ }, {
166
+ readonly name: "statementHash";
167
+ readonly type: "bytes32";
168
+ }];
169
+ };
170
+ primaryType: "WalletAuthorization";
171
+ message: {
172
+ operation: `0x${string}`;
173
+ statementHash: `0x${string}`;
174
+ };
175
+ };
176
+ interface BuildCreditDrawCalldataParams {
177
+ context: TransactionContext;
178
+ proof: Hex;
179
+ params: CreditDrawParams;
180
+ deliveries: readonly Delivery[];
181
+ }
182
+ declare function buildCreditDrawCalldata(p: BuildCreditDrawCalldataParams): {
183
+ data: Hex;
184
+ approveAmount: bigint;
185
+ approvalRequirements: {
186
+ token: `0x${string}`;
187
+ payer: `0x${string}`;
188
+ amount: bigint;
189
+ }[];
190
+ };
191
+ interface BuildUpdateCreditCalldataParams {
192
+ context: TransactionContext;
193
+ proof: Hex;
194
+ params: UpdateCreditParams;
195
+ deliveries: readonly Delivery[];
196
+ }
197
+ declare function buildUpdateCreditCalldata(p: BuildUpdateCreditCalldataParams): {
198
+ data: Hex;
199
+ approveAmount: bigint;
200
+ approvalRequirements: {
201
+ token: `0x${string}`;
202
+ payer: `0x${string}`;
203
+ amount: bigint;
204
+ }[];
205
+ };
206
+ declare const REVOKE_CREDIT_TYPES: {
207
+ RevokeCredit: {
208
+ name: string;
209
+ type: string;
210
+ }[];
211
+ };
212
+ declare function encodeRevokeCreditTypedData(c: TransactionContext, p: RevokeCreditParams): {
213
+ domain: {
214
+ name: string;
215
+ version: string;
216
+ chainId: bigint;
217
+ verifyingContract: `0x${string}`;
218
+ };
219
+ types: {
220
+ RevokeCredit: {
221
+ name: string;
222
+ type: string;
223
+ }[];
224
+ };
225
+ primaryType: "RevokeCredit";
226
+ message: {
227
+ feeRecipient: `0x${string}`;
228
+ feeAmount: bigint;
229
+ token: string;
230
+ owner: string;
231
+ shard: bigint;
232
+ slot: bigint;
233
+ deadline: bigint;
234
+ };
235
+ };
236
+ interface BuildRevokeCreditCalldataParams {
237
+ context: TransactionContext;
238
+ params: RevokeCreditParams;
239
+ signature: Hex;
240
+ caller?: Hex;
241
+ }
242
+ declare function buildRevokeCreditCalldata(p: BuildRevokeCreditCalldataParams): {
243
+ data: Hex;
244
+ approveAmount: bigint;
245
+ approvalRequirements: {
246
+ token: `0x${string}`;
247
+ payer: `0x${string}`;
248
+ amount: bigint;
249
+ }[];
250
+ };
251
+
252
+ export { type BuildCreateCreditCalldataParams, type BuildCreditDrawCalldataParams, type BuildRevokeCreditCalldataParams, type BuildUpdateCreditCalldataParams, CREATE_CREDIT_FIELDS, CREDIT_DRAW_CAPACITIES, CreateCreditParams, CreditDrawParams, REVOKE_CREDIT_TYPES, RevokeCreditParams, UpdateCreditParams, authorizedCreditInputs, buildCreateCreditCalldata, buildCreditDrawCalldata, buildRevokeCreditCalldata, buildUpdateCreditCalldata, createCreditBaseInputs, createCreditPublicInputs, creditDrawBaseInputs, creditDrawPublicInputs, encodeCreateCreditTypedData, encodeCreditDrawTypedData, encodeCreditProof, encodeRevokeCreditTypedData, encodeUpdateCreditTypedData, selectCreditDrawCircuit, updateCreditBaseInputs, updateCreditPublicInputs, validateCreateCreditRequest, validateCreditDrawRequest, validateUpdateCreditRequest };
@@ -0,0 +1,252 @@
1
+ import { C as CreateCreditParams, D as Delivery, a as CreditDrawParams, i as RevokeCreditParams, U as UpdateCreditParams } from './types-CUnFzl5S.js';
2
+ export { b as CreditGrantRef, c as CreditPayer } from './types-CUnFzl5S.js';
3
+ import { T as TransactionContext } from './validation-8g0SQVE5.js';
4
+ import { Hex } from '@invisi-labs/primitives';
5
+
6
+ declare const CREATE_CREDIT_FIELDS: readonly ["token", "owner", "revocationShard", "revocationSlot", "creditCommitment", "deadline", "feeRecipient", "feeAmount"];
7
+ declare function validateCreateCreditRequest(c: TransactionContext, p: CreateCreditParams, deliveries: readonly Delivery[]): {
8
+ owner: `0x${string}`;
9
+ revocationShard: bigint;
10
+ revocationSlot: bigint;
11
+ creditCommitment: `0x${string}`;
12
+ deadline: bigint;
13
+ deliveries: Delivery[];
14
+ feeRecipient: `0x${string}`;
15
+ feeAmount: bigint;
16
+ chainId: bigint;
17
+ protocolAddress: Hex;
18
+ tokenAddress: Hex;
19
+ now?: bigint;
20
+ timestamp?: bigint;
21
+ };
22
+ declare function createCreditBaseInputs(c: TransactionContext, p: CreateCreditParams, d: readonly Delivery[]): `0x${string}`[];
23
+ declare function authorizedCreditInputs(c: TransactionContext, operation: "create-credit" | "credit-draw" | "update-credit", capacity: number, base: readonly Hex[]): `0x${string}`[];
24
+ declare function createCreditPublicInputs(c: TransactionContext, p: CreateCreditParams, d: readonly Delivery[]): `0x${string}`[];
25
+ declare function encodeCreateCreditTypedData(c: TransactionContext, p: CreateCreditParams, d: readonly Delivery[]): {
26
+ domain: {
27
+ name: string;
28
+ version: string;
29
+ chainId: bigint;
30
+ verifyingContract: `0x${string}`;
31
+ };
32
+ types: {
33
+ readonly WalletAuthorization: readonly [{
34
+ readonly name: "operation";
35
+ readonly type: "bytes32";
36
+ }, {
37
+ readonly name: "statementHash";
38
+ readonly type: "bytes32";
39
+ }];
40
+ };
41
+ primaryType: "WalletAuthorization";
42
+ message: {
43
+ operation: `0x${string}`;
44
+ statementHash: `0x${string}`;
45
+ };
46
+ };
47
+ declare function encodeCreditProof(proof: Hex): Hex;
48
+ interface BuildCreateCreditCalldataParams {
49
+ context: TransactionContext;
50
+ proof: Hex;
51
+ params: CreateCreditParams;
52
+ deliveries: readonly Delivery[];
53
+ }
54
+ declare function buildCreateCreditCalldata(p: BuildCreateCreditCalldataParams): {
55
+ data: Hex;
56
+ approveAmount: bigint;
57
+ approvalRequirements: {
58
+ token: `0x${string}`;
59
+ payer: `0x${string}`;
60
+ amount: bigint;
61
+ }[];
62
+ };
63
+
64
+ declare const CREDIT_DRAW_CAPACITIES: readonly [1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 60, 70, 80];
65
+ declare function selectCreditDrawCircuit(count: number): {
66
+ name: string;
67
+ capacity: 5 | 3 | 1 | 2 | 4 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80;
68
+ publicInputCount: number;
69
+ };
70
+ declare function validateCreditDrawRequest(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): {
71
+ profile: {
72
+ name: string;
73
+ capacity: 5 | 3 | 1 | 2 | 4 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80;
74
+ publicInputCount: number;
75
+ };
76
+ sources: {
77
+ treeId: bigint;
78
+ merkleRoot: `0x${string}`;
79
+ }[];
80
+ payers: {
81
+ payer: `0x${string}`;
82
+ amount: bigint;
83
+ }[];
84
+ grantRefs: {
85
+ payerIndex: bigint;
86
+ shard: bigint;
87
+ slot: bigint;
88
+ }[];
89
+ nullifiers: `0x${string}`[];
90
+ creditCommitments: `0x${string}`[];
91
+ recoveryAmounts: `0x${string}`[];
92
+ noteCommitment: `0x${string}`;
93
+ totalAmount: bigint;
94
+ deadline: bigint;
95
+ periods: {
96
+ currentDay: bigint;
97
+ currentMonth: bigint;
98
+ };
99
+ deliveries: Delivery[];
100
+ feeRecipient: `0x${string}`;
101
+ feeAmount: bigint;
102
+ chainId: bigint;
103
+ protocolAddress: Hex;
104
+ tokenAddress: Hex;
105
+ now?: bigint;
106
+ timestamp?: bigint;
107
+ };
108
+ declare function creditDrawBaseInputs(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): `0x${string}`[];
109
+ declare function creditDrawPublicInputs(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): `0x${string}`[];
110
+ declare function encodeCreditDrawTypedData(c: TransactionContext, p: CreditDrawParams, d: readonly Delivery[]): {
111
+ domain: {
112
+ name: string;
113
+ version: string;
114
+ chainId: bigint;
115
+ verifyingContract: `0x${string}`;
116
+ };
117
+ types: {
118
+ readonly WalletAuthorization: readonly [{
119
+ readonly name: "operation";
120
+ readonly type: "bytes32";
121
+ }, {
122
+ readonly name: "statementHash";
123
+ readonly type: "bytes32";
124
+ }];
125
+ };
126
+ primaryType: "WalletAuthorization";
127
+ message: {
128
+ operation: `0x${string}`;
129
+ statementHash: `0x${string}`;
130
+ };
131
+ };
132
+ declare function validateUpdateCreditRequest(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): {
133
+ owner: `0x${string}`;
134
+ source: {
135
+ treeId: bigint;
136
+ merkleRoot: `0x${string}`;
137
+ };
138
+ nullifier: `0x${string}`;
139
+ creditCommitment: `0x${string}`;
140
+ revocationShard: bigint;
141
+ revocationSlot: bigint;
142
+ deadline: bigint;
143
+ deliveries: Delivery[];
144
+ feeRecipient: `0x${string}`;
145
+ feeAmount: bigint;
146
+ chainId: bigint;
147
+ protocolAddress: Hex;
148
+ tokenAddress: Hex;
149
+ now?: bigint;
150
+ timestamp?: bigint;
151
+ };
152
+ declare function updateCreditBaseInputs(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): `0x${string}`[];
153
+ declare function updateCreditPublicInputs(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): `0x${string}`[];
154
+ declare function encodeUpdateCreditTypedData(c: TransactionContext, p: UpdateCreditParams, d: readonly Delivery[]): {
155
+ domain: {
156
+ name: string;
157
+ version: string;
158
+ chainId: bigint;
159
+ verifyingContract: `0x${string}`;
160
+ };
161
+ types: {
162
+ readonly WalletAuthorization: readonly [{
163
+ readonly name: "operation";
164
+ readonly type: "bytes32";
165
+ }, {
166
+ readonly name: "statementHash";
167
+ readonly type: "bytes32";
168
+ }];
169
+ };
170
+ primaryType: "WalletAuthorization";
171
+ message: {
172
+ operation: `0x${string}`;
173
+ statementHash: `0x${string}`;
174
+ };
175
+ };
176
+ interface BuildCreditDrawCalldataParams {
177
+ context: TransactionContext;
178
+ proof: Hex;
179
+ params: CreditDrawParams;
180
+ deliveries: readonly Delivery[];
181
+ }
182
+ declare function buildCreditDrawCalldata(p: BuildCreditDrawCalldataParams): {
183
+ data: Hex;
184
+ approveAmount: bigint;
185
+ approvalRequirements: {
186
+ token: `0x${string}`;
187
+ payer: `0x${string}`;
188
+ amount: bigint;
189
+ }[];
190
+ };
191
+ interface BuildUpdateCreditCalldataParams {
192
+ context: TransactionContext;
193
+ proof: Hex;
194
+ params: UpdateCreditParams;
195
+ deliveries: readonly Delivery[];
196
+ }
197
+ declare function buildUpdateCreditCalldata(p: BuildUpdateCreditCalldataParams): {
198
+ data: Hex;
199
+ approveAmount: bigint;
200
+ approvalRequirements: {
201
+ token: `0x${string}`;
202
+ payer: `0x${string}`;
203
+ amount: bigint;
204
+ }[];
205
+ };
206
+ declare const REVOKE_CREDIT_TYPES: {
207
+ RevokeCredit: {
208
+ name: string;
209
+ type: string;
210
+ }[];
211
+ };
212
+ declare function encodeRevokeCreditTypedData(c: TransactionContext, p: RevokeCreditParams): {
213
+ domain: {
214
+ name: string;
215
+ version: string;
216
+ chainId: bigint;
217
+ verifyingContract: `0x${string}`;
218
+ };
219
+ types: {
220
+ RevokeCredit: {
221
+ name: string;
222
+ type: string;
223
+ }[];
224
+ };
225
+ primaryType: "RevokeCredit";
226
+ message: {
227
+ feeRecipient: `0x${string}`;
228
+ feeAmount: bigint;
229
+ token: string;
230
+ owner: string;
231
+ shard: bigint;
232
+ slot: bigint;
233
+ deadline: bigint;
234
+ };
235
+ };
236
+ interface BuildRevokeCreditCalldataParams {
237
+ context: TransactionContext;
238
+ params: RevokeCreditParams;
239
+ signature: Hex;
240
+ caller?: Hex;
241
+ }
242
+ declare function buildRevokeCreditCalldata(p: BuildRevokeCreditCalldataParams): {
243
+ data: Hex;
244
+ approveAmount: bigint;
245
+ approvalRequirements: {
246
+ token: `0x${string}`;
247
+ payer: `0x${string}`;
248
+ amount: bigint;
249
+ }[];
250
+ };
251
+
252
+ export { type BuildCreateCreditCalldataParams, type BuildCreditDrawCalldataParams, type BuildRevokeCreditCalldataParams, type BuildUpdateCreditCalldataParams, CREATE_CREDIT_FIELDS, CREDIT_DRAW_CAPACITIES, CreateCreditParams, CreditDrawParams, REVOKE_CREDIT_TYPES, RevokeCreditParams, UpdateCreditParams, authorizedCreditInputs, buildCreateCreditCalldata, buildCreditDrawCalldata, buildRevokeCreditCalldata, buildUpdateCreditCalldata, createCreditBaseInputs, createCreditPublicInputs, creditDrawBaseInputs, creditDrawPublicInputs, encodeCreateCreditTypedData, encodeCreditDrawTypedData, encodeCreditProof, encodeRevokeCreditTypedData, encodeUpdateCreditTypedData, selectCreditDrawCircuit, updateCreditBaseInputs, updateCreditPublicInputs, validateCreateCreditRequest, validateCreditDrawRequest, validateUpdateCreditRequest };
package/dist/credit.js ADDED
@@ -0,0 +1,53 @@
1
+ import {
2
+ CREATE_CREDIT_FIELDS,
3
+ CREDIT_DRAW_CAPACITIES,
4
+ REVOKE_CREDIT_TYPES,
5
+ authorizedCreditInputs,
6
+ buildCreateCreditCalldata,
7
+ buildCreditDrawCalldata,
8
+ buildRevokeCreditCalldata,
9
+ buildUpdateCreditCalldata,
10
+ createCreditBaseInputs,
11
+ createCreditPublicInputs,
12
+ creditDrawBaseInputs,
13
+ creditDrawPublicInputs,
14
+ encodeCreateCreditTypedData,
15
+ encodeCreditDrawTypedData,
16
+ encodeCreditProof,
17
+ encodeRevokeCreditTypedData,
18
+ encodeUpdateCreditTypedData,
19
+ selectCreditDrawCircuit,
20
+ updateCreditBaseInputs,
21
+ updateCreditPublicInputs,
22
+ validateCreateCreditRequest,
23
+ validateCreditDrawRequest,
24
+ validateUpdateCreditRequest
25
+ } from "./chunk-Z2XPYNMC.js";
26
+ import "./chunk-7SS2YSEF.js";
27
+ import "./chunk-HHJLFLVJ.js";
28
+ export {
29
+ CREATE_CREDIT_FIELDS,
30
+ CREDIT_DRAW_CAPACITIES,
31
+ REVOKE_CREDIT_TYPES,
32
+ authorizedCreditInputs,
33
+ buildCreateCreditCalldata,
34
+ buildCreditDrawCalldata,
35
+ buildRevokeCreditCalldata,
36
+ buildUpdateCreditCalldata,
37
+ createCreditBaseInputs,
38
+ createCreditPublicInputs,
39
+ creditDrawBaseInputs,
40
+ creditDrawPublicInputs,
41
+ encodeCreateCreditTypedData,
42
+ encodeCreditDrawTypedData,
43
+ encodeCreditProof,
44
+ encodeRevokeCreditTypedData,
45
+ encodeUpdateCreditTypedData,
46
+ selectCreditDrawCircuit,
47
+ updateCreditBaseInputs,
48
+ updateCreditPublicInputs,
49
+ validateCreateCreditRequest,
50
+ validateCreditDrawRequest,
51
+ validateUpdateCreditRequest
52
+ };
53
+ //# sourceMappingURL=credit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}