Skip to content

Commit 8a8cb1b

Browse files
authored
chore(api-reference)-add-berachain (#2345)
* chore(api-reference)-add-berachain * update
1 parent 23bea8b commit 8a8cb1b

File tree

10 files changed

+373
-23
lines changed

10 files changed

+373
-23
lines changed

apps/api-reference/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"react-dom": "catalog:",
4141
"react-markdown": "^9.0.1",
4242
"shiki": "^1.7.0",
43-
"viem": "^2.21.32",
43+
"viem": "^2.22.23",
4444
"wagmi": "^2.10.4",
4545
"zod": "^3.23.8"
4646
},

apps/api-reference/src/evm-networks.ts

+6
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,12 @@ export const NETWORK_INFO = {
887887
isMainnet: false,
888888
contractAddress: "0x96124d1F6E44FfDf1fb5D6d74BB2DE1B7Fbe7376",
889889
},
890+
[80_094]: {
891+
name: "berachain_mainnet",
892+
rpcUrl: "https://rpc.berachain.com",
893+
isMainnet: true,
894+
contractAddress: "0x2880aB155794e7179c9eE2e38200202908C17B43",
895+
},
890896
} satisfies Record<number, NetworkInfo>;
891897

892898
export const NETWORK_IDS = Object.keys(NETWORK_INFO).map((key) =>

contract_manager/store/chains/EvmChains.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@
854854
rpcUrl: https://rpc.monad-testnet.category.xyz/rpc/nSyzM1wlIgaALWzbh3oIg5rW65AC6yjqrslOE8wb
855855
networkId: 10143
856856
type: EvmChain
857-
- id: rabechain_mainnet
857+
- id: berachain_mainnet
858858
mainnet: true
859859
networkId: 80094
860860
rpcUrl: https://fluent-thrilling-scion.furtim-network.quiknode.pro/$ENV_RABECHAIN_API_KEY

contract_manager/store/contracts/EvmEntropyContracts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@
142142
- chain: monad_testnet
143143
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
144144
type: EvmEntropyContract
145-
- chain: rabechain_mainnet
145+
- chain: berachain_mainnet
146146
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
147147
type: EvmEntropyContract

contract_manager/store/contracts/EvmPriceFeedContracts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,6 @@
475475
- chain: monad_testnet
476476
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
477477
type: EvmPriceFeedContract
478-
- chain: rabechain_mainnet
478+
- chain: berachain_mainnet
479479
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
480480
type: EvmPriceFeedContract

contract_manager/store/contracts/EvmWormholeContracts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,6 @@
469469
- chain: monad_testnet
470470
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
471471
type: EvmWormholeContract
472-
- chain: rabechain_mainnet
472+
- chain: berachain_mainnet
473473
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
474474
type: EvmWormholeContract

governance/xc_admin/packages/xc_admin_common/src/chains.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const RECEIVER_CHAINS = {
106106
eventum_mainnet: 60073,
107107
threat_level_midnight: 60074,
108108
just_breathe: 60075,
109-
rabechain_mainnet: 60076,
109+
berachain_mainnet: 60076,
110110

111111
// Testnets as a separate chain ids (to use stable data sources and governance for them)
112112
injective_testnet: 60013,

pnpm-lock.yaml

+115-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "_pyth",
7+
"type": "address"
8+
},
9+
{
10+
"internalType": "bytes32",
11+
"name": "_priceId",
12+
"type": "bytes32"
13+
}
14+
],
15+
"stateMutability": "nonpayable",
16+
"type": "constructor"
17+
},
18+
{
19+
"inputs": [],
20+
"name": "decimals",
21+
"outputs": [
22+
{
23+
"internalType": "uint8",
24+
"name": "",
25+
"type": "uint8"
26+
}
27+
],
28+
"stateMutability": "view",
29+
"type": "function"
30+
},
31+
{
32+
"inputs": [],
33+
"name": "description",
34+
"outputs": [
35+
{
36+
"internalType": "string",
37+
"name": "",
38+
"type": "string"
39+
}
40+
],
41+
"stateMutability": "pure",
42+
"type": "function"
43+
},
44+
{
45+
"inputs": [
46+
{
47+
"internalType": "uint256",
48+
"name": "",
49+
"type": "uint256"
50+
}
51+
],
52+
"name": "getAnswer",
53+
"outputs": [
54+
{
55+
"internalType": "int256",
56+
"name": "",
57+
"type": "int256"
58+
}
59+
],
60+
"stateMutability": "view",
61+
"type": "function"
62+
},
63+
{
64+
"inputs": [
65+
{
66+
"internalType": "uint80",
67+
"name": "_roundId",
68+
"type": "uint80"
69+
}
70+
],
71+
"name": "getRoundData",
72+
"outputs": [
73+
{
74+
"internalType": "uint80",
75+
"name": "roundId",
76+
"type": "uint80"
77+
},
78+
{
79+
"internalType": "int256",
80+
"name": "answer",
81+
"type": "int256"
82+
},
83+
{
84+
"internalType": "uint256",
85+
"name": "startedAt",
86+
"type": "uint256"
87+
},
88+
{
89+
"internalType": "uint256",
90+
"name": "updatedAt",
91+
"type": "uint256"
92+
},
93+
{
94+
"internalType": "uint80",
95+
"name": "answeredInRound",
96+
"type": "uint80"
97+
}
98+
],
99+
"stateMutability": "view",
100+
"type": "function"
101+
},
102+
{
103+
"inputs": [
104+
{
105+
"internalType": "uint256",
106+
"name": "",
107+
"type": "uint256"
108+
}
109+
],
110+
"name": "getTimestamp",
111+
"outputs": [
112+
{
113+
"internalType": "uint256",
114+
"name": "",
115+
"type": "uint256"
116+
}
117+
],
118+
"stateMutability": "view",
119+
"type": "function"
120+
},
121+
{
122+
"inputs": [],
123+
"name": "latestAnswer",
124+
"outputs": [
125+
{
126+
"internalType": "int256",
127+
"name": "",
128+
"type": "int256"
129+
}
130+
],
131+
"stateMutability": "view",
132+
"type": "function"
133+
},
134+
{
135+
"inputs": [],
136+
"name": "latestRound",
137+
"outputs": [
138+
{
139+
"internalType": "uint256",
140+
"name": "",
141+
"type": "uint256"
142+
}
143+
],
144+
"stateMutability": "view",
145+
"type": "function"
146+
},
147+
{
148+
"inputs": [],
149+
"name": "latestRoundData",
150+
"outputs": [
151+
{
152+
"internalType": "uint80",
153+
"name": "roundId",
154+
"type": "uint80"
155+
},
156+
{
157+
"internalType": "int256",
158+
"name": "answer",
159+
"type": "int256"
160+
},
161+
{
162+
"internalType": "uint256",
163+
"name": "startedAt",
164+
"type": "uint256"
165+
},
166+
{
167+
"internalType": "uint256",
168+
"name": "updatedAt",
169+
"type": "uint256"
170+
},
171+
{
172+
"internalType": "uint80",
173+
"name": "answeredInRound",
174+
"type": "uint80"
175+
}
176+
],
177+
"stateMutability": "view",
178+
"type": "function"
179+
},
180+
{
181+
"inputs": [],
182+
"name": "latestTimestamp",
183+
"outputs": [
184+
{
185+
"internalType": "uint256",
186+
"name": "",
187+
"type": "uint256"
188+
}
189+
],
190+
"stateMutability": "view",
191+
"type": "function"
192+
},
193+
{
194+
"inputs": [],
195+
"name": "priceId",
196+
"outputs": [
197+
{
198+
"internalType": "bytes32",
199+
"name": "",
200+
"type": "bytes32"
201+
}
202+
],
203+
"stateMutability": "view",
204+
"type": "function"
205+
},
206+
{
207+
"inputs": [],
208+
"name": "pyth",
209+
"outputs": [
210+
{
211+
"internalType": "contract IPyth",
212+
"name": "",
213+
"type": "address"
214+
}
215+
],
216+
"stateMutability": "view",
217+
"type": "function"
218+
},
219+
{
220+
"inputs": [
221+
{
222+
"internalType": "bytes[]",
223+
"name": "priceUpdateData",
224+
"type": "bytes[]"
225+
}
226+
],
227+
"name": "updateFeeds",
228+
"outputs": [],
229+
"stateMutability": "payable",
230+
"type": "function"
231+
},
232+
{
233+
"inputs": [],
234+
"name": "version",
235+
"outputs": [
236+
{
237+
"internalType": "uint256",
238+
"name": "",
239+
"type": "uint256"
240+
}
241+
],
242+
"stateMutability": "pure",
243+
"type": "function"
244+
}
245+
]

target_chains/ethereum/sdk/solidity/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"directory": "target_chains/ethereum/sdk/solidity"
99
},
1010
"scripts": {
11-
"build:abis": "generate-abis IPyth IPythEvents AbstractPyth MockPyth PythErrors PythUtils",
11+
"build:abis": "generate-abis IPyth IPythEvents AbstractPyth MockPyth PythErrors PythUtils PythAggregatorV3",
1212
"build:bin:": "solcjs --bin MockPyth.sol --base-path . -o build/",
1313
"format": "prettier --write .",
1414
"test": "git diff --exit-code abis"

0 commit comments

Comments
 (0)