MessageI is the model of a message object (send, stake, edit-stake, etc.)
| 67 | |
| 68 | // MessageI is the model of a message object (send, stake, edit-stake, etc.) |
| 69 | type MessageI interface { |
| 70 | proto.Message |
| 71 | |
| 72 | New() MessageI // new instance of the message type |
| 73 | Name() string // name of the message |
| 74 | Check() ErrorI // stateless validation of the message |
| 75 | Recipient() []byte // for transaction indexing by recipient |
| 76 | json.Marshaler // json encoding |
| 77 | json.Unmarshaler // json decoding |
| 78 | } |
| 79 | |
| 80 | // TRANSACTION CODE BELOW |
| 81 |
no outgoing calls
no test coverage detected