-
Notifications
You must be signed in to change notification settings - Fork 1
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
d0a99f6
commit 0fd82fe
Showing
1 changed file
with
149 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,149 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { | ||
BaseContract, | ||
BytesLike, | ||
FunctionFragment, | ||
Result, | ||
Interface, | ||
ContractRunner, | ||
ContractMethod, | ||
Listener, | ||
} from "ethers"; | ||
import type { | ||
TypedContractEvent, | ||
TypedDeferredTopicFilter, | ||
TypedEventLog, | ||
TypedListener, | ||
TypedContractMethod, | ||
} from "./common"; | ||
|
||
export interface BlocklockSignatureSchemeInterface extends Interface { | ||
getFunction( | ||
nameOrSignature: | ||
| "DST" | ||
| "SCHEME_ID" | ||
| "hashToBytes" | ||
| "hashToPoint" | ||
| "verifySignature" | ||
): FunctionFragment; | ||
|
||
encodeFunctionData(functionFragment: "DST", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "SCHEME_ID", values?: undefined): string; | ||
encodeFunctionData( | ||
functionFragment: "hashToBytes", | ||
values: [BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "hashToPoint", | ||
values: [BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "verifySignature", | ||
values: [BytesLike, BytesLike, BytesLike] | ||
): string; | ||
|
||
decodeFunctionResult(functionFragment: "DST", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "SCHEME_ID", data: BytesLike): Result; | ||
decodeFunctionResult( | ||
functionFragment: "hashToBytes", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "hashToPoint", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "verifySignature", | ||
data: BytesLike | ||
): Result; | ||
} | ||
|
||
export interface BlocklockSignatureScheme extends BaseContract { | ||
connect(runner?: ContractRunner | null): BlocklockSignatureScheme; | ||
waitForDeployment(): Promise<this>; | ||
|
||
interface: BlocklockSignatureSchemeInterface; | ||
|
||
queryFilter<TCEvent extends TypedContractEvent>( | ||
event: TCEvent, | ||
fromBlockOrBlockhash?: string | number | undefined, | ||
toBlock?: string | number | undefined | ||
): Promise<Array<TypedEventLog<TCEvent>>>; | ||
queryFilter<TCEvent extends TypedContractEvent>( | ||
filter: TypedDeferredTopicFilter<TCEvent>, | ||
fromBlockOrBlockhash?: string | number | undefined, | ||
toBlock?: string | number | undefined | ||
): Promise<Array<TypedEventLog<TCEvent>>>; | ||
|
||
on<TCEvent extends TypedContractEvent>( | ||
event: TCEvent, | ||
listener: TypedListener<TCEvent> | ||
): Promise<this>; | ||
on<TCEvent extends TypedContractEvent>( | ||
filter: TypedDeferredTopicFilter<TCEvent>, | ||
listener: TypedListener<TCEvent> | ||
): Promise<this>; | ||
|
||
once<TCEvent extends TypedContractEvent>( | ||
event: TCEvent, | ||
listener: TypedListener<TCEvent> | ||
): Promise<this>; | ||
once<TCEvent extends TypedContractEvent>( | ||
filter: TypedDeferredTopicFilter<TCEvent>, | ||
listener: TypedListener<TCEvent> | ||
): Promise<this>; | ||
|
||
listeners<TCEvent extends TypedContractEvent>( | ||
event: TCEvent | ||
): Promise<Array<TypedListener<TCEvent>>>; | ||
listeners(eventName?: string): Promise<Array<Listener>>; | ||
removeAllListeners<TCEvent extends TypedContractEvent>( | ||
event?: TCEvent | ||
): Promise<this>; | ||
|
||
DST: TypedContractMethod<[], [string], "view">; | ||
|
||
SCHEME_ID: TypedContractMethod<[], [string], "view">; | ||
|
||
hashToBytes: TypedContractMethod<[message: BytesLike], [string], "view">; | ||
|
||
hashToPoint: TypedContractMethod< | ||
[message: BytesLike], | ||
[[bigint, bigint]], | ||
"view" | ||
>; | ||
|
||
verifySignature: TypedContractMethod< | ||
[message: BytesLike, signature: BytesLike, publicKey: BytesLike], | ||
[boolean], | ||
"view" | ||
>; | ||
|
||
getFunction<T extends ContractMethod = ContractMethod>( | ||
key: string | FunctionFragment | ||
): T; | ||
|
||
getFunction( | ||
nameOrSignature: "DST" | ||
): TypedContractMethod<[], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "SCHEME_ID" | ||
): TypedContractMethod<[], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "hashToBytes" | ||
): TypedContractMethod<[message: BytesLike], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "hashToPoint" | ||
): TypedContractMethod<[message: BytesLike], [[bigint, bigint]], "view">; | ||
getFunction( | ||
nameOrSignature: "verifySignature" | ||
): TypedContractMethod< | ||
[message: BytesLike, signature: BytesLike, publicKey: BytesLike], | ||
[boolean], | ||
"view" | ||
>; | ||
|
||
filters: {}; | ||
} |