Skip to content

Commit

Permalink
fix gensis config var
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Oct 19, 2024
1 parent 501364b commit df3ce2c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 23 deletions.
22 changes: 11 additions & 11 deletions app/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ import (
// NOTE: Capability module must occur first so that it can initialize any capabilities
// so that other modules that want to create or claim capabilities afterwards in InitChain
// can do so safely.
claimmodulev1 "github.com/ignite/modules/api/modules/claim/module/v1"
mintmodulev1 "github.com/ignite/modules/api/modules/mint/module/v1"
_ "github.com/ignite/modules/x/mint/module"
minttypes "github.com/ignite/modules/x/mint/types"

// cosmos-sdk/ibc modules
claimmodulev1 "github.com/ignite/modules/api/modules/claim/module/v1"
fundraisingmodulev1 "github.com/ignite/modules/api/modules/fundraising/module/v1"
mintmodulev1 "github.com/ignite/modules/api/modules/mint/module/v1"
_ "github.com/ignite/modules/x/claim/module"
claimtypes "github.com/ignite/modules/x/claim/types"
_ "github.com/ignite/modules/x/fundraising/module"
fundraisingmoduletypes "github.com/ignite/modules/x/fundraising/types"
fundraisingtypes "github.com/ignite/modules/x/fundraising/types"
_ "github.com/ignite/modules/x/mint/module"
minttypes "github.com/ignite/modules/x/mint/types"
)

var (
genesisModuleOrder = []string{
// cosmos-sdk/ibc modules
capabilitytypes.ModuleName,
authtypes.ModuleName,
banktypes.ModuleName,
Expand All @@ -97,7 +97,7 @@ var (
group.ModuleName,
consensustypes.ModuleName,
circuittypes.ModuleName,
fundraisingmoduletypes.ModuleName,
fundraisingtypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/initGenesis
}

Expand All @@ -120,7 +120,7 @@ var (
ibctransfertypes.ModuleName,
icatypes.ModuleName,
ibcfeetypes.ModuleName,
fundraisingmoduletypes.ModuleName,
fundraisingtypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/beginBlockers
}

Expand All @@ -138,7 +138,7 @@ var (
capabilitytypes.ModuleName,
icatypes.ModuleName,
ibcfeetypes.ModuleName,
fundraisingmoduletypes.ModuleName,
fundraisingtypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/endBlockers
}

Expand All @@ -161,7 +161,7 @@ var (
{Account: icatypes.ModuleName},
{Account: claimtypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner}},

{Account: fundraisingmoduletypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
{Account: fundraisingtypes.ModuleName, Permissions: []string{authtypes.Minter, authtypes.Burner, authtypes.Staking}},
// this line is used by starport scaffolding # stargate/app/maccPerms
}

Expand Down Expand Up @@ -302,7 +302,7 @@ var (
Config: appconfig.WrapAny(&claimmodulev1.Module{}),
},
{
Name: fundraisingmoduletypes.ModuleName,
Name: fundraisingtypes.ModuleName,
Config: appconfig.WrapAny(&fundraisingmodulev1.Module{}),
},
// this line is used by starport scaffolding # stargate/app/moduleConfig
Expand Down
20 changes: 11 additions & 9 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ genesis:
app_state:
claim:
airdropSupply:
amount: "1000"
denom: drop
claimRecords:
supply:
amount: "1000"
denom: drop
claimRecordList:
- address: cosmos1ezptsm3npn54qx9vvpah4nymre59ykr9967vj9
claimable: "400"
- address: cosmos1aqn8ynvr3jmq67879qulzrwhchq5dtrvh6h4er
Expand All @@ -43,7 +44,8 @@ genesis:
initialClaim:
enabled: true
missionID: "0"
missions:
missionCount: 3
missionList:
- description: initial claim
missionID: "0"
weight: "0.2"
Expand All @@ -55,18 +57,18 @@ genesis:
weight: "0.3"
mint:
params:
distribution_proportions:
community_pool: "0.300000000000000000"
funded_addresses: "0.400000000000000000"
distributionProportions:
communityPool: "0.300000000000000000"
fundedAddresses: "0.400000000000000000"
staking: "0.300000000000000000"
funded_addresses:
fundedAddresses:
- address: cosmos1ezptsm3npn54qx9vvpah4nymre59ykr9967vj9
weight: "0.400000000000000000"
- address: cosmos1aqn8ynvr3jmq67879qulzrwhchq5dtrvh6h4er
weight: "0.300000000000000000"
- address: cosmos1pkdk6m2nh77nlaep84cylmkhjder3areczme3w
weight: "0.300000000000000000"
mint_denom: stake
mintDenom: stake
chain_id: testapp-0
validators:
- name: alice
Expand Down
2 changes: 1 addition & 1 deletion testutil/keeper/fundraising.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
"github.com/stretchr/testify/require"

"github.com/ignite/modules/x/fundraising/keeper"
"github.com/ignite/modules/x/fundraising/types"
minttypes "github.com/ignite/modules/x/mint/types"
)

func FundraisingKeeper(t testing.TB) (keeper.Keeper, context.Context, address.Codec) {
Expand Down
2 changes: 1 addition & 1 deletion testutil/simapp/simapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

"github.com/ignite/modules/app"
"github.com/ignite/modules/testutil/sample"
minttypes "github.com/ignite/modules/x/mint/types"
)

var r *rand.Rand
Expand Down
2 changes: 1 addition & 1 deletion x/fundraising/simulation/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"

"github.com/ignite/modules/x/fundraising/keeper"
"github.com/ignite/modules/x/fundraising/types"
minttypes "github.com/ignite/modules/x/mint/types"
)

var testCoinDenoms = []string{
Expand Down

0 comments on commit df3ce2c

Please sign in to comment.