UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

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