UNPKG

@orionprotocol/contracts

Version:
247 lines (246 loc) 10.2 kB
/// <reference types="node" /> import type BN from "bn.js"; import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type Approval = ContractEventLog<{ owner: string; spender: string; value: string; 0: string; 1: string; 2: string; }>; export type Burn = ContractEventLog<{ sender: string; to: string; amount0: string; amount1: string; 0: string; 1: string; 2: string; 3: string; }>; export type Claim = ContractEventLog<{ sender: string; recipient: string; amount0: string; amount1: string; 0: string; 1: string; 2: string; 3: string; }>; export type EIP712DomainChanged = ContractEventLog<{}>; export type Fees = ContractEventLog<{ sender: string; amount0: string; amount1: string; 0: string; 1: string; 2: string; }>; export type Mint = ContractEventLog<{ sender: string; amount0: string; amount1: string; 0: string; 1: string; 2: string; }>; export type Swap = ContractEventLog<{ sender: string; to: string; amount0In: string; amount1In: string; amount0Out: string; amount1Out: string; 0: string; 1: string; 2: string; 3: string; 4: string; 5: string; }>; export type Sync = ContractEventLog<{ reserve0: string; reserve1: string; 0: string; 1: string; }>; export type Transfer = ContractEventLog<{ from: string; to: string; value: string; 0: string; 1: string; 2: string; }>; export interface AeroPool extends BaseContract { constructor(jsonInterface: any[], address?: string, options?: ContractOptions): AeroPool; clone(): AeroPool; methods: { DOMAIN_SEPARATOR(): NonPayableTransactionObject<string>; allowance(owner: string, spender: string): NonPayableTransactionObject<string>; approve(spender: string, amount: number | string | BN): NonPayableTransactionObject<boolean>; balanceOf(account: string): NonPayableTransactionObject<string>; blockTimestampLast(): NonPayableTransactionObject<string>; burn(to: string): NonPayableTransactionObject<{ amount0: string; amount1: string; 0: string; 1: string; }>; claimFees(): NonPayableTransactionObject<{ claimed0: string; claimed1: string; 0: string; 1: string; }>; claimable0(arg0: string): NonPayableTransactionObject<string>; claimable1(arg0: string): NonPayableTransactionObject<string>; currentCumulativePrices(): NonPayableTransactionObject<{ reserve0Cumulative: string; reserve1Cumulative: string; blockTimestamp: string; 0: string; 1: string; 2: string; }>; decimals(): NonPayableTransactionObject<string>; decreaseAllowance(spender: string, subtractedValue: number | string | BN): NonPayableTransactionObject<boolean>; eip712Domain(): NonPayableTransactionObject<{ fields: string; name: string; version: string; chainId: string; verifyingContract: string; salt: string; extensions: string[]; 0: string; 1: string; 2: string; 3: string; 4: string; 5: string; 6: string[]; }>; factory(): NonPayableTransactionObject<string>; getAmountOut(amountIn: number | string | BN, tokenIn: string): NonPayableTransactionObject<string>; getK(): NonPayableTransactionObject<string>; getReserves(): NonPayableTransactionObject<{ _reserve0: string; _reserve1: string; _blockTimestampLast: string; 0: string; 1: string; 2: string; }>; increaseAllowance(spender: string, addedValue: number | string | BN): NonPayableTransactionObject<boolean>; index0(): NonPayableTransactionObject<string>; index1(): NonPayableTransactionObject<string>; initialize(_token0: string, _token1: string, _stable: boolean): NonPayableTransactionObject<void>; lastObservation(): NonPayableTransactionObject<[string, string, string]>; metadata(): NonPayableTransactionObject<{ dec0: string; dec1: string; r0: string; r1: string; st: boolean; t0: string; t1: string; 0: string; 1: string; 2: string; 3: string; 4: boolean; 5: string; 6: string; }>; mint(to: string): NonPayableTransactionObject<string>; name(): NonPayableTransactionObject<string>; nonces(owner: string): NonPayableTransactionObject<string>; observationLength(): NonPayableTransactionObject<string>; observations(arg0: number | string | BN): NonPayableTransactionObject<{ timestamp: string; reserve0Cumulative: string; reserve1Cumulative: string; 0: string; 1: string; 2: string; }>; periodSize(): NonPayableTransactionObject<string>; permit(owner: string, spender: string, value: number | string | BN, deadline: number | string | BN, v: number | string | BN, r: string | number[], s: string | number[]): NonPayableTransactionObject<void>; poolFees(): NonPayableTransactionObject<string>; prices(tokenIn: string, amountIn: number | string | BN, points: number | string | BN): NonPayableTransactionObject<string[]>; quote(tokenIn: string, amountIn: number | string | BN, granularity: number | string | BN): NonPayableTransactionObject<string>; reserve0(): NonPayableTransactionObject<string>; reserve0CumulativeLast(): NonPayableTransactionObject<string>; reserve1(): NonPayableTransactionObject<string>; reserve1CumulativeLast(): NonPayableTransactionObject<string>; sample(tokenIn: string, amountIn: number | string | BN, points: number | string | BN, window: number | string | BN): NonPayableTransactionObject<string[]>; setName(__name: string): NonPayableTransactionObject<void>; setSymbol(__symbol: string): NonPayableTransactionObject<void>; skim(to: string): NonPayableTransactionObject<void>; stable(): NonPayableTransactionObject<boolean>; supplyIndex0(arg0: string): NonPayableTransactionObject<string>; supplyIndex1(arg0: string): NonPayableTransactionObject<string>; swap(amount0Out: number | string | BN, amount1Out: number | string | BN, to: string, data: string | number[]): NonPayableTransactionObject<void>; symbol(): NonPayableTransactionObject<string>; sync(): NonPayableTransactionObject<void>; token0(): NonPayableTransactionObject<string>; token1(): NonPayableTransactionObject<string>; tokens(): NonPayableTransactionObject<{ 0: string; 1: string; }>; totalSupply(): NonPayableTransactionObject<string>; transfer(to: string, amount: number | string | BN): NonPayableTransactionObject<boolean>; transferFrom(from: string, to: string, amount: number | string | BN): NonPayableTransactionObject<boolean>; }; events: { Approval(cb?: Callback<Approval>): EventEmitter; Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter; Burn(cb?: Callback<Burn>): EventEmitter; Burn(options?: EventOptions, cb?: Callback<Burn>): EventEmitter; Claim(cb?: Callback<Claim>): EventEmitter; Claim(options?: EventOptions, cb?: Callback<Claim>): EventEmitter; EIP712DomainChanged(cb?: Callback<EIP712DomainChanged>): EventEmitter; EIP712DomainChanged(options?: EventOptions, cb?: Callback<EIP712DomainChanged>): EventEmitter; Fees(cb?: Callback<Fees>): EventEmitter; Fees(options?: EventOptions, cb?: Callback<Fees>): EventEmitter; Mint(cb?: Callback<Mint>): EventEmitter; Mint(options?: EventOptions, cb?: Callback<Mint>): EventEmitter; Swap(cb?: Callback<Swap>): EventEmitter; Swap(options?: EventOptions, cb?: Callback<Swap>): EventEmitter; Sync(cb?: Callback<Sync>): EventEmitter; Sync(options?: EventOptions, cb?: Callback<Sync>): EventEmitter; Transfer(cb?: Callback<Transfer>): EventEmitter; Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "Approval", cb: Callback<Approval>): void; once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void; once(event: "Burn", cb: Callback<Burn>): void; once(event: "Burn", options: EventOptions, cb: Callback<Burn>): void; once(event: "Claim", cb: Callback<Claim>): void; once(event: "Claim", options: EventOptions, cb: Callback<Claim>): void; once(event: "EIP712DomainChanged", cb: Callback<EIP712DomainChanged>): void; once(event: "EIP712DomainChanged", options: EventOptions, cb: Callback<EIP712DomainChanged>): void; once(event: "Fees", cb: Callback<Fees>): void; once(event: "Fees", options: EventOptions, cb: Callback<Fees>): void; once(event: "Mint", cb: Callback<Mint>): void; once(event: "Mint", options: EventOptions, cb: Callback<Mint>): void; once(event: "Swap", cb: Callback<Swap>): void; once(event: "Swap", options: EventOptions, cb: Callback<Swap>): void; once(event: "Sync", cb: Callback<Sync>): void; once(event: "Sync", options: EventOptions, cb: Callback<Sync>): void; once(event: "Transfer", cb: Callback<Transfer>): void; once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void; }