2018-08-21 10:57:48 +00:00
|
|
|
package block
|
|
|
|
|
2019-08-15 16:41:51 +00:00
|
|
|
import "github.com/CityOfZion/neo-go/pkg/interop/transaction"
|
2018-08-21 10:57:48 +00:00
|
|
|
|
|
|
|
// Package block provides function signatures that can be used inside
|
2019-08-15 16:41:51 +00:00
|
|
|
// smart contracts that are written in the neo-go framework.
|
2018-08-21 10:57:48 +00:00
|
|
|
|
|
|
|
// Block stubs a NEO block type.
|
|
|
|
type Block struct{}
|
|
|
|
|
2019-10-22 14:56:03 +00:00
|
|
|
// GetTransactionCount returns the number of recorded transactions in the given block.
|
2018-08-21 10:57:48 +00:00
|
|
|
func GetTransactionCount(b Block) int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetTransactions returns a slice of transactions recorded in the given block.
|
|
|
|
func GetTransactions(b Block) []transaction.Transaction {
|
|
|
|
return []transaction.Transaction{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetTransaction returns a transaction from the given a block hash of the
|
|
|
|
// transaction.
|
|
|
|
func GetTransaction(b Block, hash []byte) transaction.Transaction {
|
|
|
|
return transaction.Transaction{}
|
|
|
|
}
|