@fuel-ts/account 0.100.4 → 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 +1 -1
- package/dist/account.d.ts.map +1 -1
- package/dist/index.global.js +60 -12
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +63 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -11
- package/dist/index.mjs.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +18 -3
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +5 -0
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +3 -3
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-response/getAllDecodedLogs.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +17 -5
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/utils/serialization.d.ts.map +1 -1
- package/dist/providers/utils/transaction-response-serialization.d.ts +9 -0
- package/dist/providers/utils/transaction-response-serialization.d.ts.map +1 -0
- package/dist/test-utils.global.js +23 -12
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +22 -11
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +22 -11
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +14 -14
package/dist/test-utils.mjs
CHANGED
@@ -1065,6 +1065,11 @@ var ChainInfoFragmentDoc = gql`
|
|
1065
1065
|
consensusParameters {
|
1066
1066
|
...consensusParametersFragment
|
1067
1067
|
}
|
1068
|
+
latestBlock {
|
1069
|
+
header {
|
1070
|
+
consensusParametersVersion
|
1071
|
+
}
|
1072
|
+
}
|
1068
1073
|
}
|
1069
1074
|
${ConsensusParametersFragmentDoc}`;
|
1070
1075
|
var ContractBalanceFragmentDoc = gql`
|
@@ -1538,7 +1543,7 @@ ${OutputContractCreatedFragmentDoc}
|
|
1538
1543
|
${DryRunFailureAssembleTxFragmentDoc}
|
1539
1544
|
${DryRunSuccessAssembleTxFragmentDoc}`;
|
1540
1545
|
var DryRunDocument = gql`
|
1541
|
-
|
1546
|
+
query dryRun($encodedTransactions: [HexString!]!, $utxoValidation: Boolean, $gasPrice: U64) {
|
1542
1547
|
dryRun(
|
1543
1548
|
txs: $encodedTransactions
|
1544
1549
|
utxoValidation: $utxoValidation
|
@@ -2164,7 +2169,7 @@ import {
|
|
2164
2169
|
} from "@fuel-ts/transactions";
|
2165
2170
|
import { hexlify as hexlify7, arrayify as arrayify3, assertUnreachable } from "@fuel-ts/utils";
|
2166
2171
|
var deserializeChain = /* @__PURE__ */ __name((chain) => {
|
2167
|
-
const { name, daHeight, consensusParameters } = chain;
|
2172
|
+
const { name, daHeight, consensusParameters, latestBlock } = chain;
|
2168
2173
|
const {
|
2169
2174
|
contractParams,
|
2170
2175
|
feeParams,
|
@@ -2215,11 +2220,12 @@ var deserializeChain = /* @__PURE__ */ __name((chain) => {
|
|
2215
2220
|
maxScriptDataLength: bn5(scriptParams.maxScriptDataLength)
|
2216
2221
|
},
|
2217
2222
|
gasCosts
|
2218
|
-
}
|
2223
|
+
},
|
2224
|
+
latestBlock
|
2219
2225
|
};
|
2220
2226
|
}, "deserializeChain");
|
2221
2227
|
var serializeChain = /* @__PURE__ */ __name((chain) => {
|
2222
|
-
const { name, baseChainHeight, consensusParameters } = chain;
|
2228
|
+
const { name, baseChainHeight, consensusParameters, latestBlock } = chain;
|
2223
2229
|
const {
|
2224
2230
|
contractParameters,
|
2225
2231
|
feeParameters,
|
@@ -2270,7 +2276,8 @@ var serializeChain = /* @__PURE__ */ __name((chain) => {
|
|
2270
2276
|
maxScriptDataLength: scriptParameters.maxScriptDataLength.toString()
|
2271
2277
|
},
|
2272
2278
|
gasCosts
|
2273
|
-
}
|
2279
|
+
},
|
2280
|
+
latestBlock
|
2274
2281
|
};
|
2275
2282
|
}, "serializeChain");
|
2276
2283
|
var deserializeNodeInfo = /* @__PURE__ */ __name((nodeInfo) => {
|
@@ -3057,8 +3064,6 @@ var BaseTransactionRequest = class _BaseTransactionRequest {
|
|
3057
3064
|
/** List of witnesses */
|
3058
3065
|
witnesses = [];
|
3059
3066
|
/**
|
3060
|
-
* @hidden
|
3061
|
-
*
|
3062
3067
|
* The current status of the transaction
|
3063
3068
|
*/
|
3064
3069
|
flag = { state: void 0, transactionId: void 0, summary: void 0 };
|
@@ -3075,7 +3080,8 @@ var BaseTransactionRequest = class _BaseTransactionRequest {
|
|
3075
3080
|
witnessLimit,
|
3076
3081
|
inputs,
|
3077
3082
|
outputs,
|
3078
|
-
witnesses
|
3083
|
+
witnesses,
|
3084
|
+
flag
|
3079
3085
|
} = {}) {
|
3080
3086
|
this.tip = tip ? bn9(tip) : void 0;
|
3081
3087
|
this.maturity = maturity && maturity > 0 ? maturity : void 0;
|
@@ -3085,6 +3091,7 @@ var BaseTransactionRequest = class _BaseTransactionRequest {
|
|
3085
3091
|
this.inputs = inputs ?? [];
|
3086
3092
|
this.outputs = outputs ?? [];
|
3087
3093
|
this.witnesses = witnesses ?? [];
|
3094
|
+
this.flag = flag ?? { state: void 0, transactionId: void 0, summary: void 0 };
|
3088
3095
|
}
|
3089
3096
|
static getPolicyMeta(req) {
|
3090
3097
|
let policyTypes = 0;
|
@@ -5379,7 +5386,9 @@ function getAllDecodedLogs(opts) {
|
|
5379
5386
|
const firstCallReceipt = receipts.find(
|
5380
5387
|
(r) => r.type === ReceiptType7.Call && r.id === ZeroBytes3210
|
5381
5388
|
);
|
5382
|
-
|
5389
|
+
if (firstCallReceipt) {
|
5390
|
+
mainContract = firstCallReceipt.to;
|
5391
|
+
}
|
5383
5392
|
}
|
5384
5393
|
return receipts.reduce(
|
5385
5394
|
({ logs, groupedLogs }, receipt) => {
|
@@ -5436,9 +5445,9 @@ var TransactionResponse = class _TransactionResponse {
|
|
5436
5445
|
request;
|
5437
5446
|
status;
|
5438
5447
|
abis;
|
5448
|
+
preConfirmationStatus;
|
5439
5449
|
waitingForStreamData = false;
|
5440
5450
|
statusResolvers = /* @__PURE__ */ new Map();
|
5441
|
-
preConfirmationStatus;
|
5442
5451
|
/**
|
5443
5452
|
* Async constructor for `TransactionResponse`. This method can be used to create
|
5444
5453
|
* an instance of `TransactionResponse` and wait for the transaction to be fetched
|
@@ -6645,7 +6654,9 @@ var Provider = class _Provider {
|
|
6645
6654
|
}
|
6646
6655
|
const chainInfo = _Provider.chainInfoCache[this.urlWithoutAuth];
|
6647
6656
|
const {
|
6648
|
-
|
6657
|
+
latestBlock: {
|
6658
|
+
header: { consensusParametersVersion: previous }
|
6659
|
+
}
|
6649
6660
|
} = chainInfo;
|
6650
6661
|
const {
|
6651
6662
|
chain: {
|