Documentation ¶
Index ¶
Constants ¶
View Source
const ( Bech32MainPrefix = "sgn" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32MainPrefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic GrpcTimeOut = 10 * time.Second )
View Source
const ( FlagEthGateway = "eth.gateway" FlagEthContractCelr = "eth.contract_address.celr" FlagEthContractStaking = "eth.contract_address.staking" FlagEthContractSgn = "eth.contract_address.sgn" FlagEthContractStakingReward = "eth.contract_address.staking_reward" FlagEthContractViewer = "eth.contract_address.viewer" FlagEthContractGovern = "eth.contract_address.govern" FlagEthSignerKeystore = "eth.signer_keystore" FlagEthSignerPassphrase = "eth.signer_passphrase" FlagEthValidatorAddress = "eth.validator_address" FlagEthPollInterval = "eth.poll_interval" FlagEthBlockDelay = "eth.block_delay" FlagEthChainId = "eth.chain_id" FlagEthMonitorStartBlock = "eth.monitor_start_block" FlagEthMaxBlockDelta = "eth.max_block_delta" // Legacy gas price flags FlagEthMaxGasPriceGwei = "eth.max_gas_price_gwei" FlagEthMinGasPriceGwei = "eth.min_gas_price_gwei" FlagEthAddGasPriceGwei = "eth.add_gas_price_gwei" FlagEthForceGasPriceGwei = "eth.force_gas_price_gwei" // EIP-1559 gas price flags FlagEthMaxFeePerGasGwei = "eth.max_fee_per_gas_gwei" FlagEthMaxPriorityFeePerGasGwei = "eth.max_priority_fee_per_gas_gwei" FlagSgnValidatorAccount = "sgnd.validator_account" FlagSgnTransactors = "sgnd.transactors" FlagSgnPassphrase = "sgnd.passphrase" FlagSgnChainId = "sgnd.chain_id" FlagSgnNodeURI = "sgnd.node_uri" FlagSgnNodeGrpcUrl = "sgnd.node_grpc_url" FlagSgnBaseGasPrice = "sgnd.base_gas_price" FlagSgnPriceUpdateUrl = "sgnd.price_update_url" FlagSgnKeyringBackend = "sgnd.keyring_backend" FlagSgnGasAdjustment = "sgnd.gas_adjustment" FlagSgnLivenessReportEndpoint = "sgnd.liveness_report_endpoint" FlagSgnConsensusLogReportEndpoint = "sgnd.consensus_log_report_endpoint" FlagSgnWitnessMode = "sgnd.witness_mode" FlagSgnCheckIntervalSlash = "sgnd.check_interval.slash" FlagSgnCheckIntervalCbridge = "sgnd.check_interval.cbridge" FlagSgnCheckIntervalVerifier = "sgnd.check_interval.verifier" FlagSgnCheckIntervalCbrPrice = "sgnd.check_interval.cbr_price" FlagSgnCheckIntervalMsgRefund = "sgnd.check_interval.msg_refund" FlagSgnCheckIntervalClearMsg = "sgnd.check_interval.clear_msg" FlagSgnCheckIntervalContracts = "sgnd.check_interval.contracts" FlagSgnCheckIntervalVeToken = "sgnd.check_interval.ve_token" FlagSgnCheckIntervalSigWaitBlk = "sgnd.check_interval.sig_wait_blk" FlagSgnCheckIntervalNewSyncerWaitBlk = "sgnd.check_interval.new_syncer_wait_blk" FlagSgnCheckIntervalNewSyncerMaxDuration = "sgnd.check_interval.new_syncer_max_duration" FlagConsensusTimeoutCommit = "consensus.timeout_commit" FlagConsensusAVLCacheSize = "consensus.avl_cache_size" FlagLogLevel = "log.level" FlagLogColor = "log.color" FlagToStartGateway = "gateway.start_gateway" FlagGatewayDbUrl = "gateway.db_url" FlagGatewayAwsS3Region = "gateway.aws.s3.region" FlagGatewayAwsS3Bucket = "gateway.aws.s3.bucket" FlagGatewayAwsKey = "gateway.aws.key" FlagGatewayAwsSecret = "gateway.aws.secret" FlagGatewayIncentiveRewardsKeystore = "gateway.incentive_rewards.keystore" FlagGatewayIncentiveRewardsPassphrase = "gateway.incentive_rewards.passphrase" FlagGatewayIncentiveRewardsBscChainId = "gateway.incentive_rewards.bsc_chain_id" FlagGatewayIncentiveRewardsBscContractAddress = "gateway.incentive_rewards.bsc_contract_address" FlagMultiChain = "multichain" // array of toml tables, each table represents one chain, see common/multichain.go for details // because on flow chain, one account can have multiple pubkeys, we have to know which account and pubkey index to use for sending tx // validators should use separate tool to add pubkey to their own flow account and record the index FlagFlowAccount = "nonevm.flow_account" // hex of 8 bytes address, w/ 0x prefix, may not have leading 00, eg. 0x01 is valid FlagFlowPubkeyIndex = "nonevm.flow_pubkey_idx" // index of pubkey to use. this pubkey's weight must >= 1000 FlagBlocklistEthAddrs = "blocklist.eth_addrs" FlagBridgeDefaultCheckInterval = "bridge.default_check_interval" FlagInboundLiquidityLimit = "inbound_liquidity_limit" )
View Source
const ( DefaultSgnGasAdjustment = 1.5 DefaultSgnGasLimit = 300000 DefaultSgnGetAllActiveMessageLimit = 50 )
Variables ¶
This section is empty.
Functions ¶
func RobustQueryWithData ¶
func TsSecToTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.