@azuro-org/toolkit 5.1.8 → 5.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -9
- package/dist/utils/getEndpoints.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5844,37 +5844,37 @@ const isDevChain = (chainId) => {
|
|
|
5844
5844
|
chainId === baseSepolia.id ||
|
|
5845
5845
|
chainId === bscTestnet.id);
|
|
5846
5846
|
};
|
|
5847
|
-
const getFeedGraphqlEndpoint = (chainId) => (`https://thegraph-1.
|
|
5848
|
-
const getBetsGraphqlEndpoint = (chainId) => (`https://thegraph.
|
|
5847
|
+
const getFeedGraphqlEndpoint = (chainId) => (`https://thegraph-1.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-data-feed-${endpointNameByChainId[chainId]}`);
|
|
5848
|
+
const getBetsGraphqlEndpoint = (chainId) => (`https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-${endpointNameByChainId[chainId]}-v3`);
|
|
5849
5849
|
/**
|
|
5850
5850
|
* @deprecated Only for v2 feed
|
|
5851
5851
|
*/
|
|
5852
5852
|
const getLegacyLiveGraphqlEndpoint = (chainId) => {
|
|
5853
5853
|
if (isDevChain(chainId)) {
|
|
5854
|
-
return 'https://thegraph.
|
|
5854
|
+
return 'https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev';
|
|
5855
5855
|
}
|
|
5856
5856
|
// if (chainId === polygonAmoy.id) {
|
|
5857
|
-
// return 'https://thegraph.
|
|
5857
|
+
// return 'https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-preprod'
|
|
5858
5858
|
// }
|
|
5859
|
-
return 'https://thegraph.
|
|
5859
|
+
return 'https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed';
|
|
5860
5860
|
};
|
|
5861
5861
|
const getSocketEndpoint = (chainId) => {
|
|
5862
5862
|
if (isDevChain(chainId)) {
|
|
5863
|
-
return 'wss://dev-streams.
|
|
5863
|
+
return 'wss://dev-streams.onchainfeed.org/v1/streams';
|
|
5864
5864
|
}
|
|
5865
5865
|
// if (chainId === polygonAmoy.id) {
|
|
5866
5866
|
// return 'wss://preprod-streams.azuro.org/v1/streams'
|
|
5867
5867
|
// }
|
|
5868
|
-
return 'wss://streams.
|
|
5868
|
+
return 'wss://streams.onchainfeed.org/v1/streams';
|
|
5869
5869
|
};
|
|
5870
5870
|
const getApiEndpoint = (chainId) => {
|
|
5871
5871
|
if (isDevChain(chainId)) {
|
|
5872
|
-
return 'https://dev-api.
|
|
5872
|
+
return 'https://dev-api.onchainfeed.org/api/v1/public';
|
|
5873
5873
|
}
|
|
5874
5874
|
// if (chainId === polygonAmoy.id) {
|
|
5875
5875
|
// return 'https://preprod-api.azuro.org/api/v1/public'
|
|
5876
5876
|
// }
|
|
5877
|
-
return 'https://api.
|
|
5877
|
+
return 'https://api.onchainfeed.org/api/v1/public';
|
|
5878
5878
|
};const ODDS_DECIMALS = 12;
|
|
5879
5879
|
const ODDS_COMBO_FEE_MODIFIER = 0.99;
|
|
5880
5880
|
const CLIENT_DATA_TYPES = [
|
|
@@ -4,6 +4,6 @@ export declare const getBetsGraphqlEndpoint: (chainId: ChainId) => string;
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Only for v2 feed
|
|
6
6
|
*/
|
|
7
|
-
export declare const getLegacyLiveGraphqlEndpoint: (chainId: ChainId) => "https://thegraph.
|
|
8
|
-
export declare const getSocketEndpoint: (chainId: ChainId) => "wss://dev-streams.
|
|
9
|
-
export declare const getApiEndpoint: (chainId: ChainId) => "https://dev-api.
|
|
7
|
+
export declare const getLegacyLiveGraphqlEndpoint: (chainId: ChainId) => "https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev" | "https://thegraph.onchainfeed.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed";
|
|
8
|
+
export declare const getSocketEndpoint: (chainId: ChainId) => "wss://dev-streams.onchainfeed.org/v1/streams" | "wss://streams.onchainfeed.org/v1/streams";
|
|
9
|
+
export declare const getApiEndpoint: (chainId: ChainId) => "https://dev-api.onchainfeed.org/api/v1/public" | "https://api.onchainfeed.org/api/v1/public";
|
package/package.json
CHANGED