@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.
@@ -10,4 +10,5 @@ export * from './transaction-summary';
10
10
  export * from './utils';
11
11
  export * from './chains';
12
12
  export * from './assemble-tx-helpers';
13
+ export * from './utils/transaction-response-serialization';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,4CAA4C,CAAC"}
@@ -1,7 +1,8 @@
1
- import type { TransactionResponseJson } from '../transaction-response';
2
1
  import { TransactionResponse } from '../transaction-response';
2
+ import type { TransactionResponseJson } from '../transaction-response';
3
3
  /**
4
- * NOTE: This is defined within a new file to avoid circular dependencies.
4
+ * NOTE: These helpers are defined here instead of in "serialization.ts"
5
+ * to avoid circular dependencies.
5
6
  */
6
7
  export declare const serializeTransactionResponseJson: (response: TransactionResponse) => Promise<TransactionResponseJson>;
7
8
  export declare const deserializeTransactionResponseJson: (json: TransactionResponseJson) => TransactionResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"transaction-response-serialization.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/transaction-response-serialization.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;GAEG;AAEH,eAAO,MAAM,gCAAgC,aACjC,mBAAmB,KAC5B,OAAO,CAAC,uBAAuB,CAYjC,CAAC;AAEF,eAAO,MAAM,kCAAkC,SAAU,uBAAuB,wBA0B/E,CAAC"}
1
+ {"version":3,"file":"transaction-response-serialization.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/transaction-response-serialization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAIvE;;;GAGG;AAEH,eAAO,MAAM,gCAAgC,aACjC,mBAAmB,KAC5B,OAAO,CAAC,uBAAuB,CAYjC,CAAC;AAEF,eAAO,MAAM,kCAAkC,SAAU,uBAAuB,wBA0B/E,CAAC"}
@@ -17289,7 +17289,7 @@
17289
17289
  return {
17290
17290
  FUEL_CORE: "0.43.1",
17291
17291
  FORC: "0.68.1",
17292
- FUELS: "0.100.5"
17292
+ FUELS: "0.100.6"
17293
17293
  };
17294
17294
  }
17295
17295
  __name(getBuiltinVersions, "getBuiltinVersions");
@@ -36174,30 +36174,6 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
36174
36174
  }
36175
36175
  };
36176
36176
 
36177
- // src/providers/utils/transaction-response-serialization.ts
36178
- var deserializeTransactionResponseJson = /* @__PURE__ */ __name((json) => {
36179
- const {
36180
- id,
36181
- abis,
36182
- status,
36183
- providerUrl,
36184
- requestJson,
36185
- providerCache,
36186
- gqlTransaction,
36187
- preConfirmationStatus
36188
- } = json;
36189
- const provider = new Provider(providerUrl, { cache: providerCache });
36190
- const { chainId } = providerCache.chain.consensusParameters;
36191
- const response = new TransactionResponse(id, provider, Number(chainId), abis);
36192
- if (requestJson) {
36193
- response.request = transactionRequestify(JSON.parse(requestJson));
36194
- }
36195
- response.status = status;
36196
- response.gqlTransaction = gqlTransaction;
36197
- response.preConfirmationStatus = preConfirmationStatus;
36198
- return response;
36199
- }, "deserializeTransactionResponseJson");
36200
-
36201
36177
  // src/types.ts
36202
36178
  var AbstractAccount = class {
36203
36179
  static {
@@ -36891,7 +36867,7 @@ ${PANIC_DOC_URL}#variant.${statusReason}`;
36891
36867
  transactionRequest,
36892
36868
  params
36893
36869
  );
36894
- return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) : deserializeTransactionResponseJson(transaction);
36870
+ return typeof transaction === "string" ? this.provider.getTransactionResponse(transaction) : transaction;
36895
36871
  }
36896
36872
  if (estimateTxDependencies) {
36897
36873
  await this.provider.estimateTxDependencies(transactionRequest);