Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-SEQUIER committed Jan 10, 2025
1 parent d9c7f49 commit 8c80de5
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 294 deletions.
13 changes: 9 additions & 4 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1242,23 +1242,28 @@ export interface DataIrysFetchedFromGQL {

export interface GraphQLTag {
name: string;
values: string[];
values: any[];
}

export enum IrysMessageType {
export const enum IrysMessageType {
REQUEST = "REQUEST",
DATA_STORAGE = "DATA_STORAGE",
REQUEST_RESPONSE = "REQUEST_RESPONSE",
}

export enum IrysDataType {
export const enum IrysDataType {
FILE = "FILE",
IMAGE = "IMAGE",
OTHER = "OTHER",
}

export interface IrysTimestamp {
from: number;
to: number;
}

export interface IIrysService extends Service {
getDataFromAnAgent(agentsWalletPublicKeys: string[], tags: GraphQLTag[]): Promise<DataIrysFetchedFromGQL>;
getDataFromAnAgent(agentsWalletPublicKeys: string[], tags: GraphQLTag[], timestamp: IrysTimestamp): Promise<DataIrysFetchedFromGQL>;
uploadFileOrImageOnIrys(data: string, tags: GraphQLTag[]): Promise<UploadIrysResult>;
workerUploadDataOnIrys(data: any, dataType: IrysDataType, messageType: IrysMessageType, serviceCategory: string[], protocol: string[], validationThreshold: number[], minimumProviders: number[], testProvider: boolean[], reputation: number[]): Promise<UploadIrysResult>;
providerUploadDataOnIrys(data: any, dataType: IrysDataType, serviceCategory: string[], protocol: string[]): Promise<UploadIrysResult>;
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-irys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint --fix --cache ."
"lint": "eslint --fix --cache .",
"test": "vitest run"
}
}
44 changes: 0 additions & 44 deletions packages/plugin-irys/src/agent-test/actions/retrieveData.ts

This file was deleted.

47 changes: 0 additions & 47 deletions packages/plugin-irys/src/agent-test/actions/storeData.ts

This file was deleted.

165 changes: 0 additions & 165 deletions packages/plugin-irys/src/agent-test/services/irysService.ts

This file was deleted.

Loading

0 comments on commit 8c80de5

Please sign in to comment.