-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added getCrawlStatus * Removed SignedData and Updated SignedMessage * Added startCrawl and stopCrawl for Bank And CV class * Added crawl doc for Bank and CV
- Loading branch information
Showing
13 changed files
with
223 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** The model for crawl status. */ | ||
export type CrawlCommand = "start" | "stop"; | ||
|
||
/** The model for crawl data. */ | ||
export interface CrawlData { | ||
crawl: CrawlCommand; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export type { AccountData } from "./account-data"; | ||
export type { BlockData } from "./block-data"; | ||
export type { BlockMessage } from "./block-message"; | ||
export type { CrawlCommand, CrawlData } from "./crawl-data"; | ||
export type { ServerNodeOptions } from "./server-node-options"; | ||
export type { PaymentHandlerOptions } from "./payment-handler-options"; | ||
export type { AccountPaymentHandlerOptions } from "./account-payment-handler-options"; | ||
export type { PaginationOptions } from "./pagination-options"; | ||
export type { SignedData } from "./signed-data"; | ||
export type { SignedMessage } from "./signed-message"; | ||
export type { Transaction } from "./transaction"; | ||
export * from "./responses"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { Origin, Port, Protocol } from "../constants"; | ||
|
||
/** The response model for a crawl request. */ | ||
export interface CrawlResponse { | ||
crawl_last_completed: string; | ||
crawl_status: string; | ||
ip_address: Origin; | ||
port: Port; | ||
protocol: Protocol; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import type { SignedData } from "./signed-data"; | ||
/** The interface for the signed message that can send data to the server nodes. */ | ||
|
||
/** The interface for user authenticated messages. */ | ||
export interface SignedMessage<T> extends SignedData<T> { | ||
export interface SignedMessage<T> { | ||
message: T; | ||
node_identifier: string; | ||
signature: string; | ||
} |
Oops, something went wrong.