UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

20 lines (19 loc) 641 B
import { Address } from '../../../../../node_modules/@btc-vision/transaction/build/index.js'; 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; }>>; }