baluni-contracts
Version:
Smart Contracts for Baluni
1,243 lines (1,158 loc) • 35.4 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
EventFragment,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedLogDescription,
TypedListener,
TypedContractMethod,
} from "../../common";
export interface BaluniV1PoolInterface extends Interface {
getFunction(
nameOrSignature:
| "ONE"
| "UPGRADE_INTERFACE_VERSION"
| "allowance"
| "approve"
| "assetInfos"
| "assetLiquidity"
| "balanceOf"
| "baseAsset"
| "calculateAssetShare"
| "decimals"
| "deposit"
| "getAmountOut"
| "getAssetReserve"
| "getAssets"
| "getDeviationForToken"
| "getDeviations"
| "getReserves"
| "getSlippage"
| "getSlippageParams"
| "getTokenWeight"
| "getWeights"
| "initialize"
| "isRebalanceNeeded"
| "liquidity"
| "name"
| "owner"
| "pause"
| "paused"
| "proxiableUUID"
| "quotePotentialSwap"
| "rebalance"
| "rebalanceAndDeposit"
| "registry"
| "reinitialize"
| "renounceOwnership"
| "reserves"
| "swap"
| "symbol"
| "totalSupply"
| "totalValuation"
| "transfer"
| "transferFrom"
| "transferOwnership"
| "unitPrice"
| "unpause"
| "upgradeToAndCall"
| "withdraw"
): FunctionFragment;
getEvent(
nameOrSignatureOrTopic:
| "Approval"
| "Deposit"
| "Initialized"
| "OwnershipTransferred"
| "Paused"
| "RebalancePerformed"
| "Swap"
| "Transfer"
| "Unpaused"
| "Upgraded"
| "WeightsRebalanced"
| "Withdraw"
): EventFragment;
encodeFunctionData(functionFragment: "ONE", values?: undefined): string;
encodeFunctionData(
functionFragment: "UPGRADE_INTERFACE_VERSION",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "allowance",
values: [AddressLike, AddressLike]
): string;
encodeFunctionData(
functionFragment: "approve",
values: [AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "assetInfos",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "assetLiquidity",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "balanceOf",
values: [AddressLike]
): string;
encodeFunctionData(functionFragment: "baseAsset", values?: undefined): string;
encodeFunctionData(
functionFragment: "calculateAssetShare",
values: [BigNumberish]
): string;
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
encodeFunctionData(
functionFragment: "deposit",
values: [AddressLike, BigNumberish[], BigNumberish]
): string;
encodeFunctionData(
functionFragment: "getAmountOut",
values: [AddressLike, AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "getAssetReserve",
values: [AddressLike]
): string;
encodeFunctionData(functionFragment: "getAssets", values?: undefined): string;
encodeFunctionData(
functionFragment: "getDeviationForToken",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "getDeviations",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getReserves",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getSlippage",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "getSlippageParams",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "getTokenWeight",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "getWeights",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "initialize",
values: [string, string, AddressLike[], BigNumberish[], AddressLike]
): string;
encodeFunctionData(
functionFragment: "isRebalanceNeeded",
values?: undefined
): string;
encodeFunctionData(functionFragment: "liquidity", values?: undefined): string;
encodeFunctionData(functionFragment: "name", values?: undefined): string;
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
encodeFunctionData(
functionFragment: "proxiableUUID",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "quotePotentialSwap",
values: [AddressLike, AddressLike, BigNumberish]
): string;
encodeFunctionData(functionFragment: "rebalance", values?: undefined): string;
encodeFunctionData(
functionFragment: "rebalanceAndDeposit",
values: [AddressLike]
): string;
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
encodeFunctionData(
functionFragment: "reinitialize",
values: [
string,
string,
AddressLike[],
BigNumberish[],
AddressLike,
BigNumberish
]
): string;
encodeFunctionData(
functionFragment: "renounceOwnership",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "reserves",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "swap",
values: [
AddressLike,
AddressLike,
BigNumberish,
BigNumberish,
AddressLike,
BigNumberish
]
): string;
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
encodeFunctionData(
functionFragment: "totalSupply",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "totalValuation",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "transfer",
values: [AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "transferFrom",
values: [AddressLike, AddressLike, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "transferOwnership",
values: [AddressLike]
): string;
encodeFunctionData(functionFragment: "unitPrice", values?: undefined): string;
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
encodeFunctionData(
functionFragment: "upgradeToAndCall",
values: [AddressLike, BytesLike]
): string;
encodeFunctionData(
functionFragment: "withdraw",
values: [BigNumberish, AddressLike, BigNumberish]
): string;
decodeFunctionResult(functionFragment: "ONE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "UPGRADE_INTERFACE_VERSION",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "assetInfos", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "assetLiquidity",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "baseAsset", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "calculateAssetShare",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getAmountOut",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getAssetReserve",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "getAssets", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getDeviationForToken",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getDeviations",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getReserves",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getSlippage",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getSlippageParams",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getTokenWeight",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "getWeights", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "isRebalanceNeeded",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "liquidity", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "proxiableUUID",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "quotePotentialSwap",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "rebalance", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "rebalanceAndDeposit",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "reinitialize",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "renounceOwnership",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "reserves", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "totalSupply",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "totalValuation",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "transferFrom",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "transferOwnership",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "unitPrice", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "upgradeToAndCall",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
}
export namespace ApprovalEvent {
export type InputTuple = [
owner: AddressLike,
spender: AddressLike,
value: BigNumberish
];
export type OutputTuple = [owner: string, spender: string, value: bigint];
export interface OutputObject {
owner: string;
spender: string;
value: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace DepositEvent {
export type InputTuple = [user: AddressLike, amount: BigNumberish];
export type OutputTuple = [user: string, amount: bigint];
export interface OutputObject {
user: string;
amount: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace InitializedEvent {
export type InputTuple = [version: BigNumberish];
export type OutputTuple = [version: bigint];
export interface OutputObject {
version: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
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 PausedEvent {
export type InputTuple = [account: AddressLike];
export type OutputTuple = [account: string];
export interface OutputObject {
account: 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 RebalancePerformedEvent {
export type InputTuple = [user: AddressLike, assets: AddressLike[]];
export type OutputTuple = [user: string, assets: string[]];
export interface OutputObject {
user: string;
assets: 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 SwapEvent {
export type InputTuple = [
user: AddressLike,
fromToken: AddressLike,
toToken: AddressLike,
amountIn: BigNumberish,
amountOut: BigNumberish
];
export type OutputTuple = [
user: string,
fromToken: string,
toToken: string,
amountIn: bigint,
amountOut: bigint
];
export interface OutputObject {
user: string;
fromToken: string;
toToken: string;
amountIn: bigint;
amountOut: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace TransferEvent {
export type InputTuple = [
from: AddressLike,
to: AddressLike,
value: BigNumberish
];
export type OutputTuple = [from: string, to: string, value: bigint];
export interface OutputObject {
from: string;
to: string;
value: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace UnpausedEvent {
export type InputTuple = [account: AddressLike];
export type OutputTuple = [account: string];
export interface OutputObject {
account: 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 UpgradedEvent {
export type InputTuple = [implementation: AddressLike];
export type OutputTuple = [implementation: string];
export interface OutputObject {
implementation: 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 WeightsRebalancedEvent {
export type InputTuple = [user: AddressLike, amountsToAdd: BigNumberish[]];
export type OutputTuple = [user: string, amountsToAdd: bigint[]];
export interface OutputObject {
user: string;
amountsToAdd: bigint[];
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export namespace WithdrawEvent {
export type InputTuple = [user: AddressLike, amount: BigNumberish];
export type OutputTuple = [user: string, amount: bigint];
export interface OutputObject {
user: string;
amount: bigint;
}
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
export type Filter = TypedDeferredTopicFilter<Event>;
export type Log = TypedEventLog<Event>;
export type LogDescription = TypedLogDescription<Event>;
}
export interface BaluniV1Pool extends BaseContract {
connect(runner?: ContractRunner | null): BaluniV1Pool;
waitForDeployment(): Promise<this>;
interface: BaluniV1PoolInterface;
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>;
ONE: TypedContractMethod<[], [bigint], "view">;
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
allowance: TypedContractMethod<
[owner: AddressLike, spender: AddressLike],
[bigint],
"view"
>;
approve: TypedContractMethod<
[spender: AddressLike, value: BigNumberish],
[boolean],
"nonpayable"
>;
assetInfos: TypedContractMethod<
[arg0: BigNumberish],
[
[string, bigint, bigint, bigint] & {
asset: string;
weight: bigint;
slippage: bigint;
reserve: bigint;
}
],
"view"
>;
assetLiquidity: TypedContractMethod<
[assetIndex: BigNumberish],
[bigint],
"view"
>;
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
baseAsset: TypedContractMethod<[], [string], "view">;
calculateAssetShare: TypedContractMethod<
[share: BigNumberish],
[bigint[]],
"view"
>;
decimals: TypedContractMethod<[], [bigint], "view">;
deposit: TypedContractMethod<
[to: AddressLike, amounts: BigNumberish[], deadline: BigNumberish],
[bigint],
"nonpayable"
>;
getAmountOut: TypedContractMethod<
[fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish],
[bigint],
"view"
>;
getAssetReserve: TypedContractMethod<[asset: AddressLike], [bigint], "view">;
getAssets: TypedContractMethod<[], [string[]], "view">;
getDeviationForToken: TypedContractMethod<
[token: AddressLike],
[bigint],
"view"
>;
getDeviations: TypedContractMethod<
[],
[[boolean[], bigint[]] & { directions: boolean[]; deviations: bigint[] }],
"view"
>;
getReserves: TypedContractMethod<[], [bigint[]], "view">;
getSlippage: TypedContractMethod<[token: AddressLike], [bigint], "view">;
getSlippageParams: TypedContractMethod<[], [bigint[]], "view">;
getTokenWeight: TypedContractMethod<[token: AddressLike], [bigint], "view">;
getWeights: TypedContractMethod<[], [bigint[]], "view">;
initialize: TypedContractMethod<
[
_name: string,
_symbol: string,
_assets: AddressLike[],
_weights: BigNumberish[],
_registry: AddressLike
],
[void],
"nonpayable"
>;
isRebalanceNeeded: TypedContractMethod<[], [boolean], "view">;
liquidity: TypedContractMethod<[], [bigint], "view">;
name: TypedContractMethod<[], [string], "view">;
owner: TypedContractMethod<[], [string], "view">;
pause: TypedContractMethod<[], [void], "nonpayable">;
paused: TypedContractMethod<[], [boolean], "view">;
proxiableUUID: TypedContractMethod<[], [string], "view">;
quotePotentialSwap: TypedContractMethod<
[fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish],
[bigint],
"view"
>;
rebalance: TypedContractMethod<[], [void], "nonpayable">;
rebalanceAndDeposit: TypedContractMethod<
[receiver: AddressLike],
[bigint[]],
"nonpayable"
>;
registry: TypedContractMethod<[], [string], "view">;
reinitialize: TypedContractMethod<
[
_name: string,
_symbol: string,
_assets: AddressLike[],
_weights: BigNumberish[],
_registry: AddressLike,
_version: BigNumberish
],
[void],
"nonpayable"
>;
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
reserves: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
swap: TypedContractMethod<
[
fromToken: AddressLike,
toToken: AddressLike,
amount: BigNumberish,
minAmount: BigNumberish,
receiver: AddressLike,
deadline: BigNumberish
],
[[bigint, bigint] & { amountOut: bigint; fee: bigint }],
"nonpayable"
>;
symbol: TypedContractMethod<[], [string], "view">;
totalSupply: TypedContractMethod<[], [bigint], "view">;
totalValuation: TypedContractMethod<
[],
[[bigint, bigint[]] & { totalVal: bigint; valuations: bigint[] }],
"view"
>;
transfer: TypedContractMethod<
[to: AddressLike, value: BigNumberish],
[boolean],
"nonpayable"
>;
transferFrom: TypedContractMethod<
[from: AddressLike, to: AddressLike, value: BigNumberish],
[boolean],
"nonpayable"
>;
transferOwnership: TypedContractMethod<
[newOwner: AddressLike],
[void],
"nonpayable"
>;
unitPrice: TypedContractMethod<[], [bigint], "view">;
unpause: TypedContractMethod<[], [void], "nonpayable">;
upgradeToAndCall: TypedContractMethod<
[newImplementation: AddressLike, data: BytesLike],
[void],
"payable"
>;
withdraw: TypedContractMethod<
[share: BigNumberish, to: AddressLike, deadline: BigNumberish],
[bigint],
"nonpayable"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "ONE"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "UPGRADE_INTERFACE_VERSION"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "allowance"
): TypedContractMethod<
[owner: AddressLike, spender: AddressLike],
[bigint],
"view"
>;
getFunction(
nameOrSignature: "approve"
): TypedContractMethod<
[spender: AddressLike, value: BigNumberish],
[boolean],
"nonpayable"
>;
getFunction(
nameOrSignature: "assetInfos"
): TypedContractMethod<
[arg0: BigNumberish],
[
[string, bigint, bigint, bigint] & {
asset: string;
weight: bigint;
slippage: bigint;
reserve: bigint;
}
],
"view"
>;
getFunction(
nameOrSignature: "assetLiquidity"
): TypedContractMethod<[assetIndex: BigNumberish], [bigint], "view">;
getFunction(
nameOrSignature: "balanceOf"
): TypedContractMethod<[account: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "baseAsset"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "calculateAssetShare"
): TypedContractMethod<[share: BigNumberish], [bigint[]], "view">;
getFunction(
nameOrSignature: "decimals"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "deposit"
): TypedContractMethod<
[to: AddressLike, amounts: BigNumberish[], deadline: BigNumberish],
[bigint],
"nonpayable"
>;
getFunction(
nameOrSignature: "getAmountOut"
): TypedContractMethod<
[fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish],
[bigint],
"view"
>;
getFunction(
nameOrSignature: "getAssetReserve"
): TypedContractMethod<[asset: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "getAssets"
): TypedContractMethod<[], [string[]], "view">;
getFunction(
nameOrSignature: "getDeviationForToken"
): TypedContractMethod<[token: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "getDeviations"
): TypedContractMethod<
[],
[[boolean[], bigint[]] & { directions: boolean[]; deviations: bigint[] }],
"view"
>;
getFunction(
nameOrSignature: "getReserves"
): TypedContractMethod<[], [bigint[]], "view">;
getFunction(
nameOrSignature: "getSlippage"
): TypedContractMethod<[token: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "getSlippageParams"
): TypedContractMethod<[], [bigint[]], "view">;
getFunction(
nameOrSignature: "getTokenWeight"
): TypedContractMethod<[token: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "getWeights"
): TypedContractMethod<[], [bigint[]], "view">;
getFunction(
nameOrSignature: "initialize"
): TypedContractMethod<
[
_name: string,
_symbol: string,
_assets: AddressLike[],
_weights: BigNumberish[],
_registry: AddressLike
],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "isRebalanceNeeded"
): TypedContractMethod<[], [boolean], "view">;
getFunction(
nameOrSignature: "liquidity"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "name"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "owner"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "pause"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "paused"
): TypedContractMethod<[], [boolean], "view">;
getFunction(
nameOrSignature: "proxiableUUID"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "quotePotentialSwap"
): TypedContractMethod<
[fromToken: AddressLike, toToken: AddressLike, amount: BigNumberish],
[bigint],
"view"
>;
getFunction(
nameOrSignature: "rebalance"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "rebalanceAndDeposit"
): TypedContractMethod<[receiver: AddressLike], [bigint[]], "nonpayable">;
getFunction(
nameOrSignature: "registry"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "reinitialize"
): TypedContractMethod<
[
_name: string,
_symbol: string,
_assets: AddressLike[],
_weights: BigNumberish[],
_registry: AddressLike,
_version: BigNumberish
],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "renounceOwnership"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "reserves"
): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
getFunction(
nameOrSignature: "swap"
): TypedContractMethod<
[
fromToken: AddressLike,
toToken: AddressLike,
amount: BigNumberish,
minAmount: BigNumberish,
receiver: AddressLike,
deadline: BigNumberish
],
[[bigint, bigint] & { amountOut: bigint; fee: bigint }],
"nonpayable"
>;
getFunction(
nameOrSignature: "symbol"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "totalSupply"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "totalValuation"
): TypedContractMethod<
[],
[[bigint, bigint[]] & { totalVal: bigint; valuations: bigint[] }],
"view"
>;
getFunction(
nameOrSignature: "transfer"
): TypedContractMethod<
[to: AddressLike, value: BigNumberish],
[boolean],
"nonpayable"
>;
getFunction(
nameOrSignature: "transferFrom"
): TypedContractMethod<
[from: AddressLike, to: AddressLike, value: BigNumberish],
[boolean],
"nonpayable"
>;
getFunction(
nameOrSignature: "transferOwnership"
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "unitPrice"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "unpause"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "upgradeToAndCall"
): TypedContractMethod<
[newImplementation: AddressLike, data: BytesLike],
[void],
"payable"
>;
getFunction(
nameOrSignature: "withdraw"
): TypedContractMethod<
[share: BigNumberish, to: AddressLike, deadline: BigNumberish],
[bigint],
"nonpayable"
>;
getEvent(
key: "Approval"
): TypedContractEvent<
ApprovalEvent.InputTuple,
ApprovalEvent.OutputTuple,
ApprovalEvent.OutputObject
>;
getEvent(
key: "Deposit"
): TypedContractEvent<
DepositEvent.InputTuple,
DepositEvent.OutputTuple,
DepositEvent.OutputObject
>;
getEvent(
key: "Initialized"
): TypedContractEvent<
InitializedEvent.InputTuple,
InitializedEvent.OutputTuple,
InitializedEvent.OutputObject
>;
getEvent(
key: "OwnershipTransferred"
): TypedContractEvent<
OwnershipTransferredEvent.InputTuple,
OwnershipTransferredEvent.OutputTuple,
OwnershipTransferredEvent.OutputObject
>;
getEvent(
key: "Paused"
): TypedContractEvent<
PausedEvent.InputTuple,
PausedEvent.OutputTuple,
PausedEvent.OutputObject
>;
getEvent(
key: "RebalancePerformed"
): TypedContractEvent<
RebalancePerformedEvent.InputTuple,
RebalancePerformedEvent.OutputTuple,
RebalancePerformedEvent.OutputObject
>;
getEvent(
key: "Swap"
): TypedContractEvent<
SwapEvent.InputTuple,
SwapEvent.OutputTuple,
SwapEvent.OutputObject
>;
getEvent(
key: "Transfer"
): TypedContractEvent<
TransferEvent.InputTuple,
TransferEvent.OutputTuple,
TransferEvent.OutputObject
>;
getEvent(
key: "Unpaused"
): TypedContractEvent<
UnpausedEvent.InputTuple,
UnpausedEvent.OutputTuple,
UnpausedEvent.OutputObject
>;
getEvent(
key: "Upgraded"
): TypedContractEvent<
UpgradedEvent.InputTuple,
UpgradedEvent.OutputTuple,
UpgradedEvent.OutputObject
>;
getEvent(
key: "WeightsRebalanced"
): TypedContractEvent<
WeightsRebalancedEvent.InputTuple,
WeightsRebalancedEvent.OutputTuple,
WeightsRebalancedEvent.OutputObject
>;
getEvent(
key: "Withdraw"
): TypedContractEvent<
WithdrawEvent.InputTuple,
WithdrawEvent.OutputTuple,
WithdrawEvent.OutputObject
>;
filters: {
"Approval(address,address,uint256)": TypedContractEvent<
ApprovalEvent.InputTuple,
ApprovalEvent.OutputTuple,
ApprovalEvent.OutputObject
>;
Approval: TypedContractEvent<
ApprovalEvent.InputTuple,
ApprovalEvent.OutputTuple,
ApprovalEvent.OutputObject
>;
"Deposit(address,uint256)": TypedContractEvent<
DepositEvent.InputTuple,
DepositEvent.OutputTuple,
DepositEvent.OutputObject
>;
Deposit: TypedContractEvent<
DepositEvent.InputTuple,
DepositEvent.OutputTuple,
DepositEvent.OutputObject
>;
"Initialized(uint64)": TypedContractEvent<
InitializedEvent.InputTuple,
InitializedEvent.OutputTuple,
InitializedEvent.OutputObject
>;
Initialized: TypedContractEvent<
InitializedEvent.InputTuple,
InitializedEvent.OutputTuple,
InitializedEvent.OutputObject
>;
"OwnershipTransferred(address,address)": TypedContractEvent<
OwnershipTransferredEvent.InputTuple,
OwnershipTransferredEvent.OutputTuple,
OwnershipTransferredEvent.OutputObject
>;
OwnershipTransferred: TypedContractEvent<
OwnershipTransferredEvent.InputTuple,
OwnershipTransferredEvent.OutputTuple,
OwnershipTransferredEvent.OutputObject
>;
"Paused(address)": TypedContractEvent<
PausedEvent.InputTuple,
PausedEvent.OutputTuple,
PausedEvent.OutputObject
>;
Paused: TypedContractEvent<
PausedEvent.InputTuple,
PausedEvent.OutputTuple,
PausedEvent.OutputObject
>;
"RebalancePerformed(address,address[])": TypedContractEvent<
RebalancePerformedEvent.InputTuple,
RebalancePerformedEvent.OutputTuple,
RebalancePerformedEvent.OutputObject
>;
RebalancePerformed: TypedContractEvent<
RebalancePerformedEvent.InputTuple,
RebalancePerformedEvent.OutputTuple,
RebalancePerformedEvent.OutputObject
>;
"Swap(address,address,address,uint256,uint256)": TypedContractEvent<
SwapEvent.InputTuple,
SwapEvent.OutputTuple,
SwapEvent.OutputObject
>;
Swap: TypedContractEvent<
SwapEvent.InputTuple,
SwapEvent.OutputTuple,
SwapEvent.OutputObject
>;
"Transfer(address,address,uint256)": TypedContractEvent<
TransferEvent.InputTuple,
TransferEvent.OutputTuple,
TransferEvent.OutputObject
>;
Transfer: TypedContractEvent<
TransferEvent.InputTuple,
TransferEvent.OutputTuple,
TransferEvent.OutputObject
>;
"Unpaused(address)": TypedContractEvent<
UnpausedEvent.InputTuple,
UnpausedEvent.OutputTuple,
UnpausedEvent.OutputObject
>;
Unpaused: TypedContractEvent<
UnpausedEvent.InputTuple,
UnpausedEvent.OutputTuple,
UnpausedEvent.OutputObject
>;
"Upgraded(address)": TypedContractEvent<
UpgradedEvent.InputTuple,
UpgradedEvent.OutputTuple,
UpgradedEvent.OutputObject
>;
Upgraded: TypedContractEvent<
UpgradedEvent.InputTuple,
UpgradedEvent.OutputTuple,
UpgradedEvent.OutputObject
>;
"WeightsRebalanced(address,uint256[])": TypedContractEvent<
WeightsRebalancedEvent.InputTuple,
WeightsRebalancedEvent.OutputTuple,
WeightsRebalancedEvent.OutputObject
>;
WeightsRebalanced: TypedContractEvent<
WeightsRebalancedEvent.InputTuple,
WeightsRebalancedEvent.OutputTuple,
WeightsRebalancedEvent.OutputObject
>;
"Withdraw(address,uint256)": TypedContractEvent<
WithdrawEvent.InputTuple,
WithdrawEvent.OutputTuple,
WithdrawEvent.OutputObject
>;
Withdraw: TypedContractEvent<
WithdrawEvent.InputTuple,
WithdrawEvent.OutputTuple,
WithdrawEvent.OutputObject
>;
};
}