@price-oracle/v1-core-interfaces
Version:
Price Oracle v1 Core Interfaces and needed integration files
513 lines (425 loc) • 13.3 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
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,
PayableTransactionObject,
NonPayableTransactionObject,
BlockType,
ContractEventLog,
BaseContract,
} from "./types";
export interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export type Approval = ContractEventLog<{
owner: string;
spender: string;
amount: string;
0: string;
1: string;
2: string;
}>;
export type Burned = ContractEventLog<{
_wethAmount: string;
0: string;
}>;
export type ClaimedRewards = ContractEventLog<{
_user: string;
_to: string;
_wethAmount: string;
_tokenAmount: string;
0: string;
1: string;
2: string;
3: string;
}>;
export type FeesCollected = ContractEventLog<{
_wethFees: string;
_tokenFees: string;
0: string;
1: string;
}>;
export type Locked = ContractEventLog<{
_wethAmount: string;
0: string;
}>;
export type NewProposal = ContractEventLog<{
_id: string;
_method: string;
_params: string;
0: string;
1: string;
2: string;
}>;
export type NewVote = ContractEventLog<{
_voter: string;
_votes: string;
_method: string;
_id: string;
0: string;
1: string;
2: string;
3: string;
}>;
export type PositionBurned = ContractEventLog<{
_position: [string, string, string];
_amount0: string;
_amount1: string;
0: [string, string, string];
1: string;
2: string;
}>;
export type PositionMinted = ContractEventLog<{
_position: [string, string, string];
_amount0: string;
_amount1: string;
0: [string, string, string];
1: string;
2: string;
}>;
export type ProposalCancelled = ContractEventLog<{
_id: string;
_method: string;
_params: string;
0: string;
1: string;
2: string;
}>;
export type ProposalExecuted = ContractEventLog<{
_id: string;
_method: string;
_params: string;
0: string;
1: string;
2: string;
}>;
export type ProposalQueued = ContractEventLog<{
_id: string;
_method: string;
_params: string;
0: string;
1: string;
2: string;
}>;
export type RewardsAdded = ContractEventLog<{
_wethAmount: string;
_tokenAmount: string;
0: string;
1: string;
}>;
export type Transfer = ContractEventLog<{
from: string;
to: string;
amount: string;
0: string;
1: string;
2: string;
}>;
export type VoteCancelled = ContractEventLog<{
_voter: string;
_method: string;
_id: string;
0: string;
1: string;
2: string;
}>;
export type WithdrawalsEnabled = ContractEventLog<{}>;
export interface ILockManager extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): ILockManager;
clone(): ILockManager;
methods: {
DOMAIN_SEPARATOR(): NonPayableTransactionObject<string>;
FEE(): NonPayableTransactionObject<string>;
IS_WETH_TOKEN0(): NonPayableTransactionObject<boolean>;
POOL(): NonPayableTransactionObject<string>;
POOL_MANAGER(): NonPayableTransactionObject<string>;
POOL_MANAGER_FACTORY(): NonPayableTransactionObject<string>;
QUORUM(): NonPayableTransactionObject<string>;
STRATEGY(): NonPayableTransactionObject<string>;
TOKEN(): NonPayableTransactionObject<string>;
WETH(): NonPayableTransactionObject<string>;
acceptDeprecate(): NonPayableTransactionObject<void>;
addRewards(
_wethAmount: number | string | BN,
_tokenAmount: number | string | BN
): NonPayableTransactionObject<void>;
allowance(
_owner: string,
_spender: string
): NonPayableTransactionObject<string>;
approve(
spender: string,
amount: number | string | BN
): NonPayableTransactionObject<boolean>;
balanceOf(_account: string): NonPayableTransactionObject<string>;
burn(
_lockedWethAmount: number | string | BN
): NonPayableTransactionObject<void>;
burnPosition(
_position: [number | string | BN, number | string | BN]
): NonPayableTransactionObject<void>;
cancelProposal(
_method: number | string | BN
): NonPayableTransactionObject<void>;
cancelVote(
_method: number | string | BN
): NonPayableTransactionObject<void>;
claimRewards(_to: string): NonPayableTransactionObject<{
_rewardWeth: string;
_rewardToken: string;
0: string;
1: string;
}>;
claimable(_account: string): NonPayableTransactionObject<{
_wethClaimable: string;
_tokenClaimable: string;
0: string;
1: string;
}>;
collectFees(
_positions: [number | string | BN, number | string | BN][]
): NonPayableTransactionObject<void>;
concentratedWeth(): NonPayableTransactionObject<string>;
decimals(): NonPayableTransactionObject<string>;
deprecated(): NonPayableTransactionObject<boolean>;
execute(
_method: number | string | BN,
_parameters: string | number[]
): NonPayableTransactionObject<void>;
executionTimelock(): NonPayableTransactionObject<string>;
getLatest(
_method: number | string | BN
): NonPayableTransactionObject<[string, string, string, boolean, string]>;
getPositionToBurn(
_position: [number | string | BN, number | string | BN]
): NonPayableTransactionObject<[string, string, string]>;
getPositionToMint(): NonPayableTransactionObject<[string, string, string]>;
getPositionsCount(): NonPayableTransactionObject<string>;
isExecutable(
_method: number | string | BN
): NonPayableTransactionObject<boolean>;
lock(_wethAmount: number | string | BN): NonPayableTransactionObject<void>;
mintPosition(): NonPayableTransactionObject<void>;
name(): NonPayableTransactionObject<string>;
nonces(_account: string): 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>;
poolRewards(): NonPayableTransactionObject<{
wethPerLockedWeth: string;
tokenPerLockedWeth: string;
0: string;
1: string;
}>;
positionsList(
_startFrom: number | string | BN,
_amount: number | string | BN
): NonPayableTransactionObject<[string, string, string][]>;
queue(
_method: number | string | BN,
_parameters: string | number[]
): NonPayableTransactionObject<void>;
quorumReached(
_method: number | string | BN
): NonPayableTransactionObject<boolean>;
symbol(): NonPayableTransactionObject<string>;
totalSupply(): NonPayableTransactionObject<string>;
totalVotes(): NonPayableTransactionObject<string>;
transfer(
to: string,
amount: number | string | BN
): NonPayableTransactionObject<boolean>;
transferFrom(
from: string,
to: string,
amount: number | string | BN
): NonPayableTransactionObject<boolean>;
uniswapV3MintCallback(
_amount0Owed: number | string | BN,
_amount1Owed: number | string | BN,
_data: string | number[]
): NonPayableTransactionObject<void>;
unwind(_positions: number | string | BN): NonPayableTransactionObject<void>;
userRewards(_account: string): NonPayableTransactionObject<{
wethPaid: string;
tokenPaid: string;
wethAvailable: string;
tokenAvailable: string;
0: string;
1: string;
2: string;
3: string;
}>;
votingPower(_user: string): NonPayableTransactionObject<string>;
withdraw(_receiver: string): NonPayableTransactionObject<void>;
withdrawalData(): NonPayableTransactionObject<{
withdrawalsEnabled: boolean;
totalWeth: string;
totalToken: string;
0: boolean;
1: string;
2: string;
}>;
};
events: {
Approval(cb?: Callback<Approval>): EventEmitter;
Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
Burned(cb?: Callback<Burned>): EventEmitter;
Burned(options?: EventOptions, cb?: Callback<Burned>): EventEmitter;
ClaimedRewards(cb?: Callback<ClaimedRewards>): EventEmitter;
ClaimedRewards(
options?: EventOptions,
cb?: Callback<ClaimedRewards>
): EventEmitter;
FeesCollected(cb?: Callback<FeesCollected>): EventEmitter;
FeesCollected(
options?: EventOptions,
cb?: Callback<FeesCollected>
): EventEmitter;
Locked(cb?: Callback<Locked>): EventEmitter;
Locked(options?: EventOptions, cb?: Callback<Locked>): EventEmitter;
NewProposal(cb?: Callback<NewProposal>): EventEmitter;
NewProposal(
options?: EventOptions,
cb?: Callback<NewProposal>
): EventEmitter;
NewVote(cb?: Callback<NewVote>): EventEmitter;
NewVote(options?: EventOptions, cb?: Callback<NewVote>): EventEmitter;
PositionBurned(cb?: Callback<PositionBurned>): EventEmitter;
PositionBurned(
options?: EventOptions,
cb?: Callback<PositionBurned>
): EventEmitter;
PositionMinted(cb?: Callback<PositionMinted>): EventEmitter;
PositionMinted(
options?: EventOptions,
cb?: Callback<PositionMinted>
): EventEmitter;
ProposalCancelled(cb?: Callback<ProposalCancelled>): EventEmitter;
ProposalCancelled(
options?: EventOptions,
cb?: Callback<ProposalCancelled>
): EventEmitter;
ProposalExecuted(cb?: Callback<ProposalExecuted>): EventEmitter;
ProposalExecuted(
options?: EventOptions,
cb?: Callback<ProposalExecuted>
): EventEmitter;
ProposalQueued(cb?: Callback<ProposalQueued>): EventEmitter;
ProposalQueued(
options?: EventOptions,
cb?: Callback<ProposalQueued>
): EventEmitter;
RewardsAdded(cb?: Callback<RewardsAdded>): EventEmitter;
RewardsAdded(
options?: EventOptions,
cb?: Callback<RewardsAdded>
): EventEmitter;
Transfer(cb?: Callback<Transfer>): EventEmitter;
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
VoteCancelled(cb?: Callback<VoteCancelled>): EventEmitter;
VoteCancelled(
options?: EventOptions,
cb?: Callback<VoteCancelled>
): EventEmitter;
WithdrawalsEnabled(cb?: Callback<WithdrawalsEnabled>): EventEmitter;
WithdrawalsEnabled(
options?: EventOptions,
cb?: Callback<WithdrawalsEnabled>
): 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: "Burned", cb: Callback<Burned>): void;
once(event: "Burned", options: EventOptions, cb: Callback<Burned>): void;
once(event: "ClaimedRewards", cb: Callback<ClaimedRewards>): void;
once(
event: "ClaimedRewards",
options: EventOptions,
cb: Callback<ClaimedRewards>
): void;
once(event: "FeesCollected", cb: Callback<FeesCollected>): void;
once(
event: "FeesCollected",
options: EventOptions,
cb: Callback<FeesCollected>
): void;
once(event: "Locked", cb: Callback<Locked>): void;
once(event: "Locked", options: EventOptions, cb: Callback<Locked>): void;
once(event: "NewProposal", cb: Callback<NewProposal>): void;
once(
event: "NewProposal",
options: EventOptions,
cb: Callback<NewProposal>
): void;
once(event: "NewVote", cb: Callback<NewVote>): void;
once(event: "NewVote", options: EventOptions, cb: Callback<NewVote>): void;
once(event: "PositionBurned", cb: Callback<PositionBurned>): void;
once(
event: "PositionBurned",
options: EventOptions,
cb: Callback<PositionBurned>
): void;
once(event: "PositionMinted", cb: Callback<PositionMinted>): void;
once(
event: "PositionMinted",
options: EventOptions,
cb: Callback<PositionMinted>
): void;
once(event: "ProposalCancelled", cb: Callback<ProposalCancelled>): void;
once(
event: "ProposalCancelled",
options: EventOptions,
cb: Callback<ProposalCancelled>
): void;
once(event: "ProposalExecuted", cb: Callback<ProposalExecuted>): void;
once(
event: "ProposalExecuted",
options: EventOptions,
cb: Callback<ProposalExecuted>
): void;
once(event: "ProposalQueued", cb: Callback<ProposalQueued>): void;
once(
event: "ProposalQueued",
options: EventOptions,
cb: Callback<ProposalQueued>
): void;
once(event: "RewardsAdded", cb: Callback<RewardsAdded>): void;
once(
event: "RewardsAdded",
options: EventOptions,
cb: Callback<RewardsAdded>
): void;
once(event: "Transfer", cb: Callback<Transfer>): void;
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
once(event: "VoteCancelled", cb: Callback<VoteCancelled>): void;
once(
event: "VoteCancelled",
options: EventOptions,
cb: Callback<VoteCancelled>
): void;
once(event: "WithdrawalsEnabled", cb: Callback<WithdrawalsEnabled>): void;
once(
event: "WithdrawalsEnabled",
options: EventOptions,
cb: Callback<WithdrawalsEnabled>
): void;
}