@agoric/fast-usdc 0.2.0-u21.0 → 0.2.0-u22.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/fast-usdc",
3
- "version": "0.2.0-u21.0",
3
+ "version": "0.2.0-u22.0",
4
4
  "description": "CLI and library for Fast USDC product",
5
5
  "type": "module",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "build": "exit 0",
14
14
  "test": "ava",
15
- "test:c8": "c8 --all $C8_OPTIONS ava",
15
+ "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
16
16
  "test:xs": "exit 0",
17
17
  "lint-fix": "yarn lint:eslint --fix",
18
18
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
@@ -24,29 +24,29 @@
24
24
  "ava": "^5.3.0",
25
25
  "c8": "^10.1.3",
26
26
  "nano-spawn": "^1.0.2",
27
- "ts-blank-space": "^0.6.1"
27
+ "ts-blank-space": "^0.6.2"
28
28
  },
29
29
  "dependencies": {
30
- "@agoric/client-utils": "workspace:*",
31
- "@agoric/cosmic-proto": "workspace:*",
32
- "@agoric/ertp": "workspace:*",
33
- "@agoric/internal": "workspace:*",
34
- "@agoric/notifier": "workspace:*",
35
- "@agoric/orchestration": "workspace:*",
36
- "@agoric/zoe": "workspace:*",
37
- "@cosmjs/proto-signing": "^0.33.0",
38
- "@cosmjs/stargate": "^0.33.0",
39
- "@endo/base64": "^1.0.9",
40
- "@endo/common": "^1.2.10",
41
- "@endo/errors": "^1.2.10",
42
- "@endo/eventual-send": "^1.3.1",
43
- "@endo/far": "^1.1.11",
44
- "@endo/init": "^1.1.9",
45
- "@endo/marshal": "^1.6.4",
46
- "@endo/nat": "^5.1.0",
47
- "@endo/pass-style": "^1.5.0",
48
- "@endo/patterns": "^1.5.0",
49
- "@endo/promise-kit": "^1.1.10",
30
+ "@agoric/client-utils": "0.2.0-u22.0",
31
+ "@agoric/cosmic-proto": "0.5.0-u22.0",
32
+ "@agoric/ertp": "0.17.0-u22.0",
33
+ "@agoric/internal": "0.4.0-u22.0",
34
+ "@agoric/notifier": "0.7.0-u22.0",
35
+ "@agoric/orchestration": "0.2.0-u22.0",
36
+ "@agoric/zoe": "0.27.0-u22.0",
37
+ "@cosmjs/proto-signing": "^0.36.0",
38
+ "@cosmjs/stargate": "^0.36.0",
39
+ "@endo/base64": "^1.0.12",
40
+ "@endo/common": "^1.2.13",
41
+ "@endo/errors": "^1.2.13",
42
+ "@endo/eventual-send": "^1.3.4",
43
+ "@endo/far": "^1.1.14",
44
+ "@endo/init": "^1.1.12",
45
+ "@endo/marshal": "^1.8.0",
46
+ "@endo/nat": "^5.1.3",
47
+ "@endo/pass-style": "^1.6.3",
48
+ "@endo/patterns": "^1.7.0",
49
+ "@endo/promise-kit": "^1.1.13",
50
50
  "@nick134-bit/noblejs": "0.0.2",
51
51
  "bech32": "^2.0.0",
52
52
  "commander": "^12.1.0",
@@ -73,5 +73,11 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "e4dd46857133403d584bcf822a81817b355532f9"
76
+ "typeCoverage": {
77
+ "atLeast": 97.08
78
+ },
79
+ "engines": {
80
+ "node": "^20.9 || ^22.11"
81
+ },
82
+ "gitHead": "dbf78c32d14bf4a38bfd7a10d061011a0ff368e6"
77
83
  }
@@ -21,15 +21,27 @@ import { queryUSDCBalance } from './util/bank.js';
21
21
  /** @import { SigningStargateClient } from '@cosmjs/stargate' */
22
22
  /** @import { JsonRpcProvider as ethProvider } from 'ethers' */
23
23
 
24
+ /**
25
+ * @param {File} configFile
26
+ * @param {string} amount
27
+ * @param {string} EUD
28
+ * @param {typeof globalThis.console} [out]
29
+ * @param {typeof globalThis.fetch} [fetch]
30
+ * @param {VStorage} [vstorage]
31
+ * @param {{signer: SigningStargateClient, address: string}} [nobleSigner]
32
+ * @param {ethProvider} [ethProvider]
33
+ * @param {typeof process.env} [env]
34
+ * @param {typeof globalThis.setTimeout} [setTimeout]
35
+ */
24
36
  export const transfer = async (
25
- /** @type {File} */ configFile,
26
- /** @type {string} */ amount,
27
- /** @type {string} */ EUD,
37
+ configFile,
38
+ amount,
39
+ EUD,
28
40
  out = console,
29
41
  fetch = globalThis.fetch,
30
- /** @type {VStorage | undefined} */ vstorage,
31
- /** @type {{signer: SigningStargateClient, address: string} | undefined} */ nobleSigner,
32
- /** @type {ethProvider | undefined} */ ethProvider,
42
+ vstorage,
43
+ nobleSigner,
44
+ ethProvider,
33
45
  env = process.env,
34
46
  setTimeout = globalThis.setTimeout,
35
47
  ) => {
package/src/utils/fees.js CHANGED
@@ -8,7 +8,7 @@ import { FeeConfigShape } from '../type-guards.js';
8
8
  const { add, isGTE, subtract, makeEmpty } = AmountMath;
9
9
 
10
10
  /**
11
- * @import {Amount} from '@agoric/ertp';
11
+ * @import {Amount, Payment} from '@agoric/ertp';
12
12
  * @import {AccountId} from '@agoric/orchestration';
13
13
  * @import {FeeConfig} from '../types.js';
14
14
  */