Versions in this module Expand all Collapse all v0 v0.0.0 May 21, 2024 Changes in this version + const AddressPath + const TransactionPath + var ErrEmptyObserversList = errors.New("empty observers list provided") + var ErrMissingObserver = errors.New("missing observer") + var ErrNilAddressConverter = errors.New("nil address converter") + var ErrNilConfig = errors.New("nil configuration provided") + var ErrNilCoreProcessor = errors.New("nil core processor") + var ErrSendingRequest = errors.New("sending request error") + type AccountProcessor struct + func NewAccountProcessor(proc Processor) (*AccountProcessor, error) + func (ap *AccountProcessor) GetAccount(address string) (*data.Account, error) + type BaseProcessor struct + func NewBaseProcessor(addressConverter state.AddressConverter) (*BaseProcessor, error) + func (bp *BaseProcessor) ApplyConfig(cfg *config.Config) error + func (bp *BaseProcessor) CallGetRestEndPoint(address string, path string, value interface{}) error + func (bp *BaseProcessor) CallPostRestEndPoint(address string, path string, data interface{}, response interface{}) error + func (bp *BaseProcessor) ComputeShardId(addressBuff []byte) (uint32, error) + func (bp *BaseProcessor) GetObservers(shardId uint32) ([]*data.Observer, error) + type Processor interface + ApplyConfig func(cfg *config.Config) error + CallGetRestEndPoint func(address string, path string, value interface{}) error + CallPostRestEndPoint func(address string, path string, data interface{}, response interface{}) error + ComputeShardId func(addressBuff []byte) (uint32, error) + GetObservers func(shardId uint32) ([]*data.Observer, error) + type TransactionProcessor struct + func NewTransactionProcessor(proc Processor) (*TransactionProcessor, error) + func (ap *TransactionProcessor) SendTransaction(nonce uint64, sender string, receiver string, value *big.Int, code string, ...) (string, error)