|
1 | 1 | package standard
|
2 | 2 |
|
3 |
| -import ( |
4 |
| - "github.com/nspcc-dev/neo-go/pkg/smartcontract" |
5 |
| - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" |
6 |
| -) |
| 3 | +// Nep11Payable is an alias of [Nep26]. |
| 4 | +// Deprecated: Nep11Payable will be removed in next version, use designated |
| 5 | +// [Nep26] Standard instead. |
| 6 | +var Nep11Payable = Nep26 |
7 | 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 |
| -} |
| 8 | +// Nep17Payable is an alias of [Nep27]. |
| 9 | +// Deprecated: Nep17Payable will be removed in next version, use designated |
| 10 | +// [Nep27] Standard instead. |
| 11 | +var Nep17Payable = Nep27 |
0 commit comments