Skip to content

Commit

Permalink
no chain-agnostic queries
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 10, 2024
1 parent 48f62fd commit dfbc592
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/orchestration/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import type {
CosmosStakingFacet,
Denom,
IcaAccount,
Proto3JSONMsg,
} from './cosmos-api.js';
import type { EthChainInfo } from './ethereum-api.js';
import type { ICQConnection } from './exos/icqConnectionKit.js';
import type {
ChainAddress,
OrchestrationAccountI,
Expand All @@ -39,6 +39,7 @@ export type KnownChains = {
// distinguish from generic. Alternately, there could be a method to get a
// generic facade on the chain-native methods.
getIcaAcccount: () => IcaAccount;
getIcqConnection: () => ICQConnection;
getStakingFacet: () => CosmosStakingFacet;
};
};
Expand Down Expand Up @@ -98,14 +99,6 @@ export interface Chain<C extends keyof KnownChains> {
makeAccount: () => Promise<OrchestrationAccount<C>>;
// FUTURE supply optional port object; also fetch port object

/**
* Low level operation to query external chain state (e.g., governance params)
* @param queries
* @returns
*
*/
query: (queries: Proto3JSONMsg[]) => Promise<Iterable<QueryResult>>;

// TODO provide a way to get the local denom/brand/whatever for this chain
}

Expand Down

0 comments on commit dfbc592

Please sign in to comment.