create_trustful_safeless_hopr_blokli_connector

Function create_trustful_safeless_hopr_blokli_connector 

Source
pub async fn create_trustful_safeless_hopr_blokli_connector<C>(
    chain_key: &ChainKeypair,
    cfg: BlockchainConnectorConfig,
    client: C,
) -> Result<HoprBlockchainBasicConnector<C>, ConnectorError>
Expand description

Convenience function to create HoprBlockchainConnector with contract addresses retrieved from the given client.

The transactions generated using this Connector are simply signed using the chain_key EOA.

This instantiation explicitly trusts the contract address information retrieved from the blokli_client::BlokliClient. If you wish to provide your own deployment information, use the create_trustless_safeless_hopr_blokli_connector function.

The returned instance uses TempDbBackend and BasicPayloadGenerator.