Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 5aa2d54

Browse files
committed
Add API details to explorer configuration for x-layer and x-layer-sepolia-testnet
1 parent 7edf2be commit 5aa2d54

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

chains/x-layer-sepolia-testnet.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"alias": "x-layer-sepolia-testnet",
33
"decimals": 18,
44
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": false
8+
},
9+
"url": "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER_TESTNET"
10+
},
511
"browserUrl": "https://www.okx.com/explorer/xlayer-test/"
612
},
713
"id": "195",

chains/x-layer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"alias": "x-layer",
33
"decimals": 18,
44
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": false
8+
},
9+
"url": "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER"
10+
},
511
"browserUrl": "https://www.okx.com/explorer/xlayer/"
612
},
713
"id": "196",

src/generated/chains.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,13 @@ export const CHAINS: Chain[] = [
16941694
{
16951695
alias: 'x-layer-sepolia-testnet',
16961696
decimals: 18,
1697-
explorer: { browserUrl: 'https://www.okx.com/explorer/xlayer-test/' },
1697+
explorer: {
1698+
api: {
1699+
key: { required: false },
1700+
url: 'https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER_TESTNET',
1701+
},
1702+
browserUrl: 'https://www.okx.com/explorer/xlayer-test/',
1703+
},
16981704
id: '195',
16991705
name: 'X Layer testnet',
17001706
providers: [
@@ -1707,7 +1713,13 @@ export const CHAINS: Chain[] = [
17071713
{
17081714
alias: 'x-layer',
17091715
decimals: 18,
1710-
explorer: { browserUrl: 'https://www.okx.com/explorer/xlayer/' },
1716+
explorer: {
1717+
api: {
1718+
key: { required: false },
1719+
url: 'https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER',
1720+
},
1721+
browserUrl: 'https://www.okx.com/explorer/xlayer/',
1722+
},
17111723
id: '196',
17121724
name: 'X Layer',
17131725
providers: [

0 commit comments

Comments
 (0)