rpc: implement getnativecontracts
RPC
This commit is contained in:
parent
e1d2a5b5b7
commit
f0d8652bcd
6 changed files with 46 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue