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
61eaa9b7
Commit
61eaa9b7
authored
Dec 09, 2022
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update base
parent
1b0e8466
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
33 deletions
+42
-33
batchtx.proto
baseapi/base/v1/batchtx.proto
+4
-0
eth_blocks.proto
baseapi/base/v1/eth_blocks.proto
+1
-5
eth_tx.proto
baseapi/base/v1/eth_tx.proto
+0
-9
meta.proto
baseapi/base/v1/meta.proto
+24
-19
resource.proto
baseapi/base/v1/resource.proto
+13
-0
No files found.
baseapi/base/v1/batchtx.proto
View file @
61eaa9b7
...
...
@@ -7,9 +7,13 @@ import "google/protobuf/any.proto";
import
"base/v1/resource.proto"
;
import
"base/v1/meta.proto"
;
// BatchTx include one batchHash and all original tx contained in batch.
// it will broadcast to nebula over p2p module, and then save in p2p module.
// Amount metaprooftx make a batch tx, and generate a batch_hash,
message
BatchTx
{
Hash
batch_hash
=
1
;
repeated
MetaProofTx
txs
=
2
;
}
\ No newline at end of file
baseapi/base/v1/eth_blocks.proto
View file @
61eaa9b7
...
...
@@ -8,10 +8,6 @@ import "base/v1/resource.proto";
import
"base/v1/eth_tx.proto"
;
message
EthBloom
{
bytes
data
=
1
;
}
message
EthBlockHeader
{
Hash
parent_hash
=
1
;
Hash
uncle_hash
=
2
;
...
...
@@ -21,7 +17,7 @@ message EthBlockHeader {
Hash
txs_root
=
6
;
Hash
receipts_root
=
7
;
BigInt
block_number
=
8
;
Eth
Bloom
block_bloom
=
9
;
Bloom
block_bloom
=
9
;
BigInt
difficulty
=
10
;
uint64
gas_limit
=
11
;
uint64
gas_used
=
12
;
...
...
baseapi/base/v1/eth_tx.proto
View file @
61eaa9b7
...
...
@@ -6,15 +6,6 @@ import "google/protobuf/timestamp.proto";
import
"google/protobuf/any.proto"
;
import
"base/v1/resource.proto"
;
message
AccessTuple
{
Address
address
=
1
;
repeated
Hash
storage_keys
=
2
;
}
message
AccessList
{
repeated
AccessTuple
access_list
=
1
;
}
message
EthTxParam
{
Address
from
=
1
;
Address
to
=
2
;
...
...
baseapi/base/v1/meta.proto
View file @
61eaa9b7
...
...
@@ -5,7 +5,6 @@ package base.v1;
import
"google/protobuf/timestamp.proto"
;
import
"google/protobuf/any.proto"
;
import
"base/v1/resource.proto"
;
import
"base/v1/eth_tx.proto"
;
message
MetaProof
{
bytes
rset
=
1
;
...
...
@@ -15,19 +14,25 @@ message MetaProof{
}
message
MetaTxBase
{
BigInt
chain_id
=
1
;
uint64
nonce
=
2
;
BigInt
gas_price
=
3
;
uint64
gas
=
4
;
Address
to
=
5
;
BigInt
value
=
6
;
bytes
data
=
7
;
AccessList
access_list
=
8
;
BigInt
v
=
9
;
BigInt
r
=
10
;
BigInt
s
=
11
;
Address
from
=
12
;
google.protobuf.Timestamp
receive_time
=
13
;
// tx_type 用于指示当前的交易类型.
uint32
tx_type
=
1
;
BigInt
chain_id
=
2
;
uint64
nonce
=
3
;
BigInt
gas_price
=
4
;
uint64
gas
=
5
;
Address
to
=
6
;
BigInt
value
=
7
;
bytes
data
=
8
;
AccessList
access_list
=
9
;
BigInt
v
=
10
;
BigInt
r
=
11
;
BigInt
s
=
12
;
Address
from
=
13
;
google.protobuf.Timestamp
receive_time
=
14
;
// expire block 用于指定当区块超过此高度后,交易即使被打包也不执行.
BigInt
expired_block
=
15
;
}
message
MetaProofTx
{
...
...
@@ -35,8 +40,8 @@ message MetaProofTx {
MetaProof
proof
=
2
;
}
message
MetaT
x
{
message
MetaT
ransaction
{
google.protobuf.Any
tx
=
1
;
}
message
MetaBlockHeader
{
...
...
@@ -47,7 +52,7 @@ message MetaBlockHeader {
Hash
txs_root
=
5
;
Hash
receipts_root
=
6
;
BigInt
block_number
=
7
;
Eth
Bloom
block_bloom
=
8
;
Bloom
block_bloom
=
8
;
uint64
gas_limit
=
9
;
uint64
gas_used
=
10
;
uint64
timestamp
=
11
;
...
...
@@ -55,11 +60,11 @@ message MetaBlockHeader {
}
message
MetaBlockBody
{
repeated
MetaT
x
txs
=
1
;
repeated
MetaT
ransaction
txs
=
1
;
}
message
MetaBlock
{
MetaBlockHeader
header
=
1
;
repeated
MetaT
x
txs
=
2
;
repeated
MetaT
ransaction
txs
=
2
;
}
baseapi/base/v1/resource.proto
View file @
61eaa9b7
...
...
@@ -36,3 +36,16 @@ message Account {
bytes
balance
=
3
;
Hash
state_root
=
4
;
}
message
Bloom
{
bytes
data
=
1
;
}
message
AccessTuple
{
Address
address
=
1
;
repeated
Hash
storage_keys
=
2
;
}
message
AccessList
{
repeated
AccessTuple
access_list
=
1
;
}
\ 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