@agoric/zoe 0.26.3-dev-3f302ba.0 → 0.26.3-dev-cb515a8.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/zoe",
3
- "version": "0.26.3-dev-3f302ba.0+3f302ba",
3
+ "version": "0.26.3-dev-cb515a8.0+cb515a8",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/base-zone": "0.1.1-dev-3f302ba.0+3f302ba",
47
- "@agoric/ertp": "0.16.3-dev-3f302ba.0+3f302ba",
48
- "@agoric/internal": "0.3.3-dev-3f302ba.0+3f302ba",
49
- "@agoric/notifier": "0.6.3-dev-3f302ba.0+3f302ba",
50
- "@agoric/store": "0.9.3-dev-3f302ba.0+3f302ba",
51
- "@agoric/swingset-liveslots": "0.10.3-dev-3f302ba.0+3f302ba",
52
- "@agoric/swingset-vat": "0.32.3-dev-3f302ba.0+3f302ba",
53
- "@agoric/time": "0.3.3-dev-3f302ba.0+3f302ba",
54
- "@agoric/vat-data": "0.5.3-dev-3f302ba.0+3f302ba",
55
- "@agoric/vow": "0.1.1-dev-3f302ba.0+3f302ba",
56
- "@agoric/zone": "0.2.3-dev-3f302ba.0+3f302ba",
46
+ "@agoric/base-zone": "0.1.1-dev-cb515a8.0+cb515a8",
47
+ "@agoric/ertp": "0.16.3-dev-cb515a8.0+cb515a8",
48
+ "@agoric/internal": "0.3.3-dev-cb515a8.0+cb515a8",
49
+ "@agoric/notifier": "0.6.3-dev-cb515a8.0+cb515a8",
50
+ "@agoric/store": "0.9.3-dev-cb515a8.0+cb515a8",
51
+ "@agoric/swingset-liveslots": "0.10.3-dev-cb515a8.0+cb515a8",
52
+ "@agoric/swingset-vat": "0.32.3-dev-cb515a8.0+cb515a8",
53
+ "@agoric/time": "0.3.3-dev-cb515a8.0+cb515a8",
54
+ "@agoric/vat-data": "0.5.3-dev-cb515a8.0+cb515a8",
55
+ "@agoric/vow": "0.1.1-dev-cb515a8.0+cb515a8",
56
+ "@agoric/zone": "0.2.3-dev-cb515a8.0+cb515a8",
57
57
  "@endo/bundle-source": "^3.5.0",
58
58
  "@endo/captp": "^4.4.3",
59
59
  "@endo/common": "^1.2.8",
@@ -70,7 +70,7 @@
70
70
  "yargs-parser": "^21.1.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@agoric/kmarshal": "0.1.1-dev-3f302ba.0+3f302ba",
73
+ "@agoric/kmarshal": "0.1.1-dev-cb515a8.0+cb515a8",
74
74
  "@endo/init": "^1.1.7",
75
75
  "ava": "^5.3.0",
76
76
  "c8": "^10.1.2",
@@ -100,5 +100,5 @@
100
100
  "typeCoverage": {
101
101
  "atLeast": 85.06
102
102
  },
103
- "gitHead": "3f302ba18940d71b5b4acc0646365d7b5f464a7e"
103
+ "gitHead": "cb515a848bd8027391939ca540260e75c0ad8c7a"
104
104
  }
@@ -19,7 +19,7 @@ type InvitationAmount = Amount<'set', InvitationDetails>;
19
19
  * synchronously from within the contract, and usually is referred to
20
20
  * in code as zcf.
21
21
  */
22
- type ZCF<CT extends unknown = Record<string, unknown>> = {
22
+ type ZCF<CT = Record<string, unknown>> = {
23
23
  /**
24
24
  * - atomically reallocate amounts among seats.
25
25
  */
@@ -214,8 +214,8 @@ type ZcfSeatKit = {
214
214
  zcfSeat: ZCFSeat;
215
215
  userSeat: Promise<UserSeat>;
216
216
  };
217
- type HandleOffer<OR extends unknown, OA> = (seat: ZCFSeat, offerArgs: OA) => OR;
218
- type OfferHandler<OR extends unknown = unknown, OA = never> =
217
+ type HandleOffer<OR, OA> = (seat: ZCFSeat, offerArgs: OA) => OR;
218
+ type OfferHandler<OR = unknown, OA = never> =
219
219
  | HandleOffer<OR, OA>
220
220
  | {
221
221
  handle: HandleOffer<OR, OA>;
@@ -241,12 +241,7 @@ type ContractMeta<
241
241
  *
242
242
  * CAVEAT: assumes synchronous
243
243
  */
244
- type ContractStartFn<
245
- PF extends unknown = any,
246
- CF extends unknown = any,
247
- CT extends unknown = any,
248
- PA extends unknown = any,
249
- > = (
244
+ type ContractStartFn<PF = any, CF = any, CT = any, PA = any> = (
250
245
  zcf: ZCF<CT>,
251
246
  privateArgs: PA,
252
247
  baggage: import('@agoric/vat-data').Baggage,
@@ -30,9 +30,9 @@ export type InstallationStart<I> =
30
30
 
31
31
  export type ContractStartFunction = (
32
32
  zcf?: ZCF,
33
- privateArgs?: {},
33
+ privateArgs?: object,
34
34
  baggage?: Baggage,
35
- ) => ERef<{ creatorFacet?: {}; publicFacet?: {} }>;
35
+ ) => ERef<{ creatorFacet?: object; publicFacet?: object }>;
36
36
 
37
37
  export type AdminFacet<SF extends ContractStartFunction> = FarRef<{
38
38
  // Completion, which is currently any
@@ -76,8 +76,8 @@ export type StartedInstanceKit<SF extends ContractStartFunction> = {
76
76
  instance: Instance<SF>;
77
77
  adminFacet: AdminFacet<SF>;
78
78
  // theses are empty by default. the return type will override
79
- creatorFacet: {};
80
- publicFacet: {};
79
+ creatorFacet: object;
80
+ publicFacet: object;
81
81
  } & (SF extends ContractStartFunction
82
82
  ? // override if the start function specfies the types
83
83
  Awaited<ReturnType<SF>>
@@ -120,7 +120,7 @@ export type GetPublicFacet = <SF>(
120
120
 
121
121
  export type GetTerms = <SF>(instance: Instance<SF>) => Promise<
122
122
  // only type if 'terms' info is available
123
- StartParams<SF>['terms'] extends {}
123
+ StartParams<SF>['terms'] extends object
124
124
  ? StartParams<SF>['terms']
125
125
  : // XXX returning `any` in this case
126
126
  any
@@ -15,7 +15,7 @@
15
15
  * @param {Issuer} feeIssuer
16
16
  */
17
17
  export function makeScriptedOracle(script: Record<string, any>, oracleInstallation: Installation<import("../src/contracts/oracle.js").OracleStart>, timer: import("@agoric/time").TimerService, zoe: ZoeService, feeIssuer: Issuer): Promise<{
18
- publicFacet: {
18
+ publicFacet: object & {
19
19
  query(query: OracleQuery): Promise<unknown>;
20
20
  makeQueryInvitation(query: OracleQuery): Promise<Invitation<unknown, never>>;
21
21
  } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {