-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add/modify proto to have individual vault quoting parameters
- Loading branch information
Showing
12 changed files
with
1,047 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
package dydxprotocol.vault; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/dydxprotocol/v4-chain/protocol/x/vault/types"; | ||
|
||
// NumShares represents the number of shares in a vault. | ||
message NumShares { | ||
// Number of shares. | ||
bytes num_shares = 2 [ | ||
(gogoproto.customtype) = | ||
"github.com/dydxprotocol/v4-chain/protocol/dtypes.SerializableInt", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
// OwnerShare is a type for owner shares in a vault. | ||
message OwnerShare { | ||
string owner = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; | ||
NumShares shares = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.