@invisi-labs/sdk 1.1.6 → 1.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.
- package/README.md +5 -0
- package/dist/broadcaster-3KTB4JO2.cjs +21 -0
- package/dist/broadcaster-3KTB4JO2.cjs.map +1 -0
- package/dist/broadcaster-7ZKKSTZQ.js +21 -0
- package/dist/broadcaster-preparation-PJ263WBL.cjs +15 -0
- package/dist/broadcaster-preparation-PJ263WBL.cjs.map +1 -0
- package/dist/broadcaster-preparation-ZQAPZAUG.js +15 -0
- package/dist/broadcaster-preparation-ZQAPZAUG.js.map +1 -0
- package/dist/chunk-2URICDPW.cjs +167 -0
- package/dist/chunk-2URICDPW.cjs.map +1 -0
- package/dist/chunk-3D24ABYR.js +86 -0
- package/dist/chunk-3D24ABYR.js.map +1 -0
- package/dist/chunk-3KTQQZOW.cjs +71 -0
- package/dist/chunk-3KTQQZOW.cjs.map +1 -0
- package/dist/chunk-4H4FARQK.js +1582 -0
- package/dist/chunk-4H4FARQK.js.map +1 -0
- package/dist/chunk-4SDP53YQ.cjs +765 -0
- package/dist/chunk-4SDP53YQ.cjs.map +1 -0
- package/dist/{chunk-QC6TQR3R.js → chunk-4VI6LYGH.js} +35 -12
- package/dist/chunk-4VI6LYGH.js.map +1 -0
- package/dist/chunk-BBSRP4MH.cjs +287 -0
- package/dist/chunk-BBSRP4MH.cjs.map +1 -0
- package/dist/chunk-DGMVGFKM.js +41 -0
- package/dist/chunk-DGMVGFKM.js.map +1 -0
- package/dist/chunk-GUD3LAUO.js +765 -0
- package/dist/chunk-GUD3LAUO.js.map +1 -0
- package/dist/chunk-HCB7RQ3S.cjs +79 -0
- package/dist/chunk-HCB7RQ3S.cjs.map +1 -0
- package/dist/{broadcaster-preparation-QVL62KM6.js → chunk-HKGJXQVN.js} +73 -34
- package/dist/chunk-HKGJXQVN.js.map +1 -0
- package/dist/chunk-HLH5JZD4.js +287 -0
- package/dist/chunk-HLH5JZD4.js.map +1 -0
- package/dist/chunk-J6TZZVAM.cjs +230 -0
- package/dist/chunk-J6TZZVAM.cjs.map +1 -0
- package/dist/chunk-LOR6PYH5.cjs +397 -0
- package/dist/chunk-LOR6PYH5.cjs.map +1 -0
- package/dist/chunk-MA2QZEF5.cjs +399 -0
- package/dist/chunk-MA2QZEF5.cjs.map +1 -0
- package/dist/chunk-MI4IP4ZD.cjs +86 -0
- package/dist/chunk-MI4IP4ZD.cjs.map +1 -0
- package/dist/chunk-NKYHYIRP.cjs +1582 -0
- package/dist/chunk-NKYHYIRP.cjs.map +1 -0
- package/dist/chunk-OCZLJKIA.cjs +41 -0
- package/dist/chunk-OCZLJKIA.cjs.map +1 -0
- package/dist/chunk-R5YAOJKB.js +71 -0
- package/dist/chunk-R5YAOJKB.js.map +1 -0
- package/dist/chunk-RY4M2CIQ.js +399 -0
- package/dist/chunk-RY4M2CIQ.js.map +1 -0
- package/dist/chunk-THMD5QO2.js +79 -0
- package/dist/chunk-THMD5QO2.js.map +1 -0
- package/dist/chunk-ZD2652WH.js +230 -0
- package/dist/chunk-ZD2652WH.js.map +1 -0
- package/dist/credit.cjs +1 -0
- package/dist/credit.cjs.map +1 -0
- package/dist/credit.d.cts +12 -0
- package/dist/credit.d.ts +12 -0
- package/dist/credit.js +1 -0
- package/dist/credit.js.map +1 -0
- package/dist/ethers.cjs +11 -385
- package/dist/ethers.cjs.map +1 -1
- package/dist/ethers.d.cts +16 -6
- package/dist/ethers.d.ts +16 -6
- package/dist/ethers.js +1 -1
- package/dist/index-CLhGwLxZ.d.cts +42 -0
- package/dist/index-Crp-ZFiM.d.ts +42 -0
- package/dist/index.cjs +479 -7847
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -710
- package/dist/index.d.ts +87 -710
- package/dist/index.js +407 -869
- package/dist/index.js.map +1 -1
- package/dist/note.cjs +11 -0
- package/dist/note.cjs.map +1 -0
- package/dist/note.d.cts +29 -0
- package/dist/note.d.ts +29 -0
- package/dist/note.js +11 -0
- package/dist/note.js.map +1 -0
- package/dist/operation-bridge-CoECSxfi.d.cts +472 -0
- package/dist/operation-bridge-CoECSxfi.d.ts +472 -0
- package/dist/preparation-HUBTVCZE.js +404 -0
- package/dist/preparation-HUBTVCZE.js.map +1 -0
- package/dist/preparation-QD3ZSYV5.cjs +404 -0
- package/dist/preparation-QD3ZSYV5.cjs.map +1 -0
- package/dist/provenance-preparation-43DN2WK7.cjs +16 -0
- package/dist/provenance-preparation-43DN2WK7.cjs.map +1 -0
- package/dist/provenance-preparation-HEZE4L5H.js +16 -0
- package/dist/provenance-preparation-HEZE4L5H.js.map +1 -0
- package/dist/provenance.cjs +59 -0
- package/dist/provenance.cjs.map +1 -0
- package/dist/provenance.d.cts +34 -0
- package/dist/provenance.d.ts +34 -0
- package/dist/provenance.js +59 -0
- package/dist/provenance.js.map +1 -0
- package/dist/receipt-logs-8Msm_HZS.d.ts +322 -0
- package/dist/receipt-logs-DWG4In8N.d.cts +322 -0
- package/dist/session-support.cjs +189 -0
- package/dist/session-support.cjs.map +1 -0
- package/dist/session-support.d.cts +284 -0
- package/dist/session-support.d.ts +284 -0
- package/dist/session-support.js +189 -0
- package/dist/session-support.js.map +1 -0
- package/package.json +25 -19
- package/dist/NoteOutput-DRkVnwlx.d.cts +0 -398
- package/dist/NoteOutput-DpDC6T2O.d.ts +0 -398
- package/dist/broadcaster-preparation-QVL62KM6.js.map +0 -1
- package/dist/chunk-4SD3MW6N.js +0 -4711
- package/dist/chunk-4SD3MW6N.js.map +0 -1
- package/dist/chunk-FL4TIGWW.js +0 -1781
- package/dist/chunk-FL4TIGWW.js.map +0 -1
- package/dist/chunk-QC6TQR3R.js.map +0 -1
- package/dist/indexeddb.cjs +0 -6878
- package/dist/indexeddb.cjs.map +0 -1
- package/dist/indexeddb.d.cts +0 -20
- package/dist/indexeddb.d.ts +0 -20
- package/dist/indexeddb.js +0 -71
- package/dist/indexeddb.js.map +0 -1
- package/dist/memory.cjs +0 -6886
- package/dist/memory.cjs.map +0 -1
- package/dist/memory.d.cts +0 -12
- package/dist/memory.d.ts +0 -12
- package/dist/memory.js +0 -11
- package/dist/sqlite.cjs +0 -6862
- package/dist/sqlite.cjs.map +0 -1
- package/dist/sqlite.d.cts +0 -28
- package/dist/sqlite.d.ts +0 -28
- package/dist/sqlite.js +0 -55
- package/dist/sqlite.js.map +0 -1
- package/dist/state-C4HZFotm.d.cts +0 -78
- package/dist/state-C4HZFotm.d.ts +0 -78
- package/dist/store-8aBhnbGr.d.ts +0 -42
- package/dist/store-YrbXb6CY.d.cts +0 -42
- /package/dist/{memory.js.map → broadcaster-7ZKKSTZQ.js.map} +0 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import {
|
|
2
|
+
prepareBroadcasterPlan,
|
|
3
|
+
prepareIntent
|
|
4
|
+
} from "./chunk-HKGJXQVN.js";
|
|
5
|
+
import {
|
|
6
|
+
prepareProvenance,
|
|
7
|
+
provePreparedProvenance,
|
|
8
|
+
validateBroadcastEnvelope,
|
|
9
|
+
validatePreparedBroadcast
|
|
10
|
+
} from "./chunk-ZD2652WH.js";
|
|
11
|
+
import "./chunk-3D24ABYR.js";
|
|
12
|
+
import {
|
|
13
|
+
Invisi,
|
|
14
|
+
acceptFundingSignature,
|
|
15
|
+
acceptRevocationSignature,
|
|
16
|
+
acceptWalletSignature,
|
|
17
|
+
configureTransactionInfrastructure,
|
|
18
|
+
creditReservationKey,
|
|
19
|
+
decodeProtocolEvent,
|
|
20
|
+
decryptCandidates,
|
|
21
|
+
encodeOperation,
|
|
22
|
+
extractDeliveryCandidates,
|
|
23
|
+
fundingSigningRequest,
|
|
24
|
+
fundingTypedData,
|
|
25
|
+
getDocumentedGasReference,
|
|
26
|
+
getOperationGasReference,
|
|
27
|
+
inputFacts,
|
|
28
|
+
operationPreview,
|
|
29
|
+
operationSources,
|
|
30
|
+
proveOperation,
|
|
31
|
+
publicProof,
|
|
32
|
+
readProtocolLogs,
|
|
33
|
+
revocationSigningRequest,
|
|
34
|
+
sameStatement,
|
|
35
|
+
signOperationFunding,
|
|
36
|
+
validateTransactionInfrastructure,
|
|
37
|
+
walletSigningRequest,
|
|
38
|
+
witnessFor
|
|
39
|
+
} from "./chunk-4H4FARQK.js";
|
|
40
|
+
import {
|
|
41
|
+
TransactionPreparation,
|
|
42
|
+
exportBroadcasterIntent
|
|
43
|
+
} from "./chunk-HLH5JZD4.js";
|
|
44
|
+
import {
|
|
45
|
+
authorizationRequest,
|
|
46
|
+
operationExpired,
|
|
47
|
+
requiresAuthorization,
|
|
48
|
+
statement
|
|
49
|
+
} from "./chunk-THMD5QO2.js";
|
|
50
|
+
import {
|
|
51
|
+
TransactionOutput
|
|
52
|
+
} from "./chunk-DGMVGFKM.js";
|
|
53
|
+
import {
|
|
54
|
+
BroadcasterClient,
|
|
55
|
+
BroadcasterRpcError,
|
|
56
|
+
bindBroadcasterOperation,
|
|
57
|
+
broadcasterQuoteDomain,
|
|
58
|
+
broadcasterQuoteTypes,
|
|
59
|
+
broadcasterRequestHash,
|
|
60
|
+
broadcasterTransactInterface,
|
|
61
|
+
decodeBroadcasterIntent,
|
|
62
|
+
verifyBroadcasterQuote
|
|
63
|
+
} from "./chunk-R5YAOJKB.js";
|
|
64
|
+
import {
|
|
65
|
+
assertCreditUpdatePlan,
|
|
66
|
+
configureRecipientInfrastructure,
|
|
67
|
+
creditLeaf,
|
|
68
|
+
recipientLookup,
|
|
69
|
+
verifyMembership
|
|
70
|
+
} from "./chunk-RY4M2CIQ.js";
|
|
71
|
+
import {
|
|
72
|
+
InvisiError,
|
|
73
|
+
NoteOutput,
|
|
74
|
+
prepareWithErrors
|
|
75
|
+
} from "./chunk-GUD3LAUO.js";
|
|
76
|
+
import "./chunk-4VI6LYGH.js";
|
|
77
|
+
|
|
78
|
+
// src/transactions/proving/aggregate-receipt.ts
|
|
79
|
+
import { Interface } from "ethers";
|
|
80
|
+
import { buildTransactCalldata } from "@invisi-labs/protocol";
|
|
81
|
+
import { invisiProtocolAbi } from "@invisi-labs/protocol/contracts";
|
|
82
|
+
var aggregateAbi = invisiProtocolAbi.filter(
|
|
83
|
+
(item) => item.type === "function" && item.name === "transact" && item.inputs.length === 2 && item.inputs[1]?.type === "tuple[]"
|
|
84
|
+
);
|
|
85
|
+
function matchesAggregateTransaction(saved, transaction) {
|
|
86
|
+
const plan = saved.plan;
|
|
87
|
+
if (plan.statement?.target !== "noir-recursive" || !plan.params || !saved.externalized || transaction.to.toLowerCase() !== plan.context.protocolAddress.toLowerCase() || transaction.value !== 0n)
|
|
88
|
+
return false;
|
|
89
|
+
try {
|
|
90
|
+
const decoded = new Interface(aggregateAbi).parseTransaction({ data: transaction.data }), requests = decoded.args[1].map((request) => {
|
|
91
|
+
const member = request.toObject(true);
|
|
92
|
+
member.params.sources = request.params.sources.map(
|
|
93
|
+
(source) => source.toObject(true)
|
|
94
|
+
);
|
|
95
|
+
member.params.nullifiers = request.params.nullifiers.toArray(true);
|
|
96
|
+
member.params.noteCommitments = request.params.noteCommitments.toArray(true);
|
|
97
|
+
member.deliveries = request.deliveries.map(
|
|
98
|
+
(delivery) => delivery.toObject(true)
|
|
99
|
+
);
|
|
100
|
+
member.funding.permit.v = Number(member.funding.permit.v);
|
|
101
|
+
return {
|
|
102
|
+
params: member.params,
|
|
103
|
+
deliveries: member.deliveries,
|
|
104
|
+
funding: member.funding
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
if (decoded.name !== "transact" || !Array.isArray(requests) || ![1, 2, 3, 4, 5].includes(requests.length))
|
|
108
|
+
return false;
|
|
109
|
+
const canonical = (request) => buildTransactCalldata({
|
|
110
|
+
context: { ...plan.context, tokenAddress: request.params.token },
|
|
111
|
+
proof: "0x00",
|
|
112
|
+
params: request.params,
|
|
113
|
+
deliveries: request.deliveries,
|
|
114
|
+
funding: request.funding,
|
|
115
|
+
caller: transaction.from
|
|
116
|
+
}).data.toLowerCase();
|
|
117
|
+
const expected = buildTransactCalldata({
|
|
118
|
+
context: plan.context,
|
|
119
|
+
proof: "0x00",
|
|
120
|
+
params: plan.params,
|
|
121
|
+
deliveries: plan.outputs.map((output) => output.delivery),
|
|
122
|
+
funding: plan.funding,
|
|
123
|
+
caller: transaction.from
|
|
124
|
+
}).data.toLowerCase();
|
|
125
|
+
return requests.filter((request) => canonical(request) === expected).length === 1;
|
|
126
|
+
} catch {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
BroadcasterClient,
|
|
132
|
+
BroadcasterRpcError,
|
|
133
|
+
Invisi,
|
|
134
|
+
InvisiError,
|
|
135
|
+
NoteOutput,
|
|
136
|
+
TransactionOutput,
|
|
137
|
+
TransactionPreparation,
|
|
138
|
+
acceptFundingSignature,
|
|
139
|
+
acceptRevocationSignature,
|
|
140
|
+
acceptWalletSignature,
|
|
141
|
+
assertCreditUpdatePlan,
|
|
142
|
+
authorizationRequest,
|
|
143
|
+
bindBroadcasterOperation,
|
|
144
|
+
broadcasterQuoteDomain,
|
|
145
|
+
broadcasterQuoteTypes,
|
|
146
|
+
broadcasterRequestHash,
|
|
147
|
+
broadcasterTransactInterface,
|
|
148
|
+
configureRecipientInfrastructure,
|
|
149
|
+
configureTransactionInfrastructure,
|
|
150
|
+
creditLeaf,
|
|
151
|
+
creditReservationKey,
|
|
152
|
+
decodeBroadcasterIntent,
|
|
153
|
+
decodeProtocolEvent,
|
|
154
|
+
decryptCandidates,
|
|
155
|
+
encodeOperation,
|
|
156
|
+
exportBroadcasterIntent,
|
|
157
|
+
extractDeliveryCandidates,
|
|
158
|
+
fundingSigningRequest,
|
|
159
|
+
fundingTypedData,
|
|
160
|
+
getDocumentedGasReference,
|
|
161
|
+
getOperationGasReference,
|
|
162
|
+
inputFacts,
|
|
163
|
+
matchesAggregateTransaction,
|
|
164
|
+
operationExpired,
|
|
165
|
+
operationPreview,
|
|
166
|
+
operationSources,
|
|
167
|
+
prepareBroadcasterPlan,
|
|
168
|
+
prepareIntent,
|
|
169
|
+
prepareProvenance,
|
|
170
|
+
prepareWithErrors,
|
|
171
|
+
proveOperation,
|
|
172
|
+
provePreparedProvenance,
|
|
173
|
+
publicProof,
|
|
174
|
+
readProtocolLogs,
|
|
175
|
+
recipientLookup,
|
|
176
|
+
requiresAuthorization,
|
|
177
|
+
revocationSigningRequest,
|
|
178
|
+
sameStatement,
|
|
179
|
+
signOperationFunding,
|
|
180
|
+
statement,
|
|
181
|
+
validateBroadcastEnvelope,
|
|
182
|
+
validatePreparedBroadcast,
|
|
183
|
+
validateTransactionInfrastructure,
|
|
184
|
+
verifyBroadcasterQuote,
|
|
185
|
+
verifyMembership,
|
|
186
|
+
walletSigningRequest,
|
|
187
|
+
witnessFor
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=session-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/transactions/proving/aggregate-receipt.ts"],"sourcesContent":["import type { Address } from \"@invisi-labs/protocol/contracts\";\nimport { Interface, type Result } from \"ethers\";\n\nimport { buildTransactCalldata, type TransactionCall } from \"@invisi-labs/protocol\";\nimport { invisiProtocolAbi, type TransactRequest } from \"@invisi-labs/protocol/contracts\";\nimport type { SavedOperation } from \"../operation-types\";\nconst aggregateAbi = invisiProtocolAbi.filter(\n (item) =>\n item.type === \"function\" &&\n item.name === \"transact\" &&\n item.inputs.length === 2 &&\n item.inputs[1]?.type === \"tuple[]\"\n);\n/** Match the whole frozen member, including funding nonce, signature and permit, in one successful aggregate. */\nexport function matchesAggregateTransaction(\n saved: SavedOperation,\n transaction: TransactionCall & { from: Address }\n): boolean {\n const plan = saved.plan;\n if (\n plan.statement?.target !== \"noir-recursive\" ||\n !plan.params ||\n !saved.externalized ||\n transaction.to.toLowerCase() !== plan.context.protocolAddress.toLowerCase() ||\n transaction.value !== 0n\n )\n return false;\n try {\n const decoded = new Interface(aggregateAbi).parseTransaction({ data: transaction.data })!,\n requests = (decoded.args[1] as Result[]).map((request) => {\n const member = request.toObject(true);\n member.params.sources = request.params.sources.map((source: Result) =>\n source.toObject(true)\n );\n member.params.nullifiers = request.params.nullifiers.toArray(true);\n member.params.noteCommitments = request.params.noteCommitments.toArray(true);\n member.deliveries = request.deliveries.map((delivery: Result) =>\n delivery.toObject(true)\n );\n member.funding.permit.v = Number(member.funding.permit.v);\n return {\n params: member.params,\n deliveries: member.deliveries,\n funding: member.funding,\n };\n }) as readonly TransactRequest[];\n if (\n decoded.name !== \"transact\" ||\n !Array.isArray(requests) ||\n ![1, 2, 3, 4, 5].includes(requests.length)\n )\n return false;\n const canonical = (request: TransactRequest) =>\n buildTransactCalldata({\n context: { ...plan.context, tokenAddress: request.params.token },\n proof: \"0x00\",\n params: request.params,\n deliveries: request.deliveries,\n funding: request.funding,\n caller: transaction.from,\n }).data.toLowerCase();\n const expected = buildTransactCalldata({\n context: plan.context,\n proof: \"0x00\",\n params: plan.params,\n deliveries: plan.outputs.map((output) => output.delivery),\n funding: plan.funding,\n caller: transaction.from,\n }).data.toLowerCase();\n return requests.filter((request) => canonical(request) === expected).length === 1;\n } catch {\n return false;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,iBAA8B;AAEvC,SAAS,6BAAmD;AAC5D,SAAS,yBAA+C;AAExD,IAAM,eAAe,kBAAkB;AAAA,EACnC,CAAC,SACG,KAAK,SAAS,cACd,KAAK,SAAS,cACd,KAAK,OAAO,WAAW,KACvB,KAAK,OAAO,CAAC,GAAG,SAAS;AACjC;AAEO,SAAS,4BACZ,OACA,aACO;AACP,QAAM,OAAO,MAAM;AACnB,MACI,KAAK,WAAW,WAAW,oBAC3B,CAAC,KAAK,UACN,CAAC,MAAM,gBACP,YAAY,GAAG,YAAY,MAAM,KAAK,QAAQ,gBAAgB,YAAY,KAC1E,YAAY,UAAU;AAEtB,WAAO;AACX,MAAI;AACA,UAAM,UAAU,IAAI,UAAU,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,KAAK,CAAC,GACnF,WAAY,QAAQ,KAAK,CAAC,EAAe,IAAI,CAAC,YAAY;AACtD,YAAM,SAAS,QAAQ,SAAS,IAAI;AACpC,aAAO,OAAO,UAAU,QAAQ,OAAO,QAAQ;AAAA,QAAI,CAAC,WAChD,OAAO,SAAS,IAAI;AAAA,MACxB;AACA,aAAO,OAAO,aAAa,QAAQ,OAAO,WAAW,QAAQ,IAAI;AACjE,aAAO,OAAO,kBAAkB,QAAQ,OAAO,gBAAgB,QAAQ,IAAI;AAC3E,aAAO,aAAa,QAAQ,WAAW;AAAA,QAAI,CAAC,aACxC,SAAS,SAAS,IAAI;AAAA,MAC1B;AACA,aAAO,QAAQ,OAAO,IAAI,OAAO,OAAO,QAAQ,OAAO,CAAC;AACxD,aAAO;AAAA,QACH,QAAQ,OAAO;AAAA,QACf,YAAY,OAAO;AAAA,QACnB,SAAS,OAAO;AAAA,MACpB;AAAA,IACJ,CAAC;AACL,QACI,QAAQ,SAAS,cACjB,CAAC,MAAM,QAAQ,QAAQ,KACvB,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,EAAE,SAAS,SAAS,MAAM;AAEzC,aAAO;AACX,UAAM,YAAY,CAAC,YACf,sBAAsB;AAAA,MAClB,SAAS,EAAE,GAAG,KAAK,SAAS,cAAc,QAAQ,OAAO,MAAM;AAAA,MAC/D,OAAO;AAAA,MACP,QAAQ,QAAQ;AAAA,MAChB,YAAY,QAAQ;AAAA,MACpB,SAAS,QAAQ;AAAA,MACjB,QAAQ,YAAY;AAAA,IACxB,CAAC,EAAE,KAAK,YAAY;AACxB,UAAM,WAAW,sBAAsB;AAAA,MACnC,SAAS,KAAK;AAAA,MACd,OAAO;AAAA,MACP,QAAQ,KAAK;AAAA,MACb,YAAY,KAAK,QAAQ,IAAI,CAAC,WAAW,OAAO,QAAQ;AAAA,MACxD,SAAS,KAAK;AAAA,MACd,QAAQ,YAAY;AAAA,IACxB,CAAC,EAAE,KAAK,YAAY;AACpB,WAAO,SAAS,OAAO,CAAC,YAAY,UAAU,OAAO,MAAM,QAAQ,EAAE,WAAW;AAAA,EACpF,QAAQ;AACJ,WAAO;AAAA,EACX;AACJ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invisi-labs/sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Invisi
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Stateless Invisi transaction preparation, signing requests and protocol integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -17,35 +17,41 @@
|
|
|
17
17
|
"import": "./dist/ethers.js",
|
|
18
18
|
"require": "./dist/ethers.cjs"
|
|
19
19
|
},
|
|
20
|
-
"./
|
|
21
|
-
"types": "./dist/
|
|
22
|
-
"import": "./dist/
|
|
23
|
-
"require": "./dist/
|
|
20
|
+
"./session-support": {
|
|
21
|
+
"types": "./dist/session-support.d.ts",
|
|
22
|
+
"import": "./dist/session-support.js",
|
|
23
|
+
"require": "./dist/session-support.cjs"
|
|
24
24
|
},
|
|
25
|
-
"./
|
|
26
|
-
"types": "./dist/
|
|
27
|
-
"import": "./dist/
|
|
28
|
-
"require": "./dist/
|
|
25
|
+
"./note": {
|
|
26
|
+
"types": "./dist/note.d.ts",
|
|
27
|
+
"import": "./dist/note.js",
|
|
28
|
+
"require": "./dist/note.cjs"
|
|
29
29
|
},
|
|
30
|
-
"./
|
|
31
|
-
"types": "./dist/
|
|
32
|
-
"import": "./dist/
|
|
33
|
-
"require": "./dist/
|
|
30
|
+
"./credit": {
|
|
31
|
+
"types": "./dist/credit.d.ts",
|
|
32
|
+
"import": "./dist/credit.js",
|
|
33
|
+
"require": "./dist/credit.cjs"
|
|
34
|
+
},
|
|
35
|
+
"./provenance": {
|
|
36
|
+
"types": "./dist/provenance.d.ts",
|
|
37
|
+
"import": "./dist/provenance.js",
|
|
38
|
+
"require": "./dist/provenance.cjs"
|
|
34
39
|
}
|
|
35
40
|
},
|
|
36
41
|
"dependencies": {
|
|
37
42
|
"ethers": "^6.17.0",
|
|
38
43
|
"@noble/hashes": "1.8.0",
|
|
39
|
-
"@invisi-labs/
|
|
40
|
-
"@invisi-labs/
|
|
41
|
-
"@invisi-labs/
|
|
42
|
-
"@invisi-labs/
|
|
44
|
+
"@invisi-labs/protocol": "1.2.0",
|
|
45
|
+
"@invisi-labs/primitives": "1.2.0",
|
|
46
|
+
"@invisi-labs/rpc": "1.2.0",
|
|
47
|
+
"@invisi-labs/prover": "1.2.0"
|
|
43
48
|
},
|
|
44
49
|
"devDependencies": {
|
|
45
50
|
"tsup": "^8.0.0",
|
|
46
51
|
"typescript": "^5.4.0",
|
|
47
52
|
"vitest": "^1.6.0",
|
|
48
|
-
"@types/node": "^20.0.0"
|
|
53
|
+
"@types/node": "^20.0.0",
|
|
54
|
+
"@noble/curves": "1.9.1"
|
|
49
55
|
},
|
|
50
56
|
"files": [
|
|
51
57
|
"dist"
|
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
import { Hex, Note, CreditDeliveryState, ViewingCapability, Wallet, PublicWallet, WalletAuthorizationProvider } from '@invisi-labs/core';
|
|
2
|
-
import { Address, Hex as Hex$1, Delivery, ShieldParams, ShieldOutput, CreateCreditParams, CreditDrawParams, CancelCreditParams, TopUpCreditParams, TransactRequest } from '@invisi-labs/protocol/contracts';
|
|
3
|
-
import { c as StoredNote, W as WalletScope, b as WalletStore } from './state-C4HZFotm.cjs';
|
|
4
|
-
import { FundingInput, TransactionContext, CanonicalBlock, NoteMembership, TransactRequestParams, CreditMembership, Protocol, ChainReader, ProtocolDataProvider, TokenProtocol } from '@invisi-labs/protocol';
|
|
5
|
-
import { Signer, Provider } from 'ethers';
|
|
6
|
-
import * as _invisi_labs_prover from '@invisi-labs/prover';
|
|
7
|
-
import { Prover, ProverOptions, AggregateMember } from '@invisi-labs/prover';
|
|
8
|
-
|
|
9
|
-
type PreparationIntent = {
|
|
10
|
-
kind: "transfer";
|
|
11
|
-
options: TransferPreparation;
|
|
12
|
-
} | {
|
|
13
|
-
kind: "shield";
|
|
14
|
-
options: ShieldPreparation;
|
|
15
|
-
} | {
|
|
16
|
-
kind: "create-credit";
|
|
17
|
-
options: CreateCreditPreparation;
|
|
18
|
-
} | {
|
|
19
|
-
kind: "top-up-credit";
|
|
20
|
-
options: TopUpCreditPreparation;
|
|
21
|
-
} | {
|
|
22
|
-
kind: "cancel-credit";
|
|
23
|
-
options: CancelCreditPreparation;
|
|
24
|
-
};
|
|
25
|
-
type BroadcasterFeeSource = "public-funding" | "private-inputs" | "payout";
|
|
26
|
-
interface WithBroadcasterOptions {
|
|
27
|
-
maxFeeAmount: bigint;
|
|
28
|
-
feeSource?: BroadcasterFeeSource;
|
|
29
|
-
maxAttempts?: number;
|
|
30
|
-
/** Optional app-owned permit signing, requested once for the final gross funding amount. */
|
|
31
|
-
fundingPermit?: (request: {
|
|
32
|
-
payer: `0x${string}`;
|
|
33
|
-
amount: bigint;
|
|
34
|
-
tokenAddress: `0x${string}`;
|
|
35
|
-
protocolAddress: `0x${string}`;
|
|
36
|
-
}) => Promise<NonNullable<TransferPreparation["funding"]>["permit"]>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface GasBenchmarkShape {
|
|
40
|
-
kind: OperationPlan["kind"];
|
|
41
|
-
target: string;
|
|
42
|
-
capacity: number;
|
|
43
|
-
noteInputs: number;
|
|
44
|
-
noteOutputs: number;
|
|
45
|
-
sourceTrees: number;
|
|
46
|
-
creditInputs: number;
|
|
47
|
-
creditOutputs: number;
|
|
48
|
-
creditRemainders: number;
|
|
49
|
-
funding: "none" | "caller" | "signature";
|
|
50
|
-
permit: boolean;
|
|
51
|
-
deliveryBytes: number;
|
|
52
|
-
}
|
|
53
|
-
interface GasBenchmarkDeployment {
|
|
54
|
-
chainId: string;
|
|
55
|
-
protocolAddress: Hex;
|
|
56
|
-
runtimeCodeHash: Hex | null;
|
|
57
|
-
tokenAddress: Hex;
|
|
58
|
-
}
|
|
59
|
-
interface GasBenchmarkCircuit {
|
|
60
|
-
circuitName: string;
|
|
61
|
-
target: string;
|
|
62
|
-
artifactSha256: string;
|
|
63
|
-
vkSha256: string;
|
|
64
|
-
}
|
|
65
|
-
interface GasBenchmarkSample {
|
|
66
|
-
gasUsed: string;
|
|
67
|
-
transactionHash: Hex;
|
|
68
|
-
blockNumber: string;
|
|
69
|
-
blockHash: Hex;
|
|
70
|
-
calldataBytes: number;
|
|
71
|
-
}
|
|
72
|
-
interface GasBenchmarkProfile {
|
|
73
|
-
formatVersion: 1;
|
|
74
|
-
id: string;
|
|
75
|
-
deployment: GasBenchmarkDeployment;
|
|
76
|
-
source: {
|
|
77
|
-
protocolCommit: string;
|
|
78
|
-
fingerprints?: {
|
|
79
|
-
protocolSourceSha256: string;
|
|
80
|
-
dirtyDiffSha256: string;
|
|
81
|
-
compiledArtifactsSha256: string;
|
|
82
|
-
creditManifestSha256: string;
|
|
83
|
-
userManifestSha256: string;
|
|
84
|
-
sdkSourceSha256: string;
|
|
85
|
-
};
|
|
86
|
-
toolchain?: {
|
|
87
|
-
solidity: string;
|
|
88
|
-
barretenberg: string;
|
|
89
|
-
noir: string;
|
|
90
|
-
evmVersion: string;
|
|
91
|
-
optimizerRuns: number;
|
|
92
|
-
anvil: string;
|
|
93
|
-
};
|
|
94
|
-
blockGasLimit?: string;
|
|
95
|
-
runtimeContracts?: Record<string, {
|
|
96
|
-
address: Hex;
|
|
97
|
-
runtimeCodeHash: Hex;
|
|
98
|
-
}>;
|
|
99
|
-
measuredAt: string;
|
|
100
|
-
chain: string;
|
|
101
|
-
hardfork: string;
|
|
102
|
-
token: string;
|
|
103
|
-
verifier: "real";
|
|
104
|
-
assumptions: string[];
|
|
105
|
-
};
|
|
106
|
-
measurements: Array<{
|
|
107
|
-
id: string;
|
|
108
|
-
shape: GasBenchmarkShape;
|
|
109
|
-
circuit: GasBenchmarkCircuit | null;
|
|
110
|
-
samples: GasBenchmarkSample[];
|
|
111
|
-
}>;
|
|
112
|
-
}
|
|
113
|
-
/** Parse a trusted, JSON-compatible benchmark catalog. No network access or publisher authentication. */
|
|
114
|
-
declare function defineGasBenchmarks(input: unknown): GasBenchmarkProfile[];
|
|
115
|
-
/** Pre-proof reference only; ethers must estimate the final transaction independently. */
|
|
116
|
-
interface GasReference {
|
|
117
|
-
gasUnits: bigint;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface CoinSelector {
|
|
121
|
-
select(candidates: readonly StoredNote[], requiredAmount: bigint): readonly Hex$1[] | Promise<readonly Hex$1[]>;
|
|
122
|
-
}
|
|
123
|
-
interface FundingTypedData {
|
|
124
|
-
domain: Record<string, unknown>;
|
|
125
|
-
primaryType: string;
|
|
126
|
-
types: Record<string, readonly {
|
|
127
|
-
name: string;
|
|
128
|
-
type: string;
|
|
129
|
-
}[]>;
|
|
130
|
-
message: Record<string, unknown>;
|
|
131
|
-
}
|
|
132
|
-
interface FundingSigner {
|
|
133
|
-
readonly address: Address;
|
|
134
|
-
signTypedData(data: FundingTypedData): Promise<Hex$1>;
|
|
135
|
-
}
|
|
136
|
-
interface FundingAuthorizationVerifier {
|
|
137
|
-
verifyTypedData(data: FundingTypedData & {
|
|
138
|
-
address: Address;
|
|
139
|
-
signature: Hex$1;
|
|
140
|
-
}): Promise<boolean>;
|
|
141
|
-
}
|
|
142
|
-
interface FundingSource {
|
|
143
|
-
payer: Address;
|
|
144
|
-
amount: bigint;
|
|
145
|
-
authorization?: "signature" | "caller";
|
|
146
|
-
sigNonce?: bigint;
|
|
147
|
-
deadline?: bigint;
|
|
148
|
-
permit?: NonNullable<FundingInput["permit"]>;
|
|
149
|
-
}
|
|
150
|
-
/** Public submission mode; backend proof targets are selected internally. */
|
|
151
|
-
type TransactionExecution = "single" | "aggregate";
|
|
152
|
-
interface TransactionProveOptions extends ProverOptions {
|
|
153
|
-
/** Defaults to single. Aggregate produces a member for a separate aggregate submission. */
|
|
154
|
-
execution?: TransactionExecution;
|
|
155
|
-
}
|
|
156
|
-
interface TransferPreparation {
|
|
157
|
-
tokenAddress: Address;
|
|
158
|
-
/** Explicit subset for managed inventory; detached calls already supply inputs. */
|
|
159
|
-
commitments?: readonly Hex$1[];
|
|
160
|
-
/** Public ERC20 payout. Empty private outputs are allowed when a payout is present. */
|
|
161
|
-
withdrawal?: {
|
|
162
|
-
to: Address;
|
|
163
|
-
amount: bigint;
|
|
164
|
-
};
|
|
165
|
-
/** Immediate public fee paid from this operation's token. */
|
|
166
|
-
fee?: {
|
|
167
|
-
recipient: Address;
|
|
168
|
-
amount: bigint;
|
|
169
|
-
};
|
|
170
|
-
outputs: readonly NoteOutput[];
|
|
171
|
-
funding?: FundingSource;
|
|
172
|
-
deadline?: bigint;
|
|
173
|
-
}
|
|
174
|
-
interface ShieldPreparation {
|
|
175
|
-
fee?: {
|
|
176
|
-
recipient: Address;
|
|
177
|
-
amount: bigint;
|
|
178
|
-
};
|
|
179
|
-
tokenAddress: Address;
|
|
180
|
-
outputs: readonly NoteOutput[];
|
|
181
|
-
funding: FundingSource;
|
|
182
|
-
deadline?: bigint;
|
|
183
|
-
}
|
|
184
|
-
interface PreparedOutput {
|
|
185
|
-
context: NoteOutputContext;
|
|
186
|
-
recipient: NoteOutputRecipient;
|
|
187
|
-
amount: bigint;
|
|
188
|
-
note?: Note;
|
|
189
|
-
commitment: Hex$1;
|
|
190
|
-
identity: Hex$1;
|
|
191
|
-
delivery: Delivery;
|
|
192
|
-
/** Only offline encrypted EVM outputs may await registry-key resolution. */
|
|
193
|
-
deliveryPending?: true;
|
|
194
|
-
address: string;
|
|
195
|
-
change: boolean;
|
|
196
|
-
}
|
|
197
|
-
interface CreateCreditPreparation {
|
|
198
|
-
fee?: {
|
|
199
|
-
recipient: Address;
|
|
200
|
-
amount: bigint;
|
|
201
|
-
};
|
|
202
|
-
/** Version-specific application data. Omission uses built-in v1 with no data. */
|
|
203
|
-
payload?: Uint8Array;
|
|
204
|
-
singleLimit?: bigint;
|
|
205
|
-
dailyLimit?: bigint;
|
|
206
|
-
monthlyLimit?: bigint;
|
|
207
|
-
tokenAddress: Address;
|
|
208
|
-
spender: string;
|
|
209
|
-
amount: bigint;
|
|
210
|
-
expiry: bigint;
|
|
211
|
-
funding?: FundingSource;
|
|
212
|
-
deadline?: bigint;
|
|
213
|
-
}
|
|
214
|
-
interface DrawCreditPreparation {
|
|
215
|
-
tokenAddress: Address;
|
|
216
|
-
credits: readonly {
|
|
217
|
-
credit: Hex$1;
|
|
218
|
-
amount: bigint;
|
|
219
|
-
payload?: Uint8Array;
|
|
220
|
-
}[];
|
|
221
|
-
deadline?: bigint;
|
|
222
|
-
}
|
|
223
|
-
interface TopUpCreditPreparation {
|
|
224
|
-
fee?: {
|
|
225
|
-
recipient: Address;
|
|
226
|
-
amount: bigint;
|
|
227
|
-
};
|
|
228
|
-
/** Version-specific application data. Omission uses built-in v1 with no data. */
|
|
229
|
-
payload?: Uint8Array;
|
|
230
|
-
/** Omission inherits the previous limit; zero disables it without clearing usage. */
|
|
231
|
-
singleLimit?: bigint;
|
|
232
|
-
dailyLimit?: bigint;
|
|
233
|
-
monthlyLimit?: bigint;
|
|
234
|
-
tokenAddress: Address;
|
|
235
|
-
credit: Hex$1;
|
|
236
|
-
additionalAmount: bigint;
|
|
237
|
-
expiry?: bigint;
|
|
238
|
-
funding?: FundingSource;
|
|
239
|
-
deadline?: bigint;
|
|
240
|
-
}
|
|
241
|
-
interface CancelCreditPreparation {
|
|
242
|
-
fee?: {
|
|
243
|
-
recipient: Address;
|
|
244
|
-
amount: bigint;
|
|
245
|
-
};
|
|
246
|
-
tokenAddress: Address;
|
|
247
|
-
credit: Hex$1;
|
|
248
|
-
deadline?: bigint;
|
|
249
|
-
}
|
|
250
|
-
interface PreparedCreditOutput {
|
|
251
|
-
state: CreditDeliveryState;
|
|
252
|
-
commitment: Hex$1;
|
|
253
|
-
deliveries: [Delivery, Delivery];
|
|
254
|
-
}
|
|
255
|
-
interface PreparedCreditInput extends CreditMembership {
|
|
256
|
-
commitment: Hex$1;
|
|
257
|
-
role: "owner" | "spender";
|
|
258
|
-
}
|
|
259
|
-
interface CreditPlan {
|
|
260
|
-
inputs: PreparedCreditInput[];
|
|
261
|
-
outputs: PreparedCreditOutput[];
|
|
262
|
-
deliveries: Delivery[];
|
|
263
|
-
creation?: CreateCreditParams;
|
|
264
|
-
draw?: CreditDrawParams;
|
|
265
|
-
cancel?: CancelCreditParams;
|
|
266
|
-
topUp?: TopUpCreditParams;
|
|
267
|
-
amounts?: bigint[];
|
|
268
|
-
}
|
|
269
|
-
interface OperationPlan {
|
|
270
|
-
intent?: PreparationIntent;
|
|
271
|
-
version: 1;
|
|
272
|
-
id: string;
|
|
273
|
-
kind: "transfer" | "shield" | "create-credit" | "draw-credit" | "top-up-credit" | "cancel-credit";
|
|
274
|
-
context: TransactionContext;
|
|
275
|
-
scope: WalletScope;
|
|
276
|
-
preparedAt: CanonicalBlock;
|
|
277
|
-
deadline: bigint;
|
|
278
|
-
outputs: PreparedOutput[];
|
|
279
|
-
inputs: Array<NoteMembership & {
|
|
280
|
-
commitment: Hex$1;
|
|
281
|
-
}>;
|
|
282
|
-
funding: FundingInput;
|
|
283
|
-
fundingMode: "none" | "signature" | "caller";
|
|
284
|
-
params?: TransactRequestParams;
|
|
285
|
-
shieldParams?: ShieldParams;
|
|
286
|
-
shieldOutputs?: ShieldOutput[];
|
|
287
|
-
capacity?: number;
|
|
288
|
-
credit?: CreditPlan;
|
|
289
|
-
statement?: _invisi_labs_prover.ProofStatement;
|
|
290
|
-
}
|
|
291
|
-
type WalletSessionOptions = WalletSessionInfrastructure;
|
|
292
|
-
/** Shared runtime fields; public options separately enforce the custom registry requirement. */
|
|
293
|
-
interface WalletSessionInfrastructure {
|
|
294
|
-
gasBenchmarks?: readonly GasBenchmarkProfile[];
|
|
295
|
-
/** Optional ethers gas/funding signer; distinct from the Invisi wallet authority. */
|
|
296
|
-
signer?: Signer;
|
|
297
|
-
viewing?: Pick<ViewingCapability, "ownerAddress" | "decryptNote" | "decryptCredit">;
|
|
298
|
-
wallet: Wallet | PublicWallet;
|
|
299
|
-
protocol: Protocol;
|
|
300
|
-
namespace?: string;
|
|
301
|
-
store?: WalletStore;
|
|
302
|
-
chainReader?: ChainReader;
|
|
303
|
-
protocolRpc?: ProtocolDataProvider;
|
|
304
|
-
authorization?: WalletAuthorizationProvider;
|
|
305
|
-
prover?: Prover;
|
|
306
|
-
fundingSigner?: FundingSigner;
|
|
307
|
-
fundingVerifier?: FundingAuthorizationVerifier;
|
|
308
|
-
/** Optional ethers provider used by per-output direct-chain receiving-key lookup. */
|
|
309
|
-
provider?: Provider;
|
|
310
|
-
coinSelector?: CoinSelector;
|
|
311
|
-
transactionTTL?: bigint;
|
|
312
|
-
}
|
|
313
|
-
interface OperationRuntime {
|
|
314
|
-
options: Omit<WalletSessionOptions, "protocol"> & {
|
|
315
|
-
protocol: TokenProtocol;
|
|
316
|
-
};
|
|
317
|
-
scope: WalletScope;
|
|
318
|
-
store: WalletStore;
|
|
319
|
-
reader: ChainReader;
|
|
320
|
-
authorization: () => WalletAuthorizationProvider;
|
|
321
|
-
}
|
|
322
|
-
interface OperationAggregateMember extends AggregateMember {
|
|
323
|
-
context: TransactionContext;
|
|
324
|
-
request: TransactRequest;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
type AddressLookup = "chain" | "protocol-rpc";
|
|
328
|
-
|
|
329
|
-
interface NoteOutputContext {
|
|
330
|
-
chainId: bigint;
|
|
331
|
-
protocolAddress: Hex$1;
|
|
332
|
-
tokenAddress: Hex$1;
|
|
333
|
-
}
|
|
334
|
-
type NoteOutputRecipient = {
|
|
335
|
-
type: "evm";
|
|
336
|
-
address: string;
|
|
337
|
-
envelope?: boolean;
|
|
338
|
-
addressLookup?: AddressLookup;
|
|
339
|
-
nonce?: bigint | undefined;
|
|
340
|
-
} | {
|
|
341
|
-
type: "invisi";
|
|
342
|
-
address: string;
|
|
343
|
-
nonce?: bigint | undefined;
|
|
344
|
-
} | {
|
|
345
|
-
type: "identity";
|
|
346
|
-
identity: Hex$1;
|
|
347
|
-
};
|
|
348
|
-
type EncryptedRecipient = {
|
|
349
|
-
type: "evm";
|
|
350
|
-
address: string;
|
|
351
|
-
envelope?: true;
|
|
352
|
-
addressLookup?: AddressLookup;
|
|
353
|
-
nonce?: bigint | undefined;
|
|
354
|
-
} | {
|
|
355
|
-
type: "invisi";
|
|
356
|
-
address: string;
|
|
357
|
-
nonce?: bigint | undefined;
|
|
358
|
-
};
|
|
359
|
-
type NoteOutputOptions = NoteOutputContext & {
|
|
360
|
-
amount: bigint;
|
|
361
|
-
} & ({
|
|
362
|
-
recipient: EncryptedRecipient;
|
|
363
|
-
payload?: Uint8Array;
|
|
364
|
-
} | {
|
|
365
|
-
recipient: {
|
|
366
|
-
type: "evm";
|
|
367
|
-
address: string;
|
|
368
|
-
envelope: false;
|
|
369
|
-
addressLookup?: AddressLookup;
|
|
370
|
-
nonce?: bigint | undefined;
|
|
371
|
-
} | {
|
|
372
|
-
type: "identity";
|
|
373
|
-
identity: Hex$1;
|
|
374
|
-
};
|
|
375
|
-
payload?: never;
|
|
376
|
-
});
|
|
377
|
-
/** Immutable output statement and optional recoverable opening. */
|
|
378
|
-
declare class NoteOutput {
|
|
379
|
-
readonly to: string;
|
|
380
|
-
readonly amount: bigint;
|
|
381
|
-
readonly identity: Hex$1;
|
|
382
|
-
readonly commitment: Hex$1;
|
|
383
|
-
readonly deliveryFingerprint: Hex$1;
|
|
384
|
-
/** Encrypted EVM delivery is resolved by preparation; the original offline intent stays pending. */
|
|
385
|
-
readonly deliveryPending: boolean;
|
|
386
|
-
readonly context: NoteOutputContext;
|
|
387
|
-
readonly recipient: NoteOutputRecipient;
|
|
388
|
-
readonly nonce: bigint | undefined;
|
|
389
|
-
readonly payload: Uint8Array;
|
|
390
|
-
readonly preparedOutput: PreparedOutput;
|
|
391
|
-
private constructor();
|
|
392
|
-
static create(options: NoteOutputOptions): Promise<NoteOutput>;
|
|
393
|
-
assertCommitment(expectedHex: Hex$1): void;
|
|
394
|
-
get note(): Note | undefined;
|
|
395
|
-
get delivery(): Delivery;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export { type BroadcasterFeeSource as B, type CancelCreditPreparation as C, type DrawCreditPreparation as D, type FundingAuthorizationVerifier as F, type GasReference as G, NoteOutput as N, type OperationRuntime as O, type PreparationIntent as P, type ShieldPreparation as S, type TransactionProveOptions as T, type WithBroadcasterOptions as W, type OperationPlan as a, type OperationAggregateMember as b, type CreateCreditPreparation as c, type TopUpCreditPreparation as d, type TransferPreparation as e, type WalletSessionOptions as f, type WalletSessionInfrastructure as g, type CoinSelector as h, type FundingSigner as i, type FundingSource as j, type FundingTypedData as k, type GasBenchmarkCircuit as l, type GasBenchmarkDeployment as m, type GasBenchmarkProfile as n, type GasBenchmarkSample as o, type GasBenchmarkShape as p, type NoteOutputContext as q, type NoteOutputOptions as r, type NoteOutputRecipient as s, type TransactionExecution as t, defineGasBenchmarks as u };
|