@agoric/fast-usdc 0.1.1-other-dev-fbe72e7.0.fbe72e7 → 0.1.1-other-dev-d15096d.0.d15096d

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/fast-usdc",
3
- "version": "0.1.1-other-dev-fbe72e7.0.fbe72e7",
3
+ "version": "0.1.1-other-dev-d15096d.0.d15096d",
4
4
  "description": "CLI and library for Fast USDC product",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,13 +27,13 @@
27
27
  "ts-blank-space": "^0.6.2"
28
28
  },
29
29
  "dependencies": {
30
- "@agoric/client-utils": "0.1.1-other-dev-fbe72e7.0.fbe72e7",
31
- "@agoric/cosmic-proto": "0.4.1-other-dev-fbe72e7.0.fbe72e7",
32
- "@agoric/ertp": "0.16.3-other-dev-fbe72e7.0.fbe72e7",
33
- "@agoric/internal": "0.3.3-other-dev-fbe72e7.0.fbe72e7",
34
- "@agoric/notifier": "0.6.3-other-dev-fbe72e7.0.fbe72e7",
35
- "@agoric/orchestration": "0.1.1-other-dev-fbe72e7.0.fbe72e7",
36
- "@agoric/zoe": "0.26.3-other-dev-fbe72e7.0.fbe72e7",
30
+ "@agoric/client-utils": "0.1.1-other-dev-d15096d.0.d15096d",
31
+ "@agoric/cosmic-proto": "0.4.1-other-dev-d15096d.0.d15096d",
32
+ "@agoric/ertp": "0.16.3-other-dev-d15096d.0.d15096d",
33
+ "@agoric/internal": "0.3.3-other-dev-d15096d.0.d15096d",
34
+ "@agoric/notifier": "0.6.3-other-dev-d15096d.0.d15096d",
35
+ "@agoric/orchestration": "0.1.1-other-dev-d15096d.0.d15096d",
36
+ "@agoric/zoe": "0.26.3-other-dev-d15096d.0.d15096d",
37
37
  "@cosmjs/proto-signing": "^0.36.0",
38
38
  "@cosmjs/stargate": "^0.36.0",
39
39
  "@endo/base64": "^1.0.12",
@@ -79,5 +79,5 @@
79
79
  "engines": {
80
80
  "node": "^20.9 || ^22.11"
81
81
  },
82
- "gitHead": "fbe72e72107f9997f788674e668c660d92ec4492"
82
+ "gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
83
83
  }
@@ -2,15 +2,16 @@ import { boardSlottingMarshaller } from '@agoric/client-utils';
2
2
 
3
3
  /**
4
4
  * @import {BridgeAction} from '@agoric/smart-wallet/src/smartWallet.js';
5
+ * @import {Writable} from 'stream';
5
6
  */
6
7
 
7
8
  const defaultMarshaller = boardSlottingMarshaller();
8
9
 
9
- /** @typedef {ReturnType<boardSlottingMarshaller>} BoardSlottingMarshaller */
10
+ /** @typedef {ReturnType<typeof boardSlottingMarshaller>} BoardSlottingMarshaller */
10
11
 
11
12
  /**
12
13
  * @param {BridgeAction} bridgeAction
13
- * @param {Pick<import('stream').Writable,'write'>} stdout
14
+ * @param {Pick<Writable,'write'>} stdout
14
15
  * @param {BoardSlottingMarshaller} marshaller
15
16
  */
16
17
  const outputAction = (bridgeAction, stdout, marshaller) => {
@@ -25,8 +26,8 @@ export const sendHint =
25
26
  /**
26
27
  * @param {BridgeAction} bridgeAction
27
28
  * @param {{
28
- * stdout: Pick<import('stream').Writable,'write'>,
29
- * stderr: Pick<import('stream').Writable,'write'>,
29
+ * stdout: Pick<Writable,'write'>,
30
+ * stderr: Pick<Writable,'write'>,
30
31
  * }} io
31
32
  * @param {BoardSlottingMarshaller | undefined} marshaller
32
33
  */
@@ -5,6 +5,7 @@
5
5
  * @import {OfferSpec} from '@agoric/smart-wallet/src/offers.js';
6
6
  * @import {ExecuteOfferAction} from '@agoric/smart-wallet/src/smartWallet.js';
7
7
  * @import {USDCProposalShapes} from '../pool-share-math.js';
8
+ * @import {SmartWalletKit} from '@agoric/client-utils';
8
9
  */
9
10
 
10
11
  import {
@@ -50,7 +51,7 @@ const parseUSDCAmount = (amountString, usdc) => {
50
51
  * @param {Command} program
51
52
  * @param {{
52
53
  * fetch?: Window['fetch'];
53
- * smartWalletKit?: import('@agoric/client-utils').SmartWalletKit;
54
+ * smartWalletKit?: SmartWalletKit;
54
55
  * stdout: typeof process.stdout;
55
56
  * stderr: typeof process.stderr;
56
57
  * env: typeof process.env;
@@ -16,7 +16,10 @@ import {
16
16
  } from './util/noble.js';
17
17
  import { queryUSDCBalance } from './util/bank.js';
18
18
 
19
- /** @import { File } from './util/file.js' */
19
+ /**
20
+ * @import { File } from './util/file.js'
21
+ * @import {ConfigOpts} from './config.js';
22
+ */
20
23
  /** @import { VStorage } from '@agoric/client-utils' */
21
24
  /** @import { SigningStargateClient } from '@cosmjs/stargate' */
22
25
  /** @import { JsonRpcProvider as ethProvider } from 'ethers' */
@@ -45,9 +48,7 @@ export const transfer = async (
45
48
  env = process.env,
46
49
  setTimeout = globalThis.setTimeout,
47
50
  ) => {
48
- const execute = async (
49
- /** @type {import('./config.js').ConfigOpts} */ config,
50
- ) => {
51
+ const execute = async (/** @type {ConfigOpts} */ config) => {
51
52
  const netConfig = await fetchEnvNetworkConfig({ env, fetch });
52
53
  vstorage ||= makeVStorage(
53
54
  { fetch },
@@ -3,18 +3,21 @@ import { assertAllDefined } from '@agoric/internal';
3
3
 
4
4
  /**
5
5
  * @import {USDCProposalShapes} from './pool-share-math.js';
6
+ * @import {AgoricNamesRemotes} from '@agoric/vats/tools/board-utils.js';
7
+ * @import {OfferSpec} from '@agoric/smart-wallet/src/offers.js';
8
+ * @import {OfferMaker} from '@agoric/smart-wallet/src/types.js';
6
9
  */
7
10
 
8
11
  /**
9
12
  * @param {Pick<
10
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
13
+ * AgoricNamesRemotes,
11
14
  * 'brand'
12
15
  * >} agoricNames
13
16
  * @param {object} opts
14
17
  * @param {string} opts.offerId
15
18
  * @param {bigint} opts.fastLPAmount
16
19
  * @param {bigint} opts.usdcAmount
17
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec & {proposal: USDCProposalShapes['deposit']}}
20
+ * @returns {OfferSpec & {proposal: USDCProposalShapes['deposit']}}
18
21
  */
19
22
  const makeDepositOffer = ({ brand }, { offerId, fastLPAmount, usdcAmount }) => {
20
23
  assertAllDefined({ offerId, fastLPAmount, usdcAmount });
@@ -47,14 +50,14 @@ const makeDepositOffer = ({ brand }, { offerId, fastLPAmount, usdcAmount }) => {
47
50
 
48
51
  /**
49
52
  * @param {Pick<
50
- * import('@agoric/vats/tools/board-utils.js').AgoricNamesRemotes,
53
+ * AgoricNamesRemotes,
51
54
  * 'brand'
52
55
  * >} agoricNames
53
56
  * @param {object} opts
54
57
  * @param {string} opts.offerId
55
58
  * @param {bigint} opts.fastLPAmount
56
59
  * @param {bigint} opts.usdcAmount
57
- * @returns {import('@agoric/smart-wallet/src/offers.js').OfferSpec}
60
+ * @returns {OfferSpec}
58
61
  */
59
62
  const makeWithdrawOffer = (
60
63
  { brand },
@@ -87,7 +90,7 @@ const makeWithdrawOffer = (
87
90
  /**
88
91
  * @satisfies {Record<
89
92
  * string,
90
- * Record<string, import('@agoric/smart-wallet/src/types.js').OfferMaker>
93
+ * Record<string, OfferMaker>
91
94
  * >}
92
95
  */
93
96
  export const Offers = {