-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pointers/erc1155-cw1155
- Loading branch information
Showing
11 changed files
with
162 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package utils | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/CosmWasm/wasmd/x/wasm" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
acltypes "github.com/cosmos/cosmos-sdk/x/accesscontrol/types" | ||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" | ||
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" | ||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" | ||
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" | ||
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" | ||
evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" | ||
"github.com/cosmos/cosmos-sdk/x/feegrant" | ||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" | ||
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" | ||
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" | ||
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types" | ||
ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host" | ||
epochmoduletypes "github.com/sei-protocol/sei-chain/x/epoch/types" | ||
evmtypes "github.com/sei-protocol/sei-chain/x/evm/types" | ||
minttypes "github.com/sei-protocol/sei-chain/x/mint/types" | ||
oracletypes "github.com/sei-protocol/sei-chain/x/oracle/types" | ||
tokenfactorytypes "github.com/sei-protocol/sei-chain/x/tokenfactory/types" | ||
) | ||
|
||
var ModuleKeys = sdk.NewKVStoreKeys( | ||
acltypes.StoreKey, authtypes.StoreKey, authzkeeper.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, | ||
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey, | ||
govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey, | ||
evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey, oracletypes.StoreKey, | ||
evmtypes.StoreKey, wasm.StoreKey, epochmoduletypes.StoreKey, tokenfactorytypes.StoreKey, | ||
) | ||
|
||
var Modules = []string{ | ||
"acc", | ||
"aclaccesscontrol", | ||
"authz", | ||
"bank", | ||
"capability", | ||
"distribution", | ||
"epoch", | ||
"evidence", | ||
"evm", | ||
"feegrant", | ||
"gov", | ||
"ibc", | ||
"mint", | ||
"oracle", | ||
"params", | ||
"slashing", | ||
"staking", | ||
"tokenfactory", | ||
"transfer", | ||
"upgrade", | ||
"wasm"} | ||
|
||
func BuildRawPrefix(moduleName string) string { | ||
return fmt.Sprintf("s/k:%s/n", moduleName) | ||
} | ||
|
||
func BuildTreePrefix(moduleName string) string { | ||
return fmt.Sprintf("s/k:%s/", moduleName) | ||
} |
This file was deleted.
Oops, something went wrong.