@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
68 lines (56 loc) • 1.68 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 interface CompoundRateKeeper extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): CompoundRateKeeper;
clone(): CompoundRateKeeper;
methods: {
compoundRate(): NonPayableTransactionObject<{
rate: string;
lastUpdate: string;
0: string;
1: string;
}>;
initialize(): NonPayableTransactionObject<void>;
update(
_interestRate: number | string | BN
): NonPayableTransactionObject<string>;
updateWithDistributableAmount(
_oldAmount: number | string | BN,
_distributable: number | string | BN
): NonPayableTransactionObject<string>;
getCurrentRate(): NonPayableTransactionObject<string>;
getLastUpdate(): NonPayableTransactionObject<string>;
transferOwnership(_to: string): NonPayableTransactionObject<void>;
normalizeAmount(
_targetAmount: number | string | BN
): NonPayableTransactionObject<string>;
denormalizeAmount(
_normalizedAmount: number | string | BN
): NonPayableTransactionObject<string>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
}