@agoric/inter-protocol 0.13.2-dev-609421b.0 → 0.13.2-dev-2354e8d.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/inter-protocol",
3
- "version": "0.13.2-dev-609421b.0+609421b",
3
+ "version": "0.13.2-dev-2354e8d.0+2354e8d",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,29 +29,29 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.5.2-dev-609421b.0+609421b",
33
- "@agoric/ertp": "0.15.4-dev-609421b.0+609421b",
34
- "@agoric/governance": "0.9.2-dev-609421b.0+609421b",
35
- "@agoric/internal": "0.2.2-dev-609421b.0+609421b",
36
- "@agoric/notifier": "0.5.2-dev-609421b.0+609421b",
37
- "@agoric/store": "0.8.4-dev-609421b.0+609421b",
38
- "@agoric/time": "0.2.2-dev-609421b.0+609421b",
39
- "@agoric/vat-data": "0.4.4-dev-609421b.0+609421b",
40
- "@agoric/vats": "0.13.1-dev-609421b.0+609421b",
41
- "@agoric/zoe": "0.25.4-dev-609421b.0+609421b",
32
+ "@agoric/assert": "0.5.2-dev-2354e8d.0+2354e8d",
33
+ "@agoric/ertp": "0.15.4-dev-2354e8d.0+2354e8d",
34
+ "@agoric/governance": "0.9.2-dev-2354e8d.0+2354e8d",
35
+ "@agoric/internal": "0.2.2-dev-2354e8d.0+2354e8d",
36
+ "@agoric/notifier": "0.5.2-dev-2354e8d.0+2354e8d",
37
+ "@agoric/store": "0.8.4-dev-2354e8d.0+2354e8d",
38
+ "@agoric/time": "0.2.2-dev-2354e8d.0+2354e8d",
39
+ "@agoric/vat-data": "0.4.4-dev-2354e8d.0+2354e8d",
40
+ "@agoric/vats": "0.13.1-dev-2354e8d.0+2354e8d",
41
+ "@agoric/zoe": "0.25.4-dev-2354e8d.0+2354e8d",
42
42
  "@endo/captp": "^3.1.1",
43
43
  "@endo/eventual-send": "^0.17.2",
44
44
  "@endo/far": "^0.2.18",
45
45
  "@endo/marshal": "^0.8.5",
46
46
  "@endo/nat": "^4.1.27",
47
- "agoric": "0.18.3-dev-609421b.0+609421b",
47
+ "agoric": "0.18.3-dev-2354e8d.0+2354e8d",
48
48
  "jessie.js": "^0.3.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@agoric/deploy-script-support": "0.9.5-dev-609421b.0+609421b",
52
- "@agoric/smart-wallet": "0.4.3-dev-609421b.0+609421b",
53
- "@agoric/swingset-liveslots": "0.9.1-dev-609421b.0+609421b",
54
- "@agoric/swingset-vat": "0.30.3-dev-609421b.0+609421b",
51
+ "@agoric/deploy-script-support": "0.9.5-dev-2354e8d.0+2354e8d",
52
+ "@agoric/smart-wallet": "0.4.3-dev-2354e8d.0+2354e8d",
53
+ "@agoric/swingset-liveslots": "0.9.1-dev-2354e8d.0+2354e8d",
54
+ "@agoric/swingset-vat": "0.30.3-dev-2354e8d.0+2354e8d",
55
55
  "@endo/bundle-source": "^2.5.1",
56
56
  "@endo/init": "^0.5.56",
57
57
  "@endo/promise-kit": "^0.2.56",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "609421bdfab1b595633985983ad3cfc748e727ce"
80
+ "gitHead": "2354e8d4e23b6a9cc4be67a41d3c5a5119ef7d51"
81
81
  }
@@ -94,19 +94,19 @@ export const makeAuctioneerParams = ({
94
94
  },
95
95
  [START_FREQUENCY]: {
96
96
  type: ParamTypes.RELATIVE_TIME,
97
- value: TimeMath.toRel(StartFreq, TimerBrand),
97
+ value: TimeMath.coerceRelativeTimeRecord(StartFreq, TimerBrand),
98
98
  },
99
99
  [CLOCK_STEP]: {
100
100
  type: ParamTypes.RELATIVE_TIME,
101
- value: TimeMath.toRel(ClockStep, TimerBrand),
101
+ value: TimeMath.coerceRelativeTimeRecord(ClockStep, TimerBrand),
102
102
  },
103
103
  [AUCTION_START_DELAY]: {
104
104
  type: ParamTypes.RELATIVE_TIME,
105
- value: TimeMath.toRel(AuctionStartDelay, TimerBrand),
105
+ value: TimeMath.coerceRelativeTimeRecord(AuctionStartDelay, TimerBrand),
106
106
  },
107
107
  [PRICE_LOCK_PERIOD]: {
108
108
  type: ParamTypes.RELATIVE_TIME,
109
- value: TimeMath.toRel(PriceLockPeriod, TimerBrand),
109
+ value: TimeMath.coerceRelativeTimeRecord(PriceLockPeriod, TimerBrand),
110
110
  },
111
111
  [STARTING_RATE_BP]: { type: ParamTypes.NAT, value: StartingRate },
112
112
  [LOWEST_RATE_BP]: { type: ParamTypes.NAT, value: LowestRate },
@@ -48,7 +48,7 @@ export const computeRoundTiming = (params, baseTime) => {
48
48
  const targetDuration =
49
49
  TimeMath.compareRel(requestedDuration, freq) < 0
50
50
  ? requestedDuration
51
- : TimeMath.subtractRelRel(freq, TimeMath.toRel(1n));
51
+ : TimeMath.subtractRelRel(freq, 1n);
52
52
  const steps = TimeMath.divideRelRel(targetDuration, clockStep);
53
53
  const duration = TimeMath.multiplyRelNat(clockStep, steps);
54
54
 
@@ -79,7 +79,7 @@ export const makeScheduler = async (
79
79
  now => {
80
80
  const nextSchedule = computeRoundTiming(
81
81
  params,
82
- TimeMath.toAbs(now, timerBrand),
82
+ TimeMath.coerceTimestampRecord(now, timerBrand),
83
83
  );
84
84
  return { now, nextSchedule };
85
85
  },
@@ -147,7 +147,7 @@ export const makeScheduler = async (
147
147
  if (nextLock && TimeMath.compareAbs(now, nextLock) < 0) {
148
148
  const afterNow = TimeMath.addAbsRel(
149
149
  now,
150
- TimeMath.toRel(1n, timerBrand),
150
+ TimeMath.coerceRelativeTimeRecord(1n, timerBrand),
151
151
  );
152
152
  nextSchedule = computeRoundTiming(params, afterNow);
153
153
  }
@@ -223,7 +223,7 @@ export const makeScheduler = async (
223
223
 
224
224
  const after = TimeMath.addAbsRel(
225
225
  liveSchedule.endTime,
226
- TimeMath.toRel(1n, timerBrand),
226
+ TimeMath.coerceRelativeTimeRecord(1n, timerBrand),
227
227
  );
228
228
  nextSchedule = computeRoundTiming(params, after);
229
229
 
@@ -338,7 +338,7 @@ export const prepareRoundsManagerKit = baggage =>
338
338
  // TODO Better would be to make `roundTimeout` a `RelativeTime`
339
339
  // everywhere, and to rename it to a name that does not
340
340
  // mistakenly imply that it is an absolute time.
341
- const roundTimeoutDuration = TimeMath.toRel(roundTimeout);
341
+ const roundTimeoutDuration = TimeMath.relValue(BigInt(roundTimeout));
342
342
  const roundTimedOut =
343
343
  TimeMath.absValue(startedAt) > 0n &&
344
344
  TimeMath.relValue(roundTimeoutDuration) > 0n &&
@@ -57,7 +57,7 @@ const scheduleLiquidationWakeups = async (
57
57
  nominalStart,
58
58
  priceLockPeriod,
59
59
  );
60
- const afterStart = TimeMath.addAbsRel(startTime, TimeMath.toRel(1n));
60
+ const afterStart = TimeMath.addAbsRel(startTime, 1n);
61
61
  const a = t => TimeMath.absValue(t);
62
62
  trace('scheduling ', a(priceLockWakeTime), a(nominalStart), a(startTime));
63
63
  void E(timer).setWakeup(priceLockWakeTime, priceLockWaker);