@fuel-ts/account 0.0.0-rc-1832-20240415161726 → 0.0.0-rc-2040-20240415161844

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

@@ -19,7 +19,6 @@ export type PredicateParams<T = InputValue[]> = {
19
19
  */
20
20
  export declare class Predicate<TInputData extends InputValue[]> extends Account {
21
21
  bytes: Uint8Array;
22
- predicateDataBytes: Uint8Array;
23
22
  predicateData: TInputData;
24
23
  interface?: Interface;
25
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../src/predicate/predicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,SAAS,EAKV,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,UAAU,EAAE,IAAI;IAC9C,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,qBAAqB,CAAC,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF;;GAEG;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e,CACb,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,GACrD,OAAO,CAAC,mBAAmB,CAAC;IAK/B;;;;;OAKG;IACH,mBAAmB,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC;IAKxF,OAAO,CAAC,gBAAgB;IAsBxB;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAgCnC;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAsCxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transaction-request.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/transaction-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAKL,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C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C,OAAO,EAAE,MAAM,GAAG,MAAM;IAElD;;;;;OAKG;IACH,MAAM;IAIN,qBAAqB,CAAC,MAAM,EAAE,uBAAuB,EAAE;CA6BxD"}
1
+ {"version":3,"file":"transaction-request.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/transaction-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAKL,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAM5C,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAE5B,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AA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OAMG;IACH,YAAY,CAAC,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC;IAM/C;;;;;;OAMG;IACH,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC;IAU3E;;;;;;OAMG;IACH,qBAAqB,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC;IAM/E;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAE,SAAuB;IAWrF;;;;;OAKG;IACH,cAAc,CAAC,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE;IAa9D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,SAAuB;IAgBjE;;OAEG;IACH,QAAQ;IAIR;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,WAAW,GAAG,EAAE;IAIvC;;OAEG;IACH,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,EAAE;IAYzC,eAAe,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE;IAgBrD;;;;;OAKG;IACH,iBAAiB,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,cAAc,CAAC,EAAE,eAAe;IAyC9E;;;;;OAKG;IACH,wBAAwB,IAAI,YAAY,EAAE;IAS1C;;;;;;OAMG;IACH,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAElD;;;;;OAKG;IACH,MAAM;IAIN,qBAAqB,CAAC,MAAM,EAAE,uBAAuB,EAAE;CA6BxD"}
@@ -31977,6 +31977,7 @@ This unreleased fuel-core build may include features and updates not yet support
31977
31977
  ErrorCode2["INVALID_COMPONENT"] = "invalid-component";
31978
31978
  ErrorCode2["CONFIGURABLE_NOT_FOUND"] = "configurable-not-found";
31979
31979
  ErrorCode2["TYPE_NOT_FOUND"] = "type-not-found";
31980
+ ErrorCode2["LOG_TYPE_NOT_FOUND"] = "log-type-not-found";
31980
31981
  ErrorCode2["TYPE_NOT_SUPPORTED"] = "type-not-supported";
31981
31982
  ErrorCode2["INVALID_DECODE_VALUE"] = "invalid-decode-value";
31982
31983
  ErrorCode2["JSON_ABI_ERROR"] = "json-abi-error";
@@ -34762,7 +34763,7 @@ This unreleased fuel-core build may include features and updates not yet support
34762
34763
  var import_bn = __toESM(require_bn(), 1);
34763
34764
  var DEFAULT_PRECISION = 9;
34764
34765
  var DEFAULT_MIN_PRECISION = 3;
34765
- var DECIMAL_UNITS = 9;
34766
+ var DEFAULT_DECIMAL_UNITS = 9;
34766
34767
  function toFixed(value, options) {
34767
34768
  const { precision = DEFAULT_PRECISION, minPrecision = DEFAULT_MIN_PRECISION } = options || {};
34768
34769
  const [valueUnits = "0", valueDecimals = "0"] = String(value || "0.0").split(".");
@@ -34828,7 +34829,7 @@ This unreleased fuel-core build may include features and updates not yet support
34828
34829
  }
34829
34830
  format(options) {
34830
34831
  const {
34831
- units = DECIMAL_UNITS,
34832
+ units = DEFAULT_DECIMAL_UNITS,
34832
34833
  precision = DEFAULT_PRECISION,
34833
34834
  minPrecision = DEFAULT_MIN_PRECISION
34834
34835
  } = options || {};
@@ -34844,7 +34845,7 @@ This unreleased fuel-core build may include features and updates not yet support
34844
34845
  }
34845
34846
  return formattedFixed;
34846
34847
  }
34847
- formatUnits(units = DECIMAL_UNITS) {
34848
+ formatUnits(units = DEFAULT_DECIMAL_UNITS) {
34848
34849
  const valueUnits = this.toString().slice(0, units * -1);
34849
34850
  const valueDecimals = this.toString().slice(units * -1);
34850
34851
  const length = valueDecimals.length;
@@ -34953,7 +34954,7 @@ This unreleased fuel-core build may include features and updates not yet support
34953
34954
  // END ANCHOR: OVERRIDES to avoid losing references
34954
34955
  };
34955
34956
  var bn = (value, base, endian) => new BN(value, base, endian);
34956
- bn.parseUnits = (value, units = DECIMAL_UNITS) => {
34957
+ bn.parseUnits = (value, units = DEFAULT_DECIMAL_UNITS) => {
34957
34958
  const valueToParse = value === "." ? "0." : value;
34958
34959
  const [valueUnits = "0", valueDecimals = "0"] = valueToParse.split(".");
34959
34960
  const length = valueDecimals.length;
@@ -35219,15 +35220,6 @@ This unreleased fuel-core build may include features and updates not yet support
35219
35220
  }
35220
35221
  };
35221
35222
  var isHeapType = (type3) => type3 === VEC_CODER_TYPE || type3 === BYTES_CODER_TYPE || type3 === STD_STRING_CODER_TYPE;
35222
- function findOrThrow(arr, predicate, throwFn = () => {
35223
- throw new FuelError(ErrorCode.ELEMENT_NOT_FOUND, "Element not found in the array.");
35224
- }) {
35225
- const found = arr.find(predicate);
35226
- if (found === void 0) {
35227
- throwFn();
35228
- }
35229
- return found;
35230
- }
35231
35223
  var isMultipleOfWordSize = (length) => length % WORD_SIZE === 0;
35232
35224
  var getWordSizePadding = (length) => WORD_SIZE - length % WORD_SIZE;
35233
35225
  var rightPadToWordSize = (encoded) => {
@@ -35237,6 +35229,7 @@ This unreleased fuel-core build may include features and updates not yet support
35237
35229
  const padding = new Uint8Array(WORD_SIZE - encoded.length % WORD_SIZE);
35238
35230
  return concatBytes2([encoded, padding]);
35239
35231
  };
35232
+ var isUint8Array = (value) => value instanceof Uint8Array;
35240
35233
  var ArrayCoder = class extends Coder {
35241
35234
  coder;
35242
35235
  length;
@@ -35778,8 +35771,11 @@ This unreleased fuel-core build may include features and updates not yet support
35778
35771
  this.coder = coder;
35779
35772
  }
35780
35773
  encode(value) {
35781
- if (!Array.isArray(value)) {
35782
- throw new FuelError(ErrorCode.ENCODE_ERROR, `Expected array value.`);
35774
+ if (!Array.isArray(value) && !isUint8Array(value)) {
35775
+ throw new FuelError(
35776
+ ErrorCode.ENCODE_ERROR,
35777
+ `Expected array value, or a Uint8Array. You can use arrayify to convert a value to a Uint8Array.`
35778
+ );
35783
35779
  }
35784
35780
  const parts = [];
35785
35781
  const pointer = new BigNumberCoder("u64").encode(BASE_VECTOR_OFFSET);
@@ -35810,6 +35806,38 @@ This unreleased fuel-core build may include features and updates not yet support
35810
35806
  ];
35811
35807
  }
35812
35808
  };
35809
+ var findFunctionByName = (abi, name) => {
35810
+ const fn = abi.functions.find((f2) => f2.name === name);
35811
+ if (!fn) {
35812
+ throw new FuelError(
35813
+ ErrorCode.FUNCTION_NOT_FOUND,
35814
+ `Function with name '${name}' doesn't exist in the ABI`
35815
+ );
35816
+ }
35817
+ return fn;
35818
+ };
35819
+ var findTypeById = (abi, typeId) => {
35820
+ const type3 = abi.types.find((t) => t.typeId === typeId);
35821
+ if (!type3) {
35822
+ throw new FuelError(
35823
+ ErrorCode.TYPE_NOT_FOUND,
35824
+ `Type with typeId '${typeId}' doesn't exist in the ABI.`
35825
+ );
35826
+ }
35827
+ return type3;
35828
+ };
35829
+ var findNonEmptyInputs = (abi, inputs) => inputs.filter((input) => findTypeById(abi, input.type).type !== "()");
35830
+ var findVectorBufferArgument = (components) => {
35831
+ const bufferComponent = components.find((c) => c.name === "buf");
35832
+ const bufferTypeArgument = bufferComponent?.originalTypeArguments?.[0];
35833
+ if (!bufferComponent || !bufferTypeArgument) {
35834
+ throw new FuelError(
35835
+ ErrorCode.INVALID_COMPONENT,
35836
+ `The Vec type provided is missing or has a malformed 'buf' component.`
35837
+ );
35838
+ }
35839
+ return bufferTypeArgument;
35840
+ };
35813
35841
  var ResolvedAbiType = class {
35814
35842
  abi;
35815
35843
  name;
@@ -35818,20 +35846,8 @@ This unreleased fuel-core build may include features and updates not yet support
35818
35846
  components;
35819
35847
  constructor(abi, argument) {
35820
35848
  this.abi = abi;
35821
- const type3 = findOrThrow(
35822
- abi.types,
35823
- (t) => t.typeId === argument.type,
35824
- () => {
35825
- throw new FuelError(
35826
- ErrorCode.TYPE_NOT_FOUND,
35827
- `Type does not exist in the provided abi: ${JSON.stringify({
35828
- argument,
35829
- abi: this.abi
35830
- })}`
35831
- );
35832
- }
35833
- );
35834
35849
  this.name = argument.name;
35850
+ const type3 = findTypeById(abi, argument.type);
35835
35851
  this.type = type3.type;
35836
35852
  this.originalTypeArguments = argument.typeArguments;
35837
35853
  this.components = ResolvedAbiType.getResolvedGenericComponents(
@@ -35883,7 +35899,7 @@ This unreleased fuel-core build may include features and updates not yet support
35883
35899
  )
35884
35900
  };
35885
35901
  }
35886
- const argType = findOrThrow(abi.types, (t) => t.typeId === arg.type);
35902
+ const argType = findTypeById(abi, arg.type);
35887
35903
  const implicitTypeParameters = this.getImplicitGenericTypeParameters(abi, argType.components);
35888
35904
  if (implicitTypeParameters && implicitTypeParameters.length > 0) {
35889
35905
  return {
@@ -35900,7 +35916,7 @@ This unreleased fuel-core build may include features and updates not yet support
35900
35916
  }
35901
35917
  const implicitGenericParameters = implicitGenericParametersParam ?? [];
35902
35918
  args.forEach((a) => {
35903
- const argType = findOrThrow(abi.types, (t) => t.typeId === a.type);
35919
+ const argType = findTypeById(abi, a.type);
35904
35920
  if (genericRegEx.test(argType.type)) {
35905
35921
  implicitGenericParameters.push(argType.typeId);
35906
35922
  return;
@@ -36009,13 +36025,7 @@ This unreleased fuel-core build may include features and updates not yet support
36009
36025
  return new ArrayCoder(arrayElementCoder, length);
36010
36026
  }
36011
36027
  if (resolvedAbiType.type === VEC_CODER_TYPE) {
36012
- const arg = findOrThrow(components, (c) => c.name === "buf").originalTypeArguments?.[0];
36013
- if (!arg) {
36014
- throw new FuelError(
36015
- ErrorCode.INVALID_COMPONENT,
36016
- `The provided Vec type is missing the 'type argument'.`
36017
- );
36018
- }
36028
+ const arg = findVectorBufferArgument(components);
36019
36029
  const argType = new ResolvedAbiType(resolvedAbiType.abi, arg);
36020
36030
  const itemCoder = getCoder(argType, { isSmallBytes: true, encoding: ENCODING_V0 });
36021
36031
  return new VecCoder(itemCoder);
@@ -36484,13 +36494,7 @@ This unreleased fuel-core build may include features and updates not yet support
36484
36494
  return new ArrayCoder(arrayElementCoder, length);
36485
36495
  }
36486
36496
  if (resolvedAbiType.type === VEC_CODER_TYPE) {
36487
- const arg = findOrThrow(components, (c) => c.name === "buf").originalTypeArguments?.[0];
36488
- if (!arg) {
36489
- throw new FuelError(
36490
- ErrorCode.INVALID_COMPONENT,
36491
- `The provided Vec type is missing the 'type argument'.`
36492
- );
36493
- }
36497
+ const arg = findVectorBufferArgument(components);
36494
36498
  const argType = new ResolvedAbiType(resolvedAbiType.abi, arg);
36495
36499
  const itemCoder = getCoder2(argType, { isSmallBytes: true, encoding: ENCODING_V0 });
36496
36500
  return new VecCoder2(itemCoder);
@@ -36561,7 +36565,7 @@ This unreleased fuel-core build may include features and updates not yet support
36561
36565
  jsonAbi;
36562
36566
  constructor(jsonAbi, name) {
36563
36567
  this.jsonAbi = jsonAbi;
36564
- this.jsonFn = findOrThrow(this.jsonAbi.functions, (f2) => f2.name === name);
36568
+ this.jsonFn = findFunctionByName(this.jsonAbi, name);
36565
36569
  this.name = name;
36566
36570
  this.signature = FunctionFragment.getSignature(this.jsonAbi, this.jsonFn);
36567
36571
  this.selector = FunctionFragment.getFunctionSelector(this.signature);
@@ -36585,13 +36589,11 @@ This unreleased fuel-core build may include features and updates not yet support
36585
36589
  return bn(hashedFunctionSignature.slice(0, 10)).toHex(8);
36586
36590
  }
36587
36591
  #isInputDataPointer() {
36588
- const inputTypes = this.jsonFn.inputs.map(
36589
- (i) => this.jsonAbi.types.find((t) => t.typeId === i.type)
36590
- );
36592
+ const inputTypes = this.jsonFn.inputs.map((i) => findTypeById(this.jsonAbi, i.type));
36591
36593
  return this.jsonFn.inputs.length > 1 || isPointerType(inputTypes[0]?.type || "");
36592
36594
  }
36593
36595
  #isOutputDataHeap() {
36594
- const outputType = findOrThrow(this.jsonAbi.types, (t) => t.typeId === this.jsonFn.output.type);
36596
+ const outputType = findTypeById(this.jsonAbi, this.jsonFn.output.type);
36595
36597
  return isHeapType(outputType?.type || "");
36596
36598
  }
36597
36599
  #getOutputEncodedLength() {
@@ -36611,9 +36613,7 @@ This unreleased fuel-core build may include features and updates not yet support
36611
36613
  encodeArguments(values, offset = 0) {
36612
36614
  FunctionFragment.verifyArgsAndInputsAlign(values, this.jsonFn.inputs, this.jsonAbi);
36613
36615
  const shallowCopyValues = values.slice();
36614
- const nonEmptyInputs = this.jsonFn.inputs.filter(
36615
- (x) => findOrThrow(this.jsonAbi.types, (t) => t.typeId === x.type).type !== "()"
36616
- );
36616
+ const nonEmptyInputs = findNonEmptyInputs(this.jsonAbi, this.jsonFn.inputs);
36617
36617
  if (Array.isArray(values) && nonEmptyInputs.length !== values.length) {
36618
36618
  shallowCopyValues.length = this.jsonFn.inputs.length;
36619
36619
  shallowCopyValues.fill(void 0, values.length);
@@ -36634,7 +36634,7 @@ This unreleased fuel-core build may include features and updates not yet support
36634
36634
  if (args.length === inputs.length) {
36635
36635
  return;
36636
36636
  }
36637
- const inputTypes = inputs.map((i) => findOrThrow(abi.types, (t) => t.typeId === i.type));
36637
+ const inputTypes = inputs.map((input) => findTypeById(abi, input.type));
36638
36638
  const optionalInputs = inputTypes.filter(
36639
36639
  (x) => x.type === OPTION_CODER_TYPE || x.type === "()"
36640
36640
  );
@@ -36649,9 +36649,7 @@ This unreleased fuel-core build may include features and updates not yet support
36649
36649
  }
36650
36650
  decodeArguments(data) {
36651
36651
  const bytes3 = arrayify(data);
36652
- const nonEmptyInputs = this.jsonFn.inputs.filter(
36653
- (x) => findOrThrow(this.jsonAbi.types, (t) => t.typeId === x.type).type !== "()"
36654
- );
36652
+ const nonEmptyInputs = findNonEmptyInputs(this.jsonAbi, this.jsonFn.inputs);
36655
36653
  if (nonEmptyInputs.length === 0) {
36656
36654
  if (bytes3.length === 0) {
36657
36655
  return void 0;
@@ -36686,10 +36684,7 @@ This unreleased fuel-core build may include features and updates not yet support
36686
36684
  return result.decoded;
36687
36685
  }
36688
36686
  decodeOutput(data) {
36689
- const outputAbiType = findOrThrow(
36690
- this.jsonAbi.types,
36691
- (t) => t.typeId === this.jsonFn.output.type
36692
- );
36687
+ const outputAbiType = findTypeById(this.jsonAbi, this.jsonFn.output.type);
36693
36688
  if (outputAbiType.type === "()") {
36694
36689
  return [void 0, 0];
36695
36690
  }
@@ -36699,6 +36694,15 @@ This unreleased fuel-core build may include features and updates not yet support
36699
36694
  });
36700
36695
  return coder.decode(bytes3, 0);
36701
36696
  }
36697
+ /**
36698
+ * Checks if the function is read-only i.e. it only reads from storage, does not write to it.
36699
+ *
36700
+ * @returns True if the function is read-only or pure, false otherwise.
36701
+ */
36702
+ isReadOnly() {
36703
+ const storageAttribute = this.attributes.find((attr) => attr.name === "storage");
36704
+ return !storageAttribute?.arguments.includes("write");
36705
+ }
36702
36706
  };
36703
36707
  var Interface = class {
36704
36708
  functions;
@@ -36741,38 +36745,33 @@ This unreleased fuel-core build may include features and updates not yet support
36741
36745
  return fragment.decodeOutput(data);
36742
36746
  }
36743
36747
  decodeLog(data, logId) {
36744
- const { loggedType } = findOrThrow(this.jsonAbi.loggedTypes, (type3) => type3.logId === logId);
36745
- return AbiCoder.decode(this.jsonAbi, loggedType, arrayify(data), 0, {
36748
+ const loggedType = this.jsonAbi.loggedTypes.find((type3) => type3.logId === logId);
36749
+ if (!loggedType) {
36750
+ throw new FuelError(
36751
+ ErrorCode.LOG_TYPE_NOT_FOUND,
36752
+ `Log type with logId '${logId}' doesn't exist in the ABI.`
36753
+ );
36754
+ }
36755
+ return AbiCoder.decode(this.jsonAbi, loggedType.loggedType, arrayify(data), 0, {
36746
36756
  encoding: this.jsonAbi.encoding
36747
36757
  });
36748
36758
  }
36749
36759
  encodeConfigurable(name, value) {
36750
- const configurable = findOrThrow(
36751
- this.jsonAbi.configurables,
36752
- (c) => c.name === name,
36753
- () => {
36754
- throw new FuelError(
36755
- ErrorCode.CONFIGURABLE_NOT_FOUND,
36756
- `A configurable with the '${name}' was not found in the ABI.`
36757
- );
36758
- }
36759
- );
36760
+ const configurable = this.jsonAbi.configurables.find((c) => c.name === name);
36761
+ if (!configurable) {
36762
+ throw new FuelError(
36763
+ ErrorCode.CONFIGURABLE_NOT_FOUND,
36764
+ `A configurable with the '${name}' was not found in the ABI.`
36765
+ );
36766
+ }
36760
36767
  return AbiCoder.encode(this.jsonAbi, configurable.configurableType, value, {
36761
36768
  isRightPadded: true,
36762
- encoding: this.jsonAbi.encoding
36769
+ // TODO: Review support for configurables in v1 encoding when it becomes available
36770
+ encoding: ENCODING_V0
36763
36771
  });
36764
36772
  }
36765
36773
  getTypeById(typeId) {
36766
- return findOrThrow(
36767
- this.jsonAbi.types,
36768
- (t) => t.typeId === typeId,
36769
- () => {
36770
- throw new FuelError(
36771
- ErrorCode.TYPE_NOT_FOUND,
36772
- `Type with typeId '${typeId}' doesn't exist in the ABI.`
36773
- );
36774
- }
36775
- );
36774
+ return findTypeById(this.jsonAbi, typeId);
36776
36775
  }
36777
36776
  };
36778
36777
 
@@ -43163,8 +43162,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43163
43162
  assetId,
43164
43163
  txPointer: "0x00000000000000000000000000000000",
43165
43164
  witnessIndex,
43166
- predicate: predicate?.bytes,
43167
- predicateData: predicate?.predicateDataBytes
43165
+ predicate: predicate?.bytes
43168
43166
  };
43169
43167
  this.pushInput(input);
43170
43168
  this.addChangeOutput(owner, assetId);
@@ -43196,8 +43194,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43196
43194
  recipient: recipient.toB256(),
43197
43195
  amount,
43198
43196
  witnessIndex,
43199
- predicate: predicate?.bytes,
43200
- predicateData: predicate?.predicateDataBytes
43197
+ predicate: predicate?.bytes
43201
43198
  };
43202
43199
  this.pushInput(input);
43203
43200
  this.addChangeOutput(recipient, assetId);