@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,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $t as WaitForTransactionReceiptOptions, Bn as TransactionReceipt, Yt as KnownCommitment, a as ContractCall, k as CoreThruputClient } from "./readViews-DbWELMMq.cjs";
|
|
1
|
+
import { N as ContractCall, Oi as RpcSendTransactionResult, b as SubmissionEvidence, dr as TransactionReceipt, nt as CoreThruputClient, wn as WaitForTransactionReceiptOptions } from "./requestAirdrop-T1eVn3l5.cjs";
|
|
3
2
|
import { t as Signer } from "./types-BE40oD_Q.cjs";
|
|
4
3
|
import { t as SignerEntry } from "./sign-eUT0iGQG.cjs";
|
|
5
4
|
import { AuthClaim, AuthClaimType, BitMap, BlockHeight, Contract, ContractAddress, GasAmount, Invocation, PublicKey, SHA256Hash, Transaction, Weight } from "@thruputchain/protocol";
|
|
@@ -141,51 +140,37 @@ declare const defaultWalletAdapter: WalletInvocationAdapter<WalletExecutionReque
|
|
|
141
140
|
declare const devWalletAdapter: WalletInvocationAdapter<WalletExecutionRequest>;
|
|
142
141
|
//#endregion
|
|
143
142
|
//#region src/wallet/execution.d.ts
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/** A future execution variant is unsupported, never inferred to be success or failure. */
|
|
151
|
-
declare class UnsupportedTransactionOutcomeError extends TransactionExecutionError {
|
|
152
|
-
constructor(receipt: TransactionReceipt, submission?: SubmissionEvidence);
|
|
153
|
-
}
|
|
143
|
+
/**
|
|
144
|
+
* Require successful execution. A failed execution throws code
|
|
145
|
+
* `transactionFailed`; an unsupported execution value throws code
|
|
146
|
+
* `transactionOutcomeUnsupported`, never inferred to be success or failure.
|
|
147
|
+
* Both keep the complete receipt in `transaction.receipt`.
|
|
148
|
+
*/
|
|
154
149
|
declare function assertTransactionSuccess(receipt: TransactionReceipt, submission?: SubmissionEvidence): asserts receipt is TransactionReceipt & {
|
|
155
150
|
execution: {
|
|
156
151
|
result: "return";
|
|
157
152
|
returnData: Uint8Array;
|
|
158
153
|
};
|
|
159
154
|
};
|
|
160
|
-
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
declare function assertTransactionAdmission(response: RpcSendTransactionResult): void;
|
|
167
|
-
interface SubmissionEvidence {
|
|
168
|
-
readonly signedTransaction: Uint8Array;
|
|
169
|
-
readonly transactionHash: Uint8Array;
|
|
170
|
-
readonly networkHash: Uint8Array;
|
|
171
|
-
}
|
|
172
|
-
/** Snapshot approved bytes before submission; accessor copies protect the retained record. */
|
|
173
|
-
declare function createSubmissionEvidence(bytes: Uint8Array, network: Uint8Array): SubmissionEvidence;
|
|
155
|
+
/**
|
|
156
|
+
* Keep low-level future values intact, but never project them into an admitted
|
|
157
|
+
* hash. An admission value other than `accepted` throws code
|
|
158
|
+
* `transactionAdmissionUnsupported` with outcome `unknown`.
|
|
159
|
+
*/
|
|
160
|
+
declare function assertTransactionAdmission(response: RpcSendTransactionResult, submission?: SubmissionEvidence): void;
|
|
174
161
|
interface ExecutionResult {
|
|
175
162
|
transactionHash: Uint8Array;
|
|
176
163
|
receipt: TransactionReceipt;
|
|
177
164
|
submission?: SubmissionEvidence;
|
|
178
165
|
}
|
|
179
|
-
/**
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
/** Submit once, then reconcile only by reads. No path replaces or repeats signed bytes. */
|
|
166
|
+
/**
|
|
167
|
+
* Submit once, then reconcile only by reads. No path replaces or repeats signed
|
|
168
|
+
* bytes. Every failure has `transaction` facts with the signed bytes:
|
|
169
|
+
* `transactionNotSubmitted` before dispatch, otherwise
|
|
170
|
+
* `transactionOutcomeUnknown`. `wasDispatched` reports whether these bytes have
|
|
171
|
+
* been sent, by this call or an earlier one; when it is `true`, no failure is
|
|
172
|
+
* `notSubmitted`.
|
|
173
|
+
*/
|
|
189
174
|
declare function submitAndObserve(client: Pick<CoreThruputClient, "waitForTransactionReceipt">, evidence: SubmissionEvidence, submit: (signal: AbortSignal) => Promise<void>, options?: WaitForTransactionReceiptOptions, wasDispatched?: () => boolean): Promise<ExecutionResult>;
|
|
190
175
|
/** Wait for a committed receipt, then require execution success. */
|
|
191
176
|
declare function waitForExecution(client: Pick<CoreThruputClient, "waitForTransactionReceipt">, hash: Uint8Array, options?: WaitForTransactionReceiptOptions): Promise<ExecutionResult>;
|
|
@@ -199,18 +184,6 @@ type CallResults<T extends readonly ContractCall[]> = { [K in keyof T]: T[K] ext
|
|
|
199
184
|
* even a single child call does not establish where an abort originated.
|
|
200
185
|
*/
|
|
201
186
|
declare function decodeExecution<T extends readonly ContractCall[]>(receipt: TransactionReceipt, calls: T, adapter?: WalletInvocationAdapter, submission?: SubmissionEvidence): CallResults<T>;
|
|
202
|
-
/** A committed successful execution whose return data could not be decoded. */
|
|
203
|
-
declare class ExecutionDecodeError extends Error {
|
|
204
|
-
readonly receipt: TransactionReceipt;
|
|
205
|
-
readonly submission?: SubmissionEvidence | undefined;
|
|
206
|
-
constructor(receipt: TransactionReceipt, cause: unknown, submission?: SubmissionEvidence | undefined);
|
|
207
|
-
}
|
|
208
|
-
/** Execution succeeded, but this wallet does not preserve child return buffers. */
|
|
209
|
-
declare class ExecutionReturnUnavailableError extends Error {
|
|
210
|
-
readonly receipt: TransactionReceipt;
|
|
211
|
-
readonly submission?: SubmissionEvidence | undefined;
|
|
212
|
-
constructor(receipt: TransactionReceipt, submission?: SubmissionEvidence | undefined);
|
|
213
|
-
}
|
|
214
187
|
/**
|
|
215
188
|
* Sum explicit child budgets and a calibrated wallet overhead, checking u64 bounds.
|
|
216
189
|
* This is not gas estimation. Calibrate budgets against the target runtime and
|
|
@@ -223,5 +196,5 @@ declare function walletGasLimit(calls: readonly {
|
|
|
223
196
|
gas_limit: GasAmount;
|
|
224
197
|
}[], overhead: GasAmount): GasAmount;
|
|
225
198
|
//#endregion
|
|
226
|
-
export {
|
|
227
|
-
//# sourceMappingURL=execution-
|
|
199
|
+
export { CreatePubkeyAccountOptions as C, WalletAccount as D, SourceAddressAccount as E, createPubkeyAccount as O, prepareTransaction as S, PubkeyAccount as T, DeploymentOptions as _, decodeExecution as a, rv32Contract as b, walletGasLimit as c, WalletInvocationAdapter as d, createDefaultWalletBatchInvocation as f, ContractDeployment as g, devWalletAdapter as h, assertTransactionSuccess as i, createSourceAddressAccount as k, WalletBatchExecutionRequest as l, defineWalletInvocationAdapter as m, ExecutionResult as n, submitAndObserve as o, defaultWalletAdapter as p, assertTransactionAdmission as r, waitForExecution as s, CallResults as t, WalletExecutionRequest as u, decodeDeployment as v, CreateSourceAddressAccountOptions as w, PrepareTransactionRequest as x, prepareContractDeployment as y };
|
|
200
|
+
//# sourceMappingURL=execution-pSt6k620.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-pSt6k620.d.cts","names":[],"sources":["../src/wallet/account.ts","../src/actions/wallet/prepareTransaction.ts","../src/wallet/deployment.ts","../src/wallet/invocationAdapter.ts","../src/wallet/execution.ts"],"mappings":";;;;;;UA2BU,iBAAA;EAAA,SACC,OAAA,EAAS,eAAA;EAAA,SACT,SAAA,EAAW,SAAA;EAAA,SACX,OAAA,WAAkB,WAAA;AAAA;;;;;;;UASZ,aAAA,SAAsB,iBAAA;EAAA,SAC5B,IAAA;EAAA,SACA,KAAA;EAZW;EAAA,SAcX,SAAA,EAAW,SAAA;EAAA,SACX,SAAA,EAAW,OAAA,CAClB,SAAA;IACE,UAAA,EAAY,aAAA,CAAc,gBAAA;EAAA;AAAA;;UAKf,oBAAA,SAA6B,iBAAA;EAAA,SACnC,IAAA;EAAA,SACA,SAAA,EAAW,OAAA,CAClB,SAAA;IACE,UAAA,EAAY,aAAA,CAAc,sBAAA;EAAA;AAAA;;KAKpB,aAAA,GAAgB,aAAA,GAAgB,oBAAoB;;UAG/C,0BAAA;EAAA,SACN,MAAA,EAAQ,MAAM;EArBd;EAAA,SAuBA,KAAA;AAAA;;UAIM,iCAAA;EAAA,SACN,OAAA,EAAS,eAAA;EAAA,SACT,OAAA,WAAkB,WAAA;EAAA,SAClB,WAAA,EAAa,MAAA;EAAA,SACb,cAAA,EAAgB,MAAA;AAAA;AAvB3B;AAAA,iBA2BgB,mBAAA,CACd,OAAA,EAAS,0BAAA,GACR,aAAa;;iBAuCA,0BAAA,CACd,OAAA,EAAS,iCAAA,GACR,oBAAoB;;;;UCtGN,yBAAA;;WAEN,UAAA,EAAY,UAAA;EAAA,SACZ,iBAAA,YAA6B,QAAA;EAAA,SAC7B,KAAA;EAAA,SACA,iBAAA,GAAoB,WAAA;EAAA,SACpB,YAAA;AAAA;;iBAIW,kBAAA,CACpB,MAAA,EAAQ,IAAA,CAAK,iBAAA,kBACb,OAAA,EAAS,IAAA,CAAK,aAAA,4BACd,OAAA,EAAS,yBAAA,GACR,OAAA,CAAQ,WAAA;;;;UCJM,kBAAA;EAA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B,QAAA,EAAU,SAAA,GACT,SAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $t as WaitForTransactionReceiptOptions, Bn as TransactionReceipt, Yt as KnownCommitment, a as ContractCall, k as CoreThruputClient } from "./readViews-nV3jbpYc.js";
|
|
1
|
+
import { N as ContractCall, Oi as RpcSendTransactionResult, b as SubmissionEvidence, dr as TransactionReceipt, nt as CoreThruputClient, wn as WaitForTransactionReceiptOptions } from "./requestAirdrop-DBCOST2B.js";
|
|
3
2
|
import { t as Signer } from "./types-BE40oD_Q.js";
|
|
4
3
|
import { t as SignerEntry } from "./sign-Ve0eetRO.js";
|
|
5
4
|
import { AuthClaim, AuthClaimType, BitMap, BlockHeight, Contract, ContractAddress, GasAmount, Invocation, PublicKey, SHA256Hash, Transaction, Weight } from "@thruputchain/protocol";
|
|
@@ -141,51 +140,37 @@ declare const defaultWalletAdapter: WalletInvocationAdapter<WalletExecutionReque
|
|
|
141
140
|
declare const devWalletAdapter: WalletInvocationAdapter<WalletExecutionRequest>;
|
|
142
141
|
//#endregion
|
|
143
142
|
//#region src/wallet/execution.d.ts
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/** A future execution variant is unsupported, never inferred to be success or failure. */
|
|
151
|
-
declare class UnsupportedTransactionOutcomeError extends TransactionExecutionError {
|
|
152
|
-
constructor(receipt: TransactionReceipt, submission?: SubmissionEvidence);
|
|
153
|
-
}
|
|
143
|
+
/**
|
|
144
|
+
* Require successful execution. A failed execution throws code
|
|
145
|
+
* `transactionFailed`; an unsupported execution value throws code
|
|
146
|
+
* `transactionOutcomeUnsupported`, never inferred to be success or failure.
|
|
147
|
+
* Both keep the complete receipt in `transaction.receipt`.
|
|
148
|
+
*/
|
|
154
149
|
declare function assertTransactionSuccess(receipt: TransactionReceipt, submission?: SubmissionEvidence): asserts receipt is TransactionReceipt & {
|
|
155
150
|
execution: {
|
|
156
151
|
result: "return";
|
|
157
152
|
returnData: Uint8Array;
|
|
158
153
|
};
|
|
159
154
|
};
|
|
160
|
-
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
declare function assertTransactionAdmission(response: RpcSendTransactionResult): void;
|
|
167
|
-
interface SubmissionEvidence {
|
|
168
|
-
readonly signedTransaction: Uint8Array;
|
|
169
|
-
readonly transactionHash: Uint8Array;
|
|
170
|
-
readonly networkHash: Uint8Array;
|
|
171
|
-
}
|
|
172
|
-
/** Snapshot approved bytes before submission; accessor copies protect the retained record. */
|
|
173
|
-
declare function createSubmissionEvidence(bytes: Uint8Array, network: Uint8Array): SubmissionEvidence;
|
|
155
|
+
/**
|
|
156
|
+
* Keep low-level future values intact, but never project them into an admitted
|
|
157
|
+
* hash. An admission value other than `accepted` throws code
|
|
158
|
+
* `transactionAdmissionUnsupported` with outcome `unknown`.
|
|
159
|
+
*/
|
|
160
|
+
declare function assertTransactionAdmission(response: RpcSendTransactionResult, submission?: SubmissionEvidence): void;
|
|
174
161
|
interface ExecutionResult {
|
|
175
162
|
transactionHash: Uint8Array;
|
|
176
163
|
receipt: TransactionReceipt;
|
|
177
164
|
submission?: SubmissionEvidence;
|
|
178
165
|
}
|
|
179
|
-
/**
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
/** Submit once, then reconcile only by reads. No path replaces or repeats signed bytes. */
|
|
166
|
+
/**
|
|
167
|
+
* Submit once, then reconcile only by reads. No path replaces or repeats signed
|
|
168
|
+
* bytes. Every failure has `transaction` facts with the signed bytes:
|
|
169
|
+
* `transactionNotSubmitted` before dispatch, otherwise
|
|
170
|
+
* `transactionOutcomeUnknown`. `wasDispatched` reports whether these bytes have
|
|
171
|
+
* been sent, by this call or an earlier one; when it is `true`, no failure is
|
|
172
|
+
* `notSubmitted`.
|
|
173
|
+
*/
|
|
189
174
|
declare function submitAndObserve(client: Pick<CoreThruputClient, "waitForTransactionReceipt">, evidence: SubmissionEvidence, submit: (signal: AbortSignal) => Promise<void>, options?: WaitForTransactionReceiptOptions, wasDispatched?: () => boolean): Promise<ExecutionResult>;
|
|
190
175
|
/** Wait for a committed receipt, then require execution success. */
|
|
191
176
|
declare function waitForExecution(client: Pick<CoreThruputClient, "waitForTransactionReceipt">, hash: Uint8Array, options?: WaitForTransactionReceiptOptions): Promise<ExecutionResult>;
|
|
@@ -199,18 +184,6 @@ type CallResults<T extends readonly ContractCall[]> = { [K in keyof T]: T[K] ext
|
|
|
199
184
|
* even a single child call does not establish where an abort originated.
|
|
200
185
|
*/
|
|
201
186
|
declare function decodeExecution<T extends readonly ContractCall[]>(receipt: TransactionReceipt, calls: T, adapter?: WalletInvocationAdapter, submission?: SubmissionEvidence): CallResults<T>;
|
|
202
|
-
/** A committed successful execution whose return data could not be decoded. */
|
|
203
|
-
declare class ExecutionDecodeError extends Error {
|
|
204
|
-
readonly receipt: TransactionReceipt;
|
|
205
|
-
readonly submission?: SubmissionEvidence | undefined;
|
|
206
|
-
constructor(receipt: TransactionReceipt, cause: unknown, submission?: SubmissionEvidence | undefined);
|
|
207
|
-
}
|
|
208
|
-
/** Execution succeeded, but this wallet does not preserve child return buffers. */
|
|
209
|
-
declare class ExecutionReturnUnavailableError extends Error {
|
|
210
|
-
readonly receipt: TransactionReceipt;
|
|
211
|
-
readonly submission?: SubmissionEvidence | undefined;
|
|
212
|
-
constructor(receipt: TransactionReceipt, submission?: SubmissionEvidence | undefined);
|
|
213
|
-
}
|
|
214
187
|
/**
|
|
215
188
|
* Sum explicit child budgets and a calibrated wallet overhead, checking u64 bounds.
|
|
216
189
|
* This is not gas estimation. Calibrate budgets against the target runtime and
|
|
@@ -223,5 +196,5 @@ declare function walletGasLimit(calls: readonly {
|
|
|
223
196
|
gas_limit: GasAmount;
|
|
224
197
|
}[], overhead: GasAmount): GasAmount;
|
|
225
198
|
//#endregion
|
|
226
|
-
export {
|
|
227
|
-
//# sourceMappingURL=execution-
|
|
199
|
+
export { CreatePubkeyAccountOptions as C, WalletAccount as D, SourceAddressAccount as E, createPubkeyAccount as O, prepareTransaction as S, PubkeyAccount as T, DeploymentOptions as _, decodeExecution as a, rv32Contract as b, walletGasLimit as c, WalletInvocationAdapter as d, createDefaultWalletBatchInvocation as f, ContractDeployment as g, devWalletAdapter as h, assertTransactionSuccess as i, createSourceAddressAccount as k, WalletBatchExecutionRequest as l, defineWalletInvocationAdapter as m, ExecutionResult as n, submitAndObserve as o, defaultWalletAdapter as p, assertTransactionAdmission as r, waitForExecution as s, CallResults as t, WalletExecutionRequest as u, decodeDeployment as v, CreateSourceAddressAccountOptions as w, PrepareTransactionRequest as x, prepareContractDeployment as y };
|
|
200
|
+
//# sourceMappingURL=execution-uiuFPV0d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-uiuFPV0d.d.ts","names":[],"sources":["../src/wallet/account.ts","../src/actions/wallet/prepareTransaction.ts","../src/wallet/deployment.ts","../src/wallet/invocationAdapter.ts","../src/wallet/execution.ts"],"mappings":";;;;;;UA2BU,iBAAA;EAAA,SACC,OAAA,EAAS,eAAA;EAAA,SACT,SAAA,EAAW,SAAA;EAAA,SACX,OAAA,WAAkB,WAAA;AAAA;;;;;;;UASZ,aAAA,SAAsB,iBAAA;EAAA,SAC5B,IAAA;EAAA,SACA,KAAA;EAZW;EAAA,SAcX,SAAA,EAAW,SAAA;EAAA,SACX,SAAA,EAAW,OAAA,CAClB,SAAA;IACE,UAAA,EAAY,aAAA,CAAc,gBAAA;EAAA;AAAA;;UAKf,oBAAA,SAA6B,iBAAA;EAAA,SACnC,IAAA;EAAA,SACA,SAAA,EAAW,OAAA,CAClB,SAAA;IACE,UAAA,EAAY,aAAA,CAAc,sBAAA;EAAA;AAAA;;KAKpB,aAAA,GAAgB,aAAA,GAAgB,oBAAoB;;UAG/C,0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;iBAUO,gBAAA,CACpB,MAAA,EAAQ,IAAA,CAAK,iBAAA,gCACb,QAAA,EAAU,kBAAA,EACV,MAAA,GAAS,MAAA,EAAQ,WAAA,KAAgB,OAAA,QACjC,OAAA,GAAU,gCAAA,EACV,aAAA,mBACC,OAAA,CAAQ,eAAA;;iBAiEW,gBAAA,CACpB,MAAA,EAAQ,IAAA,CAAK,iBAAA,gCACb,IAAA,EAAM,UAAA,EACN,OAAA,GAAU,gCAAA,GACT,OAAA,CAAQ,eAAA;;KAOC,WAAA,oBAA+B,YAAA,oBAC7B,CAAA,GAAI,CAAA,CAAE,CAAA,UAAW,YAAA,YAAwB,CAAA;;;;;;;;iBAUvC,eAAA,oBAAmC,YAAA,IACjD,OAAA,EAAS,kBAAA,EACT,KAAA,EAAO,CAAA,EACP,OAAA,GAAS,uBAAA,EACT,UAAA,GAAa,kBAAA,GACZ,WAAA,CAAY,CAAA;;;;;;;;;iBA4CC,cAAA,CACd,KAAA;EAAkB,SAAA,EAAW,SAAA;AAAA,KAC7B,QAAA,EAAU,SAAA,GACT,SAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { contractAddress, fromHex, sha256Hash, toHex } from "@thruputchain/protocol";
|
|
2
1
|
import { base32nopad } from "@scure/base";
|
|
3
2
|
import { fromBase58, fromBase58 as fromBase58$1, maxBase58Length, toBase58 } from "@thruputchain/protocol/utils";
|
|
3
|
+
import { contractAddress, fromHex, sha256Hash, toHex } from "@thruputchain/protocol";
|
|
4
4
|
//#region src/encoding.ts
|
|
5
5
|
const ADDRESS_STRKEY_VERSION = 200;
|
|
6
6
|
/** Decode exactly the expected number of bytes, with no format fallback. */
|
|
@@ -109,4 +109,4 @@ function addressFromHex(hex) {
|
|
|
109
109
|
//#endregion
|
|
110
110
|
export { addressFromBase58 as a, fromBase58$1 as c, parseAddress as d, parsePublicKey as f, toBase58 as g, secretSeedToStrkey as h, toHex0x as i, hashFromBase58 as l, publicKeyToStrkey as m, fromHex0x as n, addressToStrkey as o, parseSecretSeed as p, hashFromHex as r, fixedFromBase58 as s, addressFromHex as t, maxBase58Length as u };
|
|
111
111
|
|
|
112
|
-
//# sourceMappingURL=hex-
|
|
112
|
+
//# sourceMappingURL=hex-B8D-jBgz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hex-
|
|
1
|
+
{"version":3,"file":"hex-B8D-jBgz.js","names":[],"sources":["../src/encoding.ts","../src/actions/hex.ts"],"sourcesContent":["import { base32nopad } from \"@scure/base\";\nimport { fromBase58 } from \"@thruputchain/protocol/utils\";\nimport { contractAddress, sha256Hash } from \"@thruputchain/protocol\";\nimport type { ContractAddress, SHA256Hash } from \"@thruputchain/protocol\";\n\nconst ADDRESS_STRKEY_VERSION = 25 << 3;\n\nexport {\n toBase58,\n fromBase58,\n maxBase58Length,\n} from \"@thruputchain/protocol/utils\";\n\n/** Decode exactly the expected number of bytes, with no format fallback. */\nexport function fixedFromBase58(text: string, byteLength: number): Uint8Array {\n const bytes = fromBase58(text, byteLength);\n if (bytes.length !== byteLength) {\n bytes.fill(0);\n throw new Error(`Expected ${byteLength} bytes`);\n }\n return bytes;\n}\n\n/** Decode a canonical base58 Thruput address, without account derivation. */\nexport function addressFromBase58(text: string): ContractAddress {\n return contractAddress(fixedFromBase58(text, 32));\n}\n\n/** Decode a canonical base58 SHA-256 hash. */\nexport function hashFromBase58(text: string): SHA256Hash {\n return sha256Hash(fixedFromBase58(text, 32));\n}\n\n// SEP-23 CRC16-XModem: polynomial 0x1021, initial value zero, little-endian\n// checksum bytes. This is typo detection, not cryptographic authentication.\nfunction checksum(bytes: Uint8Array): number {\n let crc = 0;\n for (const byte of bytes) {\n crc ^= byte << 8;\n for (let bit = 0; bit < 8; bit++) {\n crc = ((crc << 1) ^ (crc & 0x8000 ? 0x1021 : 0)) & 0xffff;\n }\n }\n return crc;\n}\n\nfunction strkey(bytes: Uint8Array, version: number): string {\n if (bytes.length !== 32) throw new Error(\"Expected 32 bytes\");\n const encoded = new Uint8Array(35);\n try {\n encoded[0] = version;\n encoded.set(bytes, 1);\n const crc = checksum(encoded.subarray(0, 33));\n encoded[33] = crc & 0xff;\n encoded[34] = crc >>> 8;\n return base32nopad.encode(encoded);\n } finally {\n encoded.fill(0);\n }\n}\n\nfunction parseTyped(text: string, version: number, prefix: string): Uint8Array {\n // A 32-byte base58 value is at most 44 characters. Z/G/S StrKeys have 56.\n // Dispatch by full length, never by a prefix that valid base58 can share.\n if (typeof text === \"string\" && text.length === 56) {\n let decoded: Uint8Array | undefined;\n try {\n decoded = base32nopad.decode(text);\n if (\n decoded.length === 35 &&\n decoded[0] === version &&\n base32nopad.encode(decoded) === text &&\n checksum(decoded.subarray(0, 33)) ===\n (decoded[33]! | (decoded[34]! << 8))\n ) {\n return decoded.slice(1, 33);\n }\n } catch {\n // Return the same redacted error for malformed and wrong-type StrKeys.\n } finally {\n decoded?.fill(0);\n }\n } else {\n try {\n return fixedFromBase58(text, 32);\n } catch {\n // Do not expose input (which may be a secret seed) in errors.\n }\n }\n throw new Error(\n `Expected a 32-byte base58 value or a valid ${prefix} StrKey`,\n );\n}\n\n/**\n * Parse human address input: base58 or Thruput Z StrKey, without account derivation.\n * Stellar C addresses are rejected. Z does not identify a specific Thruput network.\n */\nexport function parseAddress(text: string): ContractAddress {\n return contractAddress(parseTyped(text, ADDRESS_STRKEY_VERSION, \"Z\"));\n}\n\n/** Parse human Ed25519 key input: base58 or G StrKey, never a wallet address. */\nexport function parsePublicKey(text: string): Uint8Array {\n return parseTyped(text, 6 << 3, \"G\");\n}\n\n/**\n * Explicitly import a 32-byte Ed25519 seed from base58 or S StrKey.\n * Callers must clear returned bytes after use. JavaScript input strings cannot\n * be reliably erased; do not log or persist them in diagnostics.\n */\nexport function parseSecretSeed(text: string): Uint8Array {\n return parseTyped(text, 18 << 3, \"S\");\n}\n\n/** Render address bytes as a Thruput Z StrKey, without a specific network identity. */\nexport function addressToStrkey(bytes: Uint8Array): string {\n return strkey(bytes, ADDRESS_STRKEY_VERSION);\n}\n\n/** Render an Ed25519 public key as a G StrKey, without deriving an address. */\nexport function publicKeyToStrkey(bytes: Uint8Array): string {\n return strkey(bytes, 6 << 3);\n}\n\n/** Explicitly export a seed as an S StrKey. Treat the returned string as secret. */\nexport function secretSeedToStrkey(bytes: Uint8Array): string {\n return strkey(bytes, 18 << 3);\n}\n","import type { SHA256Hash, ContractAddress } from \"@thruputchain/protocol\";\nimport {\n toHex,\n fromHex,\n sha256Hash,\n contractAddress,\n} from \"@thruputchain/protocol\";\n\nexport { toHex, fromHex } from \"@thruputchain/protocol\";\n\n/** Convert bytes to a `0x`-prefixed lowercase hex string. */\nexport function toHex0x(bytes: Uint8Array): string {\n return \"0x\" + toHex(bytes);\n}\n\n/** Decode a `0x`-prefixed hex string into bytes. */\nexport function fromHex0x(hex: string): Uint8Array {\n if (!hex.startsWith(\"0x\"))\n throw new Error(`Expected 0x-prefixed hex string, got: ${hex}`);\n return fromHex(hex.slice(2));\n}\n\n/** Decode a `0x`-prefixed hex string into a protocol SHA-256 hash. */\nexport function hashFromHex(hex: string): SHA256Hash {\n return sha256Hash(fromHex0x(hex));\n}\n\n/** Decode a `0x`-prefixed hex string into a contract address. */\nexport function addressFromHex(hex: string): ContractAddress {\n return contractAddress(fromHex0x(hex));\n}\n"],"mappings":";;;;AAKA,MAAM,yBAAyB;;AAS/B,SAAgB,gBAAgB,MAAc,YAAgC;CAC5E,MAAM,QAAQ,WAAW,MAAM,UAAU;CACzC,IAAI,MAAM,WAAW,YAAY;EAC/B,MAAM,KAAK,CAAC;EACZ,MAAM,IAAI,MAAM,YAAY,WAAW,OAAO;CAChD;CACA,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAA+B;CAC/D,OAAO,gBAAgB,gBAAgB,MAAM,EAAE,CAAC;AAClD;;AAGA,SAAgB,eAAe,MAA0B;CACvD,OAAO,WAAW,gBAAgB,MAAM,EAAE,CAAC;AAC7C;AAIA,SAAS,SAAS,OAA2B;CAC3C,IAA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MAA0B;CACxD,OAAO,WAAW,MAAM,KAAS,GAAG;AACtC;;AAGA,SAAgB,gBAAgB,OAA2B;CACzD,OAAO,OAAO,OAAO,sBAAsB;AAC7C;;AAGA,SAAgB,kBAAkB,OAA2B;CAC3D,OAAO,OAAO,OAAO,EAAM;AAC7B;;AAGA,SAAgB,mBAAmB,OAA2B;CAC5D,OAAO,OAAO,OAAO,GAAO;AAC9B;;;;ACtHA,SAAgB,QAAQ,OAA2B;CACjD,OAAO,OAAO,MAAM,KAAK;AAC3B;;AAGA,SAAgB,UAAU,KAAyB;CACjD,IAAI,CAAC,IAAI,WAAW,IAAI,GACtB,MAAM,IAAI,MAAM,yCAAyC,KAAK;CAChE,OAAO,QAAQ,IAAI,MAAM,CAAC,CAAC;AAC7B;;AAGA,SAAgB,YAAY,KAAyB;CACnD,OAAO,WAAW,UAAU,GAAG,CAAC;AAClC;;AAGA,SAAgB,eAAe,KAA8B;CAC3D,OAAO,gBAAgB,UAAU,GAAG,CAAC;AACvC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
let _thruputchain_protocol = require("@thruputchain/protocol");
|
|
2
1
|
let _scure_base = require("@scure/base");
|
|
3
2
|
let _thruputchain_protocol_utils = require("@thruputchain/protocol/utils");
|
|
3
|
+
let _thruputchain_protocol = require("@thruputchain/protocol");
|
|
4
4
|
//#region src/encoding.ts
|
|
5
5
|
const ADDRESS_STRKEY_VERSION = 200;
|
|
6
6
|
/** Decode exactly the expected number of bytes, with no format fallback. */
|
|
@@ -186,4 +186,4 @@ Object.defineProperty(exports, "toHex0x", {
|
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
//# sourceMappingURL=hex-
|
|
189
|
+
//# sourceMappingURL=hex-CSDZ9d6z.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hex-
|
|
1
|
+
{"version":3,"file":"hex-CSDZ9d6z.cjs","names":["base32nopad"],"sources":["../src/encoding.ts","../src/actions/hex.ts"],"sourcesContent":["import { base32nopad } from \"@scure/base\";\nimport { fromBase58 } from \"@thruputchain/protocol/utils\";\nimport { contractAddress, sha256Hash } from \"@thruputchain/protocol\";\nimport type { ContractAddress, SHA256Hash } from \"@thruputchain/protocol\";\n\nconst ADDRESS_STRKEY_VERSION = 25 << 3;\n\nexport {\n toBase58,\n fromBase58,\n maxBase58Length,\n} from \"@thruputchain/protocol/utils\";\n\n/** Decode exactly the expected number of bytes, with no format fallback. */\nexport function fixedFromBase58(text: string, byteLength: number): Uint8Array {\n const bytes = fromBase58(text, byteLength);\n if (bytes.length !== byteLength) {\n bytes.fill(0);\n throw new Error(`Expected ${byteLength} bytes`);\n }\n return bytes;\n}\n\n/** Decode a canonical base58 Thruput address, without account derivation. */\nexport function addressFromBase58(text: string): ContractAddress {\n return contractAddress(fixedFromBase58(text, 32));\n}\n\n/** Decode a canonical base58 SHA-256 hash. */\nexport function hashFromBase58(text: string): SHA256Hash {\n return sha256Hash(fixedFromBase58(text, 32));\n}\n\n// SEP-23 CRC16-XModem: polynomial 0x1021, initial value zero, little-endian\n// checksum bytes. This is typo detection, not cryptographic authentication.\nfunction checksum(bytes: Uint8Array): number {\n let crc = 0;\n for (const byte of bytes) {\n crc ^= byte << 8;\n for (let bit = 0; bit < 8; bit++) {\n crc = ((crc << 1) ^ (crc & 0x8000 ? 0x1021 : 0)) & 0xffff;\n }\n }\n return crc;\n}\n\nfunction strkey(bytes: Uint8Array, version: number): string {\n if (bytes.length !== 32) throw new Error(\"Expected 32 bytes\");\n const encoded = new Uint8Array(35);\n try {\n encoded[0] = version;\n encoded.set(bytes, 1);\n const crc = checksum(encoded.subarray(0, 33));\n encoded[33] = crc & 0xff;\n encoded[34] = crc >>> 8;\n return base32nopad.encode(encoded);\n } finally {\n encoded.fill(0);\n }\n}\n\nfunction parseTyped(text: string, version: number, prefix: string): Uint8Array {\n // A 32-byte base58 value is at most 44 characters. Z/G/S StrKeys have 56.\n // Dispatch by full length, never by a prefix that valid base58 can share.\n if (typeof text === \"string\" && text.length === 56) {\n let decoded: Uint8Array | undefined;\n try {\n decoded = base32nopad.decode(text);\n if (\n decoded.length === 35 &&\n decoded[0] === version &&\n base32nopad.encode(decoded) === text &&\n checksum(decoded.subarray(0, 33)) ===\n (decoded[33]! | (decoded[34]! << 8))\n ) {\n return decoded.slice(1, 33);\n }\n } catch {\n // Return the same redacted error for malformed and wrong-type StrKeys.\n } finally {\n decoded?.fill(0);\n }\n } else {\n try {\n return fixedFromBase58(text, 32);\n } catch {\n // Do not expose input (which may be a secret seed) in errors.\n }\n }\n throw new Error(\n `Expected a 32-byte base58 value or a valid ${prefix} StrKey`,\n );\n}\n\n/**\n * Parse human address input: base58 or Thruput Z StrKey, without account derivation.\n * Stellar C addresses are rejected. Z does not identify a specific Thruput network.\n */\nexport function parseAddress(text: string): ContractAddress {\n return contractAddress(parseTyped(text, ADDRESS_STRKEY_VERSION, \"Z\"));\n}\n\n/** Parse human Ed25519 key input: base58 or G StrKey, never a wallet address. */\nexport function parsePublicKey(text: string): Uint8Array {\n return parseTyped(text, 6 << 3, \"G\");\n}\n\n/**\n * Explicitly import a 32-byte Ed25519 seed from base58 or S StrKey.\n * Callers must clear returned bytes after use. JavaScript input strings cannot\n * be reliably erased; do not log or persist them in diagnostics.\n */\nexport function parseSecretSeed(text: string): Uint8Array {\n return parseTyped(text, 18 << 3, \"S\");\n}\n\n/** Render address bytes as a Thruput Z StrKey, without a specific network identity. */\nexport function addressToStrkey(bytes: Uint8Array): string {\n return strkey(bytes, ADDRESS_STRKEY_VERSION);\n}\n\n/** Render an Ed25519 public key as a G StrKey, without deriving an address. */\nexport function publicKeyToStrkey(bytes: Uint8Array): string {\n return strkey(bytes, 6 << 3);\n}\n\n/** Explicitly export a seed as an S StrKey. Treat the returned string as secret. */\nexport function secretSeedToStrkey(bytes: Uint8Array): string {\n return strkey(bytes, 18 << 3);\n}\n","import type { SHA256Hash, ContractAddress } from \"@thruputchain/protocol\";\nimport {\n toHex,\n fromHex,\n sha256Hash,\n contractAddress,\n} from \"@thruputchain/protocol\";\n\nexport { toHex, fromHex } from \"@thruputchain/protocol\";\n\n/** Convert bytes to a `0x`-prefixed lowercase hex string. */\nexport function toHex0x(bytes: Uint8Array): string {\n return \"0x\" + toHex(bytes);\n}\n\n/** Decode a `0x`-prefixed hex string into bytes. */\nexport function fromHex0x(hex: string): Uint8Array {\n if (!hex.startsWith(\"0x\"))\n throw new Error(`Expected 0x-prefixed hex string, got: ${hex}`);\n return fromHex(hex.slice(2));\n}\n\n/** Decode a `0x`-prefixed hex string into a protocol SHA-256 hash. */\nexport function hashFromHex(hex: string): SHA256Hash {\n return sha256Hash(fromHex0x(hex));\n}\n\n/** Decode a `0x`-prefixed hex string into a contract address. */\nexport function addressFromHex(hex: string): ContractAddress {\n return contractAddress(fromHex0x(hex));\n}\n"],"mappings":";;;;AAKA,MAAM,yBAAyB;;AAS/B,SAAgB,gBAAgB,MAAc,YAAgC;CAC5E,MAAM,SAAA,GAAA,6BAAA,WAAA,CAAmB,MAAM,UAAU;CACzC,IAAI,MAAM,WAAW,YAAY;EAC/B,MAAM,KAAK,CAAC;EACZ,MAAM,IAAI,MAAM,YAAY,WAAW,OAAO;CAChD;CACA,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAA+B;CAC/D,QAAA,GAAA,uBAAA,gBAAA,CAAuB,gBAAgB,MAAM,EAAE,CAAC;AAClD;;AAGA,SAAgB,eAAe,MAA0B;CACvD,QAAA,GAAA,uBAAA,WAAA,CAAkB,gBAAgB,MAAM,EAAE,CAAC;AAC7C;AAIA,SAAS,SAAS,OAA2B;CAC3C,IAAI,MAAM;CACV,KAAK,MAAM,QAAQ,OAAO;EACxB,OAAO,QAAQ;EACf,KAAK,IAAI,MAAM,GAAG,MAAM,GAAG,OACzB,OAAQ,OAAO,KAAM,MAAM,QAAS,OAAS,MAAM;CAEvD;CACA,OAAO;AACT;AAEA,SAAS,OAAO,OAAmB,SAAyB;CAC1D,IAAI,MAAM,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M;AAC7B;;AAGA,SAAgB,mBAAmB,OAA2B;CAC5D,OAAO,OAAO,OAAO,GAAO;AAC9B;;;;ACtHA,SAAgB,QAAQ,OAA2B;CACjD,OAAO,QAAA,GAAA,uBAAA,MAAA,CAAa,KAAK;AAC3B;;AAGA,SAAgB,UAAU,KAAyB;CACjD,IAAI,CAAC,IAAI,WAAW,IAAI,GACtB,MAAM,IAAI,MAAM,yCAAyC,KAAK;CAChE,QAAA,GAAA,uBAAA,QAAA,CAAe,IAAI,MAAM,CAAC,CAAC;AAC7B;;AAGA,SAAgB,YAAY,KAAyB;CACnD,QAAA,GAAA,uBAAA,WAAA,CAAkB,UAAU,GAAG,CAAC;AAClC;;AAGA,SAAgB,eAAe,KAA8B;CAC3D,QAAA,GAAA,uBAAA,gBAAA,CAAuB,UAAU,GAAG,CAAC;AACvC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { A as WalletProvider, D as SubmitTransactionResult, E as SignTransactionResult, O as WalletAccount$1, k as WalletCapabilities } from "./index-CIHK7Ew9.cjs";
|
|
1
|
+
import { $ as AirdropActions, Fn as BalanceResponse, Mn as AirdropSucceeded, N as ContractCall, b as SubmissionEvidence, cn as TransportRequestOptions, nt as CoreThruputClient, t as RequestAirdropOptions, wn as WaitForTransactionReceiptOptions } from "./requestAirdrop-DBCOST2B.js";
|
|
2
|
+
import { a as WalletCapabilities, i as WalletAccount, n as SignTransactionResult, o as WalletProvider, r as SubmitTransactionResult } from "./types-VYjJcTip.js";
|
|
3
|
+
import { D as WalletAccount$1, E as SourceAddressAccount, T as PubkeyAccount, _ as DeploymentOptions, d as WalletInvocationAdapter, g as ContractDeployment, l as WalletBatchExecutionRequest, n as ExecutionResult, t as CallResults, u as WalletExecutionRequest, x as PrepareTransactionRequest } from "./execution-uiuFPV0d.js";
|
|
5
4
|
import { ContractAddress, GasAmount, NetworkHash, SHA256Hash, SignedTransaction, Transaction } from "@thruputchain/protocol";
|
|
6
5
|
|
|
7
6
|
//#region src/wallet/providerClient.d.ts
|
|
@@ -9,7 +8,7 @@ import { ContractAddress, GasAmount, NetworkHash, SHA256Hash, SignedTransaction,
|
|
|
9
8
|
type PrepareBatchExecutionRequest = WalletBatchExecutionRequest & Omit<PrepareExecutionRequest, "invocation">;
|
|
10
9
|
/** Exact signed evidence available before broadcasting. Persist on the original network. */
|
|
11
10
|
interface PendingWalletTransaction extends SignTransactionResult {
|
|
12
|
-
readonly account: WalletAccount
|
|
11
|
+
readonly account: WalletAccount;
|
|
13
12
|
readonly networkHash: string;
|
|
14
13
|
}
|
|
15
14
|
/** Lifecycle controls. Cancellation can prevent dispatch; it never cancels a broadcast already sent. */
|
|
@@ -37,18 +36,21 @@ interface CreateProviderWalletClientOptions {
|
|
|
37
36
|
/** Live external provider with an already authorized session. */
|
|
38
37
|
provider: WalletProvider;
|
|
39
38
|
/** Wire pubkey account from the provider subpath, snapshotted at construction. */
|
|
40
|
-
account: WalletAccount
|
|
39
|
+
account: WalletAccount;
|
|
41
40
|
/** Trusted application network identity: 32-byte base58; must match the session exactly. */
|
|
42
41
|
networkHash: string;
|
|
43
42
|
}
|
|
44
43
|
/**
|
|
45
44
|
* Explicit prepare/sign/persist/submit flow without access to a raw signer.
|
|
46
|
-
*
|
|
45
|
+
* Errors are `ThruputError`s with named codes: provider code 4001 becomes
|
|
46
|
+
* `userRejected`, and the others become `wallet*` codes, with the wire code in
|
|
47
|
+
* `context.providerCode`. Allows one in-flight operation; concurrent calls fail
|
|
48
|
+
* with code `walletRequestPending` (provider code -32002). Checks
|
|
47
49
|
* `getSession` before each operation and permanently invalidates on every `change`,
|
|
48
50
|
* a failed session read, or a mismatched session. Dispose and recreate after a
|
|
49
51
|
* change or reconnect; there is no automatic reconnect or retry.
|
|
50
52
|
*
|
|
51
|
-
* @see https://
|
|
53
|
+
* @see https://www.thruput.network/docs/typescript/wallet-integration/
|
|
52
54
|
*/
|
|
53
55
|
interface ProviderWalletClient {
|
|
54
56
|
/** Prepare a root deployment, preserving the explicit signing boundary. */
|
|
@@ -63,7 +65,7 @@ interface ProviderWalletClient {
|
|
|
63
65
|
executeCallsAndWait<T extends readonly ContractCall[]>(request: ExecuteCallsRequest<T>, options: ProviderExecutionOptions): Promise<ExecutionResult & {
|
|
64
66
|
values: CallResults<T>;
|
|
65
67
|
}>;
|
|
66
|
-
/** Read fresh account/network capabilities; only 4200 falls back to unsupported. */
|
|
68
|
+
/** Read fresh account/network capabilities; only provider code 4200 falls back to unsupported. */
|
|
67
69
|
getCapabilities(): Promise<WalletCapabilities>;
|
|
68
70
|
/** Prepare one atomic batch after checking support. Does not sign or submit. */
|
|
69
71
|
prepareBatchExecution(request: PrepareBatchExecutionRequest): Promise<Transaction>;
|
|
@@ -92,10 +94,11 @@ interface ProviderWalletClient {
|
|
|
92
94
|
* fails; the adapter never retries. Returns a broadcast acknowledgement, not an
|
|
93
95
|
* execution receipt, and verifies its hash against the approved result.
|
|
94
96
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* or
|
|
97
|
+
* Every failure has `transaction` facts. When `transaction.outcome` is
|
|
98
|
+
* `unknown`, the bytes may have been broadcast: keep the persisted hash and
|
|
99
|
+
* query status/receipt on the original network; do not automatically prepare,
|
|
100
|
+
* sign, or execute a replacement transaction. A timeout, session change, or
|
|
101
|
+
* invalid response can occur after broadcast. See the factory's persistence example.
|
|
99
102
|
*/
|
|
100
103
|
submitTransaction(signed: SignTransactionResult): Promise<SubmitTransactionResult>;
|
|
101
104
|
/**
|
|
@@ -171,8 +174,8 @@ interface ProviderWalletClient {
|
|
|
171
174
|
* }
|
|
172
175
|
* ```
|
|
173
176
|
*
|
|
174
|
-
* @see https://
|
|
175
|
-
* @see https://
|
|
177
|
+
* @see https://www.thruput.network/docs/typescript/wallet-integration/
|
|
178
|
+
* @see https://www.thruput.network/docs/typescript/reference/wallet-provider/
|
|
176
179
|
*/
|
|
177
180
|
declare function createProviderWalletClient(options: CreateProviderWalletClientOptions): ProviderWalletClient;
|
|
178
181
|
//#endregion
|
|
@@ -182,7 +185,7 @@ type WalletRequestAirdropOptions = Omit<RequestAirdropOptions, "recipient"> & {
|
|
|
182
185
|
readonly recipient?: ContractAddress;
|
|
183
186
|
};
|
|
184
187
|
/** Signer-bound transaction and account actions. */
|
|
185
|
-
interface WalletActions<TAccount extends WalletAccount = WalletAccount> {
|
|
188
|
+
interface WalletActions<TAccount extends WalletAccount$1 = WalletAccount$1> {
|
|
186
189
|
readonly account: TAccount;
|
|
187
190
|
getBalance(request?: {
|
|
188
191
|
address?: Uint8Array;
|
|
@@ -220,9 +223,9 @@ interface WalletAirdropActions {
|
|
|
220
223
|
requestAirdrop(options?: WalletRequestAirdropOptions): Promise<AirdropSucceeded>;
|
|
221
224
|
}
|
|
222
225
|
/** Existing client methods plus signer-bound wallet actions. */
|
|
223
|
-
type WalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount = WalletAccount> = Omit<TClient, "getBalance" | "requestAirdrop" | "account" | "prepareTransaction" | "signTransaction" | "sendInvocation" | "prepareExecution" | "execute"> & WalletActions<TAccount> & (TClient extends AirdropActions ? WalletAirdropActions : object);
|
|
226
|
+
type WalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount$1 = WalletAccount$1> = Omit<TClient, "getBalance" | "requestAirdrop" | "account" | "prepareTransaction" | "signTransaction" | "sendInvocation" | "prepareExecution" | "execute"> & WalletActions<TAccount> & (TClient extends AirdropActions ? WalletAirdropActions : object);
|
|
224
227
|
/** Wallet client with adapter-aware inner invocation execution. */
|
|
225
|
-
type ExecutableWalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount = WalletAccount, TRequest extends WalletExecutionRequest = WalletExecutionRequest> = WalletClient<TClient, TAccount> & WalletExecutionActions<TRequest>;
|
|
228
|
+
type ExecutableWalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount$1 = WalletAccount$1, TRequest extends WalletExecutionRequest = WalletExecutionRequest> = WalletClient<TClient, TAccount> & WalletExecutionActions<TRequest>;
|
|
226
229
|
/** Signing-network input inferred from whether a client has validated identity. */
|
|
227
230
|
type WalletNetworkOptions<TClient extends CoreThruputClient> = TClient extends {
|
|
228
231
|
readonly network: {
|
|
@@ -234,7 +237,7 @@ type WalletNetworkOptions<TClient extends CoreThruputClient> = TClient extends {
|
|
|
234
237
|
/** Signing network required when the client has no validated identity. */readonly networkHash: NetworkHash;
|
|
235
238
|
};
|
|
236
239
|
/** Decorate an existing client with signer-bound wallet behavior. */
|
|
237
|
-
declare function createWalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount, TRequest extends WalletExecutionRequest>(options: {
|
|
240
|
+
declare function createWalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount$1, TRequest extends WalletExecutionRequest>(options: {
|
|
238
241
|
readonly client: TClient;
|
|
239
242
|
readonly account: TAccount;
|
|
240
243
|
readonly onSigned?: (submission: SubmissionEvidence) => void | Promise<void>;
|
|
@@ -252,7 +255,7 @@ declare function createWalletClient<TClient extends CoreThruputClient, TAccount
|
|
|
252
255
|
readonly onSigned?: (submission: SubmissionEvidence) => void | Promise<void>;
|
|
253
256
|
readonly invocationAdapter?: undefined;
|
|
254
257
|
} & WalletNetworkOptions<TClient>): WalletClient<TClient, TAccount>;
|
|
255
|
-
declare function createWalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount>(options: {
|
|
258
|
+
declare function createWalletClient<TClient extends CoreThruputClient, TAccount extends WalletAccount$1>(options: {
|
|
256
259
|
readonly client: TClient;
|
|
257
260
|
readonly account: TAccount;
|
|
258
261
|
readonly onSigned?: (submission: SubmissionEvidence) => void | Promise<void>;
|
|
@@ -260,4 +263,4 @@ declare function createWalletClient<TClient extends CoreThruputClient, TAccount
|
|
|
260
263
|
} & WalletNetworkOptions<TClient>): WalletClient<TClient, TAccount>;
|
|
261
264
|
//#endregion
|
|
262
265
|
export { WalletClient as a, WalletRequestAirdropOptions as c, ExecuteCallsRequest as d, PendingWalletTransaction as f, createProviderWalletClient as g, ProviderWalletClient as h, WalletAirdropActions as i, createWalletClient as l, ProviderExecutionOptions as m, PrepareExecutionRequest as n, WalletExecutionActions as o, PrepareBatchExecutionRequest as p, WalletActions as r, WalletNetworkOptions as s, ExecutableWalletClient as t, CreateProviderWalletClientOptions as u };
|
|
263
|
-
//# sourceMappingURL=index-
|
|
266
|
+
//# sourceMappingURL=index-B1efA-Y_.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B1efA-Y_.d.ts","names":[],"sources":["../src/wallet/providerClient.ts","../src/wallet/client.ts"],"mappings":";;;;;;;KAyEY,4BAAA,GAA+B,2BAAA,GACzC,IAAA,CAAK,uBAAA;;UAGU,wBAAA,SAAiC,qBAAqB;EAAA,SAC5D,OAAA,EAAS,aAAA;EAAA,SACT,WAAA;AAAA;;UAIM,wBAAA;EATa;EAW5B,QAAA,GAAW,OAAA,EAAS,wBAAA,YAAoC,OAAA;EARzC;EAUf,IAAA,GAAO,gCAAA;AAAA;;UAIQ,mBAAA,oBAAuC,YAAA;EACtD,KAAA,EAAO,CAAA;EACP,QAAA,EAAU,SAAA;EACV,iBAAA,GAAoB,uBAAA;EACpB,YAAA;AAAA;AAZF;AAAA,UAgBiB,iCAAA;;;;;;EAMf,MAAA,EAAQ,iBAAA;EApBR;EAsBA,QAAA,EAAU,cAAA;EAtBC;EAwBX,OAAA,EAAS,aAAA;EAtBT;EAwBA,WAAA;AAAA;AAxBuC;AAIzC;;;;;;;;;;;AAJyC,UAuCxB,oBAAA;EAlCR;EAoCP,iBAAA,CACE,UAAA,EAAY,kBAAA,EACZ,OAAA,EAAS,iBAAA,GACR,OAAA,CAAQ,WAAA;EAtCD;EAwCV,qBAAA,CACE,UAAA,EAAY,kBAAA,EACZ,OAAA,EAAS,iBAAA,EACT,QAAA,EAAU,wBAAA,GACT,OAAA,CACD,eAAA;IACE,OAAA,mCAA0C,eAAA;EAAA;EA5ClC;E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AY,kBAAA,YACF,OAAA;EAAA,SACH,iBAAA;AAAA,IACP,oBAAA,CAAqB,OAAA,IACxB,YAAA,CAAa,OAAA,EAAS,QAAA"}
|
|
@@ -1,37 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Wi as UnsupportedRpcValue, cn as TransportRequestOptions, on as RpcParams, ri as RpcErrorData, sn as Transport } from "./requestAirdrop-T1eVn3l5.cjs";
|
|
2
2
|
|
|
3
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
4
|
/** Limits for opt-in HTTP JSON-RPC batching. */
|
|
36
5
|
interface HttpBatchOptions {
|
|
37
6
|
/** Maximum calls per HTTP request (1–1,000). Defaults to 100. Full batches send immediately. */
|
|
@@ -70,7 +39,9 @@ interface HttpTransportOptions {
|
|
|
70
39
|
*
|
|
71
40
|
* `HttpTransport` handles request IDs, JSON-RPC envelopes, optional custom
|
|
72
41
|
* headers, optional timeout cancellation, and conversion of JSON-RPC error
|
|
73
|
-
* responses into
|
|
42
|
+
* responses into `ThruputError` with code `rpcError`. Network failures use
|
|
43
|
+
* `httpRequestFailed`, failed HTTP statuses use `httpResponseError`, and
|
|
44
|
+
* malformed replies use `rpcResponseInvalid`.
|
|
74
45
|
*
|
|
75
46
|
* @example
|
|
76
47
|
* ```ts
|
|
@@ -105,11 +76,12 @@ type ReadErrorKind = "transient" | "permanent" | "cancelled" | "unknown";
|
|
|
105
76
|
* Classify an infrastructure read failure without replacing the original error.
|
|
106
77
|
*
|
|
107
78
|
* Pass the caller's signal to distinguish explicit cancellation from a transport
|
|
108
|
-
* timeout. Plain Error wrappers are inspected through their causes;
|
|
109
|
-
* and unrecognized failures remain unknown. A bare TypeError
|
|
110
|
-
* a network failure. Custom transports should
|
|
111
|
-
* Transaction-not-found remains
|
|
112
|
-
*
|
|
79
|
+
* timeout. Plain Error wrappers are inspected through their causes; other
|
|
80
|
+
* `ThruputError` codes and unrecognized failures remain unknown. A bare TypeError
|
|
81
|
+
* is not evidence of a network failure. Custom transports should throw code
|
|
82
|
+
* `httpRequestFailed` for that case. Transaction-not-found remains
|
|
83
|
+
* operation-specific rather than a general retry. This classification never
|
|
84
|
+
* authorizes transaction resubmission.
|
|
113
85
|
*/
|
|
114
86
|
declare function classifyReadError(error: unknown, options?: TransportRequestOptions): ReadErrorKind;
|
|
115
87
|
//#endregion
|
|
@@ -138,27 +110,5 @@ declare const NativeRpcErrorCode: {
|
|
|
138
110
|
readonly TransactionRejected: -32001;
|
|
139
111
|
};
|
|
140
112
|
//#endregion
|
|
141
|
-
|
|
142
|
-
|
|
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-C3HVRvQd.d.ts.map
|
|
113
|
+
export { classifyReadError as a, HttpTransport as c, ReadErrorKind as i, HttpTransportOptions as l, TxInvalidDetail as n, MockTransport as o, txInvalidDetail as r, HttpBatchOptions as s, NativeRpcErrorCode as t };
|
|
114
|
+
//# sourceMappingURL=index-BGmH_Sm7.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BGmH_Sm7.d.cts","names":[],"sources":["../src/transport/http.ts","../src/transport/mock.ts","../src/transport/readError.ts","../src/transport/txInvalidDetail.ts","../src/rpc/errors.ts"],"mappings":";;;;UAWiB,gBAAA;EAAA;EAEf,OAAA;;EAEA,MAAM;AAAA;AAIR;AAAA,UAAiB,oBAAA;;EAEf,OAAA,GAAU,MAAA;EAGK;EAAf,KAAA,UAAe,KAAA;EAqBmB;EAlBlC,SAAA;EANA;;;;;;;;AAwBkC;AAuBpC;;;;;;;EAvBE,KAAA,aAAkB,gBAAA;AAAA;;;;;;;;;;;;;;;;;;;AA0DN;;cAnCD,aAAA,YAAyB,SAAA;EAAA;ECnCzB;cD4CC,GAAA,UAAa,OAAA,GAAS,oBAAA;EC5CT;EDkEnB,OAAA,cACJ,MAAA,UACA,MAAA,GAAS,SAAA,EACT,OAAA,GAAS,uBAAA,GACR,OAAA,CAAQ,CAAA;AAAA;;;;cCtEA,aAAA,YAAyB,SAAA;EAAA;EAG9B,OAAA,cACJ,MAAA,UACA,MAAA,GAAQ,SAAA,EACR,OAAA,GAAU,uBAAA,GACT,OAAA,CAAQ,CAAA;AAAA;;;;KCpCD,aAAA;AFOZ;;;;AAIQ;AAIR;;;;;;AARA,iBEMgB,iBAAA,CACd,KAAA,WACA,OAAA,GAAS,uBAAA,GACR,aAAa;;;;KCbJ,eAAA,GAAkB,OAAA,CAC5B,WAAA,CAAY,OAAA,CAAQ,YAAA;EAAgB,IAAA;AAAA,eACpC,mBAAA;;iBAGc,eAAA,CAAgB,KAAA,YAAiB,eAAe;;;;cCVnD,kBAAA;EAAA"}
|