@decent-bet/solido
Version:
Code first contract entity mapper for Solidity based blockchains like Ethereum, Vechain, Tron
18 lines (17 loc) • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function GetEvents(options) {
return (target, propertyKey) => {
const getEventsCall = function (fnOptions) {
const self = this;
const callOptions = Object.assign({}, options, fnOptions, { name: options.name });
return self.getEvents(options.name || propertyKey, callOptions);
};
Object.defineProperty(target, propertyKey, {
value: getEventsCall,
enumerable: false,
configurable: true
});
};
}
exports.GetEvents = GetEvents;