@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
93 lines (71 loc) • 2.43 kB
TypeScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import BN from "bn.js";
import { ContractOptions } from "web3-eth-contract";
import { EventLog } from "web3-core";
import { EventEmitter } from "events";
import {
Callback,
PayableTransactionObject,
NonPayableTransactionObject,
BlockType,
ContractEventLog,
BaseContract,
} from "./types";
interface EventOptions {
filter?: object;
fromBlock?: BlockType;
topics?: string[];
}
export type OwnershipTransferred = ContractEventLog<{
previousOwner: string;
newOwner: string;
0: string;
1: string;
}>;
export interface FxPriceFeed extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): FxPriceFeed;
clone(): FxPriceFeed;
methods: {
baseTokenAddr(): NonPayableTransactionObject<string>;
decimalPlaces(): NonPayableTransactionObject<string>;
exchangeRate(): NonPayableTransactionObject<string>;
futurePricingTolerance(): NonPayableTransactionObject<string>;
owner(): NonPayableTransactionObject<string>;
pair(): NonPayableTransactionObject<string>;
pricingTime(): NonPayableTransactionObject<string>;
quoteTokenAddr(): NonPayableTransactionObject<string>;
renounceOwnership(): NonPayableTransactionObject<void>;
transferOwnership(newOwner: string): NonPayableTransactionObject<void>;
updateTime(): NonPayableTransactionObject<string>;
setMaintainer(_maintainer: string): NonPayableTransactionObject<void>;
leaveMaintainers(): NonPayableTransactionObject<void>;
setExchangeRate(
_exchangeRate: number | string | BN,
_pricingTime: number | string | BN
): NonPayableTransactionObject<boolean>;
setFuturePricingTolerance(
_tolerance: number | string | BN
): NonPayableTransactionObject<void>;
getMaintainers(): NonPayableTransactionObject<string[]>;
};
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;
}