UNPKG

@drift-labs/sdk

Version:
18 lines (17 loc) 593 B
"use strict"; 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;