2020-09-02 09:20:42 +00:00
|
|
|
package testdata
|
|
|
|
|
2021-05-05 10:22:26 +00:00
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/interop"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
|
|
)
|
2021-03-02 12:43:09 +00:00
|
|
|
|
2020-09-02 09:20:42 +00:00
|
|
|
func Verify() bool {
|
|
|
|
return true
|
|
|
|
}
|
2020-11-19 15:01:42 +00:00
|
|
|
|
2021-03-02 12:43:09 +00:00
|
|
|
func OnNEP17Payment(from interop.Hash160, amount int, data interface{}) {
|
2020-11-19 15:01:42 +00:00
|
|
|
}
|
2021-05-05 10:22:26 +00:00
|
|
|
|
|
|
|
// OnNEP11Payment notifies about NEP11 payment. You don't call this method directly,
|
|
|
|
// instead it's called by NEP11 contract when you transfer funds from your address
|
|
|
|
// to the address of this NFT contract.
|
|
|
|
func OnNEP11Payment(from interop.Hash160, amount int, token []byte, data interface{}) {
|
|
|
|
runtime.Notify("OnNEP11Payment", from, amount, token, data)
|
|
|
|
}
|