@orionprotocol/contracts
Version:
Orion Protocol contracts typings
39 lines (38 loc) • 1.98 kB
TypeScript
/// <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 OwnershipTransferred = ContractEventLog<{
previousOwner: string;
newOwner: string;
0: string;
1: string;
}>;
export interface LiquidityMigrator extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): LiquidityMigrator;
clone(): LiquidityMigrator;
methods: {
WETH9(): NonPayableTransactionObject<string>;
exchange(): NonPayableTransactionObject<string>;
exchangeAllowances(arg0: string): NonPayableTransactionObject<boolean>;
initialize(_exchange: string, _WETH9: string): NonPayableTransactionObject<void>;
migrate(pairAddress: string, tokensToMigrate: number | string | BN, secretHash0: string | number[], secretHash1: string | number[], expiration: number | string | BN, targetChainId: number | string | BN): NonPayableTransactionObject<void>;
owner(): NonPayableTransactionObject<string>;
renounceOwnership(): NonPayableTransactionObject<void>;
transferOwnership(newOwner: string): NonPayableTransactionObject<void>;
};
events: {
OwnershipTransferred(cb?: Callback<OwnershipTransferred>): EventEmitter;
OwnershipTransferred(options?: EventOptions, cb?: Callback<OwnershipTransferred>): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
once(event: "OwnershipTransferred", cb: Callback<OwnershipTransferred>): void;
once(event: "OwnershipTransferred", options: EventOptions, cb: Callback<OwnershipTransferred>): void;
}