-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pablo Maldonado <[email protected]>
- Loading branch information
Showing
19 changed files
with
3,283 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,249 @@ | ||
/* 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 PermissionProxyInterface extends Interface { | ||
getFunction( | ||
nameOrSignature: | ||
| "execute" | ||
| "multicall" | ||
| "owner" | ||
| "renounceOwnership" | ||
| "senders" | ||
| "setSender" | ||
| "transferOwnership" | ||
): FunctionFragment; | ||
|
||
getEvent( | ||
nameOrSignatureOrTopic: "OwnershipTransferred" | "SenderSet" | ||
): EventFragment; | ||
|
||
encodeFunctionData( | ||
functionFragment: "execute", | ||
values: [AddressLike, BytesLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "multicall", | ||
values: [BytesLike[]] | ||
): string; | ||
encodeFunctionData(functionFragment: "owner", values?: undefined): string; | ||
encodeFunctionData( | ||
functionFragment: "renounceOwnership", | ||
values?: undefined | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "senders", | ||
values: [AddressLike] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "setSender", | ||
values: [AddressLike, boolean] | ||
): string; | ||
encodeFunctionData( | ||
functionFragment: "transferOwnership", | ||
values: [AddressLike] | ||
): string; | ||
|
||
decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; | ||
decodeFunctionResult( | ||
functionFragment: "renounceOwnership", | ||
data: BytesLike | ||
): Result; | ||
decodeFunctionResult(functionFragment: "senders", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "setSender", 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 namespace SenderSetEvent { | ||
export type InputTuple = [sender: AddressLike, allowed: boolean]; | ||
export type OutputTuple = [sender: string, allowed: boolean]; | ||
export interface OutputObject { | ||
sender: string; | ||
allowed: boolean; | ||
} | ||
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; | ||
export type Filter = TypedDeferredTopicFilter<Event>; | ||
export type Log = TypedEventLog<Event>; | ||
export type LogDescription = TypedLogDescription<Event>; | ||
} | ||
|
||
export interface PermissionProxy extends BaseContract { | ||
connect(runner?: ContractRunner | null): PermissionProxy; | ||
waitForDeployment(): Promise<this>; | ||
|
||
interface: PermissionProxyInterface; | ||
|
||
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>; | ||
|
||
execute: TypedContractMethod< | ||
[target: AddressLike, callData: BytesLike], | ||
[string], | ||
"nonpayable" | ||
>; | ||
|
||
multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">; | ||
|
||
owner: TypedContractMethod<[], [string], "view">; | ||
|
||
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; | ||
|
||
senders: TypedContractMethod<[arg0: AddressLike], [boolean], "view">; | ||
|
||
setSender: TypedContractMethod< | ||
[sender: AddressLike, allowed: boolean], | ||
[void], | ||
"nonpayable" | ||
>; | ||
|
||
transferOwnership: TypedContractMethod< | ||
[newOwner: AddressLike], | ||
[void], | ||
"nonpayable" | ||
>; | ||
|
||
getFunction<T extends ContractMethod = ContractMethod>( | ||
key: string | FunctionFragment | ||
): T; | ||
|
||
getFunction( | ||
nameOrSignature: "execute" | ||
): TypedContractMethod< | ||
[target: AddressLike, callData: BytesLike], | ||
[string], | ||
"nonpayable" | ||
>; | ||
getFunction( | ||
nameOrSignature: "multicall" | ||
): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">; | ||
getFunction( | ||
nameOrSignature: "owner" | ||
): TypedContractMethod<[], [string], "view">; | ||
getFunction( | ||
nameOrSignature: "renounceOwnership" | ||
): TypedContractMethod<[], [void], "nonpayable">; | ||
getFunction( | ||
nameOrSignature: "senders" | ||
): TypedContractMethod<[arg0: AddressLike], [boolean], "view">; | ||
getFunction( | ||
nameOrSignature: "setSender" | ||
): TypedContractMethod< | ||
[sender: AddressLike, allowed: boolean], | ||
[void], | ||
"nonpayable" | ||
>; | ||
getFunction( | ||
nameOrSignature: "transferOwnership" | ||
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; | ||
|
||
getEvent( | ||
key: "OwnershipTransferred" | ||
): TypedContractEvent< | ||
OwnershipTransferredEvent.InputTuple, | ||
OwnershipTransferredEvent.OutputTuple, | ||
OwnershipTransferredEvent.OutputObject | ||
>; | ||
getEvent( | ||
key: "SenderSet" | ||
): TypedContractEvent< | ||
SenderSetEvent.InputTuple, | ||
SenderSetEvent.OutputTuple, | ||
SenderSetEvent.OutputObject | ||
>; | ||
|
||
filters: { | ||
"OwnershipTransferred(address,address)": TypedContractEvent< | ||
OwnershipTransferredEvent.InputTuple, | ||
OwnershipTransferredEvent.OutputTuple, | ||
OwnershipTransferredEvent.OutputObject | ||
>; | ||
OwnershipTransferred: TypedContractEvent< | ||
OwnershipTransferredEvent.InputTuple, | ||
OwnershipTransferredEvent.OutputTuple, | ||
OwnershipTransferredEvent.OutputObject | ||
>; | ||
|
||
"SenderSet(address,bool)": TypedContractEvent< | ||
SenderSetEvent.InputTuple, | ||
SenderSetEvent.OutputTuple, | ||
SenderSetEvent.OutputObject | ||
>; | ||
SenderSet: TypedContractEvent< | ||
SenderSetEvent.InputTuple, | ||
SenderSetEvent.OutputTuple, | ||
SenderSetEvent.OutputObject | ||
>; | ||
}; | ||
} |
Oops, something went wrong.