Skip to content

Commit a2ac1f6

Browse files
authored
Merge pull request #2 from tronsuper/feature/add_protofile
add storage contract
2 parents 3a2e583 + d9318e6 commit a2ac1f6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
syntax = "proto3";
2+
3+
package protocol;
4+
5+
option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file
6+
//option java_outer_classname = "BuyStorageBytesContract"; //Specify the class name of the generated Java file
7+
option go_package = "github.com/tronprotocol/grpc-gateway/core";
8+
9+
message BuyStorageBytesContract {
10+
bytes owner_address = 1;
11+
int64 bytes = 2; // storage bytes for buy
12+
}
13+
14+
message BuyStorageContract {
15+
bytes owner_address = 1;
16+
int64 quant = 2; // trx quantity for buy storage (sun)
17+
}
18+
19+
message SellStorageContract {
20+
bytes owner_address = 1;
21+
int64 storage_bytes = 2;
22+
}
23+
24+
message UpdateBrokerageContract {
25+
bytes owner_address = 1;
26+
int32 brokerage = 2; // 1 mean 1%
27+
}

0 commit comments

Comments
 (0)