@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
12 lines (11 loc) • 662 B
TypeScript
import { Network } from '@btc-vision/bitcoin';
import { Generator } from '../Generator.js';
import { Feature, Features } from '../Features.js';
import { ChallengeSolution } from '../../epoch/ChallengeSolution.js';
export declare const OPNET_DEPLOYMENT_VERSION = 0;
export declare const versionBuffer: Buffer<ArrayBuffer>;
export declare class DeploymentGenerator extends Generator {
constructor(senderPubKey: Buffer, contractSaltPubKey: Buffer, network?: Network);
compile(contractBytecode: Buffer, contractSalt: Buffer, challenge: ChallengeSolution, maxPriority: bigint, calldata?: Buffer, features?: Feature<Features>[]): Buffer;
private getAsm;
}