@shipload/sdk 1.0.0-next.74 → 1.0.0-next.76

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 (56) hide show
  1. package/lib/scan.js +1 -1
  2. package/lib/scan.js.map +1 -1
  3. package/lib/scan.m.js +1 -1
  4. package/lib/scan.m.js.map +1 -1
  5. package/lib/shipload.d.ts +81 -35
  6. package/lib/shipload.js +13576 -11311
  7. package/lib/shipload.js.map +1 -1
  8. package/lib/shipload.m.js +13554 -11311
  9. package/lib/shipload.m.js.map +1 -1
  10. package/lib/testing.d.ts +20 -16
  11. package/lib/testing.js +229 -53
  12. package/lib/testing.js.map +1 -1
  13. package/lib/testing.m.js +229 -53
  14. package/lib/testing.m.js.map +1 -1
  15. package/package.json +6 -6
  16. package/src/capabilities/storage.ts +45 -10
  17. package/src/contracts/server.ts +49 -41
  18. package/src/data/component-process.test.ts +119 -0
  19. package/src/data/component-process.ts +33 -0
  20. package/src/data/entities.json +367 -2
  21. package/src/data/item-ids.ts +15 -0
  22. package/src/data/items.json +90 -0
  23. package/src/data/kind-registry.json +97 -7
  24. package/src/data/metadata.ts +83 -5
  25. package/src/data/recipes-runtime.ts +1 -1
  26. package/src/data/recipes.json +1476 -10
  27. package/src/data/task-types.json +9 -0
  28. package/src/derivation/capabilities.test.ts +25 -2
  29. package/src/derivation/capabilities.ts +16 -3
  30. package/src/derivation/capacity-fn-registry.ts +8 -1
  31. package/src/derivation/reserve-regen.ts +5 -9
  32. package/src/derivation/stratum.ts +1 -1
  33. package/src/derivation/tiers.ts +1 -1
  34. package/src/derivation/upgrades.ts +5 -4
  35. package/src/index-module.ts +10 -1
  36. package/src/influence/influence.test.ts +1 -1
  37. package/src/managers/actions.ts +12 -19
  38. package/src/managers/entities.test.ts +23 -0
  39. package/src/managers/entities.ts +8 -1
  40. package/src/managers/shuttle.test.ts +67 -0
  41. package/src/managers/shuttle.ts +17 -0
  42. package/src/nft/description.ts +6 -0
  43. package/src/resolution/resolve-item.test.ts +6 -6
  44. package/src/resolution/resolve-item.ts +4 -0
  45. package/src/scan/scan-wasm.base64.ts +1 -1
  46. package/src/scheduling/availability.test.ts +3 -3
  47. package/src/scheduling/availability.ts +3 -4
  48. package/src/scheduling/lanes.ts +1 -1
  49. package/src/scheduling/projection.ts +15 -13
  50. package/src/scheduling/schedule.test.ts +24 -0
  51. package/src/scheduling/schedule.ts +11 -4
  52. package/src/scheduling/task-effects.ts +3 -1
  53. package/src/scheduling/unwrap.test.ts +25 -6
  54. package/src/scheduling/unwrap.ts +19 -3
  55. package/src/travel/travel.ts +4 -0
  56. package/src/types.ts +2 -0
package/lib/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Struct, UInt64, UInt16, UInt8, UInt32, Name, Int64, TimePoint, Int8, Checksum256, Bytes, Int32, BlockTimestamp, Int64Type } from '@wharfkit/antelope';
1
+ import { Struct, UInt64, UInt16, UInt8, Int64, Name, TimePoint, UInt32, Int8, Checksum256, Bytes, Int32, BlockTimestamp, Int64Type } from '@wharfkit/antelope';
2
2
 
3
3
  declare const CATALOG_FILES_REL: readonly ["items.json", "recipes.json", "entities.json", "kind-registry.json", "item-ids.ts"];
4
4
  declare function computeCatalogHash(filePaths: ReadonlyArray<string>): string;
@@ -15,20 +15,6 @@ declare namespace Types {
15
15
  type: UInt8;
16
16
  installed?: packed_module;
17
17
  }
18
- class cargo_item extends Struct {
19
- item_id: UInt16;
20
- stats: UInt64;
21
- modules: module_entry[];
22
- quantity: UInt32;
23
- entity_id?: UInt64;
24
- }
25
- class addcontrib extends Struct {
26
- player: Name;
27
- entity_id: UInt64;
28
- x: Int64;
29
- y: Int64;
30
- bundle: cargo_item[];
31
- }
32
18
  class cargo_ref extends Struct {
33
19
  item_id: UInt16;
34
20
  stats: UInt64;
@@ -60,6 +46,13 @@ declare namespace Types {
60
46
  y: Int64;
61
47
  z?: UInt16;
62
48
  }
49
+ class cargo_item extends Struct {
50
+ item_id: UInt16;
51
+ stats: UInt64;
52
+ modules: module_entry[];
53
+ quantity: UInt32;
54
+ entity_id?: UInt64;
55
+ }
63
56
  class entity_ref extends Struct {
64
57
  entity_type: Name;
65
58
  entity_id: UInt64;
@@ -346,7 +339,9 @@ declare namespace Types {
346
339
  max_rows?: UInt64;
347
340
  }
348
341
  class closeepoch extends Struct {
342
+ oracle_id: Name;
349
343
  epoch: UInt64;
344
+ entropy: Checksum256;
350
345
  }
351
346
  class cluster_cell extends Struct {
352
347
  gx: Int8;
@@ -399,6 +394,13 @@ declare namespace Types {
399
394
  class configlog extends Struct {
400
395
  config: game_config;
401
396
  }
397
+ class contribute extends Struct {
398
+ player: Name;
399
+ entity_id: UInt64;
400
+ x: Int64;
401
+ y: Int64;
402
+ bundle: cargo_item[];
403
+ }
402
404
  class craft extends Struct {
403
405
  id: UInt64;
404
406
  recipe_id: UInt16;
@@ -1120,7 +1122,7 @@ declare namespace Types {
1120
1122
  blend_weights: Bytes;
1121
1123
  output_item: recipe_item_info;
1122
1124
  input_items: recipe_item_info[];
1123
- source_subclass?: UInt16;
1125
+ source_subclasses: UInt16[];
1124
1126
  }
1125
1127
  class recipes_result extends Struct {
1126
1128
  recipes: recipe_response[];
@@ -1501,6 +1503,7 @@ declare namespace Types {
1501
1503
  need?: UInt64;
1502
1504
  cap?: UInt64;
1503
1505
  task_type?: UInt8;
1506
+ missing: cargo_item[];
1504
1507
  }
1505
1508
  class shuttle_option extends Struct {
1506
1509
  shuttled_by?: UInt64;
@@ -1777,6 +1780,7 @@ interface CargoStack {
1777
1780
  quantity: UInt32;
1778
1781
  stats: UInt64;
1779
1782
  modules: Types.module_entry[];
1783
+ entity_id?: UInt64;
1780
1784
  }
1781
1785
 
1782
1786
  interface ProjectedEntity {