Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ protoc \
--ts_proto_out="${outDir}" \
--proto_path="./proto" \
--proto_path="./third_party/proto" \
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=true,exportCommonSymbols=false" \
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages,exportCommonSymbols=false" \
$(find "proto" -name '*.proto')


# Remove unnecessary codec files
rm -rf \
${outDir}/amino/ \
${outDir}/cosmos_proto/ \
${outDir}/gogoproto/ \
${outDir}/google/api/ \
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shapeshiftoss/proto-tx-builder",
"version": "0.8.0",
"version": "0.10.0",
"description": "Builds and signs new-style protobuf SIGN_MODE_DIRECT Cosmos SDK transactions",
"author": "ShapeShift DAO",
"license": "MIT",
Expand Down Expand Up @@ -58,5 +58,3 @@
]
}
}


1 change: 0 additions & 1 deletion proto/arkeo/claim/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package arkeo.claim;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "arkeo/claim/params.proto";
import "arkeo/claim/claim_record.proto";

Expand Down
32 changes: 7 additions & 25 deletions proto/thorchain/v1/common/common.proto
Original file line number Diff line number Diff line change
@@ -1,43 +1,25 @@
syntax = "proto3";
package common;

option go_package = "gitlab.com/thorchain/thornode/common";
option go_package = "gitlab.com/thorchain/thornode/v3/common";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.stringer_all) = false;
option (gogoproto.goproto_getters_all) = false;

import "amino/amino.proto";
import "gogoproto/gogo.proto";

message Asset {
string chain = 1 [(gogoproto.casttype) = "Chain"];
string symbol = 2 [(gogoproto.casttype) = "Symbol"];
string ticker = 3 [(gogoproto.casttype) = "Ticker"];
bool synth = 4;
bool trade = 5;
bool secured = 6;
}

message Coin {
Asset asset = 1 [(gogoproto.nullable) = false];
string amount = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", (gogoproto.nullable) = false];
Asset asset = 1 [(gogoproto.jsontag) = "asset", (gogoproto.nullable) = false, (gogoproto.customtype) = "Asset", (amino.encoding) = "asset"];
string amount = 2 [(gogoproto.jsontag) = "amount", (gogoproto.customtype) = "cosmossdk.io/math.Uint", (gogoproto.nullable) = false];
int64 decimals = 3;
}

// PubKeySet contains two pub keys , secp256k1 and ed25519
message PubKeySet {
string secp256k1 = 1 [(gogoproto.casttype) = "PubKey", (gogoproto.customname) = "Secp256k1"];
string ed25519 = 2 [(gogoproto.casttype) = "PubKey"];
}

message Tx {
string id = 1 [(gogoproto.casttype) = "TxID", (gogoproto.customname) = "ID"];
string chain = 2 [(gogoproto.casttype) = "Chain"];
string from_address = 3 [(gogoproto.casttype) = "Address"];
string to_address = 4 [(gogoproto.casttype) = "Address"];
repeated Coin coins = 5 [(gogoproto.castrepeated) = "Coins", (gogoproto.nullable) = false];
repeated Coin gas = 6 [(gogoproto.castrepeated) = "Gas", (gogoproto.nullable) = false];
string memo = 7;
}

message Fee {
repeated Coin coins = 1 [(gogoproto.castrepeated) = "Coins", (gogoproto.nullable) = false];
string pool_deduct = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", (gogoproto.nullable) = false];
}
}
16 changes: 16 additions & 0 deletions proto/thorchain/v1/types/msg_deposit.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax = "proto3";
package types;

option go_package = "gitlab.com/thorchain/thornode/v3/x/thorchain/types";

import "thorchain/v1/common/common.proto";
import "gogoproto/gogo.proto";
import "amino/amino.proto";

message MsgDeposit {
option (amino.name) = "thorchain/MsgDeposit";

repeated common.Coin coins = 1 [(gogoproto.castrepeated) = "gitlab.com/thorchain/thornode/v3/common.Coins", (gogoproto.nullable) = false];
string memo = 2;
bytes signer = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (amino.encoding) = "bech32"];
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
syntax = "proto3";
package types;

option go_package = "gitlab.com/thorchain/thornode/x/thorchain/types";
option go_package = "gitlab.com/thorchain/thornode/v3/x/thorchain/types";

import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
import "amino/amino.proto";

message MsgSend {
bytes from_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
bytes to_address = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
option (amino.name) = "thorchain/MsgSend";

bytes from_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (amino.encoding) = "bech32"];
bytes to_address = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress", (amino.encoding) = "bech32"];
repeated cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false];
}
52 changes: 0 additions & 52 deletions proto/thorchain/v1/x/thorchain/genesis.proto

This file was deleted.

8 changes: 0 additions & 8 deletions proto/thorchain/v1/x/thorchain/types/genesis.proto

This file was deleted.

22 changes: 0 additions & 22 deletions proto/thorchain/v1/x/thorchain/types/misc.proto

This file was deleted.

19 changes: 0 additions & 19 deletions proto/thorchain/v1/x/thorchain/types/msg_add_liquidity.proto

This file was deleted.

11 changes: 0 additions & 11 deletions proto/thorchain/v1/x/thorchain/types/msg_ban.proto

This file was deleted.

16 changes: 0 additions & 16 deletions proto/thorchain/v1/x/thorchain/types/msg_bond.proto

This file was deleted.

12 changes: 0 additions & 12 deletions proto/thorchain/v1/x/thorchain/types/msg_consolidate.proto

This file was deleted.

13 changes: 0 additions & 13 deletions proto/thorchain/v1/x/thorchain/types/msg_deposit.proto

This file was deleted.

15 changes: 0 additions & 15 deletions proto/thorchain/v1/x/thorchain/types/msg_donate.proto

This file was deleted.

12 changes: 0 additions & 12 deletions proto/thorchain/v1/x/thorchain/types/msg_errata.proto

This file was deleted.

13 changes: 0 additions & 13 deletions proto/thorchain/v1/x/thorchain/types/msg_leave.proto

This file was deleted.

18 changes: 0 additions & 18 deletions proto/thorchain/v1/x/thorchain/types/msg_manage_thorname.proto

This file was deleted.

13 changes: 0 additions & 13 deletions proto/thorchain/v1/x/thorchain/types/msg_migrate.proto

This file was deleted.

12 changes: 0 additions & 12 deletions proto/thorchain/v1/x/thorchain/types/msg_mimir.proto

This file was deleted.

14 changes: 0 additions & 14 deletions proto/thorchain/v1/x/thorchain/types/msg_network_fee.proto

This file was deleted.

Loading