@drift-labs/common
Version:
Common functions for Drift
64 lines • 2.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnvironmentConstants = void 0;
exports.EnvironmentConstants = {
rpcs: {
dev: [
{
label: 'Helius',
value: 'https://detailed-sharleen-fast-devnet.helius-rpc.com',
wsValue: 'wss://detailed-sharleen-fast-devnet.helius-rpc.com',
allowAdditionalConnection: true,
},
{
label: 'RPC Pool',
value: 'https://drift-drift-a827.devnet.rpcpool.com/3639271b-6f0e-47c6-a643-1aaa0e498f58',
wsValue: 'wss://drift-drift-a827.devnet.rpcpool.com/3639271b-6f0e-47c6-a643-1aaa0e498f58/whirligig',
allowAdditionalConnection: false,
},
],
mainnet: [
{
label: 'Triton RPC Pool 1',
value: 'https://drift-drift-951a.mainnet.rpcpool.com',
wsValue: 'wss://drift-drift-951a.mainnet.rpcpool.com/whirligig',
allowAdditionalConnection: true,
},
{
label: 'Helius 1',
value: 'https://kora-8cwrc2-fast-mainnet.helius-rpc.com/',
wsValue: 'wss://kora-8cwrc2-fast-mainnet.helius-rpc.com/',
allowAdditionalConnection: true,
},
],
},
historyServerUrl: {
dev: 'https://master.api.drift.trade',
mainnet: 'https://mainnet-beta.api.drift.trade',
staging: 'https://staging.api.drift.trade',
},
dataServerUrl: {
dev: 'https://data-master.api.drift.trade',
mainnet: 'https://data.api.drift.trade',
staging: 'https://data-staging.api.drift.trade',
},
dlobServerHttpUrl: {
dev: 'https://master.dlob.drift.trade',
mainnet: 'https://dlob.drift.trade',
staging: 'https://staging.dlob.drift.trade',
},
dlobServerWsUrl: {
dev: 'wss://master.dlob.drift.trade/ws',
mainnet: 'wss://dlob.drift.trade/ws',
staging: 'wss://staging.dlob.drift.trade/ws',
},
eventsServerUrl: {
mainnet: 'wss://events.drift.trade/ws',
staging: 'wss://events.drift.trade/ws',
},
swiftServerUrl: {
mainnet: 'https://swift.drift.trade',
staging: 'https://master.swift.drift.trade',
},
};
//# sourceMappingURL=EnvironmentConstants.js.map