constant

package
v0.0.0-...-6ee64b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ZetaBlockTime is the block time of the ZetaChain network
	// It's a rough estimate that can be used in non-critical path to estimate the time of a block
	ZetaBlockTime = 6000 * time.Millisecond

	// DonationMessage is the message for donation transactions
	// Transaction sent to the TSS or ERC20 Custody address containing this message are considered as a donation
	DonationMessage = "I am rich!"

	// CmdWhitelistERC20 is used for CCTX of type cmd to give the instruction to the TSS to whitelist an ERC20 on an exeternal chain
	CmdWhitelistERC20 = "cmd_whitelist_erc20"

	// CmdMigrateERC20CustodyFunds is used for CCTX of type cmd to give the instruction to the TSS to transfer its funds on a new address
	CmdMigrateERC20CustodyFunds = "cmd_migrate_erc20_custody_funds"

	// CmdUpdateERC20CustodyPauseStatus is used for CCTX of type cmd to give the instruction to the TSS to update the pause status of the ERC20 custody contract
	CmdUpdateERC20CustodyPauseStatus = "cmd_update_erc20_custody_pause_status"

	// CmdMigrateTssFunds is used for CCTX of type cmd to give the instruction to the TSS to transfer its funds on a new address
	CmdMigrateTssFunds = "cmd_migrate_tss_funds"

	// BTCWithdrawalDustAmount is the minimum satoshis that can be withdrawn from zEVM to avoid outbound dust output
	// The Bitcoin protocol sets a minimum output value to 546 satoshis (dust limit) but we set it to 1000 satoshis
	BTCWithdrawalDustAmount = 1000

	// SolanaWalletRentExempt is the minimum balance for a Solana wallet account to become rent exempt
	// The Solana protocol sets minimum rent exempt to 890880 lamports but we set it to 1_000_000 lamports (0.001 SOL)
	// The number 890880 comes from CLI command `solana rent 0` and has been verified on devnet gateway program
	SolanaWalletRentExempt = 1_000_000

	// EVMZeroAddress is the zero address for EVM address format
	EVMZeroAddress = "0x0000000000000000000000000000000000000000"

	// OptionPause is the argument used in CmdUpdateERC20CustodyPauseStatus to pause the ERC20 custody contract
	OptionPause = "pause"

	// OptionUnpause is the argument used in CmdUpdateERC20CustodyPauseStatus to unpause the ERC20 custody contract
	OptionUnpause = "unpause"
)

Variables

View Source
var (
	Name       = ""
	Version    = ""
	CommitHash = ""
	BuildTime  = ""
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL