UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

17 lines (16 loc) 536 B
import { LoadedStorage } from '../transaction/interfaces/ITransactionParameters.js'; import { ChallengeSubmission } from '../epoch/ChallengeSolution.js'; export declare enum Features { ACCESS_LIST = 1, EPOCH_SUBMISSION = 2 } export interface Feature<T extends Features> { opcode: T; data: unknown; } export interface AccessListFeature extends Feature<Features.ACCESS_LIST> { data: LoadedStorage; } export interface EpochSubmissionFeature extends Feature<Features.EPOCH_SUBMISSION> { data: ChallengeSubmission; }