Skip to content

Commit a6ceeb5

Browse files
committed
ds integ polygon & gravity
1 parent 7e11747 commit a6ceeb5

File tree

11 files changed

+133
-3
lines changed

11 files changed

+133
-3
lines changed

.github/scripts/data/detect-data.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ node <<EOF
155155
// === data-streams networks
156156
const STREAMS_NETWORKS = [
157157
"apechain", "arbitrum", "avalanche", "base", "berachain", "blast",
158-
"bnb-chain", "bob", "ethereum", "gnosis-chain", "hashkey", "hyperliquid",
159-
"ink", "lens", "linea", "mantle", "opbnb", "optimism", "ronin",
158+
"bnb-chain", "bob", "ethereum", "gnosis-chain", "gravity", "hashkey", "hyperliquid",
159+
"ink", "lens", "linea", "mantle", "opbnb", "optimism", "polygon", "ronin",
160160
"scroll", "shibarium", "soneium", "sonic",
161161
"solana", "taiko", "unichain", "worldchain", "zksync"
162162
];

public/assets/chains/gravity.svg

Lines changed: 10 additions & 0 deletions
Loading

public/changelog.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
"displayName": "Gnosis Chain",
9797
"iconUrl": "https://docs.chain.link/assets/chains/gnosis-chain.svg"
9898
},
99+
"gravity": {
100+
"displayName": "Gravity",
101+
"iconUrl": "https://docs.chain.link/assets/chains/gravity.svg"
102+
},
99103
"hashkey": {
100104
"displayName": "HashKey Chain",
101105
"iconUrl": "https://docs.chain.link/assets/chains/hashkey.svg"
@@ -278,6 +282,14 @@
278282
}
279283
},
280284
"data": [
285+
{
286+
"category": "integration",
287+
"date": "2025-05-07",
288+
"description": "Chainlink Data Streams is available for new blockchains:\n\n- Polygon Mainnet\n- Polygon Amoy Testnet\n- Gravity Alpha Mainnet\n- Gravity Alpha Testnet Sepolia\n\nThe verifier proxy addresses and stream IDs are available on the [Stream Addresses](https://docs.chain.link/data-streams/crypto-streams) page.",
289+
"relatedNetworks": ["polygon", "gravity"],
290+
"title": "Data Streams Expands to New Blockchains",
291+
"topic": "Data Streams"
292+
},
281293
{
282294
"category": "integration",
283295
"date": "2025-05-06",

src/components/QuickLinks/data/productChainLinks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export const productChainLinks: ProductChainLinks = {
130130
botanix: "/data-streams/crypto-streams",
131131
ethereum: "/data-streams/crypto-streams",
132132
"gnosis-chain": "/data-streams/crypto-streams",
133+
gravity: "/data-streams/crypto-streams",
133134
hashkey: "/data-streams/crypto-streams",
134135
hyperliquid: "/data-streams/crypto-streams",
135136
ink: "/data-streams/crypto-streams",
@@ -140,6 +141,7 @@ export const productChainLinks: ProductChainLinks = {
140141
monad: "/data-streams/crypto-streams",
141142
opbnb: "/data-streams/crypto-streams",
142143
optimism: "/data-streams/crypto-streams",
144+
polygon: "/data-streams/crypto-streams",
143145
ronin: "/data-streams/crypto-streams",
144146
scroll: "/data-streams/crypto-streams",
145147
shibarium: "/data-streams/crypto-streams",
@@ -278,6 +280,7 @@ export const chainNames: Record<string, string> = {
278280
ethereum: "Ethereum",
279281
fantom: "Fantom",
280282
"gnosis-chain": "Gnosis Chain",
283+
gravity: "Gravity",
281284
hedera: "Hedera",
282285
kroma: "Kroma",
283286
linea: "Linea",

src/config/data/chain-to-technology.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,7 @@
123123
"METAL_MAINNET": "METAL",
124124
"METAL_TESTNET": "METAL",
125125
"ROOTSTOCK_MAINNET": "ROOTSTOCK",
126-
"ROOTSTOCK_TESTNET": "ROOTSTOCK"
126+
"ROOTSTOCK_TESTNET": "ROOTSTOCK",
127+
"GRAVITY_MAINNET": "GRAVITY",
128+
"GRAVITY_TESTNET": "GRAVITY"
127129
}

src/config/data/chains.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,5 +1918,35 @@
19181918
}
19191919
}
19201920
}
1921+
},
1922+
"GRAVITY": {
1923+
"title": "Gravity",
1924+
"icon": "/assets/chains/gravity.svg",
1925+
"chains": {
1926+
"GRAVITY_MAINNET": {
1927+
"chainId": 1625,
1928+
"title": "Gravity Alpha Mainnet",
1929+
"explorer": {
1930+
"baseUrl": "https://explorer.gravity.xyz"
1931+
},
1932+
"nativeCurrency": {
1933+
"name": "Gravity",
1934+
"symbol": "G",
1935+
"decimals": 18
1936+
}
1937+
},
1938+
"GRAVITY_TESTNET": {
1939+
"chainId": 13505,
1940+
"title": "Gravity Alpha Testnet Sepolia",
1941+
"explorer": {
1942+
"baseUrl": "https://explorer-sepolia.gravity.xyz/"
1943+
},
1944+
"nativeCurrency": {
1945+
"name": "Gravity",
1946+
"symbol": "G",
1947+
"decimals": 18
1948+
}
1949+
}
1950+
}
19211951
}
19221952
}

src/config/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export type SupportedTechnology =
6161
| "ZORA"
6262
| "MINT"
6363
| "SUPERSEED"
64+
| "GRAVITY"
6465

6566
export type SupportedChain =
6667
| "ETHEREUM_MAINNET"
@@ -188,6 +189,8 @@ export type SupportedChain =
188189
| "METAL_MAINNET"
189190
| "ROOTSTOCK_TESTNET"
190191
| "ROOTSTOCK_MAINNET"
192+
| "GRAVITY_MAINNET"
193+
| "GRAVITY_TESTNET"
191194

192195
export type ExplorerInfo = {
193196
baseUrl: string

src/config/web3Providers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ export const chainToProvider: Record<SupportedChain, () => Provider> = {
130130
METAL_TESTNET: () => new JsonRpcProvider("https://testnet.rpc.metall2.com"),
131131
ROOTSTOCK_MAINNET: () => new JsonRpcProvider("https://public-node.rsk.co"),
132132
ROOTSTOCK_TESTNET: () => new JsonRpcProvider("https://public-node.testnet.rsk.co"),
133+
GRAVITY_MAINNET: () => new JsonRpcProvider("https://rpc.gravity.xyz"),
134+
GRAVITY_TESTNET: () => new JsonRpcProvider("https://rpc-sepolia.gravity.xyz"),
133135
}
134136

135137
export const getRpcUrlForChain = (chain: SupportedChain): string => {

src/features/feeds/data/StreamsNetworksData.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,20 @@ export const StreamsNetworksData: NetworkData[] = [
172172
explorerUrl: "https://gnosis-chiado.blockscout.com/address/%s",
173173
},
174174
},
175+
{
176+
network: "Gravity",
177+
logoUrl: "/assets/chains/gravity.svg",
178+
mainnet: {
179+
label: "Gravity Alpha Mainnet",
180+
verifierProxy: "0x60fAa7faC949aF392DFc858F5d97E3EEfa07E9EB",
181+
explorerUrl: "https://explorer.gravity.xyz/address/%s",
182+
},
183+
testnet: {
184+
label: "Gravity Alpha Testnet Sepolia",
185+
verifierProxy: "0x60fAa7faC949aF392DFc858F5d97E3EEfa07E9EB",
186+
explorerUrl: "https://explorer-sepolia.gravity.xyz/address/%s",
187+
},
188+
},
175189
{
176190
network: "HashKey Chain",
177191
logoUrl: "/assets/chains/hashkey.svg",
@@ -308,6 +322,21 @@ export const StreamsNetworksData: NetworkData[] = [
308322
explorerUrl: "https://sepolia-optimism.etherscan.io/address/%s",
309323
},
310324
},
325+
{
326+
network: "Polygon",
327+
logoUrl: "/assets/chains/polygon.svg",
328+
networkStatus: "https://polygonscan.freshstatus.io/",
329+
mainnet: {
330+
label: "Polygon Mainnet",
331+
verifierProxy: "0xF276a4BC8Da323EA3E8c3c195a4E2E7615a898d1",
332+
explorerUrl: "https://polygonscan.com/address/%s",
333+
},
334+
testnet: {
335+
label: "Polygon Amoy Testnet",
336+
verifierProxy: "0x60fAa7faC949aF392DFc858F5d97E3EEfa07E9EB",
337+
explorerUrl: "https://amoy.polygonscan.com/address/%s",
338+
},
339+
},
311340
{
312341
network: "Ronin",
313342
logoUrl: "/assets/chains/ronin.svg",

src/features/utils/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ export const directoryToSupportedChain = (chainInRdd: string): SupportedChain =>
388388
return "ROOTSTOCK_MAINNET"
389389
case "bitcoin-testnet-rootstock":
390390
return "ROOTSTOCK_TESTNET"
391+
case "gravity-mainnet":
392+
return "GRAVITY_MAINNET"
393+
case "gravity-testnet":
394+
return "GRAVITY_TESTNET"
391395
default:
392396
throw Error(`Chain not found ${chainInRdd}`)
393397
}
@@ -633,6 +637,10 @@ export const supportedChainToChainInRdd = (supportedChain: SupportedChain): stri
633637
return "rootstock-mainnet"
634638
case "ROOTSTOCK_TESTNET":
635639
return "bitcoin-testnet-rootstock"
640+
case "GRAVITY_MAINNET":
641+
return "gravity-mainnet"
642+
case "GRAVITY_TESTNET":
643+
return "gravity-testnet"
636644
default:
637645
throw Error(`Chain not found ${supportedChain}`)
638646
}

0 commit comments

Comments
 (0)