Skip to content

chore(api-reference)-add-berachain #2345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"react-dom": "catalog:",
"react-markdown": "^9.0.1",
"shiki": "^1.7.0",
"viem": "^2.21.32",
"viem": "^2.22.23",
"wagmi": "^2.10.4",
"zod": "^3.23.8"
},
Expand Down
6 changes: 6 additions & 0 deletions apps/api-reference/src/evm-networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,12 @@ export const NETWORK_INFO = {
isMainnet: false,
contractAddress: "0x96124d1F6E44FfDf1fb5D6d74BB2DE1B7Fbe7376",
},
[80_094]: {
name: "berachain_mainnet",
rpcUrl: "https://rpc.berachain.com",
isMainnet: true,
contractAddress: "0x2880aB155794e7179c9eE2e38200202908C17B43",
},
} satisfies Record<number, NetworkInfo>;

export const NETWORK_IDS = Object.keys(NETWORK_INFO).map((key) =>
Expand Down
2 changes: 1 addition & 1 deletion contract_manager/store/chains/EvmChains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@
rpcUrl: https://rpc.monad-testnet.category.xyz/rpc/nSyzM1wlIgaALWzbh3oIg5rW65AC6yjqrslOE8wb
networkId: 10143
type: EvmChain
- id: rabechain_mainnet
- id: berachain_mainnet
mainnet: true
networkId: 80094
rpcUrl: https://fluent-thrilling-scion.furtim-network.quiknode.pro/$ENV_RABECHAIN_API_KEY
Expand Down
2 changes: 1 addition & 1 deletion contract_manager/store/contracts/EvmEntropyContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@
- chain: monad_testnet
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
type: EvmEntropyContract
- chain: rabechain_mainnet
- chain: berachain_mainnet
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
type: EvmEntropyContract
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,6 @@
- chain: monad_testnet
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
- chain: rabechain_mainnet
- chain: berachain_mainnet
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
2 changes: 1 addition & 1 deletion contract_manager/store/contracts/EvmWormholeContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,6 @@
- chain: monad_testnet
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
- chain: rabechain_mainnet
- chain: berachain_mainnet
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
2 changes: 1 addition & 1 deletion governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const RECEIVER_CHAINS = {
eventum_mainnet: 60073,
threat_level_midnight: 60074,
just_breathe: 60075,
rabechain_mainnet: 60076,
berachain_mainnet: 60076,

// Testnets as a separate chain ids (to use stable data sources and governance for them)
injective_testnet: 60013,
Expand Down
131 changes: 115 additions & 16 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

245 changes: 245 additions & 0 deletions target_chains/ethereum/sdk/solidity/abis/PythAggregatorV3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_pyth",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_priceId",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "description",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "getAnswer",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint80",
"name": "_roundId",
"type": "uint80"
}
],
"name": "getRoundData",
"outputs": [
{
"internalType": "uint80",
"name": "roundId",
"type": "uint80"
},
{
"internalType": "int256",
"name": "answer",
"type": "int256"
},
{
"internalType": "uint256",
"name": "startedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
},
{
"internalType": "uint80",
"name": "answeredInRound",
"type": "uint80"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "getTimestamp",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestAnswer",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestRound",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestRoundData",
"outputs": [
{
"internalType": "uint80",
"name": "roundId",
"type": "uint80"
},
{
"internalType": "int256",
"name": "answer",
"type": "int256"
},
{
"internalType": "uint256",
"name": "startedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
},
{
"internalType": "uint80",
"name": "answeredInRound",
"type": "uint80"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "latestTimestamp",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "priceId",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pyth",
"outputs": [
{
"internalType": "contract IPyth",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes[]",
"name": "priceUpdateData",
"type": "bytes[]"
}
],
"name": "updateFeeds",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
}
]
2 changes: 1 addition & 1 deletion target_chains/ethereum/sdk/solidity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"directory": "target_chains/ethereum/sdk/solidity"
},
"scripts": {
"build:abis": "generate-abis IPyth IPythEvents AbstractPyth MockPyth PythErrors PythUtils",
"build:abis": "generate-abis IPyth IPythEvents AbstractPyth MockPyth PythErrors PythUtils PythAggregatorV3",
"build:bin:": "solcjs --bin MockPyth.sol --base-path . -o build/",
"format": "prettier --write .",
"test": "git diff --exit-code abis"
Expand Down
Loading