-
Notifications
You must be signed in to change notification settings - Fork 14
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
4a18e72
commit 72c7974
Showing
50 changed files
with
4,514 additions
and
39 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
2 changes: 1 addition & 1 deletion
2
...ethers/src/__tests__/contracts/artifacts/build-info/9c377c0b2036f6cd13d275d46f465b2f.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
153 changes: 153 additions & 0 deletions
153
packages/ethers/src/__tests__/typechain/@openzeppelin/contracts/access/Ownable.ts
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,153 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { | ||
BaseContract, | ||
BytesLike, | ||
FunctionFragment, | ||
Result, | ||
Interface, | ||
EventFragment, | ||
AddressLike, | ||
ContractRunner, | ||
ContractMethod, | ||
Listener, | ||
} from "ethers"; | ||
import type { | ||
TypedContractEvent, | ||
TypedDeferredTopicFilter, | ||
TypedEventLog, | ||
TypedLogDescription, | ||
TypedListener, | ||
TypedContractMethod, | ||
} from "../../../common"; | ||
|
||
export interface OwnableInterface extends Interface { | ||
getFunction( | ||
nameOrSignature: "owner" | "renounceOwnership" | "transferOwnership" | ||
): FunctionFragment; | ||
|
||
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; | ||
|
||
encodeFunctionData(functionFragment: "owner", values?: undefined): string; | ||
encodeFunctionData( | ||
functionFragment: "renounceOwnership", | ||
values?: undefined | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "transferOwnership", | ||
values: [AddressLike] | ||
): string; | ||
|
||
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; | ||
decodeFunctionResult( | ||
functionFragment: "renounceOwnership", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult( | ||
functionFragment: "transferOwnership", | ||
data: BytesLike | ||
): Result; | ||
} | ||
|
||
export namespace OwnershipTransferredEvent { | ||
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; | ||
export type OutputTuple = [previousOwner: string, newOwner: string]; | ||
export interface OutputObject { | ||
previousOwner: string; | ||
newOwner: string; | ||
} | ||
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; | ||
export type Filter = TypedDeferredTopicFilter<Event>; | ||
export type Log = TypedEventLog<Event>; | ||
export type LogDescription = TypedLogDescription<Event>; | ||
} | ||
|
||
export interface Ownable extends BaseContract { | ||
connect(runner?: ContractRunner | null): Ownable; | ||
waitForDeployment(): Promise<this>; | ||
|
||
interface: OwnableInterface; | ||
|
||
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>; | ||
|
||
owner: TypedContractMethod<[], [string], "view">; | ||
|
||
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; | ||
|
||
transferOwnership: TypedContractMethod< | ||
[newOwner: AddressLike], | ||
[void], | ||
"nonpayable" | ||
>; | ||
|
||
getFunction<T extends ContractMethod = ContractMethod>( | ||
key: string | FunctionFragment | ||
): T; | ||
|
||
getFunction( | ||
nameOrSignature: "owner" | ||
): TypedContractMethod<[], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "renounceOwnership" | ||
): TypedContractMethod<[], [void], "nonpayable">; | ||
getFunction( | ||
nameOrSignature: "transferOwnership" | ||
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; | ||
|
||
getEvent( | ||
key: "OwnershipTransferred" | ||
): TypedContractEvent< | ||
OwnershipTransferredEvent.InputTuple, | ||
OwnershipTransferredEvent.OutputTuple, | ||
OwnershipTransferredEvent.OutputObject | ||
>; | ||
|
||
filters: { | ||
"OwnershipTransferred(address,address)": TypedContractEvent< | ||
OwnershipTransferredEvent.InputTuple, | ||
OwnershipTransferredEvent.OutputTuple, | ||
OwnershipTransferredEvent.OutputObject | ||
>; | ||
OwnershipTransferred: TypedContractEvent< | ||
OwnershipTransferredEvent.InputTuple, | ||
OwnershipTransferredEvent.OutputTuple, | ||
OwnershipTransferredEvent.OutputObject | ||
>; | ||
}; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/ethers/src/__tests__/typechain/@openzeppelin/contracts/access/index.ts
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,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { Ownable } from "./Ownable"; |
Oops, something went wrong.