ontology-ts-sdk
Version:
Comprehensive TypeScript library for the Ontology blockchain.
50 lines (49 loc) • 982 B
TypeScript
import { StringReader } from '../../utils';
import Payload from './payload';
export declare enum VmType {
NEOVM_TYPE = 1,
WASMVM_TYPE = 3
}
/**
* Describes the payload of deploy code
*/
export default class DeployCode extends Payload {
/**
* Hex encoded contract content
*/
code: string;
/**
* Decides if the contract need storage(Deprecated)
* Change to VmType to support wasm vm
*/
vmType: VmType;
/**
* Name of the smart contract
*/
name: string;
/**
* Version of the contract
*/
version: string;
/**
* Author of the contract
*/
author: string;
/**
* Email of the author
*/
email: string;
/**
* Description of the contract
*/
description: string;
/**
* Serialize deploy code to hex string
*/
serialize(): string;
/**
* Deserialize deploy code
* @param sr
*/
deserialize(sr: StringReader): void;
}