@signumjs/contracts
Version:
Smart Contracts package for Signum Network
16 lines (15 loc) • 647 B
TypeScript
/**
* 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';
/**
* 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 as hex string
*
*/
export declare const generateDataStack: (data: ContractData[]) => string;