@agoric/governance 0.10.4-dev-9883fcf.0 → 0.10.4-dev-c4690ab.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/governance",
3
- "version": "0.10.4-dev-9883fcf.0+9883fcf",
3
+ "version": "0.10.4-dev-c4690ab.0+c4690ab",
4
4
  "description": "Core governance support",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/ertp": "0.16.3-dev-9883fcf.0+9883fcf",
35
- "@agoric/internal": "0.3.3-dev-9883fcf.0+9883fcf",
36
- "@agoric/notifier": "0.6.3-dev-9883fcf.0+9883fcf",
37
- "@agoric/store": "0.9.3-dev-9883fcf.0+9883fcf",
38
- "@agoric/time": "0.3.3-dev-9883fcf.0+9883fcf",
39
- "@agoric/vat-data": "0.5.3-dev-9883fcf.0+9883fcf",
40
- "@agoric/zoe": "0.26.3-dev-9883fcf.0+9883fcf",
34
+ "@agoric/ertp": "0.16.3-dev-c4690ab.0+c4690ab",
35
+ "@agoric/internal": "0.3.3-dev-c4690ab.0+c4690ab",
36
+ "@agoric/notifier": "0.6.3-dev-c4690ab.0+c4690ab",
37
+ "@agoric/store": "0.9.3-dev-c4690ab.0+c4690ab",
38
+ "@agoric/time": "0.3.3-dev-c4690ab.0+c4690ab",
39
+ "@agoric/vat-data": "0.5.3-dev-c4690ab.0+c4690ab",
40
+ "@agoric/zoe": "0.26.3-dev-c4690ab.0+c4690ab",
41
41
  "@endo/bundle-source": "^3.4.1",
42
42
  "@endo/captp": "^4.4.0",
43
43
  "@endo/errors": "^1.2.6",
@@ -49,7 +49,7 @@
49
49
  "import-meta-resolve": "^2.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@agoric/swingset-vat": "0.32.3-dev-9883fcf.0+9883fcf",
52
+ "@agoric/swingset-vat": "0.32.3-dev-c4690ab.0+c4690ab",
53
53
  "@endo/bundle-source": "^3.4.1",
54
54
  "@endo/init": "^1.1.5",
55
55
  "ava": "^5.3.0",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 89.35
80
80
  },
81
- "gitHead": "9883fcf452b71ffaf4fdf03998c1bc6a49cc4f7c"
81
+ "gitHead": "c4690ab9ee8211083dc22b836d8ca1e2e045812d"
82
82
  }
@@ -1,4 +1,12 @@
1
- export namespace ParamTypes {
1
+ /**
2
+ * Enum of parameter types
3
+ *
4
+ * UNKNOWN is an escape hatch for types we haven't added yet. If you are
5
+ * developing a new contract and use UNKNOWN, please also file an issue to ask
6
+ * us to support the new type.
7
+ */
8
+ export type ParamType = (typeof ParamType)[keyof typeof ParamType];
9
+ export namespace ParamType {
2
10
  let AMOUNT: "amount";
3
11
  let BRAND: "brand";
4
12
  let INSTALLATION: "installation";
@@ -12,5 +20,30 @@ export namespace ParamTypes {
12
20
  let RELATIVE_TIME: "relativeTime";
13
21
  let UNKNOWN: "unknown";
14
22
  }
15
- export type ParamType = (typeof ParamTypes)[keyof typeof ParamTypes];
23
+ export namespace ParamTypes {
24
+ let AMOUNT_1: "amount";
25
+ export { AMOUNT_1 as AMOUNT };
26
+ let BRAND_1: "brand";
27
+ export { BRAND_1 as BRAND };
28
+ let INSTALLATION_1: "installation";
29
+ export { INSTALLATION_1 as INSTALLATION };
30
+ let INSTANCE_1: "instance";
31
+ export { INSTANCE_1 as INSTANCE };
32
+ let INVITATION_1: "invitation";
33
+ export { INVITATION_1 as INVITATION };
34
+ let NAT_1: "nat";
35
+ export { NAT_1 as NAT };
36
+ let RATIO_1: "ratio";
37
+ export { RATIO_1 as RATIO };
38
+ let STRING_1: "string";
39
+ export { STRING_1 as STRING };
40
+ let PASSABLE_RECORD_1: "record";
41
+ export { PASSABLE_RECORD_1 as PASSABLE_RECORD };
42
+ let TIMESTAMP_1: "timestamp";
43
+ export { TIMESTAMP_1 as TIMESTAMP };
44
+ let RELATIVE_TIME_1: "relativeTime";
45
+ export { RELATIVE_TIME_1 as RELATIVE_TIME };
46
+ let UNKNOWN_1: "unknown";
47
+ export { UNKNOWN_1 as UNKNOWN };
48
+ }
16
49
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;;;;;;;;;;;;wBAuBc,CAAA,OAAO,UAAU,EAAC,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;;;;;wBAMU,CAAA,OAAO,SAAS,EAAC,MAAM,OAAO,SAAS,CAAC"}
package/src/constants.js CHANGED
@@ -4,8 +4,9 @@
4
4
  * UNKNOWN is an escape hatch for types we haven't added yet. If you are
5
5
  * developing a new contract and use UNKNOWN, please also file an issue to ask
6
6
  * us to support the new type.
7
+ * @enum {typeof ParamType[keyof typeof ParamType]}
7
8
  */
8
- export const ParamTypes = /** @type {const} */ ({
9
+ export const ParamType = /** @type {const} */ ({
9
10
  AMOUNT: 'amount',
10
11
  BRAND: 'brand',
11
12
  INSTALLATION: 'installation',
@@ -19,6 +20,8 @@ export const ParamTypes = /** @type {const} */ ({
19
20
  RELATIVE_TIME: 'relativeTime',
20
21
  UNKNOWN: 'unknown',
21
22
  });
23
+ harden(ParamType);
22
24
 
23
- harden(ParamTypes);
24
- /** @typedef {typeof ParamTypes[keyof typeof ParamTypes]} ParamType */
25
+ // For backwards compatibility
26
+ // Shallow copy to work around TS d.ts defining an empty namespace instead of an object
27
+ export const ParamTypes = { ...ParamType };
@@ -5,7 +5,7 @@ export function setUpGovernedContract<T extends GovernableStartFn>(zoe: ERef<Zoe
5
5
  }, privateArgsOfGoverned?: {}, issuerKeywordRecord?: IssuerKeywordRecord | undefined): Promise<{
6
6
  getFakeInvitation: () => Promise<{
7
7
  fakeInvitationPayment: any;
8
- fakeInvitationAmount: import("@agoric/ertp/src/types.js").SetAmount<InvitationDetails>;
8
+ fakeInvitationAmount: import("@agoric/ertp").SetAmount<InvitationDetails>;
9
9
  }>;
10
10
  governorFacets: import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(<SF extends GovernableStartFn>(zcf: ZCF<{
11
11
  timer: import("@agoric/time").TimerService;