Documentation ¶
Index ¶
- Constants
- Variables
- func AddressToPubKeyHex(addr string, parser bchain.BlockChainParser) string
- func GetTestBitcoinTypeBlock1(parser bchain.BlockChainParser) *bchain.Block
- func GetTestBitcoinTypeBlock2(parser bchain.BlockChainParser) *bchain.Block
- func GetTestEthereumTypeBlock1(parser bchain.BlockChainParser) *bchain.Block
- func GetTestEthereumTypeBlock2(parser bchain.BlockChainParser) *bchain.Block
- func NewFakeBlockChain(parser bchain.BlockChainParser) (bchain.BlockChain, error)
Constants ¶
View Source
const ( TxidB1T1 = "00b2c06055e5e90e9c82bd4181fde310104391a7fa4f289b1704e5d90caa3840" TxidB1T2 = "effd9ef509383d536b1c8af5bf434c8efbf521a4f2befd4022bbd68694b4ac75" TxidB2T1 = "7c3be24063f268aaa1ed81b64776798f56088757641a34fb156c4f51ed2e9d25" TxidB2T2 = "3d90d15ed026dc45e19ffb52875ed18fa9e8012ad123d7f7212176e2b0ebdb71" TxidB2T3 = "05e2e48aeabdd9b75def7b48d756ba304713c2aba7b522bf9dbc893fc4231b07" TxidB2T4 = "fdd824a780cbb718eeb766eb05d83fdefc793a27082cd5e67f856d69798cf7db" Xpub = "upub5E1xjDmZ7Hhej6LPpS8duATdKXnRYui7bDYj6ehfFGzWDZtmCmQkZhc3Zb7kgRLtHWd16QFxyP86JKL3ShZEBFX88aciJ3xyocuyhZZ8g6q" Addr1 = "mfcWp7DB6NuaZsExybTTXpVgWz559Np4Ti" // 76a914010d39800f86122416e28f485029acf77507169288ac Addr2 = "mtGXQvBowMkBpnhLckhxhbwYK44Gs9eEtz" // 76a9148bdf0aa3c567aa5975c2e61321b8bebbe7293df688ac Addr3 = "mv9uLThosiEnGRbVPS7Vhyw6VssbVRsiAw" // 76a914a08eae93007f22668ab5e4a9c83c8cd1c325e3e088ac Addr4 = "2MzmAKayJmja784jyHvRUW1bXPget1csRRG" // a91452724c5178682f70e0ba31c6ec0633755a3b41d987, xpub m/49'/1'/33'/0/0 Addr5 = "2NEVv9LJmAnY99W1pFoc5UJjVdypBqdnvu1" // a914e921fc4912a315078f370d959f2c4f7b6d2a683c87 Addr6 = "mzB8cYrfRwFRFAGTDzV8LkUQy5BQicxGhX" // 76a914ccaaaf374e1b06cb83118453d102587b4273d09588ac Addr7 = "mtR97eM2HPWVM6c8FGLGcukgaHHQv7THoL" // 76a9148d802c045445df49613f6a70ddd2e48526f3701f88ac Addr8 = "2N6utyMZfPNUb1Bk8oz7p2JqJrXkq83gegu" // a91495e9fbe306449c991d314afe3c3567d5bf78efd287, xpub m/49'/1'/33'/1/3 Addr9 = "mmJx9Y8ayz9h14yd9fgCW1bUKoEpkBAquP" // 76a9143f8ba3fda3ba7b69f5818086e12223c6dd25e3c888ac AddrA = "mzVznVsCHkVHX9UN8WPFASWUUHtxnNn4Jj" // 76a914d03c0d863d189b23b061a95ad32940b65837609f88ac TxidB2T1Output3OpReturn = "6a072020f1686f6a20" )
Txids, Xpubs and Addresses
View Source
const ( EthAddr3e = "3e3a3d69dc66ba10737f531ed088954a9ec89d97" EthAddr55 = "555ee11fbddc0e49a9bab358a8941ad95ffdb48f" EthAddr20 = "20cd153de35d469ba46127a0c8f18626b59a256a" EthAddr9f = "9f4981531fda132e83c44680787dfa7ee31e4f8d" EthAddr4b = "4bda106325c335df99eab7fe363cac8a0ba2a24d" EthAddr7b = "7b62eb7fe80350dc7ec945c0b73242cb9877fb1b" EthAddrContract4a = "4af4114f73d1c1c903ac9e0361b379d1291808a2" // ERC-20 (VTY) EthAddrContract0d = "0d0f936ee4c93e25944694d6c121de94d9760f11" // ERC-20 (MTT) EthAddrContract47 = "479cc461fecd078f766ecc58533d6f69580cf3ac" // non ERC20 EthTxidB1T1 = "cd647151552b5132b2aef7c9be00dc6f73afc5901dde157aab131335baaa853b" EthTx1Packed = "" /* 254-byte string literal not displayed */ EthTxidB1T2 = "a9cd088aba2131000da6f38a33c20169baee476218deea6b78720700b895b101" EthTx2Packed = "" /* 694-byte string literal not displayed */ EthTxidB2T1 = "c2c3dd1ecb00e8a6d81f793d24387cf2947a313e94ab03b1fb22cd63320f6c91" EthTx3Packed = "" /* 250-byte string literal not displayed */ EthTxidB2T2 = "c92919ad24ffd58f760b18df7949f06e1190cf54a50a0e3745a385608ed3cbf2" EthTx4Packed = "" /* 5908-byte string literal not displayed */ )
Addresses
Variables ¶
View Source
var ( SatZero = big.NewInt(0) SatB1T1A1 = big.NewInt(100000000) SatB1T1A2 = big.NewInt(12345) SatB1T1A2Double = big.NewInt(12345 * 2) SatB1T2A3 = big.NewInt(1234567890123) SatB1T2A4 = big.NewInt(1) SatB1T2A5 = big.NewInt(9876) SatB2T1A6 = big.NewInt(317283951061) SatB2T1A7 = big.NewInt(917283951061) SatB2T2A8 = big.NewInt(118641975500) SatB2T2A9 = big.NewInt(198641975500) SatB2T3A5 = big.NewInt(9000) SatB2T4AA = big.NewInt(1360030331) )
Amounts in satoshis
Functions ¶
func AddressToPubKeyHex ¶
func AddressToPubKeyHex(addr string, parser bchain.BlockChainParser) string
AddressToPubKeyHex is a utility conversion function
func GetTestBitcoinTypeBlock1 ¶ added in v0.2.0
func GetTestBitcoinTypeBlock1(parser bchain.BlockChainParser) *bchain.Block
GetTestBitcoinTypeBlock1 returns block #1
func GetTestBitcoinTypeBlock2 ¶ added in v0.2.0
func GetTestBitcoinTypeBlock2(parser bchain.BlockChainParser) *bchain.Block
GetTestBitcoinTypeBlock2 returns block #2
func GetTestEthereumTypeBlock1 ¶ added in v0.2.0
func GetTestEthereumTypeBlock1(parser bchain.BlockChainParser) *bchain.Block
GetTestEthereumTypeBlock1 returns block #1
func GetTestEthereumTypeBlock2 ¶ added in v0.2.0
func GetTestEthereumTypeBlock2(parser bchain.BlockChainParser) *bchain.Block
GetTestEthereumTypeBlock2 returns block #2
func NewFakeBlockChain ¶
func NewFakeBlockChain(parser bchain.BlockChainParser) (bchain.BlockChain, error)
NewFakeBlockChain returns mocked blockchain RPC interface used for tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.