@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
60 lines (58 loc) • 2.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IGNORED_PROPERTIES = exports.BUILTIN_PROPERTIES = exports.RESERVED_PROPERTIES = exports.VIRTUAL_PROPERTIES = exports.ContractPropertyName = exports.DECORATORS_ARRAY = exports.DECORATORS = exports.isDecorator = exports.Decorator = exports.DEFAULT_CONTRACT_PROPERTIES = exports.FINALLY_COMPLETION = exports.CONTINUE_COMPLETION = exports.BREAK_COMPLETION = exports.THROW_COMPLETION = exports.NORMAL_COMPLETION = exports.PROPERTIES_PROPERTY = exports.DEPLOY_METHOD = exports.MAIN_FUNCTION = void 0;
exports.MAIN_FUNCTION = 'main';
exports.DEPLOY_METHOD = 'deploy';
exports.PROPERTIES_PROPERTY = 'properties';
exports.NORMAL_COMPLETION = 0;
exports.THROW_COMPLETION = 1;
exports.BREAK_COMPLETION = 2;
exports.CONTINUE_COMPLETION = 3;
exports.FINALLY_COMPLETION = 4;
exports.DEFAULT_CONTRACT_PROPERTIES = {
name: '',
codeVersion: '1.0',
author: '',
email: '',
description: '',
};
var Decorator;
(function (Decorator) {
Decorator["constant"] = "constant";
Decorator["send"] = "send";
Decorator["sendUnsafe"] = "sendUnsafe";
Decorator["receive"] = "receive";
Decorator["claim"] = "claim";
})(Decorator = exports.Decorator || (exports.Decorator = {}));
exports.isDecorator = (value) => Decorator[value] !== undefined;
exports.DECORATORS = new Set(Object.values(Decorator));
exports.DECORATORS_ARRAY = Object.values(Decorator);
var ContractPropertyName;
(function (ContractPropertyName) {
ContractPropertyName["deploy"] = "deploy";
ContractPropertyName["processedTransactions"] = "processedTransactions";
ContractPropertyName["claimedTransactions"] = "claimedTransactions";
ContractPropertyName["address"] = "address";
ContractPropertyName["properties"] = "properties";
ContractPropertyName["refundAssets"] = "refundAssets";
ContractPropertyName["completeSend"] = "completeSend";
ContractPropertyName["deployed"] = "deployed";
ContractPropertyName["approveUpgrade"] = "approveUpgrade";
ContractPropertyName["upgrade"] = "upgrade";
ContractPropertyName["destroy"] = "destroy";
})(ContractPropertyName = exports.ContractPropertyName || (exports.ContractPropertyName = {}));
exports.VIRTUAL_PROPERTIES = new Set([ContractPropertyName.deploy]);
exports.RESERVED_PROPERTIES = new Set([
ContractPropertyName.refundAssets,
ContractPropertyName.completeSend,
ContractPropertyName.upgrade,
ContractPropertyName.destroy,
]);
exports.BUILTIN_PROPERTIES = new Set([
ContractPropertyName.processedTransactions,
ContractPropertyName.claimedTransactions,
ContractPropertyName.address,
ContractPropertyName.deployed,
]);
exports.IGNORED_PROPERTIES = new Set([ContractPropertyName.properties]);
//# sourceMappingURL=constants.js.map