github.com/quantosnetwork/Quantos@v0.0.0-20220306172517-e20b28c5a29a/sdk/config/chainConfig.go (about)

     1  package config
     2  
     3  type ChainConfig struct {
     4  	NetID   NetworkID
     5  	Version [2]byte
     6  
     7  	Host      string
     8  	Port      string
     9  	BlockChan chan interface{}
    10  }
    11  
    12  type NetworkID [2]byte
    13  
    14  var (
    15  	LIVENET  NetworkID = [2]byte{0x38, 0x0a}
    16  	TESTNET  NetworkID = [2]byte{0x0a, 0x00}
    17  	LOCALNET NetworkID = [2]byte{0x00, 0xff}
    18  )
    19  
    20  var Version = [2]byte{0x00, 0x01}
    21  
    22  type AddressPrefixes uint32
    23  
    24  const (
    25  	DEFAULT_ADDRESS_PREFIX uint32 = iota
    26  	QBIT_ADDRESS_PREFIX
    27  	TX_ADDRESS_PREFIX
    28  	BLOCK_ADDRESS_PREFIX
    29  	CONTRACT_ADDRESS_PREFIX
    30  )
    31  
    32  const ZEROADDRESS = "0xQ532Sbdoigjcofdhaylrzqxehahocf4G2Rm6V5Iam57Logocjyw4"