-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
768fa92
commit 6a79d94
Showing
5 changed files
with
1,046 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "tig-benchmarker", | ||
"collaborators": [ | ||
"TIG UG <[email protected]>", | ||
"Ying Chan <[email protected]>" | ||
], | ||
"version": "0.1.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tig-foundation/tig-monorepo" | ||
}, | ||
"files": [ | ||
"tig_benchmarker_bg.wasm", | ||
"tig_benchmarker.js", | ||
"tig_benchmarker.d.ts" | ||
], | ||
"module": "tig_benchmarker.js", | ||
"types": "tig_benchmarker.d.ts", | ||
"sideEffects": [ | ||
"./snippets/*" | ||
] | ||
} |
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,106 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @returns {Promise<any>} | ||
*/ | ||
export function state(): Promise<any>; | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
export function start(): Promise<void>; | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
export function stop(): Promise<void>; | ||
/** | ||
* @param {string} challenge_id | ||
* @param {string} algorithm_id | ||
* @returns {Promise<void>} | ||
*/ | ||
export function select_algorithm(challenge_id: string, algorithm_id: string): Promise<void>; | ||
/** | ||
* @param {string} api_url | ||
* @param {string} api_key | ||
* @param {string} player_id | ||
* @param {number} num_workers | ||
* @returns {Promise<void>} | ||
*/ | ||
export function setup(api_url: string, api_key: string, player_id: string, num_workers: number): Promise<void>; | ||
/** | ||
*/ | ||
export class Duration { | ||
free(): void; | ||
/** | ||
*/ | ||
end: bigint; | ||
/** | ||
*/ | ||
now: bigint; | ||
/** | ||
*/ | ||
start: bigint; | ||
} | ||
/** | ||
*/ | ||
export class Job { | ||
free(): void; | ||
} | ||
/** | ||
*/ | ||
export class NonceIterator { | ||
free(): void; | ||
} | ||
/** | ||
*/ | ||
export class State { | ||
free(): void; | ||
} | ||
|
||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
|
||
export interface InitOutput { | ||
readonly memory: WebAssembly.Memory; | ||
readonly __wbg_duration_free: (a: number) => void; | ||
readonly __wbg_get_duration_start: (a: number) => number; | ||
readonly __wbg_set_duration_start: (a: number, b: number) => void; | ||
readonly __wbg_get_duration_end: (a: number) => number; | ||
readonly __wbg_set_duration_end: (a: number, b: number) => void; | ||
readonly __wbg_get_duration_now: (a: number) => number; | ||
readonly __wbg_set_duration_now: (a: number, b: number) => void; | ||
readonly __wbg_job_free: (a: number) => void; | ||
readonly __wbg_state_free: (a: number) => void; | ||
readonly __wbg_nonceiterator_free: (a: number) => void; | ||
readonly state: () => number; | ||
readonly start: () => number; | ||
readonly stop: () => number; | ||
readonly select_algorithm: (a: number, b: number, c: number, d: number) => number; | ||
readonly setup: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; | ||
readonly __wbindgen_malloc: (a: number, b: number) => number; | ||
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; | ||
readonly __wbindgen_export_2: WebAssembly.Table; | ||
readonly wasm_bindgen__convert__closures__invoke0_mut__hd4daf0498f1bb844: (a: number, b: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke1_mut__h678d2ac30749712c: (a: number, b: number, c: number) => void; | ||
readonly __wbindgen_exn_store: (a: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke2_mut__h23b77bd16ba95159: (a: number, b: number, c: number, d: number) => void; | ||
} | ||
|
||
export type SyncInitInput = BufferSource | WebAssembly.Module; | ||
/** | ||
* Instantiates the given `module`, which can either be bytes or | ||
* a precompiled `WebAssembly.Module`. | ||
* | ||
* @param {SyncInitInput} module | ||
* | ||
* @returns {InitOutput} | ||
*/ | ||
export function initSync(module: SyncInitInput): InitOutput; | ||
|
||
/** | ||
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and | ||
* for everything else, calls `WebAssembly.instantiate` directly. | ||
* | ||
* @param {InitInput | Promise<InitInput>} module_or_path | ||
* | ||
* @returns {Promise<InitOutput>} | ||
*/ | ||
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>; |
Oops, something went wrong.