forked from palomachain/paloma
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add gravity proposals so they can be decoded (#1213)
# Related Github tickets - Closes #1832 # Background We already have gov proposals from the gravity module on chain, so we need to register them in order for them to be decoded. We need to add them in the `gravity` proto directory, so the proto file names match the proto package, otherwise we get warnings on the command line. The resulting gravity types reside within the `skyway/types` dir. # Testing completed - [x] test coverage exists or has been added/updated - [x] tested in a private testnet # Breaking changes - [x] I have checked my code for breaking changes - [x] If there are breaking changes, there is a supporting migration.
- Loading branch information
Showing
8 changed files
with
1,778 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
proto/palomachain/paloma/gravity/bridge_tax_proposal.proto
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,14 @@ | ||
syntax = "proto3"; | ||
package palomachain.paloma.gravity; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/palomachain/paloma/x/skyway/types/gravity"; | ||
|
||
message SetBridgeTaxProposal { | ||
string title = 1; | ||
string description = 2; | ||
string rate = 3 [ (cosmos_proto.scalar) = "cosmos.Dec" ]; | ||
repeated string excluded_tokens = 4; | ||
repeated string exempt_addresses = 5; | ||
} |
26 changes: 26 additions & 0 deletions
26
proto/palomachain/paloma/gravity/bridge_transfer_limit_proposal.proto
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,26 @@ | ||
syntax = "proto3"; | ||
package palomachain.paloma.gravity; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/palomachain/paloma/x/skyway/types/gravity"; | ||
|
||
enum LimitPeriod { | ||
NONE = 0; | ||
DAILY = 1; | ||
WEEKLY = 2; | ||
MONTHLY = 3; | ||
YEARLY = 4; | ||
} | ||
|
||
message SetBridgeTransferLimitProposal { | ||
string title = 1; | ||
string description = 2; | ||
string token = 3; | ||
string limit = 4 [ | ||
(gogoproto.customtype) = "cosmossdk.io/math.Int", | ||
(gogoproto.nullable) = false | ||
]; | ||
LimitPeriod limit_period = 5; | ||
repeated string exempt_addresses = 6; | ||
} |
14 changes: 14 additions & 0 deletions
14
proto/palomachain/paloma/gravity/erc20_to_denom_proposal.proto
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,14 @@ | ||
syntax = "proto3"; | ||
package palomachain.paloma.gravity; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/palomachain/paloma/x/skyway/types/gravity"; | ||
|
||
message SetERC20ToDenomProposal { | ||
string title = 1; | ||
string description = 2; | ||
string chain_reference_id = 3; | ||
string erc20 = 4; | ||
string denom = 5; | ||
} |
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
Oops, something went wrong.