Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

fix: remove use of references.json chainNames field #1243

Merged
merged 4 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/firebase-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
firebaseServiceAccount: '${{ secrets.FIREBASE_SA_API3_DOCS }}'
expires: 7d
channelId: ${{ steps.get_branch.outputs.branch_name }}
firebaseToolsVersion: '11.30.0'
id: firebase_deploy

- uses: actions/github-script@v6
Expand Down
15 changes: 2 additions & 13 deletions docs/.vuepress/components/airnode/ContractAddresses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,9 @@ export default {
let notImportantArr = [];

for (const key in response.data[this.contractName]) {
// Here the network is not in chainsRef list
// Is it a testnet or mainnet, tell by its repo name
// Skip if the network is not in chainsRef list
if (!chainsRef[key]) {
let network = 'mainnet';
if (response.data.chainNames[key].indexOf('testnet') > -1) {
network = 'testnet';
}
importantArr.push({
address: response.data[this.contractName][key],
chainId: parseInt(key),
fullname: response.data.chainNames[key],
type: network,
});
// Here the chain is in the chainsRef list
continue;
} else if (chainsRef[key].type === this.type) {
if (important.includes(parseInt(key))) {
importantArr.push({
Expand Down
9 changes: 3 additions & 6 deletions docs/dapis/reference/chains.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ folder: Reference

# {{$frontmatter.title}}

dAPIs can be read on the following chains using the
[DapiServer](../#dapiserver-sol) contract addresses listed below. Use the
[API3 Market](https://market.api3.org/) website to find the desired dAPI names
and the networks they are available on.

<dapis-chains-ChainsList/>
Please refer to the new API3 documentation's
[dAPIs Reference](https://docs.api3.org/reference/dapis/chains/) for the latest
wkande marked this conversation as resolved.
Show resolved Hide resolved
technical details on accessing dAPIs.
Loading