@dmarket/p2p-tracker-headless 1.3.1-SNAPSHOT-development.254 → 1.3.1-SNAPSHOT-development.265

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.
@@ -291,8 +291,8 @@ initMetadataForCompanion(Companion_6);
291
291
  initMetadataForClass(GameRegistry, 'GameRegistry');
292
292
  initMetadataForClass(DealWriteClaim, 'DealWriteClaim');
293
293
  initMetadataForClass(ClaimPhase, 'ClaimPhase', VOID, Enum);
294
- initMetadataForClass(DealWriteKey, 'DealWriteKey');
295
294
  initMetadataForClass(UnansweredCreate, 'UnansweredCreate');
295
+ initMetadataForClass(DealWriteKey, 'DealWriteKey');
296
296
  initMetadataForClass(RuntimeSurface, 'RuntimeSurface', VOID, Enum);
297
297
  initMetadataForClass(TrackerMode, 'TrackerMode', VOID, Enum);
298
298
  initMetadataForCompanion(Companion_7);
@@ -4718,8 +4718,8 @@ function isCorroborated($this, intent, now, accepted, ttlMs) {
4718
4718
  }
4719
4719
  function ProofMintPolicy() {
4720
4720
  }
4721
- protoOf(ProofMintPolicy).k5x = function (intent, now, refused, accepted, acceptedTtlMs, proverAvailable, proverParkedUntil, mintedThisCycle, cycleDeadline, networkDeferred, wakeBudget) {
4722
- return refused.k1(intent) ? new Skip(ProofSkipReason_ALREADY_REFUSED_getInstance()) : isCorroborated(this, intent, now, accepted, acceptedTtlMs) ? new Skip(ProofSkipReason_ALREADY_ACCEPTED_getInstance()) : spendingGates(this, now, proverAvailable, proverParkedUntil, mintedThisCycle, cycleDeadline, networkDeferred, wakeBudget);
4721
+ protoOf(ProofMintPolicy).k5x = function (intent, now, refused, accepted, acceptedTtlMs, proverAvailable, proverParkedUntil, mintedThisCycle, cycleDeadline, networkDeferred, wakeBudget, role) {
4722
+ return refused.k1(intent) ? new Skip(ProofSkipReason_ALREADY_REFUSED_getInstance()) : isCorroborated(this, intent, now, accepted, acceptedTtlMs) ? new Skip(ProofSkipReason_ALREADY_ACCEPTED_getInstance()) : role.equals(DealRole_BUYER_getInstance()) ? new Skip(ProofSkipReason_SELLER_PROVES_getInstance()) : spendingGates(this, now, proverAvailable, proverParkedUntil, mintedThisCycle, cycleDeadline, networkDeferred, wakeBudget);
4723
4723
  };
4724
4724
  protoOf(ProofMintPolicy).l5x = function (progress, now, proverAvailable, proverParkedUntil, mintedThisCycle, cycleDeadline, networkDeferred, wakeBudget) {
4725
4725
  var retryAt = progress == null ? null : progress.s5w_1;
@@ -4740,6 +4740,7 @@ var ProofSkipReason_NETWORK_DEFERRED_instance;
4740
4740
  var ProofSkipReason_WAKE_BUDGET_instance;
4741
4741
  var ProofSkipReason_PROVER_PARKED_instance;
4742
4742
  var ProofSkipReason_BUDGET_SPENT_instance;
4743
+ var ProofSkipReason_SELLER_PROVES_instance;
4743
4744
  var ProofSkipReason_entriesInitialized;
4744
4745
  function ProofSkipReason_initEntries() {
4745
4746
  if (ProofSkipReason_entriesInitialized)
@@ -4753,6 +4754,7 @@ function ProofSkipReason_initEntries() {
4753
4754
  ProofSkipReason_WAKE_BUDGET_instance = new ProofSkipReason('WAKE_BUDGET', 5, 'the wake has no time for a proof');
4754
4755
  ProofSkipReason_PROVER_PARKED_instance = new ProofSkipReason('PROVER_PARKED', 6, 'the prover is parked after repeated proof failures');
4755
4756
  ProofSkipReason_BUDGET_SPENT_instance = new ProofSkipReason('BUDGET_SPENT', 7, "this cycle's proving budget is spent; the next heartbeat is due");
4757
+ ProofSkipReason_SELLER_PROVES_instance = new ProofSkipReason('SELLER_PROVES', 8, "the seller's tracker proves this transition; this device is the buyer");
4756
4758
  }
4757
4759
  function ProofSkipReason(name, ordinal, message) {
4758
4760
  Enum.call(this, name, ordinal);
@@ -4762,7 +4764,7 @@ protoOf(ProofSkipReason).p5x = function () {
4762
4764
  return this.equals(ProofSkipReason_ALREADY_ACCEPTED_getInstance());
4763
4765
  };
4764
4766
  protoOf(ProofSkipReason).q5x = function () {
4765
- return this.equals(ProofSkipReason_NO_PROVER_getInstance()) || this.equals(ProofSkipReason_PROVER_PARKED_getInstance()) || this.equals(ProofSkipReason_BUDGET_SPENT_getInstance());
4767
+ return this.equals(ProofSkipReason_NO_PROVER_getInstance()) || this.equals(ProofSkipReason_PROVER_PARKED_getInstance()) || this.equals(ProofSkipReason_BUDGET_SPENT_getInstance()) || this.equals(ProofSkipReason_SELLER_PROVES_getInstance());
4766
4768
  };
4767
4769
  function ProofSkipReason_ALREADY_REFUSED_getInstance() {
4768
4770
  ProofSkipReason_initEntries();
@@ -4796,6 +4798,10 @@ function ProofSkipReason_BUDGET_SPENT_getInstance() {
4796
4798
  ProofSkipReason_initEntries();
4797
4799
  return ProofSkipReason_BUDGET_SPENT_instance;
4798
4800
  }
4801
+ function ProofSkipReason_SELLER_PROVES_getInstance() {
4802
+ ProofSkipReason_initEntries();
4803
+ return ProofSkipReason_SELLER_PROVES_instance;
4804
+ }
4799
4805
  function ReportAck(report, accepted, reason) {
4800
4806
  reason = reason === VOID ? null : reason;
4801
4807
  this.r5x_1 = report;
@@ -5876,29 +5882,6 @@ var $ENTRIES_0;
5876
5882
  function ClaimPhase(name, ordinal) {
5877
5883
  Enum.call(this, name, ordinal);
5878
5884
  }
5879
- function DealWriteKey(dealId, action) {
5880
- this.o60_1 = dealId;
5881
- this.p60_1 = action;
5882
- }
5883
- protoOf(DealWriteKey).toString = function () {
5884
- return 'DealWriteKey(dealId=' + DealId__toString_impl_lkk0gq(this.o60_1) + ', action=' + this.p60_1.toString() + ')';
5885
- };
5886
- protoOf(DealWriteKey).hashCode = function () {
5887
- var result = DealId__hashCode_impl_6lwc5(this.o60_1);
5888
- result = imul(result, 31) + this.p60_1.hashCode() | 0;
5889
- return result;
5890
- };
5891
- protoOf(DealWriteKey).equals = function (other) {
5892
- if (this === other)
5893
- return true;
5894
- if (!(other instanceof DealWriteKey))
5895
- return false;
5896
- if (!(this.o60_1 === other.o60_1))
5897
- return false;
5898
- if (!this.p60_1.equals(other.p60_1))
5899
- return false;
5900
- return true;
5901
- };
5902
5885
  function UnansweredCreate(partner, assetIds, deadline) {
5903
5886
  deadline = deadline === VOID ? null : deadline;
5904
5887
  this.t5z_1 = partner;
@@ -5927,6 +5910,29 @@ protoOf(UnansweredCreate).equals = function (other) {
5927
5910
  return false;
5928
5911
  return true;
5929
5912
  };
5913
+ function DealWriteKey(dealId, action) {
5914
+ this.o60_1 = dealId;
5915
+ this.p60_1 = action;
5916
+ }
5917
+ protoOf(DealWriteKey).toString = function () {
5918
+ return 'DealWriteKey(dealId=' + DealId__toString_impl_lkk0gq(this.o60_1) + ', action=' + this.p60_1.toString() + ')';
5919
+ };
5920
+ protoOf(DealWriteKey).hashCode = function () {
5921
+ var result = DealId__hashCode_impl_6lwc5(this.o60_1);
5922
+ result = imul(result, 31) + this.p60_1.hashCode() | 0;
5923
+ return result;
5924
+ };
5925
+ protoOf(DealWriteKey).equals = function (other) {
5926
+ if (this === other)
5927
+ return true;
5928
+ if (!(other instanceof DealWriteKey))
5929
+ return false;
5930
+ if (!(this.o60_1 === other.o60_1))
5931
+ return false;
5932
+ if (!this.p60_1.equals(other.p60_1))
5933
+ return false;
5934
+ return true;
5935
+ };
5930
5936
  function ClaimPhase_IN_FLIGHT_getInstance() {
5931
5937
  ClaimPhase_initEntries();
5932
5938
  return ClaimPhase_IN_FLIGHT_instance;
@@ -9076,21 +9082,6 @@ protoOf(HeartbeatRequest).equals = function (other) {
9076
9082
  return false;
9077
9083
  return true;
9078
9084
  };
9079
- function watches(_this__u8e3s4, source) {
9080
- var tmp;
9081
- switch (source.a1_1) {
9082
- case 0:
9083
- tmp = _this__u8e3s4.o5r_1.k1(WatchTarget_GET_TRADE_OFFER_getInstance());
9084
- break;
9085
- case 1:
9086
- tmp = _this__u8e3s4.o5r_1.k1(WatchTarget_GET_TRADE_HISTORY_getInstance()) || _this__u8e3s4.o5r_1.k1(WatchTarget_GET_TRADE_STATUS_getInstance());
9087
- break;
9088
- default:
9089
- noWhenBranchMatchedException();
9090
- break;
9091
- }
9092
- return tmp;
9093
- }
9094
9085
  var DealRole_SELLER_instance;
9095
9086
  var DealRole_BUYER_instance;
9096
9087
  var DealRole_UNKNOWN_instance;
@@ -9157,6 +9148,21 @@ function DealRole(name, ordinal, wireName) {
9157
9148
  Enum.call(this, name, ordinal);
9158
9149
  this.n69_1 = wireName;
9159
9150
  }
9151
+ function watches(_this__u8e3s4, source) {
9152
+ var tmp;
9153
+ switch (source.a1_1) {
9154
+ case 0:
9155
+ tmp = _this__u8e3s4.o5r_1.k1(WatchTarget_GET_TRADE_OFFER_getInstance());
9156
+ break;
9157
+ case 1:
9158
+ tmp = _this__u8e3s4.o5r_1.k1(WatchTarget_GET_TRADE_HISTORY_getInstance()) || _this__u8e3s4.o5r_1.k1(WatchTarget_GET_TRADE_STATUS_getInstance());
9159
+ break;
9160
+ default:
9161
+ noWhenBranchMatchedException();
9162
+ break;
9163
+ }
9164
+ return tmp;
9165
+ }
9160
9166
  function mayProveOn(_this__u8e3s4, source) {
9161
9167
  var tmp;
9162
9168
  var tmp0 = _this__u8e3s4.o5r_1;