-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * wip * wip * wip * wip * wip * wip * wip * wip * change to absolute imports * update imports * update supportedNetworkShortcut * Add capability for feed notices (#1440) * Add feed notice capability --------- Co-authored-by: Yacine Benichou <[email protected]> * Fix typescript issues * Edits * More edits not included in previous commit * Updates * Fix typo in threshold variable name --------- Co-authored-by: Yacine Benichou <[email protected]> * fix import --------- Co-authored-by: Dwight Lyle <[email protected]> Co-authored-by: Yacine Benichou <[email protected]>
- Loading branch information
1 parent
f6cc730
commit 9b30165
Showing
19 changed files
with
205 additions
and
217 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {} |
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
2 changes: 1 addition & 1 deletion
2
src/features/feeds/api/backend.ts → src/features/data/api/backend.ts
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
2 changes: 1 addition & 1 deletion
2
src/features/feeds/api/index.ts → src/features/data/api/index.ts
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,4 +1,4 @@ | ||
import { Chain } from "../data/chains" | ||
import { Chain } from "../chains" | ||
|
||
interface Docs { | ||
nftFloorUnits: any | ||
|
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
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from "./components" | ||
export * from "./data" | ||
export * from "./types" |
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,39 @@ | ||
import { getGasCalculatorUrl } from "./CostTable" | ||
import { expect, test } from "@jest/globals" | ||
import { ChainNetwork } from "~/features/data/chains" | ||
|
||
describe("getGasCalculatorUrl", () => { | ||
test("works with testnet", () => { | ||
const mainChainName = "ethereum" | ||
const networkName = "goerli" | ||
const chain: ChainNetwork = { | ||
name: "Goerli Testnet", | ||
explorerUrl: "https://goerli.etherscan.io/address/%s", | ||
networkType: "testnet", | ||
rddUrl: "https://reference-data-directory.vercel.app/feeds-goerli.json", | ||
tags: ["proofOfReserve", "nftFloorPrice"], | ||
} | ||
const method = "vrfSubscription" | ||
|
||
expect(getGasCalculatorUrl({ mainChainName, networkName, chain, method })).toEqual( | ||
"https://vrf.chain.link/api/calculator?networkName=ethereum&networkType=goerli&method=subscription" | ||
) | ||
}) | ||
|
||
test("works with mainnet", () => { | ||
const mainChainName = "polygon" | ||
const networkName = "mainnet" | ||
const chain: ChainNetwork = { | ||
name: "Polygon Mainnet", | ||
explorerUrl: "https://polygonscan.com/address/%s", | ||
networkType: "mainnet", | ||
rddUrl: "https://reference-data-directory.vercel.app/feeds-matic-mainnet.json", | ||
tags: ["proofOfReserve"], | ||
} | ||
const method = "vrfDirectFunding" | ||
|
||
expect(getGasCalculatorUrl({ mainChainName, networkName, chain, method })).toEqual( | ||
"https://vrf.chain.link/api/calculator?networkName=polygon&networkType=mainnet&method=directFunding" | ||
) | ||
}) | ||
}) |
Oops, something went wrong.
9b30165
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
documentation – ./
documentation-woad-five.vercel.app
documentation-git-main-chainlinklabs.vercel.app
documentation-chainlinklabs.vercel.app
docs.chain.link