@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
50 lines (49 loc) • 1.68 kB
TypeScript
export declare const MAIN_FUNCTION = "main";
export declare const DEPLOY_METHOD = "deploy";
export declare const PROPERTIES_PROPERTY = "properties";
export declare const NORMAL_COMPLETION = 0;
export declare const THROW_COMPLETION = 1;
export declare const BREAK_COMPLETION = 2;
export declare const CONTINUE_COMPLETION = 3;
export declare const FINALLY_COMPLETION = 4;
export interface ContractProperties {
readonly name: string;
readonly codeVersion: string;
readonly author: string;
readonly email: string;
readonly description: string;
}
export declare const DEFAULT_CONTRACT_PROPERTIES: {
name: string;
codeVersion: string;
author: string;
email: string;
description: string;
};
export declare enum Decorator {
constant = "constant",
send = "send",
sendUnsafe = "sendUnsafe",
receive = "receive",
claim = "claim"
}
export declare const isDecorator: (value: string) => value is Decorator;
export declare const DECORATORS: Set<Decorator>;
export declare const DECORATORS_ARRAY: Decorator[];
export declare enum ContractPropertyName {
deploy = "deploy",
processedTransactions = "processedTransactions",
claimedTransactions = "claimedTransactions",
address = "address",
properties = "properties",
refundAssets = "refundAssets",
completeSend = "completeSend",
deployed = "deployed",
approveUpgrade = "approveUpgrade",
upgrade = "upgrade",
destroy = "destroy"
}
export declare const VIRTUAL_PROPERTIES: Set<string>;
export declare const RESERVED_PROPERTIES: Set<string>;
export declare const BUILTIN_PROPERTIES: Set<string>;
export declare const IGNORED_PROPERTIES: Set<string>;