UNPKG

@celo/contractkit

Version:

Celo's ContractKit to interact with Celo network

20 lines (19 loc) 921 B
import { OdisPayments } from '@celo/abis/web3/OdisPayments'; import { Address, CeloTransactionObject } from '@celo/connect'; import { BigNumber } from 'bignumber.js'; import { BaseWrapper } from './BaseWrapper'; export declare class OdisPaymentsWrapper extends BaseWrapper<OdisPayments> { /** * @notice Fetches total amount sent (all-time) for given account to odisPayments * @param account The account to fetch total amount of funds sent */ totalPaidCUSD: (account: Address) => Promise<BigNumber>; /** * @notice Sends cUSD to this contract to pay for ODIS quota (for queries). * @param account The account whose balance to increment. * @param value The amount in cUSD to pay. * @dev Throws if cUSD transfer fails. */ payInCUSD: (account: Address, value: number | string) => CeloTransactionObject<void>; } export type OdisPaymentsWrapperType = OdisPaymentsWrapper;