Skip to content

Commit

Permalink
feat: oval discovery
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Jul 17, 2024
1 parent 0aa2f98 commit 4131b76
Show file tree
Hide file tree
Showing 19 changed files with 3,283 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/abi/PermissionProxy.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/abi/StandardChainlinkFactory.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/abi/StandardChronicleFactory.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/abi/StandardCoinbaseFactory.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/abi/StandardPythFactory.json

Large diffs are not rendered by default.

249 changes: 249 additions & 0 deletions src/contract-types/PermissionProxy.ts
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
>;
};
}
Loading

0 comments on commit 4131b76

Please sign in to comment.