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
30cff2f3
Commit
30cff2f3
authored
Nov 04, 2022
by
Ubuntu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
query rate limit without param height
parent
7f25f85b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
contract.sol
contract.sol
+0
-9
request_response.proto
sentryapi/sentry/v1/request_response.proto
+1
-1
No files found.
contract.sol
deleted
100644 → 0
View file @
7f25f85b
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
sentryapi/sentry/v1/request_response.proto
View file @
30cff2f3
...
@@ -8,7 +8,7 @@ import "sentry/v1/resource.proto";
...
@@ -8,7 +8,7 @@ import "sentry/v1/resource.proto";
message
LimitInfoRequest
{
message
LimitInfoRequest
{
// block height to get limit info from contract.
// block height to get limit info from contract.
uint32
height
=
1
;
//
uint32 height = 1;
}
}
message
LimitInfoResponse
{
message
LimitInfoResponse
{
...
...
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