UNPKG

@river-build/web3

Version:

Dapps for our Space and Registry contracts

20 lines 985 B
import { ITipping, ITippingInterface, TipEventObject } from '@river-build/generated/dev/typings/ITipping'; import { ContractReceipt, ethers } from 'ethers'; import { BaseContractShim } from './BaseContractShim'; export declare class ITippingShim extends BaseContractShim<ITipping, ITippingInterface> { constructor(address: string, provider: ethers.providers.Provider | undefined); /** * Get the total number of tips by currency * @param currency - The currency to get the total tips for * @returns The total number of tips by currency */ totalTipsByCurrency(currency: string): Promise<bigint>; /** * Get the tip amount by currency * @param currency - The currency to get the tip amount for * @returns The tip amount by currency */ tipAmountByCurrency(currency: string): Promise<bigint>; getTipEvent(receipt: ContractReceipt, senderAddress: string): TipEventObject | undefined; } //# sourceMappingURL=ITippingShim.d.ts.map