baluni-contracts
Version:
Smart Contracts for Baluni
821 lines (762 loc) • 22.2 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
TypedContractMethod,
} from "../../common";
export interface IBaluniV1RegistryInterface extends Interface {
getFunction(
nameOrSignature:
| "get1inchSpotAgg"
| "getBPS_BASE"
| "getBPS_FEE"
| "getBaluniAgentFactory"
| "getBaluniDCAVaultRegistry"
| "getBaluniHyperPoolZap"
| "getBaluniOracle"
| "getBaluniPoolPeriphery"
| "getBaluniPoolRegistry"
| "getBaluniPoolZap"
| "getBaluniRebalancer"
| "getBaluniRegistry"
| "getBaluniRouter"
| "getBaluniSwapper"
| "getBaluniYearnVaultRegistry"
| "getMAX_BPS_FEE"
| "getREBALANCE_THRESHOLD"
| "getStaticOracle"
| "getTreasury"
| "getUSDC"
| "getUniswapFactory"
| "getUniswapQuoter"
| "getUniswapRouter"
| "getWNATIVE"
| "set1inchSpotAgg"
| "setBPS_FEE"
| "setBaluniAgentFactory"
| "setBaluniDCAVaultRegistry"
| "setBaluniHyperPoolZap"
| "setBaluniOracle"
| "setBaluniPoolPeriphery"
| "setBaluniPoolRegistry"
| "setBaluniPoolZap"
| "setBaluniRebalancer"
| "setBaluniRegistry"
| "setBaluniRouter"
| "setBaluniSwapper"
| "setBaluniYearnVaultRegistry"
| "setREBALANCE_THRESHOLD"
| "setStaticOracle"
| "setTreasury"
| "setUSDC"
| "setUniswapFactory"
| "setUniswapQuoter"
| "setUniswapRouter"
| "setWNATIVE"
): FunctionFragment;
encodeFunctionData(
functionFragment: "get1inchSpotAgg",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBPS_BASE",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBPS_FEE",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniAgentFactory",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniDCAVaultRegistry",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniHyperPoolZap",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniOracle",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniPoolPeriphery",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniPoolRegistry",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniPoolZap",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniRebalancer",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniRegistry",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniRouter",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniSwapper",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getBaluniYearnVaultRegistry",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getMAX_BPS_FEE",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getREBALANCE_THRESHOLD",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getStaticOracle",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getTreasury",
values?: undefined
): string;
encodeFunctionData(functionFragment: "getUSDC", values?: undefined): string;
encodeFunctionData(
functionFragment: "getUniswapFactory",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getUniswapQuoter",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getUniswapRouter",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getWNATIVE",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "set1inchSpotAgg",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBPS_FEE",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "setBaluniAgentFactory",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniDCAVaultRegistry",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniHyperPoolZap",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniOracle",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniPoolPeriphery",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniPoolRegistry",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniPoolZap",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniRebalancer",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniRegistry",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniRouter",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniSwapper",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setBaluniYearnVaultRegistry",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setREBALANCE_THRESHOLD",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "setStaticOracle",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setTreasury",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setUSDC",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setUniswapFactory",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setUniswapQuoter",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setUniswapRouter",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setWNATIVE",
values: [AddressLike]
): string;
decodeFunctionResult(
functionFragment: "get1inchSpotAgg",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBPS_BASE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "getBPS_FEE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getBaluniAgentFactory",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniDCAVaultRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniHyperPoolZap",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniOracle",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniPoolPeriphery",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniPoolRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniPoolZap",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniRebalancer",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniRouter",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniSwapper",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getBaluniYearnVaultRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getMAX_BPS_FEE",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getREBALANCE_THRESHOLD",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getStaticOracle",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getTreasury",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "getUSDC", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getUniswapFactory",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getUniswapQuoter",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getUniswapRouter",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "getWNATIVE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "set1inchSpotAgg",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "setBPS_FEE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "setBaluniAgentFactory",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniDCAVaultRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniHyperPoolZap",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniOracle",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniPoolPeriphery",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniPoolRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniPoolZap",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniRebalancer",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniRouter",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniSwapper",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setBaluniYearnVaultRegistry",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setREBALANCE_THRESHOLD",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setStaticOracle",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setTreasury",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "setUSDC", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "setUniswapFactory",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setUniswapQuoter",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setUniswapRouter",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "setWNATIVE", data: BytesLike): Result;
}
export interface IBaluniV1Registry extends BaseContract {
connect(runner?: ContractRunner | null): IBaluniV1Registry;
waitForDeployment(): Promise<this>;
interface: IBaluniV1RegistryInterface;
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>;
get1inchSpotAgg: TypedContractMethod<[], [string], "view">;
getBPS_BASE: TypedContractMethod<[], [bigint], "view">;
getBPS_FEE: TypedContractMethod<[], [bigint], "view">;
getBaluniAgentFactory: TypedContractMethod<[], [string], "view">;
getBaluniDCAVaultRegistry: TypedContractMethod<[], [string], "view">;
getBaluniHyperPoolZap: TypedContractMethod<[], [string], "view">;
getBaluniOracle: TypedContractMethod<[], [string], "view">;
getBaluniPoolPeriphery: TypedContractMethod<[], [string], "view">;
getBaluniPoolRegistry: TypedContractMethod<[], [string], "view">;
getBaluniPoolZap: TypedContractMethod<[], [string], "view">;
getBaluniRebalancer: TypedContractMethod<[], [string], "view">;
getBaluniRegistry: TypedContractMethod<[], [string], "view">;
getBaluniRouter: TypedContractMethod<[], [string], "view">;
getBaluniSwapper: TypedContractMethod<[], [string], "view">;
getBaluniYearnVaultRegistry: TypedContractMethod<[], [string], "view">;
getMAX_BPS_FEE: TypedContractMethod<[], [bigint], "view">;
getREBALANCE_THRESHOLD: TypedContractMethod<[], [bigint], "view">;
getStaticOracle: TypedContractMethod<[], [string], "view">;
getTreasury: TypedContractMethod<[], [string], "view">;
getUSDC: TypedContractMethod<[], [string], "view">;
getUniswapFactory: TypedContractMethod<[], [string], "view">;
getUniswapQuoter: TypedContractMethod<[], [string], "view">;
getUniswapRouter: TypedContractMethod<[], [string], "view">;
getWNATIVE: TypedContractMethod<[], [string], "view">;
set1inchSpotAgg: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBPS_FEE: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniAgentFactory: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniDCAVaultRegistry: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniHyperPoolZap: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniOracle: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniPoolPeriphery: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniPoolRegistry: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniPoolZap: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniRebalancer: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniRegistry: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniRouter: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniSwapper: TypedContractMethod<
[],
[],
"nonpayable"
>;
setBaluniYearnVaultRegistry: TypedContractMethod<
[],
[],
"nonpayable"
>;
setREBALANCE_THRESHOLD: TypedContractMethod<
[],
[],
"nonpayable"
>;
setStaticOracle: TypedContractMethod<
[],
[],
"nonpayable"
>;
setTreasury: TypedContractMethod<
[],
[],
"nonpayable"
>;
setUSDC: TypedContractMethod<[_USDC: AddressLike], [void], "nonpayable">;
setUniswapFactory: TypedContractMethod<
[],
[],
"nonpayable"
>;
setUniswapQuoter: TypedContractMethod<
[],
[],
"nonpayable"
>;
setUniswapRouter: TypedContractMethod<
[],
[],
"nonpayable"
>;
setWNATIVE: TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "get1inchSpotAgg"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBPS_BASE"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "getBPS_FEE"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "getBaluniAgentFactory"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniDCAVaultRegistry"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniHyperPoolZap"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniOracle"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniPoolPeriphery"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniPoolRegistry"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniPoolZap"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniRebalancer"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniRegistry"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniRouter"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniSwapper"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getBaluniYearnVaultRegistry"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getMAX_BPS_FEE"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "getREBALANCE_THRESHOLD"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "getStaticOracle"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getTreasury"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getUSDC"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getUniswapFactory"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getUniswapQuoter"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getUniswapRouter"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getWNATIVE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "set1inchSpotAgg"
): TypedContractMethod<[__1inchSpotAgg: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBPS_FEE"
): TypedContractMethod<[__BPS_FEE: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBaluniAgentFactory"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setBaluniDCAVaultRegistry"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setBaluniHyperPoolZap"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setBaluniOracle"
): TypedContractMethod<[_baluniOracle: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBaluniPoolPeriphery"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setBaluniPoolRegistry"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setBaluniPoolZap"
): TypedContractMethod<[_baluniPoolZap: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBaluniRebalancer"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setBaluniRegistry"
): TypedContractMethod<[_baluniRegistry: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBaluniRouter"
): TypedContractMethod<[_baluniRouter: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBaluniSwapper"
): TypedContractMethod<[_baluniSwapper: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setBaluniYearnVaultRegistry"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setREBALANCE_THRESHOLD"
): TypedContractMethod<
[],
[],
"nonpayable"
>;
getFunction(
nameOrSignature: "setStaticOracle"
): TypedContractMethod<[_staticOracle: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setTreasury"
): TypedContractMethod<[_treasury: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setUSDC"
): TypedContractMethod<[_USDC: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setUniswapFactory"
): TypedContractMethod<[_uniswapFactory: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setUniswapQuoter"
): TypedContractMethod<[_uniswapQuoter: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setUniswapRouter"
): TypedContractMethod<[_uniswapRouter: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setWNATIVE"
): TypedContractMethod<[_WNATIVE: AddressLike], [void], "nonpayable">;
filters: {};
}