Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
dcn::sepolia::SepoliaBackend Class Referencefinal

#include <sepolia_backend.hpp>

Inheritance diagram for dcn::sepolia::SepoliaBackend:
dcn::chain::IChain

Public Member Functions

 SepoliaBackend (BackendConfig cfg)
 
const BackendConfigconfig () const noexcept
 
std::expected< evmc::address, chain::DeployErrorsignerAddress () const override
 
std::expected< std::string, chain::DeployErrorsendCreateTransaction (const std::vector< std::uint8_t > &init_code, std::optional< std::uint64_t > gas_limit=std::nullopt, std::uint64_t value_wei=0) const override
 
std::expected< chain::DeployReceipt, chain::DeployErrordeployContract (const std::vector< std::uint8_t > &init_code, std::optional< std::uint64_t > gas_limit=std::nullopt, std::uint64_t value_wei=0) const override
 
- Public Member Functions inherited from dcn::chain::IChain
virtual ~IChain ()=default
 

Constructor & Destructor Documentation

◆ SepoliaBackend()

dcn::sepolia::SepoliaBackend::SepoliaBackend ( BackendConfig  cfg)
explicit

Member Function Documentation

◆ config()

const BackendConfig & dcn::sepolia::SepoliaBackend::config ( ) const
noexcept

◆ deployContract()

std::expected< chain::DeployReceipt, chain::DeployError > dcn::sepolia::SepoliaBackend::deployContract ( const std::vector< std::uint8_t > &  init_code,
std::optional< std::uint64_t >  gas_limit = std::nullopt,
std::uint64_t  value_wei = 0 
) const
overridevirtual

Implements dcn::chain::IChain.

◆ sendCreateTransaction()

std::expected< std::string, chain::DeployError > dcn::sepolia::SepoliaBackend::sendCreateTransaction ( const std::vector< std::uint8_t > &  init_code,
std::optional< std::uint64_t >  gas_limit = std::nullopt,
std::uint64_t  value_wei = 0 
) const
overridevirtual

Implements dcn::chain::IChain.

◆ signerAddress()

std::expected< evmc::address, chain::DeployError > dcn::sepolia::SepoliaBackend::signerAddress ( ) const
overridevirtual

Implements dcn::chain::IChain.


The documentation for this class was generated from the following files: