-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Celo and opBNB gas oracles (v2) (#280)
Co-authored-by: nikhil kumar <[email protected]> Co-authored-by: Nikhil Kumar <[email protected]>
- Loading branch information
1 parent
f52ab6d
commit c9f338f
Showing
14 changed files
with
57 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "root", | ||
"private": true, | ||
"version": "2.0.29", | ||
"version": "2.0.30", | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"version": "2.0.29", | ||
"version": "2.0.30", | ||
"description": "> TODO: description", | ||
"author": "zincoshine <[email protected]>", | ||
"homepage": "https://https://github.com/etherspot/skandha#readme", | ||
|
@@ -40,12 +40,12 @@ | |
"@libp2p/peer-id-factory": "2.0.1", | ||
"@libp2p/prometheus-metrics": "1.1.3", | ||
"@multiformats/multiaddr": "12.1.3", | ||
"@skandha/api": "^2.0.29", | ||
"@skandha/db": "^2.0.29", | ||
"@skandha/executor": "^2.0.29", | ||
"@skandha/monitoring": "^2.0.29", | ||
"@skandha/node": "^2.0.29", | ||
"@skandha/types": "^2.0.29", | ||
"@skandha/api": "^2.0.30", | ||
"@skandha/db": "^2.0.30", | ||
"@skandha/executor": "^2.0.30", | ||
"@skandha/monitoring": "^2.0.30", | ||
"@skandha/node": "^2.0.30", | ||
"@skandha/types": "^2.0.30", | ||
"find-up": "5.0.0", | ||
"got": "12.5.3", | ||
"js-yaml": "4.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { getEtherscanGasFee } from "./utils"; | ||
import { IGetGasFeeResult } from "./interfaces"; | ||
|
||
export async function getCeloGasFee( | ||
apiKey: string | undefined = undefined | ||
): Promise<IGetGasFeeResult> { | ||
return getEtherscanGasFee("https://api.celoscan.io/api", apiKey); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { getEtherscanGasFee } from "./utils"; | ||
import { IGetGasFeeResult } from "./interfaces"; | ||
|
||
export async function getOpBnbGasFee( | ||
apiKey: string | undefined = undefined | ||
): Promise<IGetGasFeeResult> { | ||
return getEtherscanGasFee("https://api-opbnb.bscscan.com/api", apiKey); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters