@agoric/smart-wallet 0.5.4-dev-12ce494.0 → 0.5.4-dev-5d18974.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 +14 -14
- package/src/offerWatcher.d.ts +3 -1
- package/src/offerWatcher.d.ts.map +1 -1
- package/src/offerWatcher.js +2 -1
- package/src/types.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/smart-wallet",
|
|
3
|
-
"version": "0.5.4-dev-
|
|
3
|
+
"version": "0.5.4-dev-5d18974.0+5d18974",
|
|
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-
|
|
20
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
19
|
+
"@agoric/cosmic-proto": "0.4.1-dev-5d18974.0+5d18974",
|
|
20
|
+
"@agoric/swingset-vat": "0.32.3-dev-5d18974.0+5d18974",
|
|
21
21
|
"@endo/bundle-source": "^3.2.3",
|
|
22
22
|
"@endo/captp": "^4.2.0",
|
|
23
23
|
"@endo/init": "^1.1.2",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"import-meta-resolve": "^2.2.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agoric/casting": "0.4.3-dev-
|
|
29
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
30
|
-
"@agoric/internal": "0.3.3-dev-
|
|
31
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
32
|
-
"@agoric/store": "0.9.3-dev-
|
|
33
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
34
|
-
"@agoric/vats": "0.15.2-dev-
|
|
35
|
-
"@agoric/vow": "0.1.1-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
28
|
+
"@agoric/casting": "0.4.3-dev-5d18974.0+5d18974",
|
|
29
|
+
"@agoric/ertp": "0.16.3-dev-5d18974.0+5d18974",
|
|
30
|
+
"@agoric/internal": "0.3.3-dev-5d18974.0+5d18974",
|
|
31
|
+
"@agoric/notifier": "0.6.3-dev-5d18974.0+5d18974",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-5d18974.0+5d18974",
|
|
33
|
+
"@agoric/vat-data": "0.5.3-dev-5d18974.0+5d18974",
|
|
34
|
+
"@agoric/vats": "0.15.2-dev-5d18974.0+5d18974",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-5d18974.0+5d18974",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-5d18974.0+5d18974",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-5d18974.0+5d18974",
|
|
38
38
|
"@endo/errors": "^1.2.2",
|
|
39
39
|
"@endo/eventual-send": "^1.2.2",
|
|
40
40
|
"@endo/far": "^1.1.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typeCoverage": {
|
|
72
72
|
"atLeast": 94.36
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "5d18974dc0f204abf085a9ef1f95c8b7e890335f"
|
|
75
75
|
}
|
package/src/offerWatcher.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export function makeWatchOfferOutcomes(vowTools: VowTools): (watchers: OutcomeWatchers, seat: UserSeat) => Promise<any>;
|
|
2
|
-
export function prepareOfferWatcher(baggage: Baggage, vowTools: VowTools): (walletHelper: any, deposit:
|
|
2
|
+
export function prepareOfferWatcher(baggage: Baggage, vowTools: VowTools): (walletHelper: any, deposit: {
|
|
3
|
+
receive: (payment: Payment) => Promise<Amount>;
|
|
4
|
+
}, offerSpec: OfferSpec, address: string, invitationAmount: import("@agoric/ertp/src/types.js").SetAmount<import("@endo/patterns").Key>, seatRef: UserSeat<unknown>) => import("@endo/exo").GuardedKit<{
|
|
3
5
|
helper: {
|
|
4
6
|
/**
|
|
5
7
|
* @param {Record<string, unknown>} offerStatusUpdates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offerWatcher.d.ts","sourceRoot":"","sources":["offerWatcher.js"],"names":[],"mappings":"AAwEO,iDADK,QAAQ,cAKP,eAAe,QACf,QAAQ,kBAYpB;AAmCM,6CAHI,OAAO,YACP,QAAQ,
|
|
1
|
+
{"version":3,"file":"offerWatcher.d.ts","sourceRoot":"","sources":["offerWatcher.js"],"names":[],"mappings":"AAwEO,iDADK,QAAQ,cAKP,eAAe,QACf,QAAQ,kBAYpB;AAmCM,6CAHI,OAAO,YACP,QAAQ;aAWO,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC;+KAwFpD,WAAW;;QAxEd;;WAEG;yCADQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;QAQlC;;;;;WAKG;sCAJQ,MAAM,oBACN,MAAM,CAAC,KAAK,CAAC,oBACb,OAAO,YAAY,EAAE,gBAAgB,qBACrC,OAAO,YAAY,EAAE,iBAAiB;QAkBjD,uDAAuD;8BAA3C,QAAQ,GAAG,qBAAqB;QAoC5C;;;;;;WAMG;yBADQ,KAAK;;IAclB,gDAAgD;oBAArC,eAAe,CAAC,gBAAgB,CAAC;IA+B5C,+CAA+C;mBAApC,eAAe,CAAC,eAAe,CAAC;IA0B3C,iDAAiD;qBAAtC,eAAe,CAAC,iBAAiB,CAAC;GA2BlD;;;;gCAvSkB,CAAC,oBACP,eAAe,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;8BAI7B;IACZ,aAAiB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACjD,eAAmB,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACjD,cAAkB,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;CAC5D;+BAiSU,UAAU,CAAC,OAAO,mBAAmB,CAAC;2BACtC,UAAU,CAAC,gBAAgB,CAAC;8BA/SV,aAAa;6BADnB,kBAAkB;+BAJhB,aAAa;8BAEd,kBAAkB;2CADL,YAAY;oCAEnB,4BAA4B"}
|
package/src/offerWatcher.js
CHANGED
|
@@ -128,9 +128,10 @@ export const prepareOfferWatcher = (baggage, vowTools) => {
|
|
|
128
128
|
baggage,
|
|
129
129
|
'OfferWatcher',
|
|
130
130
|
offerWatcherGuard,
|
|
131
|
+
// XXX walletHelper is `any` because the helper facet is too nested to export its type
|
|
131
132
|
/**
|
|
132
133
|
* @param {any} walletHelper
|
|
133
|
-
* @param {
|
|
134
|
+
* @param {{ receive: (payment: Payment) => Promise<Amount> }} deposit
|
|
134
135
|
* @param {OfferSpec} offerSpec
|
|
135
136
|
* @param {string} address
|
|
136
137
|
* @param {Amount<'set'>} invitationAmount
|
package/src/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type { CapData } from '@endo/marshal';
|
|
|
10
10
|
import type { agoric } from '@agoric/cosmic-proto';
|
|
11
11
|
import type { AgoricNamesRemotes } from '@agoric/vats/tools/board-utils.js';
|
|
12
12
|
import type { StoredFacet } from '@agoric/internal/src/lib-chainStorage.js';
|
|
13
|
+
import type { PublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
13
14
|
import type { OfferSpec } from './offers.js';
|
|
14
15
|
|
|
15
16
|
declare const CapDataShape: unique symbol;
|
|
@@ -27,7 +28,7 @@ export type InvitationMakers = Record<
|
|
|
27
28
|
(...args: any[]) => Promise<Invitation>
|
|
28
29
|
>;
|
|
29
30
|
|
|
30
|
-
export type PublicSubscribers = Record<string,
|
|
31
|
+
export type PublicSubscribers = Record<string, PublicTopic>;
|
|
31
32
|
|
|
32
33
|
export interface ContinuingOfferResult {
|
|
33
34
|
invitationMakers: InvitationMakers;
|