@agoric/smart-wallet 0.5.4-dev-9380cfe.0 → 0.5.4-dev-4f72580.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-9380cfe.0+9380cfe",
3
+ "version": "0.5.4-dev-4f72580.0+4f72580",
4
4
  "description": "Wallet contract",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -16,29 +16,29 @@
16
16
  "lint:eslint": "eslint ."
17
17
  },
18
18
  "devDependencies": {
19
- "@agoric/cosmic-proto": "0.3.1-dev-9380cfe.0+9380cfe",
20
- "@agoric/swingset-vat": "0.32.3-dev-9380cfe.0+9380cfe",
21
- "@endo/bundle-source": "^2.7.0",
22
- "@endo/captp": "^3.1.4",
23
- "@endo/init": "^0.5.59",
19
+ "@agoric/cosmic-proto": "0.3.1-dev-4f72580.0+4f72580",
20
+ "@agoric/swingset-vat": "0.32.3-dev-4f72580.0+4f72580",
21
+ "@endo/bundle-source": "^3.0.1",
22
+ "@endo/captp": "^4.0.1",
23
+ "@endo/init": "^1.0.1",
24
24
  "ava": "^5.3.0",
25
25
  "import-meta-resolve": "^2.2.1"
26
26
  },
27
27
  "dependencies": {
28
- "@agoric/assert": "0.6.1-dev-9380cfe.0+9380cfe",
29
- "@agoric/casting": "0.4.3-dev-9380cfe.0+9380cfe",
30
- "@agoric/ertp": "0.16.3-dev-9380cfe.0+9380cfe",
31
- "@agoric/internal": "0.3.3-dev-9380cfe.0+9380cfe",
32
- "@agoric/notifier": "0.6.3-dev-9380cfe.0+9380cfe",
33
- "@agoric/store": "0.9.3-dev-9380cfe.0+9380cfe",
34
- "@agoric/vat-data": "0.5.3-dev-9380cfe.0+9380cfe",
35
- "@agoric/vats": "0.15.2-dev-9380cfe.0+9380cfe",
36
- "@agoric/zoe": "0.26.3-dev-9380cfe.0+9380cfe",
37
- "@endo/eventual-send": "^0.17.5",
38
- "@endo/far": "^0.2.21",
39
- "@endo/marshal": "^0.8.8",
40
- "@endo/nat": "^4.1.30",
41
- "@endo/promise-kit": "^0.2.59"
28
+ "@agoric/assert": "0.6.1-dev-4f72580.0+4f72580",
29
+ "@agoric/casting": "0.4.3-dev-4f72580.0+4f72580",
30
+ "@agoric/ertp": "0.16.3-dev-4f72580.0+4f72580",
31
+ "@agoric/internal": "0.3.3-dev-4f72580.0+4f72580",
32
+ "@agoric/notifier": "0.6.3-dev-4f72580.0+4f72580",
33
+ "@agoric/store": "0.9.3-dev-4f72580.0+4f72580",
34
+ "@agoric/vat-data": "0.5.3-dev-4f72580.0+4f72580",
35
+ "@agoric/vats": "0.15.2-dev-4f72580.0+4f72580",
36
+ "@agoric/zoe": "0.26.3-dev-4f72580.0+4f72580",
37
+ "@endo/eventual-send": "^1.0.1",
38
+ "@endo/far": "^1.0.1",
39
+ "@endo/marshal": "^1.0.1",
40
+ "@endo/nat": "^5.0.1",
41
+ "@endo/promise-kit": "^1.0.1"
42
42
  },
43
43
  "files": [
44
44
  "src/"
@@ -69,5 +69,5 @@
69
69
  "typeCoverage": {
70
70
  "atLeast": 86.97
71
71
  },
72
- "gitHead": "9380cfe04661eaed6de168e65a96730a8798bffb"
72
+ "gitHead": "4f7258043c55cb9d60e1d50cbdddb712910950f4"
73
73
  }
@@ -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').InvitationMakers): (spec: InvitationSpec) => ERef<Invitation>;
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>;
2
2
  /**
3
3
  * Specify how to produce an invitation. See each type in the union for details.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"AAkEO,2CANI,KAAK,UAAU,CAAC,eAChB,KAAK,OAAO,cAAc,EAAE,OAAO,CAAC,mBACpC,MAAM,KAAK,CAAC,oBACZ,MAAM,KAAK,CAAC,2CACE,MAAM,KAAK,OAAO,SAAS,EAAE,gBAAgB,UAsFlD,cAAc,KAAK,KAAK,UAAU,CAAC,CAgBtD;;;;6BAvJY,4BAA4B,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,wBAAwB;;;;;;;2CAKtG;IACZ,MAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CACzD;;;;qCAMS;IACZ,MAAQ,EAAE,UAAU,CAAC;IACrB,QAAU,EAAE,QAAQ,CAAC;IACrB,qBAAuB,EAAE,MAAM,CAAC;IAChC,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;;;;;kCAGS;IACZ,MAAQ,EAAE,OAAO,CAAC;IAClB,QAAU,EAAE,QAAQ,CAAC;IACrB,WAAa,EAAE,MAAM,CAAC;CACnB;;;;uCAIS;IACZ,MAAQ,EAAE,YAAY,CAAC;IACvB,aAAe,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC/C,mBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;oCAKS,KAAK,iBAAiB,EAAE,aAAa,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["invitations.js"],"names":[],"mappings":"AAkEO,2CANI,KAAK,UAAU,CAAC,eAChB,KAAK,OAAO,cAAc,EAAE,OAAO,CAAC,mBACpC,MAAM,KAAK,CAAC,oBACZ,MAAM,KAAK,CAAC,2CACE,MAAM,KAAK,OAAO,YAAY,EAAE,gBAAgB,UAsFrD,cAAc,KAAK,KAAK,UAAU,CAAC,CAgBtD;;;;6BAvJY,4BAA4B,GAAG,sBAAsB,GAAG,mBAAmB,GAAG,wBAAwB;;;;;;;2CAKtG;IACZ,MAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;CACzD;;;;qCAMS;IACZ,MAAQ,EAAE,UAAU,CAAC;IACrB,QAAU,EAAE,QAAQ,CAAC;IACrB,qBAAuB,EAAE,MAAM,CAAC;IAChC,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;;;;;kCAGS;IACZ,MAAQ,EAAE,OAAO,CAAC;IAClB,QAAU,EAAE,QAAQ,CAAC;IACrB,WAAa,EAAE,MAAM,CAAC;CACnB;;;;uCAIS;IACZ,MAAQ,EAAE,YAAY,CAAC;IACvB,aAAe,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC/C,mBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB;oCAKS,KAAK,iBAAiB,EAAE,aAAa,GAAG,UAAU,CAAC"}
@@ -62,7 +62,7 @@ const MAX_PIPE_LENGTH = 2;
62
62
  * @param {ERef<import('@agoric/vats').NameHub>} agoricNames
63
63
  * @param {Brand<'set'>} invitationBrand
64
64
  * @param {Purse<'set'>} invitationsPurse
65
- * @param {(fromOfferId: string) => import('./types').InvitationMakers} getInvitationContinuation
65
+ * @param {(fromOfferId: string) => import('./types.js').InvitationMakers} getInvitationContinuation
66
66
  */
67
67
  export const makeInvitationsHelper = (
68
68
  zoe,
package/src/offers.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @typedef {{
6
6
  * id: OfferId,
7
- * invitationSpec: import('./invitations').InvitationSpec,
7
+ * invitationSpec: import('./invitations.js').InvitationSpec,
8
8
  * proposal: Proposal,
9
9
  * offerArgs?: unknown
10
10
  * }} OfferSpec
@@ -19,11 +19,11 @@ export function makeOfferExecutor({ zoe, depositFacet, invitationIssuer, powers,
19
19
  invitationIssuer: ERef<Issuer<'set'>>;
20
20
  powers: {
21
21
  logger: Pick<Console, 'info' | 'error'>;
22
- invitationFromSpec: (spec: import('./invitations').InvitationSpec) => ERef<Invitation>;
22
+ invitationFromSpec: (spec: import('./invitations.js').InvitationSpec) => ERef<Invitation>;
23
23
  purseForBrand: (brand: Brand) => Promise<Purse>;
24
24
  };
25
25
  onStatusChange: (status: OfferStatus) => void;
26
- onNewContinuingOffer: (offerId: string, invitationAmount: Amount<'set'>, invitationMakers: import('./types').InvitationMakers, publicSubscribers: import('./types').PublicSubscribers | import('@agoric/zoe/src/contractSupport').TopicsRecord) => Promise<void>;
26
+ onNewContinuingOffer: (offerId: string, invitationAmount: Amount<'set'>, invitationMakers: import('./types.js').InvitationMakers, publicSubscribers: import('./types.js').PublicSubscribers | import('@agoric/zoe/src/contractSupport/index.js').TopicsRecord) => Promise<void>;
27
27
  }): {
28
28
  /**
29
29
  * Take an offer description provided in capData, augment it with payments and call zoe.offer()
@@ -38,7 +38,7 @@ export function makeOfferExecutor({ zoe, depositFacet, invitationIssuer, powers,
38
38
  export type OfferId = number | string;
39
39
  export type OfferSpec = {
40
40
  id: OfferId;
41
- invitationSpec: import('./invitations').InvitationSpec;
41
+ invitationSpec: import('./invitations.js').InvitationSpec;
42
42
  proposal: Proposal;
43
43
  offerArgs?: unknown;
44
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["offers.js"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;;;GAOG;AAEH,kEAAkE;AAClE,+CAAgD;AAwBzC;SAVI,KAAK,UAAU,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AU,CAAC;+BAC7D,KAAK,KAAK,QAAQ,KAAK,CAAC;;6BACvB,WAAW,KAAK,IAAI;oCACnB,MAAM,oBAAoB,OAAO,KAAK,CAAC,oBAAoB,OAAO,YAAY,EAAE,gBAAgB,qBAAqB,OAAO,YAAY,EAAE,iBAAiB,GAAG,OAAO,0CAA0C,EAAE,YAAY,KAAM,QAAQ,IAAI,CAAC;;IAajQ;;;;;;;OAOG;4BAJQ,SAAS,2BACC,QAAQ,KAAK,IAAI,GACzB,QAAQ,IAAI,CAAC;EAwI7B;sBA7LY,MAAM,GAAG,MAAM;wBAIf;IACZ,EAAM,EAAE,OAAO,CAAC;IAChB,cAAkB,EAAE,OAAO,kBAAkB,EAAE,cAAc,CAAC;IAC9D,QAAY,EAAE,QAAQ,CAAC;IACvB,SAAa,CAAC,EAAE,OAAO,CAAA;CACpB;0BAOS,OAAO,aAAa,EAAE,SAAS,GAAG;IAC9C,KAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAQ,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAC;IAC/C,OAAS,CAAC,EAAE,mBAAmB,CAAC;CAC7B"}
package/src/offers.js CHANGED
@@ -9,7 +9,7 @@ import { makePaymentsHelper } from './payments.js';
9
9
  /**
10
10
  * @typedef {{
11
11
  * id: OfferId,
12
- * invitationSpec: import('./invitations').InvitationSpec,
12
+ * invitationSpec: import('./invitations.js').InvitationSpec,
13
13
  * proposal: Proposal,
14
14
  * offerArgs?: unknown
15
15
  * }} OfferSpec
@@ -35,10 +35,10 @@ export const UNPUBLISHED_RESULT = 'UNPUBLISHED';
35
35
  * @param {ERef<Issuer<'set'>>} opts.invitationIssuer
36
36
  * @param {object} opts.powers
37
37
  * @param {Pick<Console, 'info'| 'error'>} opts.powers.logger
38
- * @param {(spec: import('./invitations').InvitationSpec) => ERef<Invitation>} opts.powers.invitationFromSpec
38
+ * @param {(spec: import('./invitations.js').InvitationSpec) => ERef<Invitation>} opts.powers.invitationFromSpec
39
39
  * @param {(brand: Brand) => Promise<Purse>} opts.powers.purseForBrand
40
40
  * @param {(status: OfferStatus) => void} opts.onStatusChange
41
- * @param {(offerId: string, invitationAmount: Amount<'set'>, invitationMakers: import('./types').InvitationMakers, publicSubscribers: import('./types').PublicSubscribers | import('@agoric/zoe/src/contractSupport').TopicsRecord ) => Promise<void>} opts.onNewContinuingOffer
41
+ * @param {(offerId: string, invitationAmount: Amount<'set'>, invitationMakers: import('./types.js').InvitationMakers, publicSubscribers: import('./types.js').PublicSubscribers | import('@agoric/zoe/src/contractSupport/index.js').TopicsRecord ) => Promise<void>} opts.onNewContinuingOffer
42
42
  */
43
43
  export const makeOfferExecutor = ({
44
44
  zoe,
@@ -124,11 +124,11 @@ export type BrandDescriptor = {
124
124
  brand: Brand;
125
125
  displayInfo: DisplayInfo;
126
126
  issuer: Issuer;
127
- petname: import('./types').Petname;
127
+ petname: import('./types.js').Petname;
128
128
  };
129
129
  export type UniqueParams = {
130
130
  address: string;
131
- bank: ERef<import('@agoric/vats/src/vat-bank').Bank>;
131
+ bank: ERef<import('@agoric/vats/src/vat-bank.js').Bank>;
132
132
  currentStorageNode: StorageNode;
133
133
  invitationPurse: Purse<'set'>;
134
134
  walletStorageNode: StorageNode;
@@ -152,7 +152,7 @@ export type SharedParams = {
152
152
  export type State = ImmutableState & MutableState;
153
153
  export type ImmutableState = Readonly<UniqueParams & {
154
154
  paymentQueues: MapStore<Brand, Array<Payment>>;
155
- offerToInvitationMakers: MapStore<string, import('./types').InvitationMakers>;
155
+ offerToInvitationMakers: MapStore<string, import('./types.js').InvitationMakers>;
156
156
  offerToPublicSubscriberPaths: MapStore<string, Record<string, string>>;
157
157
  offerToUsedInvitation: MapStore<string, Amount>;
158
158
  purseBalances: MapStore<Purse, Amount>;
@@ -1 +1 @@
1
- {"version":3,"file":"smartWallet.d.ts","sourceRoot":"","sources":["smartWallet.js"],"names":[],"mappings":"AAgMA,kDAAmD;AAi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GAAG,YAAY;6BAM7B,SAAS,YAAY,GAAG;IACpC,aAAiB,EAAE,SAAS,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IACnD,uBAA2B,EAAE,SAAS,MAAM,EAAE,OAAO,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACrF,4BAAgC,EAAE,SAAS,MAAM,EAAE,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3E,qBAAyB,EAAE,SAAS,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,aAAiB,EAAE,SAAS,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3C,iBAAqB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACvG,kBAAsB,EAAE,OAAO,6CAA6C,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC/G,UAAc,EAAE,SAAS,OAAO,aAAa,EAAE,OAAO,EAAE,OAAO,aAAa,EAAE,WAAW,CAAC,CAAC;IAC3F,cAAkB,EAAE,aAAa,OAAO,aAAa,EAAE,OAAO,EAAE,SAAS,OAAO,CAAC,CAAC,CAAC;CAChF,CAAC;0BAEQ,eAAe,GAAG;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE;2BAClC,EACT;0BA6mBU,QAAQ,WAAW,WAAW,yBAAyB,CAAC,CAAC,CAAC"}
@@ -106,7 +106,7 @@ const trace = makeTracer('SmrtWlt');
106
106
  * brand: Brand,
107
107
  * displayInfo: DisplayInfo,
108
108
  * issuer: Issuer,
109
- * petname: import('./types').Petname
109
+ * petname: import('./types.js').Petname
110
110
  * }} BrandDescriptor
111
111
  * For use by clients to describe brands to users. Includes `displayInfo` to save a remote call.
112
112
  */
@@ -114,7 +114,7 @@ const trace = makeTracer('SmrtWlt');
114
114
  /**
115
115
  * @typedef {{
116
116
  * address: string,
117
- * bank: ERef<import('@agoric/vats/src/vat-bank').Bank>,
117
+ * bank: ERef<import('@agoric/vats/src/vat-bank.js').Bank>,
118
118
  * currentStorageNode: StorageNode,
119
119
  * invitationPurse: Purse<'set'>,
120
120
  * walletStorageNode: StorageNode,
@@ -139,7 +139,7 @@ const trace = makeTracer('SmrtWlt');
139
139
  *
140
140
  * @typedef {Readonly<UniqueParams & {
141
141
  * paymentQueues: MapStore<Brand, Array<Payment>>,
142
- * offerToInvitationMakers: MapStore<string, import('./types').InvitationMakers>,
142
+ * offerToInvitationMakers: MapStore<string, import('./types.js').InvitationMakers>,
143
143
  * offerToPublicSubscriberPaths: MapStore<string, Record<string, string>>,
144
144
  * offerToUsedInvitation: MapStore<string, Amount>,
145
145
  * purseBalances: MapStore<Purse, Amount>,
@@ -621,7 +621,7 @@ export const prepareSmartWallet = (baggage, shared) => {
621
621
  }
622
622
  }
623
623
  },
624
- /** @type {(offerId: string, invitationAmount: Amount<'set'>, invitationMakers: import('./types').InvitationMakers, publicSubscribers?: import('./types').PublicSubscribers | import('@agoric/zoe/src/contractSupport').TopicsRecord) => Promise<void>} */
624
+ /** @type {(offerId: string, invitationAmount: Amount<'set'>, invitationMakers: import('./types.js').InvitationMakers, publicSubscribers?: import('./types.js').PublicSubscribers | import('@agoric/zoe/src/contractSupport/index.js').TopicsRecord) => Promise<void>} */
625
625
  onNewContinuingOffer: async (
626
626
  offerId,
627
627
  invitationAmount,
package/src/utils.d.ts CHANGED
@@ -1,26 +1,26 @@
1
1
  export const NO_SMART_WALLET_ERROR: "no smart wallet";
2
2
  export function makeWalletStateCoalescer(invitationBrand?: Brand<"set"> | undefined): {
3
3
  state: {
4
- invitationsReceived: Map<import("./offers").OfferId, {
5
- acceptedIn: import('./offers').OfferId;
4
+ invitationsReceived: Map<import("./offers.js").OfferId, {
5
+ acceptedIn: import('./offers.js').OfferId;
6
6
  description: string;
7
7
  instance: Instance;
8
8
  }>;
9
- offerStatuses: Map<import("./offers").OfferId, import("./offers").OfferStatus>;
9
+ offerStatuses: Map<import("./offers.js").OfferId, import("./offers.js").OfferStatus>;
10
10
  balances: Map<Brand<AssetKind>, Amount<AssetKind>>;
11
11
  };
12
- update: (updateRecord: import('./smartWallet').UpdateRecord | {}) => void;
12
+ update: (updateRecord: import('./smartWallet.js').UpdateRecord | {}) => void;
13
13
  };
14
- export function coalesceUpdates(updates: ERef<Subscriber<import('./smartWallet').UpdateRecord>>, invitationBrand?: Brand<"set"> | undefined): {
15
- invitationsReceived: Map<import("./offers").OfferId, {
16
- acceptedIn: import('./offers').OfferId;
14
+ export function coalesceUpdates(updates: ERef<Subscriber<import('./smartWallet.js').UpdateRecord>>, invitationBrand?: Brand<"set"> | undefined): {
15
+ invitationsReceived: Map<import("./offers.js").OfferId, {
16
+ acceptedIn: import('./offers.js').OfferId;
17
17
  description: string;
18
18
  instance: Instance;
19
19
  }>;
20
- offerStatuses: Map<import("./offers").OfferId, import("./offers").OfferStatus>;
20
+ offerStatuses: Map<import("./offers.js").OfferId, import("./offers.js").OfferStatus>;
21
21
  balances: Map<Brand<AssetKind>, Amount<AssetKind>>;
22
22
  };
23
23
  export function assertHasData(follower: import('@agoric/casting').Follower<any>): Promise<void>;
24
- export function objectMapStoragePath(subscribers?: import("@agoric/zoe/src/contractSupport").TopicsRecord | import("./types.js").PublicSubscribers | undefined): ERef<Record<string, string>> | null;
24
+ export function objectMapStoragePath(subscribers?: import("@agoric/zoe/src/contractSupport/topics.js").TopicsRecord | import("./types.js").PublicSubscribers | undefined): ERef<Record<string, string>> | null;
25
25
  export type CoalescedWalletState = ReturnType<typeof makeWalletStateCoalescer>['state'];
26
26
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAKA,sDAAuD;AAKhD;;;wBASmD,OAAO,UAAU,EAAE,OAAO;yBAAe,MAAM;sBAAY,QAAQ;;;;;2BAI/G,OAAO,eAAe,EAAE,YAAY,GAAG,EAAE;EA8DtD;AAaM,yCAHI,KAAK,WAAW,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC;;oBA5EP,OAAO,UAAU,EAAE,OAAO;qBAAe,MAAM;kBAAY,QAAQ;;;;EAwF5H;AAMM,wCAHI,OAAO,iBAAiB,EAAE,QAAQ,CAAC,GAAG,CAAC,iBAYjD;AAQM,iKAFM,KAAK,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAW/C;mCArDa,WAAW,+BAA+B,CAAC,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAKA,sDAAuD;AAKhD;;;wBASsD,OAAO,aAAa,EAAE,OAAO;yBAAe,MAAM;sBAAY,QAAQ;;;;;2BAIrH,OAAO,kBAAkB,EAAE,YAAY,GAAG,EAAE;EA8DzD;AAaM,yCAHI,KAAK,WAAW,OAAO,kBAAkB,EAAE,YAAY,CAAC,CAAC;;oBA5EP,OAAO,aAAa,EAAE,OAAO;qBAAe,MAAM;kBAAY,QAAQ;;;;EAwFlI;AAMM,wCAHI,OAAO,iBAAiB,EAAE,QAAQ,CAAC,GAAG,CAAC,iBAYjD;AAQM,2KAFM,KAAK,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAW/C;mCArDa,WAAW,+BAA+B,CAAC,CAAC,OAAO,CAAC"}
package/src/utils.js CHANGED
@@ -9,7 +9,7 @@ const trace = makeTracer('WUTIL', false);
9
9
 
10
10
  /** @param {Brand<'set'>} [invitationBrand] */
11
11
  export const makeWalletStateCoalescer = (invitationBrand = undefined) => {
12
- /** @type {Map<import('./offers').OfferId, import('./offers').OfferStatus>} */
12
+ /** @type {Map<import('./offers.js').OfferId, import('./offers.js').OfferStatus>} */
13
13
  const offerStatuses = new Map();
14
14
  /** @type {Map<Brand, Amount>} */
15
15
  const balances = new Map();
@@ -17,11 +17,11 @@ export const makeWalletStateCoalescer = (invitationBrand = undefined) => {
17
17
  /**
18
18
  * keyed by description; xxx assumes unique
19
19
  *
20
- * @type {Map<import('./offers').OfferId, { acceptedIn: import('./offers').OfferId, description: string, instance: Instance }>}
20
+ * @type {Map<import('./offers.js').OfferId, { acceptedIn: import('./offers.js').OfferId, description: string, instance: Instance }>}
21
21
  */
22
22
  const invitationsReceived = new Map();
23
23
 
24
- /** @param {import('./smartWallet').UpdateRecord | {}} updateRecord newer than previous */
24
+ /** @param {import('./smartWallet.js').UpdateRecord | {}} updateRecord newer than previous */
25
25
  const update = updateRecord => {
26
26
  if (!('updated' in updateRecord)) {
27
27
  return;
@@ -93,7 +93,7 @@ export const makeWalletStateCoalescer = (invitationBrand = undefined) => {
93
93
  * If this proves to be a problem we can add an option to this or a related
94
94
  * utility to reset state from RPC.
95
95
  *
96
- * @param {ERef<Subscriber<import('./smartWallet').UpdateRecord>>} updates
96
+ * @param {ERef<Subscriber<import('./smartWallet.js').UpdateRecord>>} updates
97
97
  * @param {Brand<'set'>} [invitationBrand]
98
98
  */
99
99
  export const coalesceUpdates = (updates, invitationBrand) => {
@@ -125,7 +125,7 @@ export const assertHasData = async follower => {
125
125
  /**
126
126
  * Handles the case of falsy argument so the caller can consistently await.
127
127
  *
128
- * @param {import('./types.js').PublicSubscribers | import('@agoric/zoe/src/contractSupport').TopicsRecord} [subscribers]
128
+ * @param {import('./types.js').PublicSubscribers | import('@agoric/zoe/src/contractSupport/index.js').TopicsRecord} [subscribers]
129
129
  * @returns {ERef<Record<string, string>> | null}
130
130
  */
131
131
  export const objectMapStoragePath = subscribers => {
@@ -13,13 +13,13 @@ export function makeAssetRegistry(assetPublisher: AssetPublisher): {
13
13
  brand: Brand;
14
14
  displayInfo: DisplayInfo;
15
15
  issuer: Issuer;
16
- petname: import('./types').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').Petname;
22
+ petname: import('./types.js').Petname;
23
23
  }>;
24
24
  };
25
25
  export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
@@ -30,13 +30,13 @@ export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
30
30
  creatorFacet: {
31
31
  /**
32
32
  * @param {string} address
33
- * @param {ERef<import('@agoric/vats/src/vat-bank').Bank>} bank
34
- * @param {ERef<import('@agoric/vats/').NameAdmin>} namesByAddressAdmin
35
- * @returns {Promise<[wallet: import('./smartWallet').SmartWallet, isNew: boolean]>} wallet
33
+ * @param {ERef<import('@agoric/vats/src/vat-bank.js').Bank>} bank
34
+ * @param {ERef<import('@agoric/vats/src/types.js').NameAdmin>} namesByAddressAdmin
35
+ * @returns {Promise<[wallet: import('./smartWallet.js').SmartWallet, isNew: boolean]>} wallet
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').Bank>, namesByAddressAdmin: ERef<import('@agoric/vats/').NameAdmin>): Promise<[wallet: {
39
+ provideSmartWallet(address: string, bank: ERef<import('@agoric/vats/src/vat-bank.js').Bank>, namesByAddressAdmin: ERef<import('@agoric/vats/src/types.js').NameAdmin>): Promise<[wallet: {
40
40
  handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
41
41
  getDepositFacet(): {
42
42
  receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
@@ -63,13 +63,13 @@ export function prepare(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
63
63
  } & import("@endo/eventual-send").RemotableBrand<{}, {
64
64
  /**
65
65
  * @param {string} address
66
- * @param {ERef<import('@agoric/vats/src/vat-bank').Bank>} bank
67
- * @param {ERef<import('@agoric/vats/').NameAdmin>} namesByAddressAdmin
68
- * @returns {Promise<[wallet: import('./smartWallet').SmartWallet, isNew: boolean]>} wallet
66
+ * @param {ERef<import('@agoric/vats/src/vat-bank.js').Bank>} bank
67
+ * @param {ERef<import('@agoric/vats/src/types.js').NameAdmin>} namesByAddressAdmin
68
+ * @returns {Promise<[wallet: import('./smartWallet.js').SmartWallet, isNew: boolean]>} wallet
69
69
  * along with a flag to distinguish between looking up an existing wallet
70
70
  * and creating a new one.
71
71
  */
72
- provideSmartWallet(address: string, bank: ERef<import('@agoric/vats/src/vat-bank').Bank>, namesByAddressAdmin: ERef<import('@agoric/vats/').NameAdmin>): Promise<[wallet: {
72
+ provideSmartWallet(address: string, bank: ERef<import('@agoric/vats/src/vat-bank.js').Bank>, namesByAddressAdmin: ERef<import('@agoric/vats/src/types.js').NameAdmin>): Promise<[wallet: {
73
73
  handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
74
74
  getDepositFacet(): {
75
75
  receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
@@ -102,11 +102,11 @@ export type SmartWalletContractTerms = {
102
102
  };
103
103
  export type NameHub = import('@agoric/vats').NameHub;
104
104
  export type AssetPublisher = {
105
- getAssetSubscription: () => ERef<IterableEachTopic<import('@agoric/vats/src/vat-bank').AssetDescriptor>>;
105
+ getAssetSubscription: () => ERef<IterableEachTopic<import('@agoric/vats/src/vat-bank.js').AssetDescriptor>>;
106
106
  };
107
107
  export type isRevive = boolean;
108
108
  export type WalletReviver = {
109
- reviveWallet: (address: string) => Promise<import('./smartWallet').SmartWallet>;
109
+ reviveWallet: (address: string) => Promise<import('./smartWallet.js').SmartWallet>;
110
110
  ackWallet: (address: string) => isRevive;
111
111
  };
112
112
  export type start = typeof prepare;
@@ -1 +1 @@
1
- {"version":3,"file":"walletFactory.d.ts","sourceRoot":"","sources":["walletFactory.js"],"names":[],"mappings":";;;;;AAwBA,gEAKE;AAUK,6CAJI,MAAM,UACN,OAAO,kBAAkB,EAAE,WAAW,uBACtC,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC,oBAehD;AAWM,kDAFI,cAAc;IAwCrB,2BAA2B;iBAAf,KAAK;IAEjB,2BAA2B;iBAAf,KAAK;eApCP,KAAK;qBACC,WAAW;gBACh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ACL,OAAO,YAAY,EAAE,OAAO;;;eAH9B,KAAK;qBACC,WAAW;gBAChB,MAAM;iBACL,OAAO,YAAY,EAAE,OAAO;;EAsC3C;AAmCM,6BARI,IAAI,wBAAwB,CAAC;iBAEtB,KAAK,WAAW,CAAC;;;YAIxB,OAAO,kBAAkB,EAAE,OAAO;;QA6GvC;;;;;;;WAOG;oCANQ,MAAM,QACN,KAAK,OAAO,8BAA8B,EAAE,IAAI,CAAC,uBACjD,KAAK,OAAO,2BAA2B,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;QAH9D;;;;;;;WAOG;oCANQ,MAAM,QACN,KAAK,OAAO,8BAA8B,EAAE,IAAI,CAAC,uBACjD,KAAK,OAAO,2BAA2B,EAAE,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;GAoDnE;uCAlMY;IACZ,WAAe,EAAE,KAAK,OAAO,CAAC,CAAC;IAC/B,KAAS,EAAE,KAAK,OAAO,cAAc,EAAE,KAAK,CAAC,CAAC;IAC9C,cAAkB,EAAE,cAAc,CAAC;CAChC;sBAES,OAAO,cAAc,EAAE,OAAO;6BAE9B;IACZ,oBAAwB,EAAE,MAAM,KAChC,kBAAwB,OAAO,8BAA8B,EAAE,eAAe,CAAC,CAAC,CAAA;CAC7E;uBAES,OAAO;;4BAES,MAAM,KAAK,QAAQ,OAAO,kBAAkB,EAAE,WAAW,CAAC;yBAC7D,MAAM,KAAK,QAAQ;;oBAuL/B,cAAc"}
@@ -68,7 +68,7 @@ export const makeAssetRegistry = assetPublisher => {
68
68
  * brand: Brand,
69
69
  * displayInfo: DisplayInfo,
70
70
  * issuer: Issuer,
71
- * petname: import('./types').Petname
71
+ * petname: import('./types.js').Petname
72
72
  * }} BrandDescriptor
73
73
  * For use by clients to describe brands to users. Includes `displayInfo` to save a remote call.
74
74
  */
@@ -119,12 +119,12 @@ export const makeAssetRegistry = assetPublisher => {
119
119
  *
120
120
  * @typedef {{
121
121
  * getAssetSubscription: () => ERef<
122
- * IterableEachTopic<import('@agoric/vats/src/vat-bank').AssetDescriptor>>
122
+ * IterableEachTopic<import('@agoric/vats/src/vat-bank.js').AssetDescriptor>>
123
123
  * }} AssetPublisher
124
124
  *
125
125
  * @typedef {boolean} isRevive
126
126
  * @typedef {{
127
- * reviveWallet: (address: string) => Promise<import('./smartWallet').SmartWallet>,
127
+ * reviveWallet: (address: string) => Promise<import('./smartWallet.js').SmartWallet>,
128
128
  * ackWallet: (address: string) => isRevive,
129
129
  * }} WalletReviver
130
130
  */
@@ -250,16 +250,16 @@ export const prepare = async (zcf, privateArgs, baggage) => {
250
250
  {
251
251
  /**
252
252
  * @param {string} address
253
- * @param {ERef<import('@agoric/vats/src/vat-bank').Bank>} bank
254
- * @param {ERef<import('@agoric/vats/').NameAdmin>} namesByAddressAdmin
255
- * @returns {Promise<[wallet: import('./smartWallet').SmartWallet, isNew: boolean]>} wallet
253
+ * @param {ERef<import('@agoric/vats/src/vat-bank.js').Bank>} bank
254
+ * @param {ERef<import('@agoric/vats/src/types.js').NameAdmin>} namesByAddressAdmin
255
+ * @returns {Promise<[wallet: import('./smartWallet.js').SmartWallet, isNew: boolean]>} wallet
256
256
  * along with a flag to distinguish between looking up an existing wallet
257
257
  * and creating a new one.
258
258
  */
259
259
  provideSmartWallet(address, bank, namesByAddressAdmin) {
260
260
  let isNew = false;
261
261
 
262
- /** @type {(address: string) => Promise<import('./smartWallet').SmartWallet>} */
262
+ /** @type {(address: string) => Promise<import('./smartWallet.js').SmartWallet>} */
263
263
  const maker = async _address => {
264
264
  const invitationPurse = await E(invitationIssuer).makeEmptyPurse();
265
265
  const walletStorageNode = E(storageNode).makeChildNode(address);