26 lines
641 B
Go
26 lines
641 B
Go
package standard
|
|
|
|
import (
|
|
"github.com/tutus-one/tutus-chain/pkg/smartcontract"
|
|
"github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest"
|
|
)
|
|
|
|
// Nep22 is a NEP-22 Standard describing smart contract update functionality.
|
|
var Nep22 = &Standard{
|
|
Manifest: manifest.Manifest{
|
|
ABI: manifest.ABI{
|
|
Methods: []manifest.Method{
|
|
{
|
|
Name: "update",
|
|
Parameters: []manifest.Parameter{
|
|
{Name: "nefFile", Type: smartcontract.ByteArrayType},
|
|
{Name: "manifest", Type: smartcontract.ByteArrayType},
|
|
{Name: "data", Type: smartcontract.AnyType},
|
|
},
|
|
ReturnType: smartcontract.VoidType,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|