github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/smartcontract/manifest/standard/payable.go (about) 1 package standard 2 3 import ( 4 "github.com/nspcc-dev/neo-go/pkg/smartcontract" 5 "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" 6 ) 7 8 // Nep11Payable contains NEP-11's onNEP11Payment method definition. 9 var Nep11Payable = &Standard{ 10 Manifest: manifest.Manifest{ 11 ABI: manifest.ABI{ 12 Methods: []manifest.Method{{ 13 Name: manifest.MethodOnNEP11Payment, 14 Parameters: []manifest.Parameter{ 15 {Name: "from", Type: smartcontract.Hash160Type}, 16 {Name: "amount", Type: smartcontract.IntegerType}, 17 {Name: "tokenid", Type: smartcontract.ByteArrayType}, 18 {Name: "data", Type: smartcontract.AnyType}, 19 }, 20 ReturnType: smartcontract.VoidType, 21 }}, 22 }, 23 }, 24 } 25 26 // Nep17Payable contains NEP-17's onNEP17Payment method definition. 27 var Nep17Payable = &Standard{ 28 Manifest: manifest.Manifest{ 29 ABI: manifest.ABI{ 30 Methods: []manifest.Method{{ 31 Name: manifest.MethodOnNEP17Payment, 32 Parameters: []manifest.Parameter{ 33 {Name: "from", Type: smartcontract.Hash160Type}, 34 {Name: "amount", Type: smartcontract.IntegerType}, 35 {Name: "data", Type: smartcontract.AnyType}, 36 }, 37 ReturnType: smartcontract.VoidType, 38 }}, 39 }, 40 }, 41 }