UNPKG

@swaptoshi/dex-snapshot

Version:

Library for capturing snapshots of the blockchain state in the Swaptoshi DEX module

14 lines 2.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DB_PREFIX_DEX_SUPPORTED_TOKEN_STORE = exports.DB_PREFIX_DEX_TOKEN_SYMBOL_STORE = exports.DB_PREFIX_DEX_TICK_INFO_STORE = exports.DB_PREFIX_DEX_TICK_BITMAP_STORE = exports.DB_PREFIX_DEX_POSITION_INFO_STORE = exports.DB_PREFIX_DEX_OBSERVATION_STORE = exports.DB_PREFIX_DEX_POSITION_MANAGER_STORE = exports.DB_PREFIX_DEX_POOL_STORE = void 0; const klayr_framework_1 = require("klayr-framework"); const dex_module_1 = require("@swaptoshi/dex-module"); exports.DB_PREFIX_DEX_POOL_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_POOL)]); exports.DB_PREFIX_DEX_POSITION_MANAGER_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_POSITION_MANAGER)]); exports.DB_PREFIX_DEX_OBSERVATION_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_OBSERVATION)]); exports.DB_PREFIX_DEX_POSITION_INFO_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_POSITION_INFO)]); exports.DB_PREFIX_DEX_TICK_BITMAP_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_TICK_BITMAP)]); exports.DB_PREFIX_DEX_TICK_INFO_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_TICK_INFO)]); exports.DB_PREFIX_DEX_TOKEN_SYMBOL_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_TOKEN_SYMBOL)]); exports.DB_PREFIX_DEX_SUPPORTED_TOKEN_STORE = Buffer.concat([klayr_framework_1.Modules.computeStorePrefix(dex_module_1.MODULE_NAME_DEX), klayr_framework_1.Modules.computeSubstorePrefix(dex_module_1.STORE_INDEX_SUPPORTED_TOKEN)]); //# sourceMappingURL=constants.js.map