@agoric/fast-usdc 0.1.1-dev-b2b8029.0 → 0.1.1-dev-190221b.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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/src/types.ts +17 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/fast-usdc",
3
- "version": "0.1.1-dev-b2b8029.0+b2b8029",
3
+ "version": "0.1.1-dev-190221b.0+190221b",
4
4
  "description": "CLI and library for Fast USDC product",
5
5
  "type": "module",
6
6
  "files": [
@@ -29,13 +29,13 @@
29
29
  "ts-blank-space": "^0.4.4"
30
30
  },
31
31
  "dependencies": {
32
- "@agoric/client-utils": "0.1.1-dev-b2b8029.0+b2b8029",
33
- "@agoric/cosmic-proto": "0.4.1-dev-b2b8029.0+b2b8029",
34
- "@agoric/ertp": "0.16.3-dev-b2b8029.0+b2b8029",
35
- "@agoric/internal": "0.3.3-dev-b2b8029.0+b2b8029",
36
- "@agoric/notifier": "0.6.3-dev-b2b8029.0+b2b8029",
37
- "@agoric/orchestration": "0.1.1-dev-b2b8029.0+b2b8029",
38
- "@agoric/zoe": "0.26.3-dev-b2b8029.0+b2b8029",
32
+ "@agoric/client-utils": "0.1.1-dev-190221b.0+190221b",
33
+ "@agoric/cosmic-proto": "0.4.1-dev-190221b.0+190221b",
34
+ "@agoric/ertp": "0.16.3-dev-190221b.0+190221b",
35
+ "@agoric/internal": "0.3.3-dev-190221b.0+190221b",
36
+ "@agoric/notifier": "0.6.3-dev-190221b.0+190221b",
37
+ "@agoric/orchestration": "0.1.1-dev-190221b.0+190221b",
38
+ "@agoric/zoe": "0.26.3-dev-190221b.0+190221b",
39
39
  "@cosmjs/proto-signing": "^0.33.0",
40
40
  "@cosmjs/stargate": "^0.33.0",
41
41
  "@endo/base64": "^1.0.9",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "b2b8029e5de97e794e4fe6b2e5e1ab36e2a7bc4f"
78
+ "gitHead": "190221b03dd69ce8805fe5ab9ab184a798c0158a"
79
79
  }
package/src/types.ts CHANGED
@@ -5,6 +5,8 @@ import type {
5
5
  CosmosChainInfo,
6
6
  Denom,
7
7
  DenomDetail,
8
+ BaseChainInfo,
9
+ KnownNamespace,
8
10
  } from '@agoric/orchestration';
9
11
  import type { IBCChannelID } from '@agoric/vats';
10
12
  import type { Amount } from '@agoric/ertp';
@@ -152,7 +154,7 @@ export type FastUSDCConfig = {
152
154
  feeConfig: FeeConfig;
153
155
  feedPolicy: FeedPolicy;
154
156
  noNoble: boolean; // support a3p-integration, which has no noble chain
155
- chainInfo: Record<string, CosmosChainInfo & Passable>;
157
+ chainInfo: Record<string, ChainHubChainInfo & Passable>;
156
158
  assetInfo: [Denom, DenomDetail & { brandKey?: string }][];
157
159
  } & CopyRecord;
158
160
 
@@ -165,4 +167,18 @@ export type AddressHook = {
165
167
  };
166
168
  };
167
169
 
170
+ /**
171
+ * The shape of ChainInfo ChainHub is expecting for FUSDC.
172
+ *
173
+ * Note: this diverges from `CosmosChainInfo` and `BaseChainInfo` in that:
174
+ * - BaseChainInfo includes chainId for backwards compatibility with `CosmosChainInfoShapeV1`
175
+ */
176
+ export type ChainHubChainInfo<N extends KnownNamespace = KnownNamespace> =
177
+ N extends 'cosmos' ? CosmosChainInfo : BaseChainInfoWithChainId<N>;
178
+
179
+ interface BaseChainInfoWithChainId<N extends KnownNamespace = KnownNamespace>
180
+ extends BaseChainInfo<N> {
181
+ chainId: string;
182
+ }
183
+
168
184
  export type * from './constants.js';