Browse Source

Add ErrBaseUnknownPlugin

pull/1780/head
Jae Kwon 9 years ago
parent
commit
121db71f48
3 changed files with 51 additions and 46 deletions
  1. +1
    -0
      types/errors.go
  2. +49
    -46
      types/types.pb.go
  3. +1
    -0
      types/types.proto

+ 1
- 0
types/errors.go View File

@ -21,5 +21,6 @@ var (
ErrBaseInvalidSequence = NewError(CodeType_BaseInvalidSequence, "Error (base) invalid sequence")
ErrBaseInvalidSignature = NewError(CodeType_BaseInvalidSignature, "Error (base) invalid signature")
ErrBaseUnknownAddress = NewError(CodeType_BaseUnknownAddress, "Error (base) unknown address")
ErrBaseUnknownPlugin = NewError(CodeType_BaseUnknownPlugin, "Error (base) unknown plugin")
ErrBaseUnknownPubKey = NewError(CodeType_BaseUnknownPubKey, "Error (base) unknown pubkey")
)

+ 49
- 46
types/types.pb.go View File

@ -100,6 +100,7 @@ const (
CodeType_BaseInvalidSignature CodeType = 110
CodeType_BaseUnknownAddress CodeType = 111
CodeType_BaseUnknownPubKey CodeType = 112
CodeType_BaseUnknownPlugin CodeType = 113
// Reserved for governance, 200 ~ 299
CodeType_GovUnknownEntity CodeType = 201
CodeType_GovUnknownGroup CodeType = 202
@ -133,6 +134,7 @@ var CodeType_name = map[int32]string{
110: "BaseInvalidSignature",
111: "BaseUnknownAddress",
112: "BaseUnknownPubKey",
113: "BaseUnknownPlugin",
201: "GovUnknownEntity",
202: "GovUnknownGroup",
203: "GovUnknownProposal",
@ -164,6 +166,7 @@ var CodeType_value = map[string]int32{
"BaseInvalidSignature": 110,
"BaseUnknownAddress": 111,
"BaseUnknownPubKey": 112,
"BaseUnknownPlugin": 113,
"GovUnknownEntity": 201,
"GovUnknownGroup": 202,
"GovUnknownProposal": 203,
@ -242,50 +245,50 @@ func init() {
}
var fileDescriptor0 = []byte{
// 708 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x54, 0xcb, 0x52, 0xdb,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23, 0xe6, 0x88, 0x34, 0x46, 0xc2, 0x8a,
0xc5, 0x79, 0x28, 0xc5, 0x62, 0x5e, 0x6c, 0xc8, 0xf1, 0x7c, 0x43, 0x24, 0x61, 0x72, 0xc8, 0xaf,
0x73, 0xb4, 0xc7, 0x44, 0x20, 0xa6, 0xe4, 0x83, 0x21, 0xdf, 0xe2, 0xea, 0x1c, 0x3e, 0x8c, 0x79,
0x1a, 0x91, 0x8f, 0x86, 0x94, 0x43, 0xe7, 0xe8, 0x20, 0xe6, 0x11, 0x4f, 0x9c, 0x90, 0x7c, 0x32,
0xe4, 0xd2, 0x96, 0x24, 0x66, 0x81, 0x67, 0x0d, 0x9f, 0x8b, 0x86, 0x19, 0x7e, 0x8c, 0x93, 0x2b,
0x8c, 0xc9, 0x17, 0x43, 0xe6, 0xda, 0x5e, 0x24, 0x66, 0xb3, 0xbe, 0x1a, 0xb9, 0xa2, 0x19, 0x75,
0xc9, 0x05, 0x92, 0x6f, 0x05, 0x9c, 0x1b, 0xce, 0x07, 0x7d, 0x37, 0xe8, 0x1a, 0x34, 0xe7, 0xb0,
0xbe, 0xfb, 0xc3, 0xa0, 0xff, 0x43, 0xe7, 0x0e, 0x28, 0x3f, 0xf5, 0x40, 0xfd, 0x33, 0x91, 0x9f,
0xc6, 0x55, 0x55, 0xff, 0x34, 0x3e, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x8b, 0x89, 0x86,
0x2f, 0x05, 0x00, 0x00,
// 716 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x52, 0xdb, 0x48,
0x10, 0x5e, 0xd9, 0xb2, 0xb1, 0xdb, 0x60, 0xc6, 0x83, 0xbd, 0x68, 0xb7, 0xf6, 0x40, 0xb1, 0x55,
0x5b, 0x14, 0x07, 0x76, 0x8b, 0x3d, 0xe5, 0x08, 0x8e, 0xa1, 0x5c,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x2e, 0x47, 0x7b, 0x4c, 0x04, 0x62, 0x4a, 0xde, 0x1a,
0x72, 0x45, 0xd7, 0xe7, 0xf0, 0x71, 0xcc, 0xd3, 0x88, 0xbc, 0x33, 0xa4, 0x4a, 0x3a, 0x47, 0x07,
0x31, 0x8f, 0x78, 0xe2, 0x84, 0xe4, 0xbd, 0x21, 0xb5, 0xb4, 0x24, 0x31, 0x7b, 0x87, 0x2c, 0xe1,
0x43, 0x91, 0x30, 0xc3, 0x4f, 0x71, 0x72, 0x83, 0x31, 0xf9, 0x68, 0xc8, 0x71, 0xb7, 0x17, 0x89,
0x59, 0xad, 0x4f, 0x46, 0xae, 0x68, 0x46, 0x5d, 0x73, 0x81, 0xe4, 0x73, 0x01, 0xe7, 0x73, 0xc8,
0x0b, 0x7d, 0x31, 0xe8, 0x06, 0x34, 0xe7, 0xb0, 0xbe, 0xfb, 0xd5, 0xa0, 0x7f, 0x42, 0xe7, 0x09,
0x28, 0x37, 0x60, 0xa0, 0xfe, 0x63, 0xe4, 0x9b, 0x71, 0x53, 0xd5, 0x5f, 0xcc, 0xff, 0xbf, 0x07,
0x00, 0x00, 0xff, 0xff, 0x91, 0x57, 0x50, 0xd8, 0x46, 0x05, 0x00, 0x00,
}

+ 1
- 0
types/types.proto View File

@ -50,6 +50,7 @@ enum CodeType {
BaseInvalidSignature = 110;
BaseUnknownAddress = 111;
BaseUnknownPubKey = 112;
BaseUnknownPlugin = 113;
// Reserved for governance, 200 ~ 299
GovUnknownEntity = 201;


Loading…
Cancel
Save