package
0.0.0-20220308083446-f387b464c92d
Repository: https://github.com/weijun-sh/gethscan-server.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CheckConfig check config.
No description provided by the author
EnableCheckBlockFork enable check block fork.
GetAPIPort get api service port.
GetBlockChainConfig get blockchain config.
GetChainRpc get chain rpc.
GetChainSupport get chain support.
GetConfig get bridge config.
GetDataDir get data dir.
GetExtraConfig get extra config.
GetIdentifier get identifier (to distiguish in dcrm accept).
GetMaxParseRegisteredLimit get MaxParseRegisteredLimit.
GetMongodbConfig get mongodb config.
GetOracleConfig get oracle config.
GetReplaceIdentifier get identifier (to distiguish in dcrm accept).
GetScanConfig get scan config.
GetServerConfig get server config.
HasAdmin has admin.
No description provided by the author
IsAdmin is admin.
IsDcrmEnabled is dcrm enabled (for dcrm sign).
IsDcrmInitiator is initiator of dcrm sign.
IsDebugMode is debug mode, add more debugging log infos.
IsNullSwapoutNativeMemo set no unlock memo in building swapout tx.
IsSwapoutToStringAddress swapout to string address (eg.
LoadConfig load config.
LoadConfig load config.
LoadScanTokensConfigInDir load tokens config.
MustRegisterAccount flag.
ReloadConfig reload config.
SetConfig set bridge config.
SetDataDir set data dir.
SetScanTokensConfig set tokens config.
SetTokenPairsDir set token pairs directory.
VersionWithCommit add git commit and data to version.
# Constants
swap tx types.
swap tx types.
swap tx types.
swap tx types.
swap tx types.
swapout to string address (eg.
Major version component of the current release.
Version metadata to append to the version string.
Minor version component of the current release.
Patch version component of the current release.
# Variables
IsSwapServer if true then it's swap server, otherwise it's swap oracle.
ServerAPIAddress server api address.
Version holds the textual version string.
VersionWithMeta holds the textual version string including the metadata.
# Structs
APIServerConfig api service config.
No description provided by the author
BridgeConfig config items (decode from toml file).
DcrmConfig dcrm related config.
DcrmNodeConfig dcrm node config.
ExtraConfig extra config.
MongoDBConfig mongodb config.
OracleConfig oracle config.
ScanConfig scan config.
No description provided by the author
ServerConfig swap server config.
TokenConfig token config.