@agoric/client-utils 0.1.1-dev-37e30ec.0 → 0.1.1-dev-35cb8ca.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 +7 -7
- package/src/types.d.ts +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/client-utils",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-35cb8ca.0+35cb8ca",
|
|
4
4
|
"description": "Utilities for building Agoric clients",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"ts-blank-space": "^0.4.4"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/casting": "0.4.3-dev-
|
|
31
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-dev-
|
|
33
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
34
|
-
"@agoric/vats": "0.15.2-dev-
|
|
30
|
+
"@agoric/casting": "0.4.3-dev-35cb8ca.0+35cb8ca",
|
|
31
|
+
"@agoric/ertp": "0.16.3-dev-35cb8ca.0+35cb8ca",
|
|
32
|
+
"@agoric/internal": "0.3.3-dev-35cb8ca.0+35cb8ca",
|
|
33
|
+
"@agoric/smart-wallet": "0.5.4-dev-35cb8ca.0+35cb8ca",
|
|
34
|
+
"@agoric/vats": "0.15.2-dev-35cb8ca.0+35cb8ca",
|
|
35
35
|
"@cosmjs/stargate": "^0.32.3",
|
|
36
36
|
"@cosmjs/tendermint-rpc": "^0.32.3",
|
|
37
37
|
"@endo/common": "^1.2.9",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
],
|
|
59
59
|
"timeout": "20m"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "35cb8caa621416371d94b570762804e703a23461"
|
|
62
62
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type {
|
|
|
10
10
|
CurrentWalletRecord,
|
|
11
11
|
UpdateRecord,
|
|
12
12
|
} from '@agoric/smart-wallet/src/smartWallet.js';
|
|
13
|
+
import type { ContractRecord, PoolMetrics } from '@agoric/fast-usdc';
|
|
13
14
|
|
|
14
15
|
// For static string key types. String template matching has to be in the ternary below.
|
|
15
16
|
type PublishedTypeMap = {
|
|
@@ -34,4 +35,12 @@ export type TypedPublished<T extends string> = T extends keyof PublishedTypeMap
|
|
|
34
35
|
? OutcomeRecord
|
|
35
36
|
: T extends `vaultFactory.managers.manager${number}.metrics`
|
|
36
37
|
? VaultManagerMetrics
|
|
37
|
-
:
|
|
38
|
+
: T extends 'agoricNames.instance'
|
|
39
|
+
? Array<[string, Instance]>
|
|
40
|
+
: T extends 'agoricNames.brand'
|
|
41
|
+
? Array<[string, Brand]>
|
|
42
|
+
: T extends 'fastUsdc'
|
|
43
|
+
? ContractRecord
|
|
44
|
+
: T extends 'fastUsdc.poolMetrics'
|
|
45
|
+
? PoolMetrics
|
|
46
|
+
: unknown;
|