@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
22 lines • 1.38 kB
TypeScript
import { Network, PublicKey } from '../../../node_modules/@btc-vision/bitcoin/browser/index.js';
import { Generator } from '../Generator.js';
import { Feature, Features } from '../Features.js';
import { IChallengeSolution } from '../../epoch/interfaces/IChallengeSolution.js';
export declare const OPNET_DEPLOYMENT_VERSION = 0;
export declare const versionBuffer: Uint8Array<ArrayBuffer>;
export declare class DeploymentGenerator extends Generator {
constructor(senderPubKey: PublicKey, contractSaltPubKey: Uint8Array, network?: Network);
/**
* Compile a bitcoin script representing a contract deployment
* @param {Uint8Array} contractBytecode - The contract bytecode
* @param {Uint8Array} contractSalt - The contract salt
* @param {ChallengeSolution} challenge - The challenge for reward
* @param {bigint} maxPriority - The maximum priority for the contract
* @param {Uint8Array} [calldata] - The calldata to be passed to the contract
* @param {Feature<Features>[]} [features] - Optional features to include in the script
* @returns {Uint8Array} - The compiled script
*/
compile(contractBytecode: Uint8Array, contractSalt: Uint8Array, challenge: IChallengeSolution, maxPriority: bigint, calldata?: Uint8Array, features?: Feature<Features>[]): Uint8Array;
private getAsm;
}
//# sourceMappingURL=DeploymentGenerator.d.ts.map