agoric 0.21.2-dev-0705f2c.0 → 0.21.2-dev-a9680dd.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",
3
- "version": "0.21.2-dev-0705f2c.0+0705f2c",
3
+ "version": "0.21.2-dev-a9680dd.0+a9680dd",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -29,29 +29,28 @@
29
29
  "lint:eslint": "eslint ."
30
30
  },
31
31
  "devDependencies": {
32
- "@agoric/cosmic-swingset": "0.41.4-dev-0705f2c.0+0705f2c",
33
- "@agoric/deploy-script-support": "0.10.4-dev-0705f2c.0+0705f2c",
32
+ "@agoric/cosmic-swingset": "0.41.4-dev-a9680dd.0+a9680dd",
33
+ "@agoric/deploy-script-support": "0.10.4-dev-a9680dd.0+a9680dd",
34
34
  "ava": "^5.3.0",
35
35
  "c8": "^9.1.0",
36
36
  "dd-trace": "^4.11.1"
37
37
  },
38
38
  "dependencies": {
39
- "@agoric/access-token": "0.4.22-dev-0705f2c.0+0705f2c",
40
- "@agoric/assert": "0.6.1-dev-0705f2c.0+0705f2c",
41
- "@agoric/cache": "0.3.3-dev-0705f2c.0+0705f2c",
42
- "@agoric/casting": "0.4.3-dev-0705f2c.0+0705f2c",
43
- "@agoric/cosmic-proto": "0.4.1-dev-0705f2c.0+0705f2c",
44
- "@agoric/ertp": "0.16.3-dev-0705f2c.0+0705f2c",
45
- "@agoric/governance": "0.10.4-dev-0705f2c.0+0705f2c",
46
- "@agoric/inter-protocol": "0.16.2-dev-0705f2c.0+0705f2c",
47
- "@agoric/internal": "0.3.3-dev-0705f2c.0+0705f2c",
48
- "@agoric/network": "0.1.1-dev-0705f2c.0+0705f2c",
49
- "@agoric/smart-wallet": "0.5.4-dev-0705f2c.0+0705f2c",
50
- "@agoric/store": "0.9.3-dev-0705f2c.0+0705f2c",
51
- "@agoric/swingset-vat": "0.32.3-dev-0705f2c.0+0705f2c",
52
- "@agoric/vats": "0.15.2-dev-0705f2c.0+0705f2c",
53
- "@agoric/zoe": "0.26.3-dev-0705f2c.0+0705f2c",
54
- "@agoric/zone": "0.2.3-dev-0705f2c.0+0705f2c",
39
+ "@agoric/access-token": "0.4.22-dev-a9680dd.0+a9680dd",
40
+ "@agoric/cache": "0.3.3-dev-a9680dd.0+a9680dd",
41
+ "@agoric/casting": "0.4.3-dev-a9680dd.0+a9680dd",
42
+ "@agoric/cosmic-proto": "0.4.1-dev-a9680dd.0+a9680dd",
43
+ "@agoric/ertp": "0.16.3-dev-a9680dd.0+a9680dd",
44
+ "@agoric/governance": "0.10.4-dev-a9680dd.0+a9680dd",
45
+ "@agoric/inter-protocol": "0.16.2-dev-a9680dd.0+a9680dd",
46
+ "@agoric/internal": "0.3.3-dev-a9680dd.0+a9680dd",
47
+ "@agoric/network": "0.1.1-dev-a9680dd.0+a9680dd",
48
+ "@agoric/smart-wallet": "0.5.4-dev-a9680dd.0+a9680dd",
49
+ "@agoric/store": "0.9.3-dev-a9680dd.0+a9680dd",
50
+ "@agoric/swingset-vat": "0.32.3-dev-a9680dd.0+a9680dd",
51
+ "@agoric/vats": "0.15.2-dev-a9680dd.0+a9680dd",
52
+ "@agoric/zoe": "0.26.3-dev-a9680dd.0+a9680dd",
53
+ "@agoric/zone": "0.2.3-dev-a9680dd.0+a9680dd",
55
54
  "@confio/relayer": "^0.11.3",
56
55
  "@cosmjs/crypto": "^0.32.3",
57
56
  "@cosmjs/encoding": "^0.32.3",
@@ -62,6 +61,7 @@
62
61
  "@endo/captp": "^4.2.0",
63
62
  "@endo/compartment-mapper": "^1.1.5",
64
63
  "@endo/env-options": "^1.1.4",
64
+ "@endo/errors": "^1.2.2",
65
65
  "@endo/far": "^1.1.2",
66
66
  "@endo/init": "^1.1.2",
67
67
  "@endo/marshal": "^1.5.0",
@@ -101,5 +101,5 @@
101
101
  "typeCoverage": {
102
102
  "atLeast": 76.99
103
103
  },
104
- "gitHead": "0705f2c34da9a89c2b3441b47f8e5bfca53a9590"
104
+ "gitHead": "a9680dd04485e4a63c4fcd588ec38d2558243877"
105
105
  }
@@ -1,11 +1,10 @@
1
1
  // @ts-check
2
2
 
3
3
  import { InvalidArgumentError } from 'commander';
4
+ import { Fail } from '@endo/errors';
4
5
  import { makeRpcUtils } from '../lib/rpc.js';
5
6
  import { outputActionAndHint } from '../lib/wallet.js';
6
7
 
7
- const { Fail } = assert;
8
-
9
8
  /**
10
9
  * @import {ParamTypesMap, ParamTypesMapFromRecord} from '@agoric/governance/src/contractGovernance/typedParamManager.js'
11
10
  * @import {ParamValueForType} from '@agoric/governance/src/types.js'
@@ -1,9 +1,9 @@
1
1
  // @ts-check
2
2
  /* eslint-disable func-names */
3
3
  /* global fetch, setTimeout, process */
4
- import { Fail } from '@agoric/assert';
5
- import { Offers } from '@agoric/inter-protocol/src/clientSupport.js';
4
+ import { Fail } from '@endo/errors';
6
5
  import { Nat } from '@endo/nat';
6
+ import { Offers } from '@agoric/inter-protocol/src/clientSupport.js';
7
7
  import { Command } from 'commander';
8
8
  import * as cp from 'child_process';
9
9
  import { inspect } from 'util';
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
  /* global process */
3
- import { Fail } from '@agoric/assert';
3
+ import { Fail } from '@endo/errors';
4
4
  import { CommanderError } from 'commander';
5
5
  import { normalizeAddressWithOptions } from '../lib/chain.js';
6
6
  import { bigintReplacer } from '../lib/format.js';
package/src/deploy.js CHANGED
@@ -1,8 +1,9 @@
1
1
  // @ts-check
2
2
  /* global process setTimeout setInterval clearInterval */
3
3
 
4
- import { E, makeCapTP } from '@endo/captp';
4
+ import { X } from '@endo/errors';
5
5
  import { makePromiseKit } from '@endo/promise-kit';
6
+ import { E, makeCapTP } from '@endo/captp';
6
7
  import { makeLeaderFromRpcAddresses } from '@agoric/casting';
7
8
  import path from 'path';
8
9
  import http from 'http';
@@ -20,8 +21,6 @@ import {
20
21
  import { makeJsonHttpClient } from './json-http-client-node.js';
21
22
  import { makeScriptLoader } from './scripts.js';
22
23
 
23
- const { details: X } = assert;
24
-
25
24
  // note: CapTP has its own HandledPromise instantiation, and the contract
26
25
  // must use the same one that CapTP uses. We achieve this by not bundling
27
26
  // captp, and doing a (non-isolated) dynamic import of the deploy script
package/src/lib/format.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // @ts-check
2
2
 
3
+ import { Fail, q } from '@endo/errors';
3
4
  import { makeBoardRemote } from '@agoric/vats/tools/board-utils.js';
4
5
 
5
6
  /** @import {BoardRemote} from '@agoric/vats/tools/board-utils.js' */
@@ -71,8 +72,6 @@ export const asPercent = ratio => {
71
72
  return (100 * Number(numerator.value)) / Number(denominator.value);
72
73
  };
73
74
 
74
- const { Fail, quote: q } = assert;
75
-
76
75
  const isObject = x => typeof x === 'object' && x !== null;
77
76
 
78
77
  /**
package/src/lib/rpc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
  /* global Buffer, fetch, process */
3
3
 
4
- import { NonNullish } from '@agoric/assert';
4
+ import { NonNullish } from '@agoric/internal';
5
5
  import {
6
6
  boardSlottingMarshaller,
7
7
  makeBoardRemote,
package/src/lib/wallet.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // @ts-check
2
2
  /* global process */
3
3
 
4
+ import { Fail } from '@endo/errors';
4
5
  import { iterateReverse } from '@agoric/casting';
5
6
  import { makeWalletStateCoalescer } from '@agoric/smart-wallet/src/utils.js';
6
7
  import { execSwingsetTransaction, pollBlocks, pollTx } from './chain.js';
@@ -9,7 +10,6 @@ import { boardSlottingMarshaller, makeRpcUtils } from './rpc.js';
9
10
  /** @import {CurrentWalletRecord} from '@agoric/smart-wallet/src/smartWallet.js' */
10
11
  /** @import {AgoricNamesRemotes} from '@agoric/vats/tools/board-utils.js' */
11
12
 
12
- const { Fail } = assert;
13
13
  const marshaller = boardSlottingMarshaller();
14
14
 
15
15
  /** @type {CurrentWalletRecord} */
package/src/main.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /* global process */
2
- import { assert, details as X } from '@agoric/assert';
3
- import {
4
- DEFAULT_JITTER_SECONDS,
5
- DEFAULT_KEEP_POLLING_SECONDS,
6
- } from '@agoric/casting';
7
2
  import { Command } from 'commander';
8
3
  import path from 'path';
9
4
  import url from 'url';
5
+ import { assert, X } from '@endo/errors';
6
+ import {
7
+ DEFAULT_KEEP_POLLING_SECONDS,
8
+ DEFAULT_JITTER_SECONDS,
9
+ } from '@agoric/casting';
10
10
  import { makeWalletCommand } from './commands/wallet.js';
11
11
  import cosmosMain from './cosmos.js';
12
12
  import deployMain from './deploy.js';
package/src/open.js CHANGED
@@ -1,10 +1,8 @@
1
1
  /* global process setInterval clearInterval */
2
2
  import opener from 'opener';
3
-
3
+ import { assert, X } from '@endo/errors';
4
4
  import { getAccessToken } from '@agoric/access-token';
5
5
 
6
- import { assert, details as X } from '@agoric/assert';
7
-
8
6
  export default async function walletMain(_progname, _rawArgs, powers, opts) {
9
7
  const { anylogger } = powers;
10
8
  const console = anylogger('agoric:wallet');
package/src/publish.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // @ts-check
2
2
  /// <reference types="ses" />
3
3
 
4
+ import { X, q, Fail } from '@endo/errors';
4
5
  import { E } from '@endo/far';
5
6
 
6
7
  import {
@@ -14,7 +15,6 @@ import { defaultRegistryTypes } from '@cosmjs/stargate';
14
15
  import { stringToPath } from '@cosmjs/crypto';
15
16
  import { Decimal } from '@cosmjs/math';
16
17
  import { fromBech32 } from '@cosmjs/encoding';
17
-
18
18
  import { MsgInstallBundle } from '@agoric/cosmic-proto/swingset/msgs.js';
19
19
 
20
20
  // https://github.com/Agoric/agoric-sdk/blob/master/golang/cosmos/daemon/main.go
@@ -83,8 +83,6 @@ const registry = new Registry([
83
83
  * @typedef {SourceBundle | HashBundle} Bundle
84
84
  */
85
85
 
86
- const { details: X, quote: q, Fail } = assert;
87
-
88
86
  /**
89
87
  * @template T
90
88
  * @param {Array<T>} array
@@ -2,7 +2,6 @@
2
2
  // prettier-ignore
3
3
  export default [
4
4
  "@agoric/access-token",
5
- "@agoric/assert",
6
5
  "@agoric/async-flow",
7
6
  "@agoric/base-zone",
8
7
  "@agoric/benchmark",
@@ -1,5 +1,5 @@
1
1
  import { basename } from 'path';
2
- import { Fail } from '@agoric/assert';
2
+ import { Fail } from '@endo/errors';
3
3
  import {
4
4
  finishCosmosApp,
5
5
  finishTendermintConfig,