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
3be4edcc
Commit
3be4edcc
authored
Mar 06, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
str balance
parent
902d8219
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
24 deletions
+23
-24
resource.pb.go
gen/proto/go/witness/v1/resource.pb.go
+22
-23
resource.proto
witness/witness/v1/resource.proto
+1
-1
No files found.
gen/proto/go/witness/v1/resource.pb.go
View file @
3be4edcc
...
@@ -76,7 +76,7 @@ func (m *ValidatedProof) GetTimestamp() uint64 {
...
@@ -76,7 +76,7 @@ func (m *ValidatedProof) GetTimestamp() uint64 {
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:"-"`
...
@@ -114,11 +114,11 @@ func (m *MinerObject) GetMiner() string {
...
@@ -114,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
{
...
@@ -136,24 +136,23 @@ func init() {
...
@@ -136,24 +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
{
// 289 bytes of a gzipped FileDescriptorProto
// 286 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x6c
,
0x90
,
0xb1
,
0x4e
,
0xf3
,
0x30
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x90
,
0xbd
,
0x4e
,
0xc3
,
0x30
,
0x14
,
0x85
,
0x95
,
0xf4
,
0xff
,
0x81
,
0xba
,
0xa2
,
0x43
,
0x84
,
0x50
,
0x40
,
0x0c
,
0x55
,
0xa7
,
0x2e
,
0x14
,
0x85
,
0x15
,
0x87
,
0xbf
,
0xba
,
0xa2
,
0x43
,
0x84
,
0x50
,
0x40
,
0x0c
,
0x55
,
0xa7
,
0x2e
,
0xc4
,
0xc4
,
0xb2
,
0xd8
,
0xca
,
0xd6
,
0x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d
,
0x12
,
0x9a
,
0x1e
,
0xb4
,
0x96
,
0xab
,
0xd0
,
0x58
,
0xae
,
0xbe
,
0x02
,
0x00
,
0x00
,
0xff
,
0xff
,
0xd8
,
0xdb
,
0x38
,
0x6b
,
0xa4
,
0x01
,
0x00
,
0xaf
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x40
,
0xe1
,
0x19
,
0xa6
,
0xa4
,
0x01
,
0x00
,
0x00
,
0x00
,
}
}
witness/witness/v1/resource.proto
View file @
3be4edcc
...
@@ -10,6 +10,6 @@ message ValidatedProof {
...
@@ -10,6 +10,6 @@ message ValidatedProof {
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