UNPKG

@anton-seriesfi/doppler-v3-sdk

Version:
37 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReadMigrator = void 0; const drift_1 = require("@delvtech/drift"); const abis_1 = require("../../abis"); class ReadMigrator { constructor(address, drift = (0, drift_1.createDrift)()) { this.migrator = drift.contract({ abi: abis_1.v4MigratorAbi, address, }); } async getAssetData(token0, token1, options) { return this.migrator.read("getAssetData", { token0, token1, ...options, }); } async airlock() { return this.migrator.read("airlock"); } async locker() { return this.migrator.read("locker"); } async poolManager() { return this.migrator.read("poolManager"); } async positionManager() { return this.migrator.read("positionManager"); } async DEAD_ADDRESS() { return this.migrator.read("DEAD_ADDRESS"); } } exports.ReadMigrator = ReadMigrator; //# sourceMappingURL=ReadMigrator.js.map