@orionprotocol/contracts
Version:
Orion Protocol contracts typings
36 lines (35 loc) • 1.41 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 TestCalc = ContractEventLog<{
amount0V1: string;
amount1V1: string;
amount0V2: string;
amount1V2: string;
0: string;
1: string;
2: string;
3: string;
}>;
export interface OrionMigrator extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): OrionMigrator;
clone(): OrionMigrator;
methods: {
migrate(tokensToMigrate: number | string | BN, amount0Min: number | string | BN, amount1Min: number | string | BN, to: string, deadline: number | string | BN): NonPayableTransactionObject<void>;
};
events: {
TestCalc(cb?: Callback<TestCalc>): EventEmitter;
TestCalc(options?: EventOptions, cb?: Callback<TestCalc>): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
once(event: "TestCalc", cb: Callback<TestCalc>): void;
once(event: "TestCalc", options: EventOptions, cb: Callback<TestCalc>): void;
}