@agoric/fast-usdc 0.1.1-dev-14afd8f.0.14afd8f → 0.1.1-dev-cbcea8c.0.cbcea8c
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 +19 -19
- package/src/operator-kit-interface.d.ts +6 -4
- package/src/operator-kit-interface.d.ts.map +1 -1
- package/src/type-guards.d.ts +38 -38
- package/src/type-guards.d.ts.map +1 -1
- package/src/type-guards.js +20 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/fast-usdc",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-cbcea8c.0.cbcea8c",
|
|
4
4
|
"description": "CLI and library for Fast USDC product",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
"ts-blank-space": "^0.6.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/client-utils": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
41
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
42
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
36
|
+
"@agoric/client-utils": "0.1.1-dev-cbcea8c.0.cbcea8c",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-cbcea8c.0.cbcea8c",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-cbcea8c.0.cbcea8c",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-cbcea8c.0.cbcea8c",
|
|
40
|
+
"@agoric/notifier": "0.6.3-dev-cbcea8c.0.cbcea8c",
|
|
41
|
+
"@agoric/orchestration": "0.1.1-dev-cbcea8c.0.cbcea8c",
|
|
42
|
+
"@agoric/zoe": "0.26.3-dev-cbcea8c.0.cbcea8c",
|
|
43
43
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
44
44
|
"@cosmjs/stargate": "^0.36.0",
|
|
45
|
-
"@endo/base64": "^1.
|
|
46
|
-
"@endo/common": "^1.
|
|
47
|
-
"@endo/errors": "^1.
|
|
48
|
-
"@endo/eventual-send": "^1.
|
|
45
|
+
"@endo/base64": "^1.1.1",
|
|
46
|
+
"@endo/common": "^1.4.0",
|
|
47
|
+
"@endo/errors": "^1.3.1",
|
|
48
|
+
"@endo/eventual-send": "^1.5.0",
|
|
49
49
|
"@endo/far": "^1.1.14",
|
|
50
|
-
"@endo/init": "^1.1.
|
|
51
|
-
"@endo/marshal": "^1.
|
|
52
|
-
"@endo/nat": "^5.
|
|
53
|
-
"@endo/pass-style": "^1.
|
|
54
|
-
"@endo/patterns": "^1.
|
|
55
|
-
"@endo/promise-kit": "^1.1
|
|
50
|
+
"@endo/init": "^1.1.13",
|
|
51
|
+
"@endo/marshal": "^1.10.0",
|
|
52
|
+
"@endo/nat": "^5.2.0",
|
|
53
|
+
"@endo/pass-style": "^1.8.1",
|
|
54
|
+
"@endo/patterns": "^1.9.1",
|
|
55
|
+
"@endo/promise-kit": "^1.2.1",
|
|
56
56
|
"@nick134-bit/noblejs": "0.0.2",
|
|
57
57
|
"bech32": "^2.0.0",
|
|
58
58
|
"commander": "^12.1.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": "^22.11"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "cbcea8c2415f2c9c4bc1ea9ff90730f2773bafaa"
|
|
89
89
|
}
|
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
export const INVITATION_MAKERS_DESC: "oracle operator invitation";
|
|
7
7
|
export namespace OperatorKitI {
|
|
8
8
|
let admin: import("@endo/patterns").InterfaceGuard<{
|
|
9
|
-
disable: import("@endo/patterns").MethodGuard
|
|
9
|
+
disable: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], any, import("@endo/patterns").SyncValueGuard>;
|
|
10
10
|
}>;
|
|
11
11
|
let invitationMakers: import("@endo/patterns").InterfaceGuard<{
|
|
12
|
-
SubmitEvidence: import("@endo/patterns").MethodGuard
|
|
12
|
+
SubmitEvidence: import("@endo/patterns").MethodGuard<"sync", [import("@endo/patterns").CastedPattern<CctpTxEvidence>], [import("@endo/patterns").CastedPattern<RiskAssessment>], import("@endo/patterns").MatcherOf<"promise", any>, import("@endo/patterns").SyncValueGuard>;
|
|
13
13
|
}>;
|
|
14
14
|
let operator: import("@endo/patterns").InterfaceGuard<{
|
|
15
|
-
submitEvidence: import("@endo/patterns").MethodGuard
|
|
16
|
-
getStatus: import("@endo/patterns").MethodGuard
|
|
15
|
+
submitEvidence: import("@endo/patterns").MethodGuard<"sync", [import("@endo/patterns").CastedPattern<CctpTxEvidence>], [import("@endo/patterns").CastedPattern<RiskAssessment>], any, import("@endo/patterns").SyncValueGuard>;
|
|
16
|
+
getStatus: import("@endo/patterns").MethodGuard<"sync", [], import("@endo/patterns").ArgGuard[], import("@endo/patterns").MatcherOf<"recordOf", any>, import("@endo/patterns").SyncValueGuard>;
|
|
17
17
|
}>;
|
|
18
18
|
}
|
|
19
|
+
import type { CctpTxEvidence } from '@agoric/fast-usdc/src/types.js';
|
|
20
|
+
import type { RiskAssessment } from '@agoric/fast-usdc/src/types.js';
|
|
19
21
|
//# sourceMappingURL=operator-kit-interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-kit-interface.d.ts","sourceRoot":"","sources":["operator-kit-interface.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,0EAA0E;AAC1E,qCAAsC,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"operator-kit-interface.d.ts","sourceRoot":"","sources":["operator-kit-interface.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,0EAA0E;AAC1E,qCAAsC,4BAA4B,CAAC;;;;;;;;;;;;;oCAJlB,gCAAgC;oCAAhC,gCAAgC"}
|
package/src/type-guards.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export function makeNatAmountShape(brand: Brand<"nat">, min?: NatValue): {
|
|
2
2
|
brand: Brand<"nat">;
|
|
3
|
-
value: import("@endo/patterns").
|
|
3
|
+
value: import("@endo/patterns").MatcherOf<"nat", bigint> | import("@endo/patterns").MatcherOf<"gte", import("@endo/patterns").Key>;
|
|
4
4
|
};
|
|
5
5
|
export function makeProposalShapes({ PoolShares, USDC }: Record<"PoolShares" | "USDC", Brand<"nat">>): {
|
|
6
6
|
deposit: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
7
|
-
"Symbol(
|
|
7
|
+
"Symbol(castedType)"?: {
|
|
8
8
|
give: {
|
|
9
9
|
USDC: Amount<"nat">;
|
|
10
10
|
};
|
|
@@ -13,7 +13,7 @@ export function makeProposalShapes({ PoolShares, USDC }: Record<"PoolShares" | "
|
|
|
13
13
|
};
|
|
14
14
|
} | undefined;
|
|
15
15
|
}) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
16
|
-
"Symbol(
|
|
16
|
+
"Symbol(castedType)"?: {
|
|
17
17
|
give: {
|
|
18
18
|
USDC: Amount<"nat">;
|
|
19
19
|
};
|
|
@@ -23,7 +23,7 @@ export function makeProposalShapes({ PoolShares, USDC }: Record<"PoolShares" | "
|
|
|
23
23
|
} | undefined;
|
|
24
24
|
});
|
|
25
25
|
withdraw: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
26
|
-
"Symbol(
|
|
26
|
+
"Symbol(castedType)"?: {
|
|
27
27
|
give: {
|
|
28
28
|
PoolShare: Amount<"nat">;
|
|
29
29
|
};
|
|
@@ -32,7 +32,7 @@ export function makeProposalShapes({ PoolShares, USDC }: Record<"PoolShares" | "
|
|
|
32
32
|
};
|
|
33
33
|
} | undefined;
|
|
34
34
|
}) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
35
|
-
"Symbol(
|
|
35
|
+
"Symbol(castedType)"?: {
|
|
36
36
|
give: {
|
|
37
37
|
PoolShare: Amount<"nat">;
|
|
38
38
|
};
|
|
@@ -42,61 +42,61 @@ export function makeProposalShapes({ PoolShares, USDC }: Record<"PoolShares" | "
|
|
|
42
42
|
} | undefined;
|
|
43
43
|
});
|
|
44
44
|
withdrawFees: (import("@endo/pass-style").CopyRecordInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
45
|
-
"Symbol(
|
|
45
|
+
"Symbol(castedType)"?: {
|
|
46
46
|
want: {
|
|
47
47
|
USDC: Amount<"nat">;
|
|
48
48
|
};
|
|
49
49
|
} | undefined;
|
|
50
50
|
}) | (import("@endo/pass-style").CopyTaggedInterface<import("@endo/pass-style").PassableCap, Error> & {
|
|
51
|
-
"Symbol(
|
|
51
|
+
"Symbol(castedType)"?: {
|
|
52
52
|
want: {
|
|
53
53
|
USDC: Amount<"nat">;
|
|
54
54
|
};
|
|
55
55
|
} | undefined;
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
/** @type {
|
|
59
|
-
export const FastUSDCTermsShape:
|
|
60
|
-
/** @type {
|
|
61
|
-
export const EvmAddressShape:
|
|
62
|
-
/** @type {
|
|
63
|
-
export const EvmHashShape:
|
|
64
|
-
/** @type {
|
|
65
|
-
export const RiskAssessmentShape:
|
|
66
|
-
/** @type {
|
|
67
|
-
export const CctpTxEvidenceShape:
|
|
68
|
-
/** @type {
|
|
69
|
-
export const EvidenceWithRiskShape:
|
|
70
|
-
/** @type {
|
|
71
|
-
export const PendingTxShape:
|
|
72
|
-
/** @type {
|
|
73
|
-
export const AddressHookShape:
|
|
74
|
-
/** @type {
|
|
75
|
-
export const DestinationOverridesShape:
|
|
76
|
-
/** @type {
|
|
77
|
-
export const FeeConfigShape:
|
|
78
|
-
/** @type {
|
|
79
|
-
export const PoolMetricsShape:
|
|
80
|
-
/** @type {
|
|
81
|
-
export const ChainPolicyShape:
|
|
58
|
+
/** @type {CastedPattern<FastUsdcTerms>} */
|
|
59
|
+
export const FastUSDCTermsShape: CastedPattern<FastUsdcTerms>;
|
|
60
|
+
/** @type {CastedPattern<EvmAddress>} */
|
|
61
|
+
export const EvmAddressShape: CastedPattern<EvmAddress>;
|
|
62
|
+
/** @type {CastedPattern<EvmHash>} */
|
|
63
|
+
export const EvmHashShape: CastedPattern<EvmHash>;
|
|
64
|
+
/** @type {CastedPattern<RiskAssessment>} */
|
|
65
|
+
export const RiskAssessmentShape: CastedPattern<RiskAssessment>;
|
|
66
|
+
/** @type {CastedPattern<CctpTxEvidence>} */
|
|
67
|
+
export const CctpTxEvidenceShape: CastedPattern<CctpTxEvidence>;
|
|
68
|
+
/** @type {CastedPattern<EvidenceWithRisk>} */
|
|
69
|
+
export const EvidenceWithRiskShape: CastedPattern<EvidenceWithRisk>;
|
|
70
|
+
/** @type {CastedPattern<PendingTx>} */
|
|
71
|
+
export const PendingTxShape: CastedPattern<PendingTx>;
|
|
72
|
+
/** @type {CastedPattern<AddressHook>} */
|
|
73
|
+
export const AddressHookShape: CastedPattern<AddressHook>;
|
|
74
|
+
/** @type {CastedPattern<FeeConfig['destinationOverrides']>} */
|
|
75
|
+
export const DestinationOverridesShape: CastedPattern<FeeConfig["destinationOverrides"]>;
|
|
76
|
+
/** @type {CastedPattern<FeeConfig>} */
|
|
77
|
+
export const FeeConfigShape: CastedPattern<FeeConfig>;
|
|
78
|
+
/** @type {CastedPattern<PoolMetrics>} */
|
|
79
|
+
export const PoolMetricsShape: CastedPattern<PoolMetrics>;
|
|
80
|
+
/** @type {CastedPattern<ChainPolicy>} */
|
|
81
|
+
export const ChainPolicyShape: CastedPattern<ChainPolicy>;
|
|
82
82
|
/**
|
|
83
|
-
* @type {
|
|
83
|
+
* @type {CastedPattern<FeedPolicy>}
|
|
84
84
|
*
|
|
85
85
|
* must be CopyData; no Brands or other Remotables
|
|
86
86
|
*/
|
|
87
|
-
export const FeedPolicyShape:
|
|
87
|
+
export const FeedPolicyShape: CastedPattern<FeedPolicy>;
|
|
88
88
|
/**
|
|
89
89
|
* The version of CosmosChainInfoShape that matches the `valueShape` used in FUSDC's ChainHub's `chainInfos` mapStore.
|
|
90
|
-
* @type {
|
|
90
|
+
* @type {CastedPattern<CosmosChainInfo>}
|
|
91
91
|
*/
|
|
92
|
-
export const CosmosChainInfoShapeV1:
|
|
93
|
-
/** @type {
|
|
94
|
-
export const FastUSDCConfigShape:
|
|
92
|
+
export const CosmosChainInfoShapeV1: CastedPattern<CosmosChainInfo>;
|
|
93
|
+
/** @type {CastedPattern<FastUSDCConfig>} */
|
|
94
|
+
export const FastUSDCConfigShape: CastedPattern<FastUSDCConfig>;
|
|
95
95
|
import type { Brand } from '@agoric/ertp';
|
|
96
96
|
import type { NatValue } from '@agoric/ertp';
|
|
97
97
|
import type { Amount } from '@agoric/ertp';
|
|
98
98
|
import type { FastUsdcTerms } from './types.js';
|
|
99
|
-
import type {
|
|
99
|
+
import type { CastedPattern } from '@endo/patterns';
|
|
100
100
|
import type { EvmAddress } from './types.js';
|
|
101
101
|
import type { EvmHash } from './types.js';
|
|
102
102
|
import type { RiskAssessment } from './types.js';
|
package/src/type-guards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["type-guards.js"],"names":[],"mappings":"AAqBO,0CAHI,MAAM,KAAK,CAAC,QACZ,QAAQ;;;EAGmC;AAG/C,yDADK,MAAM,CAAC,YAAY,GAAG,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtD;AAED,
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["type-guards.js"],"names":[],"mappings":"AAqBO,0CAHI,MAAM,KAAK,CAAC,QACZ,QAAQ;;;EAGmC;AAG/C,yDADK,MAAM,CAAC,YAAY,GAAG,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtD;AAED,2CAA2C;AAC3C,iCADW,cAAc,aAAa,CAAC,CAGpC;AAEH,wCAAwC;AACxC,8BADW,cAAc,UAAU,CAAC,CAIjC;AAGH,qCAAqC;AACrC,2BADW,cAAc,OAAO,CAAC,CAG9B;AAGH,4CAA4C;AAC5C,kCADW,cAAc,cAAc,CAAC,CAMtC;AAGF,4CAA4C;AAC5C,kCADW,cAAc,cAAc,CAAC,CAgBtC;AAGF,8CAA8C;AAC9C,oCADW,cAAc,gBAAgB,CAAC,CAIxC;AAGF,uCAAuC;AAEvC,6BAFW,cAAc,SAAS,CAAC,CAKjC;AAGF,yCAAyC;AACzC,+BADW,cAAc,WAAW,CAAC,CAInC;AAKF,+DAA+D;AAC/D,wCADW,cAAc,SAAS,CAAC,sBAAsB,CAAC,CAAC,CAYzD;AAEF,uCAAuC;AACvC,6BADW,cAAc,SAAS,CAAC,CAYjC;AAEF,yCAAyC;AACzC,+BADW,cAAc,WAAW,CAAC,CAQnC;AAGF,yCAAyC;AACzC,+BADW,cAAc,WAAW,CAAC,CAenC;AAGF;;;;GAIG;AACH,8BAJU,cAAc,UAAU,CAAC,CAWjC;AAGF;;;GAGG;AACH,qCAFU,cAAc,eAAe,CAAC,CActC;AAEF,4CAA4C;AAC5C,kCADW,cAAc,cAAc,CAAC,CAQrC;2BA1MgD,cAAc;8BAAd,cAAc;4BAAd,cAAc;mCAK+H,YAAY;mCAJ5K,gBAAgB;gCAIgJ,YAAY;6BAAZ,YAAY;oCAAZ,YAAY;oCAAZ,YAAY;sCAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY;iCAAZ,YAAY;gCAAZ,YAAY;qCAFnH,uBAAuB;oCAEgF,YAAY"}
|
package/src/type-guards.js
CHANGED
|
@@ -8,7 +8,7 @@ import { PendingTxStatus } from './constants.js';
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @import {Amount, Brand, NatValue, Payment} from '@agoric/ertp';
|
|
11
|
-
* @import {
|
|
11
|
+
* @import {CastedPattern} from '@endo/patterns';
|
|
12
12
|
* @import {IBCConnectionInfo} from '@agoric/network/ibc';
|
|
13
13
|
* @import {CosmosChainInfo, Denom, DenomDetail, OrchestrationAccount, CaipChainId} from '@agoric/orchestration';
|
|
14
14
|
* @import {USDCProposalShapes} from './pool-share-math.js';
|
|
@@ -24,42 +24,42 @@ export const makeNatAmountShape = (brand, min) =>
|
|
|
24
24
|
|
|
25
25
|
/** @param {Record<'PoolShares' | 'USDC', Brand<'nat'>>} brands */
|
|
26
26
|
export const makeProposalShapes = ({ PoolShares, USDC }) => {
|
|
27
|
-
/** @type {
|
|
27
|
+
/** @type {CastedPattern<USDCProposalShapes['deposit']>} */
|
|
28
28
|
const deposit = M.splitRecord({
|
|
29
29
|
give: { USDC: makeNatAmountShape(USDC, 1n) },
|
|
30
30
|
want: { PoolShare: makeNatAmountShape(PoolShares) },
|
|
31
31
|
});
|
|
32
|
-
/** @type {
|
|
32
|
+
/** @type {CastedPattern<USDCProposalShapes['withdraw']>} */
|
|
33
33
|
const withdraw = M.splitRecord({
|
|
34
34
|
give: { PoolShare: makeNatAmountShape(PoolShares, 1n) },
|
|
35
35
|
want: { USDC: makeNatAmountShape(USDC, 1n) },
|
|
36
36
|
});
|
|
37
|
-
/** @type {
|
|
37
|
+
/** @type {CastedPattern<USDCProposalShapes['withdrawFees']>} */
|
|
38
38
|
const withdrawFees = M.splitRecord({
|
|
39
39
|
want: { USDC: makeNatAmountShape(USDC, 1n) },
|
|
40
40
|
});
|
|
41
41
|
return harden({ deposit, withdraw, withdrawFees });
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
/** @type {
|
|
44
|
+
/** @type {CastedPattern<FastUsdcTerms>} */
|
|
45
45
|
export const FastUSDCTermsShape = harden({
|
|
46
46
|
usdcDenom: M.string(),
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
/** @type {
|
|
49
|
+
/** @type {CastedPattern<EvmAddress>} */
|
|
50
50
|
export const EvmAddressShape = M.string({
|
|
51
51
|
// 0x + 40 hex digits
|
|
52
52
|
stringLengthLimit: 42,
|
|
53
53
|
});
|
|
54
54
|
harden(EvmAddressShape);
|
|
55
55
|
|
|
56
|
-
/** @type {
|
|
56
|
+
/** @type {CastedPattern<EvmHash>} */
|
|
57
57
|
export const EvmHashShape = M.string({
|
|
58
58
|
stringLengthLimit: 66,
|
|
59
59
|
});
|
|
60
60
|
harden(EvmHashShape);
|
|
61
61
|
|
|
62
|
-
/** @type {
|
|
62
|
+
/** @type {CastedPattern<RiskAssessment>} */
|
|
63
63
|
export const RiskAssessmentShape = M.splitRecord(
|
|
64
64
|
{},
|
|
65
65
|
{
|
|
@@ -68,7 +68,7 @@ export const RiskAssessmentShape = M.splitRecord(
|
|
|
68
68
|
);
|
|
69
69
|
harden(RiskAssessmentShape);
|
|
70
70
|
|
|
71
|
-
/** @type {
|
|
71
|
+
/** @type {CastedPattern<CctpTxEvidence>} */
|
|
72
72
|
export const CctpTxEvidenceShape = {
|
|
73
73
|
aux: {
|
|
74
74
|
forwardingChannel: M.string(),
|
|
@@ -87,22 +87,22 @@ export const CctpTxEvidenceShape = {
|
|
|
87
87
|
};
|
|
88
88
|
harden(CctpTxEvidenceShape);
|
|
89
89
|
|
|
90
|
-
/** @type {
|
|
90
|
+
/** @type {CastedPattern<EvidenceWithRisk>} */
|
|
91
91
|
export const EvidenceWithRiskShape = {
|
|
92
92
|
evidence: CctpTxEvidenceShape,
|
|
93
93
|
risk: RiskAssessmentShape,
|
|
94
94
|
};
|
|
95
95
|
harden(EvidenceWithRiskShape);
|
|
96
96
|
|
|
97
|
-
/** @type {
|
|
98
|
-
// @ts-expect-error
|
|
97
|
+
/** @type {CastedPattern<PendingTx>} */
|
|
98
|
+
// @ts-expect-error CastedPattern not recognized as record
|
|
99
99
|
export const PendingTxShape = {
|
|
100
100
|
...CctpTxEvidenceShape,
|
|
101
101
|
status: M.or(...Object.values(PendingTxStatus)),
|
|
102
102
|
};
|
|
103
103
|
harden(PendingTxShape);
|
|
104
104
|
|
|
105
|
-
/** @type {
|
|
105
|
+
/** @type {CastedPattern<AddressHook>} */
|
|
106
106
|
export const AddressHookShape = {
|
|
107
107
|
baseAddress: M.string(),
|
|
108
108
|
query: { EUD: M.string() },
|
|
@@ -111,7 +111,7 @@ harden(AddressHookShape);
|
|
|
111
111
|
|
|
112
112
|
const NatAmountShape = { brand: BrandShape, value: M.nat() };
|
|
113
113
|
|
|
114
|
-
/** @type {
|
|
114
|
+
/** @type {CastedPattern<FeeConfig['destinationOverrides']>} */
|
|
115
115
|
export const DestinationOverridesShape = M.recordOf(
|
|
116
116
|
M.string(),
|
|
117
117
|
M.splitRecord(
|
|
@@ -125,7 +125,7 @@ export const DestinationOverridesShape = M.recordOf(
|
|
|
125
125
|
),
|
|
126
126
|
);
|
|
127
127
|
|
|
128
|
-
/** @type {
|
|
128
|
+
/** @type {CastedPattern<FeeConfig>} */
|
|
129
129
|
export const FeeConfigShape = M.splitRecord(
|
|
130
130
|
{
|
|
131
131
|
flat: NatAmountShape,
|
|
@@ -139,7 +139,7 @@ export const FeeConfigShape = M.splitRecord(
|
|
|
139
139
|
{},
|
|
140
140
|
);
|
|
141
141
|
|
|
142
|
-
/** @type {
|
|
142
|
+
/** @type {CastedPattern<PoolMetrics>} */
|
|
143
143
|
export const PoolMetricsShape = {
|
|
144
144
|
encumberedBalance: AmountShape,
|
|
145
145
|
shareWorth: RatioShape,
|
|
@@ -150,7 +150,7 @@ export const PoolMetricsShape = {
|
|
|
150
150
|
};
|
|
151
151
|
harden(PoolMetricsShape);
|
|
152
152
|
|
|
153
|
-
/** @type {
|
|
153
|
+
/** @type {CastedPattern<ChainPolicy>} */
|
|
154
154
|
export const ChainPolicyShape = {
|
|
155
155
|
attenuatedCttpBridgeAddresses: M.splitArray(
|
|
156
156
|
[EvmHashShape],
|
|
@@ -169,7 +169,7 @@ export const ChainPolicyShape = {
|
|
|
169
169
|
harden(ChainPolicyShape);
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
* @type {
|
|
172
|
+
* @type {CastedPattern<FeedPolicy>}
|
|
173
173
|
*
|
|
174
174
|
* must be CopyData; no Brands or other Remotables
|
|
175
175
|
*/
|
|
@@ -185,7 +185,7 @@ harden(FeedPolicyShape);
|
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* The version of CosmosChainInfoShape that matches the `valueShape` used in FUSDC's ChainHub's `chainInfos` mapStore.
|
|
188
|
-
* @type {
|
|
188
|
+
* @type {CastedPattern<CosmosChainInfo>}
|
|
189
189
|
*/
|
|
190
190
|
export const CosmosChainInfoShapeV1 = M.splitRecord(
|
|
191
191
|
{
|
|
@@ -201,7 +201,7 @@ export const CosmosChainInfoShapeV1 = M.splitRecord(
|
|
|
201
201
|
},
|
|
202
202
|
);
|
|
203
203
|
|
|
204
|
-
/** @type {
|
|
204
|
+
/** @type {CastedPattern<FastUSDCConfig>} */
|
|
205
205
|
export const FastUSDCConfigShape = M.splitRecord({
|
|
206
206
|
terms: FastUSDCTermsShape,
|
|
207
207
|
oracles: M.recordOf(M.string(), M.string()),
|