@thruputchain/client 0.0.0-stage → 0.26.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 +201 -0
- package/README.md +953 -2
- package/dist/actions-CXx6qzsv.cjs +513 -0
- package/dist/actions-CXx6qzsv.cjs.map +1 -0
- package/dist/actions-QHgiCqT6.js +430 -0
- package/dist/actions-QHgiCqT6.js.map +1 -0
- package/dist/actions.cjs +23 -0
- package/dist/actions.d.cts +4 -0
- package/dist/actions.d.ts +4 -0
- package/dist/actions.js +3 -0
- package/dist/artifact-BM_MVzhL.d.cts +35 -0
- package/dist/artifact-BM_MVzhL.d.cts.map +1 -0
- package/dist/artifact-BM_MVzhL.d.ts +35 -0
- package/dist/artifact-BM_MVzhL.d.ts.map +1 -0
- package/dist/client-JixxskeH.d.cts +746 -0
- package/dist/client-JixxskeH.d.cts.map +1 -0
- package/dist/client-JixxskeH.d.ts +746 -0
- package/dist/client-JixxskeH.d.ts.map +1 -0
- package/dist/codec-BHKoSaOP.js +9506 -0
- package/dist/codec-BHKoSaOP.js.map +1 -0
- package/dist/codec-C3OlYm98.cjs +9566 -0
- package/dist/codec-C3OlYm98.cjs.map +1 -0
- package/dist/contract-C7T2H2Oi.cjs +1628 -0
- package/dist/contract-C7T2H2Oi.cjs.map +1 -0
- package/dist/contract-DzvyyFCI.js +1472 -0
- package/dist/contract-DzvyyFCI.js.map +1 -0
- package/dist/contract.cjs +63 -0
- package/dist/contract.d.cts +4 -0
- package/dist/contract.d.ts +4 -0
- package/dist/contract.js +2 -0
- package/dist/contracts.cjs +1050 -0
- package/dist/contracts.cjs.map +1 -0
- package/dist/contracts.d.cts +397 -0
- package/dist/contracts.d.cts.map +1 -0
- package/dist/contracts.d.ts +397 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +1030 -0
- package/dist/contracts.js.map +1 -0
- package/dist/dev_wallet-CSMA1PCt.js +497 -0
- package/dist/dev_wallet-CSMA1PCt.js.map +1 -0
- package/dist/dev_wallet-GX-NCAFk.cjs +530 -0
- package/dist/dev_wallet-GX-NCAFk.cjs.map +1 -0
- package/dist/domainSeparator-B_vU_zUD.cjs +102 -0
- package/dist/domainSeparator-B_vU_zUD.cjs.map +1 -0
- package/dist/domainSeparator-CBCvxIj-.js +79 -0
- package/dist/domainSeparator-CBCvxIj-.js.map +1 -0
- package/dist/execution-DYqPDn4O.d.cts +227 -0
- package/dist/execution-DYqPDn4O.d.cts.map +1 -0
- package/dist/execution-Dj6E4B_b.d.ts +227 -0
- package/dist/execution-Dj6E4B_b.d.ts.map +1 -0
- package/dist/hex-DIcaALXL.js +112 -0
- package/dist/hex-DIcaALXL.js.map +1 -0
- package/dist/hex-DkGpiZ5e.cjs +189 -0
- package/dist/hex-DkGpiZ5e.cjs.map +1 -0
- package/dist/index--5LsCotr.d.ts +192 -0
- package/dist/index--5LsCotr.d.ts.map +1 -0
- package/dist/index-1-rFirYe.d.cts +90 -0
- package/dist/index-1-rFirYe.d.cts.map +1 -0
- package/dist/index-B5KqSHeL.d.cts +192 -0
- package/dist/index-B5KqSHeL.d.cts.map +1 -0
- package/dist/index-BraLWObY.d.cts +164 -0
- package/dist/index-BraLWObY.d.cts.map +1 -0
- package/dist/index-ByNNqY7S.d.cts +83 -0
- package/dist/index-ByNNqY7S.d.cts.map +1 -0
- package/dist/index-ByvV2UF6.d.ts +164 -0
- package/dist/index-ByvV2UF6.d.ts.map +1 -0
- package/dist/index-CG2WRtGa.d.cts +164 -0
- package/dist/index-CG2WRtGa.d.cts.map +1 -0
- package/dist/index-CIHK7Ew9.d.cts +303 -0
- package/dist/index-CIHK7Ew9.d.cts.map +1 -0
- package/dist/index-CIHK7Ew9.d.ts +303 -0
- package/dist/index-CIHK7Ew9.d.ts.map +1 -0
- package/dist/index-CVrhB9Dr.d.cts +263 -0
- package/dist/index-CVrhB9Dr.d.cts.map +1 -0
- package/dist/index-D89ur7mO.d.ts +164 -0
- package/dist/index-D89ur7mO.d.ts.map +1 -0
- package/dist/index-DzrLv3EA.d.cts +82 -0
- package/dist/index-DzrLv3EA.d.cts.map +1 -0
- package/dist/index-DzrLv3EA.d.ts +82 -0
- package/dist/index-DzrLv3EA.d.ts.map +1 -0
- package/dist/index-SV-inhhO.d.ts +90 -0
- package/dist/index-SV-inhhO.d.ts.map +1 -0
- package/dist/index-dJ65V8se.d.ts +263 -0
- package/dist/index-dJ65V8se.d.ts.map +1 -0
- package/dist/index-fdTURpBk.d.ts +83 -0
- package/dist/index-fdTURpBk.d.ts.map +1 -0
- package/dist/index.cjs +445 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +174 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +174 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +189 -0
- package/dist/index.js.map +1 -0
- package/dist/provider.cjs +101 -0
- package/dist/provider.cjs.map +1 -0
- package/dist/provider.d.cts +2 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.js +76 -0
- package/dist/provider.js.map +1 -0
- package/dist/readError-AoNjzW75.cjs +604 -0
- package/dist/readError-AoNjzW75.cjs.map +1 -0
- package/dist/readError-CZPYcW__.js +551 -0
- package/dist/readError-CZPYcW__.js.map +1 -0
- package/dist/readViews-DJyqc7im.d.cts +604 -0
- package/dist/readViews-DJyqc7im.d.cts.map +1 -0
- package/dist/readViews-DQoaUORa.d.ts +604 -0
- package/dist/readViews-DQoaUORa.d.ts.map +1 -0
- package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/dist/sendInvocation-BwabRa2N.js +505 -0
- package/dist/sendInvocation-BwabRa2N.js.map +1 -0
- package/dist/sendInvocation-qO8AZcmU.cjs +661 -0
- package/dist/sendInvocation-qO8AZcmU.cjs.map +1 -0
- package/dist/sign-BewmV_EL.cjs +139 -0
- package/dist/sign-BewmV_EL.cjs.map +1 -0
- package/dist/sign-DVIRyW8Y.js +122 -0
- package/dist/sign-DVIRyW8Y.js.map +1 -0
- package/dist/sign-Ve0eetRO.d.ts +48 -0
- package/dist/sign-Ve0eetRO.d.ts.map +1 -0
- package/dist/sign-eUT0iGQG.d.cts +48 -0
- package/dist/sign-eUT0iGQG.d.cts.map +1 -0
- package/dist/signed-op.cjs +9 -0
- package/dist/signed-op.d.cts +3 -0
- package/dist/signed-op.d.ts +3 -0
- package/dist/signed-op.js +3 -0
- package/dist/signedOp-C52gOgpR.js +166 -0
- package/dist/signedOp-C52gOgpR.js.map +1 -0
- package/dist/signedOp-oqAXEqmE.cjs +183 -0
- package/dist/signedOp-oqAXEqmE.cjs.map +1 -0
- package/dist/signed_op-BokEDWr-.js +154 -0
- package/dist/signed_op-BokEDWr-.js.map +1 -0
- package/dist/signed_op-C4lY_TCc.d.ts +58 -0
- package/dist/signed_op-C4lY_TCc.d.ts.map +1 -0
- package/dist/signed_op-DX5WuyEh.d.cts +58 -0
- package/dist/signed_op-DX5WuyEh.d.cts.map +1 -0
- package/dist/signed_op-q8KKSm5e.cjs +175 -0
- package/dist/signed_op-q8KKSm5e.cjs.map +1 -0
- package/dist/signers-BFP84wJP.cjs +137 -0
- package/dist/signers-BFP84wJP.cjs.map +1 -0
- package/dist/signers-CzOSedwJ.js +120 -0
- package/dist/signers-CzOSedwJ.js.map +1 -0
- package/dist/signers.cjs +5 -0
- package/dist/signers.d.cts +3 -0
- package/dist/signers.d.ts +3 -0
- package/dist/signers.js +2 -0
- package/dist/size-506oTE28.js +91 -0
- package/dist/size-506oTE28.js.map +1 -0
- package/dist/size-OAFfOthl.cjs +108 -0
- package/dist/size-OAFfOthl.cjs.map +1 -0
- package/dist/transaction-CwkQxQOx.js +24 -0
- package/dist/transaction-CwkQxQOx.js.map +1 -0
- package/dist/transaction-DrSrCJ5y.cjs +47 -0
- package/dist/transaction-DrSrCJ5y.cjs.map +1 -0
- package/dist/transaction.cjs +13 -0
- package/dist/transaction.d.cts +3 -0
- package/dist/transaction.d.ts +3 -0
- package/dist/transaction.js +4 -0
- package/dist/transactionHash-CO9ajbvU.js +24 -0
- package/dist/transactionHash-CO9ajbvU.js.map +1 -0
- package/dist/transactionHash-D5yf4KoL.cjs +29 -0
- package/dist/transactionHash-D5yf4KoL.cjs.map +1 -0
- package/dist/transport-CBFwAIIv.js +261 -0
- package/dist/transport-CBFwAIIv.js.map +1 -0
- package/dist/transport-tWxKhXUt.cjs +279 -0
- package/dist/transport-tWxKhXUt.cjs.map +1 -0
- package/dist/transport.cjs +19 -0
- package/dist/transport.d.cts +3 -0
- package/dist/transport.d.ts +3 -0
- package/dist/transport.js +4 -0
- package/dist/types-BE40oD_Q.d.cts +18 -0
- package/dist/types-BE40oD_Q.d.cts.map +1 -0
- package/dist/types-BE40oD_Q.d.ts +18 -0
- package/dist/types-BE40oD_Q.d.ts.map +1 -0
- package/dist/validation-4w-vDGAi.cjs +543 -0
- package/dist/validation-4w-vDGAi.cjs.map +1 -0
- package/dist/validation-eXATmgO0.js +411 -0
- package/dist/validation-eXATmgO0.js.map +1 -0
- package/dist/wallet-7RELuTkf.js +667 -0
- package/dist/wallet-7RELuTkf.js.map +1 -0
- package/dist/wallet-T_JazXRc.cjs +709 -0
- package/dist/wallet-T_JazXRc.cjs.map +1 -0
- package/dist/wallet.cjs +27 -0
- package/dist/wallet.d.cts +3 -0
- package/dist/wallet.d.ts +3 -0
- package/dist/wallet.js +3 -0
- package/package.json +122 -4
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { t as Signer } from "./types-BE40oD_Q.cjs";
|
|
2
|
+
import { CryptographicScheme, MlDsa65PublicKey, MlDsa65Signature, PublicKey, Signature } from "@thruputchain/protocol";
|
|
3
|
+
|
|
4
|
+
//#region src/signers/ed25519.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Ed25519 signer backed by an in-memory private key.
|
|
7
|
+
*
|
|
8
|
+
* This is convenient for scripts and tests. Browser wallets or production key
|
|
9
|
+
* management systems should usually provide their own {@link Signer}
|
|
10
|
+
* implementation instead of exposing raw private keys to application code.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { Ed25519Signer } from "@thruputchain/client/signers";
|
|
15
|
+
*
|
|
16
|
+
* const signer = Ed25519Signer.fromSeed(seed); // 32 bytes
|
|
17
|
+
* const signature = await signer.sign(message);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare class Ed25519Signer implements Signer {
|
|
21
|
+
#private;
|
|
22
|
+
/** Ed25519 public key derived from the constructor's private key. */
|
|
23
|
+
publicKey: Extract<PublicKey, {
|
|
24
|
+
scheme: CryptographicScheme.Ed25519;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Create an Ed25519 signer from a 32-byte private key.
|
|
28
|
+
*
|
|
29
|
+
* Prefer {@link Ed25519Signer.fromSeed}, which validates the key length and
|
|
30
|
+
* matches `MlDsa65Signer.fromSeed`.
|
|
31
|
+
*/
|
|
32
|
+
constructor(secretKey: Uint8Array);
|
|
33
|
+
/** Create an Ed25519 signer from a 32-byte RFC 8032 private key seed. */
|
|
34
|
+
static fromSeed(seed: Uint8Array): Ed25519Signer;
|
|
35
|
+
/** Sign a message with the in-memory Ed25519 private key. */
|
|
36
|
+
sign(message: Uint8Array): Promise<Extract<Signature, {
|
|
37
|
+
scheme: CryptographicScheme.Ed25519;
|
|
38
|
+
}>>;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/signers/mlDsa65.d.ts
|
|
42
|
+
/**
|
|
43
|
+
* ML-DSA-65 (FIPS 204) signer backed by an in-memory key derived from a seed.
|
|
44
|
+
*
|
|
45
|
+
* Signatures are pure ML-DSA (not HashML-DSA) with an empty context string,
|
|
46
|
+
* over the same transaction signature preimage an Ed25519 signer signs. Keys
|
|
47
|
+
* are scheme-tagged `PublicKey` values; there is no StrKey form for them.
|
|
48
|
+
*
|
|
49
|
+
* Signing is hedged by default (fresh randomness mixed into each signature).
|
|
50
|
+
* Pass `{ deterministic: true }` for the FIPS 204 deterministic variant, which
|
|
51
|
+
* reproduces the same signature for the same key and message.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* import { MlDsa65Signer } from "@thruputchain/client/signers";
|
|
56
|
+
*
|
|
57
|
+
* const signer = MlDsa65Signer.fromSeed(seed); // 32 bytes
|
|
58
|
+
* const signature = await signer.sign(message);
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare class MlDsa65Signer implements Signer {
|
|
62
|
+
#private;
|
|
63
|
+
/** Scheme-tagged ML-DSA-65 public key derived from the seed. */
|
|
64
|
+
readonly publicKey: Extract<PublicKey, {
|
|
65
|
+
scheme: CryptographicScheme.MlDsa65;
|
|
66
|
+
}>;
|
|
67
|
+
private constructor();
|
|
68
|
+
/** Derive an ML-DSA-65 key pair from a 32-byte FIPS 204 `ξ` seed. */
|
|
69
|
+
static fromSeed(seed: Uint8Array, options?: {
|
|
70
|
+
readonly deterministic?: boolean;
|
|
71
|
+
}): MlDsa65Signer;
|
|
72
|
+
/** Sign a message with pure ML-DSA-65 and an empty context. */
|
|
73
|
+
sign(message: Uint8Array): Promise<Signature>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Verify a pure ML-DSA-65 signature with an empty context string.
|
|
77
|
+
*
|
|
78
|
+
* Returns `false` for a malformed or invalid signature rather than throwing.
|
|
79
|
+
*/
|
|
80
|
+
declare function verifyMlDsa65(publicKey: MlDsa65PublicKey, message: Uint8Array, signature: MlDsa65Signature): boolean;
|
|
81
|
+
//#endregion
|
|
82
|
+
export { verifyMlDsa65 as n, Ed25519Signer as r, MlDsa65Signer as t };
|
|
83
|
+
//# sourceMappingURL=index-ByNNqY7S.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-ByNNqY7S.d.cts","names":[],"sources":["../src/signers/ed25519.ts","../src/signers/mlDsa65.ts"],"mappings":";;;;;AAgCA;;;;;;;;;;;;;;cAAa,aAAA,YAAyB,MAAA;EAAA;EAAM;EAE1C,SAAA,EAAW,OAAA,CAAQ,SAAA;IAAa,MAAA,EAAQ,mBAAA,CAAoB,OAAA;EAAA;EAAjD;;;;;;cASC,SAAA,EAAW,UAAA;EAAX;EAAA,OASL,QAAA,CAAS,IAAA,EAAM,UAAA,GAAa,aAAA;EAAb;EAQhB,IAAA,CACJ,OAAA,EAAS,UAAA,GACR,OAAA,CAAQ,OAAA,CAAQ,SAAA;IAAa,MAAA,EAAQ,mBAAA,CAAoB,OAAA;EAAA;AAAA;;;;AA9B9D;;;;;;;;;;;;;;;;;;cCIa,aAAA,YAAyB,MAAA;EAAA;EDFzB;EAAA,SCIF,SAAA,EAAW,OAAA,CAClB,SAAA;IACE,MAAA,EAAQ,mBAAA,CAAoB,OAAA;EAAA;EAAA,QAKzB,WAAA;;SAcA,QAAA,CACL,IAAA,EAAM,UAAA,EACN,OAAA;IAAA,SAAoB,aAAA;EAAA,IACnB,aAAA;EDVmB;ECuBhB,IAAA,CAAK,OAAA,EAAS,UAAA,GAAa,OAAA,CAAQ,SAAA;AAAA;;;;;;iBAkB3B,aAAA,CACd,SAAA,EAAW,gBAAA,EACX,OAAA,EAAS,UAAA,EACT,SAAA,EAAW,gBAAA"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { Dt as Transport, Et as RpcParams, Ot as TransportRequestOptions, R as RpcErrorData, Tt as UnsupportedRpcValue } from "./client-JixxskeH.js";
|
|
2
|
+
|
|
3
|
+
//#region src/transport/http.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Error thrown when a JSON-RPC response contains an `error` object.
|
|
6
|
+
*
|
|
7
|
+
* Malformed envelopes throw `RpcResponseError`, preserving the raw reply.
|
|
8
|
+
*/
|
|
9
|
+
declare class JsonRpcError extends Error {
|
|
10
|
+
/** JSON-RPC numeric error code. */
|
|
11
|
+
code: number;
|
|
12
|
+
/** Optional JSON-RPC error data returned by the gateway. */
|
|
13
|
+
data?: unknown;
|
|
14
|
+
/** JSON-RPC method associated with the failed request, when known. */
|
|
15
|
+
method?: string;
|
|
16
|
+
/** Complete original JSON-RPC error object, including additive fields. */
|
|
17
|
+
readonly raw: unknown;
|
|
18
|
+
readonly rpcMessage: string;
|
|
19
|
+
constructor(code: number, message: string, data?: unknown, method?: string, raw?: unknown);
|
|
20
|
+
}
|
|
21
|
+
/** Error thrown when an HTTP response has a non-successful status. */
|
|
22
|
+
declare class HttpResponseError extends Error {
|
|
23
|
+
readonly endpoint?: string | undefined;
|
|
24
|
+
readonly method?: string | undefined;
|
|
25
|
+
readonly status: number;
|
|
26
|
+
readonly statusText: string;
|
|
27
|
+
constructor(status: number, statusText: string, endpoint?: string | undefined, method?: string | undefined);
|
|
28
|
+
}
|
|
29
|
+
/** Network failure with sanitized endpoint and method context. */
|
|
30
|
+
declare class HttpRequestError extends TypeError {
|
|
31
|
+
readonly endpoint: string;
|
|
32
|
+
readonly method: string;
|
|
33
|
+
constructor(endpoint: string, method: string, cause: unknown);
|
|
34
|
+
}
|
|
35
|
+
/** Limits for opt-in HTTP JSON-RPC batching. */
|
|
36
|
+
interface HttpBatchOptions {
|
|
37
|
+
/** Maximum calls per HTTP request (1–1,000). Defaults to 100. Full batches send immediately. */
|
|
38
|
+
maxSize?: number;
|
|
39
|
+
/** Scheduling window in milliseconds (0–2,147,483,647). Defaults to a zero-delay timer. */
|
|
40
|
+
waitMs?: number;
|
|
41
|
+
}
|
|
42
|
+
/** Options for {@link HttpTransport}. */
|
|
43
|
+
interface HttpTransportOptions {
|
|
44
|
+
/** Additional HTTP headers to include with each JSON-RPC request. */
|
|
45
|
+
headers?: Record<string, string>;
|
|
46
|
+
/** Custom `fetch` implementation, useful for tests or non-standard runtimes. */
|
|
47
|
+
fetch?: typeof fetch;
|
|
48
|
+
/** Abort the request, including response-body reading, with a TimeoutError after this many milliseconds. */
|
|
49
|
+
timeoutMs?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Group concurrent calls into JSON-RPC arrays. Disabled by default.
|
|
52
|
+
* `true` uses 100 calls and a zero-delay scheduling window.
|
|
53
|
+
*
|
|
54
|
+
* Requires an endpoint that accepts JSON-RPC arrays. Even one queued call
|
|
55
|
+
* is sent as an array. Responses are matched by ID, not response order.
|
|
56
|
+
* RPC errors reject their own calls; HTTP failures affect the whole batch.
|
|
57
|
+
* No retries or fallback requests are made, including for submissions.
|
|
58
|
+
*
|
|
59
|
+
* Batching provides no shared snapshot, execution order, or atomicity.
|
|
60
|
+
* Await dependent calls separately. Slow calls can delay other results.
|
|
61
|
+
* Cancelling one call rejects it without cancelling its peers; cancelling
|
|
62
|
+
* every call aborts the HTTP request. Cancellation cannot undo submitted work.
|
|
63
|
+
* `timeoutMs` starts at dispatch and covers reading the response body;
|
|
64
|
+
* the scheduling window is additional to that timeout.
|
|
65
|
+
*/
|
|
66
|
+
batch?: boolean | HttpBatchOptions;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* JSON-RPC 2.0 transport over HTTP POST.
|
|
70
|
+
*
|
|
71
|
+
* `HttpTransport` handles request IDs, JSON-RPC envelopes, optional custom
|
|
72
|
+
* headers, optional timeout cancellation, and conversion of JSON-RPC error
|
|
73
|
+
* responses into {@link JsonRpcError}.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* import { HttpTransport } from "@thruputchain/client/transport";
|
|
78
|
+
*
|
|
79
|
+
* const transport = new HttpTransport("http://127.0.0.1:9545", {
|
|
80
|
+
* timeoutMs: 10_000,
|
|
81
|
+
* });
|
|
82
|
+
*
|
|
83
|
+
* const tip = await transport.request("getChainTip");
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
declare class HttpTransport implements Transport {
|
|
87
|
+
#private;
|
|
88
|
+
/** Create an HTTP transport for a Thruput JSON-RPC endpoint URL. */
|
|
89
|
+
constructor(url: string, options?: HttpTransportOptions);
|
|
90
|
+
/** Send one JSON-RPC request and return the decoded `result` value. */
|
|
91
|
+
request<T = unknown>(method: string, params?: RpcParams, options?: TransportRequestOptions): Promise<T>;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/transport/mock.d.ts
|
|
95
|
+
/** Deterministic native RPC transport for examples; it does not execute contract code. */
|
|
96
|
+
declare class MockTransport implements Transport {
|
|
97
|
+
#private;
|
|
98
|
+
request<T = unknown>(method: string, params?: RpcParams, options?: TransportRequestOptions): Promise<T>;
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/transport/readError.d.ts
|
|
102
|
+
/** Infrastructure failure classification; retry budgets remain with the caller. */
|
|
103
|
+
type ReadErrorKind = "transient" | "permanent" | "cancelled" | "unknown";
|
|
104
|
+
/**
|
|
105
|
+
* Classify an infrastructure read failure without replacing the original error.
|
|
106
|
+
*
|
|
107
|
+
* Pass the caller's signal to distinguish explicit cancellation from a transport
|
|
108
|
+
* timeout. Plain Error wrappers are inspected through their causes; domain errors
|
|
109
|
+
* and unrecognized failures remain unknown. A bare TypeError is not evidence of
|
|
110
|
+
* a network failure. Custom transports should use HttpRequestError for that case.
|
|
111
|
+
* Transaction-not-found remains operation-specific rather than a general retry.
|
|
112
|
+
* This classification never authorizes transaction resubmission.
|
|
113
|
+
*/
|
|
114
|
+
declare function classifyReadError(error: unknown, options?: TransportRequestOptions): ReadErrorKind;
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/transport/txInvalidDetail.d.ts
|
|
117
|
+
/** A validated native admission bound violation. Unknown details remain on the raw error. */
|
|
118
|
+
type TxInvalidDetail = Exclude<NonNullable<Extract<RpcErrorData, {
|
|
119
|
+
kind: "transactionInvalid";
|
|
120
|
+
}>["detail"]>, UnsupportedRpcValue>;
|
|
121
|
+
/** Read known transaction-bound evidence without inferring retry permission. */
|
|
122
|
+
declare function txInvalidDetail(error: unknown): TxInvalidDetail | null;
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/rpc/errors.d.ts
|
|
125
|
+
/** Native causes. Codes alone never grant write retry permission. */
|
|
126
|
+
declare const NativeRpcErrorCode: {
|
|
127
|
+
readonly BackendDataInvalid: -32054;
|
|
128
|
+
readonly BackendTimeout: -32051;
|
|
129
|
+
readonly BackendUnavailable: -32050;
|
|
130
|
+
readonly ContractArtifactUnavailable: -32014;
|
|
131
|
+
readonly FundingAttemptStopped: -32030;
|
|
132
|
+
readonly HistoryUnavailable: -32013;
|
|
133
|
+
readonly InvalidParams: -32602;
|
|
134
|
+
readonly LocalFundingUnresolved: -32031;
|
|
135
|
+
readonly Overloaded: -32053;
|
|
136
|
+
readonly StateHeightUnavailable: -32012;
|
|
137
|
+
readonly TransactionInvalid: -32000;
|
|
138
|
+
readonly TransactionRejected: -32001;
|
|
139
|
+
};
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/rpc/errorReader.d.ts
|
|
142
|
+
type DecodedRpcError = {
|
|
143
|
+
classification: "known";
|
|
144
|
+
data: RpcErrorData;
|
|
145
|
+
raw: unknown;
|
|
146
|
+
} | {
|
|
147
|
+
classification: "unclassified";
|
|
148
|
+
raw: unknown;
|
|
149
|
+
};
|
|
150
|
+
/** A native RPC failure retains the transport error and a conservative typed interpretation. */
|
|
151
|
+
declare class NativeRpcError extends JsonRpcError {
|
|
152
|
+
readonly decoded: DecodedRpcError;
|
|
153
|
+
constructor(error: JsonRpcError, method: string, expectedTransactionHash?: Uint8Array);
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/transport/responseError.d.ts
|
|
157
|
+
/** Malformed JSON-RPC reply after dispatch. Raw data is retained; write outcome is unknown. */
|
|
158
|
+
declare class RpcResponseError extends Error {
|
|
159
|
+
readonly raw: unknown;
|
|
160
|
+
constructor(message: string, raw: unknown);
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
export { TxInvalidDetail as a, classifyReadError as c, HttpRequestError as d, HttpResponseError as f, JsonRpcError as h, NativeRpcErrorCode as i, MockTransport as l, HttpTransportOptions as m, DecodedRpcError as n, txInvalidDetail as o, HttpTransport as p, NativeRpcError as r, ReadErrorKind as s, RpcResponseError as t, HttpBatchOptions as u };
|
|
164
|
+
//# sourceMappingURL=index-ByvV2UF6.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-ByvV2UF6.d.ts","names":[],"sources":["../src/transport/http.ts","../src/transport/mock.ts","../src/transport/readError.ts","../src/transport/txInvalidDetail.ts","../src/rpc/errors.ts","../src/rpc/errorReader.ts","../src/transport/responseError.ts"],"mappings":";;;;;AASA;;;cAAa,YAAA,SAAqB,KAAK;EAAL;EAEhC,IAAA;EAGA;EAAA,IAAA;EAMS;EAHT,MAAA;;WAGS,GAAA;EAAA,SACA,UAAA;cAGP,IAAA,UACA,OAAA,UACA,IAAA,YACA,MAAA,WACA,GAAA;AAAA;;cAiBS,iBAAA,SAA0B,KAAK;EAAA,SAO/B,QAAA;EAAA,SACA,MAAA;EAAA,SAPF,MAAA;EAAA,SACA,UAAA;cAGP,MAAA,UACA,UAAA,UACS,QAAA,uBACA,MAAA;AAAA;;cAYA,gBAAA,SAAyB,SAAS;EAAA,SAElC,QAAA;EAAA,SACA,MAAA;cADA,QAAA,UACA,MAAA,UACT,KAAA;AAAA;;UAQa,gBAAA;EAxBJ;EA0BX,OAAA;EA1B0B;EA4B1B,MAAM;AAAA;;UAIS,oBAAA;EApBqB;EAsBpC,OAAA,GAAU,MAAA;EAnBC;EAsBX,KAAA,UAAe,KAAA;EAvBJ;EA0BX,SAAA;EAxBE;;AAAc;AAQlB;;;;AAIQ;AAIR;;;;;;;;EA0BE,KAAA,aAAkB,gBAAA;AAAA;;;;;;;AAAgB;AAqBpC;;;;;;;;;;;cAAa,aAAA,YAAyB,SAAA;EAAA;;cASxB,GAAA,UAAa,OAAA,GAAS,oBAAA;EAAA;EAsB5B,OAAA,cACJ,MAAA,UACA,MAAA,GAAS,SAAA,EACT,OAAA,GAAS,uBAAA,GACR,OAAA,CAAQ,CAAA;AAAA;;;;cCtIA,aAAA,YAAyB,SAAA;EAAA;EAG9B,OAAA,cACJ,MAAA,UACA,MAAA,GAAQ,SAAA,EACR,OAAA,GAAU,uBAAA,GACT,OAAA,CAAQ,CAAA;AAAA;;;;KCnCD,aAAA;AFIZ;;;;;;;;;;AAAA,iBEQgB,iBAAA,CACd,KAAA,WACA,OAAA,GAAS,uBAAA,GACR,aAAa;;;;KChBJ,eAAA,GAAkB,OAAA,CAC5B,WAAA,CAAY,OAAA,CAAQ,YAAA;EAAgB,IAAA;AAAA,eACpC,mBAAA;;iBAGc,eAAA,CAAgB,KAAA,YAAiB,eAAe;;;;cCPnD,kBAAA;EAAA;;;;;;;;;;;;;;;KCID,eAAA;EACN,cAAA;EAAyB,IAAA,EAAM,YAAY;EAAE,GAAA;AAAA;EAC7C,cAAA;EAAgC,GAAA;AAAA;;cAqGzB,cAAA,SAAuB,YAAA;EAAA,SACzB,OAAA,EAAS,eAAA;cAEhB,KAAA,EAAO,YAAA,EACP,MAAA,UACA,uBAAA,GAA0B,UAAA;AAAA;;;;cCjHjB,gBAAA,SAAyB,KAAK;EAAA,SAG9B,GAAA;cADT,OAAA,UACS,GAAA;AAAA"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { A as ThruputClient, Ft as ContractTypeDef, Ot as ContractSpec, Pt as ContractType, l as ContractMethod, y as ContractViewOptions } from "./readViews-DJyqc7im.cjs";
|
|
2
|
+
import { Calldata, Contract, ContractAddress, Invocation, SHA256Hash } from "@thruputchain/protocol";
|
|
3
|
+
import { FixedArray, FixedBytes as FixedBytes$1, XdrCodec, fixedArray, fixedBytes } from "@thruputchain/xdr";
|
|
4
|
+
|
|
5
|
+
//#region src/contract/encode.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Resolve a contract-spec type into the XDR/CXS codec used to encode values.
|
|
8
|
+
*
|
|
9
|
+
* Pass `namedCodecs` when resolving named structs, enums, or unions from a
|
|
10
|
+
* contract spec. Build that map with {@link buildNamedCodecs}.
|
|
11
|
+
*/
|
|
12
|
+
declare function resolveCodec(ty: ContractType, namedCodecs?: Record<string, XdrCodec<unknown>>): XdrCodec<unknown>;
|
|
13
|
+
/**
|
|
14
|
+
* Encode method arguments into contract calldata using a contract spec.
|
|
15
|
+
*
|
|
16
|
+
* Use this when constructing invocations from a spec without generated
|
|
17
|
+
* TypeScript bindings. Generated descriptors use their own resolved codecs.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const namedCodecs = buildNamedCodecs(spec.type_defs);
|
|
22
|
+
* const calldata = encodeCalldata(
|
|
23
|
+
* spec,
|
|
24
|
+
* "Counter",
|
|
25
|
+
* "increment",
|
|
26
|
+
* [1n],
|
|
27
|
+
* namedCodecs,
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare function encodeCalldata(spec: ContractSpec, interfaceName: string, methodName: string, args: unknown[], namedCodecs: Record<string, XdrCodec<unknown>>): Calldata;
|
|
32
|
+
/**
|
|
33
|
+
* Decode contract calldata into an object keyed by argument name.
|
|
34
|
+
*
|
|
35
|
+
* This is primarily useful for tooling, tests, and debugging generated
|
|
36
|
+
* invocations.
|
|
37
|
+
*/
|
|
38
|
+
declare function decodeCalldata(spec: ContractSpec, interfaceName: string, methodName: string, data: Uint8Array, namedCodecs: Record<string, XdrCodec<unknown>>): Record<string, unknown>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/contract/specMethod.d.ts
|
|
41
|
+
/** A declared exception decoded from a spec without generated value types. */
|
|
42
|
+
interface SpecDeclaredException {
|
|
43
|
+
kind: "declared";
|
|
44
|
+
selector: bigint;
|
|
45
|
+
name: string | null;
|
|
46
|
+
value: unknown;
|
|
47
|
+
}
|
|
48
|
+
/** A call interpreted using the supplied spec, not evidence of code execution. */
|
|
49
|
+
interface SpecDecodedCall {
|
|
50
|
+
interfaceName: string;
|
|
51
|
+
interfaceVersion: string;
|
|
52
|
+
methodName: string;
|
|
53
|
+
args: Record<string, unknown> | undefined;
|
|
54
|
+
method: ContractMethod<Record<string, unknown> | void, unknown, SpecDeclaredException>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Decode a selector and arguments with the generated-binding codecs.
|
|
58
|
+
* Unknown selectors return null; malformed known inputs throw. The caller must
|
|
59
|
+
* establish the spec's identity. A current spec does not prove historical code.
|
|
60
|
+
*/
|
|
61
|
+
declare function createContractCallDecoder(spec: ContractSpec): (invocation: Pick<Invocation, "entrypoint" | "calldata">) => SpecDecodedCall | null;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/contract/codegen.d.ts
|
|
64
|
+
/**
|
|
65
|
+
* Build codecs for named contract-spec types.
|
|
66
|
+
*
|
|
67
|
+
* The returned map is required by {@link encodeCalldata},
|
|
68
|
+
* {@link decodeCalldata}, and {@link resolveCodec} whenever a method argument
|
|
69
|
+
* references a named struct, enum, or union. It is keyed by
|
|
70
|
+
* {@link specIdKey} of each type's spec id.
|
|
71
|
+
*
|
|
72
|
+
* @throws If two definitions share a spec id.
|
|
73
|
+
*/
|
|
74
|
+
declare function buildNamedCodecs(typeDefs: ContractTypeDef[]): Record<string, XdrCodec<unknown>>;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/contract/hash.d.ts
|
|
77
|
+
/**
|
|
78
|
+
* Return the network identity of a protocol contract.
|
|
79
|
+
*
|
|
80
|
+
* The hash covers the canonical encoded `Contract`, including its type and
|
|
81
|
+
* payload framing. Hashing only the raw artifact bytes produces a different
|
|
82
|
+
* value and therefore a different derived address.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* import {
|
|
87
|
+
* deriveContractAddress,
|
|
88
|
+
* hashContract,
|
|
89
|
+
* } from "@thruputchain/client";
|
|
90
|
+
*
|
|
91
|
+
* const contractHash = hashContract(contract);
|
|
92
|
+
* const address = deriveContractAddress(wallet, deploymentNonce, contractHash);
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function hashContract(contract: Contract): SHA256Hash;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/derivation/contractAddress.d.ts
|
|
98
|
+
/**
|
|
99
|
+
* The on-chain address a deployment produces:
|
|
100
|
+
* `sha256(txs(ContractDeploymentHashPreimage))` over the deployer, nonce, and
|
|
101
|
+
* contract hash.
|
|
102
|
+
*/
|
|
103
|
+
declare function deriveContractAddress(deployer: ContractAddress, nonce: SHA256Hash, contractHash: SHA256Hash): ContractAddress;
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/contract/errors.d.ts
|
|
106
|
+
/** Error raised when contract bytes do not match their declared ABI type. */
|
|
107
|
+
declare class ContractDecodeError extends Error {
|
|
108
|
+
constructor(message: string, options?: ErrorOptions);
|
|
109
|
+
}
|
|
110
|
+
/** Retrieved bytes or response metadata failed identity/canonical validation. */
|
|
111
|
+
declare class ContractVerificationError extends Error {
|
|
112
|
+
constructor(message: string, options?: ErrorOptions);
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/contract/signedToken.d.ts
|
|
116
|
+
declare const signedTokenPreimageBrand: unique symbol;
|
|
117
|
+
/**
|
|
118
|
+
* A signed auth token as it appears in contract arguments and return values.
|
|
119
|
+
*
|
|
120
|
+
* On the wire a token occupies no calldata bytes: the runtime passes its
|
|
121
|
+
* handle out of band, and only contracts can mint or consume one. A client
|
|
122
|
+
* therefore only ever sees a placeholder, which this type is. `TPreimage`
|
|
123
|
+
* records the token's declared preimage type for documentation; no preimage
|
|
124
|
+
* is ever available off chain.
|
|
125
|
+
*/
|
|
126
|
+
interface SignedToken<TPreimage = unknown> {
|
|
127
|
+
readonly kind: "signedToken";
|
|
128
|
+
readonly [signedTokenPreimageBrand]?: TPreimage;
|
|
129
|
+
}
|
|
130
|
+
/** The placeholder standing in for a signed auth token. */
|
|
131
|
+
declare function signedToken<TPreimage = unknown>(): SignedToken<TPreimage>;
|
|
132
|
+
/** Whether `value` is a signed-token placeholder. */
|
|
133
|
+
declare function isSignedToken(value: unknown): value is SignedToken;
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/contract/instance.d.ts
|
|
136
|
+
/** A method descriptor with address/client defaults bound for reads and calls. */
|
|
137
|
+
type BoundContractMethod<A, R, E> = Omit<ContractMethod<A, R, E>, "view" | "viewOutcome" | "viewRequest" | "call"> & {
|
|
138
|
+
viewRequest(options: Omit<Parameters<ContractMethod<A, R, E>["viewRequest"]>[0], "address">): ReturnType<ContractMethod<A, R, E>["viewRequest"]>;
|
|
139
|
+
view(options: Omit<ContractViewOptions<A>, "client" | "address">): ReturnType<ContractMethod<A, R, E>["view"]>;
|
|
140
|
+
viewOutcome(options: Omit<ContractViewOptions<A>, "client" | "address">): ReturnType<ContractMethod<A, R, E>["viewOutcome"]>;
|
|
141
|
+
call(options: Omit<Parameters<ContractMethod<A, R, E>["call"]>[0], "address">): ReturnType<ContractMethod<A, R, E>["call"]>;
|
|
142
|
+
};
|
|
143
|
+
/** Bound methods inferred from a generated interface object. */
|
|
144
|
+
type ContractInstance<T> = { [K in keyof T]: T[K] extends ContractMethod<infer A, infer R, infer E> ? BoundContractMethod<A, R, E> : never };
|
|
145
|
+
/**
|
|
146
|
+
* Bind a generated interface to an address and public client.
|
|
147
|
+
* Views preserve heights and events and accept cancellation and minimum-height
|
|
148
|
+
* constraints. A minimum height is a freshness floor; use readViews when several
|
|
149
|
+
* results must come from the same snapshot.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const token = getContract({ binding: ERC20.v0_1, address, client });
|
|
154
|
+
* const balance = await token.getBalanceOf.view({ args: { addr: owner }, signal });
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
declare function getContract<T extends Record<string, ContractMethod<any, unknown, unknown>>>(options: {
|
|
158
|
+
binding: T;
|
|
159
|
+
address: ContractAddress;
|
|
160
|
+
client: Pick<ThruputClient, "simulateInvocation">;
|
|
161
|
+
}): ContractInstance<T>;
|
|
162
|
+
//#endregion
|
|
163
|
+
export { SpecDecodedCall as _, BoundContractMethod as a, encodeCalldata as b, SignedToken as c, ContractDecodeError as d, ContractVerificationError as f, SpecDeclaredException as g, buildNamedCodecs as h, fixedBytes as i, isSignedToken as l, hashContract as m, FixedBytes$1 as n, ContractInstance as o, deriveContractAddress as p, fixedArray as r, getContract as s, FixedArray as t, signedToken as u, createContractCallDecoder as v, resolveCodec as x, decodeCalldata as y };
|
|
164
|
+
//# sourceMappingURL=index-CG2WRtGa.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CG2WRtGa.d.cts","names":[],"sources":["../src/contract/encode.ts","../src/contract/specMethod.ts","../src/contract/codegen.ts","../src/contract/hash.ts","../src/derivation/contractAddress.ts","../src/contract/errors.ts","../src/contract/signedToken.ts","../src/contract/instance.ts"],"mappings":";;;;;;AAuKA;;;;;iBAAgB,YAAA,CACd,EAAA,EAAI,YAAA,EACJ,WAAA,GAAc,MAAA,SAAe,QAAA,aAC5B,QAAA;;;;;;;;;;;AAAQ;AAoKX;;;;;;;iBAAgB,cAAA,CACd,IAAA,EAAM,YAAA,EACN,aAAA,UACA,UAAA,UACA,IAAA,aACA,WAAA,EAAa,MAAA,SAAe,QAAA,aAC3B,QAAA;;;;;;;iBAwBa,cAAA,CACd,IAAA,EAAM,YAAA,EACN,aAAA,UACA,UAAA,UACA,IAAA,EAAM,UAAA,EACN,WAAA,EAAa,MAAA,SAAe,QAAA,aAC3B,MAAA;;;;UCtWc,qBAAA;EACf,IAAA;EACA,QAAA;EACA,IAAA;EACA,KAAA;AAAA;;UAIe,eAAA;EACf,aAAA;EACA,gBAAA;EACA,UAAA;EACA,IAAA,EAAM,MAAA;EACN,MAAA,EAAQ,cAAA,CACN,MAAA,mCAEA,qBAAA;AAAA;;;;;AD8IO;iBCrIK,yBAAA,CACd,IAAA,EAAM,YAAA,IAEN,UAAA,EAAY,IAAA,CAAK,UAAA,iCACd,eAAA;;;;;;;AD8HL;;;;;;iBE9IgB,gBAAA,CACd,QAAA,EAAU,eAAA,KACT,MAAA,SAAe,QAAA;;;;;;;;AF4IlB;;;;;;;;;;;;;iBGjJgB,YAAA,CAAa,QAAA,EAAU,QAAA,GAAW,UAAU;;;;;;;;iBCb5C,qBAAA,CACd,QAAA,EAAU,eAAA,EACV,KAAA,EAAO,UAAA,EACP,YAAA,EAAc,UAAA,GACb,eAAA;;;;cCZU,mBAAA,SAA4B,KAAK;cAChC,OAAA,UAAiB,OAAA,GAAU,YAAA;AAAA;;cAO5B,yBAAA,SAAkC,KAAK;cACtC,OAAA,UAAiB,OAAA,GAAU,YAAA;AAAA;;;cCR3B,wBAAA;;;;;ANqKd;;;;;UM1JiB,WAAA;EAAA,SACN,IAAA;EAAA,UACC,wBAAwB,IAAI,SAAA;AAAA;;iBAMxB,WAAA,yBAAoC,WAAW,CAAC,SAAA;;iBAKhD,aAAA,CAAc,KAAA,YAAiB,KAAA,IAAS,WAAW;;;;KCrBvD,mBAAA,YAA+B,IAAA,CACzC,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA;EAGrB,WAAA,CACE,OAAA,EAAS,IAAA,CACP,UAAA,CAAW,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA,mCAGjC,UAAA,CAAW,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA;EACnC,IAAA,CACE,OAAA,EAAS,IAAA,CAAK,mBAAA,CAAoB,CAAA,2BACjC,UAAA,CAAW,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA;EACnC,WAAA,CACE,OAAA,EAAS,IAAA,CAAK,mBAAA,CAAoB,CAAA,2BACjC,UAAA,CAAW,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA;EACnC,IAAA,CACE,OAAA,EAAS,IAAA,CAAK,UAAA,CAAW,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA,4BAC7C,UAAA,CAAW,cAAA,CAAe,CAAA,EAAG,CAAA,EAAG,CAAA;AAAA;;KAIzB,gBAAA,oBACE,CAAA,GAAI,CAAA,CAAE,CAAA,UAAW,cAAA,8BACzB,mBAAA,CAAoB,CAAA,EAAG,CAAA,EAAG,CAAA;;;;;;;;;AP6IrB;AAoKX;;;iBOjSgB,WAAA,WAEJ,MAAA,SAAe,cAAA,0BACzB,OAAA;EACA,OAAA,EAAS,CAAA;EACT,OAAA,EAAS,eAAA;EACT,MAAA,EAAQ,IAAA,CAAK,aAAA;AAAA,IACX,gBAAA,CAAiB,CAAA"}
|