gamecredits

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainnetMagic wire.BitcoinNet = 0xdbb6c0fb
	TestnetMagic wire.BitcoinNet = 0x0709110b
	RegtestMagic wire.BitcoinNet = 0xdab5bffa
)

magic numbers

Variables

View Source
var (
	MainNetParams chaincfg.Params
	TestNetParams chaincfg.Params
)

chain parameters

Functions

func GetChainParams

func GetChainParams(chain string) *chaincfg.Params

GetChainParams contains network parameters for the main GameCredits network, and the test GameCredits network

func NewGameCreditsRPC

func NewGameCreditsRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error)

NewGameCreditsRPC returns new GameCreditsRPC instance.

Types

type GameCreditsParser

type GameCreditsParser struct {
	*btc.BitcoinParser
}

GameCreditsParser handle

func NewGameCreditsParser

func NewGameCreditsParser(params *chaincfg.Params, c *btc.Configuration) *GameCreditsParser

NewGameCreditsParser returns new GameCreditsParser instance

type GameCreditsRPC

type GameCreditsRPC struct {
	*btc.BitcoinRPC
}

GameCreditsRPC is an interface to JSON-RPC bitcoind service.

func (*GameCreditsRPC) Initialize

func (b *GameCreditsRPC) Initialize() error

Initialize initializes GameCreditsRPC instance.

Jump to

Keyboard shortcuts

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