@agoric/smart-wallet 0.5.4-dev-2f90d3f.0.2f90d3f → 0.5.4-dev-12fdf15.0.12fdf15
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/utils.d.ts +14 -0
- package/src/utils.d.ts.map +1 -1
- package/src/utils.js +3 -0
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-12fdf15.0.12fdf15",
|
|
4
4
|
"description": "Wallet contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"lint:eslint": "yarn run -T eslint ."
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@agoric/casting": "0.4.3-dev-
|
|
22
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
23
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
21
|
+
"@agoric/casting": "0.4.3-dev-12fdf15.0.12fdf15",
|
|
22
|
+
"@agoric/cosmic-proto": "0.4.1-dev-12fdf15.0.12fdf15",
|
|
23
|
+
"@agoric/swingset-vat": "0.32.3-dev-12fdf15.0.12fdf15",
|
|
24
24
|
"@endo/bundle-source": "^4.1.2",
|
|
25
25
|
"@endo/captp": "^4.4.8",
|
|
26
26
|
"@endo/init": "^1.1.12",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"import-meta-resolve": "^4.1.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-dev-
|
|
33
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
34
|
-
"@agoric/store": "0.9.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/vats": "0.15.2-dev-
|
|
37
|
-
"@agoric/vow": "0.1.1-dev-
|
|
38
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
39
|
-
"@agoric/zone": "0.2.3-dev-
|
|
31
|
+
"@agoric/ertp": "0.16.3-dev-12fdf15.0.12fdf15",
|
|
32
|
+
"@agoric/internal": "0.3.3-dev-12fdf15.0.12fdf15",
|
|
33
|
+
"@agoric/notifier": "0.6.3-dev-12fdf15.0.12fdf15",
|
|
34
|
+
"@agoric/store": "0.9.3-dev-12fdf15.0.12fdf15",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-12fdf15.0.12fdf15",
|
|
36
|
+
"@agoric/vats": "0.15.2-dev-12fdf15.0.12fdf15",
|
|
37
|
+
"@agoric/vow": "0.1.1-dev-12fdf15.0.12fdf15",
|
|
38
|
+
"@agoric/zoe": "0.26.3-dev-12fdf15.0.12fdf15",
|
|
39
|
+
"@agoric/zone": "0.2.3-dev-12fdf15.0.12fdf15",
|
|
40
40
|
"@endo/errors": "^1.2.13",
|
|
41
41
|
"@endo/eventual-send": "^1.3.4",
|
|
42
42
|
"@endo/far": "^1.1.14",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": "^20.9 || ^22.11"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "12fdf156ed8e9a425cf8bcc9cdd1662bf4cad247"
|
|
81
81
|
}
|
package/src/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { makeCoalescer as makeWalletStateCoalescer };
|
|
1
2
|
export function coalesceUpdates(updates: ERef<Subscriber<UpdateRecord>>, invitationBrand?: Brand<"set">): {
|
|
2
3
|
invitationsReceived: Map<string, {
|
|
3
4
|
acceptedIn?: OfferId;
|
|
@@ -8,6 +9,19 @@ export function coalesceUpdates(updates: ERef<Subscriber<UpdateRecord>>, invitat
|
|
|
8
9
|
balances: Map<Brand, Amount>;
|
|
9
10
|
};
|
|
10
11
|
export function objectMapStoragePath(subscribers?: PublicSubscribers | TopicsRecord): ERef<Record<string, string>> | null;
|
|
12
|
+
/** @param {Brand<'set'>} [invitationBrand] */
|
|
13
|
+
declare function makeCoalescer(invitationBrand?: Brand<"set">): {
|
|
14
|
+
state: {
|
|
15
|
+
invitationsReceived: Map<string, {
|
|
16
|
+
acceptedIn?: OfferId;
|
|
17
|
+
description: string;
|
|
18
|
+
instance: Instance;
|
|
19
|
+
}>;
|
|
20
|
+
offerStatuses: Map<OfferId, OfferStatus>;
|
|
21
|
+
balances: Map<Brand, Amount>;
|
|
22
|
+
};
|
|
23
|
+
update: (updateRecord: UpdateRecord | {}) => void;
|
|
24
|
+
};
|
|
11
25
|
import type { UpdateRecord } from './smartWallet.js';
|
|
12
26
|
import type { Subscriber } from '@agoric/notifier';
|
|
13
27
|
import type { ERef } from '@agoric/vow';
|
package/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":";AAsHO,yCAHI,KAAK,WAAW,YAAY,CAAC,CAAC,oBAC9B,MAAM,KAAK,CAAC;;qBArFD,OAAO;qBACP,MAAM;kBACT,QAAQ;;;;EA8F1B;AAQM,mDAHI,iBAAiB,GAAG,YAAY,GAC9B,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAY/C;AA/HD,8CAA8C;AAC9C,iDADY,MAAM,KAAK,CAAC;;;yBAaF,OAAO;yBACP,MAAM;sBACT,QAAQ;;;;;2BAOd,YAAY,GAAG,EAAE;EA+D7B;kCAjG8B,kBAAkB;gCACpB,kBAAkB;0BAMxB,aAAa;2BAFZ,cAAc;6BANC,aAAa;8BAKzB,aAAa;iCALD,aAAa;4BAO3B,cAAc;uCAJH,YAAY;kCACjB,0CAA0C"}
|
package/src/utils.js
CHANGED
|
@@ -103,6 +103,9 @@ const makeCoalescer = (invitationBrand = undefined) => {
|
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
+
// For backwards compatibility, we export the same function under the old name.
|
|
107
|
+
export { makeCoalescer as makeWalletStateCoalescer };
|
|
108
|
+
|
|
106
109
|
/**
|
|
107
110
|
* Coalesce updates from a wallet UpdateRecord publication feed. Note that local
|
|
108
111
|
* state may not reflect the wallet's state if the initial updates are missed.
|