Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SEP206AddrAsZeniqOnEthereum [20]byte = [20]byte{0x5b, 0x52, 0xbf, 0xB8, 0x06, 0x2C, 0xe6, 0x64, 0xD7, 0x4b, 0xbC, 0xd4, 0xCd, 0x6D, 0xC7, 0xDf, 0x53, 0xFd, 0x72, 0x33}
View Source
var SEP206ContractAddress [20]byte = [20]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x27, 0x11}
SEP206SEP
Functions ¶
This section is empty.
Types ¶
type BackendService ¶
type BackendService interface { FilterService // General Ethereum API //Downloader() *downloader.Downloader ProtocolVersion() int // Blockchain API ChainId() *big.Int //SetHead(number uint64) //HeaderByNumber(ctx context.Context, number int64) (*stake.Header, error) //HeaderByHash(ctx context.Context, hash common.Hash) (*stake.Header, error) //HeaderByNumberOrHash(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) (*stake.Header, error) //CurrentHeader() *stake.Header LatestHeight() int64 CurrentBlock() (*types.Block, error) BlockByNumber(number int64) (*types.Block, error) BlockByHash(hash common.Hash) (*types.Block, error) // Transaction pool API SendRawTx(signedTx []byte) (common.Hash, error) GetTransaction(txHash common.Hash) (tx *types.Transaction, sig [65]byte, err error) //Below is added in zeniq chain only GetNonce(address common.Address, height int64) (uint64, error) GetBalance(address common.Address, height int64) (*big.Int, error) GetCode(contract common.Address, height int64) (bytecode []byte, codeHash []byte) GetStorageAt(address common.Address, key string, height int64) []byte Call(tx *gethtypes.Transaction, from common.Address, height int64) (statusCode int, retData []byte) CallForSbch(tx *gethtypes.Transaction, sender common.Address, height int64) *CallDetail EstimateGas(tx *gethtypes.Transaction, from common.Address, height int64) (statusCode int, retData []byte, gas int64) QueryLogs(addresses []common.Address, topics [][]common.Hash, startHeight, endHeight uint32, filter types.FilterFunc) ([]types.Log, error) QueryTxBySrc(address common.Address, startHeight, endHeight, limit uint32) (tx []*types.Transaction, sigs [][65]byte, err error) QueryTxByDst(address common.Address, startHeight, endHeight, limit uint32) (tx []*types.Transaction, sigs [][65]byte, err error) QueryTxByAddr(address common.Address, startHeight, endHeight, limit uint32) (tx []*types.Transaction, sigs [][65]byte, err error) SbchQueryLogs(addr common.Address, topics []common.Hash, startHeight, endHeight, limit uint32) ([]types.Log, error) GetTxListByHeight(height uint32) (tx []*types.Transaction, sigs [][65]byte, err error) GetTxListByHeightWithRange(height uint32, start, end int) (tx []*types.Transaction, sigs [][65]byte, err error) GetFromAddressCount(addr common.Address) int64 GetToAddressCount(addr common.Address) int64 GetSep20ToAddressCount(contract common.Address, addr common.Address) int64 GetSep20FromAddressCount(contract common.Address, addr common.Address) int64 GetSeq(address common.Address) uint64 GetPosVotes() map[[32]byte]*big.Int GetSyncBlock(height int64) (blk []byte, err error) CrosschainInfo(start, end int64) []*ccrpctypes.CCrpcTransferInfo //tendermint info NodeInfo() Info ValidatorsInfo() app.ValidatorsInfo IsArchiveMode() bool }
func NewBackend ¶
func NewBackend(node ITmNode, app app.IApp) BackendService
type CallDetail ¶
type CallDetail struct { Status int GasUsed uint64 OutData []byte Logs []types.EvmLog CreatedContractAddress common.Address InternalTxCalls []types.InternalTxCall InternalTxReturns []types.InternalTxReturn RwLists *types.ReadWriteLists }
type FilterService ¶
type FilterService interface { HeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*types.Header, error) HeaderByHash(ctx context.Context, blockHash common.Hash) (*types.Header, error) GetReceipts(ctx context.Context, blockNum uint64) (gethtypes.Receipts, error) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*gethtypes.Log, error) SubscribeNewTxsEvent(chan<- core.NewTxsEvent) event.Subscription SubscribeChainEvent(ch chan<- types.ChainEvent) event.Subscription SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription SubscribeLogsEvent(ch chan<- []*gethtypes.Log) event.Subscription BloomStatus() (uint64, uint64) ServiceFilter(ctx context.Context, session *bloombits.MatcherSession) }
type Info ¶
type Info struct { IsValidator bool `json:"is_validator"` ValidatorIndex int64 `json:"validator_index"` Height int64 `json:"height"` Seed string `json:"seed"` ConsensusPubKey hexutil.Bytes `json:"consensus_pub_key"` AppState json.RawMessage `json:"genesis_state"` NextBlock NextBlock `json:"next_block"` }
Click to show internal directories.
Click to hide internal directories.