-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Khanh Hoa <[email protected]> Co-authored-by: Tuan Tran <[email protected]> Co-authored-by: Tuan Tran <[email protected]> Co-authored-by: tnv1 <[email protected]> Co-authored-by: Tien Nguyen <[email protected]> Co-authored-by: Hoa Nguyen <[email protected]> Co-authored-by: StrathCole <[email protected]>
- Loading branch information
1 parent
79f2a5e
commit e24a658
Showing
59 changed files
with
4,424 additions
and
749 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
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,24 @@ | ||
package helper | ||
|
||
import ( | ||
oracleexported "github.com/classic-terra/core/v3/x/oracle/exported" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
func IsOracleTx(msgs []sdk.Msg) bool { | ||
if len(msgs) == 0 { | ||
return false | ||
} | ||
for _, msg := range msgs { | ||
switch msg.(type) { | ||
case *oracleexported.MsgAggregateExchangeRatePrevote: | ||
continue | ||
case *oracleexported.MsgAggregateExchangeRateVote: | ||
continue | ||
default: | ||
return false | ||
} | ||
} | ||
|
||
return true | ||
} |
Oops, something went wrong.