Skip to content

Commit

Permalink
type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
iomekam committed Nov 11, 2024
1 parent 2489409 commit e6c5f76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { coerceCoin, coerceDenomAmount } from '../utils/amounts.js';
/**
* @import {HostOf} from '@agoric/async-flow';
* @import {LocalChain, LocalChainAccount} from '@agoric/vats/src/localchain.js';
* @import {AmountArg, ChainAddress, DenomAmount, IBCMsgTransferOptions, IBCConnectionInfo, OrchestrationAccountI, LocalAccountMethods, ForwardInfo, ChainInfo} from '@agoric/orchestration';
* @import {AmountArg, ChainAddress, DenomAmount, IBCMsgTransferOptions, IBCConnectionInfo, OrchestrationAccountI, LocalAccountMethods, ForwardInfo, ChainInfo, CosmosChainInfo} from '@agoric/orchestration';
* @import {RecorderKit, MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js'.
* @import {Zone} from '@agoric/zone';
* @import {Remote} from '@agoric/internal';
Expand Down Expand Up @@ -522,7 +522,8 @@ export const prepareLocalOrchestrationAccountKit = (
timeoutTimestampVowOrValue,
},
) {
const { chainId: baseChainId, pfmEnabled } = chainInfo;
const { chainId: baseChainId, pfmEnabled } =
/** @type(CosmosChainInfo) */ (chainInfo);

Check failure on line 526 in packages/orchestration/src/exos/local-orchestration-account.js

View workflow job for this annotation

GitHub Actions / lint-rest

Invalid JSDoc tag name "type(CosmosChainInfo)"

if (baseChainId !== destination.chainId && baseName !== 'agoric') {
if (!pfmEnabled) {
Expand Down
2 changes: 1 addition & 1 deletion packages/orchestration/src/typeGuards.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ export const CosmosChainInfoShape = M.splitRecord(
stakingTokens: M.arrayOf({ denom: M.string() }),
// UNTIL https://github.com/Agoric/agoric-sdk/issues/9326
icqEnabled: M.boolean(),
pfmEnabled: M.opt(M.boolean()),
},
);

/** @type {TypedPattern<ChainInfo>} */
export const ChainInfoShape = M.splitRecord({
chainId: M.string(),
pfmEnabled: M.opt(M.boolean()),
});
export const DenomShape = M.string();

Expand Down

0 comments on commit e6c5f76

Please sign in to comment.