@agoric/smart-wallet 0.5.4-dev-f8abc2e.0 → 0.5.4-dev-860d051.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/smart-wallet",
3
- "version": "0.5.4-dev-f8abc2e.0+f8abc2e",
3
+ "version": "0.5.4-dev-860d051.0+860d051",
4
4
  "description": "Wallet contract",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -16,8 +16,8 @@
16
16
  "lint:eslint": "eslint ."
17
17
  },
18
18
  "devDependencies": {
19
- "@agoric/cosmic-proto": "0.4.1-dev-f8abc2e.0+f8abc2e",
20
- "@agoric/swingset-vat": "0.32.3-dev-f8abc2e.0+f8abc2e",
19
+ "@agoric/cosmic-proto": "0.4.1-dev-860d051.0+860d051",
20
+ "@agoric/swingset-vat": "0.32.3-dev-860d051.0+860d051",
21
21
  "@endo/bundle-source": "^3.2.1",
22
22
  "@endo/captp": "^4.1.0",
23
23
  "@endo/init": "^1.1.0",
@@ -25,15 +25,15 @@
25
25
  "import-meta-resolve": "^2.2.1"
26
26
  },
27
27
  "dependencies": {
28
- "@agoric/assert": "0.6.1-dev-f8abc2e.0+f8abc2e",
29
- "@agoric/casting": "0.4.3-dev-f8abc2e.0+f8abc2e",
30
- "@agoric/ertp": "0.16.3-dev-f8abc2e.0+f8abc2e",
31
- "@agoric/internal": "0.3.3-dev-f8abc2e.0+f8abc2e",
32
- "@agoric/notifier": "0.6.3-dev-f8abc2e.0+f8abc2e",
33
- "@agoric/store": "0.9.3-dev-f8abc2e.0+f8abc2e",
34
- "@agoric/vat-data": "0.5.3-dev-f8abc2e.0+f8abc2e",
35
- "@agoric/vats": "0.15.2-dev-f8abc2e.0+f8abc2e",
36
- "@agoric/zoe": "0.26.3-dev-f8abc2e.0+f8abc2e",
28
+ "@agoric/assert": "0.6.1-dev-860d051.0+860d051",
29
+ "@agoric/casting": "0.4.3-dev-860d051.0+860d051",
30
+ "@agoric/ertp": "0.16.3-dev-860d051.0+860d051",
31
+ "@agoric/internal": "0.3.3-dev-860d051.0+860d051",
32
+ "@agoric/notifier": "0.6.3-dev-860d051.0+860d051",
33
+ "@agoric/store": "0.9.3-dev-860d051.0+860d051",
34
+ "@agoric/vat-data": "0.5.3-dev-860d051.0+860d051",
35
+ "@agoric/vats": "0.15.2-dev-860d051.0+860d051",
36
+ "@agoric/zoe": "0.26.3-dev-860d051.0+860d051",
37
37
  "@endo/eventual-send": "^1.2.0",
38
38
  "@endo/far": "^1.1.0",
39
39
  "@endo/marshal": "^1.4.0",
@@ -69,5 +69,5 @@
69
69
  "typeCoverage": {
70
70
  "atLeast": 93.76
71
71
  },
72
- "gitHead": "f8abc2e75c2aa612a24abb86e982367b7ba964f8"
72
+ "gitHead": "860d051e8c26975d244c211b061a8189f1718cab"
73
73
  }
@@ -15,24 +15,24 @@ export function makeExportContext(): {
15
15
  * @param {BoardId} id
16
16
  * @param {unknown} val
17
17
  */
18
- initBoardId: (id: BoardId, val: unknown) => void;
18
+ initBoardId: (id: string, val: unknown) => void;
19
19
  /**
20
20
  * @param {BoardId} id
21
21
  * @param {unknown} val
22
22
  */
23
- ensureBoardId: (id: BoardId, val: unknown) => void;
23
+ ensureBoardId: (id: string, val: unknown) => void;
24
24
  };
25
25
  export function makeImportContext(makePresence?: ((iface: string) => unknown) | undefined): {
26
26
  /**
27
27
  * @param {BoardId} id
28
28
  * @param {unknown} val
29
29
  */
30
- initBoardId: (id: BoardId, val: unknown) => void;
30
+ initBoardId: (id: string, val: unknown) => void;
31
31
  /**
32
32
  * @param {BoardId} id
33
33
  * @param {unknown} val
34
34
  */
35
- ensureBoardId: (id: BoardId, val: unknown) => void;
35
+ ensureBoardId: (id: string, val: unknown) => void;
36
36
  fromMyWallet: {
37
37
  toCapData: import("@endo/marshal/src/marshal").ToCapData<string>;
38
38
  fromCapData: import("@endo/marshal/src/marshal").FromCapData<string>;
@@ -57,7 +57,6 @@ export function makeImportContext(makePresence?: ((iface: string) => unknown) |
57
57
  }>;
58
58
  };
59
59
  export function makeLoggingPresence(iface: string, log: (parts: unknown[]) => void): any;
60
- export type BoardId = import('@agoric/vats/src/lib-board.js').BoardId;
61
60
  /**
62
61
  * <T>
63
62
  */
@@ -69,7 +68,7 @@ export type KindSlot<K extends string> = `${K}:${Digits}`;
69
68
  /**
70
69
  * <T>
71
70
  */
72
- export type MixedSlot<T extends Record<string, IdTable<any, any>>> = WalletSlot<T> | BoardId;
71
+ export type MixedSlot<T extends Record<string, IdTable<any, any>>> = string;
73
72
  /**
74
73
  * - 1 or more digits.
75
74
  * NOTE: the typescript definition here is more restrictive than
@@ -1 +1 @@
1
- {"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AAmHO;;;;;;;IAqFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;sBAFQ,OAAO,OACP,OAAO;IAKlB;;;OAGG;wBAFQ,OAAO,OACP,OAAO;EAWrB;AAcM,0DAFY,MAAM,KAAK,OAAO;IA8FjC;;;OAGG;sBAFQ,OAAO,OACP,OAAO;IAKlB;;;OAGG;wBAFQ,OAAO,OACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;EAYrB;AAwBM,2CAHI,MAAM,OACN,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,OAapC;sBA9Xa,OAAO,+BAA+B,EAAE,OAAO;;;;sEAiBhD,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE;;;;yCAI/B,GAAG,CAAC,IAAI,MAAM,EAAE;;;;qEA2ChB,WAAW,CAAC,CAAC,GAAG,OAAO;;;;;;qBAGvB,GAAG,GAAG,IAAI,GAAG,KAAK;;;;iCASlB;IACZ,MAAU,EAAE,SAAS,IAAI,EAAE,GAAG,CAAC,CAAC;IAChC,KAAS,EAAE,SAAS,GAAG,EAAE,IAAI,CAAC,CAAC;CAC5B;4BA8IU,WAAW,wBAAwB,CAAC;4BA+HpC,WAAW,wBAAwB,CAAC"}
1
+ {"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AAmHO;;;;;;;IAqFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;mCADQ,OAAO;IAKlB;;;OAGG;qCADQ,OAAO;EAWrB;AAcM,0DAFY,MAAM,KAAK,OAAO;IA8FjC;;;OAGG;mCADQ,OAAO;IAKlB;;;OAGG;qCADQ,OAAO;;;;;;;;;;;;;;;;;;;;;;;EAYrB;AAwBM,2CAHI,MAAM,OACN,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,OAapC;;;;sEA7WY,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE;;;;yCAI/B,GAAG,CAAC,IAAI,MAAM,EAAE;;;;;;;;;;qBA8ChB,GAAG,GAAG,IAAI,GAAG,KAAK;;;;iCASlB;IACZ,MAAU,EAAE,SAAS,IAAI,EAAE,GAAG,CAAC,CAAC;IAChC,KAAS,EAAE,SAAS,GAAG,EAAE,IAAI,CAAC,CAAC;CAC5B;4BA8IU,WAAW,wBAAwB,CAAC;4BA+HpC,WAAW,wBAAwB,CAAC"}
@@ -6,7 +6,7 @@ import { DEFAULT_PREFIX } from '@agoric/vats/src/lib-board.js';
6
6
 
7
7
  const { Fail, quote: q } = assert;
8
8
 
9
- /** @typedef {import('@agoric/vats/src/lib-board.js').BoardId} BoardId */
9
+ /** @import {BoardId} from '@agoric/vats/src/lib-board.js' */
10
10
 
11
11
  /**
12
12
  * ID from a board made with { prefix: DEFAULT_PREFIX }
@@ -40,7 +40,7 @@ export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
40
40
  }>;
41
41
  }>;
42
42
  export type SmartWalletContractTerms = {
43
- agoricNames: ERef<import("@agoric/vats").NameHub>;
43
+ agoricNames: ERef<NameHub>;
44
44
  board: ERef<import("@endo/exo/src/exo-makers.js").Guarded<{
45
45
  getId(value: any): string;
46
46
  getValue(id: string): any;
@@ -62,7 +62,6 @@ export type SmartWalletContractTerms = {
62
62
  }>>;
63
63
  assetPublisher: AssetPublisher;
64
64
  };
65
- export type NameHub = import('@agoric/vats').NameHub;
66
65
  export type AssetPublisher = {
67
66
  getAssetSubscription: () => ERef<IterableEachTopic<import("@agoric/vats/src/vat-bank.js").AssetDescriptor>>;
68
67
  };
@@ -72,4 +71,5 @@ export type WalletReviver = {
72
71
  ackWallet: (address: string) => isRevive;
73
72
  };
74
73
  export type start = typeof prepare;
74
+ import type { NameHub } from '@agoric/vats';
75
75
  //# sourceMappingURL=walletFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AA2BA,gEAKE;AAaK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,iFAgBhD;AAWM,kDAFI,cAAc;IAwCrB,2BAA2B;iBAAf,KAAK;IAEjB,2BAA2B;iBAAf,KAAK;eApCP,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;;eAH9B,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;EAsC3C;AAmCM,6BARI,IAAI,wBAAwB,CAAC;;;;YAM7B,OAAO,kBAAkB,EAAE,OAAO;;QAuIvC;;;;;;;WAOG;oCANQ,MAAM,yHAGJ,QAAQ,CAAC,MAAM,EAAE,OAAO,kBAAkB,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;GAmD3F;;;;;;;;;;;;;;;;;;;;;;oBAzNoB,cAAc;;sBAGtB,OAAO,cAAc,EAAE,OAAO;;;;uBAO9B,OAAO;4BACP;IACZ,YAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,OAAO,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACvF,SAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC1C;oBAgNU,cAAc"}
1
+ {"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AA2BA,gEAKE;AAaK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,iFAgBhD;AAWM,kDAFI,cAAc;IAwCrB,2BAA2B;iBAAf,KAAK;IAEjB,2BAA2B;iBAAf,KAAK;eApCP,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;;eAH9B,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;EAsC3C;AAmCM,6BARI,IAAI,wBAAwB,CAAC;;;;YAM7B,OAAO,kBAAkB,EAAE,OAAO;;QAuIvC;;;;;;;WAOG;oCANQ,MAAM,yHAGJ,QAAQ,CAAC,MAAM,EAAE,OAAO,kBAAkB,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;GAmD3F;;;;;;;;;;;;;;;;;;;;;;oBAzNoB,cAAc;;;;;uBAUtB,OAAO;4BACP;IACZ,YAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,OAAO,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACvF,SAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC1C;oBAgNU,cAAc;6BA3NF,cAAc"}
@@ -121,7 +121,7 @@ export const makeAssetRegistry = assetPublisher => {
121
121
  * assetPublisher: AssetPublisher,
122
122
  * }} SmartWalletContractTerms
123
123
  *
124
- * @typedef {import('@agoric/vats').NameHub} NameHub
124
+ * @import {NameHub} from '@agoric/vats'
125
125
  *
126
126
  * @typedef {{
127
127
  * getAssetSubscription: () => ERef<