agoric 0.21.2-dev-9380cfe.0 → 0.21.2-dev-4f72580.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-9380cfe.0+9380cfe",
3
+ "version": "0.21.2-dev-4f72580.0+4f72580",
4
4
  "description": "Manage the Agoric Javascript smart contract platform",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -28,44 +28,44 @@
28
28
  "lint:eslint": "eslint ."
29
29
  },
30
30
  "devDependencies": {
31
- "@agoric/cosmic-swingset": "0.41.4-dev-9380cfe.0+9380cfe",
32
- "@agoric/deploy-script-support": "0.10.4-dev-9380cfe.0+9380cfe",
31
+ "@agoric/cosmic-swingset": "0.41.4-dev-4f72580.0+4f72580",
32
+ "@agoric/deploy-script-support": "0.10.4-dev-4f72580.0+4f72580",
33
33
  "ava": "^5.3.0",
34
34
  "c8": "^7.13.0",
35
35
  "dd-trace": "^4.11.1"
36
36
  },
37
37
  "dependencies": {
38
- "@agoric/access-token": "0.4.22-dev-9380cfe.0+9380cfe",
39
- "@agoric/assert": "0.6.1-dev-9380cfe.0+9380cfe",
40
- "@agoric/cache": "0.3.3-dev-9380cfe.0+9380cfe",
41
- "@agoric/casting": "0.4.3-dev-9380cfe.0+9380cfe",
42
- "@agoric/cosmic-proto": "0.3.1-dev-9380cfe.0+9380cfe",
43
- "@agoric/ertp": "0.16.3-dev-9380cfe.0+9380cfe",
44
- "@agoric/governance": "0.10.4-dev-9380cfe.0+9380cfe",
45
- "@agoric/inter-protocol": "0.16.2-dev-9380cfe.0+9380cfe",
46
- "@agoric/internal": "0.3.3-dev-9380cfe.0+9380cfe",
47
- "@agoric/network": "0.1.1-dev-9380cfe.0+9380cfe",
48
- "@agoric/smart-wallet": "0.5.4-dev-9380cfe.0+9380cfe",
49
- "@agoric/store": "0.9.3-dev-9380cfe.0+9380cfe",
50
- "@agoric/swingset-vat": "0.32.3-dev-9380cfe.0+9380cfe",
51
- "@agoric/vats": "0.15.2-dev-9380cfe.0+9380cfe",
52
- "@agoric/zoe": "0.26.3-dev-9380cfe.0+9380cfe",
53
- "@agoric/zone": "0.2.3-dev-9380cfe.0+9380cfe",
38
+ "@agoric/access-token": "0.4.22-dev-4f72580.0+4f72580",
39
+ "@agoric/assert": "0.6.1-dev-4f72580.0+4f72580",
40
+ "@agoric/cache": "0.3.3-dev-4f72580.0+4f72580",
41
+ "@agoric/casting": "0.4.3-dev-4f72580.0+4f72580",
42
+ "@agoric/cosmic-proto": "0.3.1-dev-4f72580.0+4f72580",
43
+ "@agoric/ertp": "0.16.3-dev-4f72580.0+4f72580",
44
+ "@agoric/governance": "0.10.4-dev-4f72580.0+4f72580",
45
+ "@agoric/inter-protocol": "0.16.2-dev-4f72580.0+4f72580",
46
+ "@agoric/internal": "0.3.3-dev-4f72580.0+4f72580",
47
+ "@agoric/network": "0.1.1-dev-4f72580.0+4f72580",
48
+ "@agoric/smart-wallet": "0.5.4-dev-4f72580.0+4f72580",
49
+ "@agoric/store": "0.9.3-dev-4f72580.0+4f72580",
50
+ "@agoric/swingset-vat": "0.32.3-dev-4f72580.0+4f72580",
51
+ "@agoric/vats": "0.15.2-dev-4f72580.0+4f72580",
52
+ "@agoric/zoe": "0.26.3-dev-4f72580.0+4f72580",
53
+ "@agoric/zone": "0.2.3-dev-4f72580.0+4f72580",
54
54
  "@confio/relayer": "^0.9.0",
55
55
  "@cosmjs/crypto": "^0.30.1",
56
56
  "@cosmjs/encoding": "^0.30.1",
57
57
  "@cosmjs/math": "^0.30.1",
58
58
  "@cosmjs/proto-signing": "^0.30.1",
59
59
  "@cosmjs/stargate": "^0.30.1",
60
- "@endo/bundle-source": "^2.7.0",
61
- "@endo/captp": "^3.1.4",
62
- "@endo/compartment-mapper": "^0.9.1",
63
- "@endo/far": "^0.2.21",
64
- "@endo/init": "^0.5.59",
65
- "@endo/marshal": "^0.8.8",
66
- "@endo/nat": "^4.1.30",
67
- "@endo/patterns": "^0.2.6",
68
- "@endo/promise-kit": "^0.2.59",
60
+ "@endo/bundle-source": "^3.0.1",
61
+ "@endo/captp": "^4.0.1",
62
+ "@endo/compartment-mapper": "^1.0.1",
63
+ "@endo/far": "^1.0.1",
64
+ "@endo/init": "^1.0.1",
65
+ "@endo/marshal": "^1.0.1",
66
+ "@endo/nat": "^5.0.1",
67
+ "@endo/patterns": "^1.0.1",
68
+ "@endo/promise-kit": "^1.0.1",
69
69
  "@iarna/toml": "^2.2.3",
70
70
  "anylogger": "^0.21.0",
71
71
  "chalk": "^5.2.0",
@@ -98,5 +98,5 @@
98
98
  "typeCoverage": {
99
99
  "atLeast": 77.53
100
100
  },
101
- "gitHead": "9380cfe04661eaed6de168e65a96730a8798bffb"
101
+ "gitHead": "4f7258043c55cb9d60e1d50cbdddb712910950f4"
102
102
  }
@@ -79,7 +79,7 @@ export const makeGovCommand = (_logger, io = {}) => {
79
79
  * given a sendFrom address; else print it.
80
80
  *
81
81
  * @param {{
82
- * toOffer: (agoricNames: *, current: import('@agoric/smart-wallet/src/smartWallet').CurrentWalletRecord | undefined) => OfferSpec,
82
+ * toOffer: (agoricNames: *, current: import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord | undefined) => OfferSpec,
83
83
  * sendFrom?: string | undefined,
84
84
  * keyringBackend: string,
85
85
  * instanceName?: string,
@@ -34,7 +34,7 @@ const bidInvitationShape = harden({
34
34
  });
35
35
 
36
36
  /** @typedef {import('@agoric/vats/tools/board-utils.js').VBankAssetDetail } AssetDescriptor */
37
- /** @typedef {import('@agoric/smart-wallet/src/smartWallet').TryExitOfferAction } TryExitOfferAction */
37
+ /** @typedef {import('@agoric/smart-wallet/src/smartWallet.js').TryExitOfferAction } TryExitOfferAction */
38
38
  /** @typedef {import('@agoric/inter-protocol/src/auction/auctionBook.js').OfferSpec} BidSpec */
39
39
  /** @typedef {import('@agoric/inter-protocol/src/auction/scheduler.js').ScheduleNotification} ScheduleNotification */
40
40
  /** @typedef {import('@agoric/inter-protocol/src/auction/auctionBook.js').BookDataNotification} BookDataNotification */
package/src/lib/chain.js CHANGED
@@ -36,7 +36,7 @@ harden(normalizeAddressWithOptions);
36
36
 
37
37
  /**
38
38
  * @param {ReadonlyArray<string>} swingsetArgs
39
- * @param {import('./rpc').MinimalNetworkConfig & {
39
+ * @param {import('./rpc.js').MinimalNetworkConfig & {
40
40
  * from: string,
41
41
  * fees?: string,
42
42
  * dryRun?: boolean,
@@ -110,7 +110,7 @@ export const fetchSwingsetParams = net => {
110
110
  harden(fetchSwingsetParams);
111
111
 
112
112
  /**
113
- * @param {import('./rpc').MinimalNetworkConfig & {
113
+ * @param {import('./rpc.js').MinimalNetworkConfig & {
114
114
  * execFileSync: typeof import('child_process').execFileSync,
115
115
  * delay: (ms: number) => Promise<void>,
116
116
  * period?: number,
@@ -150,7 +150,7 @@ export const pollBlocks = opts => async lookup => {
150
150
 
151
151
  /**
152
152
  * @param {string} txhash
153
- * @param {import('./rpc').MinimalNetworkConfig & {
153
+ * @param {import('./rpc.js').MinimalNetworkConfig & {
154
154
  * execFileSync: typeof import('child_process').execFileSync,
155
155
  * delay: (ms: number) => Promise<void>,
156
156
  * period?: number,
package/src/lib/format.js CHANGED
@@ -89,7 +89,7 @@ export const asBoardRemote = x => {
89
89
  /**
90
90
  * Summarize the balances array as user-facing informative tuples
91
91
  *
92
- * @param {import('@agoric/smart-wallet/src/smartWallet').CurrentWalletRecord['purses']} purses
92
+ * @param {import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord['purses']} purses
93
93
  * @param {AssetDescriptor[]} assets
94
94
  */
95
95
  export const purseBalanceTuples = (purses, assets) => {
@@ -172,7 +172,7 @@ export const offerStatusTuples = (state, agoricNames) => {
172
172
  };
173
173
 
174
174
  /**
175
- * @param {import('@agoric/smart-wallet/src/smartWallet').CurrentWalletRecord} current
175
+ * @param {import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord} current
176
176
  * @param {ReturnType<import('@agoric/smart-wallet/src/utils.js').makeWalletStateCoalescer>['state']} coalesced
177
177
  * @param {import('./wallet.js').AgoricNamesRemotes} agoricNames
178
178
  */
package/src/lib/wallet.js CHANGED
@@ -23,13 +23,13 @@ const emptyCurrentRecord = {
23
23
  /**
24
24
  * @param {string} addr
25
25
  * @param {Pick<import('./rpc.js').RpcUtils, 'readLatestHead'>} io
26
- * @returns {Promise<import('@agoric/smart-wallet/src/smartWallet').CurrentWalletRecord>}
26
+ * @returns {Promise<import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord>}
27
27
  */
28
28
  export const getCurrent = async (addr, { readLatestHead }) => {
29
29
  // Partial because older writes may not have had all properties
30
30
  // NB: assumes changes are only additions
31
31
  let current =
32
- /** @type {Partial<import('@agoric/smart-wallet/src/smartWallet').CurrentWalletRecord> | undefined} */ (
32
+ /** @type {Partial<import('@agoric/smart-wallet/src/smartWallet.js').CurrentWalletRecord> | undefined} */ (
33
33
  await readLatestHead(`published.wallet.${addr}.current`)
34
34
  );
35
35
  if (current === undefined) {
@@ -58,7 +58,7 @@ export const getCurrent = async (addr, { readLatestHead }) => {
58
58
  /**
59
59
  * @param {string} addr
60
60
  * @param {Pick<import('./rpc.js').RpcUtils, 'readLatestHead'>} io
61
- * @returns {Promise<import('@agoric/smart-wallet/src/smartWallet').UpdateRecord>}
61
+ * @returns {Promise<import('@agoric/smart-wallet/src/smartWallet.js').UpdateRecord>}
62
62
  */
63
63
  export const getLastUpdate = (addr, { readLatestHead }) => {
64
64
  // @ts-expect-error cast
@@ -66,7 +66,7 @@ export const getLastUpdate = (addr, { readLatestHead }) => {
66
66
  };
67
67
 
68
68
  /**
69
- * @param {import('@agoric/smart-wallet/src/smartWallet').BridgeAction} bridgeAction
69
+ * @param {import('@agoric/smart-wallet/src/smartWallet.js').BridgeAction} bridgeAction
70
70
  * @param {Pick<import('stream').Writable,'write'>} [stdout]
71
71
  */
72
72
  export const outputAction = (bridgeAction, stdout = process.stdout) => {
@@ -79,7 +79,7 @@ export const sendHint =
79
79
  'Now use `agoric wallet send ...` to sign and broadcast the offer.\n';
80
80
 
81
81
  /**
82
- * @param {import('@agoric/smart-wallet/src/smartWallet').BridgeAction} bridgeAction
82
+ * @param {import('@agoric/smart-wallet/src/smartWallet.js').BridgeAction} bridgeAction
83
83
  * @param {{
84
84
  * stdout: Pick<import('stream').Writable,'write'>,
85
85
  * stderr: Pick<import('stream').Writable,'write'>,
@@ -100,7 +100,7 @@ export const outputExecuteOfferAction = (
100
100
  stdout = process.stdout,
101
101
  stderr = process.stderr,
102
102
  ) => {
103
- /** @type {import('@agoric/smart-wallet/src/smartWallet').BridgeAction} */
103
+ /** @type {import('@agoric/smart-wallet/src/smartWallet.js').BridgeAction} */
104
104
  const spendAction = {
105
105
  method: 'executeOffer',
106
106
  offer,
@@ -111,7 +111,7 @@ export const outputExecuteOfferAction = (
111
111
 
112
112
  /**
113
113
  * @deprecated use `.current` node for current state
114
- * @param {import('@agoric/casting').Follower<import('@agoric/casting').ValueFollowerElement<import('@agoric/smart-wallet/src/smartWallet').UpdateRecord>>} follower
114
+ * @param {import('@agoric/casting').Follower<import('@agoric/casting').ValueFollowerElement<import('@agoric/smart-wallet/src/smartWallet.js').UpdateRecord>>} follower
115
115
  * @param {Brand<'set'>} [invitationBrand]
116
116
  */
117
117
  export const coalesceWalletState = async (follower, invitationBrand) => {
@@ -141,8 +141,8 @@ export const coalesceWalletState = async (follower, invitationBrand) => {
141
141
  * Sign and broadcast a wallet-action.
142
142
  *
143
143
  * @throws { Error & { code: number } } if transaction fails
144
- * @param {import('@agoric/smart-wallet/src/smartWallet').BridgeAction} bridgeAction
145
- * @param {import('./rpc').MinimalNetworkConfig & {
144
+ * @param {import('@agoric/smart-wallet/src/smartWallet.js').BridgeAction} bridgeAction
145
+ * @param {import('./rpc.js').MinimalNetworkConfig & {
146
146
  * from: string,
147
147
  * fees?: string,
148
148
  * verbose?: boolean,