File tree Expand file tree Collapse file tree 4 files changed +433
-2663
lines changed
packages/xchain-thorchain Expand file tree Collapse file tree 4 files changed +433
-2663
lines changed Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+ package common ;
3+
4+ option go_package = "gitlab.com/thorchain/thornode/v3/common" ;
5+
6+ // Minimal common.proto with only types needed by MsgDeposit
7+ message Asset {
8+ string chain = 1 ;
9+ string symbol = 2 ;
10+ string ticker = 3 ;
11+ bool synth = 4 ;
12+ bool trade = 5 ;
13+ bool secured = 6 ;
14+ }
15+
16+ message Coin {
17+ Asset asset = 1 ;
18+ string amount = 2 ;
19+ int64 decimals = 3 ;
20+ }
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ echo "Checking proto files"
4444tput sgr0
4545MISSING_FILES=0
4646for proto_file in \
47- " $TMP_DIR /thornode/proto/thorchain/v1/common/common.proto" \
4847 " $TMP_DIR /thornode/proto/thorchain/v1/types/msg_deposit.proto" \
4948 " $TMP_DIR /thornode/proto/thorchain/v1/types/msg_send.proto" ; do
5049 if [ ! -f " $proto_file " ]; then
@@ -60,6 +59,17 @@ if [ $MISSING_FILES -eq 1 ]; then
6059 exit 1
6160fi
6261
62+ # Copy minimal common.proto to temp directory
63+ tput setaf 2
64+ echo " Using minimal common.proto to avoid bloat"
65+ tput sgr0
66+ mkdir -p " $TMP_DIR /thornode/proto/thorchain/v1/common"
67+ if ! cp common_minimal.proto " $TMP_DIR /thornode/proto/thorchain/v1/common/common.proto" ; then
68+ echo " Error: Failed to copy minimal common.proto"
69+ exit 1
70+ fi
71+ echo " ✓ Using minimal common.proto"
72+
6373# Download cosmos/base/v1beta1/coin.proto from cosmossdk if not exists
6474COSMOS_COIN_PROTO=" $TMP_DIR /thornode/third_party/proto/cosmos/base/v1beta1/coin.proto"
6575if [ ! -f " $COSMOS_COIN_PROTO " ]; then
You can’t perform that action at this time.
0 commit comments