@shipload/sdk 1.0.0-next.15 → 1.0.0-next.17

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.
Files changed (40) hide show
  1. package/lib/shipload.d.ts +273 -101
  2. package/lib/shipload.js +3419 -2914
  3. package/lib/shipload.js.map +1 -1
  4. package/lib/shipload.m.js +3397 -2902
  5. package/lib/shipload.m.js.map +1 -1
  6. package/lib/testing.d.ts +45 -39
  7. package/lib/testing.js +171 -143
  8. package/lib/testing.js.map +1 -1
  9. package/lib/testing.m.js +171 -143
  10. package/lib/testing.m.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/capabilities/gathering.ts +15 -6
  13. package/src/capabilities/modules.ts +6 -0
  14. package/src/contracts/platform.ts +1 -1
  15. package/src/contracts/server.ts +212 -111
  16. package/src/data/capabilities.ts +6 -1
  17. package/src/data/capability-formulas.ts +7 -1
  18. package/src/data/colors.ts +12 -12
  19. package/src/data/item-ids.ts +13 -12
  20. package/src/data/items.json +7 -0
  21. package/src/data/metadata.ts +36 -23
  22. package/src/data/recipes.json +49 -0
  23. package/src/derivation/capabilities.ts +18 -7
  24. package/src/derivation/capability-mappings.ts +2 -0
  25. package/src/derivation/stratum.ts +5 -9
  26. package/src/index-module.ts +18 -2
  27. package/src/managers/actions.ts +124 -12
  28. package/src/managers/context.ts +9 -0
  29. package/src/managers/index.ts +2 -0
  30. package/src/managers/nft.ts +28 -0
  31. package/src/nft/atomicassets.ts +124 -1
  32. package/src/nft/buildImmutableData.ts +316 -0
  33. package/src/nft/description.ts +1 -3
  34. package/src/nft/index.ts +1 -0
  35. package/src/resolution/describe-module.ts +3 -4
  36. package/src/resolution/resolve-item.ts +0 -1
  37. package/src/scheduling/projection.ts +0 -4
  38. package/src/scheduling/task-cargo.ts +0 -1
  39. package/src/shipload.ts +5 -0
  40. package/src/types.ts +1 -2
package/lib/testing.d.ts CHANGED
@@ -124,13 +124,6 @@ declare namespace Types {
124
124
  speed: UInt16;
125
125
  drain: UInt16;
126
126
  }
127
- class createentity extends Struct {
128
- owner: Name;
129
- entity_type: Name;
130
- entity_name: string;
131
- x: Int64;
132
- y: Int64;
133
- }
134
127
  class demolish extends Struct {
135
128
  entity_id: UInt64;
136
129
  }
@@ -138,6 +131,11 @@ declare namespace Types {
138
131
  id: UInt64;
139
132
  ref: cargo_ref;
140
133
  }
134
+ class deploynft extends Struct {
135
+ owner: Name;
136
+ asset_id: UInt64;
137
+ target_nexus_id: UInt64;
138
+ }
141
139
  class descentity extends Struct {
142
140
  item_id: UInt16;
143
141
  hull_stats: UInt64;
@@ -168,7 +166,6 @@ declare namespace Types {
168
166
  yield: UInt16;
169
167
  drain: UInt16;
170
168
  depth: UInt16;
171
- speed: UInt16;
172
169
  }
173
170
  class hauler_stats extends Struct {
174
171
  capacity: UInt8;
@@ -376,6 +373,38 @@ declare namespace Types {
376
373
  class hash512 extends Struct {
377
374
  value: string;
378
375
  }
376
+ class importcargo extends Struct {
377
+ row: cargo_row;
378
+ }
379
+ class importentity extends Struct {
380
+ row: entity_row;
381
+ }
382
+ class importgroup extends Struct {
383
+ row: entitygroup_row;
384
+ }
385
+ class importplayer extends Struct {
386
+ owner: Name;
387
+ }
388
+ class reserve_row extends Struct {
389
+ id: UInt64;
390
+ coord_id: UInt64;
391
+ stratum: UInt16;
392
+ remaining: UInt32;
393
+ }
394
+ class importreserve extends Struct {
395
+ epoch_scope: UInt32;
396
+ row: reserve_row;
397
+ }
398
+ class state_row extends Struct {
399
+ enabled: boolean;
400
+ epoch: UInt32;
401
+ salt: UInt64;
402
+ seed: Checksum256;
403
+ commit: Checksum256;
404
+ }
405
+ class importstate extends Struct {
406
+ row: state_row;
407
+ }
379
408
  class initialize extends Struct {
380
409
  seed: Checksum256;
381
410
  }
@@ -493,6 +522,7 @@ declare namespace Types {
493
522
  class nft_template_def extends Struct {
494
523
  item_id: UInt16;
495
524
  schema_name: Name;
525
+ template_id: Int32;
496
526
  }
497
527
  class nftconfig_row extends Struct {
498
528
  item_id: UInt16;
@@ -551,12 +581,6 @@ declare namespace Types {
551
581
  class refrshentity extends Struct {
552
582
  entity_id: UInt64;
553
583
  }
554
- class reserve_row extends Struct {
555
- id: UInt64;
556
- coord_id: UInt64;
557
- stratum: UInt16;
558
- remaining: UInt32;
559
- }
560
584
  class resolve extends Struct {
561
585
  id: UInt64;
562
586
  count?: UInt64;
@@ -602,30 +626,6 @@ declare namespace Types {
602
626
  class skipreveal extends Struct {
603
627
  commit: Checksum256;
604
628
  }
605
- class spawncargo extends Struct {
606
- entity_id: UInt64;
607
- item_id: UInt64;
608
- quantity: UInt64;
609
- }
610
- class spawnpacked extends Struct {
611
- entity_id: UInt64;
612
- item_id: UInt16;
613
- hull_stats: UInt64;
614
- installed: packed_module[];
615
- }
616
- class spawnseeded extends Struct {
617
- entity_id: UInt64;
618
- item_id: UInt64;
619
- quantity: UInt64;
620
- stats: UInt64;
621
- }
622
- class state_row extends Struct {
623
- enabled: boolean;
624
- epoch: UInt32;
625
- salt: UInt64;
626
- seed: Checksum256;
627
- commit: Checksum256;
628
- }
629
629
  class stratum_info extends Struct {
630
630
  item_id: UInt16;
631
631
  seed: UInt64;
@@ -666,6 +666,11 @@ declare namespace Types {
666
666
  host_id: UInt64;
667
667
  target_id: UInt64;
668
668
  }
669
+ class unwrapnft extends Struct {
670
+ owner: Name;
671
+ asset_id: UInt64;
672
+ host_id: UInt64;
673
+ }
669
674
  class warp extends Struct {
670
675
  id: UInt64;
671
676
  x: Int64;
@@ -677,7 +682,8 @@ declare namespace Types {
677
682
  owner: Name;
678
683
  entity_id: UInt64;
679
684
  nexus_id: UInt64;
680
- items: cargo_item[];
685
+ cargo_id: UInt64;
686
+ quantity: UInt64;
681
687
  }
682
688
  class wrapentity extends Struct {
683
689
  entity_id: UInt64;