@opiumteam/opium-sdk-v2
Version:
one-stop-shop SDK to interact with the Opium-v2 protocol contracts, subgraphs and APIs
40 lines • 1.94 kB
JavaScript
;
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });
exports.networksConfig = exports.chainIds = void 0;
var types_1 = require("../types");
exports.chainIds = (_a = {},
_a[types_1.ENetworks.GOERLI] = 5,
_a[types_1.ENetworks.ARBITRUM_TESTNET] = 421611,
_a[types_1.ENetworks.ARBITRUM_ONE] = 42161,
_a[types_1.ENetworks.ETHEREUM] = 1,
_a[types_1.ENetworks.MATIC] = 137,
_a);
exports.networksConfig = (_b = {},
_b[types_1.ENetworks.GOERLI] = {
registryProxyAddress: '0x7A667f935f767CbcBBd3B005a38C13448BfFEA70',
onChainPositionLensAddress: '',
subgraphEndpoint: '',
},
_b[types_1.ENetworks.ARBITRUM_TESTNET] = {
registryProxyAddress: '0x9285CAA6F92D9Ba197966E854174e9B27B2061e5',
onChainPositionLensAddress: '0x4b214b8aafbdeb170b550bb2dfed41aadd9acf74',
subgraphEndpoint: 'https://api.thegraph.com/subgraphs/name/opiumprotocol/opium-v2-arbitrum-rinkeby',
},
_b[types_1.ENetworks.ARBITRUM_ONE] = {
registryProxyAddress: '0x17b6ffe276e8A4a299a5a87a656aFc5b8FA3ee4a',
onChainPositionLensAddress: '0xfa01Fd6118445F811753D96178F2ef8AE77caa53',
subgraphEndpoint: 'https://api.thegraph.com/subgraphs/name/opiumprotocol/opium-v2-arbitrum-one',
},
_b[types_1.ENetworks.ETHEREUM] = {
registryProxyAddress: '0xbd0e3097F47cEcA12407bAc42cDD574cf3072F23',
onChainPositionLensAddress: '0xfa01Fd6118445F811753D96178F2ef8AE77caa53',
subgraphEndpoint: 'https://api.thegraph.com/subgraphs/name/opiumprotocol/opium-v2-mainnet',
},
_b[types_1.ENetworks.MATIC] = {
registryProxyAddress: '0x17b6ffe276e8A4a299a5a87a656aFc5b8FA3ee4a',
onChainPositionLensAddress: '0x33afAaA35df82D56833B7EEacb2b65Eb805AC774',
subgraphEndpoint: 'https://api.thegraph.com/subgraphs/name/opiumprotocol/opium-v2-polygon',
},
_b);
//# sourceMappingURL=networks.js.map