Closed zakir-code closed 1 week ago
This pull request introduces three new smart contracts: BridgeFeeOracle
, BridgeFeeQuote
, and IBridgeFee
, along with a test contract BridgeFeeQuoteTest
and a TypeScript test suite. The BridgeFeeOracle
contract manages oracle statuses and provides functionalities for blacklisting and setting default oracles. The BridgeFeeQuote
contract handles fee quotes, enabling registration of chains and tokens, and quote management. The IBridgeFee
interface defines the structure and functions for interacting with these contracts. The changes establish a comprehensive framework for managing oracles and fee quotes in a blockchain bridge context.
File Path | Change Summary |
---|---|
solidity/contracts/bridge/BridgeFeeOracle.sol |
Added BridgeFeeOracle contract with functionalities for oracle management and upgradeability. |
solidity/contracts/bridge/BridgeFeeQuote.sol |
Added BridgeFeeQuote contract for managing fee quotes and related functionalities. |
solidity/contracts/bridge/IBridgeFee.sol |
Introduced IBridgeFeeQuote and IBridgeFeeOracle interfaces with relevant functions. |
solidity/contracts/test/BridgeFeeQuoteTest.sol |
Created BridgeFeeQuoteTest contract for managing oracle states and their statuses. |
solidity/test/bridge_fee_quote.ts |
Added a test suite for BridgeFeeQuote , covering various functionalities and helper methods. |
BridgeFeeOracle
contract's management of oracles in a cross-chain context."In the land of code where the oracles play,
New contracts emerge, brightening the day.
With fees and quotes, oh what a sight,
Managing oracles, everything feels right!
In tests we trust, with each little hop,
A bridge to the future, we never will stop!" 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
BridgeFeeOracle
andBridgeFeeQuote
smart contracts for managing oracle activity and fee quotes in a blockchain bridge context.Bug Fixes
Tests
BridgeFeeQuote
contract, ensuring robust functionality and reliability.