-
Notifications
You must be signed in to change notification settings - Fork 128
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
* Add more testing, remove redundant (#772) * Add a "misc" test example for cosmos_node * backup: wip (adding node, wallet keys, sending, FindTxs, and PollForBal) * enable more and cleanup * feat: SetSDKConfig(bech32prefix) for configuration * testBroadcaster with bank multimsg send * qol: NewGenesisKV(key, value) * more wallet checks * queryCmd, HashCommand * rm duplicate test, add outside references * rm SDK 45 test, same logic applies to 47 * Add light client verification to the IBC example * Add more IBC examples * fix: wasm icq StartupFlags * Add more buffer to the conformance test (cherry picked from commit 8caf914) # Conflicts: # examples/cosmos/chain_miscellaneous_test.go # examples/cosmos/light_client_test.go # examples/cosmos/state_sync_test.go # examples/ibc/interchain_accounts_test.go # examples/ibc/interchain_queries_test.go # examples/ibc/learn_ibc_test.go # examples/ibc/packet_forward_test.go * fix merge -> `v7` --------- Co-authored-by: Reece Williams <[email protected]> Co-authored-by: Reece Williams <[email protected]>
- Loading branch information
1 parent
99b000e
commit dd072db
Showing
10 changed files
with
317 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cosmos | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
func SetSDKConfig(bech32Prefix string) *sdk.Config { | ||
var ( | ||
bech32MainPrefix = bech32Prefix | ||
bech32PrefixAccAddr = bech32MainPrefix | ||
bech32PrefixAccPub = bech32MainPrefix + sdk.PrefixPublic | ||
bech32PrefixValAddr = bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator | ||
bech32PrefixValPub = bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic | ||
bech32PrefixConsAddr = bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus | ||
bech32PrefixConsPub = bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic | ||
) | ||
|
||
cfg := sdk.GetConfig() | ||
cfg.SetBech32PrefixForAccount(bech32PrefixAccAddr, bech32PrefixAccPub) | ||
cfg.SetBech32PrefixForValidator(bech32PrefixValAddr, bech32PrefixValPub) | ||
cfg.SetBech32PrefixForConsensusNode(bech32PrefixConsAddr, bech32PrefixConsPub) | ||
return cfg | ||
} |
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,3 @@ | ||
# More Examples | ||
|
||
[State Sync](https://github.com/CosmosContracts/juno/blob/reece/add-state-sync-test/interchaintest/state_sync_test.go) |
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.