Open antiyro opened 1 year ago
So it should be here we call read and write
This is almost OK. There is an issue with last_published_state
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!
Description:
Establish a
BitcoinClient
struct within thebitcoin
module to facilitate interactions with the Bitcoin network. This structure must conform to theDaClient
trait.Tasks:
Define the
BitcoinClient
Struct:Fields:
rpc_client
: An instance or connection to a Bitcoin RPC client. This field will allow direct interactions with a Bitcoin node.network_type
: Specifies the Bitcoin network (mainnet, testnet, regtest).mode
: Specifies the mode of data availability (e.g.,DaMode::Sovereign
).Example Structure:
Implement the
DaClient
Trait forBitcoinClient
:Method Skeletons:
DaClient
trait, define the methods thatBitcoinClient
will need to implement.unimplemented!()
to be filled in later.Example Skeleton:
Implement
DaClient
Methods with Bitcoin-da Functionality:get_mode
:last_published_state
:publish_state_diff
:Additional Considerations: