Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OPRNameMap = map[OPReturnType]string{ OPReturnType(txscript.OP_MEER_LOCK): "LockAmount", OPReturnType(txscript.OP_MEER_EVM): "MeerEVM", }
Functions ¶
func GetOPReturnTxOutput ¶
func IsMeerEVMTx ¶
func IsMeerEVMTx(tx *types.Transaction) bool
func IsOPReturn ¶
Types ¶
type IOPReturn ¶
type IOPReturn interface { GetType() OPReturnType Verify(tx *types.Transaction) error Init(ops []txscript.ParsedOpcode) error PKScript() []byte }
Exclusive to Coinbase OP Return function
func NewOPReturnFrom ¶
type LockAmount ¶
type LockAmount struct {
// contains filtered or unexported fields
}
func NewLockAmount ¶
func NewLockAmount(amount int64) *LockAmount
func (*LockAmount) GetAmount ¶
func (a *LockAmount) GetAmount() int64
func (*LockAmount) GetType ¶
func (a *LockAmount) GetType() OPReturnType
func (*LockAmount) Init ¶
func (a *LockAmount) Init(ops []txscript.ParsedOpcode) error
func (*LockAmount) PKScript ¶
func (a *LockAmount) PKScript() []byte
func (*LockAmount) Verify ¶
func (a *LockAmount) Verify(tx *types.Transaction) error
type MeerEVM ¶
type MeerEVM struct { }
func (*MeerEVM) GetType ¶
func (m *MeerEVM) GetType() OPReturnType
type OPReturnType ¶
type OPReturnType byte
func GetOPReturnType ¶
func GetOPReturnType(pks []byte) OPReturnType
func (OPReturnType) Name ¶
func (t OPReturnType) Name() string
Click to show internal directories.
Click to hide internal directories.