Versions in this module Expand all Collapse all v1 v1.4.2 Feb 2, 2021 Changes in this version + var AN = eos.AN + var PN = eos.PN + func AccountToNodeID(acct eos.AccountName) int64 + func ChunkifyActions(actions []*eos.Action) (out [][]*eos.Action) + func Retry(attempts int, sleep time.Duration, callback func() error) (err error) + func ScanLinesUntilBlank() (out string, err error) + func ScanSingleLine() (out string, err error) + type ActionMap map[string]*eos.Action + type BIOS struct + BootSequence *BootSeq + BootSequenceFile string + CachePath string + EphemeralPrivateKey *ecc.PrivateKey + EphemeralPublicKey ecc.PublicKey + Genesis *GenesisJSON + HackVotingAccounts bool + Log *Logger + ReuseGenesis bool + Snapshot Snapshot + TargetNetAPI *eos.API + WriteActions bool + func NewBIOS(logger *Logger, cachePath string, targetAPI *eos.API) *BIOS + func (b *BIOS) Boot() error + func (b *BIOS) DispatchBootNode(genesisJSON, publicKey, privateKey string) error + func (b *BIOS) DownloadReferences() error + func (b *BIOS) DownloadURL(ref string, hash string) error + func (b *BIOS) FileNameFromCache(ref string) string + func (b *BIOS) GenerateEphemeralPrivKey() (*ecc.PrivateKey, error) + func (b *BIOS) GenerateGenesisJSON(pubKey string) string + func (b *BIOS) GetContentsCacheRef(filename string) (string, error) + func (b *BIOS) LoadGenesisFromFile(pubkey string) (string, error) + func (b *BIOS) ReadFromCache(ref string) ([]byte, error) + func (b *BIOS) ReaderFromCache(ref string) (io.ReadCloser, error) + func (b *BIOS) RunChainValidation() (bool, error) + type BootSeq struct + BootSequence []*OperationType + Contents []*ContentRef + Keys map[string]string + func ReadBootSeq(filename string) (out *BootSeq, err error) + type ContentRef struct + Hash string + Name string + URL string + type GenesisJSON struct + InitialKey string + InitialTimestamp string + type Logger struct + Debug bool + OutputFile io.Writer + OutputScreen io.Writer + func NewLogger() *Logger + func (l *Logger) Debugf(format string, args ...interface{}) + func (l *Logger) Debugln(args ...interface{}) + func (l *Logger) Printf(format string, args ...interface{}) + func (l *Logger) Println(args ...interface{}) + type OpCreateToken struct + Account eos.AccountName + Amount eos.Asset + func (op *OpCreateToken) Actions(b *BIOS) (out []*eos.Action, err error) + type OpCreateVoters struct + Count int + Creator eos.AccountName + Pubkey string + func (op *OpCreateVoters) Actions(b *BIOS) (out []*eos.Action, err error) + type OpInjectUnregdSnapshot struct + TestnetTruncateSnapshot int + func (op *OpInjectUnregdSnapshot) Actions(b *BIOS) (out []*eos.Action, err error) + type OpIssueToken struct + Account eos.AccountName + Amount eos.Asset + Memo string + func (op *OpIssueToken) Actions(b *BIOS) (out []*eos.Action, err error) + type OpNewAccount struct + Creator eos.AccountName + NewAccount eos.AccountName + Pubkey string + func (op *OpNewAccount) Actions(b *BIOS) (out []*eos.Action, err error) + type OpResignAccounts struct + Accounts []eos.AccountName + TestnetKeepAccounts bool + func (op *OpResignAccounts) Actions(b *BIOS) (out []*eos.Action, err error) + type OpSetCode struct + Account eos.AccountName + ContractNameRef string + func (op *OpSetCode) Actions(b *BIOS) (out []*eos.Action, err error) + type OpSetPriv struct + Account eos.AccountName + func (op *OpSetPriv) Actions(b *BIOS) (out []*eos.Action, err error) + type OpSetProds struct + Prods []producerKeyString + func (op *OpSetProds) Actions(b *BIOS) (out []*eos.Action, err error) + type OpSetRAM struct + MaxRAMSize uint64 + func (op *OpSetRAM) Actions(b *BIOS) (out []*eos.Action, err error) + type OpSnapshotCreateAccounts struct + BuyRAMBytes uint64 + TestnetTruncateSnapshot int + func (op *OpSnapshotCreateAccounts) Actions(b *BIOS) (out []*eos.Action, err error) + type OpTransferToken struct + From eos.AccountName + Memo string + Quantity eos.Asset + To eos.AccountName + func (op *OpTransferToken) Actions(b *BIOS) (out []*eos.Action, err error) + type Operation interface + Actions func(b *BIOS) ([]*eos.Action, error) + type OperationType struct + Data Operation + Label string + Op string + func (o *OperationType) UnmarshalJSON(data []byte) error + type Snapshot []SnapshotLine + func NewSnapshot(content []byte) (out Snapshot, err error) + type SnapshotLine struct + AccountName string + Balance eos.Asset + EOSPublicKey ecc.PublicKey + EthereumAddress string + type UnregdSnapshot []UnregdSnapshotLine + func NewUnregdSnapshot(content []byte) (out UnregdSnapshot, err error) + type UnregdSnapshotLine struct + AccountName string + Balance eos.Asset + EthereumAddress string + type ValidationError struct + Action *eos.Action + ActionHexData string + BlockNumber int + Err error + Index int + PackedTransaction *eos.PackedTransaction + RawAction []byte + func (e ValidationError) Error() string + type ValidationErrors struct + Errors []error + func (v ValidationErrors) Error() string