@agoric/wallet-backend 0.14.4-dev-1145be3.0.1145be3 → 0.14.4-dev-b084a06.0.b084a06

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/wallet-backend",
3
- "version": "0.14.4-dev-1145be3.0.1145be3",
3
+ "version": "0.14.4-dev-b084a06.0.b084a06",
4
4
  "description": "Wallet backend",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -14,23 +14,23 @@
14
14
  "lint:eslint": "yarn run -T eslint ."
15
15
  },
16
16
  "devDependencies": {
17
- "@agoric/vats": "0.15.2-dev-1145be3.0.1145be3",
17
+ "@agoric/vats": "0.15.2-dev-b084a06.0.b084a06",
18
18
  "@endo/bundle-source": "^4.1.2",
19
19
  "@endo/far": "^1.1.14",
20
20
  "@endo/init": "^1.1.12",
21
21
  "ava": "^6.4.1"
22
22
  },
23
23
  "dependencies": {
24
- "@agoric/cache": "0.3.3-dev-1145be3.0.1145be3",
25
- "@agoric/ertp": "0.16.3-dev-1145be3.0.1145be3",
26
- "@agoric/internal": "0.3.3-dev-1145be3.0.1145be3",
27
- "@agoric/notifier": "0.6.3-dev-1145be3.0.1145be3",
28
- "@agoric/smart-wallet": "0.5.4-dev-1145be3.0.1145be3",
29
- "@agoric/store": "0.9.3-dev-1145be3.0.1145be3",
30
- "@agoric/time": "0.3.3-dev-1145be3.0.1145be3",
31
- "@agoric/vat-data": "0.5.3-dev-1145be3.0.1145be3",
32
- "@agoric/zoe": "0.26.3-dev-1145be3.0.1145be3",
33
- "@agoric/zone": "0.2.3-dev-1145be3.0.1145be3",
24
+ "@agoric/cache": "0.3.3-dev-b084a06.0.b084a06",
25
+ "@agoric/ertp": "0.16.3-dev-b084a06.0.b084a06",
26
+ "@agoric/internal": "0.3.3-dev-b084a06.0.b084a06",
27
+ "@agoric/notifier": "0.6.3-dev-b084a06.0.b084a06",
28
+ "@agoric/smart-wallet": "0.5.4-dev-b084a06.0.b084a06",
29
+ "@agoric/store": "0.9.3-dev-b084a06.0.b084a06",
30
+ "@agoric/time": "0.3.3-dev-b084a06.0.b084a06",
31
+ "@agoric/vat-data": "0.5.3-dev-b084a06.0.b084a06",
32
+ "@agoric/zoe": "0.26.3-dev-b084a06.0.b084a06",
33
+ "@agoric/zone": "0.2.3-dev-b084a06.0.b084a06",
34
34
  "@endo/errors": "^1.2.13",
35
35
  "@endo/eventual-send": "^1.3.4",
36
36
  "@endo/marshal": "^1.8.0",
@@ -70,5 +70,5 @@
70
70
  "engines": {
71
71
  "node": "^20.9 || ^22.11"
72
72
  },
73
- "gitHead": "1145be333a0554d3bae3c35a227347441ddf5b5e"
73
+ "gitHead": "b084a067b866127f7d05c66e6865750132c4a7d8"
74
74
  }
package/src/actions.js CHANGED
@@ -4,6 +4,10 @@ import { makePromiseKit } from '@endo/promise-kit';
4
4
  import { Far } from '@endo/marshal';
5
5
  import { E } from '@endo/eventual-send';
6
6
 
7
+ /**
8
+ * @import {Purse} from '@agoric/ertp';
9
+ */
10
+
7
11
  export const makePaymentActions = ({
8
12
  getBrandRecord,
9
13
  getPurseByPetname,
package/src/date-now.js CHANGED
@@ -2,6 +2,10 @@ import { E } from '@endo/eventual-send';
2
2
  import { observeNotifier } from '@agoric/notifier';
3
3
  import { makePromiseKit } from '@endo/promise-kit';
4
4
 
5
+ /**
6
+ * @import {PromiseRecord} from '@endo/promise-kit';
7
+ */
8
+
5
9
  export const DEFAULT_TIMER_SERVICE_POLL_INTERVAL = 60_000n;
6
10
  export const DEFAULT_TIMER_DEVICE_SCALE = 1;
7
11
 
@@ -5,6 +5,10 @@ import { AmountMath } from '@agoric/ertp';
5
5
 
6
6
  /**
7
7
  * @import {Board} from '@agoric/vats';
8
+ * @import {Amount} from '@agoric/ertp';
9
+ * @import {ZoeService} from '@agoric/zoe';
10
+ * @import {Invitation} from '@agoric/zoe';
11
+ * @import {Instance} from '@agoric/zoe';
8
12
  */
9
13
 
10
14
  export const makeId = (dappOrigin, rawId) => `${dappOrigin}#${rawId}`;
@@ -1,6 +1,13 @@
1
1
  // @ts-check
2
2
 
3
- /** @import {PursesJSONState, RecordMetadata} from './types-ambient.js'; */
3
+ /**
4
+ * @import {PursesJSONState, RecordMetadata} from './types-ambient.js';
5
+ * @import {ERef} from '@agoric/vow';
6
+ * @import {LegacyWeakMap} from '@agoric/store';
7
+ * @import {WeakMapStore} from '@agoric/store';
8
+ * @import {MapStore} from '@agoric/store';
9
+ */
10
+ /** @import {Purse} from '@agoric/ertp'; */
4
11
 
5
12
  /**
6
13
  * @typedef {object} PursesAddedState
@@ -13,7 +20,7 @@
13
20
  * @import {Key} from '@endo/patterns';
14
21
  * @import {Coordinator} from '@agoric/cache';
15
22
  * @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js';
16
- * @import {AmountValue} from '@agoric/ertp/src/types.js';
23
+ * @import {Amount, AmountValue, Brand, Issuer, Payment} from '@agoric/ertp/src/types.js';
17
24
  * @import {ZoeIssuerRecord} from '@agoric/zoe';
18
25
  * @import {WalletRoot} from './lib-wallet.js';
19
26
  */
@@ -8,6 +8,10 @@ import { makeScalarWeakMapStore } from '@agoric/store';
8
8
  /**
9
9
  * @import {ZoeIssuerRecord} from '@agoric/zoe';
10
10
  * @import {IssuerTable} from './types-ambient.js';
11
+ * @import {WeakMapStore} from '@agoric/store';
12
+ * @import {Brand} from '@agoric/ertp';
13
+ * @import {Issuer} from '@agoric/ertp';
14
+ * @import {DisplayInfo} from '@agoric/ertp';
11
15
  */
12
16
 
13
17
  /**
@@ -7,6 +7,8 @@ import { makeLegacyMap, makeScalarMapStore } from '@agoric/store';
7
7
  /**
8
8
  * @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js';
9
9
  * @import {Mapping} from './internal-types.js';
10
+ * @import {MapStore} from '@agoric/store';
11
+ * @import {LegacyMap} from '@agoric/store';
10
12
  */
11
13
 
12
14
  /**
package/src/lib-wallet.js CHANGED
@@ -44,9 +44,23 @@ import { makePaymentActions } from './actions.js';
44
44
 
45
45
  /**
46
46
  * @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js';
47
- * @import {UserSeat} from '@agoric/zoe';
47
+ * @import {Handle, UserSeat, ZoeService} from '@agoric/zoe';
48
+ * @import {Purse} from '@agoric/ertp';
48
49
  * @import {BrandRecord, Contact, DappRecord, Mapping, PaymentRecord, PursesFullState} from './internal-types.js';
49
50
  * @import {InstallationManager, InstanceManager, IssuerManager, OfferState, PursesJSONState, RecordMetadata} from './types-ambient.js';
51
+ * @import {ERef} from '@agoric/vow';
52
+ * @import {Brand} from '@agoric/ertp';
53
+ * @import {Instance} from '@agoric/zoe/src/zoeService/utils.js';
54
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
55
+ * @import {WeakMapStore} from '@agoric/store';
56
+ * @import {Issuer} from '@agoric/ertp';
57
+ * @import {MapStore} from '@agoric/store';
58
+ * @import {LegacyMap} from '@agoric/store';
59
+ * @import {NotifierRecord} from '@agoric/notifier';
60
+ * @import {Payment} from '@agoric/ertp';
61
+ * @import {Subscriber} from '@agoric/notifier';
62
+ * @import {Notifier} from '@agoric/notifier';
63
+ * @import {PromiseRecord} from '@endo/promise-kit';
50
64
  */
51
65
 
52
66
  // does nothing
@@ -142,9 +156,9 @@ export function makeWalletRoot({
142
156
  'contact',
143
157
  { useLegacyMap: true }, // because contacts have identity!
144
158
  );
145
- /** @type {Mapping<Instance>} */
159
+ /** @type {Mapping<Instance<any>>} */
146
160
  const instanceMapping = makeMapping('instance');
147
- /** @type {Mapping<Installation>} */
161
+ /** @type {Mapping<Installation<any>>} */
148
162
  const installationMapping = makeMapping('installation');
149
163
 
150
164
  const brandTable = makeIssuerTable();
@@ -1,11 +1,18 @@
1
1
  // @ts-check
2
+ // @file @deprecated, not ambient anymore
2
3
 
3
4
  /**
4
5
  * @import {Coordinator} from '@agoric/cache';
5
6
  * @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js';
6
7
  * @import {Board} from '@agoric/vats';
7
- * @import {ZoeIssuerRecord} from '@agoric/zoe';
8
+ * @import {ZoeIssuerRecord, ZoeService} from '@agoric/zoe';
9
+ * @import {Brand, Issuer, Payment, Purse} from '@agoric/ertp';
8
10
  * @import {BrandRecord, WalletAdminFacet} from './internal-types.js';
11
+ * @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
12
+ * @import {ERef} from '@agoric/vow';
13
+ * @import {Notifier} from '@agoric/notifier';
14
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
15
+ * @import {Instance} from '@agoric/zoe/src/zoeService/utils.js';
9
16
  */
10
17
 
11
18
  /**
@@ -155,11 +162,11 @@
155
162
  */
156
163
 
157
164
  /**
158
- * @typedef {PetnameManager<Installation>} InstallationManager
165
+ * @typedef {PetnameManager<Installation<any>>} InstallationManager
159
166
  */
160
167
 
161
168
  /**
162
- * @typedef {PetnameManager<Instance>} InstanceManager
169
+ * @typedef {PetnameManager<Instance<any>>} InstanceManager
163
170
  */
164
171
 
165
172
  /**
package/src/wallet.js CHANGED
@@ -22,6 +22,9 @@ import { makeTimerDeviceDateNow, makeTimerServiceDateNow } from './date-now.js';
22
22
  * @import {Petname} from '@agoric/deploy-script-support/src/externalTypes.js';
23
23
  * @import {WalletAdminFacet} from './internal-types.js';
24
24
  * @import {OfferState, PursesJSONState, WalletAdmin, WalletBridge} from './types-ambient.js';
25
+ * @import {ERef} from '@agoric/vow';
26
+ * @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
27
+ * @import {ZoeService} from '@agoric/zoe';
25
28
  */
26
29
 
27
30
  /**