parity

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(tn *testnet.TestNet) ([]string, error)

func Build

func Build(tn *testnet.TestNet) ([]string, error)

Build builds out a fresh new ethereum test network

func BuildConfig

func BuildConfig(pconf *ParityConf, details *db.DeploymentDetails, wallets []string, passwordFile string, node int) (string, error)

passwordFile unlock

func BuildPoaConfig

func BuildPoaConfig(pconf *ParityConf, details *db.DeploymentDetails, wallets []string, passwordFile string, i int) (string, error)

passwordFile unlock

func BuildPoaSpec

func BuildPoaSpec(pconf *ParityConf, details *db.DeploymentDetails, wallets []string) (string, error)

func BuildSpec

func BuildSpec(pconf *ParityConf, details *db.DeploymentDetails, wallets []string) (string, error)

func GetDefaults

func GetDefaults() string

func GetParams

func GetParams() string

func GetServices

func GetServices() []util.Service

func GethSpec

func GethSpec(pconf *ParityConf, wallets []string) (string, error)

Types

type ParityConf

type ParityConf struct {
	BlockReward               int64  `json:"blockReward"`
	ChainId                   int64  `json:"chainId"`
	Consensus                 string `json:"consensus"` //TODO
	Difficulty                int64  `json:"difficulty"`
	DifficultyBoundDivisor    int64  `json:"difficultyBoundDivisor"`
	DontMine                  bool   `json:"dontMine"`
	DurationLimit             int64  `json:"durationLimit"`
	Eip155Block               int64  `json:"eip155Block"`
	Eip158Block               int64  `json:"eip158Block"`
	EIP140Transition          int64  `json:"eip140Transition"`
	EIP155Transition          int64  `json:"eip155Transition"`
	EIP211Transition          int64  `json:"eip211Transition"`
	EIP214Transition          int64  `json:"eip214Transition"`
	EIP658Transition          int64  `json:"eip658Transition"`
	EnableIPFS                bool   `json:"enableIPFS"`
	ExtraAccounts             int64  `json:"extraAccounts"`
	ForceSealing              bool   `json:"forceSealing"`
	GasCap                    string `json:"gasCap"`
	GasFloorTarget            string `json:"gasFloorTarget"`
	GasLimit                  int64  `json:"gasLimit"`
	GasLimitBoundDivisor      int64  `json:"gasLimitBoundDivisor"`
	HomesteadBlock            int64  `json:"homesteadBlock"`
	InitBalance               string `json:"initBalance"`
	MaximumExtraDataSize      int64  `json:"maximumExtraDataSize"`
	MaxPeers                  int64  `json:"maxPeers"`
	MinGasLimit               int64  `json:"minGasLimit"`
	MinimumDifficulty         int64  `json:"minimumDifficulty"`
	NetworkDiscovery          bool   `json:"networkDiscovery"`
	NetworkId                 int64  `json:"networkId"`
	PriceUpdatePeriod         string `json:"priceUpdatePeriod"`
	RefuseServiceTransactions bool   `json:"refuseServiceTransactions"`
	RelaySet                  string `json:"relaySet"`
	RemoveSolved              bool   `json:"removeSolved"`
	ResealMaxPeriod           int64  `json:"resealMaxPeriod"`
	ResealMinPeriod           int64  `json:"resealMinPeriod"`
	ResealOnTxs               string `json:"resealOnTxs"`
	Signature                 string `json:"signature"`    //POA
	Step                      int64  `json:"step"`         //POA
	StepDuration              int64  `json:"stepDuration"` //POA
	TxGasLimit                string `json:"txGasLimit"`
	TxQueueGas                string `json:"txQueueGas"`
	TxQueueSize               int64  `json:"txQueueSize"`
	TxQueueStrategy           string `json:"txQueueStrategy"`
	TxTimeLimit               int64  `json:"txTimeLimit"`
	UsdPerEth                 string `json:"usdPerEth"`
	UsdPerTx                  string `json:"usdPerTx"`
	ValidateChainIdTransition int64  `json:"validateChainIdTransition"`
	WorkQueueSize             int64  `json:"workQueueSize"`
}

func NewConf

func NewConf(data map[string]interface{}) (*ParityConf, error)

*

  • Fills in the defaults for missing parts,

Jump to

Keyboard shortcuts

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