@agoric/wallet-backend 0.14.3-dev-69236fd.0 → 0.14.3

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.3-dev-69236fd.0+69236fd",
3
+ "version": "0.14.3",
4
4
  "description": "Wallet backend",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -14,22 +14,22 @@
14
14
  "lint:eslint": "eslint ."
15
15
  },
16
16
  "devDependencies": {
17
- "@agoric/vats": "0.15.1-dev-69236fd.0+69236fd",
17
+ "@agoric/vats": "^0.15.1",
18
18
  "@endo/bundle-source": "^2.5.1",
19
19
  "@endo/init": "^0.5.56",
20
20
  "ava": "^5.2.0"
21
21
  },
22
22
  "dependencies": {
23
- "@agoric/assert": "0.6.1-dev-69236fd.0+69236fd",
24
- "@agoric/cache": "0.3.3-dev-69236fd.0+69236fd",
25
- "@agoric/ertp": "0.16.3-dev-69236fd.0+69236fd",
26
- "@agoric/internal": "0.3.3-dev-69236fd.0+69236fd",
27
- "@agoric/notifier": "0.6.3-dev-69236fd.0+69236fd",
28
- "@agoric/smart-wallet": "0.5.3-dev-69236fd.0+69236fd",
29
- "@agoric/store": "0.9.3-dev-69236fd.0+69236fd",
30
- "@agoric/time": "0.3.3-dev-69236fd.0+69236fd",
31
- "@agoric/vat-data": "0.5.3-dev-69236fd.0+69236fd",
32
- "@agoric/zoe": "0.26.3-dev-69236fd.0+69236fd",
23
+ "@agoric/assert": "^0.6.0",
24
+ "@agoric/cache": "^0.3.2",
25
+ "@agoric/ertp": "^0.16.2",
26
+ "@agoric/internal": "^0.3.2",
27
+ "@agoric/notifier": "^0.6.2",
28
+ "@agoric/smart-wallet": "^0.5.3",
29
+ "@agoric/store": "^0.9.2",
30
+ "@agoric/time": "^0.3.2",
31
+ "@agoric/vat-data": "^0.5.2",
32
+ "@agoric/zoe": "^0.26.2",
33
33
  "@endo/eventual-send": "^0.17.2",
34
34
  "@endo/marshal": "^0.8.5",
35
35
  "@endo/nat": "^4.1.27",
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "69236fdbdce1521dd78da104bd54f331d4d2b28f"
60
+ "gitHead": "ba3b776444425bbcb275ce918794d9259f8e15da"
61
61
  }
package/src/lib-wallet.js CHANGED
@@ -1209,7 +1209,6 @@ export function makeWalletRoot({
1209
1209
  updateInboxState(id, rejectOffer);
1210
1210
  };
1211
1211
 
1212
- await null;
1213
1212
  try {
1214
1213
  const pendingOffer = addMeta({
1215
1214
  ...offer,
@@ -1373,7 +1372,6 @@ export function makeWalletRoot({
1373
1372
  brandToAutoDepositPurse.init(brand, purse);
1374
1373
  }
1375
1374
 
1376
- await null;
1377
1375
  if (updateState) {
1378
1376
  await updateAllPurseState();
1379
1377
  }
@@ -1895,32 +1893,28 @@ export function makeWalletRoot({
1895
1893
  // don't really trust.
1896
1894
  // The param is{import('@agoric/vats/src/vat-bank.js').Bank} but that here triggers https://github.com/Agoric/agoric-sdk/issues/4620
1897
1895
  const importBankAssets = async bank => {
1898
- observeIteration(
1899
- subscribeEach(E(bank).getAssetSubscription()),
1900
- harden({
1901
- async updateState({ proposedName, issuerName, issuer, brand }) {
1902
- await null;
1903
- try {
1904
- issuerName = await addIssuer(issuerName, issuer);
1905
- const purse = await E(bank).getPurse(brand);
1906
- // We can import this purse, because we trust the bank.
1907
- await internalUnsafeImportPurse(
1908
- issuerName,
1909
- proposedName,
1910
- true,
1911
- purse,
1912
- );
1913
- } catch (e) {
1914
- console.error('/// could not add bank asset purse', e, {
1915
- issuerName,
1916
- proposedName,
1917
- issuer,
1918
- brand,
1919
- });
1920
- }
1921
- },
1922
- }),
1923
- ).finally(() => console.error('/// This is the end of the bank assets'));
1896
+ observeIteration(subscribeEach(E(bank).getAssetSubscription()), {
1897
+ async updateState({ proposedName, issuerName, issuer, brand }) {
1898
+ try {
1899
+ issuerName = await addIssuer(issuerName, issuer);
1900
+ const purse = await E(bank).getPurse(brand);
1901
+ // We can import this purse, because we trust the bank.
1902
+ await internalUnsafeImportPurse(
1903
+ issuerName,
1904
+ proposedName,
1905
+ true,
1906
+ purse,
1907
+ );
1908
+ } catch (e) {
1909
+ console.error('/// could not add bank asset purse', e, {
1910
+ issuerName,
1911
+ proposedName,
1912
+ issuer,
1913
+ brand,
1914
+ });
1915
+ }
1916
+ },
1917
+ }).finally(() => console.error('/// This is the end of the bank assets'));
1924
1918
  };
1925
1919
  return {
1926
1920
  admin: wallet,