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

Commit

Permalink
fix: references.json, firebase, and dAPI updates (#1243)
Browse files Browse the repository at this point in the history
* fix: remove use of references.json chainNames field

* fix: add firebase tools version for node v14 compatibility

* fix: replace dAPI addresses with reference to new docs
  • Loading branch information
dcroote authored Dec 31, 2023
1 parent 57c56b8 commit f7c539c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
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 for the latest
[Chains and Contracts](https://docs.api3.org/reference/dapis/chains/) page.
There you will also find the current technical information on accessing dAPIs.

1 comment on commit f7c539c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.