@fuel-ts/account 0.100.5 → 0.100.6
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/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +3 -3
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/index.global.js +15 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/utils/transaction-response-serialization.d.ts +3 -2
- package/dist/providers/utils/transaction-response-serialization.d.ts.map +1 -1
- package/dist/test-utils.global.js +2 -26
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +1 -25
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +1 -25
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -113,6 +113,7 @@ __export(src_exports, {
|
|
113
113
|
deserializeProcessedTxOutput: () => deserializeProcessedTxOutput,
|
114
114
|
deserializeProviderCache: () => deserializeProviderCache,
|
115
115
|
deserializeReceipt: () => deserializeReceipt,
|
116
|
+
deserializeTransactionResponseJson: () => deserializeTransactionResponseJson,
|
116
117
|
dispatchFuelConnectorEvent: () => dispatchFuelConnectorEvent,
|
117
118
|
english: () => english,
|
118
119
|
extractBurnedAssetsFromReceipts: () => extractBurnedAssetsFromReceipts,
|
@@ -213,6 +214,7 @@ __export(src_exports, {
|
|
213
214
|
serializeChain: () => serializeChain,
|
214
215
|
serializeNodeInfo: () => serializeNodeInfo,
|
215
216
|
serializeProviderCache: () => serializeProviderCache,
|
217
|
+
serializeTransactionResponseJson: () => serializeTransactionResponseJson,
|
216
218
|
setAndValidateGasAndFeeForAssembledTx: () => setAndValidateGasAndFeeForAssembledTx,
|
217
219
|
transactionRequestify: () => transactionRequestify,
|
218
220
|
urlJoin: () => urlJoin,
|
@@ -8526,6 +8528,19 @@ var assembleTransactionSummaryFromJson = /* @__PURE__ */ __name(async (opts) =>
|
|
8526
8528
|
}, "assembleTransactionSummaryFromJson");
|
8527
8529
|
|
8528
8530
|
// src/providers/utils/transaction-response-serialization.ts
|
8531
|
+
var serializeTransactionResponseJson = /* @__PURE__ */ __name(async (response) => {
|
8532
|
+
const { id, status, abis, request: request2, provider, gqlTransaction, preConfirmationStatus } = response;
|
8533
|
+
return {
|
8534
|
+
id,
|
8535
|
+
status,
|
8536
|
+
abis,
|
8537
|
+
requestJson: request2 ? JSON.stringify(request2.toJSON()) : void 0,
|
8538
|
+
providerUrl: provider.url,
|
8539
|
+
providerCache: await serializeProviderCache(provider),
|
8540
|
+
gqlTransaction,
|
8541
|
+
preConfirmationStatus
|
8542
|
+
};
|
8543
|
+
}, "serializeTransactionResponseJson");
|
8529
8544
|
var deserializeTransactionResponseJson = /* @__PURE__ */ __name((json) => {
|
8530
8545
|
const {
|
8531
8546
|
id,
|
@@ -9245,7 +9260,7 @@ var Account = class extends AbstractAccount {
|
|
9245
9260
|
transactionRequest,
|
9246
9261
|
params
|
9247
9262
|
);
|
9248
|
-
return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) :
|
9263
|
+
return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) : transaction;
|
9249
9264
|
}
|
9250
9265
|
if (estimateTxDependencies) {
|
9251
9266
|
await this.provider.estimateTxDependencies(transactionRequest);
|
@@ -14144,6 +14159,7 @@ var Fuel = class _Fuel extends FuelConnector {
|
|
14144
14159
|
deserializeProcessedTxOutput,
|
14145
14160
|
deserializeProviderCache,
|
14146
14161
|
deserializeReceipt,
|
14162
|
+
deserializeTransactionResponseJson,
|
14147
14163
|
dispatchFuelConnectorEvent,
|
14148
14164
|
english,
|
14149
14165
|
extractBurnedAssetsFromReceipts,
|
@@ -14244,6 +14260,7 @@ var Fuel = class _Fuel extends FuelConnector {
|
|
14244
14260
|
serializeChain,
|
14245
14261
|
serializeNodeInfo,
|
14246
14262
|
serializeProviderCache,
|
14263
|
+
serializeTransactionResponseJson,
|
14247
14264
|
setAndValidateGasAndFeeForAssembledTx,
|
14248
14265
|
transactionRequestify,
|
14249
14266
|
urlJoin,
|