UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

29 lines (27 loc) 1.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.add = void 0; const client_common_1 = require("@neo-one/client-common"); const BuiltinConstantBufferMemberValue_1 = require("../../BuiltinConstantBufferMemberValue"); const BuiltinInterface_1 = require("../../BuiltinInterface"); const BuiltinValueObject_1 = require("../../BuiltinValueObject"); const from_1 = require("./from"); class Hash256Interface extends BuiltinInterface_1.BuiltinInterface { } class Hash256Value extends BuiltinValueObject_1.BuiltinValueObject { constructor() { super(...arguments); this.type = 'Hash256Constructor'; } } class Hash256ConstructorInterface extends BuiltinInterface_1.BuiltinInterface { } exports.add = (builtins) => { builtins.addContractInterface('Hash256', new Hash256Interface()); builtins.addContractValue('Hash256', new Hash256Value()); builtins.addContractInterface('Hash256Constructor', new Hash256ConstructorInterface()); builtins.addContractMember('Hash256Constructor', 'from', new from_1.Hash256From()); builtins.addContractMember('Hash256Constructor', 'NEO', new BuiltinConstantBufferMemberValue_1.BuiltinConstantBufferMemberValue(client_common_1.common.stringToUInt256(client_common_1.common.NEO_ASSET_HASH))); builtins.addContractMember('Hash256Constructor', 'GAS', new BuiltinConstantBufferMemberValue_1.BuiltinConstantBufferMemberValue(client_common_1.common.stringToUInt256(client_common_1.common.GAS_ASSET_HASH))); }; //# sourceMappingURL=index.js.map