@agoric/inter-protocol 0.13.2-dev-58d36fb.0 → 0.13.2-dev-2e05748.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-58d36fb.0+58d36fb",
3
+ "version": "0.13.2-dev-2e05748.0+2e05748",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -29,16 +29,16 @@
29
29
  },
30
30
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
31
31
  "dependencies": {
32
- "@agoric/assert": "0.5.2-dev-58d36fb.0+58d36fb",
33
- "@agoric/ertp": "0.15.4-dev-58d36fb.0+58d36fb",
34
- "@agoric/governance": "0.9.2-dev-58d36fb.0+58d36fb",
35
- "@agoric/internal": "0.2.2-dev-58d36fb.0+58d36fb",
36
- "@agoric/notifier": "0.5.2-dev-58d36fb.0+58d36fb",
37
- "@agoric/store": "0.8.4-dev-58d36fb.0+58d36fb",
38
- "@agoric/time": "0.2.2-dev-58d36fb.0+58d36fb",
39
- "@agoric/vat-data": "0.4.4-dev-58d36fb.0+58d36fb",
40
- "@agoric/vats": "0.13.1-dev-58d36fb.0+58d36fb",
41
- "@agoric/zoe": "0.25.4-dev-58d36fb.0+58d36fb",
32
+ "@agoric/assert": "0.5.2-dev-2e05748.0+2e05748",
33
+ "@agoric/ertp": "0.15.4-dev-2e05748.0+2e05748",
34
+ "@agoric/governance": "0.9.2-dev-2e05748.0+2e05748",
35
+ "@agoric/internal": "0.2.2-dev-2e05748.0+2e05748",
36
+ "@agoric/notifier": "0.5.2-dev-2e05748.0+2e05748",
37
+ "@agoric/store": "0.8.4-dev-2e05748.0+2e05748",
38
+ "@agoric/time": "0.2.2-dev-2e05748.0+2e05748",
39
+ "@agoric/vat-data": "0.4.4-dev-2e05748.0+2e05748",
40
+ "@agoric/vats": "0.13.1-dev-2e05748.0+2e05748",
41
+ "@agoric/zoe": "0.25.4-dev-2e05748.0+2e05748",
42
42
  "@endo/captp": "^2.0.18",
43
43
  "@endo/eventual-send": "^0.16.8",
44
44
  "@endo/far": "^0.2.14",
@@ -46,10 +46,10 @@
46
46
  "@endo/nat": "^4.1.23"
47
47
  },
48
48
  "devDependencies": {
49
- "@agoric/deploy-script-support": "0.9.5-dev-58d36fb.0+58d36fb",
50
- "@agoric/smart-wallet": "0.4.3-dev-58d36fb.0+58d36fb",
51
- "@agoric/swingset-liveslots": "0.9.1-dev-58d36fb.0+58d36fb",
52
- "@agoric/swingset-vat": "0.30.3-dev-58d36fb.0+58d36fb",
49
+ "@agoric/deploy-script-support": "0.9.5-dev-2e05748.0+2e05748",
50
+ "@agoric/smart-wallet": "0.4.3-dev-2e05748.0+2e05748",
51
+ "@agoric/swingset-liveslots": "0.9.1-dev-2e05748.0+2e05748",
52
+ "@agoric/swingset-vat": "0.30.3-dev-2e05748.0+2e05748",
53
53
  "@endo/bundle-source": "^2.4.2",
54
54
  "@endo/init": "^0.5.52",
55
55
  "@endo/promise-kit": "^0.2.52",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "58d36fb9dfaaad0c0a962ba2940b6fcba2ea8b25"
78
+ "gitHead": "2e05748a0237e6e08fdbdfc2ce25f009a7e45286"
79
79
  }
@@ -36,6 +36,8 @@ const { add, multiply } = natSafeMath;
36
36
 
37
37
  const trace = makeTracer('Auction', false);
38
38
 
39
+ const MINIMUM_BID_CURRENCY = 1n;
40
+
39
41
  /**
40
42
  * @param {NatValue} rate
41
43
  * @param {Brand<'nat'>} currencyBrand
@@ -527,7 +529,9 @@ export const start = async (zcf, privateArgs, baggage) => {
527
529
 
528
530
  const bidProposalShape = M.splitRecord(
529
531
  {
530
- give: { Currency: makeNatAmountShape(brands.Currency) },
532
+ give: {
533
+ Currency: makeNatAmountShape(brands.Currency, MINIMUM_BID_CURRENCY),
534
+ },
531
535
  },
532
536
  {
533
537
  want: M.or({ Collateral: AmountShape }, {}),
@@ -122,5 +122,7 @@ harden(makeMetricsPublishKit);
122
122
 
123
123
  /**
124
124
  * @param {Brand} brand must be a 'nat' brand, not checked
125
+ * @param {NatValue} [min]
125
126
  */
126
- export const makeNatAmountShape = brand => harden({ brand, value: M.nat() });
127
+ export const makeNatAmountShape = (brand, min) =>
128
+ harden({ brand, value: min ? M.gte(min) : M.nat() });