-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add waiting time to remove parachain token (#201)
* param * add app.go * nit * refactor proto * add store remove list * add abci * correct time
- Loading branch information
Showing
28 changed files
with
1,404 additions
and
423 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
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
33 changes: 33 additions & 0 deletions
33
proto/centauri/transfermiddleware/v1beta1/parachain_token_info.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,33 @@ | ||
syntax = "proto3"; | ||
package centauri.transfermiddleware.v1beta1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
option go_package = "x/transfermiddleware/types"; | ||
|
||
// ParachainIBCTokenInfo represents information about transferable IBC tokens | ||
// from Parachain. | ||
message ParachainIBCTokenInfo { | ||
// ibc_denom is the denomination of the ibced token transferred from the | ||
// dotsama chain. | ||
string ibc_denom = 1 [ (gogoproto.moretags) = "yaml:\"ibc_denom\"" ]; | ||
// channel_id is source channel in IBC connection from centauri chain | ||
string channel_id = 2 [ (gogoproto.moretags) = "yaml:\"channel_id\"" ]; | ||
// native denom is new native minted denom in centauri chain. | ||
string native_denom = 3 [ (gogoproto.moretags) = "yaml:\"native_denom\"" ]; | ||
// asset id is the id of the asset on Picasso | ||
string asset_id = 4 [ (gogoproto.moretags) = "yaml:\"asset_id\"" ]; | ||
} | ||
|
||
message RemoveParachainIBCTokenInfo { | ||
// native denom is new native minted denom in centauri chain. | ||
string native_denom = 1 [ (gogoproto.moretags) = "yaml:\"native_denom\"" ]; | ||
// | ||
// remove_time is the time at which the parachain token info will be removed. | ||
google.protobuf.Timestamp remove_time = 2 [ | ||
(gogoproto.stdtime) = true, | ||
(gogoproto.nullable) = false, | ||
(gogoproto.moretags) = "yaml:\"start_time\"" | ||
]; | ||
} |
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,17 @@ | ||
syntax = "proto3"; | ||
package centauri.transfermiddleware.v1beta1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/duration.proto"; | ||
|
||
option go_package = "x/transfermiddleware/types"; | ||
|
||
// Params holds parameters for the mint module. | ||
message Params { | ||
google.protobuf.Duration duration = 1 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.stdduration) = true, | ||
(gogoproto.jsontag) = "duration,omitempty", | ||
(gogoproto.moretags) = "yaml:\"duration\"" | ||
]; | ||
} |
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.