UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

20 lines (19 loc) 598 B
import { Address } from '@btc-vision/transaction'; import { CallResult } from '../../../../contracts/CallResult.js'; export interface IStackingContract { stake(amount: bigint): Promise<CallResult>; unstake(): Promise<CallResult>; stakedAmount(address: Address): Promise<CallResult<{ amount: bigint; }>>; stakedReward(address: Address): Promise<CallResult<{ amount: bigint; }>>; claim(): Promise<CallResult>; rewardPool(): Promise<CallResult<{ reward: bigint; }>>; totalStaked(): Promise<CallResult<{ total: bigint; }>>; }