account/BridgeEventTypes.hpp¶
Lightweight bridge event types and signature constants. No heavy dependencies — safe to include from tests and watchers. More...
Namespaces¶
| Name |
|---|
| sgns |
Classes¶
| Name | |
|---|---|
| struct | sgns::BurnEventParams Parsed burn event parameters shared between real-time watch (OnWatchEvent) and startup catch-up scan (PerformStartupCatchupScan). |
Attributes¶
| Name | |
|---|---|
| constexpr std::string_view | kBridgeSourceBurnedSig Canonical Solidity event signatures for bridge events. Single source of truth — shared by watch registration, catch-up scan, and RPC endpoint validation. |
| constexpr std::string_view | kBridgeOutInitiatedSig |
Detailed Description¶
Lightweight bridge event types and signature constants. No heavy dependencies — safe to include from tests and watchers.
Date: 2026-06-22
Attributes Documentation¶
variable kBridgeSourceBurnedSig¶
constexpr std::string_view kBridgeSourceBurnedSig =
"BridgeSourceBurned(address,uint256,uint256,uint256,uint256,bytes)";
Canonical Solidity event signatures for bridge events. Single source of truth — shared by watch registration, catch-up scan, and RPC endpoint validation.
Note: The old signature with 5 parameters it not supported as it was wrong.
variable kBridgeOutInitiatedSig¶
constexpr std::string_view kBridgeOutInitiatedSig =
"BridgeOutInitiated(address,uint256,uint256,uint256,uint256,bytes32,bool)";
Source code¶
#ifndef SGNS_BRIDGE_EVENT_TYPES_HPP
#define SGNS_BRIDGE_EVENT_TYPES_HPP
#include <cstdint>
#include <string>
#include <string_view>
#include "account/TokenID.hpp"
namespace sgns
{
struct BurnEventParams
{
TokenID token_id;
uint64_t amount;
std::string destination;
};
inline constexpr std::string_view kBridgeSourceBurnedSig =
"BridgeSourceBurned(address,uint256,uint256,uint256,uint256,bytes)";
inline constexpr std::string_view kBridgeOutInitiatedSig =
"BridgeOutInitiated(address,uint256,uint256,uint256,uint256,bytes32,bool)";
} // namespace sgns
#endif // SGNS_BRIDGE_EVENT_TYPES_HPP
Updated on 2026-08-11 at 21:18:05 +0000