@fuel-ts/account 0.97.1 → 0.97.2

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.
@@ -14731,9 +14731,9 @@
14731
14731
  // ../versions/dist/index.mjs
14732
14732
  function getBuiltinVersions() {
14733
14733
  return {
14734
- FORC: "0.66.4",
14734
+ FORC: "0.66.5",
14735
14735
  FUEL_CORE: "0.40.1",
14736
- FUELS: "0.97.1"
14736
+ FUELS: "0.97.2"
14737
14737
  };
14738
14738
  }
14739
14739
  function parseVersion(version) {
@@ -15277,23 +15277,23 @@ If you are attempting to transform a hex value, please make sure it is being pas
15277
15277
  var chainConfig_default = {
15278
15278
  chain_name: "local_testnet",
15279
15279
  consensus_parameters: {
15280
- V1: {
15280
+ V2: {
15281
15281
  tx_params: {
15282
15282
  V1: {
15283
15283
  max_inputs: 255,
15284
15284
  max_outputs: 255,
15285
15285
  max_witnesses: 255,
15286
15286
  max_gas_per_tx: 3e7,
15287
- max_size: 262144,
15287
+ max_size: 112640,
15288
15288
  max_bytecode_subsections: 256
15289
15289
  }
15290
15290
  },
15291
15291
  predicate_params: {
15292
15292
  V1: {
15293
- max_predicate_length: 102400,
15294
- max_predicate_data_length: 102400,
15293
+ max_predicate_length: 24576,
15294
+ max_predicate_data_length: 24576,
15295
15295
  max_message_data_length: 102400,
15296
- max_gas_per_predicate: 3e7
15296
+ max_gas_per_predicate: 1e6
15297
15297
  }
15298
15298
  },
15299
15299
  script_params: {
@@ -15304,13 +15304,13 @@ If you are attempting to transform a hex value, please make sure it is being pas
15304
15304
  },
15305
15305
  contract_params: {
15306
15306
  V1: {
15307
- contract_max_size: 262144,
15307
+ contract_max_size: 112640,
15308
15308
  max_storage_slots: 1760
15309
15309
  }
15310
15310
  },
15311
15311
  fee_params: {
15312
15312
  V1: {
15313
- gas_price_factor: 92e3,
15313
+ gas_price_factor: 115e4,
15314
15314
  gas_per_byte: 63
15315
15315
  }
15316
15316
  },
@@ -15321,23 +15321,23 @@ If you are attempting to transform a hex value, please make sure it is being pas
15321
15321
  addi: 2,
15322
15322
  and: 2,
15323
15323
  andi: 2,
15324
- bal: 29,
15324
+ bal: 274,
15325
15325
  bhei: 2,
15326
15326
  bhsh: 2,
15327
- burn: 19976,
15327
+ burn: 7566,
15328
15328
  cb: 2,
15329
15329
  cfsi: 2,
15330
15330
  div: 2,
15331
15331
  divi: 2,
15332
- eck1: 1907,
15333
- ecr1: 26135,
15332
+ eck1: 1489,
15333
+ ecr1: 20513,
15334
15334
  eq: 2,
15335
15335
  exp: 2,
15336
15336
  expi: 2,
15337
15337
  flag: 2,
15338
15338
  gm: 2,
15339
15339
  gt: 2,
15340
- gtf: 13,
15340
+ gtf: 3,
15341
15341
  ji: 2,
15342
15342
  jmp: 2,
15343
15343
  jne: 2,
@@ -15350,225 +15350,226 @@ If you are attempting to transform a hex value, please make sure it is being pas
15350
15350
  jnef: 2,
15351
15351
  jneb: 2,
15352
15352
  lb: 2,
15353
- log: 102,
15353
+ log: 80,
15354
15354
  lt: 2,
15355
15355
  lw: 2,
15356
- mint: 18042,
15356
+ mint: 6566,
15357
15357
  mlog: 2,
15358
15358
  mod: 2,
15359
15359
  modi: 2,
15360
15360
  move: 2,
15361
- movi: 2,
15362
- mroo: 4,
15361
+ movi: 1,
15362
+ mroo: 3,
15363
15363
  mul: 2,
15364
15364
  muli: 2,
15365
15365
  mldv: 3,
15366
15366
  noop: 1,
15367
15367
  not: 2,
15368
- or: 2,
15368
+ or: 1,
15369
15369
  ori: 2,
15370
- poph: 3,
15371
- popl: 3,
15370
+ poph: 2,
15371
+ popl: 2,
15372
15372
  pshh: 5,
15373
15373
  pshl: 5,
15374
- ret_contract: 53,
15375
- rvrt_contract: 52,
15374
+ ret_contract: 43,
15375
+ rvrt_contract: 39,
15376
15376
  sb: 2,
15377
15377
  sll: 2,
15378
15378
  slli: 2,
15379
15379
  srl: 2,
15380
15380
  srli: 2,
15381
- srw: 177,
15381
+ srw: 237,
15382
15382
  sub: 2,
15383
15383
  subi: 2,
15384
15384
  sw: 2,
15385
- sww: 17302,
15386
- time: 35,
15387
- tr: 27852,
15388
- tro: 19718,
15385
+ sww: 5708,
15386
+ time: 106,
15387
+ tr: 9253,
15388
+ tro: 7199,
15389
15389
  wdcm: 2,
15390
15390
  wqcm: 2,
15391
- wdop: 3,
15391
+ wdop: 2,
15392
15392
  wqop: 3,
15393
15393
  wdml: 3,
15394
15394
  wqml: 3,
15395
- wddv: 4,
15396
- wqdv: 5,
15397
- wdmd: 8,
15398
- wqmd: 12,
15399
- wdam: 7,
15400
- wqam: 8,
15401
- wdmm: 8,
15402
- wqmm: 8,
15395
+ wddv: 3,
15396
+ wqdv: 4,
15397
+ wdmd: 6,
15398
+ wqmd: 9,
15399
+ wdam: 6,
15400
+ wqam: 6,
15401
+ wdmm: 6,
15402
+ wqmm: 6,
15403
15403
  xor: 2,
15404
15404
  xori: 2,
15405
15405
  aloc: {
15406
15406
  LightOperation: {
15407
15407
  base: 2,
15408
- units_per_gas: 15
15408
+ units_per_gas: 35
15409
15409
  }
15410
15410
  },
15411
15411
  bsiz: {
15412
15412
  LightOperation: {
15413
- base: 17,
15414
- units_per_gas: 790
15413
+ base: 25,
15414
+ units_per_gas: 564
15415
15415
  }
15416
15416
  },
15417
15417
  bldd: {
15418
15418
  LightOperation: {
15419
- base: 15,
15420
- units_per_gas: 272
15419
+ base: 33,
15420
+ units_per_gas: 130
15421
15421
  }
15422
15422
  },
15423
15423
  cfe: {
15424
15424
  LightOperation: {
15425
15425
  base: 10,
15426
- units_per_gas: 1818181
15426
+ units_per_gas: 62
15427
15427
  }
15428
15428
  },
15429
15429
  cfei: {
15430
15430
  LightOperation: {
15431
- base: 2,
15432
- units_per_gas: 1e6
15431
+ base: 10,
15432
+ units_per_gas: 66
15433
15433
  }
15434
15434
  },
15435
15435
  call: {
15436
15436
  LightOperation: {
15437
- base: 13513,
15438
- units_per_gas: 7
15437
+ base: 6934,
15438
+ units_per_gas: 14
15439
15439
  }
15440
15440
  },
15441
15441
  ccp: {
15442
15442
  LightOperation: {
15443
- base: 34,
15444
- units_per_gas: 39
15443
+ base: 21,
15444
+ units_per_gas: 155
15445
15445
  }
15446
15446
  },
15447
15447
  croo: {
15448
15448
  LightOperation: {
15449
- base: 91,
15450
- units_per_gas: 3
15449
+ base: 69,
15450
+ units_per_gas: 4
15451
15451
  }
15452
15452
  },
15453
15453
  csiz: {
15454
15454
  LightOperation: {
15455
- base: 31,
15456
- units_per_gas: 438
15455
+ base: 25,
15456
+ units_per_gas: 580
15457
15457
  }
15458
15458
  },
15459
15459
  ed19: {
15460
15460
  LightOperation: {
15461
- base: 3e3,
15462
- units_per_gas: 214
15461
+ base: 3232,
15462
+ units_per_gas: 7
15463
15463
  }
15464
15464
  },
15465
15465
  k256: {
15466
15466
  LightOperation: {
15467
- base: 27,
15468
- units_per_gas: 5
15467
+ base: 21,
15468
+ units_per_gas: 6
15469
15469
  }
15470
15470
  },
15471
15471
  ldc: {
15472
15472
  LightOperation: {
15473
- base: 43,
15474
- units_per_gas: 102
15473
+ base: 84,
15474
+ units_per_gas: 113
15475
15475
  }
15476
15476
  },
15477
15477
  logd: {
15478
15478
  LightOperation: {
15479
- base: 363,
15480
- units_per_gas: 4
15479
+ base: 278,
15480
+ units_per_gas: 5
15481
15481
  }
15482
15482
  },
15483
15483
  mcl: {
15484
15484
  LightOperation: {
15485
15485
  base: 2,
15486
- units_per_gas: 1041
15486
+ units_per_gas: 1282
15487
15487
  }
15488
15488
  },
15489
15489
  mcli: {
15490
15490
  LightOperation: {
15491
15491
  base: 2,
15492
- units_per_gas: 1025
15492
+ units_per_gas: 1250
15493
15493
  }
15494
15494
  },
15495
15495
  mcp: {
15496
15496
  LightOperation: {
15497
- base: 4,
15498
- units_per_gas: 325
15497
+ base: 3,
15498
+ units_per_gas: 385
15499
15499
  }
15500
15500
  },
15501
15501
  mcpi: {
15502
15502
  LightOperation: {
15503
- base: 8,
15504
- units_per_gas: 511
15503
+ base: 7,
15504
+ units_per_gas: 585
15505
15505
  }
15506
15506
  },
15507
15507
  meq: {
15508
15508
  LightOperation: {
15509
- base: 3,
15510
- units_per_gas: 940
15509
+ base: 2,
15510
+ units_per_gas: 1234
15511
15511
  }
15512
15512
  },
15513
15513
  retd_contract: {
15514
15514
  LightOperation: {
15515
- base: 305,
15516
- units_per_gas: 4
15515
+ base: 227,
15516
+ units_per_gas: 5
15517
15517
  }
15518
15518
  },
15519
15519
  s256: {
15520
15520
  LightOperation: {
15521
- base: 31,
15522
- units_per_gas: 4
15521
+ base: 25,
15522
+ units_per_gas: 5
15523
15523
  }
15524
15524
  },
15525
15525
  scwq: {
15526
15526
  HeavyOperation: {
15527
- base: 16346,
15528
- gas_per_unit: 17163
15527
+ base: 5666,
15528
+ gas_per_unit: 6628
15529
15529
  }
15530
15530
  },
15531
15531
  smo: {
15532
15532
  LightOperation: {
15533
- base: 40860,
15534
- units_per_gas: 2
15533
+ base: 14635,
15534
+ units_per_gas: 3
15535
15535
  }
15536
15536
  },
15537
15537
  srwq: {
15538
15538
  HeavyOperation: {
15539
- base: 187,
15540
- gas_per_unit: 179
15539
+ base: 245,
15540
+ gas_per_unit: 243
15541
15541
  }
15542
15542
  },
15543
15543
  swwq: {
15544
15544
  HeavyOperation: {
15545
- base: 17046,
15546
- gas_per_unit: 16232
15545
+ base: 5661,
15546
+ gas_per_unit: 5776
15547
15547
  }
15548
15548
  },
15549
15549
  contract_root: {
15550
15550
  LightOperation: {
15551
- base: 31,
15552
- units_per_gas: 2
15551
+ base: 24,
15552
+ units_per_gas: 3
15553
15553
  }
15554
15554
  },
15555
15555
  state_root: {
15556
15556
  HeavyOperation: {
15557
- base: 236,
15558
- gas_per_unit: 122
15557
+ base: 189,
15558
+ gas_per_unit: 96
15559
15559
  }
15560
15560
  },
15561
15561
  new_storage_per_byte: 63,
15562
15562
  vm_initialization: {
15563
15563
  LightOperation: {
15564
- base: 3957,
15565
- units_per_gas: 48
15564
+ base: 3127,
15565
+ units_per_gas: 61
15566
15566
  }
15567
15567
  }
15568
15568
  }
15569
15569
  },
15570
15570
  base_asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07",
15571
15571
  block_gas_limit: 3e7,
15572
+ block_transaction_size_limit: 260096,
15572
15573
  privileged_address: "0000000000000000000000000000000000000000000000000000000000000000"
15573
15574
  }
15574
15575
  },
@@ -15587,475 +15588,8 @@ If you are attempting to transform a hex value, please make sure it is being pas
15587
15588
  }
15588
15589
  };
15589
15590
  var stateConfig_default = {
15590
- coins: [
15591
- {
15592
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000001",
15593
- output_index: 0,
15594
- tx_pointer_block_height: 0,
15595
- tx_pointer_tx_idx: 0,
15596
- owner: "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d",
15597
- amount: 18446744073709552e3,
15598
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15599
- },
15600
- {
15601
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000002",
15602
- output_index: 0,
15603
- tx_pointer_block_height: 0,
15604
- tx_pointer_tx_idx: 0,
15605
- owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
15606
- amount: 18446744073709552e3,
15607
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15608
- },
15609
- {
15610
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000003",
15611
- output_index: 0,
15612
- tx_pointer_block_height: 0,
15613
- tx_pointer_tx_idx: 0,
15614
- owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
15615
- amount: 18446744073709552e3,
15616
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15617
- },
15618
- {
15619
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000004",
15620
- output_index: 0,
15621
- tx_pointer_block_height: 0,
15622
- tx_pointer_tx_idx: 0,
15623
- owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
15624
- amount: 18446744073709552e3,
15625
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15626
- },
15627
- {
15628
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000005",
15629
- output_index: 0,
15630
- tx_pointer_block_height: 0,
15631
- tx_pointer_tx_idx: 0,
15632
- owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
15633
- amount: 18446744073709552e3,
15634
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15635
- },
15636
- {
15637
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000006",
15638
- output_index: 0,
15639
- tx_pointer_block_height: 0,
15640
- tx_pointer_tx_idx: 0,
15641
- owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
15642
- amount: 18446744073709552e3,
15643
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15644
- },
15645
- {
15646
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000007",
15647
- output_index: 0,
15648
- tx_pointer_block_height: 0,
15649
- tx_pointer_tx_idx: 0,
15650
- owner: "0x5d99ee966b42cd8fc7bdd1364b389153a9e78b42b7d4a691470674e817888d4e",
15651
- amount: 18446744073709552e3,
15652
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15653
- },
15654
- {
15655
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000008",
15656
- output_index: 0,
15657
- tx_pointer_block_height: 0,
15658
- tx_pointer_tx_idx: 0,
15659
- owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
15660
- amount: 18446744073709552e3,
15661
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15662
- },
15663
- {
15664
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000009",
15665
- output_index: 0,
15666
- tx_pointer_block_height: 0,
15667
- tx_pointer_tx_idx: 0,
15668
- owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
15669
- amount: 18446744073709552e3,
15670
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15671
- },
15672
- {
15673
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000010",
15674
- output_index: 0,
15675
- tx_pointer_block_height: 0,
15676
- tx_pointer_tx_idx: 0,
15677
- owner: "0xbdaad6a89e073e177895b3e5a9ccd15806749eda134a6438dae32fc5b6601f3f",
15678
- amount: 18446744073709552e3,
15679
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15680
- },
15681
- {
15682
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000011",
15683
- output_index: 0,
15684
- tx_pointer_block_height: 0,
15685
- tx_pointer_tx_idx: 0,
15686
- owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
15687
- amount: 18446744073709552e3,
15688
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15689
- },
15690
- {
15691
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000012",
15692
- output_index: 0,
15693
- tx_pointer_block_height: 0,
15694
- tx_pointer_tx_idx: 0,
15695
- owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
15696
- amount: 18446744073709552e3,
15697
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15698
- },
15699
- {
15700
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000013",
15701
- output_index: 0,
15702
- tx_pointer_block_height: 0,
15703
- tx_pointer_tx_idx: 0,
15704
- owner: "0x95a7aa6cc32743f8706c40ef49a7423b47da763bb4bbc055b1f07254dc729036",
15705
- amount: 18446744073709552e3,
15706
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15707
- },
15708
- {
15709
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000014",
15710
- output_index: 0,
15711
- tx_pointer_block_height: 0,
15712
- tx_pointer_tx_idx: 0,
15713
- owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
15714
- amount: 18446744073709552e3,
15715
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15716
- },
15717
- {
15718
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000015",
15719
- output_index: 0,
15720
- tx_pointer_block_height: 0,
15721
- tx_pointer_tx_idx: 0,
15722
- owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
15723
- amount: 18446744073709552e3,
15724
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15725
- },
15726
- {
15727
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000016",
15728
- output_index: 0,
15729
- tx_pointer_block_height: 0,
15730
- tx_pointer_tx_idx: 0,
15731
- owner: "0xcee104acd38b940c8f1c62c6d7ea00a0ad2241d6dee0509a4bf27297508870d3",
15732
- amount: 18446744073709552e3,
15733
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15734
- },
15735
- {
15736
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000017",
15737
- output_index: 0,
15738
- tx_pointer_block_height: 0,
15739
- tx_pointer_tx_idx: 0,
15740
- owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
15741
- amount: 18446744073709552e3,
15742
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15743
- },
15744
- {
15745
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000018",
15746
- output_index: 0,
15747
- tx_pointer_block_height: 0,
15748
- tx_pointer_tx_idx: 0,
15749
- owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
15750
- amount: 18446744073709552e3,
15751
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15752
- },
15753
- {
15754
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000019",
15755
- output_index: 0,
15756
- tx_pointer_block_height: 0,
15757
- tx_pointer_tx_idx: 0,
15758
- owner: "0x7e3626e306588eba79cafab73f0709e55ab8f4bdfe8c8b75034a430fc56ece89",
15759
- amount: 18446744073709552e3,
15760
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15761
- },
15762
- {
15763
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000020",
15764
- output_index: 0,
15765
- tx_pointer_block_height: 0,
15766
- tx_pointer_tx_idx: 0,
15767
- owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
15768
- amount: 18446744073709552e3,
15769
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15770
- },
15771
- {
15772
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000021",
15773
- output_index: 0,
15774
- tx_pointer_block_height: 0,
15775
- tx_pointer_tx_idx: 0,
15776
- owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
15777
- amount: 18446744073709552e3,
15778
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15779
- },
15780
- {
15781
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000022",
15782
- output_index: 0,
15783
- tx_pointer_block_height: 0,
15784
- tx_pointer_tx_idx: 0,
15785
- owner: "0x1c31df52b6df56407dd95f83082e8beb9cfc9532ac111d5bd8491651d95ba775",
15786
- amount: 18446744073709552e3,
15787
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15788
- },
15789
- {
15790
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000023",
15791
- output_index: 0,
15792
- tx_pointer_block_height: 0,
15793
- tx_pointer_tx_idx: 0,
15794
- owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
15795
- amount: 18446744073709552e3,
15796
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15797
- },
15798
- {
15799
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000024",
15800
- output_index: 0,
15801
- tx_pointer_block_height: 0,
15802
- tx_pointer_tx_idx: 0,
15803
- owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
15804
- amount: 18446744073709552e3,
15805
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15806
- },
15807
- {
15808
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000025",
15809
- output_index: 0,
15810
- tx_pointer_block_height: 0,
15811
- tx_pointer_tx_idx: 0,
15812
- owner: "0x09dd7a49174d6fcc9f4c6f7942c18060a935ddd03ee69b594189b8c3581276ea",
15813
- amount: 18446744073709552e3,
15814
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15815
- },
15816
- {
15817
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000026",
15818
- output_index: 0,
15819
- tx_pointer_block_height: 0,
15820
- tx_pointer_tx_idx: 0,
15821
- owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
15822
- amount: 18446744073709552e3,
15823
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15824
- },
15825
- {
15826
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000027",
15827
- output_index: 0,
15828
- tx_pointer_block_height: 0,
15829
- tx_pointer_tx_idx: 0,
15830
- owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
15831
- amount: 18446744073709552e3,
15832
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15833
- },
15834
- {
15835
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000028",
15836
- output_index: 0,
15837
- tx_pointer_block_height: 0,
15838
- tx_pointer_tx_idx: 0,
15839
- owner: "0x86604282dc604481b809845be49667607c470644f6822fc01eb0d22f167e08cf",
15840
- amount: 18446744073709552e3,
15841
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15842
- },
15843
- {
15844
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000029",
15845
- output_index: 0,
15846
- tx_pointer_block_height: 0,
15847
- tx_pointer_tx_idx: 0,
15848
- owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
15849
- amount: 18446744073709552e3,
15850
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15851
- },
15852
- {
15853
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000030",
15854
- output_index: 0,
15855
- tx_pointer_block_height: 0,
15856
- tx_pointer_tx_idx: 0,
15857
- owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
15858
- amount: 18446744073709552e3,
15859
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15860
- },
15861
- {
15862
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000031",
15863
- output_index: 0,
15864
- tx_pointer_block_height: 0,
15865
- tx_pointer_tx_idx: 0,
15866
- owner: "0xbca334a06d19db5041c78fe2f465b07be5bec828f38b7796b2877e7d1542c950",
15867
- amount: 18446744073709552e3,
15868
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15869
- },
15870
- {
15871
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000032",
15872
- output_index: 0,
15873
- tx_pointer_block_height: 0,
15874
- tx_pointer_tx_idx: 0,
15875
- owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
15876
- amount: 18446744073709552e3,
15877
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15878
- },
15879
- {
15880
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000033",
15881
- output_index: 0,
15882
- tx_pointer_block_height: 0,
15883
- tx_pointer_tx_idx: 0,
15884
- owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
15885
- amount: 18446744073709552e3,
15886
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15887
- },
15888
- {
15889
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000034",
15890
- output_index: 0,
15891
- tx_pointer_block_height: 0,
15892
- tx_pointer_tx_idx: 0,
15893
- owner: "0xbd9a1dc8d3ec3521c43f6c2c01611b4d0204c7610204ff0178488c8738a30bd2",
15894
- amount: 18446744073709552e3,
15895
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15896
- },
15897
- {
15898
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000035",
15899
- output_index: 0,
15900
- tx_pointer_block_height: 0,
15901
- tx_pointer_tx_idx: 0,
15902
- owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
15903
- amount: 18446744073709552e3,
15904
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15905
- },
15906
- {
15907
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000036",
15908
- output_index: 0,
15909
- tx_pointer_block_height: 0,
15910
- tx_pointer_tx_idx: 0,
15911
- owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
15912
- amount: 18446744073709552e3,
15913
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15914
- },
15915
- {
15916
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000037",
15917
- output_index: 0,
15918
- tx_pointer_block_height: 0,
15919
- tx_pointer_tx_idx: 0,
15920
- owner: "0xb32197cf75efe05bf453c26178139f09b391582065549c1422bc92555ecffb64",
15921
- amount: 18446744073709552e3,
15922
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15923
- },
15924
- {
15925
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000038",
15926
- output_index: 0,
15927
- tx_pointer_block_height: 0,
15928
- tx_pointer_tx_idx: 0,
15929
- owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
15930
- amount: 18446744073709552e3,
15931
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15932
- },
15933
- {
15934
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000039",
15935
- output_index: 0,
15936
- tx_pointer_block_height: 0,
15937
- tx_pointer_tx_idx: 0,
15938
- owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
15939
- amount: 18446744073709552e3,
15940
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15941
- },
15942
- {
15943
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000040",
15944
- output_index: 0,
15945
- tx_pointer_block_height: 0,
15946
- tx_pointer_tx_idx: 0,
15947
- owner: "0x3b24509ed4ab3c7959f5c9391c1445c59290cdb5f13d6f780922f376b7029f30",
15948
- amount: 18446744073709552e3,
15949
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15950
- },
15951
- {
15952
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000041",
15953
- output_index: 0,
15954
- tx_pointer_block_height: 0,
15955
- tx_pointer_tx_idx: 0,
15956
- owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
15957
- amount: 18446744073709552e3,
15958
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15959
- },
15960
- {
15961
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000042",
15962
- output_index: 0,
15963
- tx_pointer_block_height: 0,
15964
- tx_pointer_tx_idx: 0,
15965
- owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
15966
- amount: 18446744073709552e3,
15967
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15968
- },
15969
- {
15970
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000043",
15971
- output_index: 0,
15972
- tx_pointer_block_height: 0,
15973
- tx_pointer_tx_idx: 0,
15974
- owner: "0x77c6f40b7da70d885f68efaad7c661327482a63ea10dcb4271de819438254ae1",
15975
- amount: 18446744073709552e3,
15976
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
15977
- },
15978
- {
15979
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000044",
15980
- output_index: 0,
15981
- tx_pointer_block_height: 0,
15982
- tx_pointer_tx_idx: 0,
15983
- owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
15984
- amount: 18446744073709552e3,
15985
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
15986
- },
15987
- {
15988
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000045",
15989
- output_index: 0,
15990
- tx_pointer_block_height: 0,
15991
- tx_pointer_tx_idx: 0,
15992
- owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
15993
- amount: 18446744073709552e3,
15994
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
15995
- },
15996
- {
15997
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000046",
15998
- output_index: 0,
15999
- tx_pointer_block_height: 0,
16000
- tx_pointer_tx_idx: 0,
16001
- owner: "0x6a2c4691c547c43924650dbd30620b184b5fe3fb6dbe5c4446110b08f6f405bf",
16002
- amount: 18446744073709552e3,
16003
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
16004
- },
16005
- {
16006
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000047",
16007
- output_index: 0,
16008
- tx_pointer_block_height: 0,
16009
- tx_pointer_tx_idx: 0,
16010
- owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
16011
- amount: 18446744073709552e3,
16012
- asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
16013
- },
16014
- {
16015
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000048",
16016
- output_index: 0,
16017
- tx_pointer_block_height: 0,
16018
- tx_pointer_tx_idx: 0,
16019
- owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
16020
- amount: 18446744073709552e3,
16021
- asset_id: "0x0101010101010101010101010101010101010101010101010101010101010101"
16022
- },
16023
- {
16024
- tx_id: "0x0000000000000000000000000000000000000000000000000000000000000049",
16025
- output_index: 0,
16026
- tx_pointer_block_height: 0,
16027
- tx_pointer_tx_idx: 0,
16028
- owner: "0x49075a7538e2c88ebe1926ce4d898198a2a4e790d14512943a9864bc536b3c82",
16029
- amount: 18446744073709552e3,
16030
- asset_id: "0x0202020202020202020202020202020202020202020202020202020202020202"
16031
- }
16032
- ],
16033
- messages: [
16034
- {
16035
- sender: "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f",
16036
- recipient: "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba",
16037
- nonce: "0101010101010101010101010101010101010101010101010101010101010101",
16038
- amount: 18446744073709552e3,
16039
- data: "",
16040
- da_height: 0
16041
- },
16042
- {
16043
- sender: "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba",
16044
- recipient: "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f",
16045
- nonce: "0e1ef2963832068b0e1ef2963832068b0e1ef2963832068b0e1ef2963832068b",
16046
- amount: 12704439083013452e3,
16047
- data: "",
16048
- da_height: 0
16049
- },
16050
- {
16051
- sender: "0x22cae5308938e8b4caf217b6464884f6331eff05e81468df8ccd08126effc8d0",
16052
- recipient: "0x8d2af98a4198732a46bf65d87a73427dd7608acaad2414585d8ccdd6f59c437b",
16053
- nonce: "0x381de90750098776c71544527fd253412908dec3d07ce9a7367bd1ba975908a0",
16054
- amount: 18446744073709552e3,
16055
- data: "",
16056
- da_height: 0
16057
- }
16058
- ],
15591
+ coins: [],
15592
+ messages: [],
16059
15593
  contracts: [],
16060
15594
  blobs: [],
16061
15595
  block_height: 0,
@@ -20653,7 +20187,11 @@ If you are attempting to transform a hex value, please make sure it is being pas
20653
20187
  });
20654
20188
  return newArgs;
20655
20189
  };
20656
- function getFinalStateConfigJSON({ stateConfig, chainConfig }) {
20190
+ function getFinalStateConfigJSON({
20191
+ stateConfig,
20192
+ chainConfig,
20193
+ includeInitialState = false
20194
+ }) {
20657
20195
  const defaultCoins = defaultSnapshotConfigs.stateConfig.coins.map((coin) => ({
20658
20196
  ...coin,
20659
20197
  amount: "18446744073709551615"
@@ -20664,6 +20202,26 @@ If you are attempting to transform a hex value, please make sure it is being pas
20664
20202
  }));
20665
20203
  const coins = defaultCoins.concat(stateConfig.coins.map((coin) => ({ ...coin, amount: coin.amount.toString() }))).filter((coin, index, self) => self.findIndex((c) => c.tx_id === coin.tx_id) === index);
20666
20204
  const messages = defaultMessages.concat(stateConfig.messages.map((msg) => ({ ...msg, amount: msg.amount.toString() }))).filter((msg, index, self) => self.findIndex((m) => m.nonce === msg.nonce) === index);
20205
+ if (includeInitialState) {
20206
+ coins.push({
20207
+ tx_id: "0x0000000000000000000000000000000000000000000000000000000000000001",
20208
+ output_index: 0,
20209
+ tx_pointer_block_height: 0,
20210
+ tx_pointer_tx_idx: 0,
20211
+ owner: "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d",
20212
+ amount: "18446744073709551615",
20213
+ asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
20214
+ });
20215
+ coins.push({
20216
+ tx_id: "0x0000000000000000000000000000000000000000000000000000000000000002",
20217
+ output_index: 0,
20218
+ tx_pointer_block_height: 0,
20219
+ tx_pointer_tx_idx: 0,
20220
+ owner: "0x09c0b2d1a486c439a87bcba6b46a7a1a23f3897cc83a94521a96da5c23bc58db",
20221
+ amount: "18446744073709551615",
20222
+ asset_id: "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"
20223
+ });
20224
+ }
20667
20225
  if (!process.env.GENESIS_SECRET) {
20668
20226
  const pk = Signer.generatePrivateKey();
20669
20227
  const signer = new Signer(pk);
@@ -20673,7 +20231,7 @@ If you are attempting to transform a hex value, please make sure it is being pas
20673
20231
  owner: signer.address.toHexString(),
20674
20232
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20675
20233
  amount: "18446744073709551615",
20676
- asset_id: chainConfig.consensus_parameters.V1.base_asset_id,
20234
+ asset_id: chainConfig.consensus_parameters.V2.base_asset_id,
20677
20235
  output_index: 0,
20678
20236
  tx_pointer_block_height: 0,
20679
20237
  tx_pointer_tx_idx: 0
@@ -20694,7 +20252,8 @@ If you are attempting to transform a hex value, please make sure it is being pas
20694
20252
  fuelCorePath = process.env.FUEL_CORE_PATH || void 0,
20695
20253
  loggingEnabled = true,
20696
20254
  basePath,
20697
- snapshotConfig = defaultSnapshotConfigs
20255
+ snapshotConfig = defaultSnapshotConfigs,
20256
+ includeInitialState = false
20698
20257
  } = {}) => (
20699
20258
  // eslint-disable-next-line no-async-promise-executor
20700
20259
  new Promise(async (resolve, reject) => {
@@ -20734,7 +20293,14 @@ If you are attempting to transform a hex value, please make sure it is being pas
20734
20293
  const stateConfigPath = import_path.default.join(tempDir, metadata.table_encoding.Json.filepath);
20735
20294
  const stateTransitionPath = import_path.default.join(tempDir, "state_transition_bytecode.wasm");
20736
20295
  (0, import_fs.writeFileSync)(chainConfigPath, JSON.stringify(snapshotConfig.chainConfig), "utf8");
20737
- (0, import_fs.writeFileSync)(stateConfigPath, getFinalStateConfigJSON(snapshotConfig), "utf8");
20296
+ (0, import_fs.writeFileSync)(
20297
+ stateConfigPath,
20298
+ getFinalStateConfigJSON({
20299
+ ...snapshotConfig,
20300
+ includeInitialState
20301
+ }),
20302
+ "utf8"
20303
+ );
20738
20304
  (0, import_fs.writeFileSync)(metadataPath, JSON.stringify(metadata), "utf8");
20739
20305
  (0, import_fs.writeFileSync)(stateTransitionPath, JSON.stringify(""));
20740
20306
  snapshotDirToUse = tempDir;
@@ -35914,7 +35480,7 @@ Supported fuel-core version: ${supportedVersion}.`
35914
35480
  } = {}) {
35915
35481
  Symbol.dispose ??= Symbol("Symbol.dispose");
35916
35482
  const walletsConfig = new WalletsConfig(
35917
- nodeOptions.snapshotConfig?.chainConfig?.consensus_parameters?.V1?.base_asset_id ?? defaultSnapshotConfigs.chainConfig.consensus_parameters.V1.base_asset_id,
35483
+ nodeOptions.snapshotConfig?.chainConfig?.consensus_parameters?.V2?.base_asset_id ?? defaultSnapshotConfigs.chainConfig.consensus_parameters.V2.base_asset_id,
35918
35484
  {
35919
35485
  ...defaultWalletConfigOptions,
35920
35486
  ...walletsConfigOptions