tutus-chain/cli/smartcontract/testdata/verify.go

21 lines
613 B
Go

package testdata
import (
"git.marketally.com/tutus-one/tutus-chain/pkg/interop"
"git.marketally.com/tutus-one/tutus-chain/pkg/interop/runtime"
)
func Verify() bool {
return true
}
func OnNEP17Payment(from interop.Hash160, amount int, data any) {
}
// OnNEP11Payment notifies about NEP-11 payment. You don't call this method directly,
// instead it's called by NEP-11 contract when you transfer funds from your address
// to the address of this NFT contract.
func OnNEP11Payment(from interop.Hash160, amount int, tokenId []byte, data any) {
runtime.Notify("OnNEP11Payment", from, amount, tokenId, data)
}