Skip to content

Commit

Permalink
fix(filters): punt filters
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Feb 22, 2024
1 parent 849834d commit 1c23cb3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/types/arns-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ export type ObserversResponse = ArNSStateResponse<
Record<string, WieghtedObserver[]>
>;

export type ArNSFilters = {
blockHeight?: number;
sortKey?: string;
};
export interface ArIONetworkContract {
gateways(): Promise<Pick<GatewaysResponse, 'gateways'>>;
records(): Promise<Pick<RecordsResponse, 'records'>>;
Expand All @@ -72,9 +68,11 @@ export interface ContractCache {
*/
getContractState<ContractState>({
contractTxId,
filters,
blockHeight,
sortKey,
}: {
contractTxId: string;
filters: Pick<ArNSFilters, 'blockHeight' | 'sortKey'>;
blockHeight?: number;
sortKey?: string;
}): Promise<ContractState>;
}

0 comments on commit 1c23cb3

Please sign in to comment.