/
proposal_contract.pb.go
205 lines (179 loc) · 8.4 KB
/
proposal_contract.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: core/contract/proposal_contract.proto
package core
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ProposalApproveContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
ProposalId int64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
IsAddApproval bool `protobuf:"varint,3,opt,name=is_add_approval,json=isAddApproval,proto3" json:"is_add_approval,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProposalApproveContract) Reset() { *m = ProposalApproveContract{} }
func (m *ProposalApproveContract) String() string { return proto.CompactTextString(m) }
func (*ProposalApproveContract) ProtoMessage() {}
func (*ProposalApproveContract) Descriptor() ([]byte, []int) {
return fileDescriptor_b339c1bd781d6d14, []int{0}
}
func (m *ProposalApproveContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProposalApproveContract.Unmarshal(m, b)
}
func (m *ProposalApproveContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProposalApproveContract.Marshal(b, m, deterministic)
}
func (m *ProposalApproveContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProposalApproveContract.Merge(m, src)
}
func (m *ProposalApproveContract) XXX_Size() int {
return xxx_messageInfo_ProposalApproveContract.Size(m)
}
func (m *ProposalApproveContract) XXX_DiscardUnknown() {
xxx_messageInfo_ProposalApproveContract.DiscardUnknown(m)
}
var xxx_messageInfo_ProposalApproveContract proto.InternalMessageInfo
func (m *ProposalApproveContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ProposalApproveContract) GetProposalId() int64 {
if m != nil {
return m.ProposalId
}
return 0
}
func (m *ProposalApproveContract) GetIsAddApproval() bool {
if m != nil {
return m.IsAddApproval
}
return false
}
type ProposalCreateContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
Parameters map[int64]int64 `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProposalCreateContract) Reset() { *m = ProposalCreateContract{} }
func (m *ProposalCreateContract) String() string { return proto.CompactTextString(m) }
func (*ProposalCreateContract) ProtoMessage() {}
func (*ProposalCreateContract) Descriptor() ([]byte, []int) {
return fileDescriptor_b339c1bd781d6d14, []int{1}
}
func (m *ProposalCreateContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProposalCreateContract.Unmarshal(m, b)
}
func (m *ProposalCreateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProposalCreateContract.Marshal(b, m, deterministic)
}
func (m *ProposalCreateContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProposalCreateContract.Merge(m, src)
}
func (m *ProposalCreateContract) XXX_Size() int {
return xxx_messageInfo_ProposalCreateContract.Size(m)
}
func (m *ProposalCreateContract) XXX_DiscardUnknown() {
xxx_messageInfo_ProposalCreateContract.DiscardUnknown(m)
}
var xxx_messageInfo_ProposalCreateContract proto.InternalMessageInfo
func (m *ProposalCreateContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ProposalCreateContract) GetParameters() map[int64]int64 {
if m != nil {
return m.Parameters
}
return nil
}
type ProposalDeleteContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
ProposalId int64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProposalDeleteContract) Reset() { *m = ProposalDeleteContract{} }
func (m *ProposalDeleteContract) String() string { return proto.CompactTextString(m) }
func (*ProposalDeleteContract) ProtoMessage() {}
func (*ProposalDeleteContract) Descriptor() ([]byte, []int) {
return fileDescriptor_b339c1bd781d6d14, []int{2}
}
func (m *ProposalDeleteContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProposalDeleteContract.Unmarshal(m, b)
}
func (m *ProposalDeleteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProposalDeleteContract.Marshal(b, m, deterministic)
}
func (m *ProposalDeleteContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProposalDeleteContract.Merge(m, src)
}
func (m *ProposalDeleteContract) XXX_Size() int {
return xxx_messageInfo_ProposalDeleteContract.Size(m)
}
func (m *ProposalDeleteContract) XXX_DiscardUnknown() {
xxx_messageInfo_ProposalDeleteContract.DiscardUnknown(m)
}
var xxx_messageInfo_ProposalDeleteContract proto.InternalMessageInfo
func (m *ProposalDeleteContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ProposalDeleteContract) GetProposalId() int64 {
if m != nil {
return m.ProposalId
}
return 0
}
func init() {
proto.RegisterType((*ProposalApproveContract)(nil), "protocol.ProposalApproveContract")
proto.RegisterType((*ProposalCreateContract)(nil), "protocol.ProposalCreateContract")
proto.RegisterMapType((map[int64]int64)(nil), "protocol.ProposalCreateContract.ParametersEntry")
proto.RegisterType((*ProposalDeleteContract)(nil), "protocol.ProposalDeleteContract")
}
func init() {
proto.RegisterFile("core/contract/proposal_contract.proto", fileDescriptor_b339c1bd781d6d14)
}
var fileDescriptor_b339c1bd781d6d14 = []byte{
// 309 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0x86, 0xd9, 0x06, 0xa5, 0x4c, 0x5b, 0x2a, 0x41, 0x34, 0x78, 0x31, 0x56, 0x94, 0x9c, 0x36,
0xa2, 0x17, 0x11, 0x7a, 0x88, 0xd5, 0x83, 0xb7, 0x92, 0xa3, 0x07, 0xcb, 0x26, 0x19, 0x6b, 0x30,
0xcd, 0x2c, 0xb3, 0xdb, 0x4a, 0x9f, 0xc0, 0xb7, 0xf3, 0x99, 0x24, 0x69, 0x52, 0x45, 0xbc, 0x08,
0x9e, 0x92, 0xfd, 0xf6, 0x9f, 0x7f, 0xe6, 0xdf, 0x5d, 0x38, 0x4b, 0x89, 0x31, 0x4c, 0xa9, 0xb4,
0xac, 0x52, 0x1b, 0x6a, 0x26, 0x4d, 0x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