@useopentab/cli 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +147 -2
- package/dist/bin.js +361 -0
- package/dist/chunks/chunk-4R3NAR3C.js +28 -0
- package/dist/chunks/chunk-D3C7KAMJ.js +2221 -0
- package/dist/chunks/chunk-EKJH2AJS.js +371 -0
- package/dist/chunks/chunk-GOEFQ62Z.js +53 -0
- package/dist/chunks/chunk-HTU7QRDF.js +223 -0
- package/dist/chunks/chunk-HZHOKJIM.js +360 -0
- package/dist/chunks/chunk-IRXOU25X.js +1856 -0
- package/dist/chunks/chunk-MOZ4BFSB.js +13 -0
- package/dist/chunks/chunk-Q776JIO3.js +1821 -0
- package/dist/chunks/chunk-QTI2WM44.js +68 -0
- package/dist/chunks/chunk-S5IAH7CT.js +84 -0
- package/dist/chunks/config-OPZLVTYX.js +73 -0
- package/dist/chunks/gate-53O3YCXE.js +74 -0
- package/dist/chunks/indexer-OLIWEEFT.js +491 -0
- package/dist/chunks/init-JSZX6AF5.js +176 -0
- package/dist/chunks/line-2QBTLAUN.js +95 -0
- package/dist/chunks/liveNode-SLQN4XRB.js +299 -0
- package/dist/chunks/liveOnboard-Z4GRTSHR.js +400 -0
- package/dist/chunks/liveSettle-V5W7D2U5.js +1398 -0
- package/dist/chunks/notary-PQDSEOVV.js +122 -0
- package/dist/chunks/onboardError-RLJPEEFU.js +10 -0
- package/dist/chunks/src-RIOYQO2J.js +556 -0
- package/dist/chunks/tab-QPO2545T.js +59 -0
- package/dist/chunks/verify-Z7BGKZOB.js +719 -0
- package/package.json +66 -3
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {
|
|
2
|
+
agentCardSchema,
|
|
3
|
+
badgeExtensionSchema,
|
|
4
|
+
badgeIssues,
|
|
5
|
+
registrationSchema,
|
|
6
|
+
sha256Hex
|
|
7
|
+
} from "./chunk-Q776JIO3.js";
|
|
8
|
+
import "./chunk-IRXOU25X.js";
|
|
9
|
+
import {
|
|
10
|
+
parseAgentBadge
|
|
11
|
+
} from "./chunk-HZHOKJIM.js";
|
|
12
|
+
import {
|
|
13
|
+
BADGE_EXTENSION_URI
|
|
14
|
+
} from "./chunk-S5IAH7CT.js";
|
|
15
|
+
import {
|
|
16
|
+
ReportBuilder
|
|
17
|
+
} from "./chunk-GOEFQ62Z.js";
|
|
18
|
+
import {
|
|
19
|
+
CliError
|
|
20
|
+
} from "./chunk-MOZ4BFSB.js";
|
|
21
|
+
import "./chunk-D3C7KAMJ.js";
|
|
22
|
+
|
|
23
|
+
// packages/cli/src/commands/notary.ts
|
|
24
|
+
import { z } from "zod";
|
|
25
|
+
var MAX_ANSWER = 256 * 1024;
|
|
26
|
+
var repairAnswerSchema = z.object({
|
|
27
|
+
token: z.string().regex(/^(0|[1-9][0-9]{0,19})$/),
|
|
28
|
+
card: z.object({ sha256: z.string().regex(/^[0-9a-f]{64}$/), utf8: z.string().max(65536) }).loose(),
|
|
29
|
+
changes: z.object({
|
|
30
|
+
diff: z.array(z.object({ path: z.string().max(512), op: z.enum(["add", "remove", "replace"]), before: z.unknown().optional(), after: z.unknown().optional() }).loose()).max(500),
|
|
31
|
+
unfixable: z.array(z.string().max(500)).max(64)
|
|
32
|
+
}).loose(),
|
|
33
|
+
hosting: z.object({ agentUri: z.string().max(2048), steps: z.array(z.string().max(2e3)).max(32) }).loose(),
|
|
34
|
+
setAgentUri: z.object({ parameterHex: z.string().regex(/^([0-9a-f]{2})+$/).max(8192) }).loose()
|
|
35
|
+
}).loose();
|
|
36
|
+
function askedPrice(header) {
|
|
37
|
+
if (header === null || header.length > 16384) return null;
|
|
38
|
+
try {
|
|
39
|
+
const json = JSON.parse(Buffer.from(header, "base64").toString("utf8"));
|
|
40
|
+
const amount = json.accepts?.[0]?.amount;
|
|
41
|
+
return typeof amount === "string" && /^[0-9]{1,20}$/.test(amount) ? ccdText(BigInt(amount)) : null;
|
|
42
|
+
} catch {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function ccdText(micro) {
|
|
47
|
+
const whole = micro / 1000000n;
|
|
48
|
+
const frac = (micro % 1000000n).toString().padStart(6, "0").replace(/0+$/, "");
|
|
49
|
+
return `${whole}${frac === "" ? "" : `.${frac}`} CCD`;
|
|
50
|
+
}
|
|
51
|
+
async function notaryRepair(env, a) {
|
|
52
|
+
const base = env.config.notaryUrl;
|
|
53
|
+
if (base === null) throw new CliError("usage", "set NOTARY_URL (the Notary API)");
|
|
54
|
+
let tokenId;
|
|
55
|
+
try {
|
|
56
|
+
tokenId = parseAgentBadge(a.badge);
|
|
57
|
+
} catch {
|
|
58
|
+
throw new CliError("usage", `${a.badge} is not a testnet CIS-8004 badge`);
|
|
59
|
+
}
|
|
60
|
+
const rb = new ReportBuilder(`notary repair ${a.badge}`);
|
|
61
|
+
const res = await env.io.fetch(`${base}/v1/repair`, {
|
|
62
|
+
method: "POST",
|
|
63
|
+
headers: { "content-type": "application/json", accept: "application/json" },
|
|
64
|
+
body: JSON.stringify({ token: tokenId.toString(), ...a.hostAt === void 0 || a.hostAt === null ? {} : { hostAt: a.hostAt } }),
|
|
65
|
+
redirect: "error",
|
|
66
|
+
signal: AbortSignal.timeout(3e4)
|
|
67
|
+
});
|
|
68
|
+
if (res.status === 402) {
|
|
69
|
+
const price = askedPrice(res.headers.get("PAYMENT-REQUIRED"));
|
|
70
|
+
rb.check("repair answered", false, `the Notary API asks for an x402 exact payment${price === null ? "" : ` of ${price}`}; call it from a paying agent (@opentab/client payExact). The free lint (POST /v1/lint) needs no payment`);
|
|
71
|
+
return rb.build();
|
|
72
|
+
}
|
|
73
|
+
const text = await res.text();
|
|
74
|
+
if (!rb.check("repair answered", res.ok && text.length <= MAX_ANSWER, `HTTP ${res.status}`)) return rb.build();
|
|
75
|
+
let json;
|
|
76
|
+
try {
|
|
77
|
+
json = JSON.parse(text);
|
|
78
|
+
} catch {
|
|
79
|
+
rb.check("answer is JSON", false);
|
|
80
|
+
return rb.build();
|
|
81
|
+
}
|
|
82
|
+
const parsed = repairAnswerSchema.safeParse(json);
|
|
83
|
+
if (!rb.check("answer has a card and its hash", parsed.success) || !parsed.success) return rb.build();
|
|
84
|
+
const answer = parsed.data;
|
|
85
|
+
const bytes = new TextEncoder().encode(answer.card.utf8);
|
|
86
|
+
rb.check("repair is for this agent", answer.token === tokenId.toString(), answer.token);
|
|
87
|
+
rb.check("card bytes hash to the stated SHA-256", sha256Hex(bytes) === answer.card.sha256, answer.card.sha256);
|
|
88
|
+
let card = null;
|
|
89
|
+
try {
|
|
90
|
+
card = JSON.parse(answer.card.utf8);
|
|
91
|
+
} catch {
|
|
92
|
+
rb.check("card is JSON", false);
|
|
93
|
+
}
|
|
94
|
+
const a2a = agentCardSchema.safeParse(card);
|
|
95
|
+
rb.check("card is an A2A v1.0 AgentCard", a2a.success);
|
|
96
|
+
const agent = await (await env.onboardChain()).agentOf(tokenId);
|
|
97
|
+
if (rb.check("agent exists on chain and is Active", agent?.status === "Active") && agent !== null && a2a.success) {
|
|
98
|
+
const ext = badgeExtensionSchema.safeParse(a2a.data.capabilities.extensions?.find((e) => e.uri === BADGE_EXTENSION_URI));
|
|
99
|
+
const regs = z.array(registrationSchema).safeParse(a2a.data.registrations ?? []);
|
|
100
|
+
if (rb.check("card carries a well-formed badge", ext.success && regs.success) && ext.success && regs.success) {
|
|
101
|
+
if (agent.agentWallet === null) rb.check("agent has an agentWallet", false, "set one before the badge (setAgentWallet)");
|
|
102
|
+
else {
|
|
103
|
+
const issues = badgeIssues({ extension: ext.data, registrations: regs.data }, { tokenId, owner: agent.ownerAccount, agentWallet: agent.agentWallet });
|
|
104
|
+
rb.check("badge passes for the on-chain owner and agent wallet", issues.length === 0, issues.join("; "));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
for (const d of answer.changes.diff) rb.fact(`${d.op} ${d.path}`, `${JSON.stringify(d.before ?? null)} \u2192 ${JSON.stringify(d.after ?? null)}`);
|
|
109
|
+
for (const u of answer.changes.unfixable) rb.fact("not fixable here", u);
|
|
110
|
+
rb.fact("host the card at", answer.hosting.agentUri);
|
|
111
|
+
answer.hosting.steps.forEach((step, i) => rb.fact(`hosting step ${i + 1}`, step));
|
|
112
|
+
rb.fact("setAgentURI parameter (owner signs)", answer.setAgentUri.parameterHex);
|
|
113
|
+
if (a.out !== null) {
|
|
114
|
+
await env.io.writeFile(a.out, bytes);
|
|
115
|
+
rb.fact("card written to", `${a.out} (host these exact bytes, then pin them with setAgentURI)`);
|
|
116
|
+
}
|
|
117
|
+
return rb.build();
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
notaryRepair,
|
|
121
|
+
repairAnswerSchema
|
|
122
|
+
};
|
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ACCOUNT_ADDRESS_LENGTH,
|
|
3
|
+
ACCOUNT_ADDRESS_VERSION,
|
|
4
|
+
ATTESTOR_KEY_NAMESPACE,
|
|
5
|
+
BUREAU_CONTRACT_NAME,
|
|
6
|
+
BUREAU_ENTRYPOINTS,
|
|
7
|
+
BUREAU_ERRORS,
|
|
8
|
+
BUREAU_EVENT_TAGS,
|
|
9
|
+
CIS8004_CONTRACT_NAME,
|
|
10
|
+
CIS8004_EVENT_TAGS,
|
|
11
|
+
CIS8_CANONICAL_TAG,
|
|
12
|
+
CIS8_CONTRACT_NAME,
|
|
13
|
+
CIS8_EVENT_TAGS,
|
|
14
|
+
Cis8CanonicalMessageCodec,
|
|
15
|
+
CloseAckV1Codec,
|
|
16
|
+
CloseVoucherV1Codec,
|
|
17
|
+
CodecError,
|
|
18
|
+
ConsentAttestationV1Codec,
|
|
19
|
+
DOMAIN_TAGS,
|
|
20
|
+
ED25519_PUBLIC_KEY_LENGTH,
|
|
21
|
+
ED25519_SEED_LENGTH,
|
|
22
|
+
ED25519_SIGNATURE_LENGTH,
|
|
23
|
+
HASH_LENGTH,
|
|
24
|
+
KEY_TYPE_ED25519,
|
|
25
|
+
LimitV1Codec,
|
|
26
|
+
LineTermsV1Codec,
|
|
27
|
+
MAX_ENTRYPOINT_NAME_BYTES,
|
|
28
|
+
MAX_LANES,
|
|
29
|
+
MAX_REPORT_VOUCHERS,
|
|
30
|
+
MESSAGE_CODECS,
|
|
31
|
+
PARAMS_CHANGED_WHAT,
|
|
32
|
+
PROOF_SCHEME_SOLANA_ED25519,
|
|
33
|
+
Reader,
|
|
34
|
+
ReceiptV1Codec,
|
|
35
|
+
ReportV1Codec,
|
|
36
|
+
SESSION_KEY_NAMESPACE,
|
|
37
|
+
SET_AGENT_WALLET_MESSAGE_LENGTH,
|
|
38
|
+
SET_AGENT_WALLET_TAG,
|
|
39
|
+
SPEND_NOGO_REASONS,
|
|
40
|
+
SetAgentWalletMessageCodec,
|
|
41
|
+
TESTNET_CAIP2,
|
|
42
|
+
TESTNET_CIS8,
|
|
43
|
+
TESTNET_CIS8004,
|
|
44
|
+
TESTNET_CIS8004_MODULE_HEX,
|
|
45
|
+
TESTNET_CIS8_MODULE_HEX,
|
|
46
|
+
TESTNET_GENESIS_HEX,
|
|
47
|
+
TIER,
|
|
48
|
+
TOKEN_ADDRESS_VERSION,
|
|
49
|
+
TOKEN_ID_U64_PREFIX,
|
|
50
|
+
TabAgreementV1Codec,
|
|
51
|
+
U16_MAX,
|
|
52
|
+
U32_MAX,
|
|
53
|
+
U64_MAX,
|
|
54
|
+
U8_MAX,
|
|
55
|
+
VoucherV1Codec,
|
|
56
|
+
Writer,
|
|
57
|
+
acceptSigningBytes,
|
|
58
|
+
acceptTranscriptPart,
|
|
59
|
+
accountAddressFromBase58,
|
|
60
|
+
accountAddressToBase58,
|
|
61
|
+
agentCaip19,
|
|
62
|
+
agentMetadataEntry,
|
|
63
|
+
agentTokenAddress,
|
|
64
|
+
agentView,
|
|
65
|
+
agreementHash,
|
|
66
|
+
ascii,
|
|
67
|
+
attestationHash,
|
|
68
|
+
base58CheckDecode,
|
|
69
|
+
base58CheckEncode,
|
|
70
|
+
base58Decode,
|
|
71
|
+
base58Encode,
|
|
72
|
+
bureauConfig,
|
|
73
|
+
bureauErrorCode,
|
|
74
|
+
bureauErrorName,
|
|
75
|
+
bureauEvent,
|
|
76
|
+
bytesEqual,
|
|
77
|
+
caip2FromGenesis,
|
|
78
|
+
capOfParams,
|
|
79
|
+
checkSpendParams,
|
|
80
|
+
cis2Address,
|
|
81
|
+
cis2Amount,
|
|
82
|
+
cis8CanonicalMessage,
|
|
83
|
+
cis8MetadataEntry,
|
|
84
|
+
clearFlagParams,
|
|
85
|
+
closeAckFor,
|
|
86
|
+
closeHash,
|
|
87
|
+
commitmentId,
|
|
88
|
+
concatBytes,
|
|
89
|
+
contractAddress,
|
|
90
|
+
contractAddressEqual,
|
|
91
|
+
cycleEnd,
|
|
92
|
+
decodeAccountSignatures,
|
|
93
|
+
decodeAgentOfResult,
|
|
94
|
+
decodeAgentWalletNonceResult,
|
|
95
|
+
decodeAgentWalletResult,
|
|
96
|
+
decodeBureauEvent,
|
|
97
|
+
decodeCapOfParams,
|
|
98
|
+
decodeCapOfResult,
|
|
99
|
+
decodeCheckSpendParams,
|
|
100
|
+
decodeCis8004Event,
|
|
101
|
+
decodeCis8Event,
|
|
102
|
+
decodeClearFlagParams,
|
|
103
|
+
decodeCloseAckV1,
|
|
104
|
+
decodeCloseVoucherV1,
|
|
105
|
+
decodeConfig,
|
|
106
|
+
decodeConfigResult,
|
|
107
|
+
decodeConsentAttestationV1,
|
|
108
|
+
decodeExternalKeyId,
|
|
109
|
+
decodeIdParams,
|
|
110
|
+
decodeLimitV1,
|
|
111
|
+
decodeLineOfResult,
|
|
112
|
+
decodeLineTermsV1,
|
|
113
|
+
decodeOpenLineParams,
|
|
114
|
+
decodeOpenTabParams,
|
|
115
|
+
decodeOwnerOfKeyResult,
|
|
116
|
+
decodePruneExpiredParams,
|
|
117
|
+
decodeRaiseLimitParams,
|
|
118
|
+
decodeReceiptV1,
|
|
119
|
+
decodeRegisterExternalKeyParams,
|
|
120
|
+
decodeRegisterSellerParams,
|
|
121
|
+
decodeRepinRegistryParams,
|
|
122
|
+
decodeReportDefaultParams,
|
|
123
|
+
decodeReportV1,
|
|
124
|
+
decodeResolveDefaultParams,
|
|
125
|
+
decodeSellerOfResult,
|
|
126
|
+
decodeSellerPolicy,
|
|
127
|
+
decodeSetAgentWalletMessage,
|
|
128
|
+
decodeSetAgentWalletParams,
|
|
129
|
+
decodeSetAllowListsParams,
|
|
130
|
+
decodeSetParamsParams,
|
|
131
|
+
decodeSettleTabParams,
|
|
132
|
+
decodeSpendDecision,
|
|
133
|
+
decodeStandingKey,
|
|
134
|
+
decodeStandingOfResult,
|
|
135
|
+
decodeTabAgreementV1,
|
|
136
|
+
decodeTabOfResult,
|
|
137
|
+
decodeUpgradeParams,
|
|
138
|
+
decodeVoucherV1,
|
|
139
|
+
decodeWith,
|
|
140
|
+
defineMessage,
|
|
141
|
+
ed25519DidKey,
|
|
142
|
+
ed25519FromDidKey,
|
|
143
|
+
ed25519KeyId,
|
|
144
|
+
ed25519PublicKey,
|
|
145
|
+
ed25519PublicKeyAsync,
|
|
146
|
+
ed25519Sign,
|
|
147
|
+
ed25519SignAsync,
|
|
148
|
+
ed25519Verify,
|
|
149
|
+
ed25519VerifyAsync,
|
|
150
|
+
encodeAccountSignatures,
|
|
151
|
+
encodeAgentOfParams,
|
|
152
|
+
encodeAgentOfResult,
|
|
153
|
+
encodeBureauEvent,
|
|
154
|
+
encodeCapOfParams,
|
|
155
|
+
encodeCapOfResult,
|
|
156
|
+
encodeCheckSpendParams,
|
|
157
|
+
encodeCis8004Event,
|
|
158
|
+
encodeCis8Event,
|
|
159
|
+
encodeClearFlagParams,
|
|
160
|
+
encodeCloseAckV1,
|
|
161
|
+
encodeCloseLineParams,
|
|
162
|
+
encodeCloseTabParams,
|
|
163
|
+
encodeCloseVoucherV1,
|
|
164
|
+
encodeConsentAttestationV1,
|
|
165
|
+
encodeExternalKeyId,
|
|
166
|
+
encodeInitParams,
|
|
167
|
+
encodeLimitV1,
|
|
168
|
+
encodeLineOfParams,
|
|
169
|
+
encodeLineOfResult,
|
|
170
|
+
encodeLineTermsV1,
|
|
171
|
+
encodeOpenLineParams,
|
|
172
|
+
encodeOpenTabParams,
|
|
173
|
+
encodeOwnerOfKeyParams,
|
|
174
|
+
encodeOwnerOfKeyResult,
|
|
175
|
+
encodePruneExpiredParams,
|
|
176
|
+
encodeRaiseLimitParams,
|
|
177
|
+
encodeReceiptV1,
|
|
178
|
+
encodeRegisterExternalKeyParams,
|
|
179
|
+
encodeRegisterSellerParams,
|
|
180
|
+
encodeRepinRegistryParams,
|
|
181
|
+
encodeReportDefaultParams,
|
|
182
|
+
encodeReportV1,
|
|
183
|
+
encodeResolveDefaultParams,
|
|
184
|
+
encodeSellerOfParams,
|
|
185
|
+
encodeSellerOfResult,
|
|
186
|
+
encodeSellerPolicy,
|
|
187
|
+
encodeSetAgentWalletParams,
|
|
188
|
+
encodeSetAllowListsParams,
|
|
189
|
+
encodeSetParamsParams,
|
|
190
|
+
encodeSettleTabParams,
|
|
191
|
+
encodeSignedVouchers,
|
|
192
|
+
encodeSpendDecision,
|
|
193
|
+
encodeStanding,
|
|
194
|
+
encodeStandingKey,
|
|
195
|
+
encodeStandingOfParams,
|
|
196
|
+
encodeTabAgreementV1,
|
|
197
|
+
encodeTabOfParams,
|
|
198
|
+
encodeTabOfResult,
|
|
199
|
+
encodeUpgradeParams,
|
|
200
|
+
encodeVoucherV1,
|
|
201
|
+
encodeWith,
|
|
202
|
+
entrypointName,
|
|
203
|
+
externalKeyIdEqual,
|
|
204
|
+
externalReference,
|
|
205
|
+
formatContractAddress,
|
|
206
|
+
fromHex,
|
|
207
|
+
fromUtf8,
|
|
208
|
+
handshakeHash,
|
|
209
|
+
helloHash,
|
|
210
|
+
helloSigningBytes,
|
|
211
|
+
hmacSha256,
|
|
212
|
+
isAccountAddress,
|
|
213
|
+
isFlagged,
|
|
214
|
+
isKeyBoundTo,
|
|
215
|
+
jcs,
|
|
216
|
+
jcsString,
|
|
217
|
+
ladderCap,
|
|
218
|
+
laneRecord,
|
|
219
|
+
laneState,
|
|
220
|
+
lineCommitment,
|
|
221
|
+
lineView,
|
|
222
|
+
noGo,
|
|
223
|
+
openLineParams,
|
|
224
|
+
openTabParams,
|
|
225
|
+
parseCaip19,
|
|
226
|
+
parseContractAddress,
|
|
227
|
+
parseTokenAddress,
|
|
228
|
+
policyHash,
|
|
229
|
+
pruneExpiredParams,
|
|
230
|
+
raiseLimitParams,
|
|
231
|
+
receiptHash,
|
|
232
|
+
registerExternalKeyParams,
|
|
233
|
+
registerSellerParams,
|
|
234
|
+
registration,
|
|
235
|
+
repinRegistryParams,
|
|
236
|
+
reportDefaultParams,
|
|
237
|
+
reportFor,
|
|
238
|
+
requestHash,
|
|
239
|
+
resolveDefaultParams,
|
|
240
|
+
responseHash,
|
|
241
|
+
sellerPolicy,
|
|
242
|
+
sellerView,
|
|
243
|
+
sessionKeyHash,
|
|
244
|
+
setAgentWalletMessage,
|
|
245
|
+
setAgentWalletParams,
|
|
246
|
+
setAllowListsParams,
|
|
247
|
+
setParamsParams,
|
|
248
|
+
settleTabParams,
|
|
249
|
+
sha256,
|
|
250
|
+
signAccept,
|
|
251
|
+
signCis8Canonical,
|
|
252
|
+
signHello,
|
|
253
|
+
signedVoucher,
|
|
254
|
+
signedVoucherVec,
|
|
255
|
+
singleKeyAccountSignatures,
|
|
256
|
+
spendDecision,
|
|
257
|
+
standing,
|
|
258
|
+
standingKey,
|
|
259
|
+
standingKeyFor,
|
|
260
|
+
statementsHash,
|
|
261
|
+
tabView,
|
|
262
|
+
termsHash,
|
|
263
|
+
testnetGenesis,
|
|
264
|
+
toHex,
|
|
265
|
+
toU64,
|
|
266
|
+
tokenAddress,
|
|
267
|
+
tokenIdU64Bytes,
|
|
268
|
+
uleb128Decode,
|
|
269
|
+
uleb128Encode,
|
|
270
|
+
upgradeParams,
|
|
271
|
+
utf8,
|
|
272
|
+
verifyAccept,
|
|
273
|
+
verifyCis8Canonical,
|
|
274
|
+
verifyHello,
|
|
275
|
+
vouchersHash,
|
|
276
|
+
wire,
|
|
277
|
+
zeroHash
|
|
278
|
+
} from "./chunk-D3C7KAMJ.js";
|
|
279
|
+
export {
|
|
280
|
+
ACCOUNT_ADDRESS_LENGTH,
|
|
281
|
+
ACCOUNT_ADDRESS_VERSION,
|
|
282
|
+
ATTESTOR_KEY_NAMESPACE,
|
|
283
|
+
BUREAU_CONTRACT_NAME,
|
|
284
|
+
BUREAU_ENTRYPOINTS,
|
|
285
|
+
BUREAU_ERRORS,
|
|
286
|
+
BUREAU_EVENT_TAGS,
|
|
287
|
+
CIS8004_CONTRACT_NAME,
|
|
288
|
+
CIS8004_EVENT_TAGS,
|
|
289
|
+
CIS8_CANONICAL_TAG,
|
|
290
|
+
CIS8_CONTRACT_NAME,
|
|
291
|
+
CIS8_EVENT_TAGS,
|
|
292
|
+
Cis8CanonicalMessageCodec,
|
|
293
|
+
CloseAckV1Codec,
|
|
294
|
+
CloseVoucherV1Codec,
|
|
295
|
+
CodecError,
|
|
296
|
+
ConsentAttestationV1Codec,
|
|
297
|
+
DOMAIN_TAGS,
|
|
298
|
+
ED25519_PUBLIC_KEY_LENGTH,
|
|
299
|
+
ED25519_SEED_LENGTH,
|
|
300
|
+
ED25519_SIGNATURE_LENGTH,
|
|
301
|
+
HASH_LENGTH,
|
|
302
|
+
KEY_TYPE_ED25519,
|
|
303
|
+
LimitV1Codec,
|
|
304
|
+
LineTermsV1Codec,
|
|
305
|
+
MAX_ENTRYPOINT_NAME_BYTES,
|
|
306
|
+
MAX_LANES,
|
|
307
|
+
MAX_REPORT_VOUCHERS,
|
|
308
|
+
MESSAGE_CODECS,
|
|
309
|
+
PARAMS_CHANGED_WHAT,
|
|
310
|
+
PROOF_SCHEME_SOLANA_ED25519,
|
|
311
|
+
Reader,
|
|
312
|
+
ReceiptV1Codec,
|
|
313
|
+
ReportV1Codec,
|
|
314
|
+
SESSION_KEY_NAMESPACE,
|
|
315
|
+
SET_AGENT_WALLET_MESSAGE_LENGTH,
|
|
316
|
+
SET_AGENT_WALLET_TAG,
|
|
317
|
+
SPEND_NOGO_REASONS,
|
|
318
|
+
SetAgentWalletMessageCodec,
|
|
319
|
+
TESTNET_CAIP2,
|
|
320
|
+
TESTNET_CIS8,
|
|
321
|
+
TESTNET_CIS8004,
|
|
322
|
+
TESTNET_CIS8004_MODULE_HEX,
|
|
323
|
+
TESTNET_CIS8_MODULE_HEX,
|
|
324
|
+
TESTNET_GENESIS_HEX,
|
|
325
|
+
TIER,
|
|
326
|
+
TOKEN_ADDRESS_VERSION,
|
|
327
|
+
TOKEN_ID_U64_PREFIX,
|
|
328
|
+
TabAgreementV1Codec,
|
|
329
|
+
U16_MAX,
|
|
330
|
+
U32_MAX,
|
|
331
|
+
U64_MAX,
|
|
332
|
+
U8_MAX,
|
|
333
|
+
VoucherV1Codec,
|
|
334
|
+
Writer,
|
|
335
|
+
acceptSigningBytes,
|
|
336
|
+
acceptTranscriptPart,
|
|
337
|
+
accountAddressFromBase58,
|
|
338
|
+
accountAddressToBase58,
|
|
339
|
+
agentCaip19,
|
|
340
|
+
agentMetadataEntry,
|
|
341
|
+
agentTokenAddress,
|
|
342
|
+
agentView,
|
|
343
|
+
agreementHash,
|
|
344
|
+
ascii,
|
|
345
|
+
attestationHash,
|
|
346
|
+
base58CheckDecode,
|
|
347
|
+
base58CheckEncode,
|
|
348
|
+
base58Decode,
|
|
349
|
+
base58Encode,
|
|
350
|
+
bureauConfig,
|
|
351
|
+
bureauErrorCode,
|
|
352
|
+
bureauErrorName,
|
|
353
|
+
bureauEvent,
|
|
354
|
+
bytesEqual,
|
|
355
|
+
caip2FromGenesis,
|
|
356
|
+
capOfParams,
|
|
357
|
+
checkSpendParams,
|
|
358
|
+
cis2Address,
|
|
359
|
+
cis2Amount,
|
|
360
|
+
cis8CanonicalMessage,
|
|
361
|
+
cis8MetadataEntry,
|
|
362
|
+
clearFlagParams,
|
|
363
|
+
closeAckFor,
|
|
364
|
+
closeHash,
|
|
365
|
+
commitmentId,
|
|
366
|
+
concatBytes,
|
|
367
|
+
contractAddress,
|
|
368
|
+
contractAddressEqual,
|
|
369
|
+
cycleEnd,
|
|
370
|
+
decodeAccountSignatures,
|
|
371
|
+
decodeAgentOfResult,
|
|
372
|
+
decodeAgentWalletNonceResult,
|
|
373
|
+
decodeAgentWalletResult,
|
|
374
|
+
decodeBureauEvent,
|
|
375
|
+
decodeCapOfParams,
|
|
376
|
+
decodeCapOfResult,
|
|
377
|
+
decodeCheckSpendParams,
|
|
378
|
+
decodeCis8004Event,
|
|
379
|
+
decodeCis8Event,
|
|
380
|
+
decodeClearFlagParams,
|
|
381
|
+
decodeCloseAckV1,
|
|
382
|
+
decodeCloseVoucherV1,
|
|
383
|
+
decodeConfig,
|
|
384
|
+
decodeConfigResult,
|
|
385
|
+
decodeConsentAttestationV1,
|
|
386
|
+
decodeExternalKeyId,
|
|
387
|
+
decodeIdParams,
|
|
388
|
+
decodeLimitV1,
|
|
389
|
+
decodeLineOfResult,
|
|
390
|
+
decodeLineTermsV1,
|
|
391
|
+
decodeOpenLineParams,
|
|
392
|
+
decodeOpenTabParams,
|
|
393
|
+
decodeOwnerOfKeyResult,
|
|
394
|
+
decodePruneExpiredParams,
|
|
395
|
+
decodeRaiseLimitParams,
|
|
396
|
+
decodeReceiptV1,
|
|
397
|
+
decodeRegisterExternalKeyParams,
|
|
398
|
+
decodeRegisterSellerParams,
|
|
399
|
+
decodeRepinRegistryParams,
|
|
400
|
+
decodeReportDefaultParams,
|
|
401
|
+
decodeReportV1,
|
|
402
|
+
decodeResolveDefaultParams,
|
|
403
|
+
decodeSellerOfResult,
|
|
404
|
+
decodeSellerPolicy,
|
|
405
|
+
decodeSetAgentWalletMessage,
|
|
406
|
+
decodeSetAgentWalletParams,
|
|
407
|
+
decodeSetAllowListsParams,
|
|
408
|
+
decodeSetParamsParams,
|
|
409
|
+
decodeSettleTabParams,
|
|
410
|
+
decodeSpendDecision,
|
|
411
|
+
decodeStandingKey,
|
|
412
|
+
decodeStandingOfResult,
|
|
413
|
+
decodeTabAgreementV1,
|
|
414
|
+
decodeTabOfResult,
|
|
415
|
+
decodeUpgradeParams,
|
|
416
|
+
decodeVoucherV1,
|
|
417
|
+
decodeWith,
|
|
418
|
+
defineMessage,
|
|
419
|
+
ed25519DidKey,
|
|
420
|
+
ed25519FromDidKey,
|
|
421
|
+
ed25519KeyId,
|
|
422
|
+
ed25519PublicKey,
|
|
423
|
+
ed25519PublicKeyAsync,
|
|
424
|
+
ed25519Sign,
|
|
425
|
+
ed25519SignAsync,
|
|
426
|
+
ed25519Verify,
|
|
427
|
+
ed25519VerifyAsync,
|
|
428
|
+
encodeAccountSignatures,
|
|
429
|
+
encodeAgentOfParams,
|
|
430
|
+
encodeAgentOfResult,
|
|
431
|
+
encodeBureauEvent,
|
|
432
|
+
encodeCapOfParams,
|
|
433
|
+
encodeCapOfResult,
|
|
434
|
+
encodeCheckSpendParams,
|
|
435
|
+
encodeCis8004Event,
|
|
436
|
+
encodeCis8Event,
|
|
437
|
+
encodeClearFlagParams,
|
|
438
|
+
encodeCloseAckV1,
|
|
439
|
+
encodeCloseLineParams,
|
|
440
|
+
encodeCloseTabParams,
|
|
441
|
+
encodeCloseVoucherV1,
|
|
442
|
+
encodeConsentAttestationV1,
|
|
443
|
+
encodeExternalKeyId,
|
|
444
|
+
encodeInitParams,
|
|
445
|
+
encodeLimitV1,
|
|
446
|
+
encodeLineOfParams,
|
|
447
|
+
encodeLineOfResult,
|
|
448
|
+
encodeLineTermsV1,
|
|
449
|
+
encodeOpenLineParams,
|
|
450
|
+
encodeOpenTabParams,
|
|
451
|
+
encodeOwnerOfKeyParams,
|
|
452
|
+
encodeOwnerOfKeyResult,
|
|
453
|
+
encodePruneExpiredParams,
|
|
454
|
+
encodeRaiseLimitParams,
|
|
455
|
+
encodeReceiptV1,
|
|
456
|
+
encodeRegisterExternalKeyParams,
|
|
457
|
+
encodeRegisterSellerParams,
|
|
458
|
+
encodeRepinRegistryParams,
|
|
459
|
+
encodeReportDefaultParams,
|
|
460
|
+
encodeReportV1,
|
|
461
|
+
encodeResolveDefaultParams,
|
|
462
|
+
encodeSellerOfParams,
|
|
463
|
+
encodeSellerOfResult,
|
|
464
|
+
encodeSellerPolicy,
|
|
465
|
+
encodeSetAgentWalletParams,
|
|
466
|
+
encodeSetAllowListsParams,
|
|
467
|
+
encodeSetParamsParams,
|
|
468
|
+
encodeSettleTabParams,
|
|
469
|
+
encodeSignedVouchers,
|
|
470
|
+
encodeSpendDecision,
|
|
471
|
+
encodeStanding,
|
|
472
|
+
encodeStandingKey,
|
|
473
|
+
encodeStandingOfParams,
|
|
474
|
+
encodeTabAgreementV1,
|
|
475
|
+
encodeTabOfParams,
|
|
476
|
+
encodeTabOfResult,
|
|
477
|
+
encodeUpgradeParams,
|
|
478
|
+
encodeVoucherV1,
|
|
479
|
+
encodeWith,
|
|
480
|
+
entrypointName,
|
|
481
|
+
externalKeyIdEqual,
|
|
482
|
+
externalReference,
|
|
483
|
+
formatContractAddress,
|
|
484
|
+
fromHex,
|
|
485
|
+
fromUtf8,
|
|
486
|
+
handshakeHash,
|
|
487
|
+
helloHash,
|
|
488
|
+
helloSigningBytes,
|
|
489
|
+
hmacSha256,
|
|
490
|
+
isAccountAddress,
|
|
491
|
+
isFlagged,
|
|
492
|
+
isKeyBoundTo,
|
|
493
|
+
jcs,
|
|
494
|
+
jcsString,
|
|
495
|
+
ladderCap,
|
|
496
|
+
laneRecord,
|
|
497
|
+
laneState,
|
|
498
|
+
lineCommitment,
|
|
499
|
+
lineView,
|
|
500
|
+
noGo,
|
|
501
|
+
openLineParams,
|
|
502
|
+
openTabParams,
|
|
503
|
+
parseCaip19,
|
|
504
|
+
parseContractAddress,
|
|
505
|
+
parseTokenAddress,
|
|
506
|
+
policyHash,
|
|
507
|
+
pruneExpiredParams,
|
|
508
|
+
raiseLimitParams,
|
|
509
|
+
receiptHash,
|
|
510
|
+
registerExternalKeyParams,
|
|
511
|
+
registerSellerParams,
|
|
512
|
+
registration,
|
|
513
|
+
repinRegistryParams,
|
|
514
|
+
reportDefaultParams,
|
|
515
|
+
reportFor,
|
|
516
|
+
requestHash,
|
|
517
|
+
resolveDefaultParams,
|
|
518
|
+
responseHash,
|
|
519
|
+
sellerPolicy,
|
|
520
|
+
sellerView,
|
|
521
|
+
sessionKeyHash,
|
|
522
|
+
setAgentWalletMessage,
|
|
523
|
+
setAgentWalletParams,
|
|
524
|
+
setAllowListsParams,
|
|
525
|
+
setParamsParams,
|
|
526
|
+
settleTabParams,
|
|
527
|
+
sha256,
|
|
528
|
+
signAccept,
|
|
529
|
+
signCis8Canonical,
|
|
530
|
+
signHello,
|
|
531
|
+
signedVoucher,
|
|
532
|
+
signedVoucherVec,
|
|
533
|
+
singleKeyAccountSignatures,
|
|
534
|
+
spendDecision,
|
|
535
|
+
standing,
|
|
536
|
+
standingKey,
|
|
537
|
+
standingKeyFor,
|
|
538
|
+
statementsHash,
|
|
539
|
+
tabView,
|
|
540
|
+
termsHash,
|
|
541
|
+
testnetGenesis,
|
|
542
|
+
toHex,
|
|
543
|
+
toU64,
|
|
544
|
+
tokenAddress,
|
|
545
|
+
tokenIdU64Bytes,
|
|
546
|
+
uleb128Decode,
|
|
547
|
+
uleb128Encode,
|
|
548
|
+
upgradeParams,
|
|
549
|
+
utf8,
|
|
550
|
+
verifyAccept,
|
|
551
|
+
verifyCis8Canonical,
|
|
552
|
+
verifyHello,
|
|
553
|
+
vouchersHash,
|
|
554
|
+
wire,
|
|
555
|
+
zeroHash
|
|
556
|
+
};
|