Skip to content

Commit

Permalink
rename to IProgramAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley committed Sep 6, 2024
1 parent dce2e71 commit 8a5d75c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/common/solana/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface ThrottleParams {
sendThrottler?: PQueue;
}

export interface ProgramAccount<T> {
export interface IProgramAccount<T> {
publicKey: PublicKey;
account: T;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/distributor/solana/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
prepareTransaction,
getMintAndProgram,
buildSendThrottler,
ProgramAccount,
IProgramAccount,
} from "@streamflow/common/solana";

import { DISTRIBUTOR_ADMIN_OFFSET, DISTRIBUTOR_MINT_OFFSET, DISTRIBUTOR_PROGRAM_ID } from "./constants";
Expand Down Expand Up @@ -366,7 +366,7 @@ export default class SolanaDistributorClient {
return MerkleDistributor.fetchMultiple(this.connection, distributorPublicKeys, this.programId);
}

public async searchDistributors(data: ISearchDistributors): Promise<ProgramAccount<MerkleDistributor>[]> {
public async searchDistributors(data: ISearchDistributors): Promise<IProgramAccount<MerkleDistributor>[]> {
const filters: MemcmpFilter[] = [{ memcmp: { offset: 0, bytes: bs58.encode(MerkleDistributor.discriminator) } }];
if (data.mint) {
filters.push({
Expand Down
4 changes: 2 additions & 2 deletions packages/stream/solana/StreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
executeTransaction,
executeMultipleTransactions,
buildSendThrottler,
ProgramAccount,
IProgramAccount,
} from "@streamflow/common/solana";
import * as borsh from "borsh";

Expand Down Expand Up @@ -894,7 +894,7 @@ export default class SolanaStreamClient extends BaseStreamClient {
return sortedStreams.filter((stream) => stream[1].type === type);
}

public async searchStreams(data: ISearchStreams): Promise<ProgramAccount<Stream>[]> {
public async searchStreams(data: ISearchStreams): Promise<IProgramAccount<Stream>[]> {
const filters: MemcmpFilter[] = [];
for (const [k, v] of Object.entries(data)) {
if (v) {
Expand Down

0 comments on commit 8a5d75c

Please sign in to comment.