account/ChainContractPair.hpp¶
Shared struct linking a chain name to its bridge contract address and numeric chain ID. More...
Namespaces¶
| Name |
|---|
| sgns |
Classes¶
| Name | |
|---|---|
| struct | sgns::ChainContractPair Represents a chain name and its GNUS bridge contract address. |
Detailed Description¶
Shared struct linking a chain name to its bridge contract address and numeric chain ID.
Date: 2025-06-17 SuperGenius
This is the shared leaf type consumed by ChainRpcEndpointProvider (as observer payload) and by BridgeRelayer (as a Start() parameter). Extracting it into its own header breaks the include cycle that would otherwise exist between those two headers when BridgeRelayer inherits IBridgeInitObserver from the provider header.
Source code¶
#ifndef _CHAIN_CONTRACT_PAIR_HPP_
#define _CHAIN_CONTRACT_PAIR_HPP_
#include <cstdint>
#include <string>
namespace sgns
{
struct ChainContractPair
{
std::string chain_name;
std::string contract_address;
uint64_t chain_id = 0;
};
} // namespace sgns
#endif
Updated on 2026-06-28 at 18:54:57 -0700