@drift-labs/sdk
Version:
SDK for Drift Protocol
18 lines (17 loc) • 593 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.SerumFulfillmentConfigMap = void 0;
class SerumFulfillmentConfigMap {
constructor(driftClient) {
this.map = new Map();
this.driftClient = driftClient;
}
async add(marketIndex, serumMarketAddress) {
const account = await this.driftClient.getSerumV3FulfillmentConfig(serumMarketAddress);
this.map.set(marketIndex, account);
}
get(marketIndex) {
return this.map.get(marketIndex);
}
}
exports.SerumFulfillmentConfigMap = SerumFulfillmentConfigMap;
;