The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/hmyclient/type.go

31 lines
811 B

5 years ago
package hmyclient
import (
"github.com/ethereum/go-ethereum/common"
"github.com/harmony-one/harmony/core/types"
types2 "github.com/harmony-one/harmony/staking/types"
5 years ago
)
type rpcBlock struct {
5 years ago
Hash common.Hash `json:"hash"`
Transactions []rpcTransaction `json:"transactions"`
StakingTransactions []rpcStakingTransaction `json:"staking_transactions"`
5 years ago
UncleHashes []common.Hash `json:"uncles"`
5 years ago
}
type rpcTransaction struct {
tx *types.Transaction
txExtraInfo
}
type txExtraInfo struct {
BlockNumber *string `json:"blockNumber,omitempty"`
BlockHash *common.Hash `json:"blockHash,omitempty"`
From *common.Address `json:"from,omitempty"`
}
type rpcStakingTransaction struct {
tx *types2.StakingTransaction
txExtraInfo
}