rpc: implement getnativecontracts RPC

This commit is contained in:
Evgeniy Stratonikov 2021-02-09 12:25:38 +03:00
parent e1d2a5b5b7
commit f0d8652bcd
6 changed files with 46 additions and 0 deletions

View file

@ -30,6 +30,12 @@ type ContractBase struct {
Manifest manifest.Manifest `json:"manifest"`
}
// NativeContract holds information about native contract.
type NativeContract struct {
ContractBase
ActiveBlockIndex uint32 `json:"activeblockindex"`
}
// DecodeBinary implements Serializable interface.
func (c *Contract) DecodeBinary(r *io.BinReader) {
si := stackitem.DecodeBinaryStackItem(r)