Documentation
¶
Index ¶
- Variables
- func Completion(bytes []byte, number int) []byte
- func DeriveTire(rs DerivableList, tr *trie.Trie) *trie.Trie
- func GenLogBlockNumber(bn *big.Int, idx uint) *big.Int
- func Get(receipts DerivableList, txIndex uint) ([][]byte, error)
- func Oracle(blockNumber uint64, receipt *mapprotocol.TxReceipt, key []byte, prf [][]byte, ...) ([]byte, error)
- func Pack(fId msg.ChainId, method string, abi abi.ABI, params ...interface{}) ([]byte, error)
- func SignOracle(header *maptypes.Header, receipt *mapprotocol.TxReceipt, key []byte, ...) ([]byte, error)
- func V3Pack(fId msg.ChainId, method string, abi abi.ABI, idx int, orderId [32]byte, ...) ([]byte, error)
- type Data
- type DerivableList
- type NewData
- type NewReceiptProof
- type ReceiptProof
- type ReceiptRLP
- type SignData
- type SignLogData
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CacheReceipt = make(map[string][]*types.Receipt) // key -> chainId_blockHeight
)
Functions ¶
func Completion ¶ added in v1.3.0
func DeriveTire ¶ added in v1.2.0
func DeriveTire(rs DerivableList, tr *trie.Trie) *trie.Trie
func SignOracle ¶ added in v1.2.2
Types ¶
type Data ¶ added in v1.2.0
type Data struct {
BlockNum *big.Int
ReceiptProof ReceiptProof
}
type NewData ¶ added in v1.2.2
type NewData struct {
BlockNum *big.Int
ReceiptProof NewReceiptProof
}
type NewReceiptProof ¶ added in v1.2.2
type ReceiptProof ¶ added in v1.2.0
type ReceiptProof struct {
TxReceipt mapprotocol.TxReceipt
KeyIndex []byte
Proof [][]byte
}
type ReceiptRLP ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.