Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MetaProtocol
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
Nebula
MetaProtocol
Commits
07f4b340
Commit
07f4b340
authored
Nov 02, 2022
by
Ubuntu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add contract and block interface
parent
68c90c6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
request_response.proto
meta/sentry/v1/request_response.proto
+5
-0
service.proto
meta/sentry/v1/service.proto
+2
-0
contract.sol
meta/txchecker/contract.sol
+9
-0
No files found.
meta/sentry/v1/request_response.proto
View file @
07f4b340
...
...
@@ -98,3 +98,8 @@ message GetNonceReq {
message
GetNonceResp
{
repeated
string
balance
=
1
;
}
message
BlockNumber
{
uint64
blocknum
=
1
;
}
\ No newline at end of file
meta/sentry/v1/service.proto
View file @
07f4b340
...
...
@@ -3,6 +3,7 @@ syntax = "proto3";
package
meta
.
sentry.v1
;
option
go_package
=
"sentryv1"
;
import
"meta/sentry/v1/request_response.proto"
;
import
"google/protobuf/empty.proto"
;
// SentryService methods for other module.
service
SentryService
{
...
...
@@ -21,4 +22,5 @@ service SentryService {
rpc
GetBalance
(
GetBalanceReq
)
returns
(
GetBalanceResp
)
{};
rpc
GetNonce
(
GetNonceReq
)
returns
(
GetNonceResp
)
{};
rpc
GetBlockNumber
(
google.protobuf.Empty
)
returns
(
BlockNumber
)
{};
}
meta/txchecker/contract.sol
0 → 100644
View file @
07f4b340
pragma solidity ^ 0.8.13;
interface consensus{
function queryBatchHash(uint64 height) external view returns ( bytes calldata);
function queryRate() external view returns (uint32 rate);
function latestHeight() external view returns (uint64);
function batchHash(uint64 height, bytes calldata batchhash)external returns (bool success);
}
\ 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