@shipload/sdk 1.0.0-next.19 → 1.0.0-next.20

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.
package/lib/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Struct, UInt16, UInt64, UInt8, Int64, Checksum256, UInt32, Name, TimePoint, BlockTimestamp, Bytes, Int32, Int64Type } from '@wharfkit/antelope';
1
+ import { Struct, UInt16, UInt64, UInt8, Int64, Name, UInt32, TimePoint, Checksum256, BlockTimestamp, Bytes, Int32, 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;
@@ -16,6 +16,7 @@ declare namespace Types {
16
16
  item_id: UInt16;
17
17
  stats: UInt64;
18
18
  modules: module_entry[];
19
+ entity_id?: UInt64;
19
20
  }
20
21
  class addmodule extends Struct {
21
22
  entity_id: UInt64;
@@ -28,22 +29,22 @@ declare namespace Types {
28
29
  x: Int64;
29
30
  y: Int64;
30
31
  }
31
- class advance extends Struct {
32
- reveal: string;
33
- commit: Checksum256;
32
+ class addoracle extends Struct {
33
+ oracle_id: Name;
34
34
  }
35
35
  class cargo_item extends Struct {
36
36
  item_id: UInt16;
37
37
  stats: UInt64;
38
38
  modules: module_entry[];
39
39
  quantity: UInt32;
40
+ entity_id?: UInt64;
40
41
  }
41
42
  class blend extends Struct {
42
43
  id: UInt64;
43
44
  inputs: cargo_item[];
44
45
  }
45
46
  class buildplot extends Struct {
46
- id: UInt64;
47
+ builder_id: UInt64;
47
48
  plot_id: UInt64;
48
49
  }
49
50
  class cancel extends Struct {
@@ -69,6 +70,7 @@ declare namespace Types {
69
70
  quantity: UInt64;
70
71
  stats: UInt64;
71
72
  modules: module_entry[];
73
+ sequence_id?: UInt64;
72
74
  }
73
75
  class cargo_view extends Struct {
74
76
  item_id: UInt16;
@@ -76,6 +78,7 @@ declare namespace Types {
76
78
  modules: module_entry[];
77
79
  quantity: UInt32;
78
80
  id: UInt64;
81
+ entity_id?: UInt64;
79
82
  }
80
83
  class coordinates extends Struct {
81
84
  x: Int64;
@@ -83,15 +86,10 @@ declare namespace Types {
83
86
  z?: UInt16;
84
87
  }
85
88
  class claimplot extends Struct {
86
- id: UInt64;
89
+ builder_id: UInt64;
87
90
  target_item_id: UInt16;
88
91
  coords: coordinates;
89
92
  }
90
- class claimstarter extends Struct {
91
- account: Name;
92
- x: Int64;
93
- y: Int64;
94
- }
95
93
  class cleanrsvp extends Struct {
96
94
  epoch: UInt64;
97
95
  max_rows: UInt64;
@@ -102,6 +100,14 @@ declare namespace Types {
102
100
  max_rows?: UInt64;
103
101
  }
104
102
  class commit extends Struct {
103
+ oracle_id: Name;
104
+ epoch: UInt64;
105
+ commit: Checksum256;
106
+ }
107
+ class commit_row extends Struct {
108
+ id: UInt64;
109
+ epoch: UInt64;
110
+ oracle_id: Name;
105
111
  commit: Checksum256;
106
112
  }
107
113
  class entity_defaults extends Struct {
@@ -140,11 +146,6 @@ declare namespace Types {
140
146
  id: UInt64;
141
147
  ref: cargo_ref;
142
148
  }
143
- class deploynft extends Struct {
144
- owner: Name;
145
- asset_id: UInt64;
146
- target_nexus_id: UInt64;
147
- }
148
149
  class descentity extends Struct {
149
150
  item_id: UInt16;
150
151
  hull_stats: UInt64;
@@ -162,28 +163,28 @@ declare namespace Types {
162
163
  coordinates: coordinates;
163
164
  energy: UInt16;
164
165
  }
165
- class loader_stats extends Struct {
166
- mass: UInt32;
167
- thrust: UInt16;
168
- quantity: UInt8;
169
- }
170
166
  class movement_stats extends Struct {
171
167
  thrust: UInt32;
172
168
  drain: UInt16;
173
169
  }
170
+ class warp_stats extends Struct {
171
+ range: UInt32;
172
+ }
174
173
  class gatherer_stats extends Struct {
175
174
  yield: UInt16;
176
175
  drain: UInt16;
177
176
  depth: UInt16;
178
177
  }
178
+ class loader_stats extends Struct {
179
+ mass: UInt32;
180
+ thrust: UInt16;
181
+ quantity: UInt8;
182
+ }
179
183
  class hauler_stats extends Struct {
180
184
  capacity: UInt8;
181
185
  efficiency: UInt16;
182
186
  drain: UInt16;
183
187
  }
184
- class warp_stats extends Struct {
185
- range: UInt32;
186
- }
187
188
  class task extends Struct {
188
189
  type: UInt8;
189
190
  duration: UInt32;
@@ -207,16 +208,16 @@ declare namespace Types {
207
208
  item_id: UInt16;
208
209
  cargomass: UInt32;
209
210
  cargo: cargo_view[];
210
- loaders?: loader_stats;
211
211
  modules: module_entry[];
212
212
  energy?: UInt16;
213
213
  hullmass?: UInt32;
214
+ capacity?: UInt32;
214
215
  engines?: movement_stats;
216
+ warp?: warp_stats;
215
217
  generator?: energy_stats;
216
- capacity?: UInt32;
217
218
  gatherer?: gatherer_stats;
219
+ loaders?: loader_stats;
218
220
  hauler?: hauler_stats;
219
- warp?: warp_stats;
220
221
  crafter?: crafter_stats;
221
222
  is_idle: boolean;
222
223
  current_task?: task;
@@ -241,23 +242,17 @@ declare namespace Types {
241
242
  id: UInt64;
242
243
  owner: Name;
243
244
  kind: Name;
245
+ item_id: UInt16;
244
246
  name: string;
245
247
  stats: UInt64;
246
248
  coordinates: coordinates;
247
- hullmass?: UInt32;
248
- capacity?: UInt32;
249
249
  energy?: UInt16;
250
250
  cargomass: UInt32;
251
- engines?: movement_stats;
252
- generator?: energy_stats;
253
- loaders?: loader_stats;
254
- gatherer?: gatherer_stats;
255
- warp?: warp_stats;
256
- crafter?: crafter_stats;
257
- hauler?: hauler_stats;
258
251
  modules: module_entry[];
259
252
  schedule?: schedule;
260
- item_id: UInt16;
253
+ }
254
+ class entity_seq_row extends Struct {
255
+ next_id: UInt64;
261
256
  }
262
257
  class entity_summary extends Struct {
263
258
  type: Name;
@@ -286,9 +281,18 @@ declare namespace Types {
286
281
  class enum_result extends Struct {
287
282
  members: enum_member[];
288
283
  }
284
+ class epoch_row extends Struct {
285
+ epoch: UInt64;
286
+ oracle_ids: Name[];
287
+ threshold: UInt8;
288
+ seed: Checksum256;
289
+ }
289
290
  class fixcargomass extends Struct {
290
291
  entity_id: UInt64;
291
292
  }
293
+ class forcereveal extends Struct {
294
+ epoch: UInt64;
295
+ }
292
296
  class gather extends Struct {
293
297
  source_id: UInt64;
294
298
  destination_id: UInt64;
@@ -297,6 +301,10 @@ declare namespace Types {
297
301
  }
298
302
  class getconfig extends Struct {
299
303
  }
304
+ class getdeposit extends Struct {
305
+ owner: Name;
306
+ asset_id: UInt64;
307
+ }
300
308
  class geteligible extends Struct {
301
309
  coords: coordinates;
302
310
  stratum: UInt16;
@@ -316,6 +324,9 @@ declare namespace Types {
316
324
  }
317
325
  class getitems extends Struct {
318
326
  }
327
+ class getitemtype extends Struct {
328
+ item_id: UInt16;
329
+ }
319
330
  class getitemtypes extends Struct {
320
331
  }
321
332
  class getkindmeta extends Struct {
@@ -336,6 +347,8 @@ declare namespace Types {
336
347
  entity_id: UInt64;
337
348
  recharge: boolean;
338
349
  }
350
+ class getnftbase extends Struct {
351
+ }
339
352
  class getnftinfo extends Struct {
340
353
  }
341
354
  class getplayer extends Struct {
@@ -409,16 +422,11 @@ declare namespace Types {
409
422
  class state_row extends Struct {
410
423
  enabled: boolean;
411
424
  epoch: UInt32;
412
- salt: UInt64;
413
425
  seed: Checksum256;
414
- commit: Checksum256;
415
426
  }
416
427
  class importstate extends Struct {
417
428
  row: state_row;
418
429
  }
419
- class initialize extends Struct {
420
- seed: Checksum256;
421
- }
422
430
  class item_id_pair extends Struct {
423
431
  id: UInt16;
424
432
  name: string;
@@ -428,8 +436,6 @@ declare namespace Types {
428
436
  }
429
437
  class recipe_input extends Struct {
430
438
  item_id: UInt16;
431
- category: UInt8;
432
- tier: UInt8;
433
439
  quantity: UInt32;
434
440
  }
435
441
  class stat_source extends Struct {
@@ -518,8 +524,14 @@ declare namespace Types {
518
524
  max_energy: UInt16;
519
525
  systems: nearby_system[];
520
526
  }
527
+ class nft_cargo_item extends Struct {
528
+ item_id: UInt16;
529
+ stats: UInt64;
530
+ modules: module_entry[];
531
+ quantity: UInt32;
532
+ }
521
533
  class nft_item_payload extends Struct {
522
- item: cargo_item;
534
+ item: nft_cargo_item;
523
535
  location?: coordinates;
524
536
  }
525
537
  class schema_field extends Struct {
@@ -562,6 +574,22 @@ declare namespace Types {
562
574
  class notify extends Struct {
563
575
  event: task_event;
564
576
  }
577
+ class oracle_config_row extends Struct {
578
+ threshold: UInt8;
579
+ }
580
+ class oracle_row extends Struct {
581
+ id: Name;
582
+ }
583
+ class placecargo extends Struct {
584
+ owner: Name;
585
+ host_id: UInt64;
586
+ asset_id: UInt64;
587
+ }
588
+ class placeentity extends Struct {
589
+ owner: Name;
590
+ asset_id: UInt64;
591
+ target_nexus_id: UInt64;
592
+ }
565
593
  class player_info extends Struct {
566
594
  owner: Name;
567
595
  is_player: boolean;
@@ -577,13 +605,13 @@ declare namespace Types {
577
605
  cargomass: UInt32;
578
606
  cargo: cargo_view[];
579
607
  hullmass?: UInt32;
608
+ capacity?: UInt32;
580
609
  engines?: movement_stats;
581
- loaders?: loader_stats;
610
+ warp?: warp_stats;
582
611
  generator?: energy_stats;
583
- capacity?: UInt32;
584
612
  gatherer?: gatherer_stats;
613
+ loaders?: loader_stats;
585
614
  hauler?: hauler_stats;
586
- warp?: warp_stats;
587
615
  crafter?: crafter_stats;
588
616
  }
589
617
  class recharge extends Struct {
@@ -592,6 +620,9 @@ declare namespace Types {
592
620
  class refrshentity extends Struct {
593
621
  entity_id: UInt64;
594
622
  }
623
+ class removeoracle extends Struct {
624
+ oracle_id: Name;
625
+ }
595
626
  class resolve extends Struct {
596
627
  id: UInt64;
597
628
  count?: UInt64;
@@ -618,6 +649,17 @@ declare namespace Types {
618
649
  class resources_result extends Struct {
619
650
  resources: resource_info[];
620
651
  }
652
+ class reveal extends Struct {
653
+ oracle_id: Name;
654
+ epoch: UInt64;
655
+ reveal: Checksum256;
656
+ }
657
+ class reveal_row extends Struct {
658
+ id: UInt64;
659
+ epoch: UInt64;
660
+ oracle_id: Name;
661
+ reveal: Checksum256;
662
+ }
621
663
  class rmmodule extends Struct {
622
664
  entity_id: UInt64;
623
665
  module_index: UInt8;
@@ -626,16 +668,34 @@ declare namespace Types {
626
668
  class rmnftcfg extends Struct {
627
669
  item_id: UInt16;
628
670
  }
629
- class salt extends Struct {
630
- salt: UInt64;
631
- }
632
671
  class setnftcfg extends Struct {
633
672
  item_id: UInt16;
634
673
  template_id: Int32;
635
674
  schema_name: Name;
636
675
  }
637
- class skipreveal extends Struct {
638
- commit: Checksum256;
676
+ class setthreshold extends Struct {
677
+ threshold: UInt8;
678
+ }
679
+ class setwrapcost extends Struct {
680
+ item_type: UInt8;
681
+ tier: UInt8;
682
+ amount: UInt64;
683
+ }
684
+ class setwrapfee extends Struct {
685
+ fee_pct: UInt16;
686
+ fee_account: Name;
687
+ }
688
+ class stowcargo extends Struct {
689
+ owner: Name;
690
+ entity_id: UInt64;
691
+ nexus_id: UInt64;
692
+ cargo_id: UInt64;
693
+ quantity: UInt64;
694
+ }
695
+ class stowentity extends Struct {
696
+ owner: Name;
697
+ entity_id: UInt64;
698
+ nexus_id: UInt64;
639
699
  }
640
700
  class stratum_info extends Struct {
641
701
  item_id: UInt16;
@@ -678,11 +738,6 @@ declare namespace Types {
678
738
  host_id: UInt64;
679
739
  target_id: UInt64;
680
740
  }
681
- class unwrapnft extends Struct {
682
- owner: Name;
683
- asset_id: UInt64;
684
- host_id: UInt64;
685
- }
686
741
  class warp extends Struct {
687
742
  id: UInt64;
688
743
  x: Int64;
@@ -690,16 +745,14 @@ declare namespace Types {
690
745
  }
691
746
  class wipe extends Struct {
692
747
  }
693
- class wrap extends Struct {
694
- owner: Name;
695
- entity_id: UInt64;
696
- nexus_id: UInt64;
697
- cargo_id: UInt64;
698
- quantity: UInt64;
748
+ class wrapconfig_row extends Struct {
749
+ fee_pct: UInt16;
750
+ fee_account: Name;
699
751
  }
700
- class wrapentity extends Struct {
701
- entity_id: UInt64;
702
- nexus_id: UInt64;
752
+ class wrapcost_row extends Struct {
753
+ item_type: UInt8;
754
+ tier: UInt8;
755
+ amount: UInt64;
703
756
  }
704
757
  }
705
758