@agoric/smart-wallet 0.5.4-dev-de2008a.0 → 0.5.4-dev-9d7a377.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-de2008a.0+de2008a",
3
+ "version": "0.5.4-dev-9d7a377.0+9d7a377",
4
4
  "description": "Wallet contract",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -16,9 +16,9 @@
16
16
  "lint:eslint": "eslint ."
17
17
  },
18
18
  "devDependencies": {
19
- "@agoric/cosmic-proto": "0.4.1-dev-de2008a.0+de2008a",
20
- "@agoric/swingset-vat": "0.32.3-dev-de2008a.0+de2008a",
21
- "@agoric/zone": "0.2.3-dev-de2008a.0+de2008a",
19
+ "@agoric/cosmic-proto": "0.4.1-dev-9d7a377.0+9d7a377",
20
+ "@agoric/swingset-vat": "0.32.3-dev-9d7a377.0+9d7a377",
21
+ "@agoric/zone": "0.2.3-dev-9d7a377.0+9d7a377",
22
22
  "@endo/bundle-source": "^3.2.2",
23
23
  "@endo/captp": "^4.1.1",
24
24
  "@endo/init": "^1.1.1",
@@ -26,15 +26,15 @@
26
26
  "import-meta-resolve": "^2.2.1"
27
27
  },
28
28
  "dependencies": {
29
- "@agoric/assert": "0.6.1-dev-de2008a.0+de2008a",
30
- "@agoric/casting": "0.4.3-dev-de2008a.0+de2008a",
31
- "@agoric/ertp": "0.16.3-dev-de2008a.0+de2008a",
32
- "@agoric/internal": "0.3.3-dev-de2008a.0+de2008a",
33
- "@agoric/notifier": "0.6.3-dev-de2008a.0+de2008a",
34
- "@agoric/store": "0.9.3-dev-de2008a.0+de2008a",
35
- "@agoric/vat-data": "0.5.3-dev-de2008a.0+de2008a",
36
- "@agoric/vats": "0.15.2-dev-de2008a.0+de2008a",
37
- "@agoric/zoe": "0.26.3-dev-de2008a.0+de2008a",
29
+ "@agoric/assert": "0.6.1-dev-9d7a377.0+9d7a377",
30
+ "@agoric/casting": "0.4.3-dev-9d7a377.0+9d7a377",
31
+ "@agoric/ertp": "0.16.3-dev-9d7a377.0+9d7a377",
32
+ "@agoric/internal": "0.3.3-dev-9d7a377.0+9d7a377",
33
+ "@agoric/notifier": "0.6.3-dev-9d7a377.0+9d7a377",
34
+ "@agoric/store": "0.9.3-dev-9d7a377.0+9d7a377",
35
+ "@agoric/vat-data": "0.5.3-dev-9d7a377.0+9d7a377",
36
+ "@agoric/vats": "0.15.2-dev-9d7a377.0+9d7a377",
37
+ "@agoric/zoe": "0.26.3-dev-9d7a377.0+9d7a377",
38
38
  "@endo/eventual-send": "^1.2.1",
39
39
  "@endo/far": "^1.1.1",
40
40
  "@endo/marshal": "^1.4.1",
@@ -70,5 +70,5 @@
70
70
  "typeCoverage": {
71
71
  "atLeast": 93.99
72
72
  },
73
- "gitHead": "de2008a11a0347ac9e920d79f56324d20a789ec0"
73
+ "gitHead": "9d7a377c6315b72bafcede22ec58c52fb2a5adae"
74
74
  }
@@ -1,4 +1,4 @@
1
- export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<'set'>, invitationsPurse: Purse<'set'>, getInvitationContinuation: (fromOfferId: string) => import('./types.js').InvitationMakers): (spec: InvitationSpec) => ERef<Invitation<unknown, undefined>>;
1
+ export function makeInvitationsHelper(zoe: ERef<ZoeService>, agoricNames: ERef<import("@agoric/vats").NameHub>, invitationBrand: Brand<"set">, invitationsPurse: Purse<"set">, getInvitationContinuation: (fromOfferId: string) => import("./types.js").InvitationMakers): (spec: InvitationSpec) => ERef<Invitation<unknown, undefined>>;
2
2
  /**
3
3
  * Specify how to produce an invitation. See each type in the union for details.
4
4
  */
@@ -10,7 +10,7 @@ export type InvitationSpec = AgoricContractInvitationSpec | ContractInvitationSp
10
10
  * - the end of the pipe is expected to return an Invitation
11
11
  */
12
12
  export type AgoricContractInvitationSpec = {
13
- source: 'agoricContract';
13
+ source: "agoricContract";
14
14
  instancePath: string[];
15
15
  callPipe: Array<[methodName: string, methodArgs?: any[]]>;
16
16
  };
@@ -18,7 +18,7 @@ export type AgoricContractInvitationSpec = {
18
18
  * source is a contract (in which case this takes an Instance to look up in zoe)
19
19
  */
20
20
  export type ContractInvitationSpec = {
21
- source: 'contract';
21
+ source: "contract";
22
22
  instance: Instance;
23
23
  publicInvitationMaker: string;
24
24
  invitationArgs?: any[];
@@ -28,7 +28,7 @@ export type ContractInvitationSpec = {
28
28
  * - use the find/query invitation by kvs thing
29
29
  */
30
30
  export type PurseInvitationSpec = {
31
- source: 'purse';
31
+ source: "purse";
32
32
  instance: Instance;
33
33
  description: string;
34
34
  };
@@ -36,10 +36,10 @@ export type PurseInvitationSpec = {
36
36
  * continuing invitation in which the offer result from a previous invitation had an `invitationMakers` property
37
37
  */
38
38
  export type ContinuingInvitationSpec = {
39
- source: 'continuing';
40
- previousOffer: import('./offers.js').OfferId;
39
+ source: "continuing";
40
+ previousOffer: import("./offers.js").OfferId;
41
41
  invitationMakerName: string;
42
42
  invitationArgs?: any[];
43
43
  };
44
- export type InvitationsPurseQuery = Pick<InvitationDetails, 'description' | 'instance'>;
44
+ export type InvitationsPurseQuery = Pick<InvitationDetails, "description" | "instance">;
45
45
  //# sourceMappingURL=invitations.d.ts.map
@@ -1,8 +1,8 @@
1
1
  export function makeExportContext(): {
2
- toCapData: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
3
- fromCapData: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
4
- serialize: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
5
- unserialize: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
2
+ toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
3
+ fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
4
+ serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
5
+ unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
6
6
  savePurseActions: (val: globalThis.Purse) => void;
7
7
  savePaymentActions: (val: globalThis.Payment) => void;
8
8
  /**
@@ -34,26 +34,26 @@ export function makeImportContext(makePresence?: ((iface: string) => unknown) |
34
34
  */
35
35
  ensureBoardId: (id: string, val: unknown) => void;
36
36
  fromMyWallet: {
37
- toCapData: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
38
- fromCapData: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
39
- serialize: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
40
- unserialize: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
37
+ toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
38
+ fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
39
+ serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
40
+ unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
41
41
  } & import("@endo/eventual-send").RemotableBrand<{}, {
42
- toCapData: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
43
- fromCapData: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
44
- serialize: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
45
- unserialize: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
42
+ toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
43
+ fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
44
+ serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
45
+ unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
46
46
  }>;
47
47
  fromBoard: {
48
- toCapData: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
49
- fromCapData: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
50
- serialize: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
51
- unserialize: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
48
+ toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
49
+ fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
50
+ serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
51
+ unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
52
52
  } & import("@endo/eventual-send").RemotableBrand<{}, {
53
- toCapData: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
54
- fromCapData: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
55
- serialize: import("../../../node_modules/@endo/marshal/src/marshal").ToCapData<string>;
56
- unserialize: import("../../../node_modules/@endo/marshal/src/marshal").FromCapData<string>;
53
+ toCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
54
+ fromCapData: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
55
+ serialize: import("../../../node_modules/@endo/marshal/src/marshal.js").ToCapData<string>;
56
+ unserialize: import("../../../node_modules/@endo/marshal/src/marshal.js").FromCapData<string>;
57
57
  }>;
58
58
  };
59
59
  export function makeLoggingPresence(iface: string, log: (parts: unknown[]) => void): any;
@@ -1,5 +1,5 @@
1
1
  export function watchOfferOutcomes(watchers: OutcomeWatchers, seat: UserSeat): Promise<[unknown, 0 | 1, PaymentPKeywordRecord]>;
2
- export function prepareOfferWatcher(baggage: import('@agoric/vat-data').Baggage): (walletHelper: any, deposit: any, offerSpec: OfferSpec, address: string, invitationAmount: globalThis.Amount<"set">, seatRef: UserSeat<unknown>) => import("@endo/exo").GuardedKit<{
2
+ export function prepareOfferWatcher(baggage: import("@agoric/vat-data").Baggage): (walletHelper: any, deposit: any, offerSpec: OfferSpec, address: string, invitationAmount: globalThis.Amount<"set">, seatRef: UserSeat<unknown>) => import("@endo/exo").GuardedKit<{
3
3
  helper: {
4
4
  /**
5
5
  * @param {Record<string, unknown>} offerStatusUpdates
@@ -11,7 +11,7 @@ export function prepareOfferWatcher(baggage: import('@agoric/vat-data').Baggage)
11
11
  * @param {import('./types.js').InvitationMakers} invitationMakers
12
12
  * @param {import("./types.js").PublicSubscribers} publicSubscribers
13
13
  */
14
- onNewContinuingOffer(offerId: string, invitationAmount: Amount<"set">, invitationMakers: import('./types.js').InvitationMakers, publicSubscribers: import("./types.js").PublicSubscribers): void;
14
+ onNewContinuingOffer(offerId: string, invitationAmount: Amount<"set">, invitationMakers: import("./types.js").InvitationMakers, publicSubscribers: import("./types.js").PublicSubscribers): void;
15
15
  /** @param {unknown} result */
16
16
  publishResult(result: unknown): void;
17
17
  /**
@@ -23,11 +23,11 @@ export function prepareOfferWatcher(baggage: import('@agoric/vat-data').Baggage)
23
23
  handleError(err: Error): void;
24
24
  };
25
25
  /** @type {OutcomeWatchers['paymentWatcher']} */
26
- paymentWatcher: OutcomeWatchers['paymentWatcher'];
26
+ paymentWatcher: OutcomeWatchers["paymentWatcher"];
27
27
  /** @type {OutcomeWatchers['resultWatcher']} */
28
- resultWatcher: OutcomeWatchers['resultWatcher'];
28
+ resultWatcher: OutcomeWatchers["resultWatcher"];
29
29
  /** @type {OutcomeWatchers['numWantsWatcher']} */
30
- numWantsWatcher: OutcomeWatchers['numWantsWatcher'];
30
+ numWantsWatcher: OutcomeWatchers["numWantsWatcher"];
31
31
  }>;
32
32
  /**
33
33
  * <T, [UserSeat]
package/src/offers.d.ts CHANGED
@@ -14,7 +14,7 @@ export const UNPUBLISHED_RESULT: "UNPUBLISHED";
14
14
  export type OfferId = number | string;
15
15
  export type OfferSpec = {
16
16
  id: OfferId;
17
- invitationSpec: import('./invitations.js').InvitationSpec;
17
+ invitationSpec: import("./invitations.js").InvitationSpec;
18
18
  proposal: Proposal;
19
19
  offerArgs?: unknown;
20
20
  };
@@ -1,5 +1,5 @@
1
1
  export const BRAND_TO_PURSES_KEY: "brandToPurses";
2
- export function prepareSmartWallet(baggage: import('@agoric/vat-data').Baggage, shared: SharedParams): (uniqueWithoutChildNodes: Omit<UniqueParams, "currentStorageNode" | "walletStorageNode"> & {
2
+ export function prepareSmartWallet(baggage: import("@agoric/vat-data").Baggage, shared: SharedParams): (uniqueWithoutChildNodes: Omit<UniqueParams, "currentStorageNode" | "walletStorageNode"> & {
3
3
  walletStorageNode: ERef<StorageNode>;
4
4
  }) => Promise<import("@endo/exo").Guarded<{
5
5
  /**
@@ -9,7 +9,7 @@ export function prepareSmartWallet(baggage: import('@agoric/vat-data').Baggage,
9
9
  * @param {boolean} [canSpend]
10
10
  * @returns {Promise<void>}
11
11
  */
12
- handleBridgeAction(actionCapData: import('@endo/marshal').CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
12
+ handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string | null>, canSpend?: boolean | undefined): Promise<void>;
13
13
  getDepositFacet(): import("@endo/exo").Guarded<{
14
14
  /**
15
15
  * Put the assets from the payment into the appropriate purse.
@@ -66,7 +66,7 @@ export function prepareSmartWallet(baggage: import('@agoric/vat-data').Baggage,
66
66
  export type OfferId = number | string;
67
67
  export type OfferSpec = {
68
68
  id: OfferId;
69
- invitationSpec: import('./invitations').InvitationSpec;
69
+ invitationSpec: import("./invitations").InvitationSpec;
70
70
  proposal: Proposal;
71
71
  offerArgs?: unknown;
72
72
  };
@@ -75,15 +75,15 @@ export type ExecutorPowers = {
75
75
  info: (...args: any[]) => void;
76
76
  error: (...args: any[]) => void;
77
77
  };
78
- makeOfferWatcher: import('./offerWatcher.js').MakeOfferWatcher;
78
+ makeOfferWatcher: import("./offerWatcher.js").MakeOfferWatcher;
79
79
  invitationFromSpec: ERef<Invitation<unknown, undefined>>;
80
80
  };
81
81
  export type ExecuteOfferAction = {
82
- method: 'executeOffer';
82
+ method: "executeOffer";
83
83
  offer: OfferSpec;
84
84
  };
85
85
  export type TryExitOfferAction = {
86
- method: 'tryExitOffer';
86
+ method: "tryExitOffer";
87
87
  offerId: OfferId;
88
88
  };
89
89
  export type BridgeAction = ExecuteOfferAction | TryExitOfferAction;
@@ -112,7 +112,7 @@ export type CurrentWalletRecord = {
112
112
  offerToPublicSubscriberPaths: Array<[offerId: string, publicTopics: {
113
113
  [subscriberName: string]: string;
114
114
  }]>;
115
- liveOffers: Array<[OfferId, import('./offers.js').OfferStatus]>;
115
+ liveOffers: Array<[OfferId, import("./offers.js").OfferStatus]>;
116
116
  };
117
117
  /**
118
118
  * Record of an update to the state of this wallet.
@@ -127,13 +127,13 @@ export type CurrentWalletRecord = {
127
127
  * the amount suffices.
128
128
  */
129
129
  export type UpdateRecord = {
130
- updated: 'offerStatus';
131
- status: import('./offers.js').OfferStatus;
130
+ updated: "offerStatus";
131
+ status: import("./offers.js").OfferStatus;
132
132
  } | {
133
- updated: 'balance';
133
+ updated: "balance";
134
134
  currentAmount: Amount;
135
135
  } | {
136
- updated: 'walletAction';
136
+ updated: "walletAction";
137
137
  status: {
138
138
  error: string;
139
139
  };
@@ -145,21 +145,21 @@ export type BrandDescriptor = {
145
145
  brand: Brand;
146
146
  displayInfo: DisplayInfo;
147
147
  issuer: Issuer;
148
- petname: import('./types.js').Petname;
148
+ petname: import("./types.js").Petname;
149
149
  };
150
150
  export type UniqueParams = {
151
151
  address: string;
152
152
  bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>;
153
153
  currentStorageNode: StorageNode;
154
- invitationPurse: Purse<'set'>;
154
+ invitationPurse: Purse<"set">;
155
155
  walletStorageNode: StorageNode;
156
156
  };
157
- export type BrandDescriptorRegistry = Pick<MapStore<Brand, BrandDescriptor>, 'has' | 'get' | 'values'>;
157
+ export type BrandDescriptorRegistry = Pick<MapStore<Brand, BrandDescriptor>, "has" | "get" | "values">;
158
158
  export type SharedParams = {
159
159
  agoricNames: ERef<import("@agoric/vats").NameHub>;
160
160
  registry: BrandDescriptorRegistry;
161
- invitationIssuer: Issuer<'set'>;
162
- invitationBrand: Brand<'set'>;
161
+ invitationIssuer: Issuer<"set">;
162
+ invitationBrand: Brand<"set">;
163
163
  invitationDisplayInfo: DisplayInfo;
164
164
  publicMarshaller: Marshaller;
165
165
  zoe: ERef<ZoeService>;
@@ -174,13 +174,13 @@ export type SharedParams = {
174
174
  export type State = ImmutableState & MutableState;
175
175
  export type ImmutableState = Readonly<UniqueParams & {
176
176
  paymentQueues: MapStore<Brand, Array<Payment>>;
177
- offerToInvitationMakers: MapStore<string, import('./types.js').InvitationMakers>;
177
+ offerToInvitationMakers: MapStore<string, import("./types.js").InvitationMakers>;
178
178
  offerToPublicSubscriberPaths: MapStore<string, Record<string, string>>;
179
- offerToUsedInvitation: MapStore<string, Amount<'set'>>;
179
+ offerToUsedInvitation: MapStore<string, Amount<"set">>;
180
180
  purseBalances: MapStore<Purse, Amount>;
181
- updateRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<UpdateRecord>;
182
- currentRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').RecorderKit<CurrentWalletRecord>;
183
- liveOffers: MapStore<OfferId, import('./offers.js').OfferStatus>;
181
+ updateRecorderKit: import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<UpdateRecord>;
182
+ currentRecorderKit: import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<CurrentWalletRecord>;
183
+ liveOffers: MapStore<OfferId, import("./offers.js").OfferStatus>;
184
184
  liveOfferSeats: MapStore<OfferId, UserSeat<unknown>>;
185
185
  liveOfferPayments: MapStore<OfferId, MapStore<Brand, Payment>>;
186
186
  }>;
package/src/utils.d.ts CHANGED
@@ -2,25 +2,25 @@ export const NO_SMART_WALLET_ERROR: "no smart wallet";
2
2
  export function makeWalletStateCoalescer(invitationBrand?: globalThis.Brand<"set"> | undefined): {
3
3
  state: {
4
4
  invitationsReceived: Map<import("./offers.js").OfferId, {
5
- acceptedIn: import('./offers.js').OfferId;
5
+ acceptedIn: import("./offers.js").OfferId;
6
6
  description: string;
7
7
  instance: Instance;
8
8
  }>;
9
9
  offerStatuses: Map<import("./offers.js").OfferId, import("./offers.js").OfferStatus>;
10
10
  balances: Map<globalThis.Brand, globalThis.Amount>;
11
11
  };
12
- update: (updateRecord: import('./smartWallet.js').UpdateRecord | {}) => void;
12
+ update: (updateRecord: import("./smartWallet.js").UpdateRecord | {}) => void;
13
13
  };
14
14
  export function coalesceUpdates(updates: ERef<Subscriber<import("./smartWallet.js").UpdateRecord>>, invitationBrand?: globalThis.Brand<"set"> | undefined): {
15
15
  invitationsReceived: Map<import("./offers.js").OfferId, {
16
- acceptedIn: import('./offers.js').OfferId;
16
+ acceptedIn: import("./offers.js").OfferId;
17
17
  description: string;
18
18
  instance: Instance;
19
19
  }>;
20
20
  offerStatuses: Map<import("./offers.js").OfferId, import("./offers.js").OfferStatus>;
21
21
  balances: Map<globalThis.Brand, globalThis.Amount>;
22
22
  };
23
- export function assertHasData(follower: import('@agoric/casting').Follower<any>): Promise<void>;
23
+ export function assertHasData(follower: import("@agoric/casting").Follower<any>): Promise<void>;
24
24
  export function objectMapStoragePath(subscribers?: import("@agoric/zoe/src/contractSupport/topics.js").TopicsRecord | import("./types.js").PublicSubscribers | undefined): ERef<Record<string, string>> | null;
25
- export type CoalescedWalletState = ReturnType<typeof makeWalletStateCoalescer>['state'];
25
+ export type CoalescedWalletState = ReturnType<typeof makeWalletStateCoalescer>["state"];
26
26
  //# sourceMappingURL=utils.d.ts.map
@@ -4,7 +4,7 @@ export namespace customTermsShape {
4
4
  let assetPublisher: any;
5
5
  }
6
6
  export const privateArgsShape: import("@endo/patterns").Matcher;
7
- export function publishDepositFacet(address: string, wallet: import('./smartWallet.js').SmartWallet, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<unknown>;
7
+ export function publishDepositFacet(address: string, wallet: import("./smartWallet.js").SmartWallet, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<unknown>;
8
8
  export function makeAssetRegistry(assetPublisher: AssetPublisher): {
9
9
  /** @param {Brand} brand */
10
10
  has: (brand: Brand) => boolean;
@@ -13,20 +13,20 @@ export function makeAssetRegistry(assetPublisher: AssetPublisher): {
13
13
  brand: Brand;
14
14
  displayInfo: DisplayInfo;
15
15
  issuer: Issuer;
16
- petname: import('./types.js').Petname;
16
+ petname: import("./types.js").Petname;
17
17
  };
18
18
  values: () => Iterable<{
19
19
  brand: Brand;
20
20
  displayInfo: DisplayInfo;
21
21
  issuer: Issuer;
22
- petname: import('./types.js').Petname;
22
+ petname: import("./types.js").Petname;
23
23
  }>;
24
24
  };
25
25
  export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
26
26
  storageNode: ERef<StorageNode>;
27
27
  walletBridgeManager?: ERef<import("@agoric/vats").ScopedBridgeManager> | undefined;
28
28
  walletReviver?: ERef<WalletReviver> | undefined;
29
- }, baggage: import('@agoric/vat-data').Baggage): Promise<{
29
+ }, baggage: import("@agoric/vat-data").Baggage): Promise<{
30
30
  creatorFacet: import("@endo/exo").Guarded<{
31
31
  /**
32
32
  * @param {string} address
@@ -36,14 +36,14 @@ export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
36
36
  * along with a flag to distinguish between looking up an existing wallet
37
37
  * and creating a new one.
38
38
  */
39
- provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<[wallet: import('./smartWallet.js').SmartWallet, isNew: boolean]>;
39
+ provideSmartWallet(address: string, bank: ERef<import("@agoric/vats/src/vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>): Promise<[wallet: import("./smartWallet.js").SmartWallet, isNew: boolean]>;
40
40
  }>;
41
41
  }>;
42
42
  export type SmartWalletContractTerms = {
43
43
  agoricNames: ERef<NameHub>;
44
44
  board: ERef<import("@endo/exo").Guarded<{
45
45
  getId(value: any): string;
46
- getValue(id: string): any;
46
+ getValue(id: BoardId): any;
47
47
  lookup(...path: string[]): Promise<any>;
48
48
  has(val: any): boolean;
49
49
  ids(): string[];
@@ -67,7 +67,7 @@ export type AssetPublisher = {
67
67
  };
68
68
  export type isRevive = boolean;
69
69
  export type WalletReviver = {
70
- reviveWallet: (address: string) => Promise<import('./smartWallet.js').SmartWallet>;
70
+ reviveWallet: (address: string) => Promise<import("./smartWallet.js").SmartWallet>;
71
71
  ackWallet: (address: string) => isRevive;
72
72
  };
73
73
  export type start = typeof prepare;
@@ -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,GAAG,CAAC,wBAAwB,CAAC;;;;YAM7B,OAAO,kBAAkB,EAAE,OAAO;;QAuIvC;;;;;;;WAOG;oCANQ,MAAM,yHAGJ,OAAO,CAAC,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,OAAO,CAAC,OAAO,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACvF,SAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC1C;oBAgNU,OAAO,OAAO;6BA3NF,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,GAAG,CAAC,wBAAwB,CAAC;;;;YAM7B,OAAO,kBAAkB,EAAE,OAAO;;QAuIvC;;;;;;;WAOG;oCANQ,MAAM,yHAGJ,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,kBAAkB,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;GAmD3F;;;;;qBA1GgB,OAAO;;;;;;;;;;;;;;;;;oBA/GH,cAAc;;;;;uBAUtB,OAAO;4BACP;IACZ,YAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACvF,SAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC1C;oBAgNU,OAAO,OAAO;6BA3NF,cAAc"}