Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OdysseusProtocol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
OdysseusProtocol
Commits
a7c1027a
Commit
a7c1027a
authored
Mar 07, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.wuban.net.cn/odysseus/odysseus-protocol
parents
719f957f
3be4edcc
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1079 additions
and
26 deletions
+1079
-26
request_response.pb.go
gen/proto/go/nodemanager/v1/request_response.pb.go
+2
-0
request_response.pb.go
gen/proto/go/validator/v1/request_response.pb.go
+594
-0
resource.pb.go
gen/proto/go/validator/v1/resource.pb.go
+149
-0
service.pb.go
gen/proto/go/validator/v1/service.pb.go
+49
-0
service_grpc.pb.go
gen/proto/go/validator/v1/service_grpc.pb.go
+249
-0
resource.pb.go
gen/proto/go/witness/v1/resource.pb.go
+33
-24
resource.proto
witness/witness/v1/resource.proto
+3
-2
No files found.
gen/proto/go/nodemanager/v1/request_response.pb.go
View file @
a7c1027a
...
@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
...
@@ -24,6 +24,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type
WorkerMessage
struct
{
type
WorkerMessage
struct
{
// Types that are valid to be assigned to Message:
// Types that are valid to be assigned to Message:
//
// *WorkerMessage_HeartbeatResponse
// *WorkerMessage_HeartbeatResponse
// *WorkerMessage_SubmitTaskResult
// *WorkerMessage_SubmitTaskResult
// *WorkerMessage_Status
// *WorkerMessage_Status
...
@@ -205,6 +206,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
...
@@ -205,6 +206,7 @@ func (*WorkerMessage) XXX_OneofWrappers() []interface{} {
type
ManagerMessage
struct
{
type
ManagerMessage
struct
{
// Types that are valid to be assigned to Message:
// Types that are valid to be assigned to Message:
//
// *ManagerMessage_HeartbeatRequest
// *ManagerMessage_HeartbeatRequest
// *ManagerMessage_PushTaskMessage
// *ManagerMessage_PushTaskMessage
// *ManagerMessage_ProofTaskResult
// *ManagerMessage_ProofTaskResult
...
...
gen/proto/go/validator/v1/request_response.pb.go
0 → 100644
View file @
a7c1027a
This diff is collapsed.
Click to expand it.
gen/proto/go/validator/v1/resource.pb.go
0 → 100644
View file @
a7c1027a
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: validator/v1/resource.proto
package
validatorv1
import
(
fmt
"fmt"
proto
"github.com/gogo/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
.
GoGoProtoPackageIsVersion3
// please upgrade the proto package
type
ValidatedProof
struct
{
Balance
uint64
`protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
Workload
uint64
`protobuf:"varint,2,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ValidatedProof
)
Reset
()
{
*
m
=
ValidatedProof
{}
}
func
(
m
*
ValidatedProof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ValidatedProof
)
ProtoMessage
()
{}
func
(
*
ValidatedProof
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_f97d5d703a2bfce9
,
[]
int
{
0
}
}
func
(
m
*
ValidatedProof
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ValidatedProof
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ValidatedProof
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ValidatedProof
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ValidatedProof
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ValidatedProof
.
Merge
(
m
,
src
)
}
func
(
m
*
ValidatedProof
)
XXX_Size
()
int
{
return
xxx_messageInfo_ValidatedProof
.
Size
(
m
)
}
func
(
m
*
ValidatedProof
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ValidatedProof
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ValidatedProof
proto
.
InternalMessageInfo
func
(
m
*
ValidatedProof
)
GetBalance
()
uint64
{
if
m
!=
nil
{
return
m
.
Balance
}
return
0
}
func
(
m
*
ValidatedProof
)
GetWorkload
()
uint64
{
if
m
!=
nil
{
return
m
.
Workload
}
return
0
}
type
MinerObject
struct
{
Miner
string
`protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"`
Balance
uint64
`protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
Workload
uint64
`protobuf:"varint,3,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
MinerObject
)
Reset
()
{
*
m
=
MinerObject
{}
}
func
(
m
*
MinerObject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
MinerObject
)
ProtoMessage
()
{}
func
(
*
MinerObject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_f97d5d703a2bfce9
,
[]
int
{
1
}
}
func
(
m
*
MinerObject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_MinerObject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
MinerObject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_MinerObject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
MinerObject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_MinerObject
.
Merge
(
m
,
src
)
}
func
(
m
*
MinerObject
)
XXX_Size
()
int
{
return
xxx_messageInfo_MinerObject
.
Size
(
m
)
}
func
(
m
*
MinerObject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_MinerObject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_MinerObject
proto
.
InternalMessageInfo
func
(
m
*
MinerObject
)
GetMiner
()
string
{
if
m
!=
nil
{
return
m
.
Miner
}
return
""
}
func
(
m
*
MinerObject
)
GetBalance
()
uint64
{
if
m
!=
nil
{
return
m
.
Balance
}
return
0
}
func
(
m
*
MinerObject
)
GetWorkload
()
uint64
{
if
m
!=
nil
{
return
m
.
Workload
}
return
0
}
func
init
()
{
proto
.
RegisterType
((
*
ValidatedProof
)(
nil
),
"validator.v1.ValidatedProof"
)
proto
.
RegisterType
((
*
MinerObject
)(
nil
),
"validator.v1.MinerObject"
)
}
func
init
()
{
proto
.
RegisterFile
(
"validator/v1/resource.proto"
,
fileDescriptor_f97d5d703a2bfce9
)
}
var
fileDescriptor_f97d5d703a2bfce9
=
[]
byte
{
// 268 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xe2
,
0x92
,
0x2e
,
0x4b
,
0xcc
,
0xc9
,
0x4c
,
0x49
,
0x2c
,
0xc9
,
0x2f
,
0xd2
,
0x2f
,
0x33
,
0xd4
,
0x2f
,
0x4a
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c
,
0x1c
,
0xfd
,
0xf4
,
0xd4
,
0x3c
,
0x7d
,
0x30
,
0x47
,
0x3f
,
0x3d
,
0x5f
,
0x1f
,
0x39
,
0x98
,
0xac
,
0xe1
,
0x9c
,
0x32
,
0xc3
,
0x45
,
0x4c
,
0xcc
,
0x61
,
0x11
,
0x11
,
0xab
,
0x98
,
0x78
,
0xc2
,
0xe0
,
0x56
,
0x86
,
0x19
,
0x9e
,
0x42
,
0xe2
,
0xc6
,
0x84
,
0x19
,
0x3e
,
0x62
,
0x92
,
0x40
,
0xe6
,
0xc6
,
0xb8
,
0x07
,
0x38
,
0xf9
,
0xa6
,
0x96
,
0x24
,
0xa6
,
0x24
,
0x96
,
0x24
,
0xbe
,
0x62
,
0xe2
,
0x85
,
0x4b
,
0x59
,
0x59
,
0x85
,
0x19
,
0x26
,
0xb1
,
0x81
,
0x6d
,
0x34
,
0x06
,
0x04
,
0x00
,
0x00
,
0xff
,
0xff
,
0x75
,
0x64
,
0xf9
,
0x45
,
0x98
,
0x01
,
0x00
,
0x00
,
}
gen/proto/go/validator/v1/service.pb.go
0 → 100644
View file @
a7c1027a
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: validator/v1/service.proto
package
validatorv1
import
(
fmt
"fmt"
proto
"github.com/gogo/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
.
GoGoProtoPackageIsVersion3
// please upgrade the proto package
func
init
()
{
proto
.
RegisterFile
(
"validator/v1/service.proto"
,
fileDescriptor_2394d88e128af63d
)
}
var
fileDescriptor_2394d88e128af63d
=
[]
byte
{
// 337 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0x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2f
,
0xbe
,
0x03
,
0x00
,
0x00
,
0xff
,
0xff
,
0xbb
,
0xc9
,
0xd4
,
0xb3
,
0xed
,
0x02
,
0x00
,
0x00
,
}
gen/proto/go/validator/v1/service_grpc.pb.go
0 → 100644
View file @
a7c1027a
This diff is collapsed.
Click to expand it.
gen/proto/go/witness/v1/resource.pb.go
View file @
a7c1027a
...
@@ -21,8 +21,9 @@ var _ = math.Inf
...
@@ -21,8 +21,9 @@ var _ = math.Inf
const
_
=
proto
.
GoGoProtoPackageIsVersion3
// please upgrade the proto package
const
_
=
proto
.
GoGoProtoPackageIsVersion3
// please upgrade the proto package
type
ValidatedProof
struct
{
type
ValidatedProof
struct
{
Balance
uint64
`protobuf:"varint
,1,opt,name=balance,proto3" json:"balance,omitempty"`
Balance
string
`protobuf:"bytes
,1,opt,name=balance,proto3" json:"balance,omitempty"`
Workload
uint64
`protobuf:"varint,2,opt,name=workload,proto3" json:"workload,omitempty"`
Workload
uint64
`protobuf:"varint,2,opt,name=workload,proto3" json:"workload,omitempty"`
Timestamp
uint64
`protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
@@ -52,11 +53,11 @@ func (m *ValidatedProof) XXX_DiscardUnknown() {
...
@@ -52,11 +53,11 @@ func (m *ValidatedProof) XXX_DiscardUnknown() {
var
xxx_messageInfo_ValidatedProof
proto
.
InternalMessageInfo
var
xxx_messageInfo_ValidatedProof
proto
.
InternalMessageInfo
func
(
m
*
ValidatedProof
)
GetBalance
()
uint64
{
func
(
m
*
ValidatedProof
)
GetBalance
()
string
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Balance
return
m
.
Balance
}
}
return
0
return
""
}
}
func
(
m
*
ValidatedProof
)
GetWorkload
()
uint64
{
func
(
m
*
ValidatedProof
)
GetWorkload
()
uint64
{
...
@@ -66,9 +67,16 @@ func (m *ValidatedProof) GetWorkload() uint64 {
...
@@ -66,9 +67,16 @@ func (m *ValidatedProof) GetWorkload() uint64 {
return
0
return
0
}
}
func
(
m
*
ValidatedProof
)
GetTimestamp
()
uint64
{
if
m
!=
nil
{
return
m
.
Timestamp
}
return
0
}
type
MinerObject
struct
{
type
MinerObject
struct
{
Miner
string
`protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"`
Miner
string
`protobuf:"bytes,1,opt,name=miner,proto3" json:"miner,omitempty"`
Balance
uint64
`protobuf:"varint
,2,opt,name=balance,proto3" json:"balance,omitempty"`
Balance
string
`protobuf:"bytes
,2,opt,name=balance,proto3" json:"balance,omitempty"`
Workload
uint64
`protobuf:"varint,3,opt,name=workload,proto3" json:"workload,omitempty"`
Workload
uint64
`protobuf:"varint,3,opt,name=workload,proto3" json:"workload,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
@@ -106,11 +114,11 @@ func (m *MinerObject) GetMiner() string {
...
@@ -106,11 +114,11 @@ func (m *MinerObject) GetMiner() string {
return
""
return
""
}
}
func
(
m
*
MinerObject
)
GetBalance
()
uint64
{
func
(
m
*
MinerObject
)
GetBalance
()
string
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Balance
return
m
.
Balance
}
}
return
0
return
""
}
}
func
(
m
*
MinerObject
)
GetWorkload
()
uint64
{
func
(
m
*
MinerObject
)
GetWorkload
()
uint64
{
...
@@ -128,22 +136,23 @@ func init() {
...
@@ -128,22 +136,23 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"witness/v1/resource.proto"
,
fileDescriptor_8558ebcb7c19658f
)
}
func
init
()
{
proto
.
RegisterFile
(
"witness/v1/resource.proto"
,
fileDescriptor_8558ebcb7c19658f
)
}
var
fileDescriptor_8558ebcb7c19658f
=
[]
byte
{
var
fileDescriptor_8558ebcb7c19658f
=
[]
byte
{
// 270 bytes of a gzipped FileDescriptorProto
// 286 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xe2
,
0x92
,
0x2c
,
0xcf
,
0x2c
,
0xc9
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x90
,
0xbd
,
0x4e
,
0xc3
,
0x30
,
0x4b
,
0x2d
,
0x2e
,
0xd6
,
0x2f
,
0x33
,
0xd4
,
0x2f
,
0x4a
,
0x2d
,
0xce
,
0x2f
,
0x2d
,
0x4a
,
0x4e
,
0xd5
,
0x14
,
0x85
,
0x15
,
0x87
,
0xbf
,
0xba
,
0xa2
,
0x43
,
0x84
,
0x50
,
0x40
,
0x0c
,
0x55
,
0xa7
,
0x2e
,
0xc4
,
0x2b
,
0x28
,
0xca
,
0x2f
,
0xc9
,
0x17
,
0xe2
,
0x82
,
0x4a
,
0xe9
,
0x95
,
0x19
,
0x2a
,
0xb9
,
0x71
,
0xf1
,
0xb2
,
0xd8
,
0xca
,
0x96
,
0xa5
,
0x53
,
0x45
,
0x94
,
0x21
,
0x2d
,
0xa8
,
0x8b
,
0x63
,
0x9b
,
0x10
,
0x48
,
0x85
,
0x25
,
0xe6
,
0x64
,
0xa6
,
0x24
,
0x96
,
0xa4
,
0xa6
,
0x04
,
0x14
,
0xe5
,
0xe7
,
0xa7
,
0x09
,
0x49
,
0x72
,
0x2b
,
0xdb
,
0x49
,
0xc5
,
0xeb
,
0x30
,
0xb2
,
0xf1
,
0x1a
,
0x3c
,
0x06
,
0x23
,
0x4f
,
0x81
,
0x1a
,
0x70
,
0xb1
,
0x27
,
0x25
,
0xe6
,
0x24
,
0x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x5a
,
0x0c
,
0x1f
,
0x31
,
0x89
,
0x21
,
0x38
,
0x31
,
0xee
,
0x01
,
0x4e
,
0xbe
,
0xa9
,
0x25
,
0x89
,
0x29
,
0x89
,
0x20
,
0x19
,
0x90
,
0x7e
,
0xbe
,
0x6b
,
0x7b
,
0x36
,
0xf4
,
0x05
,
0xb9
,
0xcb
,
0xd5
,
0xea
,
0x15
,
0xe1
,
0x25
,
0x89
,
0xaf
,
0x98
,
0xb8
,
0xa1
,
0x12
,
0x56
,
0x56
,
0x61
,
0x86
,
0x49
,
0x6c
,
0x60
,
0x5b
,
0x8c
,
0xa5
,
0x95
,
0x25
,
0xf4
,
0xbd
,
0x83
,
0x75
,
0x42
,
0x3f
,
0xd0
,
0x69
,
0x0f
,
0xeb
,
0x79
,
0x14
,
0x2e
,
0x01
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0x62
,
0xbb
,
0x6d
,
0x1d
,
0x86
,
0x01
,
0x00
,
0x00
,
0xa4
,
0x61
,
0x82
,
0x19
,
0xf6
,
0x89
,
0x86
,
0x36
,
0x98
,
0xcd
,
0x12
,
0x9a
,
0x1e
,
0xb4
,
0x96
,
0xab
,
0xaf
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x40
,
0xe1
,
0x19
,
0xa6
,
0xa4
,
0x01
,
0x00
,
0x00
,
}
}
witness/witness/v1/resource.proto
View file @
a7c1027a
...
@@ -3,12 +3,13 @@ syntax = "proto3";
...
@@ -3,12 +3,13 @@ syntax = "proto3";
package
witness
.
v1
;
package
witness
.
v1
;
message
ValidatedProof
{
message
ValidatedProof
{
uint64
balance
=
1
;
string
balance
=
1
;
uint64
workload
=
2
;
uint64
workload
=
2
;
uint64
timestamp
=
3
;
}
}
message
MinerObject
{
message
MinerObject
{
string
miner
=
1
;
string
miner
=
1
;
uint64
balance
=
2
;
string
balance
=
2
;
uint64
workload
=
3
;
uint64
workload
=
3
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment