@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
23 lines • 918 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpiryProxy = void 0;
class ExpiryProxy {
constructor(contracts) {
this.contracts = contracts;
}
get address() {
return this.contracts.expiryProxy.options.address;
}
// ============ State-Changing Functions ============
async expire(accountOwner, accountNumber, liquidOwner, liquidNumber, owedMarket, heldMarket, expirationTimestamp, options = {}) {
return this.contracts.callContractFunction(this.contracts.expiryProxy.methods.expire({
owner: accountOwner,
number: accountNumber.toFixed(0),
}, {
owner: liquidOwner,
number: liquidNumber.toFixed(0),
}, owedMarket.toFixed(), heldMarket.toFixed(), expirationTimestamp.toFixed()), options);
}
}
exports.ExpiryProxy = ExpiryProxy;
//# sourceMappingURL=ExpiryProxy.js.map