Skip to content

Commit af4c810

Browse files
committed
all evm stable feeds
1 parent 92929ec commit af4c810

File tree

6 files changed

+1072
-49
lines changed

6 files changed

+1072
-49
lines changed

deps.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//go:build client
22
// +build client
33

4-
// This is the canonical way to enforce dependency inclusion in go.mod for tools
5-
// that are not directly involved in the build process.
6-
// See
74
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
85

96
package client

feeds/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ More information about the Pyth price feeds can be found [here](https://docs.pyt
55
## Current Supported Feed Ecosystems
66

77
- EVM Stable
8+
- All are supported.
89
- EVM Beta
10+
- If you want to add more feeds, please follow the pattern in evm_stable.go.

feeds/evm_beta.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package feeds
2+
3+
// Pyth EVM Beta Price Feeds, reference: https://pyth.network/developers/price-feed-ids
4+
//
5+
// NOTE: To add more feeds, please follow the pattern in evm_stable.go.
6+
7+
var EVMBetaFeedsToIDs = map[string]string{
8+
"BTC/USD": "f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b",
9+
"ETH/USD": "ca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6",
10+
"ATOM/USD": "61226d39beea19d334f17c2febce27e12646d84675924ebb02b9cdaea68727e3",
11+
"TIA/USD": "30998099c161c4f04b48569485cfab66256f36006810fe787f40fbc96e263438",
12+
"USDC/USD": "41f3625971ca2ed2263e78573fe5ce23e13d2558ed3f2e47ab0f84fb9e7ae722",
13+
// ...
14+
}
15+
16+
var EVMBetaIDsToFeeds = map[string]string{
17+
"f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b": "BTC/USD",
18+
"ca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6": "ETH/USD",
19+
"61226d39beea19d334f17c2febce27e12646d84675924ebb02b9cdaea68727e3": "ATOM/USD",
20+
"30998099c161c4f04b48569485cfab66256f36006810fe787f40fbc96e263438": "TIA/USD",
21+
"41f3625971ca2ed2263e78573fe5ce23e13d2558ed3f2e47ab0f84fb9e7ae722": "USDC/USD",
22+
// ...
23+
}

0 commit comments

Comments
 (0)