@nftx/constants
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.1.0](https://github.com/NFTX-project/nftxjs/compare/v2.0.2...v2.1.0) (2024-04-18) | ||
### Features | ||
* upgrade nftx amm subgraph to the new uniswap subgraph ([a9912b3](https://github.com/NFTX-project/nftxjs/commit/a9912b3ab61b317f0162838da5b86f01be26107d)) | ||
## [2.0.2](https://github.com/NFTX-project/nftxjs/compare/v2.0.1...v2.0.2) (2024-03-20) | ||
@@ -8,0 +19,0 @@ |
@@ -128,8 +128,11 @@ 'use strict'; | ||
const SHARED_PATH = 'subgraphs/name'; | ||
const PROXY_HOST = 'https://graph-proxy.nftx.xyz'; | ||
const SHARED_PROXY_NAME = 'shared'; | ||
const SHARED_PROXY_ROOT = `${PROXY_HOST}/${SHARED_PROXY_NAME}/${SHARED_PATH}`; | ||
/** A list of old fee distributors that are no longer active (but useful for historical data) */ | ||
const NFTX_FEE_DISTRIBUTOR_LEGACY = { | ||
[Network.Mainnet]: [a('0x6845fF5f102bEF9D785468F0bEb535b4687406E7')], | ||
[Network.Sepolia]: [], | ||
[Network.Arbitrum]: [] | ||
}; | ||
const NON_STANDARD_SUBGRAPH = { | ||
[Network.Mainnet]: `${SHARED_PROXY_ROOT}/0xorg/non-standard-nfts` | ||
[Network.Mainnet]: `https://graph-proxy.nftx.xyz/shared/subgraphs/name/0xorg/non-standard-nfts` | ||
}; | ||
@@ -152,5 +155,5 @@ const ERC721_SUBGRAPH = { | ||
const NFTX_UNISWAP_SUBGRAPH = { | ||
[Network.Mainnet]: 'https://graph-proxy.nftx.xyz/nftx-indexer/subgraphs/id/QmTqJsUzqsmSzkvDeSGDmGYCcVu8v3Tr3j3MqNsTZvVCMm', | ||
[Network.Sepolia]: 'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-sepolia', | ||
[Network.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-arbitrum' | ||
[Network.Mainnet]: 'https://query.graph.nftx.xyz/subgraphs/id/QmXavb61qVUrfYe7daW47n77LhinFgSoMhWVkMfgEdUspS', | ||
[Network.Sepolia]: 'https://api.thegraph.com/subgraphs/name/gundamdweeb/nftx-univ3-sepolia', | ||
[Network.Arbitrum]: 'https://query.graph.nftx.xyz/subgraphs/id/QmaTrSbtkkCeJW5fhbsm1BoEZm31zEE9HtCP5BEjfeGLMT' | ||
}; | ||
@@ -285,2 +288,3 @@ | ||
exports.NFTX_FEE_DISTRIBUTOR = NFTX_FEE_DISTRIBUTOR; | ||
exports.NFTX_FEE_DISTRIBUTOR_LEGACY = NFTX_FEE_DISTRIBUTOR_LEGACY; | ||
exports.NFTX_ROUTER = NFTX_ROUTER; | ||
@@ -287,0 +291,0 @@ exports.NFTX_ROUTER_URL = NFTX_ROUTER_URL; |
@@ -124,8 +124,11 @@ import { ValidationError } from '@nftx/errors'; | ||
const SHARED_PATH = 'subgraphs/name'; | ||
const PROXY_HOST = 'https://graph-proxy.nftx.xyz'; | ||
const SHARED_PROXY_NAME = 'shared'; | ||
const SHARED_PROXY_ROOT = `${PROXY_HOST}/${SHARED_PROXY_NAME}/${SHARED_PATH}`; | ||
/** A list of old fee distributors that are no longer active (but useful for historical data) */ | ||
const NFTX_FEE_DISTRIBUTOR_LEGACY = { | ||
[Network.Mainnet]: [a('0x6845fF5f102bEF9D785468F0bEb535b4687406E7')], | ||
[Network.Sepolia]: [], | ||
[Network.Arbitrum]: [] | ||
}; | ||
const NON_STANDARD_SUBGRAPH = { | ||
[Network.Mainnet]: `${SHARED_PROXY_ROOT}/0xorg/non-standard-nfts` | ||
[Network.Mainnet]: `https://graph-proxy.nftx.xyz/shared/subgraphs/name/0xorg/non-standard-nfts` | ||
}; | ||
@@ -148,5 +151,5 @@ const ERC721_SUBGRAPH = { | ||
const NFTX_UNISWAP_SUBGRAPH = { | ||
[Network.Mainnet]: 'https://graph-proxy.nftx.xyz/nftx-indexer/subgraphs/id/QmTqJsUzqsmSzkvDeSGDmGYCcVu8v3Tr3j3MqNsTZvVCMm', | ||
[Network.Sepolia]: 'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-sepolia', | ||
[Network.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-arbitrum' | ||
[Network.Mainnet]: 'https://query.graph.nftx.xyz/subgraphs/id/QmXavb61qVUrfYe7daW47n77LhinFgSoMhWVkMfgEdUspS', | ||
[Network.Sepolia]: 'https://api.thegraph.com/subgraphs/name/gundamdweeb/nftx-univ3-sepolia', | ||
[Network.Arbitrum]: 'https://query.graph.nftx.xyz/subgraphs/id/QmaTrSbtkkCeJW5fhbsm1BoEZm31zEE9HtCP5BEjfeGLMT' | ||
}; | ||
@@ -263,2 +266,2 @@ | ||
export { AMM_FACTORY, ARTBLOCK_COLLECTIONS, CREATE_VAULT_ZAP, CRYPTOKITTIES, CRYPTOPUNKS, ENS_REGISTRAR, ERC1155_SUBGRAPH, ERC721_SUBGRAPH, INVENTORY_STAKING, MARKETPLACE_ZAP, MAX_PRICE, MAX_TICK, MIN_PRICE, MIN_TICK, MaxUint256, NFTX_API_URL, NFTX_APR_URL, NFTX_FEE_DISTRIBUTOR, NFTX_ROUTER, NFTX_ROUTER_URL, NFTX_SUBGRAPH, NFTX_UNISWAP_SUBGRAPH, NONFUNGIBLE_POSITION_MANAGER, NON_STANDARD_SUBGRAPH, Network, OPENSEA_COLLECTION, PERMIT2, POOL_ROUTER, PREMIUM_DURATION, RESERVOIR_URL, RFBR_MAX_PRICE, RFBR_MAX_TICK, RFBR_MIN_PRICE, RFBR_MIN_TICK, TICK_LOG_BASE, TICK_PRICE_BASE, USDC, VAULT_FACTORY, VAULT_FEE_TIER, WETH_TOKEN, WeiPerEther, Zero, feeTierToPercentage, feeTierToTickSpacing, percentageToFeeTier }; | ||
export { AMM_FACTORY, ARTBLOCK_COLLECTIONS, CREATE_VAULT_ZAP, CRYPTOKITTIES, CRYPTOPUNKS, ENS_REGISTRAR, ERC1155_SUBGRAPH, ERC721_SUBGRAPH, INVENTORY_STAKING, MARKETPLACE_ZAP, MAX_PRICE, MAX_TICK, MIN_PRICE, MIN_TICK, MaxUint256, NFTX_API_URL, NFTX_APR_URL, NFTX_FEE_DISTRIBUTOR, NFTX_FEE_DISTRIBUTOR_LEGACY, NFTX_ROUTER, NFTX_ROUTER_URL, NFTX_SUBGRAPH, NFTX_UNISWAP_SUBGRAPH, NONFUNGIBLE_POSITION_MANAGER, NON_STANDARD_SUBGRAPH, Network, OPENSEA_COLLECTION, PERMIT2, POOL_ROUTER, PREMIUM_DURATION, RESERVOIR_URL, RFBR_MAX_PRICE, RFBR_MAX_TICK, RFBR_MIN_PRICE, RFBR_MIN_TICK, TICK_LOG_BASE, TICK_PRICE_BASE, USDC, VAULT_FACTORY, VAULT_FEE_TIER, WETH_TOKEN, WeiPerEther, Zero, feeTierToPercentage, feeTierToTickSpacing, percentageToFeeTier }; |
@@ -92,1 +92,7 @@ /** | ||
}; | ||
/** A list of old fee distributors that are no longer active (but useful for historical data) */ | ||
export declare const NFTX_FEE_DISTRIBUTOR_LEGACY: { | ||
1: `0x${string}`[]; | ||
11155111: `0x${string}`[]; | ||
42161: `0x${string}`[]; | ||
}; |
{ | ||
"name": "@nftx/constants", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/constants.js", |
@@ -120,1 +120,8 @@ import { Network } from './networks'; | ||
}; | ||
/** A list of old fee distributors that are no longer active (but useful for historical data) */ | ||
export const NFTX_FEE_DISTRIBUTOR_LEGACY = { | ||
[Network.Mainnet]: [a('0x6845fF5f102bEF9D785468F0bEb535b4687406E7')], | ||
[Network.Sepolia]: <Address[]>[], | ||
[Network.Arbitrum]: <Address[]>[], | ||
}; |
import { Network } from './networks'; | ||
const SHARED_PATH = 'subgraphs/name'; | ||
const SHARED_HOST = 'https://api.thegraph.com'; | ||
const PROXY_HOST = 'https://graph-proxy.nftx.xyz'; | ||
const SHARED_PROXY_NAME = 'shared'; | ||
const SHARED_ROOT = `${SHARED_HOST}/${SHARED_PATH}`; | ||
const SHARED_PROXY_ROOT = `${PROXY_HOST}/${SHARED_PROXY_NAME}/${SHARED_PATH}`; | ||
export const NON_STANDARD_SUBGRAPH = { | ||
[Network.Mainnet]: `${SHARED_PROXY_ROOT}/0xorg/non-standard-nfts`, | ||
[Network.Mainnet]: `https://graph-proxy.nftx.xyz/shared/subgraphs/name/0xorg/non-standard-nfts`, | ||
}; | ||
@@ -47,7 +36,7 @@ | ||
[Network.Mainnet]: | ||
'https://graph-proxy.nftx.xyz/nftx-indexer/subgraphs/id/QmTqJsUzqsmSzkvDeSGDmGYCcVu8v3Tr3j3MqNsTZvVCMm', | ||
'https://query.graph.nftx.xyz/subgraphs/id/QmXavb61qVUrfYe7daW47n77LhinFgSoMhWVkMfgEdUspS', | ||
[Network.Sepolia]: | ||
'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-sepolia', | ||
'https://api.thegraph.com/subgraphs/name/gundamdweeb/nftx-univ3-sepolia', | ||
[Network.Arbitrum]: | ||
'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-arbitrum', | ||
'https://query.graph.nftx.xyz/subgraphs/id/QmaTrSbtkkCeJW5fhbsm1BoEZm31zEE9HtCP5BEjfeGLMT', | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49012
999