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
9f40d1cf
Commit
9f40d1cf
authored
Nov 04, 2022
by
Ubuntu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update proto
parent
733f4f9d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
16 deletions
+50
-16
account_req_res.proto
nebulaapi/nebula/v1/account_req_res.proto
+20
-1
service.proto
p2papi/p2p/v1/service.proto
+2
-2
request_response.proto
sentryapi/sentry/v1/request_response.proto
+1
-0
service.proto
sentryapi/sentry/v1/service.proto
+7
-6
request_response.proto
txcheckerapi/txchecker/v1/request_response.proto
+20
-7
No files found.
nebulaapi/nebula/v1/account_req_res.proto
View file @
9f40d1cf
...
@@ -129,6 +129,25 @@ message NonceResponse {
...
@@ -129,6 +129,25 @@ message NonceResponse {
bytes
nonce
=
3
;
bytes
nonce
=
3
;
}
}
message
NonceRepeatedRequest
{
// request address
repeated
bytes
address
=
1
;
// request block number
repeated
bytes
block_id
=
2
;
}
message
NonceRepeatedResponse
{
// the address
repeated
bytes
address
=
1
;
// block height
repeated
bytes
block_id
=
2
;
// nonce
repeated
bytes
nonce
=
3
;
}
message
TransactionCountRequest
{
message
TransactionCountRequest
{
// request address
// request address
bytes
address
=
1
;
bytes
address
=
1
;
...
...
p2papi/p2p/v1/service.proto
View file @
9f40d1cf
...
@@ -4,7 +4,7 @@ package p2p.v1;
...
@@ -4,7 +4,7 @@ package p2p.v1;
import
"p2p/v1/request_response.proto"
;
import
"p2p/v1/request_response.proto"
;
service
P2PService
{
service
P2PService
{
rpc
Broad
C
astMsg
(
BroadCastRequest
)
returns
(
BroadCastResponse
)
{}
rpc
Broad
c
astMsg
(
BroadCastRequest
)
returns
(
BroadCastResponse
)
{}
rpc
Send
Data
(
SendDataRequest
)
returns
(
SendDataResponse
)
{}
rpc
Send
Msg
(
SendDataRequest
)
returns
(
SendDataResponse
)
{}
rpc
SubscribeMsg
(
SubscribeMsgRequest
)
returns
(
SubscribeMsgResponse
)
{}
rpc
SubscribeMsg
(
SubscribeMsgRequest
)
returns
(
SubscribeMsgResponse
)
{}
}
}
sentryapi/sentry/v1/request_response.proto
View file @
9f40d1cf
...
@@ -20,6 +20,7 @@ message LimitInfoResponse {
...
@@ -20,6 +20,7 @@ message LimitInfoResponse {
message
CommitBatchTxRequest
{
message
CommitBatchTxRequest
{
bytes
txdata
=
1
;
bytes
txdata
=
1
;
int64
size
=
2
;
}
}
message
CommitBatchTxResponse
{
message
CommitBatchTxResponse
{
...
...
sentryapi/sentry/v1/service.proto
View file @
9f40d1cf
...
@@ -7,19 +7,20 @@ import "google/protobuf/empty.proto";
...
@@ -7,19 +7,20 @@ import "google/protobuf/empty.proto";
// SentryService methods for other module.
// SentryService methods for other module.
service
SentryService
{
service
SentryService
{
// LimitInfo get latest param for make batch tx.
// LimitInfo get latest param for make batch tx.
rpc
LimitInfo
(
LimitInfoRequest
)
returns
(
LimitInfoResponse
)
{}
rpc
Get
LimitInfo
(
LimitInfoRequest
)
returns
(
LimitInfoResponse
)
{}
// CommitBatchTx used to commit batch tx to tx-sort-network
// CommitBatchTx used to commit batch tx to tx-sort-network
rpc
CommitBatchTx
(
CommitBatchTxRequest
)
returns
(
CommitBatchTxResponse
)
{}
rpc
CommitBatchTx
(
CommitBatchTxRequest
)
returns
(
CommitBatchTxResponse
)
{}
// GetTxReceipt from tx-sort-network with txhash
// GetTxReceipt from tx-sort-network with txhash
rpc
GetReceipt
(
GetReceiptRequest
)
returns
(
GetReceiptResponse
)
{}
rpc
GetBatchTxResult
(
GetReceiptRequest
)
returns
(
GetReceiptResponse
)
{}
//for val
// GetNewBlock used for nebula get new virtual block info from contract with lastblock.
// GetNewBlock used for nebula get new virtual block info from contract with lastblock.
rpc
GetNewBlock
(
GetNewBlockRequest
)
returns
(
GetNewBlockResponse
)
{}
rpc
GetNewBlock
(
GetNewBlockRequest
)
returns
(
GetNewBlockResponse
)
{}
// CommitBlock used for nebula commit new block and state info to contract.
// CommitBlock used for nebula commit new block and state info to contract.
rpc
CommitBlock
(
CommitBlockRequest
)
returns
(
CommitBlockResponse
)
{}
rpc
CommitBlock
(
CommitBlockRequest
)
returns
(
CommitBlockResponse
)
{}
// GetConsensusedBlock used for nebula get special block consensus result.
// GetConsensusedBlock used for nebula get special block consensus result.
rpc
GetCon
sensus
edBlock
(
GetConsensusedBlockRequest
)
returns
(
GetConsensusedBlockResponse
)
{}
rpc
GetCon
firm
edBlock
(
GetConsensusedBlockRequest
)
returns
(
GetConsensusedBlockResponse
)
{}
rpc
GetBalance
(
GetBalanceReq
)
returns
(
GetBalanceResp
)
{};
//
rpc GetBalance(GetBalanceReq) returns (GetBalanceResp) {};
rpc
GetNonce
(
GetNonceReq
)
returns
(
GetNonceResp
)
{};
//
rpc GetNonce(GetNonceReq) returns (GetNonceResp) {};
rpc
GetBlockNumber
(
google.protobuf.Empty
)
returns
(
BlockNumber
)
{};
//
rpc GetBlockNumber(google.protobuf.Empty) returns (BlockNumber) {};
}
}
txcheckerapi/txchecker/v1/request_response.proto
View file @
9f40d1cf
...
@@ -9,18 +9,31 @@ import "txchecker/v1/resource.proto";
...
@@ -9,18 +9,31 @@ import "txchecker/v1/resource.proto";
// The standard BatchGet request definition.
// The standard BatchGet request definition.
message
BatchCheckTxRequest
{
message
BatchCheckTxRequest
{
// The ids of the requested shelves.
// The ids of the requested shelves.
repeated
bytes
txs
=
1
;
//with rw and block hash
//repeated bytes tx = 1; //with rw and block hash
repeated
bytes
from
=
2
;
//repeated bytes type= 2;
}
repeated
bytes
tx
=
1
;
repeated
bytes
From
=
2
;
repeated
int8
type
=
3
;
}
// type TxWithFrom struct {
//ype checkTx struct{
// tx interface
// From []byte
// From []byte
// type
//}
// type tx struct{
// checkTx
// RW []byte
// RW []byte
// Tx *types.Transaction
// wset []byte
// BlockHash []byte ???
// rset []byte
// proof []byte
// stateblocknum int64
// }
// }
// The standard BatchGet response definition.
// The standard BatchGet response definition.
message
BatchCheckTxResponse
{
message
BatchCheckTxResponse
{
// The retrieved shelves.
// The retrieved shelves.
...
...
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