UNPKG

@okxweb3/coin-bitcoin

Version:

@ok/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals.

14 lines (13 loc) 513 B
import { CAT20State, GuardConstState, OpenMinterState, OpenMinterV2State, ProtocolState } from '@cat-protocol/cat-smartcontracts'; import { UTXO } from 'scrypt-ts'; export interface ContractState<T> { protocolState: ProtocolState; data: T; } export interface Contract<T> { utxo: UTXO; state: ContractState<T>; } export type OpenMinterContract = Contract<OpenMinterState | OpenMinterV2State>; export type TokenContract = Contract<CAT20State>; export type GuardContract = Contract<GuardConstState>;