UNPKG

@signumjs/contracts

Version:

Smart Contracts package for Signum Network

21 lines (20 loc) 725 B
/** * Copyright (c) 2019 Burst Apps Team * * Credits to AJ ONeal for the two-complements stuff * https://coolaj86.com/articles/convert-decimal-to-hex-with-js-bigints/ */ import { ContractData } from './typings/contractData'; interface DataStack { dataHex: string; dataPageCount: number; } /** * Generates a data stack message of a contracts, which can be used as initialization. The message can be used on a contract's creation with * {@link core.ContractApi.publishContract} or {@link core.ContractApi.publishContractByReference} * @param data A list of variables forming the data stack * @return The data stack * */ export declare const generateDataStack: (data: ContractData[]) => DataStack; export {};