@thruputchain/client 0.28.0 → 0.30.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 +113 -18
- package/dist/actions-B7htk5FS.js +698 -0
- package/dist/actions-B7htk5FS.js.map +1 -0
- package/dist/actions-CIaI049y.cjs +788 -0
- package/dist/actions-CIaI049y.cjs.map +1 -0
- package/dist/actions.cjs +5 -8
- package/dist/actions.d.cts +4 -4
- package/dist/actions.d.ts +4 -4
- package/dist/actions.js +3 -3
- package/dist/{contract-D77iA2iY.js → contract-BOlNskwd.js} +235 -87
- package/dist/contract-BOlNskwd.js.map +1 -0
- package/dist/{contract-DSu2UPPm.cjs → contract-D_vxUudr.cjs} +281 -109
- package/dist/contract-D_vxUudr.cjs.map +1 -0
- package/dist/contract.cjs +1 -5
- package/dist/contract.d.cts +3 -4
- package/dist/contract.d.ts +3 -4
- package/dist/contract.js +2 -2
- package/dist/contracts.cjs +5 -5
- package/dist/contracts.d.cts +6 -74
- package/dist/contracts.d.cts.map +1 -1
- package/dist/contracts.d.ts +6 -74
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +4 -4
- package/dist/decimal-BX7abv5J.cjs +171 -0
- package/dist/decimal-BX7abv5J.cjs.map +1 -0
- package/dist/decimal-CoHOISys.js +124 -0
- package/dist/decimal-CoHOISys.js.map +1 -0
- package/dist/default_wallet-DkqsCa5C.d.ts +90 -0
- package/dist/default_wallet-DkqsCa5C.d.ts.map +1 -0
- package/dist/default_wallet-Dqs4_iTD.d.cts +90 -0
- package/dist/default_wallet-Dqs4_iTD.d.cts.map +1 -0
- package/dist/{dev_wallet-CAbOSrak.cjs → dev_wallet-BVChhV6j.cjs} +85 -6
- package/dist/dev_wallet-BVChhV6j.cjs.map +1 -0
- package/dist/{dev_wallet-CU3RpQLm.js → dev_wallet-D9LuPZ-h.js} +84 -5
- package/dist/dev_wallet-D9LuPZ-h.js.map +1 -0
- package/dist/{execution-J5jkXhV1.d.cts → execution-pSt6k620.d.cts} +23 -50
- package/dist/execution-pSt6k620.d.cts.map +1 -0
- package/dist/{execution-XJ0iwFaX.d.ts → execution-uiuFPV0d.d.ts} +23 -50
- package/dist/execution-uiuFPV0d.d.ts.map +1 -0
- package/dist/{hex-DIcaALXL.js → hex-B8D-jBgz.js} +2 -2
- package/dist/{hex-DIcaALXL.js.map → hex-B8D-jBgz.js.map} +1 -1
- package/dist/{hex-DkGpiZ5e.cjs → hex-CSDZ9d6z.cjs} +2 -2
- package/dist/{hex-DkGpiZ5e.cjs.map → hex-CSDZ9d6z.cjs.map} +1 -1
- package/dist/{index-soFVQX9j.d.cts → index-B1efA-Y_.d.ts} +24 -21
- package/dist/index-B1efA-Y_.d.ts.map +1 -0
- package/dist/{index-C3HVRvQd.d.ts → index-BGmH_Sm7.d.cts} +12 -62
- package/dist/index-BGmH_Sm7.d.cts.map +1 -0
- package/dist/{index-DeS1S0m-.d.ts → index-BmOG68Hd.d.ts} +39 -17
- package/dist/index-BmOG68Hd.d.ts.map +1 -0
- package/dist/{index-B5KqSHeL.d.cts → index-BsvYcU_Y.d.cts} +2 -2
- package/dist/{index-B5KqSHeL.d.cts.map → index-BsvYcU_Y.d.cts.map} +1 -1
- package/dist/{index-CtjZ61tl.d.cts → index-CG-q0j9w.d.ts} +12 -62
- package/dist/index-CG-q0j9w.d.ts.map +1 -0
- package/dist/index-CPtBvHE8.d.ts +145 -0
- package/dist/index-CPtBvHE8.d.ts.map +1 -0
- package/dist/{index-DfmDUk5Y.d.ts → index-DBKsOzCN.d.cts} +24 -21
- package/dist/index-DBKsOzCN.d.cts.map +1 -0
- package/dist/{index-Bb01ytjJ.d.ts → index-Dtv_GV6M.d.ts} +40 -11
- package/dist/index-Dtv_GV6M.d.ts.map +1 -0
- package/dist/{index-CtjWsAXV.d.cts → index-JKm4TBlY.d.cts} +40 -11
- package/dist/index-JKm4TBlY.d.cts.map +1 -0
- package/dist/index-Xre-0Jka.d.cts +145 -0
- package/dist/index-Xre-0Jka.d.cts.map +1 -0
- package/dist/{index-CedOvhGY.d.cts → index-ozfbEuYI.d.cts} +39 -17
- package/dist/index-ozfbEuYI.d.cts.map +1 -0
- package/dist/index.cjs +40 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -17
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +11 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -38
- package/dist/index.js.map +1 -1
- package/dist/provider.cjs +3 -3
- package/dist/provider.cjs.map +1 -1
- package/dist/provider.d.cts +2 -1
- package/dist/provider.d.ts +2 -1
- package/dist/provider.js +3 -3
- package/dist/provider.js.map +1 -1
- package/dist/{codec-Bxlt1gKO.js → readError-B3Rz7rgs.js} +359 -56
- package/dist/readError-B3Rz7rgs.js.map +1 -0
- package/dist/{codec-BcK8ASsg.cjs → readError-COcEDNoZ.cjs} +363 -96
- package/dist/readError-COcEDNoZ.cjs.map +1 -0
- package/dist/requestAirdrop-DBCOST2B.d.ts +1818 -0
- package/dist/requestAirdrop-DBCOST2B.d.ts.map +1 -0
- package/dist/requestAirdrop-T1eVn3l5.d.cts +1818 -0
- package/dist/requestAirdrop-T1eVn3l5.d.cts.map +1 -0
- package/dist/sendInvocation-185ZJrta.cjs +583 -0
- package/dist/sendInvocation-185ZJrta.cjs.map +1 -0
- package/dist/sendInvocation-DBaNWhr3.js +439 -0
- package/dist/sendInvocation-DBaNWhr3.js.map +1 -0
- package/dist/signed-op.cjs +2 -2
- package/dist/signed-op.d.cts +2 -2
- package/dist/signed-op.d.ts +1 -1
- package/dist/signed-op.js +2 -2
- package/dist/{signedOp-DAucp6xg.cjs → signedOp-CVyeJ5ig.cjs} +3 -3
- package/dist/{signedOp-DAucp6xg.cjs.map → signedOp-CVyeJ5ig.cjs.map} +1 -1
- package/dist/{signedOp-DpmUpH-e.js → signedOp-D6WYZG9j.js} +3 -3
- package/dist/{signedOp-DpmUpH-e.js.map → signedOp-D6WYZG9j.js.map} +1 -1
- package/dist/{signed_op-_lR85dn2.cjs → signed_op-BBsDKOlD.cjs} +4 -4
- package/dist/{signed_op-_lR85dn2.cjs.map → signed_op-BBsDKOlD.cjs.map} +1 -1
- package/dist/{signed_op-zGq4eBo8.d.ts → signed_op-DHb4n2JO.d.cts} +3 -3
- package/dist/{signed_op-D2usgASc.d.cts.map → signed_op-DHb4n2JO.d.cts.map} +1 -1
- package/dist/{signed_op-D2usgASc.d.cts → signed_op-Dfa8WD0j.d.ts} +3 -3
- package/dist/{signed_op-zGq4eBo8.d.ts.map → signed_op-Dfa8WD0j.d.ts.map} +1 -1
- package/dist/{signed_op-CwN-_CXw.js → signed_op-h9X9-vBL.js} +3 -3
- package/dist/{signed_op-CwN-_CXw.js.map → signed_op-h9X9-vBL.js.map} +1 -1
- package/dist/transport-BhWZxHcz.cjs +528 -0
- package/dist/transport-BhWZxHcz.cjs.map +1 -0
- package/dist/transport-EyDYuibb.js +504 -0
- package/dist/transport-EyDYuibb.js.map +1 -0
- package/dist/transport.cjs +6 -13
- package/dist/transport.d.cts +3 -3
- package/dist/transport.d.ts +3 -3
- package/dist/transport.js +4 -4
- package/dist/types-VYjJcTip.d.cts +161 -0
- package/dist/types-VYjJcTip.d.cts.map +1 -0
- package/dist/types-VYjJcTip.d.ts +161 -0
- package/dist/types-VYjJcTip.d.ts.map +1 -0
- package/dist/{validation-eXATmgO0.js → validation-BLQ64Dfh.js} +3 -3
- package/dist/validation-BLQ64Dfh.js.map +1 -0
- package/dist/{validation-4w-vDGAi.cjs → validation-CZqtmMLJ.cjs} +3 -3
- package/dist/validation-CZqtmMLJ.cjs.map +1 -0
- package/dist/{wallet-BNKgOXrF.js → wallet-NlZiI4-3.js} +161 -77
- package/dist/wallet-NlZiI4-3.js.map +1 -0
- package/dist/{wallet-7R5M_7h4.cjs → wallet-UvyXtxh5.cjs} +161 -77
- package/dist/wallet-UvyXtxh5.cjs.map +1 -0
- package/dist/wallet.cjs +2 -8
- package/dist/wallet.d.cts +4 -3
- package/dist/wallet.d.ts +4 -3
- package/dist/wallet.js +3 -3
- package/package.json +5 -5
- package/dist/actions-B5-CjpEF.cjs +0 -513
- package/dist/actions-B5-CjpEF.cjs.map +0 -1
- package/dist/actions-C1SMLWO5.js +0 -430
- package/dist/actions-C1SMLWO5.js.map +0 -1
- package/dist/artifact-BM_MVzhL.d.cts +0 -35
- package/dist/artifact-BM_MVzhL.d.cts.map +0 -1
- package/dist/artifact-BM_MVzhL.d.ts +0 -35
- package/dist/artifact-BM_MVzhL.d.ts.map +0 -1
- package/dist/client-jOZxB8yW.d.cts +0 -798
- package/dist/client-jOZxB8yW.d.cts.map +0 -1
- package/dist/client-jOZxB8yW.d.ts +0 -798
- package/dist/client-jOZxB8yW.d.ts.map +0 -1
- package/dist/codec-BcK8ASsg.cjs.map +0 -1
- package/dist/codec-Bxlt1gKO.js.map +0 -1
- package/dist/contract-D77iA2iY.js.map +0 -1
- package/dist/contract-DSu2UPPm.cjs.map +0 -1
- package/dist/dev_wallet-CAbOSrak.cjs.map +0 -1
- package/dist/dev_wallet-CU3RpQLm.js.map +0 -1
- package/dist/execution-J5jkXhV1.d.cts.map +0 -1
- package/dist/execution-XJ0iwFaX.d.ts.map +0 -1
- package/dist/index-Bb01ytjJ.d.ts.map +0 -1
- package/dist/index-C3HVRvQd.d.ts.map +0 -1
- package/dist/index-CIHK7Ew9.d.cts +0 -303
- package/dist/index-CIHK7Ew9.d.cts.map +0 -1
- package/dist/index-CIHK7Ew9.d.ts +0 -303
- package/dist/index-CIHK7Ew9.d.ts.map +0 -1
- package/dist/index-CedOvhGY.d.cts.map +0 -1
- package/dist/index-CtjWsAXV.d.cts.map +0 -1
- package/dist/index-CtjZ61tl.d.cts.map +0 -1
- package/dist/index-DeS1S0m-.d.ts.map +0 -1
- package/dist/index-DfmDUk5Y.d.ts.map +0 -1
- package/dist/index-soFVQX9j.d.cts.map +0 -1
- package/dist/readError-CCVlmBhj.cjs +0 -624
- package/dist/readError-CCVlmBhj.cjs.map +0 -1
- package/dist/readError-D1dppovI.js +0 -571
- package/dist/readError-D1dppovI.js.map +0 -1
- package/dist/readViews-DbWELMMq.d.cts +0 -609
- package/dist/readViews-DbWELMMq.d.cts.map +0 -1
- package/dist/readViews-nV3jbpYc.d.ts +0 -609
- package/dist/readViews-nV3jbpYc.d.ts.map +0 -1
- package/dist/sendInvocation-Dsr9ij5P.cjs +0 -661
- package/dist/sendInvocation-Dsr9ij5P.cjs.map +0 -1
- package/dist/sendInvocation-tBmf8haQ.js +0 -505
- package/dist/sendInvocation-tBmf8haQ.js.map +0 -1
- package/dist/transport-5FPeNwuv.cjs +0 -279
- package/dist/transport-5FPeNwuv.cjs.map +0 -1
- package/dist/transport-IrhVlS4w.js +0 -261
- package/dist/transport-IrhVlS4w.js.map +0 -1
- package/dist/validation-4w-vDGAi.cjs.map +0 -1
- package/dist/validation-eXATmgO0.js.map +0 -1
- package/dist/wallet-7R5M_7h4.cjs.map +0 -1
- package/dist/wallet-BNKgOXrF.js.map +0 -1
|
@@ -1,609 +0,0 @@
|
|
|
1
|
-
import { $ as RpcInvocationOutput, A as RpcConfigLimits, Dt as RpcTransactionStatus, Et as RpcTransactionRefPage, Ft as TransportRequestOptions, G as RpcEventPage, H as RpcEmittedEvent, I as RpcContractRejectCode, J as RpcFundingSubmission, K as RpcExecutionConfig, M as RpcConflictDiagnostic, O as RpcChainConfig, Pt as Transport, T as RpcBlockInfo, Tt as RpcTransactionRef, W as RpcEventFilter, X as RpcIdentifiedEvent, Y as RpcHistoryStart, Z as RpcInvocation, _t as RpcSimulationResult, a as RpcMethod, bt as RpcStorageItem, ct as RpcRecentAttemptFailure, d as RpcAirdropExecution, ft as RpcSchedulerError, g as RpcBalanceResult, gt as RpcSimulationBatchLimits, h as RpcAuthSigner, ht as RpcServerLimits, j as RpcConflictCode, k as RpcChainTip, kt as RpcVersionInfo, lt as RpcRegisteredAuthResult, m as RpcAuthConfiguration, nt as RpcNetworkInfo, ot as RpcPublicKey, q as RpcFailureCause, t as RpcClient, tt as RpcIterationOrder, u as RpcAirdropAttempt, ut as RpcRequests, vt as RpcSimulationResults, wt as RpcTransactionReceipt, xt as RpcStorageResult, yt as RpcStorageCosts } from "./client-jOZxB8yW.js";
|
|
2
|
-
import { AuthClaim, ContractAddress, ContractEntrypointID, GasAmount, Invocation, NetworkHash } from "@thruputchain/protocol";
|
|
3
|
-
import { XdrCodec } from "@thruputchain/xdr";
|
|
4
|
-
import { ContractArrayType, ContractEnumDef, ContractEnumVariant, ContractExceptionType, ContractField, ContractMethodEffect, ContractMethodEffect as ContractMethodEffect$1, ContractSpec as ContractSpec$1, ContractSpecId, ContractSpecId as ContractSpecId$1, ContractSpecInterface, ContractSpecMethod, ContractSpecString, ContractStructDef, ContractType as ContractType$1, ContractTypeDef as ContractTypeDef$1, ContractTypeDefKind as ContractTypeDefKind$1, ContractTypeKind as ContractTypeKind$1, ContractUnionCase, ContractUnionCaseKind as ContractUnionCaseKind$1, ContractUnionCaseType, ContractUnionDef, ContractVectorType } from "@thruputchain/contract-spec";
|
|
5
|
-
|
|
6
|
-
//#region src/types/rpc.d.ts
|
|
7
|
-
type AuthPublicKey = RpcPublicKey;
|
|
8
|
-
type AuthSigner = RpcAuthSigner;
|
|
9
|
-
type AddressAuthDataInfo = RpcAuthConfiguration;
|
|
10
|
-
type RegisteredAuthResult = RpcRegisteredAuthResult;
|
|
11
|
-
type NetworkInfo = RpcNetworkInfo;
|
|
12
|
-
type NetworkConfigParams = RpcConfigLimits;
|
|
13
|
-
type ChainConfig = RpcChainConfig;
|
|
14
|
-
type ExecutionConfig = RpcExecutionConfig;
|
|
15
|
-
type StorageCosts = RpcStorageCosts;
|
|
16
|
-
type SimulationBatchLimits = RpcSimulationBatchLimits;
|
|
17
|
-
type ServerLimits = RpcServerLimits;
|
|
18
|
-
type AirdropAttemptRequest = RpcRequests["faucet_requestAirdrop"];
|
|
19
|
-
type AirdropExecutionStatus = RpcAirdropExecution;
|
|
20
|
-
type AirdropPending = Extract<RpcAirdropAttempt, {
|
|
21
|
-
attemptStatus: "pending";
|
|
22
|
-
}>;
|
|
23
|
-
type AirdropSucceeded = Extract<RpcAirdropAttempt, {
|
|
24
|
-
attemptStatus: "succeeded";
|
|
25
|
-
}>;
|
|
26
|
-
type AirdropResponse = RpcAirdropAttempt;
|
|
27
|
-
type ChainTip = RpcChainTip;
|
|
28
|
-
type BalanceResponse = RpcBalanceResult;
|
|
29
|
-
type BlockInfo = RpcBlockInfo;
|
|
30
|
-
type VersionInfo = RpcVersionInfo;
|
|
31
|
-
/** Prepared descriptor reads retain .view conveniences while using native invocation shapes. */
|
|
32
|
-
type ViewCall = RpcInvocation;
|
|
33
|
-
type ViewRequest = RpcRequests["simulateInvocation"];
|
|
34
|
-
type ViewBatchRequest = RpcRequests["simulateInvocations"];
|
|
35
|
-
type ViewBatchResponse = RpcSimulationResults;
|
|
36
|
-
type ViewOutput = RpcInvocationOutput;
|
|
37
|
-
type ViewResponse = RpcSimulationResult;
|
|
38
|
-
type TransactionStatus = RpcTransactionStatus;
|
|
39
|
-
type SchedulerTransactionError = RpcSchedulerError;
|
|
40
|
-
type TransactionFailureCause = RpcFailureCause;
|
|
41
|
-
/** Best-effort failed-attempt evidence; it need not describe the current scheduler attempt. */
|
|
42
|
-
type RecentAttemptFailure = RpcRecentAttemptFailure;
|
|
43
|
-
type ContractRejectCode = RpcContractRejectCode;
|
|
44
|
-
type ConflictCode = RpcConflictCode;
|
|
45
|
-
type ConflictDiagnostic = RpcConflictDiagnostic;
|
|
46
|
-
type TransactionRef = RpcTransactionRef;
|
|
47
|
-
type TransactionRefPage = RpcTransactionRefPage;
|
|
48
|
-
type TransactionReceipt = RpcTransactionReceipt;
|
|
49
|
-
type EmittedEvent = RpcEmittedEvent;
|
|
50
|
-
type IdentifiedEvent = RpcIdentifiedEvent;
|
|
51
|
-
type EventPage = RpcEventPage;
|
|
52
|
-
type EventFilter = RpcEventFilter;
|
|
53
|
-
type HistoryStart = RpcHistoryStart;
|
|
54
|
-
type IterationOrder = RpcIterationOrder;
|
|
55
|
-
type EventQuery = RpcRequests["getEvents"];
|
|
56
|
-
type BlockTransactionQuery = RpcRequests["getTransactionsByBlock"];
|
|
57
|
-
type RootAddressTransactionQuery = RpcRequests["getTransactionsByRootAddress"];
|
|
58
|
-
type StorageItemInfo = RpcStorageItem;
|
|
59
|
-
type StorageItemRead = RpcStorageResult;
|
|
60
|
-
type FundAccountRequest = RpcRequests["dev_fundAccount"];
|
|
61
|
-
type FundAccountResponse = RpcFundingSubmission;
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/actions/public/waitForTransactionReceipt.d.ts
|
|
64
|
-
interface KnownCommitment {
|
|
65
|
-
readonly networkHash: Uint8Array;
|
|
66
|
-
readonly transactionHash: Uint8Array;
|
|
67
|
-
readonly blockHeight: bigint;
|
|
68
|
-
}
|
|
69
|
-
interface WaitForTransactionReceiptOptions {
|
|
70
|
-
signal?: AbortSignal;
|
|
71
|
-
/** Verified before each observation; omission uses discovery's validated network. */
|
|
72
|
-
expectedNetworkHash?: Uint8Array;
|
|
73
|
-
knownCommitment?: KnownCommitment;
|
|
74
|
-
/** Observed status, including optional advisory attempt diagnostics. Never retry permission. */
|
|
75
|
-
onStatus?: (status: TransactionStatus) => void;
|
|
76
|
-
timeoutMs?: number;
|
|
77
|
-
pollingIntervalMs?: number;
|
|
78
|
-
}
|
|
79
|
-
/** Observation stopped; neither timeout nor cancellation proves nonexecution. */
|
|
80
|
-
declare class TransactionReceiptObservationError extends Error {
|
|
81
|
-
readonly transactionHash: Uint8Array;
|
|
82
|
-
readonly knownCommitment: KnownCommitment | undefined;
|
|
83
|
-
readonly lastStatus: TransactionStatus | undefined;
|
|
84
|
-
constructor(transactionHash: Uint8Array, knownCommitment: KnownCommitment | undefined, lastStatus: TransactionStatus | undefined, cause: unknown);
|
|
85
|
-
}
|
|
86
|
-
declare class TransactionReceiptTimeoutError extends TransactionReceiptObservationError {
|
|
87
|
-
constructor(transactionHash: Uint8Array, knownCommitment: KnownCommitment | undefined, lastStatus: TransactionStatus | undefined, cause?: unknown);
|
|
88
|
-
}
|
|
89
|
-
/** Read-only capabilities used by commitment and receipt observation. */
|
|
90
|
-
type ReceiptObserver = Pick<RpcClient, "getNetworkInfo" | "getTransactionReceipt" | "getTransactionStatus" | "discovery" | "requireMethods">;
|
|
91
|
-
/** Return any committed receipt, including failed execution. Never sign or resubmit. */
|
|
92
|
-
declare function waitForTransactionReceipt(client: ReceiptObserver, transactionHash: Uint8Array, options?: WaitForTransactionReceiptOptions): Promise<TransactionReceipt>;
|
|
93
|
-
/** Observe commitment independently of receipt availability or execution success. */
|
|
94
|
-
declare function waitForCommitment(client: ReceiptObserver, transactionHash: Uint8Array, options?: WaitForTransactionReceiptOptions): Promise<KnownCommitment>;
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/actions/public/requestAirdrop.d.ts
|
|
97
|
-
interface RequestAirdropOptions {
|
|
98
|
-
readonly recipient: Uint8Array;
|
|
99
|
-
readonly clientNonce?: Uint8Array;
|
|
100
|
-
readonly expectedNetworkHash?: Uint8Array;
|
|
101
|
-
readonly timeoutMs?: number;
|
|
102
|
-
readonly signal?: AbortSignal;
|
|
103
|
-
}
|
|
104
|
-
/** Funding stopped without permission to call the faucet again. */
|
|
105
|
-
declare class FundingObservationError extends Error {
|
|
106
|
-
readonly request: AirdropAttemptRequest & {
|
|
107
|
-
networkHash: Uint8Array;
|
|
108
|
-
};
|
|
109
|
-
readonly lastResponse: AirdropResponse | undefined;
|
|
110
|
-
readonly knownCommitment?: KnownCommitment | undefined;
|
|
111
|
-
constructor(request: AirdropAttemptRequest & {
|
|
112
|
-
networkHash: Uint8Array;
|
|
113
|
-
}, lastResponse: AirdropResponse | undefined, cause: unknown, knownCommitment?: KnownCommitment | undefined);
|
|
114
|
-
}
|
|
115
|
-
/** Perform exactly one faucet call. It neither polls nor repeats an ambiguous attempt. */
|
|
116
|
-
declare function requestAirdropAttempt(client: Pick<RpcClient, "faucet_requestAirdrop">, request: AirdropAttemptRequest, options?: TransportRequestOptions): Promise<AirdropResponse>;
|
|
117
|
-
/** Call the faucet once, then observe a returned pending hash using read-only calls. */
|
|
118
|
-
declare function requestAirdrop(client: RpcClient, options: RequestAirdropOptions): Promise<AirdropSucceeded>;
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/contract/spec.d.ts
|
|
121
|
-
/**
|
|
122
|
-
* Lookup key for a named type: every segment of its spec id.
|
|
123
|
-
*
|
|
124
|
-
* Two types with the same declared name in different crates or modules are
|
|
125
|
-
* distinct, so named-codec maps from {@link buildNamedCodecs} are keyed by
|
|
126
|
-
* this rather than by `declared` alone. The encoding is injective; use
|
|
127
|
-
* {@link formatSpecId} for anything a person reads.
|
|
128
|
-
*/
|
|
129
|
-
declare function specIdKey(id: ContractSpecId): string;
|
|
130
|
-
/**
|
|
131
|
-
* Render a spec id for diagnostics as `module_path::declared (crate@major)`,
|
|
132
|
-
* the shape the Thruput CLI and spec tool print.
|
|
133
|
-
*/
|
|
134
|
-
declare function formatSpecId(id: Readonly<Record<keyof ContractSpecId, string>>): string;
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/contract/codec.d.ts
|
|
137
|
-
/** Complete-input codec used by generated contract descriptors. */
|
|
138
|
-
interface ContractCodec<T> {
|
|
139
|
-
encode(value: T): Uint8Array;
|
|
140
|
-
decode(data: Uint8Array): T;
|
|
141
|
-
}
|
|
142
|
-
declare const contractCodecContextBrand: unique symbol;
|
|
143
|
-
/** Opaque named-codec context shared by one generated binding module. */
|
|
144
|
-
interface ContractCodecContext {
|
|
145
|
-
readonly [contractCodecContextBrand]: true;
|
|
146
|
-
}
|
|
147
|
-
/** Build the shared codec context for a generated binding module. */
|
|
148
|
-
declare function createContractCodecContext(typeDefs: readonly ContractTypeDef$1[]): ContractCodecContext;
|
|
149
|
-
//#endregion
|
|
150
|
-
//#region src/contract/event.d.ts
|
|
151
|
-
/** A generic event decoded from contract metadata. Hashed topics remain hashes. */
|
|
152
|
-
type SpecDecodedEvent = DecodedContractEvent<string, Record<string, unknown>, Record<string, unknown>>;
|
|
153
|
-
/**
|
|
154
|
-
* Build a decoder from a parsed spec using the same codecs as generated bindings.
|
|
155
|
-
* Unknown signatures return null; malformed known events throw. The caller must
|
|
156
|
-
* establish that this spec belongs to the contract that emitted the event.
|
|
157
|
-
*/
|
|
158
|
-
declare function createContractEventDecoder(spec: ContractSpec$1): (event: Pick<EmittedEvent, "topics" | "data">) => SpecDecodedEvent | null;
|
|
159
|
-
/** Ordered metadata for one declared event topic after the signature. */
|
|
160
|
-
interface ContractEventTopicMetadata {
|
|
161
|
-
name: string;
|
|
162
|
-
type: ContractType$1;
|
|
163
|
-
representation: "address" | "fixedBytes32" | "u32" | "u64" | "u128" | "u256" | "i32" | "i64" | "i128" | "i256" | "bool" | "hash";
|
|
164
|
-
}
|
|
165
|
-
/** Ordered metadata for one event payload field. */
|
|
166
|
-
interface ContractEventFieldMetadata {
|
|
167
|
-
name: string;
|
|
168
|
-
type: ContractType$1;
|
|
169
|
-
}
|
|
170
|
-
/** Runtime definition consumed by a generated event descriptor. */
|
|
171
|
-
interface ContractEventDefinition<TName extends string = string> {
|
|
172
|
-
name: TName;
|
|
173
|
-
signature: Uint8Array;
|
|
174
|
-
topics: readonly ContractEventTopicMetadata[];
|
|
175
|
-
fields: readonly ContractEventFieldMetadata[];
|
|
176
|
-
codecs: ContractCodecContext;
|
|
177
|
-
}
|
|
178
|
-
/** One accepted direct-topic value or a non-empty OR constraint. */
|
|
179
|
-
type ContractEventFilterValue<T> = T | {
|
|
180
|
-
oneOf: readonly [T, ...T[]];
|
|
181
|
-
};
|
|
182
|
-
/** Generated named topic constraints plus required emitter addresses. */
|
|
183
|
-
interface ContractEventFilterInput<TFilter> {
|
|
184
|
-
addresses: readonly ContractAddress[];
|
|
185
|
-
topics?: TFilter;
|
|
186
|
-
}
|
|
187
|
-
/** Emitter scope for receipt extraction. */
|
|
188
|
-
interface ContractEventReceiptOptions {
|
|
189
|
-
address: ContractAddress;
|
|
190
|
-
}
|
|
191
|
-
/** Canonical value returned by generated event decoders. */
|
|
192
|
-
interface DecodedContractEvent<TName extends string, TTopics, TFields> {
|
|
193
|
-
name: TName;
|
|
194
|
-
topics: TTopics;
|
|
195
|
-
fields: TFields;
|
|
196
|
-
}
|
|
197
|
-
/** Decoded receipt event retaining the emitting contract address. */
|
|
198
|
-
type ContractReceiptEvent<TName extends string, TTopics, TFields> = DecodedContractEvent<TName, TTopics, TFields> & {
|
|
199
|
-
address: ContractAddress;
|
|
200
|
-
};
|
|
201
|
-
/** Complete generated event API. */
|
|
202
|
-
interface ContractEvent<TName extends string, TTopics, TFields, TFilter> {
|
|
203
|
-
readonly signature: Uint8Array;
|
|
204
|
-
decode(event: Pick<EmittedEvent, "topics" | "data">): DecodedContractEvent<TName, TTopics, TFields> | null;
|
|
205
|
-
filter(input: ContractEventFilterInput<TFilter>): EventFilter;
|
|
206
|
-
allFromReceipt(receipt: Pick<TransactionReceipt, "events">, options: ContractEventReceiptOptions): ContractReceiptEvent<TName, TTopics, TFields>[];
|
|
207
|
-
singleFromReceipt(receipt: Pick<TransactionReceipt, "events">, options: ContractEventReceiptOptions): ContractReceiptEvent<TName, TTopics, TFields>;
|
|
208
|
-
}
|
|
209
|
-
/** Build one generated event descriptor from direct ABI metadata. */
|
|
210
|
-
declare function defineContractEvent<const TName extends string, TTopics, TFields, TFilter>(definition: ContractEventDefinition<TName>): ContractEvent<TName, TTopics, TFields, TFilter>;
|
|
211
|
-
/** Distinguish directly encoded indexed values from irreversible topic hashes. */
|
|
212
|
-
declare function topicRepresentation(type: ContractType$1): ContractEventTopicMetadata["representation"];
|
|
213
|
-
/** Compare public byte identifiers. This function is not constant-time. */
|
|
214
|
-
declare function bytesEqual(left: Uint8Array | undefined, right: Uint8Array): boolean;
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region src/actions/public/getContractEvents.d.ts
|
|
217
|
-
/** One generated event descriptor with named filters and ordinary page controls. */
|
|
218
|
-
type ContractEventQuery<TName extends string, TTopics, TFields, TFilter> = (EventQuery extends infer Q ? Q extends EventQuery ? Omit<Q, "filters"> : never : never) & ContractEventFilterInput<NoInfer<TFilter>> & {
|
|
219
|
-
event: ContractEvent<TName, TTopics, TFields, TFilter>;
|
|
220
|
-
};
|
|
221
|
-
/** A decoded event with its emitter, transaction, and position in history. */
|
|
222
|
-
type IdentifiedContractEvent<TName extends string, TTopics, TFields> = DecodedContractEvent<TName, TTopics, TFields> & Omit<IdentifiedEvent, "event"> & Pick<EmittedEvent, "address">;
|
|
223
|
-
/** One decoded event page, retaining the RPC cursor and indexer bounds. */
|
|
224
|
-
type ContractEventPage<TName extends string, TTopics, TFields> = Omit<EventPage, "events"> & {
|
|
225
|
-
events: IdentifiedContractEvent<TName, TTopics, TFields>[];
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* Fetch exactly one page using a generated event's filter and decoder.
|
|
229
|
-
*
|
|
230
|
-
* No additional pages are fetched. Pass the returned cursor into the next call
|
|
231
|
-
* with the same filters. Malformed events and unexpected signatures throw
|
|
232
|
-
* ContractDecodeError rather than silently disappearing from the page.
|
|
233
|
-
*
|
|
234
|
-
* @example
|
|
235
|
-
* ```ts
|
|
236
|
-
* const page = await getContractEvents(client, {
|
|
237
|
-
* event: thruput_erc20_if.v0_1.events.TransferEvent,
|
|
238
|
-
* addresses: [tokenAddress],
|
|
239
|
-
* topics: { to: accountAddress },
|
|
240
|
-
* start: { order: "ascending", anchor: { kind: "atBeginning" } },
|
|
241
|
-
* limit: 20,
|
|
242
|
-
* }, { signal });
|
|
243
|
-
* ```
|
|
244
|
-
*/
|
|
245
|
-
declare function getContractEvents<TName extends string, TTopics, TFields, TFilter>(client: Pick<RpcClient, "getEvents">, query: ContractEventQuery<TName, TTopics, TFields, TFilter>, options?: TransportRequestOptions): Promise<ContractEventPage<TName, TTopics, TFields>>;
|
|
246
|
-
//#endregion
|
|
247
|
-
//#region src/actions/public/historyWalk.d.ts
|
|
248
|
-
/** Returned only after the caller resumes past the terminal page. Persist with processed data. */
|
|
249
|
-
interface HistoryCompletion {
|
|
250
|
-
readonly watermarkBlockHeight: bigint;
|
|
251
|
-
/** Ascending range fully consumed; absent for descending or an anchor above the watermark. */
|
|
252
|
-
readonly completedThroughBlockHeight?: bigint;
|
|
253
|
-
}
|
|
254
|
-
declare class HistoryWalkError extends Error {
|
|
255
|
-
readonly page: EventPage | TransactionRefPage;
|
|
256
|
-
constructor(message: string, page: EventPage | TransactionRefPage);
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region src/actions/public/iterateEventPages.d.ts
|
|
260
|
-
type EventWalkQuery = Extract<EventQuery, {
|
|
261
|
-
start: unknown;
|
|
262
|
-
}>;
|
|
263
|
-
/** Start a fixed event range. Saved opaque cursors remain available through getEvents. */
|
|
264
|
-
declare function iterateEventPages(client: Pick<RpcClient, "getEvents">, query: EventWalkQuery, options?: TransportRequestOptions): AsyncGenerator<EventPage, HistoryCompletion, unknown>;
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/cluster.d.ts
|
|
267
|
-
/** Public Thruput Futurenet JSON-RPC endpoint. */
|
|
268
|
-
declare const FUTURENET_RPC_URL = "https://rpc.thruput.network";
|
|
269
|
-
/** @deprecated Use {@link FUTURENET_RPC_URL}. */
|
|
270
|
-
declare const DEVNET_RPC_URL = "https://rpc.thruput.network";
|
|
271
|
-
/** Default JSON-RPC endpoint for `thruput node`. */
|
|
272
|
-
declare const LOCALNET_RPC_URL = "http://127.0.0.1:9545";
|
|
273
|
-
/** Optional feature exposed by a Thruput cluster. */
|
|
274
|
-
type ClusterCapability = "airdrop";
|
|
275
|
-
/** Network identity and optional features expected at an RPC endpoint. */
|
|
276
|
-
interface Cluster<TCapabilities extends readonly ClusterCapability[] = readonly ClusterCapability[]> {
|
|
277
|
-
/** Optional human-readable cluster name. */
|
|
278
|
-
readonly name?: string;
|
|
279
|
-
/** Optional protocol network identity pin. */
|
|
280
|
-
readonly networkHash?: NetworkHash;
|
|
281
|
-
/** Default JSON-RPC endpoint, when the cluster has one. */
|
|
282
|
-
readonly rpcUrl?: string;
|
|
283
|
-
/** Optional RPC features expected to be available on the cluster. */
|
|
284
|
-
readonly capabilities: TCapabilities;
|
|
285
|
-
}
|
|
286
|
-
/** Whether every possible cluster descriptor declares an optional feature. */
|
|
287
|
-
type ClusterHasCapability<TCluster extends Cluster, TCapability extends ClusterCapability> = false extends (TCluster extends Cluster<infer TCapabilities> ? TCapabilities extends readonly ClusterCapability[] ? number extends TCapabilities["length"] ? false : TCapability extends TCapabilities[number] ? true : false : false : false) ? false : true;
|
|
288
|
-
/** Options shared by predefined cluster descriptors. */
|
|
289
|
-
interface PredefinedClusterOptions {
|
|
290
|
-
/** Override the cluster's default JSON-RPC endpoint. */
|
|
291
|
-
readonly rpcUrl?: string;
|
|
292
|
-
/** Pin the endpoint to one protocol signing network. */
|
|
293
|
-
readonly networkHash?: NetworkHash;
|
|
294
|
-
}
|
|
295
|
-
/** Define a reusable cluster while preserving its literal capability types. */
|
|
296
|
-
declare function defineCluster<const TCluster extends Cluster>(cluster: TCluster & {
|
|
297
|
-
readonly genesisHash?: never;
|
|
298
|
-
}): TCluster;
|
|
299
|
-
/** Define the canonical Thruput mainnet cluster. */
|
|
300
|
-
declare function mainnet(options?: PredefinedClusterOptions): Cluster<readonly []> & {
|
|
301
|
-
readonly name: "mainnet";
|
|
302
|
-
};
|
|
303
|
-
/** Define Futurenet, the resettable public development network, unpinned unless `networkHash` is supplied. */
|
|
304
|
-
declare function futurenet(options?: PredefinedClusterOptions): Cluster<readonly ["airdrop"]> & {
|
|
305
|
-
readonly name: "futurenet";
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
* Compatibility alias for {@link futurenet}, retaining the legacy cluster name.
|
|
309
|
-
* @deprecated Use {@link futurenet}.
|
|
310
|
-
*/
|
|
311
|
-
declare function devnet(options?: PredefinedClusterOptions): Cluster<readonly ["airdrop"]> & {
|
|
312
|
-
readonly name: "devnet";
|
|
313
|
-
};
|
|
314
|
-
/** Define a local `thruput node` development network. */
|
|
315
|
-
declare function localnet(options?: PredefinedClusterOptions): Cluster<readonly ["airdrop"]> & {
|
|
316
|
-
readonly name: "localnet";
|
|
317
|
-
};
|
|
318
|
-
/** Error thrown when an RPC endpoint does not match its declared cluster. */
|
|
319
|
-
declare class NetworkMismatchError extends Error {
|
|
320
|
-
readonly cluster: Cluster;
|
|
321
|
-
readonly actual: NetworkInfo;
|
|
322
|
-
constructor(cluster: Cluster, actual: NetworkInfo);
|
|
323
|
-
}
|
|
324
|
-
/** Assert that runtime network information matches a cluster descriptor. */
|
|
325
|
-
declare function assertNetworkMatchesCluster(cluster: Cluster, actual: NetworkInfo): void;
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region src/actions/public/iterateTransactionPages.d.ts
|
|
328
|
-
type RootAddressWalkQuery = Extract<RootAddressTransactionQuery, {
|
|
329
|
-
start: unknown;
|
|
330
|
-
}>;
|
|
331
|
-
type BlockTransactionWalkQuery = Extract<BlockTransactionQuery, {
|
|
332
|
-
start: unknown;
|
|
333
|
-
}>;
|
|
334
|
-
/** Transactions sent by this root address; incoming transfers use token events. */
|
|
335
|
-
declare function iterateTransactionsByRootAddress(client: Pick<RpcClient, "getTransactionsByRootAddress">, query: RootAddressWalkQuery, options?: TransportRequestOptions): AsyncGenerator<TransactionRefPage, HistoryCompletion, unknown>;
|
|
336
|
-
/** Walk one covered block. Completion never establishes a whole-chain checkpoint. */
|
|
337
|
-
declare function iterateTransactionsByBlock(client: Pick<RpcClient, "getTransactionsByBlock">, query: BlockTransactionWalkQuery, options?: TransportRequestOptions): AsyncGenerator<TransactionRefPage, void, unknown>;
|
|
338
|
-
//#endregion
|
|
339
|
-
//#region src/client.d.ts
|
|
340
|
-
/** Native RPC methods plus workflows that never sign, replace or repeat writes. */
|
|
341
|
-
interface CoreThruputClient extends RpcClient {
|
|
342
|
-
iterateTransactionsByRootAddress(query: RootAddressWalkQuery, options?: TransportRequestOptions): AsyncGenerator<TransactionRefPage, HistoryCompletion, unknown>;
|
|
343
|
-
iterateTransactionsByBlock(query: BlockTransactionWalkQuery, options?: TransportRequestOptions): AsyncGenerator<TransactionRefPage, void, unknown>;
|
|
344
|
-
waitForTransactionReceipt(transactionHash: Uint8Array, options?: WaitForTransactionReceiptOptions): Promise<TransactionReceipt>;
|
|
345
|
-
waitForCommitment(transactionHash: Uint8Array, options?: WaitForTransactionReceiptOptions): Promise<KnownCommitment>;
|
|
346
|
-
readViews<const TCalls extends readonly ContractViewRequest[]>(request: ReadViewsRequest<TCalls>, options?: TransportRequestOptions): Promise<ReadViewsResponse<TCalls>>;
|
|
347
|
-
getContractEvents<TName extends string, TTopics, TFields, TFilter>(query: ContractEventQuery<TName, TTopics, TFields, TFilter>, options?: TransportRequestOptions): Promise<ContractEventPage<TName, TTopics, TFields>>;
|
|
348
|
-
iterateEventPages(query: EventWalkQuery, options?: TransportRequestOptions): AsyncGenerator<EventPage, HistoryCompletion, unknown>;
|
|
349
|
-
}
|
|
350
|
-
/** Optional one-call faucet workflow, gated by endpoint discovery. */
|
|
351
|
-
interface AirdropActions {
|
|
352
|
-
requestAirdrop(options: RequestAirdropOptions): Promise<AirdropSucceeded>;
|
|
353
|
-
requestAirdropAttempt(request: AirdropAttemptRequest, options?: TransportRequestOptions): Promise<AirdropResponse>;
|
|
354
|
-
}
|
|
355
|
-
interface ThruputClient extends CoreThruputClient, AirdropActions {}
|
|
356
|
-
type ConnectedThruputClient<TCluster extends Cluster = Cluster> = CoreThruputClient & {
|
|
357
|
-
readonly cluster: TCluster & {
|
|
358
|
-
readonly genesisHash?: never;
|
|
359
|
-
};
|
|
360
|
-
readonly network: NetworkInfo;
|
|
361
|
-
} & (ClusterHasCapability<TCluster, "airdrop"> extends true ? AirdropActions : {});
|
|
362
|
-
interface ThruputClientOptions {
|
|
363
|
-
readonly transport: Transport;
|
|
364
|
-
readonly cluster?: never;
|
|
365
|
-
readonly requiredMethods?: readonly RpcMethod[];
|
|
366
|
-
readonly signal?: AbortSignal;
|
|
367
|
-
}
|
|
368
|
-
interface ClusterThruputClientOptions<TCluster extends Cluster = Cluster> {
|
|
369
|
-
readonly cluster: TCluster & {
|
|
370
|
-
readonly genesisHash?: never;
|
|
371
|
-
};
|
|
372
|
-
readonly transport?: Transport;
|
|
373
|
-
readonly requiredMethods?: readonly RpcMethod[];
|
|
374
|
-
readonly signal?: AbortSignal;
|
|
375
|
-
}
|
|
376
|
-
/** Connect once, validate wire/network/capabilities, and bind native methods and workflows. */
|
|
377
|
-
declare function createThruputClient<const TCluster extends Cluster>(options: ClusterThruputClientOptions<TCluster>): Promise<ConnectedThruputClient<TCluster>>;
|
|
378
|
-
declare function createThruputClient(options: ThruputClientOptions): Promise<ThruputClient>;
|
|
379
|
-
//#endregion
|
|
380
|
-
//#region src/contract/method.d.ts
|
|
381
|
-
/** Omit the argument position entirely for methods without arguments. */
|
|
382
|
-
type MethodArgs<TArgs> = [TArgs] extends [void] ? [] : [args: TArgs];
|
|
383
|
-
/** Successfully decoded contract view result and its snapshot metadata. */
|
|
384
|
-
interface ContractView<T> {
|
|
385
|
-
value: T;
|
|
386
|
-
stateBlockHeight: bigint;
|
|
387
|
-
gasUsed: bigint;
|
|
388
|
-
events: EmittedEvent[];
|
|
389
|
-
}
|
|
390
|
-
/** Contract exception selector not declared by the generated interface. */
|
|
391
|
-
interface UnknownContractException {
|
|
392
|
-
kind: "unknown";
|
|
393
|
-
selector: bigint;
|
|
394
|
-
data: Uint8Array;
|
|
395
|
-
}
|
|
396
|
-
/** Declared exceptions plus a lossless fallback for unknown selectors. */
|
|
397
|
-
type ContractException<TDeclared> = (TDeclared & {
|
|
398
|
-
/** Symbolic enum case when available in the contract spec. */variant?: string;
|
|
399
|
-
}) | UnknownContractException;
|
|
400
|
-
/** Non-successful contract view outcome. */
|
|
401
|
-
type ContractViewFailure<TException> = {
|
|
402
|
-
kind: "unsupported";
|
|
403
|
-
raw: ViewResponse;
|
|
404
|
-
stateBlockHeight: bigint;
|
|
405
|
-
gasUsed: bigint;
|
|
406
|
-
events: EmittedEvent[];
|
|
407
|
-
} | {
|
|
408
|
-
kind: "abort";
|
|
409
|
-
exception: TException;
|
|
410
|
-
abortData: Uint8Array;
|
|
411
|
-
stateBlockHeight: bigint;
|
|
412
|
-
gasUsed: bigint;
|
|
413
|
-
events: EmittedEvent[];
|
|
414
|
-
} | {
|
|
415
|
-
kind: "fault";
|
|
416
|
-
stateBlockHeight: bigint;
|
|
417
|
-
gasUsed: bigint;
|
|
418
|
-
events: EmittedEvent[];
|
|
419
|
-
};
|
|
420
|
-
/** Typed return, abort, fault, or unsupported response from a contract view. */
|
|
421
|
-
type ContractViewOutcome<TResult, TException> = ({
|
|
422
|
-
kind: "return";
|
|
423
|
-
} & ContractView<TResult>) | ContractViewFailure<TException>;
|
|
424
|
-
/** Successfully decoded root return and its commitment metadata. */
|
|
425
|
-
interface ContractReceipt<TResult> {
|
|
426
|
-
value: TResult;
|
|
427
|
-
transactionHash: Uint8Array;
|
|
428
|
-
blockHeight: bigint;
|
|
429
|
-
events: EmittedEvent[];
|
|
430
|
-
}
|
|
431
|
-
type ContractReceiptFailure<TException> = {
|
|
432
|
-
transactionHash: Uint8Array;
|
|
433
|
-
blockHeight: bigint;
|
|
434
|
-
events: EmittedEvent[];
|
|
435
|
-
} & ({
|
|
436
|
-
kind: "abort";
|
|
437
|
-
exception: TException;
|
|
438
|
-
abortData: Uint8Array;
|
|
439
|
-
} | {
|
|
440
|
-
kind: "failure";
|
|
441
|
-
execution: TransactionReceipt["execution"];
|
|
442
|
-
} | {
|
|
443
|
-
kind: "unsupported";
|
|
444
|
-
raw: TransactionReceipt;
|
|
445
|
-
});
|
|
446
|
-
type ContractReceiptOutcome<TResult, TException> = ({
|
|
447
|
-
kind: "return";
|
|
448
|
-
} & ContractReceipt<TResult>) | ContractReceiptFailure<TException>;
|
|
449
|
-
/** Error thrown by the view API for aborts, faults, or unsupported outcomes. */
|
|
450
|
-
declare class ContractViewError<TException> extends Error {
|
|
451
|
-
readonly outcome: ContractViewFailure<TException>;
|
|
452
|
-
constructor(outcome: ContractViewFailure<TException>);
|
|
453
|
-
}
|
|
454
|
-
/** Error thrown when a root contract receipt does not produce a typed return. */
|
|
455
|
-
declare class ContractReceiptError<TException> extends Error {
|
|
456
|
-
readonly outcome: ContractReceiptFailure<TException>;
|
|
457
|
-
constructor(outcome: ContractReceiptFailure<TException>);
|
|
458
|
-
}
|
|
459
|
-
/** Generated method argument metadata in ABI order. */
|
|
460
|
-
interface ContractArgumentMetadata {
|
|
461
|
-
abiName: string;
|
|
462
|
-
publicName: string;
|
|
463
|
-
type: ContractType$1;
|
|
464
|
-
}
|
|
465
|
-
/** Generated declared exception metadata. */
|
|
466
|
-
interface ContractExceptionMetadata {
|
|
467
|
-
selector: bigint;
|
|
468
|
-
name: string | null;
|
|
469
|
-
type: ContractType$1;
|
|
470
|
-
}
|
|
471
|
-
/** Runtime definition consumed by a generated method descriptor. */
|
|
472
|
-
interface ContractMethodDefinition {
|
|
473
|
-
/** Author-declared whole-invocation effects; null or omission means unannotated. */
|
|
474
|
-
effect?: ContractMethodEffect | null;
|
|
475
|
-
/** Canonical interface name for diagnostics. */
|
|
476
|
-
interfaceName?: string;
|
|
477
|
-
/** Interface ABI version, not a deployed-code verification. */
|
|
478
|
-
interfaceVersion?: string;
|
|
479
|
-
/** Method name in the contract ABI. */
|
|
480
|
-
abiName?: string;
|
|
481
|
-
/** Method name in the TypeScript binding. */
|
|
482
|
-
publicName?: string;
|
|
483
|
-
entrypoint: ContractEntrypointID;
|
|
484
|
-
args: readonly ContractArgumentMetadata[];
|
|
485
|
-
returnType: ContractType$1;
|
|
486
|
-
throws: readonly ContractExceptionMetadata[];
|
|
487
|
-
codecs: ContractCodecContext;
|
|
488
|
-
}
|
|
489
|
-
/** Contract address and arguments shared by reads and transaction calls. */
|
|
490
|
-
type ContractMethodInputs<TArgs> = {
|
|
491
|
-
address: ContractAddress;
|
|
492
|
-
} & ([TArgs] extends [void] ? {
|
|
493
|
-
args?: never;
|
|
494
|
-
} : {
|
|
495
|
-
args: TArgs;
|
|
496
|
-
});
|
|
497
|
-
/** View options with an argument object only when the method requires one. */
|
|
498
|
-
type ContractViewOptions<TArgs> = ContractMethodInputs<TArgs> & {
|
|
499
|
-
/** Optional authorization assumed by the simulator, without signatures. */assumedAuth?: AuthClaim;
|
|
500
|
-
client: Pick<ThruputClient, "simulateInvocation">;
|
|
501
|
-
caller?: ContractAddress;
|
|
502
|
-
/**
|
|
503
|
-
* Minimum committed snapshot height. The SDK does not wait or retry. From
|
|
504
|
-
* wire 14.6.1, the server waits up to 2 s for a floor at or below the
|
|
505
|
-
* committed tip.
|
|
506
|
-
*/
|
|
507
|
-
minStateBlockHeight?: bigint; /** Cancel this read without affecting other requests on the same client. */
|
|
508
|
-
signal?: AbortSignal;
|
|
509
|
-
};
|
|
510
|
-
/** Inputs to a typed, unsubmitted contract call. */
|
|
511
|
-
type ContractCallOptions<TArgs> = ContractMethodInputs<TArgs> & {
|
|
512
|
-
gasLimit: GasAmount;
|
|
513
|
-
minStateBlockHeight?: never;
|
|
514
|
-
};
|
|
515
|
-
/** Inputs for an unsubmitted view, with arguments checked by the generated method. */
|
|
516
|
-
type ContractViewRequestOptions<TArgs> = ContractMethodInputs<TArgs> & {
|
|
517
|
-
assumedAuth?: AuthClaim;
|
|
518
|
-
caller?: ContractAddress;
|
|
519
|
-
minStateBlockHeight?: never;
|
|
520
|
-
};
|
|
521
|
-
/** Encoded view request retaining its generated outcome decoder. */
|
|
522
|
-
interface ContractViewRequest<TResult = unknown, TException = unknown> {
|
|
523
|
-
readonly minStateBlockHeight?: never;
|
|
524
|
-
readonly request: ViewCall & {
|
|
525
|
-
minStateBlockHeight?: never;
|
|
526
|
-
};
|
|
527
|
-
readonly method: Pick<ContractMethod<never, TResult, TException>, "name" | "decodeViewOutcome">;
|
|
528
|
-
}
|
|
529
|
-
/** An invocation retaining its return and exception decoders. */
|
|
530
|
-
interface ContractCall<TResult = unknown, TException = unknown> {
|
|
531
|
-
readonly invocation: Invocation;
|
|
532
|
-
readonly method: Pick<ContractMethod<never, TResult, TException>, "decodeReturn" | "decodeException" | "decodeReceiptOutcome" | "name">;
|
|
533
|
-
}
|
|
534
|
-
/** Complete generated method API. */
|
|
535
|
-
interface ContractMethod<TArgs, TResult, TDeclaredException> {
|
|
536
|
-
/**
|
|
537
|
-
* Author-declared effects, including nested calls. Pure excludes state/context
|
|
538
|
-
* reads; read-only excludes application effects (including events); state-changing
|
|
539
|
-
* means effects may occur. Null means unannotated and gives no read-only assurance.
|
|
540
|
-
* These declarations are not compiler/runtime enforced and never restrict
|
|
541
|
-
* invocation or view APIs.
|
|
542
|
-
*/
|
|
543
|
-
readonly effect: ContractMethodEffect | null;
|
|
544
|
-
/** Qualified method name, or entrypoint when generated identity is absent. */
|
|
545
|
-
readonly name: string;
|
|
546
|
-
/** Prepare an independent read for readViews without performing I/O. */
|
|
547
|
-
viewRequest(options: ContractViewRequestOptions<TArgs>): ContractViewRequest<TResult, TDeclaredException>;
|
|
548
|
-
/** Build an unsubmitted call retaining typed decoding context. */
|
|
549
|
-
call(options: ContractCallOptions<TArgs>): ContractCall<TResult, TDeclaredException>;
|
|
550
|
-
readonly entrypoint: ContractEntrypointID;
|
|
551
|
-
invocation(contract: ContractAddress, gasLimit: GasAmount, ...args: MethodArgs<TArgs>): Invocation;
|
|
552
|
-
/**
|
|
553
|
-
* Decode complete calldata using the generated public argument names.
|
|
554
|
-
* Returns undefined for no-argument methods; rejects incomplete or trailing bytes.
|
|
555
|
-
* Select the descriptor after checking the invocation's entrypoint. ABI decoding
|
|
556
|
-
* does not verify the target contract's behavior.
|
|
557
|
-
*
|
|
558
|
-
* @example
|
|
559
|
-
* ```ts
|
|
560
|
-
* const { receiver, amount } = ERC20.v0_1.transfer.decodeArgs(invocation.calldata);
|
|
561
|
-
* ```
|
|
562
|
-
*/
|
|
563
|
-
decodeArgs(data: Uint8Array): TArgs;
|
|
564
|
-
/** Decode complete return data; reject incomplete or trailing bytes. */
|
|
565
|
-
decodeReturn(data: Uint8Array): TResult;
|
|
566
|
-
/** Decode abort data, preserving an unknown selector and its complete payload. */
|
|
567
|
-
decodeException(data: Uint8Array): ContractException<TDeclaredException>;
|
|
568
|
-
/** Decode a view response with the same semantics as view(). */
|
|
569
|
-
decodeView(response: ViewResponse): ContractView<TResult>;
|
|
570
|
-
/** Decode return, abort, fault, or unsupported data without throwing for a contract failure. */
|
|
571
|
-
decodeViewOutcome(response: ViewResponse): ContractViewOutcome<TResult, ContractException<TDeclaredException>>;
|
|
572
|
-
/** Decode a receipt whose root invocation called this method; nested invocation results are not inspected. */
|
|
573
|
-
decodeReceipt(receipt: TransactionReceipt): ContractReceipt<TResult>;
|
|
574
|
-
/** Decode the outcome of a root invocation of this method; nested invocation results are not inspected. */
|
|
575
|
-
decodeReceiptOutcome(receipt: TransactionReceipt): ContractReceiptOutcome<TResult, ContractException<TDeclaredException>>;
|
|
576
|
-
view(options: ContractViewOptions<TArgs>): Promise<ContractView<TResult>>;
|
|
577
|
-
viewOutcome(options: ContractViewOptions<TArgs>): Promise<ContractViewOutcome<TResult, ContractException<TDeclaredException>>>;
|
|
578
|
-
}
|
|
579
|
-
/** Build one generated method descriptor from direct ABI metadata. */
|
|
580
|
-
declare function defineContractMethod<TArgs, TResult, TDeclaredException>(definition: ContractMethodDefinition): ContractMethod<TArgs, TResult, TDeclaredException>;
|
|
581
|
-
//#endregion
|
|
582
|
-
//#region src/actions/public/readViews.d.ts
|
|
583
|
-
/** Typed calls and an optional minimum committed height for one snapshot read. */
|
|
584
|
-
interface ReadViewsRequest<TCalls extends readonly ContractViewRequest[]> {
|
|
585
|
-
calls: TCalls;
|
|
586
|
-
minStateBlockHeight?: bigint;
|
|
587
|
-
}
|
|
588
|
-
/** Ordered typed outcomes, preserving each tuple position's return and exception types. */
|
|
589
|
-
interface ReadViewsResponse<TCalls extends readonly ContractViewRequest[]> {
|
|
590
|
-
stateBlockHeight: bigint;
|
|
591
|
-
results: { [K in keyof TCalls]: TCalls[K] extends ContractViewRequest<infer R, infer E> ? ContractViewOutcome<R, ContractException<E>> : never };
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Read generated method requests against one shared committed snapshot.
|
|
595
|
-
* Contract aborts and faults are outcomes. Transport, freshness, and decoding
|
|
596
|
-
* failures reject the group. Calls are never split or emulated with separate views.
|
|
597
|
-
*
|
|
598
|
-
* @example
|
|
599
|
-
* ```ts
|
|
600
|
-
* const result = await client.readViews({ calls: [
|
|
601
|
-
* ERC20.v0_1.totalSupply.viewRequest({ address: token }),
|
|
602
|
-
* ERC20.v0_1.getBalanceOf.viewRequest({ address: token, args: { addr: owner } }),
|
|
603
|
-
* ] });
|
|
604
|
-
* ```
|
|
605
|
-
*/
|
|
606
|
-
declare function readViews<const TCalls extends readonly ContractViewRequest[]>(client: Pick<RpcClient, "simulateInvocations">, request: ReadViewsRequest<TCalls>, options?: TransportRequestOptions): Promise<ReadViewsResponse<TCalls>>;
|
|
607
|
-
//#endregion
|
|
608
|
-
export { HistoryCompletion as $, WaitForTransactionReceiptOptions as $t, ThruputClient as A, RecentAttemptFailure as An, ContractSpecInterface as At, DEVNET_RPC_URL as B, TransactionReceipt as Bn, ContractUnionCaseType as Bt, MethodArgs as C, FundAccountRequest as Cn, ContractEnumDef as Ct, ClusterThruputClientOptions as D, IterationOrder as Dn, ContractMethodEffect$1 as Dt, AirdropActions as E, IdentifiedEvent as En, ContractField as Et, iterateTransactionsByBlock as F, SimulationBatchLimits as Fn, ContractTypeDef$1 as Ft, assertNetworkMatchesCluster as G, ViewBatchRequest as Gn, FundingObservationError as Gt, LOCALNET_RPC_URL as H, TransactionRefPage as Hn, ContractVectorType as Ht, iterateTransactionsByRootAddress as I, StorageCosts as In, ContractTypeDefKind$1 as It, futurenet as J, ViewOutput as Jn, requestAirdropAttempt as Jt, defineCluster as K, ViewBatchResponse as Kn, RequestAirdropOptions as Kt, Cluster as L, StorageItemInfo as Ln, ContractTypeKind$1 as Lt, createThruputClient as M, RootAddressTransactionQuery as Mn, ContractSpecString as Mt, BlockTransactionWalkQuery as N, SchedulerTransactionError as Nn, ContractStructDef as Nt, ConnectedThruputClient as O, NetworkConfigParams as On, ContractSpec$1 as Ot, RootAddressWalkQuery as P, ServerLimits as Pn, ContractType$1 as Pt, iterateEventPages as Q, TransactionReceiptTimeoutError as Qt, ClusterCapability as R, StorageItemRead as Rn, ContractUnionCase as Rt, ContractViewRequestOptions as S, ExecutionConfig as Sn, ContractArrayType as St, defineContractMethod as T, HistoryStart as Tn, ContractExceptionType as Tt, NetworkMismatchError as U, TransactionStatus as Un, formatSpecId as Ut, FUTURENET_RPC_URL as V, TransactionRef as Vn, ContractUnionDef as Vt, PredefinedClusterOptions as W, VersionInfo as Wn, specIdKey as Wt, mainnet as X, ViewResponse as Xn, ReceiptObserver as Xt, localnet as Y, ViewRequest as Yn, KnownCommitment as Yt, EventWalkQuery as Z, TransactionReceiptObservationError as Zt, ContractViewError as _, ContractRejectCode as _n, defineContractEvent as _t, ContractCall as a, AirdropPending as an, ContractEvent as at, ContractViewOutcome as b, EventPage as bn, ContractCodecContext as bt, ContractExceptionMetadata as c, AuthPublicKey as cn, ContractEventFilterInput as ct, ContractMethodInputs as d, BlockInfo as dn, ContractEventTopicMetadata as dt, waitForCommitment as en, HistoryWalkError as et, ContractReceipt as f, BlockTransactionQuery as fn, ContractReceiptEvent as ft, ContractView as g, ConflictDiagnostic as gn, createContractEventDecoder as gt, ContractReceiptOutcome as h, ConflictCode as hn, bytesEqual as ht, ContractArgumentMetadata as i, AirdropExecutionStatus as in, getContractEvents as it, ThruputClientOptions as j, RegisteredAuthResult as jn, ContractSpecMethod as jt, CoreThruputClient as k, NetworkInfo as kn, ContractSpecId$1 as kt, ContractMethod as l, AuthSigner as ln, ContractEventFilterValue as lt, ContractReceiptFailure as m, ChainTip as mn, SpecDecodedEvent as mt, ReadViewsResponse as n, AddressAuthDataInfo as nn, ContractEventQuery as nt, ContractCallOptions as o, AirdropResponse as on, ContractEventDefinition as ot, ContractReceiptError as p, ChainConfig as pn, DecodedContractEvent as pt, devnet as q, ViewCall as qn, requestAirdrop as qt, readViews as r, AirdropAttemptRequest as rn, IdentifiedContractEvent as rt, ContractException as s, AirdropSucceeded as sn, ContractEventFieldMetadata as st, ReadViewsRequest as t, waitForTransactionReceipt as tn, ContractEventPage as tt, ContractMethodDefinition as u, BalanceResponse as un, ContractEventReceiptOptions as ut, ContractViewFailure as v, EmittedEvent as vn, topicRepresentation as vt, UnknownContractException as w, FundAccountResponse as wn, ContractEnumVariant as wt, ContractViewRequest as x, EventQuery as xn, createContractCodecContext as xt, ContractViewOptions as y, EventFilter as yn, ContractCodec as yt, ClusterHasCapability as z, TransactionFailureCause as zn, ContractUnionCaseKind$1 as zt };
|
|
609
|
-
//# sourceMappingURL=readViews-nV3jbpYc.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readViews-nV3jbpYc.d.ts","names":[],"sources":["../src/types/rpc.ts","../src/actions/public/waitForTransactionReceipt.ts","../src/actions/public/requestAirdrop.ts","../src/contract/spec.ts","../src/contract/codec.ts","../src/contract/event.ts","../src/actions/public/getContractEvents.ts","../src/actions/public/historyWalk.ts","../src/actions/public/iterateEventPages.ts","../src/cluster.ts","../src/actions/public/iterateTransactionPages.ts","../src/client.ts","../src/contract/method.ts","../src/actions/public/readViews.ts"],"mappings":";;;;;;KAGY,aAAA,GAAgB,YAAmB;AAAA,KACnC,UAAA,GAAa,aAAoB;AAAA,KACjC,mBAAA,GAAsB,oBAA2B;AAAA,KACjD,oBAAA,GAAuB,uBAA8B;AAAA,KACrD,WAAA,GAAc,cAAqB;AAAA,KACnC,mBAAA,GAAsB,eAAsB;AAAA,KAC5C,WAAA,GAAc,cAAqB;AAAA,KACnC,eAAA,GAAkB,kBAAyB;AAAA,KAC3C,YAAA,GAAe,eAAsB;AAAA,KACrC,qBAAA,GAAwB,wBAA+B;A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