Documentation ¶
Index ¶
Constants ¶
View Source
const ( ETH_MONITOR_INTERVAL = 3 * time.Second ETH_USEFUL_BLOCK_NUM = 6 )
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Types ¶
type DidConf ¶
type DidConf struct { Chain string `json:"chain"` Wallet string `json:"wallet"` Password string `json:"password"` URL string `json:"url"` DID string `json:"did"` DIDContract string `json:"DIDContract"` CredentialExpirationDays int `json:"CredentialExpirationDays"` Gasprice uint64 `json:"gasprice"` Gaslimit uint64 `json:"gaslimit"` Commit bool `json:"commit"` }
type EmailConfig ¶
type GraphConfig ¶
type OntloginConfig ¶
type OntloginConfig struct { Chain []string `json:"chain"` Alg []string `json:"alg"` ServerInfo *modules.ServerInfo `json:"serverInfo"` }
type SnapShotAssetsConfig ¶
type SysConfig ¶
type SysConfig struct { Chain string `json:"chain"` ChainRpc string `json:"chain_rpc"` SysDs string `json:"sys_data_service"` FilePath string `json:"file_path"` AvatarFilePath string `json:"avatar_file_path"` WasmExecutor WasmExecutor `json:"wasm_executor"` Db *DB `json:"db"` DidConf []*DidConf `json:"did_config"` OntloginConf *OntloginConfig `json:"ontlogin_config"` CallerAddrs []string `json:"outer_task_caller"` SigAuth bool `json:"sig_auth"` MNftBlock int `json:"m_nft_block"` METHBlock int `json:"m_eth_block"` EmailConfig *EmailConfig `json:"mail_config"` SnapShotAssetsConfig *SnapShotAssetsConfig `json:"snapshot_assets_config"` BatchTaskCount int `json:"batch_task_count"` TimeOutSeconds int `json:"task_timeout_seconds"` ETHWallet *ETHWallet `json:"eth_wallet"` NFTConfig *NFTConfig `json:"nft_config"` GraphConfig *GraphConfig `json:"graph_config"` NFTTimeOutMinutes int `json:"nft_timeout_minutes"` }
var GlobalConfig *SysConfig
Click to show internal directories.
Click to hide internal directories.