From 462933fe16543ba392745222aeb220db88cfe403 Mon Sep 17 00:00:00 2001 From: yohanelly95 Date: Wed, 2 Aug 2023 10:30:54 +0530 Subject: [PATCH 1/4] chore: contribution guidelines --- CONTRIBUTING.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f03c154 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,12 @@ + +# Contributing to Razor Network Datasources +If you wish to propose a new price feed to be added to the datasources used by the protocol, please follow the steps below: + +1. Start by forking the repository and creating your branch from master. +2. Add the new job to `jobs.json` and update `collections.json` as needed with the correct jobIDs. +3. Execute the test suite using the command `npm run test`. It's crucial to ensure all tests pass. Additionally, please confirm that your code is properly formatted and aligns with the existing style guide. +4. Issue a pull request (PR) to the upstream master branch. +5. The proposed changes will be available for community discussion and review in GitHub discussions. Community members are welcome to provide feedback and votes on the proposal. + + + From 5607eee2bed3d164240623c8c6d19b6a07478890 Mon Sep 17 00:00:00 2001 From: yohanelly95 Date: Tue, 12 Dec 2023 14:55:17 +0530 Subject: [PATCH 2/4] feat: USDCUSD price feed --- mainnet/collections.json | 7 +++++++ mainnet/jobs.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/mainnet/collections.json b/mainnet/collections.json index cc64a7f..2ab5a19 100644 --- a/mainnet/collections.json +++ b/mainnet/collections.json @@ -12,5 +12,12 @@ "power": 2, "name": "BTCUSD", "tolerance": 500000 + }, + { + "jobIDs": [17, 18, 19, 20], + "aggregationMethod": 2, + "power": 5, + "name": "USDCUSD", + "tolerance": 500000 } ] diff --git a/mainnet/jobs.json b/mainnet/jobs.json index d041884..26f7ade 100644 --- a/mainnet/jobs.json +++ b/mainnet/jobs.json @@ -126,5 +126,37 @@ "name": "btcusd_cryptocompare", "selector": "[USD]", "url": "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD" + }, + { + "weight": 1, + "power": 6, + "selectorType": 0, + "name": "usdcusd_stablecoin_stats", + "selector": "USDC.kraken.USDC_USD.price", + "url": "https://stablecoinstats.com/api/tickers" + }, + { + "weight": 1, + "power": 5, + "selectorType": 0, + "name": "usdcusd_gemini", + "selector": "last", + "url": "https://api.gemini.com/v1/pubticker/usdcusd" + }, + { + "weight": 1, + "power": 5, + "selectorType": 0, + "name": "usdcusd_coinbase", + "selector": "data.amount", + "url": "https://api.coinbase.com/v2/prices/USDC-USD/spot" + }, + { + "weight": 1, + "power": 5, + "selectorType": 0, + "name": "usdcusd_kraken", + "selector": "result.USDCUSD.c[0]", + "url": "https://api.kraken.com/0/public/Ticker?pair=USDCUSD" } ] From 009d666bb8c680fa47d9804adc888c6506d91103 Mon Sep 17 00:00:00 2001 From: yohanelly95 Date: Thu, 4 Jan 2024 18:50:32 +0530 Subject: [PATCH 3/4] chore: add bitstamp --- mainnet/collections.json | 2 +- mainnet/jobs.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mainnet/collections.json b/mainnet/collections.json index 2ab5a19..6175d35 100644 --- a/mainnet/collections.json +++ b/mainnet/collections.json @@ -14,7 +14,7 @@ "tolerance": 500000 }, { - "jobIDs": [17, 18, 19, 20], + "jobIDs": [17, 18, 19, 20, 21], "aggregationMethod": 2, "power": 5, "name": "USDCUSD", diff --git a/mainnet/jobs.json b/mainnet/jobs.json index 26f7ade..3dfa7d7 100644 --- a/mainnet/jobs.json +++ b/mainnet/jobs.json @@ -158,5 +158,13 @@ "name": "usdcusd_kraken", "selector": "result.USDCUSD.c[0]", "url": "https://api.kraken.com/0/public/Ticker?pair=USDCUSD" + }, + { + "weight": 1, + "power": 5, + "selectorType": 0, + "name": "usdcusd_bitstamp", + "selector": "last", + "url": "https://www.bitstamp.net/api/v2/ticker/usdcusd/" } ] From 2f96399658232ccad3c215d740764a67ca939029 Mon Sep 17 00:00:00 2001 From: yohanelly95 Date: Tue, 21 May 2024 11:22:25 +0530 Subject: [PATCH 4/4] fix: power of stbalecoinstats --- mainnet/jobs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainnet/jobs.json b/mainnet/jobs.json index 3dfa7d7..a9413b4 100644 --- a/mainnet/jobs.json +++ b/mainnet/jobs.json @@ -129,7 +129,7 @@ }, { "weight": 1, - "power": 6, + "power": 5, "selectorType": 0, "name": "usdcusd_stablecoin_stats", "selector": "USDC.kraken.USDC_USD.price",