UNPKG

@celo/contractkit

Version:

Celo's ContractKit to interact with Celo network

23 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OdisPaymentsWrapper = void 0; const BaseWrapper_1 = require("./BaseWrapper"); class OdisPaymentsWrapper extends BaseWrapper_1.BaseWrapper { constructor() { super(...arguments); /** * @notice Fetches total amount sent (all-time) for given account to odisPayments * @param account The account to fetch total amount of funds sent */ this.totalPaidCUSD = (0, BaseWrapper_1.proxyCall)(this.contract.methods.totalPaidCUSD, undefined, BaseWrapper_1.valueToBigNumber); /** * @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. */ this.payInCUSD = (0, BaseWrapper_1.proxySend)(this.connection, this.contract.methods.payInCUSD); } } exports.OdisPaymentsWrapper = OdisPaymentsWrapper; //# sourceMappingURL=OdisPayments.js.map