UNPKG

@1hive/connect-core

Version:

Access and interact with Aragon Organizations and their apps.

20 lines 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Transaction { constructor(data) { if (!data.to) { throw new Error(`Could not cosntruct trasanction: missing 'to'`); } if (!data.from) { throw new Error(`Could not cosntruct trasanction: missing 'from'`); } if (!data.data) { throw new Error(`Could not cosntruct trasanction: missing 'data'`); } this.data = data.data; this.from = data.from; this.to = data.to; } } exports.default = Transaction; //# sourceMappingURL=Transaction.js.map