@fuel-ts/account 0.0.0-rc-2021-20240423205052 → 0.0.0-rc-2045-20240424064755

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.

Files changed (53) hide show
  1. package/README.md +1 -1
  2. package/dist/account.d.ts +4 -5
  3. package/dist/account.d.ts.map +1 -1
  4. package/dist/configs.d.ts.map +1 -1
  5. package/dist/configs.global.js +1 -1
  6. package/dist/configs.global.js.map +1 -1
  7. package/dist/configs.js +1 -1
  8. package/dist/configs.js.map +1 -1
  9. package/dist/configs.mjs +1 -1
  10. package/dist/configs.mjs.map +1 -1
  11. package/dist/index.global.js +589 -861
  12. package/dist/index.global.js.map +1 -1
  13. package/dist/index.js +517 -793
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +398 -673
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/predicate/predicate.d.ts +2 -10
  18. package/dist/predicate/predicate.d.ts.map +1 -1
  19. package/dist/providers/__generated__/operations.d.ts +327 -821
  20. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  21. package/dist/providers/coin-quantity.d.ts +1 -1
  22. package/dist/providers/coin-quantity.d.ts.map +1 -1
  23. package/dist/providers/coin.d.ts +2 -4
  24. package/dist/providers/coin.d.ts.map +1 -1
  25. package/dist/providers/message.d.ts +1 -7
  26. package/dist/providers/message.d.ts.map +1 -1
  27. package/dist/providers/provider.d.ts +27 -37
  28. package/dist/providers/provider.d.ts.map +1 -1
  29. package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
  30. package/dist/providers/transaction-request/input.d.ts +2 -2
  31. package/dist/providers/transaction-request/input.d.ts.map +1 -1
  32. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  33. package/dist/providers/transaction-request/transaction-request.d.ts +29 -8
  34. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  35. package/dist/providers/transaction-request/utils.d.ts +0 -3
  36. package/dist/providers/transaction-request/utils.d.ts.map +1 -1
  37. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  38. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +0 -2
  39. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  40. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +2 -3
  41. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +1 -1
  42. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  43. package/dist/providers/utils/gas.d.ts +2 -8
  44. package/dist/providers/utils/gas.d.ts.map +1 -1
  45. package/dist/test-utils/launchNode.d.ts.map +1 -1
  46. package/dist/test-utils.global.js +1090 -1579
  47. package/dist/test-utils.global.js.map +1 -1
  48. package/dist/test-utils.js +515 -774
  49. package/dist/test-utils.js.map +1 -1
  50. package/dist/test-utils.mjs +407 -666
  51. package/dist/test-utils.mjs.map +1 -1
  52. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
  53. package/package.json +16 -16
@@ -280,7 +280,7 @@
280
280
  }
281
281
  return num !== null && typeof num === "object" && num.constructor.wordSize === BN2.wordSize && Array.isArray(num.words);
282
282
  };
283
- BN2.max = function max(left, right) {
283
+ BN2.max = function max2(left, right) {
284
284
  if (left.cmp(right) > 0)
285
285
  return left;
286
286
  return right;
@@ -5104,7 +5104,7 @@
5104
5104
  function isBlob(obj) {
5105
5105
  return typeof obj === "object" && typeof obj.arrayBuffer === "function" && typeof obj.type === "string" && typeof obj.stream === "function" && typeof obj.constructor === "function" && typeof obj.constructor.name === "string" && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
5106
5106
  }
5107
- function clone3(instance) {
5107
+ function clone(instance) {
5108
5108
  let p1, p2;
5109
5109
  let body = instance.body;
5110
5110
  if (instance.bodyUsed) {
@@ -6038,7 +6038,7 @@
6038
6038
  * @return Response
6039
6039
  */
6040
6040
  clone() {
6041
- return new Response2(clone3(this), {
6041
+ return new Response2(clone(this), {
6042
6042
  url: this.url,
6043
6043
  status: this.status,
6044
6044
  statusText: this.statusText,
@@ -6088,7 +6088,7 @@
6088
6088
  if ((init.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
6089
6089
  throw new TypeError("Request with GET/HEAD method cannot have body");
6090
6090
  }
6091
- let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone3(input) : null;
6091
+ let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
6092
6092
  Body.call(this, inputBody, {
6093
6093
  timeout: init.timeout || input.timeout || 0,
6094
6094
  size: init.size || input.size || 0
@@ -31914,8 +31914,8 @@ spurious results.`);
31914
31914
  // ../versions/dist/index.mjs
31915
31915
  function getBuiltinVersions() {
31916
31916
  return {
31917
- FORC: "0.51.1",
31918
- FUEL_CORE: "0.24.2",
31917
+ FORC: "0.55.0",
31918
+ FUEL_CORE: "0.22.1",
31919
31919
  FUELS: "0.81.0"
31920
31920
  };
31921
31921
  }
@@ -32193,753 +32193,520 @@ This unreleased fuel-core build may include features and updates not yet support
32193
32193
  __publicField3(DateTime, "TAI64_NULL", "");
32194
32194
  var chainConfig_default = {
32195
32195
  chain_name: "local_testnet",
32196
- consensus_parameters: {
32197
- V1: {
32198
- tx_params: {
32199
- V1: {
32200
- max_inputs: 255,
32201
- max_outputs: 255,
32202
- max_witnesses: 255,
32203
- max_gas_per_tx: 3e7,
32204
- max_size: 112640
32205
- }
32206
- },
32207
- predicate_params: {
32208
- V1: {
32209
- max_predicate_length: 102400,
32210
- max_predicate_data_length: 102400,
32211
- max_message_data_length: 102400,
32212
- max_gas_per_predicate: 3e7
32213
- }
32214
- },
32215
- script_params: {
32216
- V1: {
32217
- max_script_length: 102400,
32218
- max_script_data_length: 102400
32219
- }
32220
- },
32221
- contract_params: {
32222
- V1: {
32223
- contract_max_size: 102400,
32224
- max_storage_slots: 1760
32225
- }
32226
- },
32227
- fee_params: {
32228
- V1: {
32229
- gas_price_factor: 92,
32230
- gas_per_byte: 63
32231
- }
32232
- },
32233
- chain_id: 0,
32234
- gas_costs: {
32235
- V1: {
32236
- add: 2,
32237
- addi: 2,
32238
- aloc: 1,
32239
- and: 2,
32240
- andi: 2,
32241
- bal: 366,
32242
- bhei: 2,
32243
- bhsh: 2,
32244
- burn: 33949,
32245
- cb: 2,
32246
- cfei: 2,
32247
- cfsi: 2,
32248
- div: 2,
32249
- divi: 2,
32250
- eck1: 3347,
32251
- ecr1: 46165,
32252
- ed19: 4210,
32253
- eq: 2,
32254
- exp: 2,
32255
- expi: 2,
32256
- flag: 1,
32257
- gm: 2,
32258
- gt: 2,
32259
- gtf: 16,
32260
- ji: 2,
32261
- jmp: 2,
32262
- jne: 2,
32263
- jnei: 2,
32264
- jnzi: 2,
32265
- jmpf: 2,
32266
- jmpb: 2,
32267
- jnzf: 2,
32268
- jnzb: 2,
32269
- jnef: 2,
32270
- jneb: 2,
32271
- lb: 2,
32272
- log: 754,
32273
- lt: 2,
32274
- lw: 2,
32275
- mint: 35718,
32276
- mlog: 2,
32277
- mod: 2,
32278
- modi: 2,
32279
- move: 2,
32280
- movi: 2,
32281
- mroo: 5,
32282
- mul: 2,
32283
- muli: 2,
32284
- mldv: 4,
32285
- noop: 1,
32286
- not: 2,
32287
- or: 2,
32288
- ori: 2,
32289
- poph: 3,
32290
- popl: 3,
32291
- pshh: 4,
32292
- pshl: 4,
32293
- ret_contract: 733,
32294
- rvrt_contract: 722,
32295
- sb: 2,
32296
- sll: 2,
32297
- slli: 2,
32298
- srl: 2,
32299
- srli: 2,
32300
- srw: 253,
32301
- sub: 2,
32302
- subi: 2,
32303
- sw: 2,
32304
- sww: 29053,
32305
- time: 79,
32306
- tr: 46242,
32307
- tro: 33251,
32308
- wdcm: 3,
32309
- wqcm: 3,
32310
- wdop: 3,
32311
- wqop: 3,
32312
- wdml: 3,
32313
- wqml: 4,
32314
- wddv: 5,
32315
- wqdv: 7,
32316
- wdmd: 11,
32317
- wqmd: 18,
32318
- wdam: 9,
32319
- wqam: 12,
32320
- wdmm: 11,
32321
- wqmm: 11,
32322
- xor: 2,
32323
- xori: 2,
32324
- call: {
32325
- LightOperation: {
32326
- base: 21687,
32327
- units_per_gas: 4
32328
- }
32329
- },
32330
- ccp: {
32331
- LightOperation: {
32332
- base: 59,
32333
- units_per_gas: 20
32334
- }
32335
- },
32336
- croo: {
32337
- LightOperation: {
32338
- base: 1,
32339
- units_per_gas: 1
32340
- }
32341
- },
32342
- csiz: {
32343
- LightOperation: {
32344
- base: 59,
32345
- units_per_gas: 195
32346
- }
32347
- },
32348
- k256: {
32349
- LightOperation: {
32350
- base: 282,
32351
- units_per_gas: 3
32352
- }
32353
- },
32354
- ldc: {
32355
- LightOperation: {
32356
- base: 45,
32357
- units_per_gas: 65
32358
- }
32359
- },
32360
- logd: {
32361
- LightOperation: {
32362
- base: 1134,
32363
- units_per_gas: 2
32364
- }
32365
- },
32366
- mcl: {
32367
- LightOperation: {
32368
- base: 3,
32369
- units_per_gas: 523
32370
- }
32371
- },
32372
- mcli: {
32373
- LightOperation: {
32374
- base: 3,
32375
- units_per_gas: 526
32376
- }
32377
- },
32378
- mcp: {
32379
- LightOperation: {
32380
- base: 3,
32381
- units_per_gas: 448
32382
- }
32383
- },
32384
- mcpi: {
32385
- LightOperation: {
32386
- base: 7,
32387
- units_per_gas: 585
32388
- }
32389
- },
32390
- meq: {
32391
- LightOperation: {
32392
- base: 11,
32393
- units_per_gas: 1097
32394
- }
32395
- },
32396
- retd_contract: {
32397
- LightOperation: {
32398
- base: 1086,
32399
- units_per_gas: 2
32400
- }
32401
- },
32402
- s256: {
32403
- LightOperation: {
32404
- base: 45,
32405
- units_per_gas: 3
32406
- }
32407
- },
32408
- scwq: {
32409
- HeavyOperation: {
32410
- base: 30375,
32411
- gas_per_unit: 28628
32412
- }
32413
- },
32414
- smo: {
32415
- LightOperation: {
32416
- base: 64196,
32417
- units_per_gas: 1
32418
- }
32419
- },
32420
- srwq: {
32421
- HeavyOperation: {
32422
- base: 262,
32423
- gas_per_unit: 249
32424
- }
32425
- },
32426
- swwq: {
32427
- HeavyOperation: {
32428
- base: 28484,
32429
- gas_per_unit: 26613
32430
- }
32431
- },
32432
- contract_root: {
32433
- LightOperation: {
32434
- base: 45,
32435
- units_per_gas: 1
32436
- }
32437
- },
32438
- state_root: {
32439
- HeavyOperation: {
32440
- base: 350,
32441
- gas_per_unit: 176
32442
- }
32443
- },
32444
- new_storage_per_byte: 63,
32445
- vm_initialization: {
32446
- LightOperation: {
32447
- base: 1645,
32448
- units_per_gas: 14
32449
- }
32450
- }
32451
- }
32196
+ block_gas_limit: 5e9,
32197
+ initial_state: {
32198
+ coins: [
32199
+ {
32200
+ owner: "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d",
32201
+ amount: "0xFFFFFFFFFFFFFFFF",
32202
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32452
32203
  },
32453
- base_asset_id: "0000000000000000000000000000000000000000000000000000000000000000",
32454
- block_gas_limit: 3e7,
32455
- privileged_address: "0000000000000000000000000000000000000000000000000000000000000000"
32456
- }
32204
+ {
32205
+ owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
32206
+ amount: "0xFFFFFFFFFFFFFFFF",
32207
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32208
+ },
32209
+ {
32210
+ owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
32211
+ amount: "0xFFFFFFFFFFFFFFFF",
32212
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32213
+ },
32214
+ {
32215
+ owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
32216
+ amount: "0xFFFFFFFFFFFFFFFF",
32217
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32218
+ },
32219
+ {
32220
+ owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
32221
+ amount: "0xFFFFFFFFFFFFFFFF",
32222
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32223
+ },
32224
+ {
32225
+ owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
32226
+ amount: "0xFFFFFFFFFFFFFFFF",
32227
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32228
+ },
32229
+ {
32230
+ owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
32231
+ amount: "0xFFFFFFFFFFFFFFFF",
32232
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32233
+ },
32234
+ {
32235
+ owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
32236
+ amount: "0xFFFFFFFFFFFFFFFF",
32237
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32238
+ },
32239
+ {
32240
+ owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
32241
+ amount: "0xFFFFFFFFFFFFFFFF",
32242
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32243
+ },
32244
+ {
32245
+ owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
32246
+ amount: "0xFFFFFFFFFFFFFFFF",
32247
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32248
+ },
32249
+ {
32250
+ owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
32251
+ amount: "0xFFFFFFFFFFFFFFFF",
32252
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32253
+ },
32254
+ {
32255
+ owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
32256
+ amount: "0xFFFFFFFFFFFFFFFF",
32257
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32258
+ },
32259
+ {
32260
+ owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
32261
+ amount: "0xFFFFFFFFFFFFFFFF",
32262
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32263
+ },
32264
+ {
32265
+ owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
32266
+ amount: "0xFFFFFFFFFFFFFFFF",
32267
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32268
+ },
32269
+ {
32270
+ owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
32271
+ amount: "0xFFFFFFFFFFFFFFFF",
32272
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32273
+ },
32274
+ {
32275
+ owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
32276
+ amount: "0xFFFFFFFFFFFFFFFF",
32277
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32278
+ },
32279
+ {
32280
+ owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
32281
+ amount: "0xFFFFFFFFFFFFFFFF",
32282
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32283
+ },
32284
+ {
32285
+ owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
32286
+ amount: "0xFFFFFFFFFFFFFFFF",
32287
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32288
+ },
32289
+ {
32290
+ owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
32291
+ amount: "0xFFFFFFFFFFFFFFFF",
32292
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32293
+ },
32294
+ {
32295
+ owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
32296
+ amount: "0xFFFFFFFFFFFFFFFF",
32297
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32298
+ },
32299
+ {
32300
+ owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
32301
+ amount: "0xFFFFFFFFFFFFFFFF",
32302
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32303
+ },
32304
+ {
32305
+ owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
32306
+ amount: "0xFFFFFFFFFFFFFFFF",
32307
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32308
+ },
32309
+ {
32310
+ owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
32311
+ amount: "0xFFFFFFFFFFFFFFFF",
32312
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32313
+ },
32314
+ {
32315
+ owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
32316
+ amount: "0xFFFFFFFFFFFFFFFF",
32317
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32318
+ },
32319
+ {
32320
+ owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
32321
+ amount: "0xFFFFFFFFFFFFFFFF",
32322
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32323
+ },
32324
+ {
32325
+ owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
32326
+ amount: "0xFFFFFFFFFFFFFFFF",
32327
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32328
+ },
32329
+ {
32330
+ owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
32331
+ amount: "0xFFFFFFFFFFFFFFFF",
32332
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32333
+ },
32334
+ {
32335
+ owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
32336
+ amount: "0xFFFFFFFFFFFFFFFF",
32337
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32338
+ },
32339
+ {
32340
+ owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
32341
+ amount: "0xFFFFFFFFFFFFFFFF",
32342
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32343
+ },
32344
+ {
32345
+ owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
32346
+ amount: "0xFFFFFFFFFFFFFFFF",
32347
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32348
+ },
32349
+ {
32350
+ owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
32351
+ amount: "0xFFFFFFFFFFFFFFFF",
32352
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32353
+ },
32354
+ {
32355
+ owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
32356
+ amount: "0xFFFFFFFFFFFFFFFF",
32357
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32358
+ },
32359
+ {
32360
+ owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
32361
+ amount: "0xFFFFFFFFFFFFFFFF",
32362
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32363
+ },
32364
+ {
32365
+ owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
32366
+ amount: "0xFFFFFFFFFFFFFFFF",
32367
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32368
+ },
32369
+ {
32370
+ owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
32371
+ amount: "0xFFFFFFFFFFFFFFFF",
32372
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32373
+ },
32374
+ {
32375
+ owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
32376
+ amount: "0xFFFFFFFFFFFFFFFF",
32377
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32378
+ },
32379
+ {
32380
+ owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
32381
+ amount: "0xFFFFFFFFFFFFFFFF",
32382
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32383
+ },
32384
+ {
32385
+ owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
32386
+ amount: "0xFFFFFFFFFFFFFFFF",
32387
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32388
+ },
32389
+ {
32390
+ owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
32391
+ amount: "0xFFFFFFFFFFFFFFFF",
32392
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32393
+ },
32394
+ {
32395
+ owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
32396
+ amount: "0xFFFFFFFFFFFFFFFF",
32397
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32398
+ },
32399
+ {
32400
+ owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
32401
+ amount: "0xFFFFFFFFFFFFFFFF",
32402
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32403
+ },
32404
+ {
32405
+ owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
32406
+ amount: "0xFFFFFFFFFFFFFFFF",
32407
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32408
+ },
32409
+ {
32410
+ owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
32411
+ amount: "0xFFFFFFFFFFFFFFFF",
32412
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32413
+ },
32414
+ {
32415
+ owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
32416
+ amount: "0xFFFFFFFFFFFFFFFF",
32417
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32418
+ },
32419
+ {
32420
+ owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
32421
+ amount: "0xFFFFFFFFFFFFFFFF",
32422
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32423
+ },
32424
+ {
32425
+ owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
32426
+ amount: "0xFFFFFFFFFFFFFFFF",
32427
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32428
+ },
32429
+ {
32430
+ owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
32431
+ amount: "0xFFFFFFFFFFFFFFFF",
32432
+ asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32433
+ },
32434
+ {
32435
+ owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
32436
+ amount: "0xFFFFFFFFFFFFFFFF",
32437
+ asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32438
+ },
32439
+ {
32440
+ owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
32441
+ amount: "0xFFFFFFFFFFFFFFFF",
32442
+ asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32443
+ }
32444
+ ],
32445
+ messages: [
32446
+ {
32447
+ sender: "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f",
32448
+ recipient: "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba",
32449
+ nonce: "0101010101010101010101010101010101010101010101010101010101010101",
32450
+ amount: "0x000000000000FFFF",
32451
+ data: "",
32452
+ da_height: "0x00"
32453
+ },
32454
+ {
32455
+ sender: "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba",
32456
+ recipient: "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f",
32457
+ nonce: "0e1ef2963832068b0e1ef2963832068b0e1ef2963832068b0e1ef2963832068b",
32458
+ amount: "0xb04f3c08f59b309e",
32459
+ data: "",
32460
+ da_height: "0x00"
32461
+ }
32462
+ ]
32457
32463
  },
32458
- consensus: {
32459
- PoA: {
32460
- signing_key: "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d"
32461
- }
32462
- }
32463
- };
32464
- var metadata_default = {
32465
- chain_config: "chainConfig.json",
32466
- table_encoding: {
32467
- Json: {
32468
- filepath: "stateConfig.json"
32469
- }
32470
- }
32471
- };
32472
- var stateConfig_default = {
32473
- coins: [
32474
- {
32475
- tx_id: "0x260eabfd50937e92939fd92687e9302a72e91c5065f64f853f2ccbe02396fe09d665",
32476
- output_index: 0,
32477
- tx_pointer_block_height: 0,
32478
- tx_pointer_tx_idx: 0,
32479
- owner: "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d",
32480
- amount: 18446744073709552e3,
32481
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32482
- },
32483
- {
32484
- tx_id: "0x2a757c2317236f7883ac9bbbf7d402f034e0b725c544ef1c8725b1d2bd960f8c690f",
32485
- output_index: 0,
32486
- tx_pointer_block_height: 0,
32487
- tx_pointer_tx_idx: 0,
32488
- owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
32489
- amount: 18446744073709552e3,
32490
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32491
- },
32492
- {
32493
- tx_id: "0x634ef6cda00bac63992bbde80c6d694d484d58025a5ca0c9c848f0d35a5a3eee74b2",
32494
- output_index: 0,
32495
- tx_pointer_block_height: 0,
32496
- tx_pointer_tx_idx: 0,
32497
- owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
32498
- amount: 18446744073709552e3,
32499
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32500
- },
32501
- {
32502
- tx_id: "0xd3543bb1da137a7987a96a1bb71681fdd195ff25318c0d4a923aa30eb27ffa80bc7b",
32503
- output_index: 0,
32504
- tx_pointer_block_height: 0,
32505
- tx_pointer_tx_idx: 0,
32506
- owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
32507
- amount: 18446744073709552e3,
32508
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32509
- },
32510
- {
32511
- tx_id: "0xa4d42cbb02adb32f5f3a9eab33a0ee7bdab8910ad9f615dfc86a7bb9e49a732bc58c",
32512
- output_index: 0,
32513
- tx_pointer_block_height: 0,
32514
- tx_pointer_tx_idx: 0,
32515
- owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
32516
- amount: 18446744073709552e3,
32517
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32518
- },
32519
- {
32520
- tx_id: "0xc197cb09b1d89a7862b238e9500631bd43f291aadb7ff55c8129335349634e9fde3f",
32521
- output_index: 0,
32522
- tx_pointer_block_height: 0,
32523
- tx_pointer_tx_idx: 0,
32524
- owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
32525
- amount: 18446744073709552e3,
32526
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32527
- },
32528
- {
32529
- tx_id: "0x4c4fc2451b9a9b16c520c1b89ec8968ce46823dd0396d84f7e3155861352fdce12c5",
32530
- output_index: 0,
32531
- tx_pointer_block_height: 0,
32532
- tx_pointer_tx_idx: 0,
32533
- owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
32534
- amount: 18446744073709552e3,
32535
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32536
- },
32537
- {
32538
- tx_id: "0x68df8f08555086a1ab45591e6fe4bf2f538bcb80dd519108030b7e886d6a230c2531",
32539
- output_index: 0,
32540
- tx_pointer_block_height: 0,
32541
- tx_pointer_tx_idx: 0,
32542
- owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
32543
- amount: 18446744073709552e3,
32544
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32545
- },
32546
- {
32547
- tx_id: "0x1b9bdaa290518373eb905e45ce7fcb89acedd24341ca7749ad47a938e4bf3ca9b7ce",
32548
- output_index: 0,
32549
- tx_pointer_block_height: 0,
32550
- tx_pointer_tx_idx: 0,
32551
- owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
32552
- amount: 18446744073709552e3,
32553
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32554
- },
32555
- {
32556
- tx_id: "0xa5a2e9db3d1285337fe1183dc1eabe8f9cdcd470daf95cd5c522bbae292f53977f26",
32557
- output_index: 0,
32558
- tx_pointer_block_height: 0,
32559
- tx_pointer_tx_idx: 0,
32560
- owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
32561
- amount: 18446744073709552e3,
32562
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32563
- },
32564
- {
32565
- tx_id: "0x13b685a1ea7c56309a92d69dd7e4808987ec90d62a1f9c9f2ec18e54746855c8c93c",
32566
- output_index: 0,
32567
- tx_pointer_block_height: 0,
32568
- tx_pointer_tx_idx: 0,
32569
- owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
32570
- amount: 18446744073709552e3,
32571
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32572
- },
32573
- {
32574
- tx_id: "0xf8f00a234cf3fbab86befc3fd9346d7fd1ac085233c9cb58c7447f30c75cbf87ed38",
32575
- output_index: 0,
32576
- tx_pointer_block_height: 0,
32577
- tx_pointer_tx_idx: 0,
32578
- owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
32579
- amount: 18446744073709552e3,
32580
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32581
- },
32582
- {
32583
- tx_id: "0x2a36c870f624b60fbd6f2b71332ca7f704c69296ceae4ddbf3a8ede79408088934be",
32584
- output_index: 0,
32585
- tx_pointer_block_height: 0,
32586
- tx_pointer_tx_idx: 0,
32587
- owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
32588
- amount: 18446744073709552e3,
32589
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32590
- },
32591
- {
32592
- tx_id: "0x9cd180d41e67a422da8a7683f036b463a7ed7efc0de31c1692adac90decbfebce78c",
32593
- output_index: 0,
32594
- tx_pointer_block_height: 0,
32595
- tx_pointer_tx_idx: 0,
32596
- owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
32597
- amount: 18446744073709552e3,
32598
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32599
- },
32600
- {
32601
- tx_id: "0xfeb4f2388fa22e6613ff85cf4e655f58acdfaa6299eba7f93b812cd1f0d7bbac48f0",
32602
- output_index: 0,
32603
- tx_pointer_block_height: 0,
32604
- tx_pointer_tx_idx: 0,
32605
- owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
32606
- amount: 18446744073709552e3,
32607
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32608
- },
32609
- {
32610
- tx_id: "0xc4d20299f43358dc32ab853f6631340b09278511b6adbaf34597ade6ef37efd018f1",
32611
- output_index: 0,
32612
- tx_pointer_block_height: 0,
32613
- tx_pointer_tx_idx: 0,
32614
- owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
32615
- amount: 18446744073709552e3,
32616
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32617
- },
32618
- {
32619
- tx_id: "0x437291414110b0aebaa8be5c0d9ff1e97d1130a24a6c9e028f2b1f6b0576be6aa961",
32620
- output_index: 0,
32621
- tx_pointer_block_height: 0,
32622
- tx_pointer_tx_idx: 0,
32623
- owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
32624
- amount: 18446744073709552e3,
32625
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32626
- },
32627
- {
32628
- tx_id: "0x28131b9acc90c2058ee14f4094a474146ba5b779cb9021867164b3d41abad3d047a7",
32629
- output_index: 0,
32630
- tx_pointer_block_height: 0,
32631
- tx_pointer_tx_idx: 0,
32632
- owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
32633
- amount: 18446744073709552e3,
32634
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32635
- },
32636
- {
32637
- tx_id: "0x033bb5f9b0e4f530d50af3a0f12dd510f799af495ef88baea3cf854a37da728d214b",
32638
- output_index: 0,
32639
- tx_pointer_block_height: 0,
32640
- tx_pointer_tx_idx: 0,
32641
- owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
32642
- amount: 18446744073709552e3,
32643
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32644
- },
32645
- {
32646
- tx_id: "0x460591398552eca338dd9577f362b91b0f9297f308258734870350004dcc303c67e9",
32647
- output_index: 0,
32648
- tx_pointer_block_height: 0,
32649
- tx_pointer_tx_idx: 0,
32650
- owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
32651
- amount: 18446744073709552e3,
32652
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32653
- },
32654
- {
32655
- tx_id: "0x447a7c37aee972dcba72f05255c5145dd63125f0fc46ef98c216f775ee0421e23d2b",
32656
- output_index: 0,
32657
- tx_pointer_block_height: 0,
32658
- tx_pointer_tx_idx: 0,
32659
- owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
32660
- amount: 18446744073709552e3,
32661
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32662
- },
32663
- {
32664
- tx_id: "0xf4a5d727606260c7ac6333fa89e7aef474df8a13326716d4d02f6392ebb7b997d268",
32665
- output_index: 0,
32666
- tx_pointer_block_height: 0,
32667
- tx_pointer_tx_idx: 0,
32668
- owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
32669
- amount: 18446744073709552e3,
32670
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32671
- },
32672
- {
32673
- tx_id: "0x25a49b0731bf610f6706aa9e9e96e5967f7c50f4302a3c75d7c8141595896551c18d",
32674
- output_index: 0,
32675
- tx_pointer_block_height: 0,
32676
- tx_pointer_tx_idx: 0,
32677
- owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
32678
- amount: 18446744073709552e3,
32679
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32680
- },
32681
- {
32682
- tx_id: "0x0a6e3585881ef2edf3f7727762799089dc0b5923e8b3718b49044dd9ddcb33b68459",
32683
- output_index: 0,
32684
- tx_pointer_block_height: 0,
32685
- tx_pointer_tx_idx: 0,
32686
- owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
32687
- amount: 18446744073709552e3,
32688
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32689
- },
32690
- {
32691
- tx_id: "0xf73bbe0635f7b6d59a090a21d87288b82164d0f6101da830ce64eff64a2d2ff2ac37",
32692
- output_index: 0,
32693
- tx_pointer_block_height: 0,
32694
- tx_pointer_tx_idx: 0,
32695
- owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
32696
- amount: 18446744073709552e3,
32697
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32698
- },
32699
- {
32700
- tx_id: "0x6cc44cb8d2a6462a591a77b6b9917eb6b22ad80d23d3cfd4f94c9da49c14b3cbac6e",
32701
- output_index: 0,
32702
- tx_pointer_block_height: 0,
32703
- tx_pointer_tx_idx: 0,
32704
- owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
32705
- amount: 18446744073709552e3,
32706
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32464
+ consensus_parameters: {
32465
+ tx_params: {
32466
+ max_inputs: 255,
32467
+ max_outputs: 255,
32468
+ max_witnesses: 255,
32469
+ max_gas_per_tx: 1e7,
32470
+ max_size: 17825792
32707
32471
  },
32708
- {
32709
- tx_id: "0xbf2305d284ea95227040df4cc727156cccc2ca6aa3b92ed86fea4db1c37e5905f926",
32710
- output_index: 0,
32711
- tx_pointer_block_height: 0,
32712
- tx_pointer_tx_idx: 0,
32713
- owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
32714
- amount: 18446744073709552e3,
32715
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32472
+ predicate_params: {
32473
+ max_predicate_length: 1048576,
32474
+ max_predicate_data_length: 1048576,
32475
+ max_gas_per_predicate: 1e7,
32476
+ max_message_data_length: 1048576
32716
32477
  },
32717
- {
32718
- tx_id: "0xf4e1c76c72ecae699696f5e7a62ccf1425f7395080d0ca7b25ab63d1f841f425b807",
32719
- output_index: 0,
32720
- tx_pointer_block_height: 0,
32721
- tx_pointer_tx_idx: 0,
32722
- owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
32723
- amount: 18446744073709552e3,
32724
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32478
+ script_params: {
32479
+ max_script_length: 1048576,
32480
+ max_script_data_length: 1048576
32725
32481
  },
32726
- {
32727
- tx_id: "0x619c80ee9f4c27c2e134cec6c67bdb268ce7fb1d2ac229ca2a44ec7ac88b2da99669",
32728
- output_index: 0,
32729
- tx_pointer_block_height: 0,
32730
- tx_pointer_tx_idx: 0,
32731
- owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
32732
- amount: 18446744073709552e3,
32733
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32482
+ contract_params: {
32483
+ contract_max_size: 16777216,
32484
+ max_storage_slots: 255
32734
32485
  },
32735
- {
32736
- tx_id: "0x978d5b6be047ffbf1474dc376a6baa33264629b809e4a8210d11aaa805ec6451585d",
32737
- output_index: 0,
32738
- tx_pointer_block_height: 0,
32739
- tx_pointer_tx_idx: 0,
32740
- owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
32741
- amount: 18446744073709552e3,
32742
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32486
+ fee_params: {
32487
+ gas_price_factor: 92,
32488
+ gas_per_byte: 4
32489
+ }
32490
+ },
32491
+ gas_costs: {
32492
+ add: 1,
32493
+ addi: 1,
32494
+ aloc: 1,
32495
+ and: 1,
32496
+ andi: 1,
32497
+ bal: 13,
32498
+ bhei: 1,
32499
+ bhsh: 1,
32500
+ burn: 132,
32501
+ cb: 1,
32502
+ cfei: 1,
32503
+ cfsi: 1,
32504
+ croo: 16,
32505
+ div: 1,
32506
+ divi: 1,
32507
+ ecr1: 3e3,
32508
+ eck1: 951,
32509
+ ed19: 3e3,
32510
+ eq: 1,
32511
+ exp: 1,
32512
+ expi: 1,
32513
+ flag: 1,
32514
+ gm: 1,
32515
+ gt: 1,
32516
+ gtf: 1,
32517
+ ji: 1,
32518
+ jmp: 1,
32519
+ jne: 1,
32520
+ jnei: 1,
32521
+ jnzi: 1,
32522
+ jmpf: 1,
32523
+ jmpb: 1,
32524
+ jnzf: 1,
32525
+ jnzb: 1,
32526
+ jnef: 1,
32527
+ jneb: 1,
32528
+ lb: 1,
32529
+ log: 9,
32530
+ lt: 1,
32531
+ lw: 1,
32532
+ mint: 135,
32533
+ mlog: 1,
32534
+ modOp: 1,
32535
+ modi: 1,
32536
+ moveOp: 1,
32537
+ movi: 1,
32538
+ mroo: 2,
32539
+ mul: 1,
32540
+ muli: 1,
32541
+ mldv: 1,
32542
+ noop: 1,
32543
+ not: 1,
32544
+ or: 1,
32545
+ ori: 1,
32546
+ poph: 2,
32547
+ popl: 2,
32548
+ pshh: 2,
32549
+ pshl: 2,
32550
+ ret: 13,
32551
+ rvrt: 13,
32552
+ sb: 1,
32553
+ sll: 1,
32554
+ slli: 1,
32555
+ srl: 1,
32556
+ srli: 1,
32557
+ srw: 12,
32558
+ sub: 1,
32559
+ subi: 1,
32560
+ sw: 1,
32561
+ sww: 67,
32562
+ time: 1,
32563
+ tr: 105,
32564
+ tro: 60,
32565
+ wdcm: 1,
32566
+ wqcm: 1,
32567
+ wdop: 1,
32568
+ wqop: 1,
32569
+ wdml: 1,
32570
+ wqml: 1,
32571
+ wddv: 1,
32572
+ wqdv: 2,
32573
+ wdmd: 3,
32574
+ wqmd: 4,
32575
+ wdam: 2,
32576
+ wqam: 3,
32577
+ wdmm: 3,
32578
+ wqmm: 3,
32579
+ xor: 1,
32580
+ xori: 1,
32581
+ call: {
32582
+ LightOperation: {
32583
+ base: 144,
32584
+ units_per_gas: 214
32585
+ }
32743
32586
  },
32744
- {
32745
- tx_id: "0x673ba12fca6e52429896096262b8c59b61751976e552649fb1fe7369488fc10aa83c",
32746
- output_index: 0,
32747
- tx_pointer_block_height: 0,
32748
- tx_pointer_tx_idx: 0,
32749
- owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
32750
- amount: 18446744073709552e3,
32751
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32587
+ ccp: {
32588
+ LightOperation: {
32589
+ base: 15,
32590
+ units_per_gas: 103
32591
+ }
32752
32592
  },
32753
- {
32754
- tx_id: "0xc42a165104b9fcfa4a9ebffc707781ace233f1c0609c24c36a5c4bfcd407480ddb6c",
32755
- output_index: 0,
32756
- tx_pointer_block_height: 0,
32757
- tx_pointer_tx_idx: 0,
32758
- owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
32759
- amount: 18446744073709552e3,
32760
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32593
+ csiz: {
32594
+ LightOperation: {
32595
+ base: 17,
32596
+ units_per_gas: 790
32597
+ }
32761
32598
  },
32762
- {
32763
- tx_id: "0xb353fbcd94abba347f3ba25e17744e98da26e608ebccbbbd2e9d004997644bdf993c",
32764
- output_index: 0,
32765
- tx_pointer_block_height: 0,
32766
- tx_pointer_tx_idx: 0,
32767
- owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
32768
- amount: 18446744073709552e3,
32769
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32599
+ k256: {
32600
+ LightOperation: {
32601
+ base: 11,
32602
+ units_per_gas: 214
32603
+ }
32770
32604
  },
32771
- {
32772
- tx_id: "0xc34a6fcb241dec82f885019caf5e14bb6708b435afebfef0037ac447fbb6d30378a3",
32773
- output_index: 0,
32774
- tx_pointer_block_height: 0,
32775
- tx_pointer_tx_idx: 0,
32776
- owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
32777
- amount: 18446744073709552e3,
32778
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32605
+ ldc: {
32606
+ LightOperation: {
32607
+ base: 15,
32608
+ units_per_gas: 272
32609
+ }
32779
32610
  },
32780
- {
32781
- tx_id: "0x421dfb5811c905724f2f4c6370cd15eaeb590ddeb966f9a4b9f8d65991dfe5142e12",
32782
- output_index: 0,
32783
- tx_pointer_block_height: 0,
32784
- tx_pointer_tx_idx: 0,
32785
- owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
32786
- amount: 18446744073709552e3,
32787
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32611
+ logd: {
32612
+ LightOperation: {
32613
+ base: 26,
32614
+ units_per_gas: 64
32615
+ }
32788
32616
  },
32789
- {
32790
- tx_id: "0xa952c0487eefac5dda612011c4c82554c8660834461b9b815c6ae257b56b68005235",
32791
- output_index: 0,
32792
- tx_pointer_block_height: 0,
32793
- tx_pointer_tx_idx: 0,
32794
- owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
32795
- amount: 18446744073709552e3,
32796
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32617
+ mcl: {
32618
+ LightOperation: {
32619
+ base: 1,
32620
+ units_per_gas: 3333
32621
+ }
32797
32622
  },
32798
- {
32799
- tx_id: "0xebaccf91b3b213341d047b6e6af214f1f9729b3d6dadf9c1918a9fe412486af871db",
32800
- output_index: 0,
32801
- tx_pointer_block_height: 0,
32802
- tx_pointer_tx_idx: 0,
32803
- owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
32804
- amount: 18446744073709552e3,
32805
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32623
+ mcli: {
32624
+ LightOperation: {
32625
+ base: 1,
32626
+ units_per_gas: 3333
32627
+ }
32806
32628
  },
32807
- {
32808
- tx_id: "0xda6d61c153e7d735954408274f4ffe8459c2dbab720ce22a1ae9ffedd33077b5b19d",
32809
- output_index: 0,
32810
- tx_pointer_block_height: 0,
32811
- tx_pointer_tx_idx: 0,
32812
- owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
32813
- amount: 18446744073709552e3,
32814
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32629
+ mcp: {
32630
+ LightOperation: {
32631
+ base: 1,
32632
+ units_per_gas: 2e3
32633
+ }
32815
32634
  },
32816
- {
32817
- tx_id: "0x508871600ef68c4f1e021dd0db219c733107151338aa95de530bd10dc61f6a69c144",
32818
- output_index: 0,
32819
- tx_pointer_block_height: 0,
32820
- tx_pointer_tx_idx: 0,
32821
- owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
32822
- amount: 18446744073709552e3,
32823
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32635
+ mcpi: {
32636
+ LightOperation: {
32637
+ base: 3,
32638
+ units_per_gas: 2e3
32639
+ }
32824
32640
  },
32825
- {
32826
- tx_id: "0x509994738b4973e2dbbff9596b176a89fb07ee95f0ed575a4fe07a735a2a181f3200",
32827
- output_index: 0,
32828
- tx_pointer_block_height: 0,
32829
- tx_pointer_tx_idx: 0,
32830
- owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
32831
- amount: 18446744073709552e3,
32832
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32641
+ meq: {
32642
+ LightOperation: {
32643
+ base: 1,
32644
+ units_per_gas: 2500
32645
+ }
32833
32646
  },
32834
- {
32835
- tx_id: "0x6cc0cb58df0e0606fc85481aaaf5f47e145a67240b298c184bcb7fd7367c3bbf9453",
32836
- output_index: 0,
32837
- tx_pointer_block_height: 0,
32838
- tx_pointer_tx_idx: 0,
32839
- owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
32840
- amount: 18446744073709552e3,
32841
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32647
+ retd: {
32648
+ LightOperation: {
32649
+ base: 29,
32650
+ units_per_gas: 62
32651
+ }
32842
32652
  },
32843
- {
32844
- tx_id: "0x9ddea761afc31516307e1553647ac6cc26d4a82fed9a9e6a03b994cdbf2293b3e3b6",
32845
- output_index: 0,
32846
- tx_pointer_block_height: 0,
32847
- tx_pointer_tx_idx: 0,
32848
- owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
32849
- amount: 18446744073709552e3,
32850
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32653
+ s256: {
32654
+ LightOperation: {
32655
+ base: 2,
32656
+ units_per_gas: 214
32657
+ }
32851
32658
  },
32852
- {
32853
- tx_id: "0x82dbc478ba63abf28b92d9dce0cb8c2e6c02833d436fe812a33cf78417e4a80c1306",
32854
- output_index: 0,
32855
- tx_pointer_block_height: 0,
32856
- tx_pointer_tx_idx: 0,
32857
- owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
32858
- amount: 18446744073709552e3,
32859
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32659
+ scwq: {
32660
+ LightOperation: {
32661
+ base: 13,
32662
+ units_per_gas: 5
32663
+ }
32860
32664
  },
32861
- {
32862
- tx_id: "0xc3b0cb232c74009fd226a6246403f78bcc33d116579f41d9387c0d76c76942749c7c",
32863
- output_index: 0,
32864
- tx_pointer_block_height: 0,
32865
- tx_pointer_tx_idx: 0,
32866
- owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
32867
- amount: 18446744073709552e3,
32868
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32665
+ smo: {
32666
+ LightOperation: {
32667
+ base: 209,
32668
+ units_per_gas: 55
32669
+ }
32869
32670
  },
32870
- {
32871
- tx_id: "0x708ee45d18f94ab06458712745c92c7b9b6049ba345219d6697eae5208ec0328aeaf",
32872
- output_index: 0,
32873
- tx_pointer_block_height: 0,
32874
- tx_pointer_tx_idx: 0,
32875
- owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
32876
- amount: 18446744073709552e3,
32877
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32671
+ srwq: {
32672
+ LightOperation: {
32673
+ base: 47,
32674
+ units_per_gas: 5
32675
+ }
32878
32676
  },
32879
- {
32880
- tx_id: "0xfe26968c44ac5becc608ce543075ae9e677b7631f3beb7a11ba20703fdca3c0e3569",
32881
- output_index: 0,
32882
- tx_pointer_block_height: 0,
32883
- tx_pointer_tx_idx: 0,
32884
- owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
32885
- amount: 18446744073709552e3,
32886
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32677
+ swwq: {
32678
+ LightOperation: {
32679
+ base: 44,
32680
+ units_per_gas: 5
32681
+ }
32887
32682
  },
32888
- {
32889
- tx_id: "0xe0ec1d2c991feac69be4d0e84ad7c964616de08e16dccc4d2000b1900ba31082b993",
32890
- output_index: 0,
32891
- tx_pointer_block_height: 0,
32892
- tx_pointer_tx_idx: 0,
32893
- owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
32894
- amount: 18446744073709552e3,
32895
- asset_id: "0x0000000000000000000000000000000000000000000000000000000000000000"
32683
+ contract_root: {
32684
+ LightOperation: {
32685
+ base: 75,
32686
+ units_per_gas: 1
32687
+ }
32896
32688
  },
32897
- {
32898
- tx_id: "0xfa82dbdd72252d1e6c76ee818bbac0441c3a705aff447f041c8b9fc3cb03f9ccd7e2",
32899
- output_index: 0,
32900
- tx_pointer_block_height: 0,
32901
- tx_pointer_tx_idx: 0,
32902
- owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
32903
- amount: 18446744073709552e3,
32904
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
32689
+ state_root: {
32690
+ LightOperation: {
32691
+ base: 412,
32692
+ units_per_gas: 1
32693
+ }
32905
32694
  },
32906
- {
32907
- tx_id: "0x324f45e47cef892ac3e0759f3b72207c77046f9938267af4bd4af2ae031b97cb36c8",
32908
- output_index: 0,
32909
- tx_pointer_block_height: 0,
32910
- tx_pointer_tx_idx: 0,
32911
- owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
32912
- amount: 18446744073709552e3,
32913
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
32914
- }
32915
- ],
32916
- messages: [
32917
- {
32918
- sender: "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f",
32919
- recipient: "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba",
32920
- nonce: "0101010101010101010101010101010101010101010101010101010101010101",
32921
- amount: 18446744073709552e3,
32922
- data: "",
32923
- da_height: 0
32695
+ vm_initialization: {
32696
+ HeavyOperation: {
32697
+ base: 2e3,
32698
+ gas_per_unit: 0
32699
+ }
32924
32700
  },
32925
- {
32926
- sender: "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba",
32927
- recipient: "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f",
32928
- nonce: "0e1ef2963832068b0e1ef2963832068b0e1ef2963832068b0e1ef2963832068b",
32929
- amount: 12704439083013452e3,
32930
- data: "",
32931
- da_height: 0
32701
+ new_storage_per_byte: 1
32702
+ },
32703
+ consensus: {
32704
+ PoA: {
32705
+ signing_key: "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d"
32932
32706
  }
32933
- ],
32934
- contracts: [],
32935
- block_height: 0,
32936
- da_block_height: 0
32937
- };
32938
- var defaultChainConfigs = {
32939
- chainConfigJson: chainConfig_default,
32940
- metadataJson: metadata_default,
32941
- stateConfigJson: stateConfig_default
32707
+ }
32942
32708
  };
32709
+ var defaultChainConfig = chainConfig_default;
32943
32710
  var defaultConsensusKey = "0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298";
32944
32711
 
32945
32712
  // ../crypto/dist/index.mjs
@@ -34860,7 +34627,7 @@ This unreleased fuel-core build may include features and updates not yet support
34860
34627
  toEvmAddress() {
34861
34628
  const b256Address = toB256(this.bech32Address);
34862
34629
  return {
34863
- value: clearFirst12BytesFromB256(b256Address)
34630
+ bits: clearFirst12BytesFromB256(b256Address)
34864
34631
  };
34865
34632
  }
34866
34633
  /**
@@ -34870,7 +34637,7 @@ This unreleased fuel-core build may include features and updates not yet support
34870
34637
  */
34871
34638
  toAssetId() {
34872
34639
  return {
34873
- value: this.toB256()
34640
+ bits: this.toB256()
34874
34641
  };
34875
34642
  }
34876
34643
  /**
@@ -35211,182 +34978,32 @@ This unreleased fuel-core build may include features and updates not yet support
35211
34978
  function toBytes3(value, bytesPadding) {
35212
34979
  return bn(value).toBytes(bytesPadding);
35213
34980
  }
35214
-
35215
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_isPlaceholder.js
35216
- function _isPlaceholder(a) {
35217
- return a != null && typeof a === "object" && a["@@functional/placeholder"] === true;
35218
- }
35219
-
35220
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_curry1.js
35221
- function _curry1(fn) {
35222
- return function f1(a) {
35223
- if (arguments.length === 0 || _isPlaceholder(a)) {
35224
- return f1;
35225
- } else {
35226
- return fn.apply(this, arguments);
35227
- }
35228
- };
35229
- }
35230
-
35231
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_isArray.js
35232
- var isArray_default = Array.isArray || function _isArray(val) {
35233
- return val != null && val.length >= 0 && Object.prototype.toString.call(val) === "[object Array]";
35234
- };
35235
-
35236
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/type.js
35237
- var type = /* @__PURE__ */ _curry1(function type2(val) {
35238
- return val === null ? "Null" : val === void 0 ? "Undefined" : Object.prototype.toString.call(val).slice(8, -1);
35239
- });
35240
- var type_default = type;
35241
-
35242
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_toISOString.js
35243
- var pad = function pad2(n) {
35244
- return (n < 10 ? "0" : "") + n;
35245
- };
35246
- var _toISOString = typeof Date.prototype.toISOString === "function" ? function _toISOString2(d) {
35247
- return d.toISOString();
35248
- } : function _toISOString3(d) {
35249
- return d.getUTCFullYear() + "-" + pad(d.getUTCMonth() + 1) + "-" + pad(d.getUTCDate()) + "T" + pad(d.getUTCHours()) + ":" + pad(d.getUTCMinutes()) + ":" + pad(d.getUTCSeconds()) + "." + (d.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
35250
- };
35251
-
35252
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_isInteger.js
35253
- var isInteger_default = Number.isInteger || function _isInteger(n) {
35254
- return n << 0 === n;
35255
- };
35256
-
35257
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_cloneRegExp.js
35258
- function _cloneRegExp(pattern) {
35259
- return new RegExp(pattern.source, pattern.flags ? pattern.flags : (pattern.global ? "g" : "") + (pattern.ignoreCase ? "i" : "") + (pattern.multiline ? "m" : "") + (pattern.sticky ? "y" : "") + (pattern.unicode ? "u" : "") + (pattern.dotAll ? "s" : ""));
35260
- }
35261
-
35262
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_clone.js
35263
- function _clone(value, deep, map) {
35264
- map || (map = new _ObjectMap());
35265
- if (_isPrimitive(value)) {
35266
- return value;
35267
- }
35268
- var copy = function copy2(copiedValue) {
35269
- var cachedCopy = map.get(value);
35270
- if (cachedCopy) {
35271
- return cachedCopy;
35272
- }
35273
- map.set(value, copiedValue);
35274
- for (var key in value) {
35275
- if (Object.prototype.hasOwnProperty.call(value, key)) {
35276
- copiedValue[key] = deep ? _clone(value[key], true, map) : value[key];
35277
- }
35278
- }
35279
- return copiedValue;
35280
- };
35281
- switch (type_default(value)) {
35282
- case "Object":
35283
- return copy(Object.create(Object.getPrototypeOf(value)));
35284
- case "Array":
35285
- return copy([]);
35286
- case "Date":
35287
- return new Date(value.valueOf());
35288
- case "RegExp":
35289
- return _cloneRegExp(value);
35290
- case "Int8Array":
35291
- case "Uint8Array":
35292
- case "Uint8ClampedArray":
35293
- case "Int16Array":
35294
- case "Uint16Array":
35295
- case "Int32Array":
35296
- case "Uint32Array":
35297
- case "Float32Array":
35298
- case "Float64Array":
35299
- case "BigInt64Array":
35300
- case "BigUint64Array":
35301
- return value.slice();
35302
- default:
35303
- return value;
35304
- }
35305
- }
35306
- function _isPrimitive(param) {
35307
- var type3 = typeof param;
35308
- return param == null || type3 != "object" && type3 != "function";
34981
+ function max(...numbers) {
34982
+ return numbers.reduce((prev, cur) => bn(cur).gt(prev) ? bn(cur) : prev, bn(0));
35309
34983
  }
35310
- var _ObjectMap = /* @__PURE__ */ function() {
35311
- function _ObjectMap2() {
35312
- this.map = {};
35313
- this.length = 0;
35314
- }
35315
- _ObjectMap2.prototype.set = function(key, value) {
35316
- const hashedKey = this.hash(key);
35317
- let bucket = this.map[hashedKey];
35318
- if (!bucket) {
35319
- this.map[hashedKey] = bucket = [];
35320
- }
35321
- bucket.push([key, value]);
35322
- this.length += 1;
35323
- };
35324
- _ObjectMap2.prototype.hash = function(key) {
35325
- let hashedKey = [];
35326
- for (var value in key) {
35327
- hashedKey.push(Object.prototype.toString.call(key[value]));
35328
- }
35329
- return hashedKey.join();
35330
- };
35331
- _ObjectMap2.prototype.get = function(key) {
35332
- if (this.length <= 180) {
35333
- for (const p in this.map) {
35334
- const bucket2 = this.map[p];
35335
- for (let i = 0; i < bucket2.length; i += 1) {
35336
- const element = bucket2[i];
35337
- if (element[0] === key) {
35338
- return element[1];
35339
- }
35340
- }
35341
- }
35342
- return;
35343
- }
35344
- const hashedKey = this.hash(key);
35345
- const bucket = this.map[hashedKey];
35346
- if (!bucket) {
35347
- return;
35348
- }
35349
- for (let i = 0; i < bucket.length; i += 1) {
35350
- const element = bucket[i];
35351
- if (element[0] === key) {
35352
- return element[1];
35353
- }
35354
- }
35355
- };
35356
- return _ObjectMap2;
35357
- }();
35358
-
35359
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/clone.js
35360
- var clone = /* @__PURE__ */ _curry1(function clone2(value) {
35361
- return value != null && typeof value.clone === "function" ? value.clone() : _clone(value, true);
35362
- });
35363
- var clone_default = clone;
35364
-
35365
- // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/trim.js
35366
- var hasProtoTrim = typeof String.prototype.trim === "function";
35367
34984
 
35368
34985
  // src/providers/coin-quantity.ts
35369
34986
  var coinQuantityfy = (coinQuantityLike) => {
35370
34987
  let assetId;
35371
34988
  let amount;
35372
- let max;
34989
+ let max2;
35373
34990
  if (Array.isArray(coinQuantityLike)) {
35374
34991
  amount = coinQuantityLike[0];
35375
34992
  assetId = coinQuantityLike[1] ?? BaseAssetId;
35376
- max = coinQuantityLike[2] ?? void 0;
34993
+ max2 = coinQuantityLike[2] ?? void 0;
35377
34994
  } else {
35378
34995
  amount = coinQuantityLike.amount;
35379
34996
  assetId = coinQuantityLike.assetId ?? BaseAssetId;
35380
- max = coinQuantityLike.max ?? void 0;
34997
+ max2 = coinQuantityLike.max ?? void 0;
35381
34998
  }
35382
34999
  const bnAmount = bn(amount);
35383
35000
  return {
35384
35001
  assetId: hexlify(assetId),
35385
35002
  amount: bnAmount.lt(1) ? bn(1) : bnAmount,
35386
- max: max ? bn(max) : void 0
35003
+ max: max2 ? bn(max2) : void 0
35387
35004
  };
35388
35005
  };
35389
- var addAmountToCoinQuantities = (params) => {
35006
+ var addAmountToAsset = (params) => {
35390
35007
  const { amount, assetId } = params;
35391
35008
  const coinQuantities = [...params.coinQuantities];
35392
35009
  const assetIdx = coinQuantities.findIndex((coinQuantity) => coinQuantity.assetId === assetId);
@@ -35453,7 +35070,7 @@ This unreleased fuel-core build may include features and updates not yet support
35453
35070
  var ENCODING_V1 = "1";
35454
35071
  var WORD_SIZE = 8;
35455
35072
  var BYTES_32 = 32;
35456
- var UTXO_ID_LEN = BYTES_32 + 2;
35073
+ var UTXO_ID_LEN = BYTES_32 + 1;
35457
35074
  var ASSET_ID_LEN = BYTES_32;
35458
35075
  var ADDRESS_LEN = BYTES_32;
35459
35076
  var NONCE_LEN = BYTES_32;
@@ -35461,9 +35078,9 @@ This unreleased fuel-core build may include features and updates not yet support
35461
35078
  var TX_POINTER_LEN = WORD_SIZE * 2;
35462
35079
  var MAX_BYTES = 2 ** 32 - 1;
35463
35080
  var calculateVmTxMemory = ({ maxInputs }) => BYTES_32 + // Tx ID
35464
- ASSET_ID_LEN + // Base asset ID
35081
+ WORD_SIZE + // Tx size
35465
35082
  // Asset ID/Balance coin input pairs
35466
- maxInputs * (ASSET_ID_LEN + WORD_SIZE) + WORD_SIZE;
35083
+ maxInputs * (ASSET_ID_LEN + WORD_SIZE);
35467
35084
  var SCRIPT_FIXED_SIZE = WORD_SIZE + // Identifier
35468
35085
  WORD_SIZE + // Gas limit
35469
35086
  WORD_SIZE + // Script size
@@ -35481,6 +35098,7 @@ This unreleased fuel-core build may include features and updates not yet support
35481
35098
  ASSET_ID_LEN + // Asset id
35482
35099
  TX_POINTER_LEN + // TxPointer
35483
35100
  WORD_SIZE + // Witnesses index
35101
+ WORD_SIZE + // Maturity
35484
35102
  WORD_SIZE + // Predicate size
35485
35103
  WORD_SIZE + // Predicate data size
35486
35104
  WORD_SIZE;
@@ -35802,7 +35420,7 @@ This unreleased fuel-core build may include features and updates not yet support
35802
35420
  constructor(name, coders) {
35803
35421
  const caseIndexCoder = new BigNumberCoder("u64");
35804
35422
  const encodedValueSize = Object.values(coders).reduce(
35805
- (max, coder) => Math.max(max, coder.encodedLength),
35423
+ (max2, coder) => Math.max(max2, coder.encodedLength),
35806
35424
  0
35807
35425
  );
35808
35426
  super(`enum ${name}`, `enum ${name}`, caseIndexCoder.encodedLength + encodedValueSize);
@@ -36520,7 +36138,7 @@ This unreleased fuel-core build may include features and updates not yet support
36520
36138
  constructor(name, coders) {
36521
36139
  const caseIndexCoder = new BigNumberCoder("u64");
36522
36140
  const encodedValueSize = Object.values(coders).reduce(
36523
- (max, coder) => Math.max(max, coder.encodedLength),
36141
+ (max2, coder) => Math.max(max2, coder.encodedLength),
36524
36142
  0
36525
36143
  );
36526
36144
  super(`enum ${name}`, `enum ${name}`, caseIndexCoder.encodedLength + encodedValueSize);
@@ -37234,19 +36852,18 @@ This unreleased fuel-core build may include features and updates not yet support
37234
36852
  encode(value) {
37235
36853
  const parts = [];
37236
36854
  parts.push(new B256Coder().encode(value.txID));
37237
- parts.push(new NumberCoder("u16").encode(value.outputIndex));
36855
+ parts.push(new NumberCoder("u8").encode(value.outputIndex));
37238
36856
  parts.push(new B256Coder().encode(value.owner));
37239
36857
  parts.push(new BigNumberCoder("u64").encode(value.amount));
37240
36858
  parts.push(new B256Coder().encode(value.assetId));
37241
36859
  parts.push(new TxPointerCoder().encode(value.txPointer));
37242
- parts.push(new NumberCoder("u16").encode(value.witnessIndex));
36860
+ parts.push(new NumberCoder("u8").encode(value.witnessIndex));
36861
+ parts.push(new NumberCoder("u32").encode(value.maturity));
37243
36862
  parts.push(new BigNumberCoder("u64").encode(value.predicateGasUsed));
37244
- parts.push(new BigNumberCoder("u64").encode(value.predicateLength));
37245
- parts.push(new BigNumberCoder("u64").encode(value.predicateDataLength));
37246
- parts.push(new ByteArrayCoder(value.predicateLength.toNumber()).encode(value.predicate));
37247
- parts.push(
37248
- new ByteArrayCoder(value.predicateDataLength.toNumber()).encode(value.predicateData)
37249
- );
36863
+ parts.push(new NumberCoder("u32").encode(value.predicateLength));
36864
+ parts.push(new NumberCoder("u32").encode(value.predicateDataLength));
36865
+ parts.push(new ByteArrayCoder(value.predicateLength).encode(value.predicate));
36866
+ parts.push(new ByteArrayCoder(value.predicateDataLength).encode(value.predicateData));
37250
36867
  return concat(parts);
37251
36868
  }
37252
36869
  decode(data, offset) {
@@ -37254,7 +36871,7 @@ This unreleased fuel-core build may include features and updates not yet support
37254
36871
  let o = offset;
37255
36872
  [decoded, o] = new B256Coder().decode(data, o);
37256
36873
  const txID = decoded;
37257
- [decoded, o] = new NumberCoder("u16").decode(data, o);
36874
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
37258
36875
  const outputIndex = decoded;
37259
36876
  [decoded, o] = new B256Coder().decode(data, o);
37260
36877
  const owner = decoded;
@@ -37264,17 +36881,19 @@ This unreleased fuel-core build may include features and updates not yet support
37264
36881
  const assetId = decoded;
37265
36882
  [decoded, o] = new TxPointerCoder().decode(data, o);
37266
36883
  const txPointer = decoded;
37267
- [decoded, o] = new NumberCoder("u16").decode(data, o);
36884
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
37268
36885
  const witnessIndex = Number(decoded);
36886
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
36887
+ const maturity = decoded;
37269
36888
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37270
36889
  const predicateGasUsed = decoded;
37271
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
36890
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
37272
36891
  const predicateLength = decoded;
37273
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
36892
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
37274
36893
  const predicateDataLength = decoded;
37275
- [decoded, o] = new ByteArrayCoder(predicateLength.toNumber()).decode(data, o);
36894
+ [decoded, o] = new ByteArrayCoder(predicateLength).decode(data, o);
37276
36895
  const predicate = decoded;
37277
- [decoded, o] = new ByteArrayCoder(predicateDataLength.toNumber()).decode(data, o);
36896
+ [decoded, o] = new ByteArrayCoder(predicateDataLength).decode(data, o);
37278
36897
  const predicateData = decoded;
37279
36898
  return [
37280
36899
  {
@@ -37286,6 +36905,7 @@ This unreleased fuel-core build may include features and updates not yet support
37286
36905
  assetId,
37287
36906
  txPointer,
37288
36907
  witnessIndex,
36908
+ maturity,
37289
36909
  predicateGasUsed,
37290
36910
  predicateLength,
37291
36911
  predicateDataLength,
@@ -37303,7 +36923,7 @@ This unreleased fuel-core build may include features and updates not yet support
37303
36923
  encode(value) {
37304
36924
  const parts = [];
37305
36925
  parts.push(new B256Coder().encode(value.txID));
37306
- parts.push(new NumberCoder("u16").encode(value.outputIndex));
36926
+ parts.push(new NumberCoder("u8").encode(value.outputIndex));
37307
36927
  parts.push(new B256Coder().encode(value.balanceRoot));
37308
36928
  parts.push(new B256Coder().encode(value.stateRoot));
37309
36929
  parts.push(new TxPointerCoder().encode(value.txPointer));
@@ -37315,7 +36935,7 @@ This unreleased fuel-core build may include features and updates not yet support
37315
36935
  let o = offset;
37316
36936
  [decoded, o] = new B256Coder().decode(data, o);
37317
36937
  const txID = decoded;
37318
- [decoded, o] = new NumberCoder("u16").decode(data, o);
36938
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
37319
36939
  const outputIndex = decoded;
37320
36940
  [decoded, o] = new B256Coder().decode(data, o);
37321
36941
  const balanceRoot = decoded;
@@ -37364,16 +36984,14 @@ This unreleased fuel-core build may include features and updates not yet support
37364
36984
  parts.push(new ByteArrayCoder(32).encode(value.recipient));
37365
36985
  parts.push(new BigNumberCoder("u64").encode(value.amount));
37366
36986
  parts.push(new ByteArrayCoder(32).encode(value.nonce));
37367
- parts.push(new NumberCoder("u16").encode(value.witnessIndex));
36987
+ parts.push(new NumberCoder("u8").encode(value.witnessIndex));
37368
36988
  parts.push(new BigNumberCoder("u64").encode(value.predicateGasUsed));
37369
- parts.push(new BigNumberCoder("u64").encode(data.length));
37370
- parts.push(new BigNumberCoder("u64").encode(value.predicateLength));
37371
- parts.push(new BigNumberCoder("u64").encode(value.predicateDataLength));
36989
+ parts.push(new NumberCoder("u32").encode(data.length));
36990
+ parts.push(new NumberCoder("u32").encode(value.predicateLength));
36991
+ parts.push(new NumberCoder("u32").encode(value.predicateDataLength));
37372
36992
  parts.push(new ByteArrayCoder(data.length).encode(data));
37373
- parts.push(new ByteArrayCoder(value.predicateLength.toNumber()).encode(value.predicate));
37374
- parts.push(
37375
- new ByteArrayCoder(value.predicateDataLength.toNumber()).encode(value.predicateData)
37376
- );
36993
+ parts.push(new ByteArrayCoder(value.predicateLength).encode(value.predicate));
36994
+ parts.push(new ByteArrayCoder(value.predicateDataLength).encode(value.predicateData));
37377
36995
  return concat(parts);
37378
36996
  }
37379
36997
  static decodeData(messageData) {
@@ -37393,21 +37011,21 @@ This unreleased fuel-core build may include features and updates not yet support
37393
37011
  const amount = decoded;
37394
37012
  [decoded, o] = new B256Coder().decode(data, o);
37395
37013
  const nonce = decoded;
37396
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37014
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
37397
37015
  const witnessIndex = Number(decoded);
37398
37016
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37399
37017
  const predicateGasUsed = decoded;
37400
37018
  [decoded, o] = new NumberCoder("u32").decode(data, o);
37401
37019
  const dataLength2 = decoded;
37402
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37020
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
37403
37021
  const predicateLength = decoded;
37404
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37022
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
37405
37023
  const predicateDataLength = decoded;
37406
37024
  [decoded, o] = new ByteArrayCoder(dataLength2).decode(data, o);
37407
37025
  const messageData = decoded;
37408
- [decoded, o] = new ByteArrayCoder(predicateLength.toNumber()).decode(data, o);
37026
+ [decoded, o] = new ByteArrayCoder(predicateLength).decode(data, o);
37409
37027
  const predicate = decoded;
37410
- [decoded, o] = new ByteArrayCoder(predicateDataLength.toNumber()).decode(data, o);
37028
+ [decoded, o] = new ByteArrayCoder(predicateDataLength).decode(data, o);
37411
37029
  const predicateData = decoded;
37412
37030
  return [
37413
37031
  {
@@ -37719,7 +37337,7 @@ This unreleased fuel-core build may include features and updates not yet support
37719
37337
  }
37720
37338
  };
37721
37339
  var PolicyType = /* @__PURE__ */ ((PolicyType2) => {
37722
- PolicyType2[PolicyType2["Tip"] = 1] = "Tip";
37340
+ PolicyType2[PolicyType2["GasPrice"] = 1] = "GasPrice";
37723
37341
  PolicyType2[PolicyType2["WitnessLimit"] = 2] = "WitnessLimit";
37724
37342
  PolicyType2[PolicyType2["Maturity"] = 4] = "Maturity";
37725
37343
  PolicyType2[PolicyType2["MaxFee"] = 8] = "MaxFee";
@@ -37767,9 +37385,9 @@ This unreleased fuel-core build may include features and updates not yet support
37767
37385
  let o = offset;
37768
37386
  const policies = [];
37769
37387
  if (policyTypes & 1) {
37770
- const [tip, nextOffset] = new BigNumberCoder("u64").decode(data, o);
37388
+ const [gasPrice, nextOffset] = new BigNumberCoder("u64").decode(data, o);
37771
37389
  o = nextOffset;
37772
- policies.push({ type: 1, data: tip });
37390
+ policies.push({ type: 1, data: gasPrice });
37773
37391
  }
37774
37392
  if (policyTypes & 2) {
37775
37393
  const [witnessLimit, nextOffset] = new BigNumberCoder("u64").decode(data, o);
@@ -38001,15 +37619,15 @@ This unreleased fuel-core build may include features and updates not yet support
38001
37619
  encode(value) {
38002
37620
  const parts = [];
38003
37621
  parts.push(new BigNumberCoder("u64").encode(value.scriptGasLimit));
38004
- parts.push(new B256Coder().encode(value.receiptsRoot));
38005
- parts.push(new BigNumberCoder("u64").encode(value.scriptLength));
38006
- parts.push(new BigNumberCoder("u64").encode(value.scriptDataLength));
37622
+ parts.push(new NumberCoder("u32").encode(value.scriptLength));
37623
+ parts.push(new NumberCoder("u32").encode(value.scriptDataLength));
38007
37624
  parts.push(new NumberCoder("u32").encode(value.policyTypes));
38008
- parts.push(new NumberCoder("u16").encode(value.inputsCount));
38009
- parts.push(new NumberCoder("u16").encode(value.outputsCount));
38010
- parts.push(new NumberCoder("u16").encode(value.witnessesCount));
38011
- parts.push(new ByteArrayCoder(value.scriptLength.toNumber()).encode(value.script));
38012
- parts.push(new ByteArrayCoder(value.scriptDataLength.toNumber()).encode(value.scriptData));
37625
+ parts.push(new NumberCoder("u8").encode(value.inputsCount));
37626
+ parts.push(new NumberCoder("u8").encode(value.outputsCount));
37627
+ parts.push(new NumberCoder("u8").encode(value.witnessesCount));
37628
+ parts.push(new B256Coder().encode(value.receiptsRoot));
37629
+ parts.push(new ByteArrayCoder(value.scriptLength).encode(value.script));
37630
+ parts.push(new ByteArrayCoder(value.scriptDataLength).encode(value.scriptData));
38013
37631
  parts.push(new PoliciesCoder().encode(value.policies));
38014
37632
  parts.push(new ArrayCoder(new InputCoder(), value.inputsCount).encode(value.inputs));
38015
37633
  parts.push(new ArrayCoder(new OutputCoder(), value.outputsCount).encode(value.outputs));
@@ -38021,23 +37639,23 @@ This unreleased fuel-core build may include features and updates not yet support
38021
37639
  let o = offset;
38022
37640
  [decoded, o] = new BigNumberCoder("u64").decode(data, o);
38023
37641
  const scriptGasLimit = decoded;
38024
- [decoded, o] = new B256Coder().decode(data, o);
38025
- const receiptsRoot = decoded;
38026
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37642
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
38027
37643
  const scriptLength = decoded;
38028
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
37644
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
38029
37645
  const scriptDataLength = decoded;
38030
37646
  [decoded, o] = new NumberCoder("u32").decode(data, o);
38031
37647
  const policyTypes = decoded;
38032
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37648
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38033
37649
  const inputsCount = decoded;
38034
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37650
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38035
37651
  const outputsCount = decoded;
38036
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37652
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38037
37653
  const witnessesCount = decoded;
38038
- [decoded, o] = new ByteArrayCoder(scriptLength.toNumber()).decode(data, o);
37654
+ [decoded, o] = new B256Coder().decode(data, o);
37655
+ const receiptsRoot = decoded;
37656
+ [decoded, o] = new ByteArrayCoder(scriptLength).decode(data, o);
38039
37657
  const script = decoded;
38040
- [decoded, o] = new ByteArrayCoder(scriptDataLength.toNumber()).decode(data, o);
37658
+ [decoded, o] = new ByteArrayCoder(scriptDataLength).decode(data, o);
38041
37659
  const scriptData = decoded;
38042
37660
  [decoded, o] = new PoliciesCoder().decode(data, o, policyTypes);
38043
37661
  const policies = decoded;
@@ -38075,19 +37693,18 @@ This unreleased fuel-core build may include features and updates not yet support
38075
37693
  }
38076
37694
  encode(value) {
38077
37695
  const parts = [];
38078
- parts.push(new NumberCoder("u16").encode(value.bytecodeWitnessIndex));
38079
- parts.push(new B256Coder().encode(value.salt));
38080
- parts.push(new BigNumberCoder("u64").encode(value.storageSlotsCount));
37696
+ parts.push(new NumberCoder("u32").encode(value.bytecodeLength));
37697
+ parts.push(new NumberCoder("u8").encode(value.bytecodeWitnessIndex));
38081
37698
  parts.push(new NumberCoder("u32").encode(value.policyTypes));
38082
- parts.push(new NumberCoder("u16").encode(value.inputsCount));
38083
- parts.push(new NumberCoder("u16").encode(value.outputsCount));
38084
- parts.push(new NumberCoder("u16").encode(value.witnessesCount));
37699
+ parts.push(new NumberCoder("u16").encode(value.storageSlotsCount));
37700
+ parts.push(new NumberCoder("u8").encode(value.inputsCount));
37701
+ parts.push(new NumberCoder("u8").encode(value.outputsCount));
37702
+ parts.push(new NumberCoder("u8").encode(value.witnessesCount));
37703
+ parts.push(new B256Coder().encode(value.salt));
37704
+ parts.push(new PoliciesCoder().encode(value.policies));
38085
37705
  parts.push(
38086
- new ArrayCoder(new StorageSlotCoder(), value.storageSlotsCount.toNumber()).encode(
38087
- value.storageSlots
38088
- )
37706
+ new ArrayCoder(new StorageSlotCoder(), value.storageSlotsCount).encode(value.storageSlots)
38089
37707
  );
38090
- parts.push(new PoliciesCoder().encode(value.policies));
38091
37708
  parts.push(new ArrayCoder(new InputCoder(), value.inputsCount).encode(value.inputs));
38092
37709
  parts.push(new ArrayCoder(new OutputCoder(), value.outputsCount).encode(value.outputs));
38093
37710
  parts.push(new ArrayCoder(new WitnessCoder(), value.witnessesCount).encode(value.witnesses));
@@ -38096,27 +37713,26 @@ This unreleased fuel-core build may include features and updates not yet support
38096
37713
  decode(data, offset) {
38097
37714
  let decoded;
38098
37715
  let o = offset;
38099
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37716
+ [decoded, o] = new NumberCoder("u32").decode(data, o);
37717
+ const bytecodeLength = decoded;
37718
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38100
37719
  const bytecodeWitnessIndex = decoded;
38101
- [decoded, o] = new B256Coder().decode(data, o);
38102
- const salt = decoded;
38103
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
38104
- const storageSlotsCount = decoded;
38105
37720
  [decoded, o] = new NumberCoder("u32").decode(data, o);
38106
37721
  const policyTypes = decoded;
38107
37722
  [decoded, o] = new NumberCoder("u16").decode(data, o);
37723
+ const storageSlotsCount = decoded;
37724
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38108
37725
  const inputsCount = decoded;
38109
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37726
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38110
37727
  const outputsCount = decoded;
38111
- [decoded, o] = new NumberCoder("u16").decode(data, o);
37728
+ [decoded, o] = new NumberCoder("u8").decode(data, o);
38112
37729
  const witnessesCount = decoded;
38113
- [decoded, o] = new ArrayCoder(new StorageSlotCoder(), storageSlotsCount.toNumber()).decode(
38114
- data,
38115
- o
38116
- );
38117
- const storageSlots = decoded;
37730
+ [decoded, o] = new B256Coder().decode(data, o);
37731
+ const salt = decoded;
38118
37732
  [decoded, o] = new PoliciesCoder().decode(data, o, policyTypes);
38119
37733
  const policies = decoded;
37734
+ [decoded, o] = new ArrayCoder(new StorageSlotCoder(), storageSlotsCount).decode(data, o);
37735
+ const storageSlots = decoded;
38120
37736
  [decoded, o] = new ArrayCoder(new InputCoder(), inputsCount).decode(data, o);
38121
37737
  const inputs = decoded;
38122
37738
  [decoded, o] = new ArrayCoder(new OutputCoder(), outputsCount).decode(data, o);
@@ -38126,6 +37742,7 @@ This unreleased fuel-core build may include features and updates not yet support
38126
37742
  return [
38127
37743
  {
38128
37744
  type: 1,
37745
+ bytecodeLength,
38129
37746
  bytecodeWitnessIndex,
38130
37747
  policyTypes,
38131
37748
  storageSlotsCount,
@@ -38154,7 +37771,6 @@ This unreleased fuel-core build may include features and updates not yet support
38154
37771
  parts.push(new OutputContractCoder().encode(value.outputContract));
38155
37772
  parts.push(new BigNumberCoder("u64").encode(value.mintAmount));
38156
37773
  parts.push(new B256Coder().encode(value.mintAssetId));
38157
- parts.push(new BigNumberCoder("u64").encode(value.gasPrice));
38158
37774
  return concat(parts);
38159
37775
  }
38160
37776
  decode(data, offset) {
@@ -38170,8 +37786,6 @@ This unreleased fuel-core build may include features and updates not yet support
38170
37786
  const mintAmount = decoded;
38171
37787
  [decoded, o] = new B256Coder().decode(data, o);
38172
37788
  const mintAssetId = decoded;
38173
- [decoded, o] = new BigNumberCoder("u64").decode(data, o);
38174
- const gasPrice = decoded;
38175
37789
  return [
38176
37790
  {
38177
37791
  type: 2,
@@ -38179,8 +37793,7 @@ This unreleased fuel-core build may include features and updates not yet support
38179
37793
  inputContract,
38180
37794
  outputContract,
38181
37795
  mintAmount,
38182
- mintAssetId,
38183
- gasPrice
37796
+ mintAssetId
38184
37797
  },
38185
37798
  o
38186
37799
  ];
@@ -38487,6 +38100,159 @@ This unreleased fuel-core build may include features and updates not yet support
38487
38100
  // src/providers/provider.ts
38488
38101
  var import_graphql_request = __toESM(require_dist2());
38489
38102
 
38103
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_isPlaceholder.js
38104
+ function _isPlaceholder(a) {
38105
+ return a != null && typeof a === "object" && a["@@functional/placeholder"] === true;
38106
+ }
38107
+
38108
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_curry1.js
38109
+ function _curry1(fn) {
38110
+ return function f1(a) {
38111
+ if (arguments.length === 0 || _isPlaceholder(a)) {
38112
+ return f1;
38113
+ } else {
38114
+ return fn.apply(this, arguments);
38115
+ }
38116
+ };
38117
+ }
38118
+
38119
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_isArray.js
38120
+ var isArray_default = Array.isArray || function _isArray(val) {
38121
+ return val != null && val.length >= 0 && Object.prototype.toString.call(val) === "[object Array]";
38122
+ };
38123
+
38124
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/type.js
38125
+ var type = /* @__PURE__ */ _curry1(function type2(val) {
38126
+ return val === null ? "Null" : val === void 0 ? "Undefined" : Object.prototype.toString.call(val).slice(8, -1);
38127
+ });
38128
+ var type_default = type;
38129
+
38130
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_toISOString.js
38131
+ var pad = function pad2(n) {
38132
+ return (n < 10 ? "0" : "") + n;
38133
+ };
38134
+ var _toISOString = typeof Date.prototype.toISOString === "function" ? function _toISOString2(d) {
38135
+ return d.toISOString();
38136
+ } : function _toISOString3(d) {
38137
+ return d.getUTCFullYear() + "-" + pad(d.getUTCMonth() + 1) + "-" + pad(d.getUTCDate()) + "T" + pad(d.getUTCHours()) + ":" + pad(d.getUTCMinutes()) + ":" + pad(d.getUTCSeconds()) + "." + (d.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
38138
+ };
38139
+
38140
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_isInteger.js
38141
+ var isInteger_default = Number.isInteger || function _isInteger(n) {
38142
+ return n << 0 === n;
38143
+ };
38144
+
38145
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_cloneRegExp.js
38146
+ function _cloneRegExp(pattern) {
38147
+ return new RegExp(pattern.source, pattern.flags ? pattern.flags : (pattern.global ? "g" : "") + (pattern.ignoreCase ? "i" : "") + (pattern.multiline ? "m" : "") + (pattern.sticky ? "y" : "") + (pattern.unicode ? "u" : "") + (pattern.dotAll ? "s" : ""));
38148
+ }
38149
+
38150
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/internal/_clone.js
38151
+ function _clone(value, deep, map) {
38152
+ map || (map = new _ObjectMap());
38153
+ if (_isPrimitive(value)) {
38154
+ return value;
38155
+ }
38156
+ var copy = function copy2(copiedValue) {
38157
+ var cachedCopy = map.get(value);
38158
+ if (cachedCopy) {
38159
+ return cachedCopy;
38160
+ }
38161
+ map.set(value, copiedValue);
38162
+ for (var key in value) {
38163
+ if (Object.prototype.hasOwnProperty.call(value, key)) {
38164
+ copiedValue[key] = deep ? _clone(value[key], true, map) : value[key];
38165
+ }
38166
+ }
38167
+ return copiedValue;
38168
+ };
38169
+ switch (type_default(value)) {
38170
+ case "Object":
38171
+ return copy(Object.create(Object.getPrototypeOf(value)));
38172
+ case "Array":
38173
+ return copy([]);
38174
+ case "Date":
38175
+ return new Date(value.valueOf());
38176
+ case "RegExp":
38177
+ return _cloneRegExp(value);
38178
+ case "Int8Array":
38179
+ case "Uint8Array":
38180
+ case "Uint8ClampedArray":
38181
+ case "Int16Array":
38182
+ case "Uint16Array":
38183
+ case "Int32Array":
38184
+ case "Uint32Array":
38185
+ case "Float32Array":
38186
+ case "Float64Array":
38187
+ case "BigInt64Array":
38188
+ case "BigUint64Array":
38189
+ return value.slice();
38190
+ default:
38191
+ return value;
38192
+ }
38193
+ }
38194
+ function _isPrimitive(param) {
38195
+ var type3 = typeof param;
38196
+ return param == null || type3 != "object" && type3 != "function";
38197
+ }
38198
+ var _ObjectMap = /* @__PURE__ */ function() {
38199
+ function _ObjectMap2() {
38200
+ this.map = {};
38201
+ this.length = 0;
38202
+ }
38203
+ _ObjectMap2.prototype.set = function(key, value) {
38204
+ const hashedKey = this.hash(key);
38205
+ let bucket = this.map[hashedKey];
38206
+ if (!bucket) {
38207
+ this.map[hashedKey] = bucket = [];
38208
+ }
38209
+ bucket.push([key, value]);
38210
+ this.length += 1;
38211
+ };
38212
+ _ObjectMap2.prototype.hash = function(key) {
38213
+ let hashedKey = [];
38214
+ for (var value in key) {
38215
+ hashedKey.push(Object.prototype.toString.call(key[value]));
38216
+ }
38217
+ return hashedKey.join();
38218
+ };
38219
+ _ObjectMap2.prototype.get = function(key) {
38220
+ if (this.length <= 180) {
38221
+ for (const p in this.map) {
38222
+ const bucket2 = this.map[p];
38223
+ for (let i = 0; i < bucket2.length; i += 1) {
38224
+ const element = bucket2[i];
38225
+ if (element[0] === key) {
38226
+ return element[1];
38227
+ }
38228
+ }
38229
+ }
38230
+ return;
38231
+ }
38232
+ const hashedKey = this.hash(key);
38233
+ const bucket = this.map[hashedKey];
38234
+ if (!bucket) {
38235
+ return;
38236
+ }
38237
+ for (let i = 0; i < bucket.length; i += 1) {
38238
+ const element = bucket[i];
38239
+ if (element[0] === key) {
38240
+ return element[1];
38241
+ }
38242
+ }
38243
+ };
38244
+ return _ObjectMap2;
38245
+ }();
38246
+
38247
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/clone.js
38248
+ var clone2 = /* @__PURE__ */ _curry1(function clone3(value) {
38249
+ return value != null && typeof value.clone === "function" ? value.clone() : _clone(value, true);
38250
+ });
38251
+ var clone_default = clone2;
38252
+
38253
+ // ../../node_modules/.pnpm/ramda@0.29.0/node_modules/ramda/es/trim.js
38254
+ var hasProtoTrim = typeof String.prototype.trim === "function";
38255
+
38490
38256
  // ../../node_modules/.pnpm/tslib@2.6.0/node_modules/tslib/tslib.es6.mjs
38491
38257
  var __assign = function() {
38492
38258
  __assign = Object.assign || function __assign2(t) {
@@ -41652,8 +41418,44 @@ spurious results.`);
41652
41418
  var lib_default2 = gql;
41653
41419
 
41654
41420
  // src/providers/__generated__/operations.ts
41655
- var TransactionStatusSubscriptionFragmentFragmentDoc = lib_default2`
41656
- fragment transactionStatusSubscriptionFragment on TransactionStatus {
41421
+ var ReceiptFragmentFragmentDoc = lib_default2`
41422
+ fragment receiptFragment on Receipt {
41423
+ contract {
41424
+ id
41425
+ }
41426
+ pc
41427
+ is
41428
+ to {
41429
+ id
41430
+ }
41431
+ toAddress
41432
+ amount
41433
+ assetId
41434
+ gas
41435
+ param1
41436
+ param2
41437
+ val
41438
+ ptr
41439
+ digest
41440
+ reason
41441
+ ra
41442
+ rb
41443
+ rc
41444
+ rd
41445
+ len
41446
+ receiptType
41447
+ result
41448
+ gasUsed
41449
+ data
41450
+ sender
41451
+ recipient
41452
+ nonce
41453
+ contractId
41454
+ subId
41455
+ }
41456
+ `;
41457
+ var TransactionStatusFragmentFragmentDoc = lib_default2`
41458
+ fragment transactionStatusFragment on TransactionStatus {
41657
41459
  type: __typename
41658
41460
  ... on SubmittedStatus {
41659
41461
  time
@@ -41680,84 +41482,20 @@ spurious results.`);
41680
41482
  }
41681
41483
  }
41682
41484
  `;
41683
- var ReceiptFragmentFragmentDoc = lib_default2`
41684
- fragment receiptFragment on Receipt {
41685
- id
41686
- pc
41687
- is
41688
- to
41689
- toAddress
41690
- amount
41691
- assetId
41692
- gas
41693
- param1
41694
- param2
41695
- val
41696
- ptr
41697
- digest
41698
- reason
41699
- ra
41700
- rb
41701
- rc
41702
- rd
41703
- len
41704
- receiptType
41705
- result
41706
- gasUsed
41707
- data
41708
- sender
41709
- recipient
41710
- nonce
41711
- contractId
41712
- subId
41713
- }
41714
- `;
41715
- var TransactionStatusFragmentFragmentDoc = lib_default2`
41716
- fragment transactionStatusFragment on TransactionStatus {
41717
- type: __typename
41718
- ... on SubmittedStatus {
41719
- time
41720
- }
41721
- ... on SuccessStatus {
41722
- block {
41723
- id
41724
- }
41725
- time
41726
- receipts {
41727
- ...receiptFragment
41728
- }
41729
- programState {
41730
- returnType
41731
- data
41732
- }
41733
- receipts {
41734
- ...receiptFragment
41735
- }
41736
- }
41737
- ... on FailureStatus {
41738
- block {
41739
- id
41740
- }
41741
- time
41742
- reason
41743
- receipts {
41744
- ...receiptFragment
41745
- }
41746
- }
41747
- ... on SqueezedOutStatus {
41748
- reason
41749
- }
41750
- }
41751
- ${ReceiptFragmentFragmentDoc}`;
41752
41485
  var TransactionFragmentFragmentDoc = lib_default2`
41753
41486
  fragment transactionFragment on Transaction {
41754
41487
  id
41755
41488
  rawPayload
41489
+ gasPrice
41490
+ receipts {
41491
+ ...receiptFragment
41492
+ }
41756
41493
  status {
41757
41494
  ...transactionStatusFragment
41758
41495
  }
41759
41496
  }
41760
- ${TransactionStatusFragmentFragmentDoc}`;
41497
+ ${ReceiptFragmentFragmentDoc}
41498
+ ${TransactionStatusFragmentFragmentDoc}`;
41761
41499
  var InputEstimatePredicatesFragmentFragmentDoc = lib_default2`
41762
41500
  fragment inputEstimatePredicatesFragment on Input {
41763
41501
  ... on InputCoin {
@@ -41775,46 +41513,6 @@ spurious results.`);
41775
41513
  }
41776
41514
  }
41777
41515
  ${InputEstimatePredicatesFragmentFragmentDoc}`;
41778
- var DryRunFailureStatusFragmentFragmentDoc = lib_default2`
41779
- fragment dryRunFailureStatusFragment on DryRunFailureStatus {
41780
- reason
41781
- programState {
41782
- returnType
41783
- data
41784
- }
41785
- }
41786
- `;
41787
- var DryRunSuccessStatusFragmentFragmentDoc = lib_default2`
41788
- fragment dryRunSuccessStatusFragment on DryRunSuccessStatus {
41789
- programState {
41790
- returnType
41791
- data
41792
- }
41793
- }
41794
- `;
41795
- var DryRunTransactionStatusFragmentFragmentDoc = lib_default2`
41796
- fragment dryRunTransactionStatusFragment on DryRunTransactionStatus {
41797
- ... on DryRunFailureStatus {
41798
- ...dryRunFailureStatusFragment
41799
- }
41800
- ... on DryRunSuccessStatus {
41801
- ...dryRunSuccessStatusFragment
41802
- }
41803
- }
41804
- ${DryRunFailureStatusFragmentFragmentDoc}
41805
- ${DryRunSuccessStatusFragmentFragmentDoc}`;
41806
- var DryRunTransactionExecutionStatusFragmentFragmentDoc = lib_default2`
41807
- fragment dryRunTransactionExecutionStatusFragment on DryRunTransactionExecutionStatus {
41808
- id
41809
- status {
41810
- ...dryRunTransactionStatusFragment
41811
- }
41812
- receipts {
41813
- ...receiptFragment
41814
- }
41815
- }
41816
- ${DryRunTransactionStatusFragmentFragmentDoc}
41817
- ${ReceiptFragmentFragmentDoc}`;
41818
41516
  var CoinFragmentFragmentDoc = lib_default2`
41819
41517
  fragment coinFragment on Coin {
41820
41518
  __typename
@@ -41822,6 +41520,7 @@ ${ReceiptFragmentFragmentDoc}`;
41822
41520
  owner
41823
41521
  amount
41824
41522
  assetId
41523
+ maturity
41825
41524
  blockCreated
41826
41525
  txCreatedIdx
41827
41526
  }
@@ -41860,32 +41559,26 @@ ${ReceiptFragmentFragmentDoc}`;
41860
41559
  messageBlockHeader {
41861
41560
  id
41862
41561
  daHeight
41863
- consensusParametersVersion
41864
- stateTransitionBytecodeVersion
41865
41562
  transactionsCount
41866
- messageReceiptCount
41867
41563
  transactionsRoot
41868
- messageOutboxRoot
41869
- eventInboxRoot
41870
41564
  height
41871
41565
  prevRoot
41872
41566
  time
41873
41567
  applicationHash
41568
+ messageReceiptRoot
41569
+ messageReceiptCount
41874
41570
  }
41875
41571
  commitBlockHeader {
41876
41572
  id
41877
41573
  daHeight
41878
- consensusParametersVersion
41879
- stateTransitionBytecodeVersion
41880
41574
  transactionsCount
41881
- messageReceiptCount
41882
41575
  transactionsRoot
41883
- messageOutboxRoot
41884
- eventInboxRoot
41885
41576
  height
41886
41577
  prevRoot
41887
41578
  time
41888
41579
  applicationHash
41580
+ messageReceiptRoot
41581
+ messageReceiptCount
41889
41582
  }
41890
41583
  sender
41891
41584
  recipient
@@ -41904,8 +41597,8 @@ ${ReceiptFragmentFragmentDoc}`;
41904
41597
  var BlockFragmentFragmentDoc = lib_default2`
41905
41598
  fragment blockFragment on Block {
41906
41599
  id
41907
- height
41908
41600
  header {
41601
+ height
41909
41602
  time
41910
41603
  }
41911
41604
  transactions {
@@ -41963,11 +41656,6 @@ ${ReceiptFragmentFragmentDoc}`;
41963
41656
  `;
41964
41657
  var GasCostsFragmentFragmentDoc = lib_default2`
41965
41658
  fragment GasCostsFragment on GasCosts {
41966
- version {
41967
- ... on Version {
41968
- value
41969
- }
41970
- }
41971
41659
  add
41972
41660
  addi
41973
41661
  aloc
@@ -41980,6 +41668,7 @@ ${ReceiptFragmentFragmentDoc}`;
41980
41668
  cb
41981
41669
  cfei
41982
41670
  cfsi
41671
+ croo
41983
41672
  div
41984
41673
  divi
41985
41674
  ecr1
@@ -42062,9 +41751,6 @@ ${ReceiptFragmentFragmentDoc}`;
42062
41751
  ccp {
42063
41752
  ...DependentCostFragment
42064
41753
  }
42065
- croo {
42066
- ...DependentCostFragment
42067
- }
42068
41754
  csiz {
42069
41755
  ...DependentCostFragment
42070
41756
  }
@@ -42124,11 +41810,6 @@ ${ReceiptFragmentFragmentDoc}`;
42124
41810
  ${DependentCostFragmentFragmentDoc}`;
42125
41811
  var ConsensusParametersFragmentFragmentDoc = lib_default2`
42126
41812
  fragment consensusParametersFragment on ConsensusParameters {
42127
- version {
42128
- ... on Version {
42129
- value
42130
- }
42131
- }
42132
41813
  txParams {
42133
41814
  ...TxParametersFragment
42134
41815
  }
@@ -42188,9 +41869,18 @@ ${ConsensusParametersFragmentFragmentDoc}`;
42188
41869
  fragment nodeInfoFragment on NodeInfo {
42189
41870
  utxoValidation
42190
41871
  vmBacktrace
41872
+ minGasPrice
42191
41873
  maxTx
42192
41874
  maxDepth
42193
41875
  nodeVersion
41876
+ peers {
41877
+ id
41878
+ addresses
41879
+ clientVersion
41880
+ blockHeight
41881
+ lastHeartbeatMs
41882
+ appScore
41883
+ }
42194
41884
  }
42195
41885
  `;
42196
41886
  var GetVersionDocument = lib_default2`
@@ -42225,9 +41915,13 @@ ${ConsensusParametersFragmentFragmentDoc}`;
42225
41915
  query getTransactionWithReceipts($transactionId: TransactionId!) {
42226
41916
  transaction(id: $transactionId) {
42227
41917
  ...transactionFragment
41918
+ receipts {
41919
+ ...receiptFragment
41920
+ }
42228
41921
  }
42229
41922
  }
42230
- ${TransactionFragmentFragmentDoc}`;
41923
+ ${TransactionFragmentFragmentDoc}
41924
+ ${ReceiptFragmentFragmentDoc}`;
42231
41925
  var GetTransactionsDocument = lib_default2`
42232
41926
  query getTransactions($after: String, $before: String, $first: Int, $last: Int) {
42233
41927
  transactions(after: $after, before: $before, first: $first, last: $last) {
@@ -42355,20 +42049,6 @@ ${MessageCoinFragmentFragmentDoc}`;
42355
42049
  }
42356
42050
  }
42357
42051
  ${BalanceFragmentFragmentDoc}`;
42358
- var GetLatestGasPriceDocument = lib_default2`
42359
- query getLatestGasPrice {
42360
- latestGasPrice {
42361
- gasPrice
42362
- }
42363
- }
42364
- `;
42365
- var EstimateGasPriceDocument = lib_default2`
42366
- query estimateGasPrice($blockHorizon: U32!) {
42367
- estimateGasPrice(blockHorizon: $blockHorizon) {
42368
- gasPrice
42369
- }
42370
- }
42371
- `;
42372
42052
  var GetBalancesDocument = lib_default2`
42373
42053
  query getBalances($filter: BalanceFilterInput!, $after: String, $before: String, $first: Int, $last: Int) {
42374
42054
  balances(
@@ -42423,12 +42103,12 @@ ${MessageCoinFragmentFragmentDoc}`;
42423
42103
  }
42424
42104
  `;
42425
42105
  var DryRunDocument = lib_default2`
42426
- mutation dryRun($encodedTransactions: [HexString!]!, $utxoValidation: Boolean) {
42427
- dryRun(txs: $encodedTransactions, utxoValidation: $utxoValidation) {
42428
- ...dryRunTransactionExecutionStatusFragment
42106
+ mutation dryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) {
42107
+ dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) {
42108
+ ...receiptFragment
42429
42109
  }
42430
42110
  }
42431
- ${DryRunTransactionExecutionStatusFragmentFragmentDoc}`;
42111
+ ${ReceiptFragmentFragmentDoc}`;
42432
42112
  var SubmitDocument = lib_default2`
42433
42113
  mutation submit($encodedTransaction: HexString!) {
42434
42114
  submit(tx: $encodedTransaction) {
@@ -42447,17 +42127,17 @@ ${MessageCoinFragmentFragmentDoc}`;
42447
42127
  var SubmitAndAwaitDocument = lib_default2`
42448
42128
  subscription submitAndAwait($encodedTransaction: HexString!) {
42449
42129
  submitAndAwait(tx: $encodedTransaction) {
42450
- ...transactionStatusSubscriptionFragment
42130
+ ...transactionStatusFragment
42451
42131
  }
42452
42132
  }
42453
- ${TransactionStatusSubscriptionFragmentFragmentDoc}`;
42133
+ ${TransactionStatusFragmentFragmentDoc}`;
42454
42134
  var StatusChangeDocument = lib_default2`
42455
42135
  subscription statusChange($transactionId: TransactionId!) {
42456
42136
  statusChange(id: $transactionId) {
42457
- ...transactionStatusSubscriptionFragment
42137
+ ...transactionStatusFragment
42458
42138
  }
42459
42139
  }
42460
- ${TransactionStatusSubscriptionFragmentFragmentDoc}`;
42140
+ ${TransactionStatusFragmentFragmentDoc}`;
42461
42141
  function getSdk(requester) {
42462
42142
  return {
42463
42143
  getVersion(variables, options) {
@@ -42511,12 +42191,6 @@ ${MessageCoinFragmentFragmentDoc}`;
42511
42191
  getBalance(variables, options) {
42512
42192
  return requester(GetBalanceDocument, variables, options);
42513
42193
  },
42514
- getLatestGasPrice(variables, options) {
42515
- return requester(GetLatestGasPriceDocument, variables, options);
42516
- },
42517
- estimateGasPrice(variables, options) {
42518
- return requester(EstimateGasPriceDocument, variables, options);
42519
- },
42520
42194
  getBalances(variables, options) {
42521
42195
  return requester(GetBalancesDocument, variables, options);
42522
42196
  },
@@ -42700,9 +42374,10 @@ ${MessageCoinFragmentFragmentDoc}`;
42700
42374
  txIndex: toNumber2(arrayify(value.txPointer).slice(8, 16))
42701
42375
  },
42702
42376
  witnessIndex: value.witnessIndex,
42377
+ maturity: value.maturity ?? 0,
42703
42378
  predicateGasUsed: bn(value.predicateGasUsed),
42704
- predicateLength: bn(predicate.length),
42705
- predicateDataLength: bn(predicateData.length),
42379
+ predicateLength: predicate.length,
42380
+ predicateDataLength: predicateData.length,
42706
42381
  predicate: hexlify(predicate),
42707
42382
  predicateData: hexlify(predicateData)
42708
42383
  };
@@ -42733,8 +42408,8 @@ ${MessageCoinFragmentFragmentDoc}`;
42733
42408
  nonce: hexlify(value.nonce),
42734
42409
  witnessIndex: value.witnessIndex,
42735
42410
  predicateGasUsed: bn(value.predicateGasUsed),
42736
- predicateLength: bn(predicate.length),
42737
- predicateDataLength: bn(predicateData.length),
42411
+ predicateLength: predicate.length,
42412
+ predicateDataLength: predicateData.length,
42738
42413
  predicate: hexlify(predicate),
42739
42414
  predicateData: hexlify(predicateData),
42740
42415
  data: hexlify(data),
@@ -42891,8 +42566,8 @@ ${MessageCoinFragmentFragmentDoc}`;
42891
42566
  case "CALL" /* Call */: {
42892
42567
  const callReceipt = {
42893
42568
  type: ReceiptType.Call,
42894
- from: hexOrZero(receipt.id || receipt.contractId),
42895
- to: hexOrZero(receipt?.to),
42569
+ from: hexOrZero(receipt.contract?.id),
42570
+ to: hexOrZero(receipt?.to?.id),
42896
42571
  amount: bn(receipt.amount),
42897
42572
  assetId: hexOrZero(receipt.assetId),
42898
42573
  gas: bn(receipt.gas),
@@ -42906,7 +42581,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42906
42581
  case "RETURN" /* Return */: {
42907
42582
  const returnReceipt = {
42908
42583
  type: ReceiptType.Return,
42909
- id: hexOrZero(receipt.id || receipt.contractId),
42584
+ id: hexOrZero(receipt.contract?.id),
42910
42585
  val: bn(receipt.val),
42911
42586
  pc: bn(receipt.pc),
42912
42587
  is: bn(receipt.is)
@@ -42916,7 +42591,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42916
42591
  case "RETURN_DATA" /* ReturnData */: {
42917
42592
  const returnDataReceipt = {
42918
42593
  type: ReceiptType.ReturnData,
42919
- id: hexOrZero(receipt.id || receipt.contractId),
42594
+ id: hexOrZero(receipt.contract?.id),
42920
42595
  ptr: bn(receipt.ptr),
42921
42596
  len: bn(receipt.len),
42922
42597
  digest: hexOrZero(receipt.digest),
@@ -42928,7 +42603,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42928
42603
  case "PANIC" /* Panic */: {
42929
42604
  const panicReceipt = {
42930
42605
  type: ReceiptType.Panic,
42931
- id: hexOrZero(receipt.id),
42606
+ id: hexOrZero(receipt.contract?.id),
42932
42607
  reason: bn(receipt.reason),
42933
42608
  pc: bn(receipt.pc),
42934
42609
  is: bn(receipt.is),
@@ -42939,7 +42614,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42939
42614
  case "REVERT" /* Revert */: {
42940
42615
  const revertReceipt = {
42941
42616
  type: ReceiptType.Revert,
42942
- id: hexOrZero(receipt.id || receipt.contractId),
42617
+ id: hexOrZero(receipt.contract?.id),
42943
42618
  val: bn(receipt.ra),
42944
42619
  pc: bn(receipt.pc),
42945
42620
  is: bn(receipt.is)
@@ -42949,7 +42624,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42949
42624
  case "LOG" /* Log */: {
42950
42625
  const logReceipt = {
42951
42626
  type: ReceiptType.Log,
42952
- id: hexOrZero(receipt.id || receipt.contractId),
42627
+ id: hexOrZero(receipt.contract?.id),
42953
42628
  val0: bn(receipt.ra),
42954
42629
  val1: bn(receipt.rb),
42955
42630
  val2: bn(receipt.rc),
@@ -42962,7 +42637,7 @@ ${MessageCoinFragmentFragmentDoc}`;
42962
42637
  case "LOG_DATA" /* LogData */: {
42963
42638
  const logDataReceipt = {
42964
42639
  type: ReceiptType.LogData,
42965
- id: hexOrZero(receipt.id || receipt.contractId),
42640
+ id: hexOrZero(receipt.contract?.id),
42966
42641
  val0: bn(receipt.ra),
42967
42642
  val1: bn(receipt.rb),
42968
42643
  ptr: bn(receipt.ptr),
@@ -42976,8 +42651,8 @@ ${MessageCoinFragmentFragmentDoc}`;
42976
42651
  case "TRANSFER" /* Transfer */: {
42977
42652
  const transferReceipt = {
42978
42653
  type: ReceiptType.Transfer,
42979
- from: hexOrZero(receipt.id || receipt.contractId),
42980
- to: hexOrZero(receipt.toAddress || receipt?.to),
42654
+ from: hexOrZero(receipt.contract?.id),
42655
+ to: hexOrZero(receipt.toAddress || receipt?.to?.id),
42981
42656
  amount: bn(receipt.amount),
42982
42657
  assetId: hexOrZero(receipt.assetId),
42983
42658
  pc: bn(receipt.pc),
@@ -42988,8 +42663,8 @@ ${MessageCoinFragmentFragmentDoc}`;
42988
42663
  case "TRANSFER_OUT" /* TransferOut */: {
42989
42664
  const transferOutReceipt = {
42990
42665
  type: ReceiptType.TransferOut,
42991
- from: hexOrZero(receipt.id || receipt.contractId),
42992
- to: hexOrZero(receipt.toAddress || receipt.to),
42666
+ from: hexOrZero(receipt.contract?.id),
42667
+ to: hexOrZero(receipt.toAddress || receipt.to?.id),
42993
42668
  amount: bn(receipt.amount),
42994
42669
  assetId: hexOrZero(receipt.assetId),
42995
42670
  pc: bn(receipt.pc),
@@ -43032,7 +42707,7 @@ ${MessageCoinFragmentFragmentDoc}`;
43032
42707
  return receiptMessageOut;
43033
42708
  }
43034
42709
  case "MINT" /* Mint */: {
43035
- const contractId = hexOrZero(receipt.id || receipt.contractId);
42710
+ const contractId = hexOrZero(receipt.contract?.id);
43036
42711
  const subId = hexOrZero(receipt.subId);
43037
42712
  const assetId = ReceiptMintCoder.getAssetId(contractId, subId);
43038
42713
  const mintReceipt = {
@@ -43047,7 +42722,7 @@ ${MessageCoinFragmentFragmentDoc}`;
43047
42722
  return mintReceipt;
43048
42723
  }
43049
42724
  case "BURN" /* Burn */: {
43050
- const contractId = hexOrZero(receipt.id || receipt.contractId);
42725
+ const contractId = hexOrZero(receipt.contract?.id);
43051
42726
  const subId = hexOrZero(receipt.subId);
43052
42727
  const assetId = ReceiptBurnCoder.getAssetId(contractId, subId);
43053
42728
  const burnReceipt = {
@@ -43067,6 +42742,7 @@ ${MessageCoinFragmentFragmentDoc}`;
43067
42742
  }
43068
42743
 
43069
42744
  // src/providers/utils/gas.ts
42745
+ var calculatePriceWithFactor = (gas, gasPrice, priceFactor) => bn(Math.ceil(gas.mul(gasPrice).toNumber() / priceFactor.toNumber()));
43070
42746
  var getGasUsedFromReceipts = (receipts) => {
43071
42747
  const scriptResult = receipts.filter(
43072
42748
  (receipt) => receipt.type === ReceiptType.ScriptResult
@@ -43087,28 +42763,18 @@ ${MessageCoinFragmentFragmentDoc}`;
43087
42763
  }
43088
42764
  function gasUsedByInputs(inputs, txBytesSize, gasCosts) {
43089
42765
  const witnessCache = [];
43090
- const chargeableInputs = inputs.filter((input) => {
43091
- const isCoinOrMessage = "owner" in input || "sender" in input;
43092
- if (isCoinOrMessage) {
43093
- if ("predicate" in input && input.predicate && input.predicate !== "0x") {
43094
- return true;
43095
- }
43096
- if (!witnessCache.includes(input.witnessIndex)) {
43097
- witnessCache.push(input.witnessIndex);
43098
- return true;
43099
- }
43100
- }
43101
- return false;
43102
- });
43103
- const vmInitializationCost = resolveGasDependentCosts(txBytesSize, gasCosts.vmInitialization);
43104
- const totalGas = chargeableInputs.reduce((total, input) => {
42766
+ const totalGas = inputs.reduce((total, input) => {
43105
42767
  if ("predicate" in input && input.predicate && input.predicate !== "0x") {
43106
42768
  return total.add(
43107
- vmInitializationCost.add(resolveGasDependentCosts(arrayify(input.predicate).length, gasCosts.contractRoot)).add(bn(input.predicateGasUsed))
42769
+ resolveGasDependentCosts(txBytesSize, gasCosts.vmInitialization).add(resolveGasDependentCosts(arrayify(input.predicate).length, gasCosts.contractRoot)).add(bn(input.predicateGasUsed))
43108
42770
  );
43109
42771
  }
43110
- return total.add(gasCosts.ecr1);
43111
- }, bn(0));
42772
+ if ("witnessIndex" in input && !witnessCache.includes(input.witnessIndex)) {
42773
+ witnessCache.push(input.witnessIndex);
42774
+ return total.add(gasCosts.ecr1);
42775
+ }
42776
+ return total;
42777
+ }, bn());
43112
42778
  return totalGas;
43113
42779
  }
43114
42780
  function getMinGas(params) {
@@ -43120,20 +42786,12 @@ ${MessageCoinFragmentFragmentDoc}`;
43120
42786
  return minGas;
43121
42787
  }
43122
42788
  function getMaxGas(params) {
43123
- const {
43124
- gasPerByte,
43125
- witnessesLength,
43126
- witnessLimit,
43127
- minGas,
43128
- gasLimit = bn(0),
43129
- maxGasPerTx
43130
- } = params;
42789
+ const { gasPerByte, witnessesLength, witnessLimit, minGas, gasLimit = bn(0) } = params;
43131
42790
  let remainingAllowedWitnessGas = bn(0);
43132
42791
  if (witnessLimit?.gt(0) && witnessLimit.gte(witnessesLength)) {
43133
42792
  remainingAllowedWitnessGas = bn(witnessLimit).sub(witnessesLength).mul(gasPerByte);
43134
42793
  }
43135
- const maxGas = remainingAllowedWitnessGas.add(minGas).add(gasLimit);
43136
- return maxGas.gte(maxGasPerTx) ? maxGasPerTx : maxGas;
42794
+ return remainingAllowedWitnessGas.add(minGas).add(gasLimit);
43137
42795
  }
43138
42796
  function calculateMetadataGasForTxCreate({
43139
42797
  gasCosts,
@@ -43155,10 +42813,6 @@ ${MessageCoinFragmentFragmentDoc}`;
43155
42813
  }) {
43156
42814
  return resolveGasDependentCosts(txBytesSize, gasCosts.s256);
43157
42815
  }
43158
- var calculateGasFee = (params) => {
43159
- const { gas, gasPrice, priceFactor, tip } = params;
43160
- return gas.mul(gasPrice).div(priceFactor).add(tip);
43161
- };
43162
42816
 
43163
42817
  // src/providers/utils/json.ts
43164
42818
  function normalize2(object) {
@@ -43288,7 +42942,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43288
42942
  // src/providers/transaction-request/transaction-request.ts
43289
42943
  var BaseTransactionRequest = class {
43290
42944
  /** Gas price for transaction */
43291
- tip;
42945
+ gasPrice;
43292
42946
  /** Block until which tx cannot be included */
43293
42947
  maturity;
43294
42948
  /** The maximum fee payable by this transaction using BASE_ASSET. */
@@ -43307,7 +42961,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43307
42961
  * @param baseTransactionRequest - Optional object containing properties to initialize the transaction request.
43308
42962
  */
43309
42963
  constructor({
43310
- tip,
42964
+ gasPrice,
43311
42965
  maturity,
43312
42966
  maxFee,
43313
42967
  witnessLimit,
@@ -43315,7 +42969,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43315
42969
  outputs,
43316
42970
  witnesses
43317
42971
  } = {}) {
43318
- this.tip = bn(tip);
42972
+ this.gasPrice = bn(gasPrice);
43319
42973
  this.maturity = maturity ?? 0;
43320
42974
  this.witnessLimit = witnessLimit ? bn(witnessLimit) : void 0;
43321
42975
  this.maxFee = maxFee ? bn(maxFee) : void 0;
@@ -43326,9 +42980,9 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43326
42980
  static getPolicyMeta(req) {
43327
42981
  let policyTypes = 0;
43328
42982
  const policies = [];
43329
- if (req.tip) {
43330
- policyTypes += PolicyType.Tip;
43331
- policies.push({ data: req.tip, type: PolicyType.Tip });
42983
+ if (req.gasPrice) {
42984
+ policyTypes += PolicyType.GasPrice;
42985
+ policies.push({ data: req.gasPrice, type: PolicyType.GasPrice });
43332
42986
  }
43333
42987
  if (req.witnessLimit) {
43334
42988
  policyTypes += PolicyType.WitnessLimit;
@@ -43512,11 +43166,13 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43512
43166
  * assetId, if one it was not added yet.
43513
43167
  *
43514
43168
  * @param coin - Coin resource.
43169
+ * @param predicate - Predicate bytes.
43170
+ * @param predicateData - Predicate data bytes.
43515
43171
  */
43516
- addCoinInput(coin) {
43172
+ addCoinInput(coin, predicate) {
43517
43173
  const { assetId, owner, amount } = coin;
43518
43174
  let witnessIndex;
43519
- if (coin.predicate) {
43175
+ if (predicate) {
43520
43176
  witnessIndex = 0;
43521
43177
  } else {
43522
43178
  witnessIndex = this.getCoinInputWitnessIndexByOwner(owner);
@@ -43531,7 +43187,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43531
43187
  amount,
43532
43188
  assetId,
43533
43189
  txPointer: "0x00000000000000000000000000000000",
43534
- witnessIndex
43190
+ witnessIndex,
43191
+ predicate: predicate?.bytes
43535
43192
  };
43536
43193
  this.pushInput(input);
43537
43194
  this.addChangeOutput(owner, assetId);
@@ -43541,12 +43198,14 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43541
43198
  * baseAssetId, if one it was not added yet.
43542
43199
  *
43543
43200
  * @param message - Message resource.
43201
+ * @param predicate - Predicate bytes.
43202
+ * @param predicateData - Predicate data bytes.
43544
43203
  */
43545
- addMessageInput(message) {
43204
+ addMessageInput(message, predicate) {
43546
43205
  const { recipient, sender, amount } = message;
43547
43206
  const assetId = BaseAssetId;
43548
43207
  let witnessIndex;
43549
- if (message.predicate) {
43208
+ if (predicate) {
43550
43209
  witnessIndex = 0;
43551
43210
  } else {
43552
43211
  witnessIndex = this.getCoinInputWitnessIndexByOwner(recipient);
@@ -43560,7 +43219,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43560
43219
  sender: sender.toB256(),
43561
43220
  recipient: recipient.toB256(),
43562
43221
  amount,
43563
- witnessIndex
43222
+ witnessIndex,
43223
+ predicate: predicate?.bytes
43564
43224
  };
43565
43225
  this.pushInput(input);
43566
43226
  this.addChangeOutput(recipient, assetId);
@@ -43591,6 +43251,32 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43591
43251
  resources.forEach((resource) => this.addResource(resource));
43592
43252
  return this;
43593
43253
  }
43254
+ /**
43255
+ * Adds multiple resources to the transaction by adding coin/message inputs and change
43256
+ * outputs from the related assetIds.
43257
+ *
43258
+ * @param resources - The resources to add.
43259
+ * @returns This transaction.
43260
+ */
43261
+ addPredicateResource(resource, predicate) {
43262
+ if (isCoin(resource)) {
43263
+ this.addCoinInput(resource, predicate);
43264
+ } else {
43265
+ this.addMessageInput(resource, predicate);
43266
+ }
43267
+ return this;
43268
+ }
43269
+ /**
43270
+ * Adds multiple predicate coin/message inputs to the transaction and change outputs
43271
+ * from the related assetIds.
43272
+ *
43273
+ * @param resources - The resources to add.
43274
+ * @returns This transaction.
43275
+ */
43276
+ addPredicateResources(resources, predicate) {
43277
+ resources.forEach((resource) => this.addPredicateResource(resource, predicate));
43278
+ return this;
43279
+ }
43594
43280
  /**
43595
43281
  * Adds a coin output to the transaction.
43596
43282
  *
@@ -43670,7 +43356,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43670
43356
  }
43671
43357
  calculateMaxGas(chainInfo, minGas) {
43672
43358
  const { consensusParameters } = chainInfo;
43673
- const { gasPerByte, maxGasPerTx } = consensusParameters;
43359
+ const { gasPerByte } = consensusParameters;
43674
43360
  const witnessesLength = this.toTransaction().witnesses.reduce(
43675
43361
  (acc, wit) => acc + wit.dataLength,
43676
43362
  0
@@ -43679,8 +43365,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43679
43365
  gasPerByte,
43680
43366
  minGas,
43681
43367
  witnessesLength,
43682
- witnessLimit: this.witnessLimit,
43683
- maxGasPerTx
43368
+ witnessLimit: this.witnessLimit
43684
43369
  });
43685
43370
  }
43686
43371
  /**
@@ -43698,20 +43383,17 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43698
43383
  });
43699
43384
  const updateAssetInput = (assetId, quantity) => {
43700
43385
  const assetInput = findAssetInput(assetId);
43701
- let usedQuantity = quantity;
43702
- if (assetId === BaseAssetId) {
43703
- usedQuantity = bn("1000000000000000000");
43704
- }
43705
43386
  if (assetInput && "assetId" in assetInput) {
43706
43387
  assetInput.id = hexlify(randomBytes22(UTXO_ID_LEN));
43707
- assetInput.amount = usedQuantity;
43388
+ assetInput.amount = quantity;
43708
43389
  } else {
43709
43390
  this.addResources([
43710
43391
  {
43711
43392
  id: hexlify(randomBytes22(UTXO_ID_LEN)),
43712
- amount: usedQuantity,
43393
+ amount: quantity,
43713
43394
  assetId,
43714
43395
  owner: resourcesOwner || Address.fromRandom(),
43396
+ maturity: 0,
43715
43397
  blockCreated: bn(1),
43716
43398
  txCreatedIdx: bn(1)
43717
43399
  }
@@ -43743,7 +43425,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43743
43425
  toJSON() {
43744
43426
  return normalizeJSON(this);
43745
43427
  }
43746
- updatePredicateGasUsed(inputs) {
43428
+ updatePredicateInputs(inputs) {
43747
43429
  this.inputs.forEach((i) => {
43748
43430
  let correspondingInput;
43749
43431
  switch (i.type) {
@@ -43765,15 +43447,6 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43765
43447
  }
43766
43448
  });
43767
43449
  }
43768
- shiftPredicateData() {
43769
- this.inputs.forEach((input) => {
43770
- if ("predicateData" in input && "paddPredicateData" in input && typeof input.paddPredicateData === "function") {
43771
- input.predicateData = input.paddPredicateData(
43772
- BaseTransactionRequest.getPolicyMeta(this).policies.length
43773
- );
43774
- }
43775
- });
43776
- }
43777
43450
  };
43778
43451
 
43779
43452
  // src/providers/transaction-request/hash-transaction.ts
@@ -43907,8 +43580,9 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
43907
43580
  return {
43908
43581
  type: TransactionType.Create,
43909
43582
  ...baseTransaction,
43583
+ bytecodeLength: baseTransaction.witnesses[bytecodeWitnessIndex].dataLength / 4,
43910
43584
  bytecodeWitnessIndex,
43911
- storageSlotsCount: bn(storageSlots.length),
43585
+ storageSlotsCount: storageSlots.length,
43912
43586
  salt: this.salt ? hexlify(this.salt) : ZeroBytes32,
43913
43587
  storageSlots
43914
43588
  };
@@ -44022,8 +43696,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44022
43696
  type: TransactionType.Script,
44023
43697
  scriptGasLimit: this.gasLimit,
44024
43698
  ...super.getBaseTransaction(),
44025
- scriptLength: bn(script.length),
44026
- scriptDataLength: bn(scriptData.length),
43699
+ scriptLength: script.length,
43700
+ scriptDataLength: scriptData.length,
44027
43701
  receiptsRoot: ZeroBytes32,
44028
43702
  script: hexlify(script),
44029
43703
  scriptData: hexlify(scriptData)
@@ -44087,7 +43761,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44087
43761
  }
44088
43762
  calculateMaxGas(chainInfo, minGas) {
44089
43763
  const { consensusParameters } = chainInfo;
44090
- const { gasPerByte, maxGasPerTx } = consensusParameters;
43764
+ const { gasPerByte } = consensusParameters;
44091
43765
  const witnessesLength = this.toTransaction().witnesses.reduce(
44092
43766
  (acc, wit) => acc + wit.dataLength,
44093
43767
  0
@@ -44097,8 +43771,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44097
43771
  minGas,
44098
43772
  witnessesLength,
44099
43773
  witnessLimit: this.witnessLimit,
44100
- gasLimit: this.gasLimit,
44101
- maxGasPerTx
43774
+ gasLimit: this.gasLimit
44102
43775
  });
44103
43776
  }
44104
43777
  /**
@@ -44171,29 +43844,13 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44171
43844
  }
44172
43845
  }
44173
43846
  };
44174
- var cacheTxInputsFromOwner = (inputs, owner) => inputs.reduce(
44175
- (acc, input) => {
44176
- if (input.type === InputType.Coin && input.owner === owner) {
44177
- acc.utxos.push(input.id);
44178
- }
44179
- if (input.type === InputType.Message && input.recipient === owner) {
44180
- acc.messages.push(input.nonce);
44181
- }
44182
- return acc;
44183
- },
44184
- {
44185
- utxos: [],
44186
- messages: []
44187
- }
44188
- );
44189
43847
 
44190
43848
  // src/providers/transaction-summary/calculate-transaction-fee.ts
44191
43849
  var calculateTransactionFee = (params) => {
44192
43850
  const {
44193
- gasPrice,
43851
+ gasUsed,
44194
43852
  rawPayload,
44195
- tip,
44196
- consensusParameters: { gasCosts, feeParams, maxGasPerTx }
43853
+ consensusParameters: { gasCosts, feeParams }
44197
43854
  } = params;
44198
43855
  const gasPerByte = bn(feeParams.gasPerByte);
44199
43856
  const gasPriceFactor = bn(feeParams.gasPriceFactor);
@@ -44203,7 +43860,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44203
43860
  return {
44204
43861
  fee: bn(0),
44205
43862
  minFee: bn(0),
44206
- maxFee: bn(0)
43863
+ maxFee: bn(0),
43864
+ feeFromGasUsed: bn(0)
44207
43865
  };
44208
43866
  }
44209
43867
  const { type: type3, witnesses, inputs, policies } = transaction;
@@ -44235,6 +43893,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44235
43893
  metadataGas,
44236
43894
  txBytesSize: transactionBytes.length
44237
43895
  });
43896
+ const gasPrice = bn(policies.find((policy) => policy.type === PolicyType.GasPrice)?.data);
44238
43897
  const witnessLimit = policies.find((policy) => policy.type === PolicyType.WitnessLimit)?.data;
44239
43898
  const witnessesLength = witnesses.reduce((acc, wit) => acc + wit.dataLength, 0);
44240
43899
  const maxGas = getMaxGas({
@@ -44242,25 +43901,17 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44242
43901
  minGas,
44243
43902
  witnessesLength,
44244
43903
  gasLimit,
44245
- witnessLimit,
44246
- maxGasPerTx
44247
- });
44248
- const minFee = calculateGasFee({
44249
- gasPrice,
44250
- gas: minGas,
44251
- priceFactor: gasPriceFactor,
44252
- tip
44253
- });
44254
- const maxFee = calculateGasFee({
44255
- gasPrice,
44256
- gas: maxGas,
44257
- priceFactor: gasPriceFactor,
44258
- tip
43904
+ witnessLimit
44259
43905
  });
43906
+ const feeFromGasUsed = calculatePriceWithFactor(gasUsed, gasPrice, gasPriceFactor);
43907
+ const minFee = calculatePriceWithFactor(minGas, gasPrice, gasPriceFactor);
43908
+ const maxFee = calculatePriceWithFactor(maxGas, gasPrice, gasPriceFactor);
43909
+ const fee = minFee.add(feeFromGasUsed);
44260
43910
  return {
43911
+ fee,
44261
43912
  minFee,
44262
43913
  maxFee,
44263
- fee: maxFee
43914
+ feeFromGasUsed
44264
43915
  };
44265
43916
  };
44266
43917
 
@@ -44814,9 +44465,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44814
44465
  gqlTransactionStatus,
44815
44466
  abiMap = {},
44816
44467
  maxInputs,
44817
- gasCosts,
44818
- maxGasPerTx,
44819
- gasPrice
44468
+ gasCosts
44820
44469
  } = params;
44821
44470
  const gasUsed = getGasUsedFromReceipts(receipts);
44822
44471
  const rawPayload = hexlify(transactionBytes);
@@ -44830,14 +44479,11 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44830
44479
  maxInputs
44831
44480
  });
44832
44481
  const typeName = getTransactionTypeName(transaction.type);
44833
- const tip = bn(transaction.policies?.find((policy) => policy.type === PolicyType.Tip)?.data);
44834
44482
  const { fee } = calculateTransactionFee({
44835
- gasPrice,
44483
+ gasUsed,
44836
44484
  rawPayload,
44837
- tip,
44838
44485
  consensusParameters: {
44839
44486
  gasCosts,
44840
- maxGasPerTx,
44841
44487
  feeParams: {
44842
44488
  gasPerByte,
44843
44489
  gasPriceFactor
@@ -44973,13 +44619,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44973
44619
  const decodedTransaction = this.decodeTransaction(
44974
44620
  transaction
44975
44621
  );
44976
- let txReceipts = [];
44977
- if (transaction?.status && "receipts" in transaction.status) {
44978
- txReceipts = transaction.status.receipts;
44979
- }
44980
- const receipts = txReceipts.map(processGqlReceipt) || [];
44981
- const { gasPerByte, gasPriceFactor, gasCosts, maxGasPerTx } = this.provider.getGasConfig();
44982
- const gasPrice = await this.provider.getLatestGasPrice();
44622
+ const receipts = transaction.receipts?.map(processGqlReceipt) || [];
44623
+ const { gasPerByte, gasPriceFactor, gasCosts } = this.provider.getGasConfig();
44983
44624
  const maxInputs = this.provider.getChain().consensusParameters.maxInputs;
44984
44625
  const transactionSummary = assembleTransactionSummary({
44985
44626
  id: this.id,
@@ -44991,9 +44632,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
44991
44632
  gasPriceFactor,
44992
44633
  abiMap: contractsAbiMap,
44993
44634
  maxInputs,
44994
- gasCosts,
44995
- maxGasPerTx,
44996
- gasPrice
44635
+ gasCosts
44997
44636
  });
44998
44637
  return transactionSummary;
44999
44638
  }
@@ -45142,7 +44781,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45142
44781
  gasCosts,
45143
44782
  latestBlock: {
45144
44783
  id: latestBlock.id,
45145
- height: bn(latestBlock.height),
44784
+ height: bn(latestBlock.header.height),
45146
44785
  time: latestBlock.header.time,
45147
44786
  transactions: latestBlock.transactions.map((i) => ({
45148
44787
  id: i.id
@@ -45236,8 +44875,10 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45236
44875
  * Returns some helpful parameters related to gas fees.
45237
44876
  */
45238
44877
  getGasConfig() {
44878
+ const { minGasPrice } = this.getNode();
45239
44879
  const { maxGasPerTx, maxGasPerPredicate, gasPriceFactor, gasPerByte, gasCosts } = this.getChain().consensusParameters;
45240
44880
  return {
44881
+ minGasPrice,
45241
44882
  maxGasPerTx,
45242
44883
  maxGasPerPredicate,
45243
44884
  gasPriceFactor,
@@ -45335,7 +44976,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45335
44976
  */
45336
44977
  async getBlockNumber() {
45337
44978
  const { chain } = await this.operations.getChain();
45338
- return bn(chain.latestBlock.height, 10);
44979
+ return bn(chain.latestBlock.header.height, 10);
45339
44980
  }
45340
44981
  /**
45341
44982
  * Returns the chain information.
@@ -45347,9 +44988,11 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45347
44988
  const processedNodeInfo = {
45348
44989
  maxDepth: bn(nodeInfo.maxDepth),
45349
44990
  maxTx: bn(nodeInfo.maxTx),
44991
+ minGasPrice: bn(nodeInfo.minGasPrice),
45350
44992
  nodeVersion: nodeInfo.nodeVersion,
45351
44993
  utxoValidation: nodeInfo.utxoValidation,
45352
- vmBacktrace: nodeInfo.vmBacktrace
44994
+ vmBacktrace: nodeInfo.vmBacktrace,
44995
+ peers: nodeInfo.peers
45353
44996
  };
45354
44997
  _Provider.nodeInfoCache[this.url] = processedNodeInfo;
45355
44998
  return processedNodeInfo;
@@ -45435,13 +45078,14 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45435
45078
  return this.estimateTxDependencies(transactionRequest);
45436
45079
  }
45437
45080
  const encodedTransaction = hexlify(transactionRequest.toTransactionBytes());
45438
- const { dryRun: dryRunStatuses } = await this.operations.dryRun({
45439
- encodedTransactions: encodedTransaction,
45081
+ const { dryRun: gqlReceipts } = await this.operations.dryRun({
45082
+ encodedTransaction,
45440
45083
  utxoValidation: utxoValidation || false
45441
45084
  });
45442
- const [{ receipts: rawReceipts, status }] = dryRunStatuses;
45443
- const receipts = rawReceipts.map(processGqlReceipt);
45444
- return { receipts, dryrunStatus: status };
45085
+ const receipts = gqlReceipts.map(processGqlReceipt);
45086
+ return {
45087
+ receipts
45088
+ };
45445
45089
  }
45446
45090
  /**
45447
45091
  * Verifies whether enough gas is available to complete transaction.
@@ -45480,6 +45124,9 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45480
45124
  * If there are missing variable outputs,
45481
45125
  * `addVariableOutputs` is called on the transaction.
45482
45126
  *
45127
+ * @privateRemarks
45128
+ * TODO: Investigate support for missing contract IDs
45129
+ * TODO: Add support for missing output messages
45483
45130
  *
45484
45131
  * @param transactionRequest - The transaction request object.
45485
45132
  * @returns A promise.
@@ -45492,19 +45139,16 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45492
45139
  missingContractIds: []
45493
45140
  };
45494
45141
  }
45142
+ await this.estimatePredicates(transactionRequest);
45495
45143
  let receipts = [];
45496
45144
  const missingContractIds = [];
45497
45145
  let outputVariables = 0;
45498
- let dryrunStatus;
45499
45146
  for (let attempt = 0; attempt < MAX_RETRIES; attempt++) {
45500
- const {
45501
- dryRun: [{ receipts: rawReceipts, status }]
45502
- } = await this.operations.dryRun({
45503
- encodedTransactions: [hexlify(transactionRequest.toTransactionBytes())],
45147
+ const { dryRun: gqlReceipts } = await this.operations.dryRun({
45148
+ encodedTransaction: hexlify(transactionRequest.toTransactionBytes()),
45504
45149
  utxoValidation: false
45505
45150
  });
45506
- receipts = rawReceipts.map(processGqlReceipt);
45507
- dryrunStatus = status;
45151
+ receipts = gqlReceipts.map(processGqlReceipt);
45508
45152
  const { missingOutputVariables, missingOutputContractIds } = getReceiptsWithMissingData(receipts);
45509
45153
  const hasMissingOutputs = missingOutputVariables.length !== 0 || missingOutputContractIds.length !== 0;
45510
45154
  if (hasMissingOutputs) {
@@ -45514,10 +45158,6 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45514
45158
  transactionRequest.addContractInputAndOutput(Address.fromString(contractId));
45515
45159
  missingContractIds.push(contractId);
45516
45160
  });
45517
- const { maxFee } = await this.estimateTxGasAndFee({
45518
- transactionRequest
45519
- });
45520
- transactionRequest.maxFee = maxFee;
45521
45161
  } else {
45522
45162
  break;
45523
45163
  }
@@ -45525,139 +45165,37 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45525
45165
  return {
45526
45166
  receipts,
45527
45167
  outputVariables,
45528
- missingContractIds,
45529
- dryrunStatus
45168
+ missingContractIds
45530
45169
  };
45531
45170
  }
45532
- /**
45533
- * Dry runs multiple transactions and checks for missing dependencies in batches.
45534
- *
45535
- * Transactions are dry run in batches. After each dry run, transactions requiring
45536
- * further modifications are identified. The method iteratively updates these transactions
45537
- * and performs subsequent dry runs until all dependencies for each transaction are satisfied.
45538
- *
45539
- * @param transactionRequests - Array of transaction request objects.
45540
- * @returns A promise that resolves to an array of results for each transaction.
45541
- */
45542
- async estimateMultipleTxDependencies(transactionRequests) {
45543
- const results = transactionRequests.map(() => ({
45544
- receipts: [],
45545
- outputVariables: 0,
45546
- missingContractIds: [],
45547
- dryrunStatus: void 0
45548
- }));
45549
- const allRequests = clone_default(transactionRequests);
45550
- const serializedTransactionsMap = /* @__PURE__ */ new Map();
45551
- allRequests.forEach((req, index) => {
45552
- if (req.type === TransactionType.Script) {
45553
- serializedTransactionsMap.set(index, hexlify(req.toTransactionBytes()));
45554
- }
45555
- });
45556
- let transactionsToProcess = Array.from(serializedTransactionsMap.keys());
45557
- let attempt = 0;
45558
- while (transactionsToProcess.length > 0 && attempt < MAX_RETRIES) {
45559
- const encodedTransactions = transactionsToProcess.map(
45560
- (index) => serializedTransactionsMap.get(index)
45561
- );
45562
- const dryRunResults = await this.operations.dryRun({
45563
- encodedTransactions,
45564
- utxoValidation: false
45565
- });
45566
- const nextRoundTransactions = [];
45567
- for (let i = 0; i < dryRunResults.dryRun.length; i++) {
45568
- const currentResultIndex = transactionsToProcess[i];
45569
- const { receipts: rawReceipts, status } = dryRunResults.dryRun[i];
45570
- results[currentResultIndex].receipts = rawReceipts.map(processGqlReceipt);
45571
- results[currentResultIndex].dryrunStatus = status;
45572
- const { missingOutputVariables, missingOutputContractIds } = getReceiptsWithMissingData(
45573
- results[currentResultIndex].receipts
45574
- );
45575
- const hasMissingOutputs = missingOutputVariables.length > 0 || missingOutputContractIds.length > 0;
45576
- const requestToProcess = allRequests[currentResultIndex];
45577
- if (hasMissingOutputs && requestToProcess?.type === TransactionType.Script) {
45578
- results[currentResultIndex].outputVariables += missingOutputVariables.length;
45579
- requestToProcess.addVariableOutputs(missingOutputVariables.length);
45580
- missingOutputContractIds.forEach(({ contractId }) => {
45581
- requestToProcess.addContractInputAndOutput(Address.fromString(contractId));
45582
- results[currentResultIndex].missingContractIds.push(contractId);
45583
- });
45584
- const { maxFee } = await this.estimateTxGasAndFee({
45585
- transactionRequest: requestToProcess
45586
- });
45587
- requestToProcess.maxFee = maxFee;
45588
- serializedTransactionsMap.set(
45589
- currentResultIndex,
45590
- hexlify(requestToProcess.toTransactionBytes())
45591
- );
45592
- nextRoundTransactions.push(currentResultIndex);
45593
- allRequests[currentResultIndex] = requestToProcess;
45594
- }
45595
- }
45596
- transactionsToProcess = nextRoundTransactions;
45597
- attempt += 1;
45598
- }
45599
- return results;
45600
- }
45601
- async dryRunMultipleTransactions(transactionRequests, { utxoValidation, estimateTxDependencies = true } = {}) {
45602
- if (estimateTxDependencies) {
45603
- return this.estimateMultipleTxDependencies(transactionRequests);
45604
- }
45605
- const encodedTransactions = transactionRequests.map((tx) => hexlify(tx.toTransactionBytes()));
45606
- const { dryRun: dryRunStatuses } = await this.operations.dryRun({
45607
- encodedTransactions,
45608
- utxoValidation: utxoValidation || false
45609
- });
45610
- const results = dryRunStatuses.map(({ receipts: rawReceipts, status }) => {
45611
- const receipts = rawReceipts.map(processGqlReceipt);
45612
- return { receipts, dryrunStatus: status };
45613
- });
45614
- return results;
45615
- }
45616
45171
  /**
45617
45172
  * Estimates the transaction gas and fee based on the provided transaction request.
45618
45173
  * @param transactionRequest - The transaction request object.
45619
45174
  * @returns An object containing the estimated minimum gas, minimum fee, maximum gas, and maximum fee.
45620
45175
  */
45621
- async estimateTxGasAndFee(params) {
45176
+ estimateTxGasAndFee(params) {
45622
45177
  const { transactionRequest } = params;
45623
- let { gasPrice } = params;
45178
+ const { gasPriceFactor, minGasPrice, maxGasPerTx } = this.getGasConfig();
45624
45179
  const chainInfo = this.getChain();
45625
- const { gasPriceFactor, maxGasPerTx } = this.getGasConfig();
45180
+ const gasPrice = transactionRequest.gasPrice.eq(0) ? minGasPrice : transactionRequest.gasPrice;
45181
+ transactionRequest.gasPrice = gasPrice;
45626
45182
  const minGas = transactionRequest.calculateMinGas(chainInfo);
45627
- if (!gasPrice) {
45628
- gasPrice = await this.estimateGasPrice(10);
45629
- }
45630
- const minFee = calculateGasFee({
45631
- gasPrice: bn(gasPrice),
45632
- gas: minGas,
45633
- priceFactor: gasPriceFactor,
45634
- tip: transactionRequest.tip
45635
- }).add(1);
45636
- let gasLimit = bn(0);
45183
+ const minFee = calculatePriceWithFactor(minGas, gasPrice, gasPriceFactor).normalizeZeroToOne();
45637
45184
  if (transactionRequest.type === TransactionType.Script) {
45638
- gasLimit = transactionRequest.gasLimit;
45639
45185
  if (transactionRequest.gasLimit.eq(0)) {
45640
45186
  transactionRequest.gasLimit = minGas;
45641
45187
  transactionRequest.gasLimit = maxGasPerTx.sub(
45642
45188
  transactionRequest.calculateMaxGas(chainInfo, minGas)
45643
45189
  );
45644
- gasLimit = transactionRequest.gasLimit;
45645
45190
  }
45646
45191
  }
45647
45192
  const maxGas = transactionRequest.calculateMaxGas(chainInfo, minGas);
45648
- const maxFee = calculateGasFee({
45649
- gasPrice: bn(gasPrice),
45650
- gas: maxGas,
45651
- priceFactor: gasPriceFactor,
45652
- tip: transactionRequest.tip
45653
- }).add(1);
45193
+ const maxFee = calculatePriceWithFactor(maxGas, gasPrice, gasPriceFactor).normalizeZeroToOne();
45654
45194
  return {
45655
45195
  minGas,
45656
45196
  minFee,
45657
45197
  maxGas,
45658
- maxFee,
45659
- gasPrice,
45660
- gasLimit
45198
+ maxFee
45661
45199
  };
45662
45200
  }
45663
45201
  /**
@@ -45675,17 +45213,15 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45675
45213
  if (estimateTxDependencies) {
45676
45214
  return this.estimateTxDependencies(transactionRequest);
45677
45215
  }
45678
- const encodedTransactions = [hexlify(transactionRequest.toTransactionBytes())];
45679
- const { dryRun: dryRunStatuses } = await this.operations.dryRun({
45680
- encodedTransactions,
45216
+ const encodedTransaction = hexlify(transactionRequest.toTransactionBytes());
45217
+ const { dryRun: gqlReceipts } = await this.operations.dryRun({
45218
+ encodedTransaction,
45681
45219
  utxoValidation: true
45682
45220
  });
45683
- const callResult = dryRunStatuses.map((dryRunStatus) => {
45684
- const { id, receipts, status } = dryRunStatus;
45685
- const processedReceipts = receipts.map(processGqlReceipt);
45686
- return { id, receipts: processedReceipts, status };
45687
- });
45688
- return { receipts: callResult[0].receipts };
45221
+ const receipts = gqlReceipts.map(processGqlReceipt);
45222
+ return {
45223
+ receipts
45224
+ };
45689
45225
  }
45690
45226
  /**
45691
45227
  * Returns a transaction cost to enable user
@@ -45702,79 +45238,77 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45702
45238
  * @param tolerance - The tolerance to add on top of the gasUsed.
45703
45239
  * @returns A promise that resolves to the transaction cost object.
45704
45240
  */
45705
- async getTransactionCost(transactionRequestLike, { resourcesOwner, signatureCallback, quantitiesToContract = [] } = {}) {
45241
+ async getTransactionCost(transactionRequestLike, forwardingQuantities = [], {
45242
+ estimateTxDependencies = true,
45243
+ estimatePredicates = true,
45244
+ resourcesOwner,
45245
+ signatureCallback
45246
+ } = {}) {
45706
45247
  const txRequestClone = clone_default(transactionRequestify(transactionRequestLike));
45248
+ const { minGasPrice } = this.getGasConfig();
45249
+ const setGasPrice = max(txRequestClone.gasPrice, minGasPrice);
45707
45250
  const isScriptTransaction = txRequestClone.type === TransactionType.Script;
45708
45251
  const coinOutputsQuantities = txRequestClone.getCoinOutputsQuantities();
45709
- const allQuantities = mergeQuantities(coinOutputsQuantities, quantitiesToContract);
45252
+ const allQuantities = mergeQuantities(coinOutputsQuantities, forwardingQuantities);
45710
45253
  txRequestClone.fundWithFakeUtxos(allQuantities, resourcesOwner?.address);
45711
- txRequestClone.maxFee = bn(0);
45712
45254
  if (isScriptTransaction) {
45713
45255
  txRequestClone.gasLimit = bn(0);
45714
45256
  }
45715
- if (resourcesOwner && "populateTransactionPredicateData" in resourcesOwner) {
45716
- resourcesOwner.populateTransactionPredicateData(txRequestClone);
45257
+ if (estimatePredicates) {
45258
+ if (resourcesOwner && "populateTransactionPredicateData" in resourcesOwner) {
45259
+ resourcesOwner.populateTransactionPredicateData(txRequestClone);
45260
+ }
45261
+ await this.estimatePredicates(txRequestClone);
45717
45262
  }
45718
- const signedRequest = clone_default(txRequestClone);
45719
- let addedSignatures = 0;
45720
45263
  if (signatureCallback && isScriptTransaction) {
45721
- const lengthBefore = signedRequest.witnesses.length;
45722
- await signatureCallback(signedRequest);
45723
- addedSignatures = signedRequest.witnesses.length - lengthBefore;
45264
+ await signatureCallback(txRequestClone);
45724
45265
  }
45725
- await this.estimatePredicates(signedRequest);
45726
- let { maxFee, maxGas, minFee, minGas, gasPrice, gasLimit } = await this.estimateTxGasAndFee({
45727
- transactionRequest: signedRequest
45266
+ let { maxFee, maxGas, minFee, minGas } = this.estimateTxGasAndFee({
45267
+ transactionRequest: txRequestClone
45728
45268
  });
45729
45269
  let receipts = [];
45730
45270
  let missingContractIds = [];
45731
45271
  let outputVariables = 0;
45732
45272
  let gasUsed = bn(0);
45733
- txRequestClone.updatePredicateGasUsed(signedRequest.inputs);
45734
- txRequestClone.maxFee = maxFee;
45735
- if (isScriptTransaction) {
45736
- txRequestClone.gasLimit = gasLimit;
45737
- if (signatureCallback) {
45738
- await signatureCallback(txRequestClone);
45739
- }
45273
+ if (isScriptTransaction && estimateTxDependencies) {
45274
+ txRequestClone.gasPrice = bn(0);
45740
45275
  const result = await this.estimateTxDependencies(txRequestClone);
45741
45276
  receipts = result.receipts;
45742
45277
  outputVariables = result.outputVariables;
45743
45278
  missingContractIds = result.missingContractIds;
45744
45279
  gasUsed = isScriptTransaction ? getGasUsedFromReceipts(receipts) : gasUsed;
45745
45280
  txRequestClone.gasLimit = gasUsed;
45746
- ({ maxFee, maxGas, minFee, minGas, gasPrice } = await this.estimateTxGasAndFee({
45747
- transactionRequest: txRequestClone,
45748
- gasPrice
45281
+ txRequestClone.gasPrice = setGasPrice;
45282
+ ({ maxFee, maxGas, minFee, minGas } = this.estimateTxGasAndFee({
45283
+ transactionRequest: txRequestClone
45749
45284
  }));
45750
45285
  }
45751
45286
  return {
45752
45287
  requiredQuantities: allQuantities,
45753
45288
  receipts,
45754
45289
  gasUsed,
45755
- gasPrice,
45290
+ minGasPrice,
45291
+ gasPrice: setGasPrice,
45756
45292
  minGas,
45757
45293
  maxGas,
45758
45294
  minFee,
45759
45295
  maxFee,
45296
+ estimatedInputs: txRequestClone.inputs,
45760
45297
  outputVariables,
45761
- missingContractIds,
45762
- addedSignatures,
45763
- estimatedPredicates: txRequestClone.inputs
45298
+ missingContractIds
45764
45299
  };
45765
45300
  }
45766
- async getResourcesForTransaction(owner, transactionRequestLike, quantitiesToContract = []) {
45301
+ async getResourcesForTransaction(owner, transactionRequestLike, forwardingQuantities = []) {
45767
45302
  const ownerAddress = Address.fromAddressOrString(owner);
45768
45303
  const transactionRequest = transactionRequestify(clone_default(transactionRequestLike));
45769
- const transactionCost = await this.getTransactionCost(transactionRequest, {
45770
- quantitiesToContract
45771
- });
45304
+ const transactionCost = await this.getTransactionCost(transactionRequest, forwardingQuantities);
45772
45305
  transactionRequest.addResources(
45773
45306
  await this.getResourcesToSpend(ownerAddress, transactionCost.requiredQuantities)
45774
45307
  );
45775
- const { requiredQuantities, ...txCost } = await this.getTransactionCost(transactionRequest, {
45776
- quantitiesToContract
45777
- });
45308
+ const { requiredQuantities, ...txCost } = await this.getTransactionCost(
45309
+ transactionRequest,
45310
+ forwardingQuantities
45311
+ );
45778
45312
  const resources = await this.getResourcesToSpend(ownerAddress, requiredQuantities);
45779
45313
  return {
45780
45314
  resources,
@@ -45798,6 +45332,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45798
45332
  assetId: coin.assetId,
45799
45333
  amount: bn(coin.amount),
45800
45334
  owner: Address.fromAddressOrString(coin.owner),
45335
+ maturity: bn(coin.maturity).toNumber(),
45801
45336
  blockCreated: bn(coin.blockCreated),
45802
45337
  txCreatedIdx: bn(coin.txCreatedIdx)
45803
45338
  }));
@@ -45849,6 +45384,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45849
45384
  amount: bn(coin.amount),
45850
45385
  assetId: coin.assetId,
45851
45386
  owner: Address.fromAddressOrString(coin.owner),
45387
+ maturity: bn(coin.maturity).toNumber(),
45852
45388
  blockCreated: bn(coin.blockCreated),
45853
45389
  txCreatedIdx: bn(coin.txCreatedIdx)
45854
45390
  };
@@ -45881,7 +45417,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45881
45417
  }
45882
45418
  return {
45883
45419
  id: block2.id,
45884
- height: bn(block2.height),
45420
+ height: bn(block2.header.height),
45885
45421
  time: block2.header.time,
45886
45422
  transactionIds: block2.transactions.map((tx) => tx.id)
45887
45423
  };
@@ -45896,7 +45432,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45896
45432
  const { blocks: fetchedData } = await this.operations.getBlocks(params);
45897
45433
  const blocks = fetchedData.edges.map(({ node: block2 }) => ({
45898
45434
  id: block2.id,
45899
- height: bn(block2.height),
45435
+ height: bn(block2.header.height),
45900
45436
  time: block2.header.time,
45901
45437
  transactionIds: block2.transactions.map((tx) => tx.id)
45902
45438
  }));
@@ -45923,7 +45459,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
45923
45459
  }
45924
45460
  return {
45925
45461
  id: block2.id,
45926
- height: bn(block2.height, 10),
45462
+ height: bn(block2.header.height, 10),
45927
45463
  time: block2.header.time,
45928
45464
  transactionIds: block2.transactions.map((tx) => tx.id),
45929
45465
  transactions: block2.transactions.map(
@@ -46103,11 +45639,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46103
45639
  prevRoot: messageBlockHeader.prevRoot,
46104
45640
  time: messageBlockHeader.time,
46105
45641
  applicationHash: messageBlockHeader.applicationHash,
46106
- messageReceiptCount: bn(messageBlockHeader.messageReceiptCount),
46107
- messageOutboxRoot: messageBlockHeader.messageOutboxRoot,
46108
- consensusParametersVersion: messageBlockHeader.consensusParametersVersion,
46109
- eventInboxRoot: messageBlockHeader.eventInboxRoot,
46110
- stateTransitionBytecodeVersion: messageBlockHeader.stateTransitionBytecodeVersion
45642
+ messageReceiptRoot: messageBlockHeader.messageReceiptRoot,
45643
+ messageReceiptCount: bn(messageBlockHeader.messageReceiptCount)
46111
45644
  },
46112
45645
  commitBlockHeader: {
46113
45646
  id: commitBlockHeader.id,
@@ -46118,11 +45651,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46118
45651
  prevRoot: commitBlockHeader.prevRoot,
46119
45652
  time: commitBlockHeader.time,
46120
45653
  applicationHash: commitBlockHeader.applicationHash,
46121
- messageReceiptCount: bn(commitBlockHeader.messageReceiptCount),
46122
- messageOutboxRoot: commitBlockHeader.messageOutboxRoot,
46123
- consensusParametersVersion: commitBlockHeader.consensusParametersVersion,
46124
- eventInboxRoot: commitBlockHeader.eventInboxRoot,
46125
- stateTransitionBytecodeVersion: commitBlockHeader.stateTransitionBytecodeVersion
45654
+ messageReceiptRoot: commitBlockHeader.messageReceiptRoot,
45655
+ messageReceiptCount: bn(commitBlockHeader.messageReceiptCount)
46126
45656
  },
46127
45657
  sender: Address.fromAddressOrString(sender),
46128
45658
  recipient: Address.fromAddressOrString(recipient),
@@ -46131,16 +45661,6 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46131
45661
  data
46132
45662
  };
46133
45663
  }
46134
- async getLatestGasPrice() {
46135
- const { latestGasPrice } = await this.operations.getLatestGasPrice();
46136
- return bn(latestGasPrice.gasPrice);
46137
- }
46138
- async estimateGasPrice(blockHorizon) {
46139
- const { estimateGasPrice } = await this.operations.estimateGasPrice({
46140
- blockHorizon: String(blockHorizon)
46141
- });
46142
- return bn(estimateGasPrice.gasPrice);
46143
- }
46144
45664
  /**
46145
45665
  * Returns Message Proof for given transaction id and the message id from MessageOut receipt.
46146
45666
  *
@@ -46424,33 +45944,36 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46424
45944
  * @param fee - The estimated transaction fee.
46425
45945
  * @returns A promise that resolves when the resources are added to the transaction.
46426
45946
  */
46427
- async fund(request, params) {
46428
- const { addedSignatures, estimatedPredicates, maxFee: fee, requiredQuantities } = params;
46429
- const txRequest = request;
46430
- const requiredQuantitiesWithFee = addAmountToCoinQuantities({
45947
+ async fund(request, coinQuantities, fee) {
45948
+ const updatedQuantities = addAmountToAsset({
46431
45949
  amount: bn(fee),
46432
45950
  assetId: BaseAssetId,
46433
- coinQuantities: requiredQuantities
45951
+ coinQuantities
46434
45952
  });
46435
45953
  const quantitiesDict = {};
46436
- requiredQuantitiesWithFee.forEach(({ amount, assetId }) => {
45954
+ updatedQuantities.forEach(({ amount, assetId }) => {
46437
45955
  quantitiesDict[assetId] = {
46438
45956
  required: amount,
46439
45957
  owned: bn(0)
46440
45958
  };
46441
45959
  });
46442
- txRequest.inputs.forEach((input) => {
45960
+ const cachedUtxos = [];
45961
+ const cachedMessages = [];
45962
+ const owner = this.address.toB256();
45963
+ request.inputs.forEach((input) => {
46443
45964
  const isResource = "amount" in input;
46444
45965
  if (isResource) {
46445
45966
  const isCoin2 = "owner" in input;
46446
45967
  if (isCoin2) {
46447
45968
  const assetId = String(input.assetId);
46448
- if (quantitiesDict[assetId]) {
45969
+ if (input.owner === owner && quantitiesDict[assetId]) {
46449
45970
  const amount = bn(input.amount);
46450
45971
  quantitiesDict[assetId].owned = quantitiesDict[assetId].owned.add(amount);
45972
+ cachedUtxos.push(input.id);
46451
45973
  }
46452
- } else if (input.amount && quantitiesDict[BaseAssetId]) {
45974
+ } else if (input.recipient === owner && input.amount && quantitiesDict[BaseAssetId]) {
46453
45975
  quantitiesDict[BaseAssetId].owned = quantitiesDict[BaseAssetId].owned.add(input.amount);
45976
+ cachedMessages.push(input.nonce);
46454
45977
  }
46455
45978
  }
46456
45979
  });
@@ -46465,23 +45988,12 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46465
45988
  });
46466
45989
  const needsToBeFunded = missingQuantities.length;
46467
45990
  if (needsToBeFunded) {
46468
- const excludedIds = cacheTxInputsFromOwner(txRequest.inputs, this.address.toB256());
46469
- const resources = await this.getResourcesToSpend(missingQuantities, excludedIds);
46470
- txRequest.addResources(resources);
46471
- }
46472
- txRequest.shiftPredicateData();
46473
- txRequest.updatePredicateGasUsed(estimatedPredicates);
46474
- const requestToBeReEstimate = clone_default(txRequest);
46475
- if (addedSignatures) {
46476
- Array.from({ length: addedSignatures }).forEach(
46477
- () => requestToBeReEstimate.addEmptyWitness()
46478
- );
45991
+ const resources = await this.getResourcesToSpend(missingQuantities, {
45992
+ messages: cachedMessages,
45993
+ utxos: cachedUtxos
45994
+ });
45995
+ request.addResources(resources);
46479
45996
  }
46480
- const { maxFee } = await this.provider.estimateTxGasAndFee({
46481
- transactionRequest: requestToBeReEstimate
46482
- });
46483
- txRequest.maxFee = maxFee;
46484
- return txRequest;
46485
45997
  }
46486
45998
  /**
46487
45999
  * A helper that creates a transfer transaction request and returns it.
@@ -46489,25 +46001,28 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46489
46001
  * @param destination - The address of the destination.
46490
46002
  * @param amount - The amount of coins to transfer.
46491
46003
  * @param assetId - The asset ID of the coins to transfer.
46492
- * @param txParams - The transaction parameters (gasLimit, tip, maturity, maxFee, witnessLimit).
46004
+ * @param txParams - The transaction parameters (gasLimit, gasPrice, maturity).
46493
46005
  * @returns A promise that resolves to the prepared transaction request.
46494
46006
  */
46495
46007
  async createTransfer(destination, amount, assetId = BaseAssetId, txParams = {}) {
46496
- const request = new ScriptTransactionRequest(txParams);
46008
+ const { minGasPrice } = this.provider.getGasConfig();
46009
+ const params = { gasPrice: minGasPrice, ...txParams };
46010
+ const request = new ScriptTransactionRequest(params);
46497
46011
  request.addCoinOutput(Address.fromAddressOrString(destination), amount, assetId);
46498
- const txCost = await this.provider.getTransactionCost(request, {
46012
+ const { maxFee, requiredQuantities, gasUsed, estimatedInputs } = await this.provider.getTransactionCost(request, [], {
46499
46013
  estimateTxDependencies: true,
46500
46014
  resourcesOwner: this
46501
46015
  });
46502
- if ("gasLimit" in txParams) {
46503
- this.validateGas({
46504
- gasUsed: txCost.gasUsed,
46505
- gasLimit: request.gasLimit
46506
- });
46507
- }
46508
- request.gasLimit = txCost.gasUsed;
46509
- request.maxFee = txCost.maxFee;
46510
- await this.fund(request, txCost);
46016
+ request.gasPrice = bn(txParams.gasPrice ?? minGasPrice);
46017
+ request.gasLimit = bn(txParams.gasLimit ?? gasUsed);
46018
+ this.validateGas({
46019
+ gasUsed,
46020
+ gasPrice: request.gasPrice,
46021
+ gasLimit: request.gasLimit,
46022
+ minGasPrice
46023
+ });
46024
+ await this.fund(request, requiredQuantities, maxFee);
46025
+ request.updatePredicateInputs(estimatedInputs);
46511
46026
  return request;
46512
46027
  }
46513
46028
  /**
@@ -46546,30 +46061,31 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46546
46061
  );
46547
46062
  }
46548
46063
  const contractAddress = Address.fromAddressOrString(contractId);
46064
+ const { minGasPrice } = this.provider.getGasConfig();
46065
+ const params = { gasPrice: minGasPrice, ...txParams };
46549
46066
  const { script, scriptData } = await assembleTransferToContractScript({
46550
46067
  hexlifiedContractId: contractAddress.toB256(),
46551
46068
  amountToTransfer: bn(amount),
46552
46069
  assetId
46553
46070
  });
46554
46071
  const request = new ScriptTransactionRequest({
46555
- ...txParams,
46072
+ ...params,
46556
46073
  script,
46557
46074
  scriptData
46558
46075
  });
46559
46076
  request.addContractInputAndOutput(contractAddress);
46560
- const txCost = await this.provider.getTransactionCost(request, {
46561
- resourcesOwner: this,
46562
- quantitiesToContract: [{ amount: bn(amount), assetId: String(assetId) }]
46077
+ const { maxFee, requiredQuantities, gasUsed } = await this.provider.getTransactionCost(
46078
+ request,
46079
+ [{ amount: bn(amount), assetId: String(assetId) }]
46080
+ );
46081
+ request.gasLimit = bn(params.gasLimit ?? gasUsed);
46082
+ this.validateGas({
46083
+ gasUsed,
46084
+ gasPrice: request.gasPrice,
46085
+ gasLimit: request.gasLimit,
46086
+ minGasPrice
46563
46087
  });
46564
- if (txParams.gasLimit) {
46565
- this.validateGas({
46566
- gasUsed: txCost.gasUsed,
46567
- gasLimit: request.gasLimit
46568
- });
46569
- }
46570
- request.gasLimit = txCost.gasUsed;
46571
- request.maxFee = txCost.maxFee;
46572
- await this.fund(request, txCost);
46088
+ await this.fund(request, requiredQuantities, maxFee);
46573
46089
  return this.sendTransaction(request);
46574
46090
  }
46575
46091
  /**
@@ -46581,6 +46097,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46581
46097
  * @returns A promise that resolves to the transaction response.
46582
46098
  */
46583
46099
  async withdrawToBaseLayer(recipient, amount, txParams = {}) {
46100
+ const { minGasPrice } = this.provider.getGasConfig();
46584
46101
  const recipientAddress = Address.fromAddressOrString(recipient);
46585
46102
  const recipientDataArray = arrayify(
46586
46103
  "0x".concat(recipientAddress.toHexString().substring(2).padStart(64, "0"))
@@ -46593,19 +46110,21 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46593
46110
  ...recipientDataArray,
46594
46111
  ...amountDataArray
46595
46112
  ]);
46596
- const params = { script, ...txParams };
46113
+ const params = { script, gasPrice: minGasPrice, ...txParams };
46597
46114
  const request = new ScriptTransactionRequest(params);
46598
- const quantitiesToContract = [{ amount: bn(amount), assetId: BaseAssetId }];
46599
- const txCost = await this.provider.getTransactionCost(request, { quantitiesToContract });
46600
- if (txParams.gasLimit) {
46601
- this.validateGas({
46602
- gasUsed: txCost.gasUsed,
46603
- gasLimit: request.gasLimit
46604
- });
46605
- }
46606
- request.maxFee = txCost.maxFee;
46607
- request.gasLimit = txCost.gasUsed;
46608
- await this.fund(request, txCost);
46115
+ const forwardingQuantities = [{ amount: bn(amount), assetId: BaseAssetId }];
46116
+ const { requiredQuantities, maxFee, gasUsed } = await this.provider.getTransactionCost(
46117
+ request,
46118
+ forwardingQuantities
46119
+ );
46120
+ request.gasLimit = bn(params.gasLimit ?? gasUsed);
46121
+ this.validateGas({
46122
+ gasUsed,
46123
+ gasPrice: request.gasPrice,
46124
+ gasLimit: request.gasLimit,
46125
+ minGasPrice
46126
+ });
46127
+ await this.fund(request, requiredQuantities, maxFee);
46609
46128
  return this.sendTransaction(request);
46610
46129
  }
46611
46130
  async signMessage(message) {
@@ -46663,7 +46182,18 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
46663
46182
  }
46664
46183
  return this.provider.simulate(transactionRequest, { estimateTxDependencies: false });
46665
46184
  }
46666
- validateGas({ gasUsed, gasLimit }) {
46185
+ validateGas({
46186
+ gasUsed,
46187
+ gasPrice,
46188
+ gasLimit,
46189
+ minGasPrice
46190
+ }) {
46191
+ if (minGasPrice.gt(gasPrice)) {
46192
+ throw new FuelError(
46193
+ ErrorCode.GAS_PRICE_TOO_LOW,
46194
+ `Gas price '${gasPrice}' is lower than the required: '${minGasPrice}'.`
46195
+ );
46196
+ }
46667
46197
  if (gasUsed.gt(gasLimit)) {
46668
46198
  throw new FuelError(
46669
46199
  ErrorCode.GAS_LIMIT_TOO_LOW,
@@ -48252,7 +47782,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
48252
47782
  * @param transactionRequestLike - The transaction request to send.
48253
47783
  * @returns A promise that resolves to the TransactionResponse object.
48254
47784
  */
48255
- async sendTransaction(transactionRequestLike, { estimateTxDependencies = false, awaitExecution } = {}) {
47785
+ async sendTransaction(transactionRequestLike, { estimateTxDependencies = true, awaitExecution } = {}) {
48256
47786
  const transactionRequest = transactionRequestify(transactionRequestLike);
48257
47787
  if (estimateTxDependencies) {
48258
47788
  await this.provider.estimateTxDependencies(transactionRequest);
@@ -51012,15 +50542,14 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
51012
50542
  process.env.GENESIS_SECRET || randomBytes22(32),
51013
50543
  wallet.provider
51014
50544
  );
51015
- const request = new ScriptTransactionRequest();
51016
- quantities.forEach((quantity) => {
51017
- const { amount, assetId } = coinQuantityfy(quantity);
51018
- request.addCoinOutput(wallet.address, amount, assetId);
50545
+ const resources = await genesisWallet.getResourcesToSpend(quantities);
50546
+ const { minGasPrice } = genesisWallet.provider.getGasConfig();
50547
+ const request = new ScriptTransactionRequest({
50548
+ gasLimit: 1e4,
50549
+ gasPrice: minGasPrice
51019
50550
  });
51020
- const txCost = await genesisWallet.provider.getTransactionCost(request);
51021
- request.gasLimit = txCost.gasUsed;
51022
- request.maxFee = txCost.maxFee;
51023
- await genesisWallet.fund(request, txCost);
50551
+ request.addResources(resources);
50552
+ quantities.map(coinQuantityfy).forEach(({ amount, assetId }) => request.addCoinOutput(wallet.address, amount, assetId));
51024
50553
  await genesisWallet.sendTransaction(request, { awaitExecution: true });
51025
50554
  };
51026
50555
 
@@ -51050,7 +50579,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
51050
50579
 
51051
50580
  // src/test-utils/launchNode.ts
51052
50581
  var import_child_process = __require("child_process");
51053
- var import_crypto22 = __require("crypto");
50582
+ var import_crypto21 = __require("crypto");
51054
50583
  var import_fs2 = __require("fs");
51055
50584
  var import_os = __toESM(__require("os"));
51056
50585
  var import_path8 = __toESM(__require("path"));
@@ -51099,12 +50628,12 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
51099
50628
  // eslint-disable-next-line no-async-promise-executor
51100
50629
  new Promise(async (resolve, reject) => {
51101
50630
  const remainingArgs = extractRemainingArgs(args, [
51102
- "--snapshot",
50631
+ "--chain",
51103
50632
  "--consensus-key",
51104
50633
  "--db-type",
51105
50634
  "--poa-instant"
51106
50635
  ]);
51107
- const chainConfigPath = getFlagValueFromArgs(args, "--snapshot");
50636
+ const chainConfigPath = getFlagValueFromArgs(args, "--chain");
51108
50637
  const consensusKey = getFlagValueFromArgs(args, "--consensus-key") || defaultConsensusKey;
51109
50638
  const dbTypeFlagValue = getFlagValueFromArgs(args, "--db-type");
51110
50639
  const useInMemoryDb = dbTypeFlagValue === "in-memory" || dbTypeFlagValue === void 0;
@@ -51122,55 +50651,37 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
51122
50651
  })).toString();
51123
50652
  let chainConfigPathToUse;
51124
50653
  const prefix = basePath || import_os.default.tmpdir();
51125
- const suffix = basePath ? "" : (0, import_crypto22.randomUUID)();
51126
- const tempDirPath = import_path8.default.join(prefix, ".fuels", suffix, "chainConfigs");
50654
+ const suffix = basePath ? "" : (0, import_crypto21.randomUUID)();
50655
+ const tempDirPath = import_path8.default.join(prefix, ".fuels", suffix);
51127
50656
  if (chainConfigPath) {
51128
50657
  chainConfigPathToUse = chainConfigPath;
51129
50658
  } else {
51130
50659
  if (!(0, import_fs2.existsSync)(tempDirPath)) {
51131
50660
  (0, import_fs2.mkdirSync)(tempDirPath, { recursive: true });
51132
50661
  }
51133
- let { stateConfigJson } = defaultChainConfigs;
51134
- const { chainConfigJson, metadataJson } = defaultChainConfigs;
51135
- stateConfigJson = {
51136
- ...stateConfigJson,
51137
- coins: [
51138
- ...stateConfigJson.coins.map((coin) => ({
51139
- ...coin,
51140
- amount: "18446744073709551615"
51141
- }))
51142
- ],
51143
- messages: stateConfigJson.messages.map((message) => ({
51144
- ...message,
51145
- amount: "18446744073709551615"
51146
- }))
51147
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
51148
- };
50662
+ const tempChainConfigFilePath = import_path8.default.join(tempDirPath, "chainConfig.json");
50663
+ let chainConfig = defaultChainConfig;
51149
50664
  if (!process.env.GENESIS_SECRET) {
51150
50665
  const pk = Signer.generatePrivateKey();
51151
50666
  const signer = new Signer(pk);
51152
50667
  process.env.GENESIS_SECRET = hexlify(pk);
51153
- stateConfigJson.coins.push({
51154
- tx_id: hexlify(randomBytes22(UTXO_ID_LEN)),
51155
- owner: signer.address.toHexString(),
51156
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
51157
- amount: "18446744073709551615",
51158
- asset_id: BaseAssetId,
51159
- output_index: 0,
51160
- tx_pointer_block_height: 0,
51161
- tx_pointer_tx_idx: 0
51162
- });
50668
+ chainConfig = {
50669
+ ...defaultChainConfig,
50670
+ initial_state: {
50671
+ ...defaultChainConfig.initial_state,
50672
+ coins: [
50673
+ ...defaultChainConfig.initial_state.coins,
50674
+ {
50675
+ owner: signer.address.toHexString(),
50676
+ amount: toHex(1e9),
50677
+ asset_id: BaseAssetId
50678
+ }
50679
+ ]
50680
+ }
50681
+ };
51163
50682
  }
51164
- let fixedStateConfigJSON = JSON.stringify(stateConfigJson);
51165
- const regexMakeNumber = /("amount":)"(\d+)"/gm;
51166
- fixedStateConfigJSON = fixedStateConfigJSON.replace(regexMakeNumber, "$1$2");
51167
- const chainConfigWritePath = import_path8.default.join(tempDirPath, "chainConfig.json");
51168
- const stateConfigWritePath = import_path8.default.join(tempDirPath, "stateConfig.json");
51169
- const metadataWritePath = import_path8.default.join(tempDirPath, "metadata.json");
51170
- (0, import_fs2.writeFileSync)(chainConfigWritePath, JSON.stringify(chainConfigJson), "utf8");
51171
- (0, import_fs2.writeFileSync)(stateConfigWritePath, fixedStateConfigJSON, "utf8");
51172
- (0, import_fs2.writeFileSync)(metadataWritePath, JSON.stringify(metadataJson), "utf8");
51173
- chainConfigPathToUse = tempDirPath;
50683
+ (0, import_fs2.writeFileSync)(tempChainConfigFilePath, JSON.stringify(chainConfig), "utf8");
50684
+ chainConfigPathToUse = tempChainConfigFilePath;
51174
50685
  }
51175
50686
  const child = (0, import_child_process.spawn)(
51176
50687
  command,
@@ -51179,10 +50690,10 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
51179
50690
  ["--ip", ipToUse],
51180
50691
  ["--port", portToUse],
51181
50692
  useInMemoryDb ? ["--db-type", "in-memory"] : ["--db-path", tempDirPath],
51182
- ["--min-gas-price", "1"],
50693
+ ["--min-gas-price", "0"],
51183
50694
  poaInstant ? ["--poa-instant", "true"] : [],
51184
50695
  ["--consensus-key", consensusKey],
51185
- ["--snapshot", chainConfigPathToUse],
50696
+ ["--chain", chainConfigPathToUse],
51186
50697
  "--vm-backtrace",
51187
50698
  "--utxo-validation",
51188
50699
  "--debug",
@@ -51241,7 +50752,7 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
51241
50752
  walletCount = 10
51242
50753
  } = {}) => {
51243
50754
  const { cleanup: closeNode, ip, port } = await launchNode(launchNodeOptions || {});
51244
- const provider = await Provider.create(`http://${ip}:${port}/v1/graphql`);
50755
+ const provider = await Provider.create(`http://${ip}:${port}/graphql`);
51245
50756
  const wallets = await generateWallets(walletCount, provider);
51246
50757
  const cleanup = () => {
51247
50758
  closeNode();