Skip to content

Commit 56cac31

Browse files
authored
fix: fix gensis config var (#108)
<!-- πŸŽ‰ Thank you for the PR!!! πŸŽ‰ --> Closes #<issue number>. _in case of a bug fix, this should point to a bug or any other related issue(s)_ ### What does this PR do? <!-- Describe your changes here - ideally you can get that description straight from your descriptive commit message(s)! --> ### How to test? <!-- What steps in order should someone run to test --> ## Checklist These are the criteria that every PR should meet, please check them off as you review them: - [ ] Include tests - [ ] Respect code style and lint - [ ] Update documentation (*.md) (if needed)
1 parent 501364b commit 56cac31

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

β€Žapp/app_config.goβ€Ž

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@ import (
5757
// NOTE: Capability module must occur first so that it can initialize any capabilities
5858
// so that other modules that want to create or claim capabilities afterwards in InitChain
5959
// can do so safely.
60-
claimmodulev1 "github.com/ignite/modules/api/modules/claim/module/v1"
61-
mintmodulev1 "github.com/ignite/modules/api/modules/mint/module/v1"
62-
_ "github.com/ignite/modules/x/mint/module"
63-
minttypes "github.com/ignite/modules/x/mint/types"
6460

65-
// cosmos-sdk/ibc modules
61+
claimmodulev1 "github.com/ignite/modules/api/modules/claim/module/v1"
6662
fundraisingmodulev1 "github.com/ignite/modules/api/modules/fundraising/module/v1"
63+
mintmodulev1 "github.com/ignite/modules/api/modules/mint/module/v1"
6764
_ "github.com/ignite/modules/x/claim/module"
6865
claimtypes "github.com/ignite/modules/x/claim/types"
6966
_ "github.com/ignite/modules/x/fundraising/module"
70-
fundraisingmoduletypes "github.com/ignite/modules/x/fundraising/types"
67+
fundraisingtypes "github.com/ignite/modules/x/fundraising/types"
68+
_ "github.com/ignite/modules/x/mint/module"
69+
minttypes "github.com/ignite/modules/x/mint/types"
7170
)
7271

7372
var (
7473
genesisModuleOrder = []string{
74+
// cosmos-sdk/ibc modules
7575
capabilitytypes.ModuleName,
7676
authtypes.ModuleName,
7777
banktypes.ModuleName,
@@ -97,7 +97,7 @@ var (
9797
group.ModuleName,
9898
consensustypes.ModuleName,
9999
circuittypes.ModuleName,
100-
fundraisingmoduletypes.ModuleName,
100+
fundraisingtypes.ModuleName,
101101
// this line is used by starport scaffolding # stargate/app/initGenesis
102102
}
103103

@@ -120,7 +120,7 @@ var (
120120
ibctransfertypes.ModuleName,
121121
icatypes.ModuleName,
122122
ibcfeetypes.ModuleName,
123-
fundraisingmoduletypes.ModuleName,
123+
fundraisingtypes.ModuleName,
124124
// this line is used by starport scaffolding # stargate/app/beginBlockers
125125
}
126126

@@ -138,7 +138,7 @@ var (
138138
capabilitytypes.ModuleName,
139139
icatypes.ModuleName,
140140
ibcfeetypes.ModuleName,
141-
fundraisingmoduletypes.ModuleName,
141+
fundraisingtypes.ModuleName,
142142
// this line is used by starport scaffolding # stargate/app/endBlockers
143143
}
144144

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

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

@@ -302,7 +302,7 @@ var (
302302
Config: appconfig.WrapAny(&claimmodulev1.Module{}),
303303
},
304304
{
305-
Name: fundraisingmoduletypes.ModuleName,
305+
Name: fundraisingtypes.ModuleName,
306306
Config: appconfig.WrapAny(&fundraisingmodulev1.Module{}),
307307
},
308308
// this line is used by starport scaffolding # stargate/app/moduleConfig

β€Žconfig.ymlβ€Ž

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ genesis:
3131
app_state:
3232
claim:
3333
airdropSupply:
34-
amount: "1000"
35-
denom: drop
36-
claimRecords:
34+
supply:
35+
amount: "1000"
36+
denom: drop
37+
claimRecordList:
3738
- address: cosmos1ezptsm3npn54qx9vvpah4nymre59ykr9967vj9
3839
claimable: "400"
3940
- address: cosmos1aqn8ynvr3jmq67879qulzrwhchq5dtrvh6h4er
@@ -43,7 +44,8 @@ genesis:
4344
initialClaim:
4445
enabled: true
4546
missionID: "0"
46-
missions:
47+
missionCount: 3
48+
missionList:
4749
- description: initial claim
4850
missionID: "0"
4951
weight: "0.2"
@@ -55,18 +57,18 @@ genesis:
5557
weight: "0.3"
5658
mint:
5759
params:
58-
distribution_proportions:
59-
community_pool: "0.300000000000000000"
60-
funded_addresses: "0.400000000000000000"
60+
distributionProportions:
61+
communityPool: "0.300000000000000000"
62+
fundedAddresses: "0.400000000000000000"
6163
staking: "0.300000000000000000"
62-
funded_addresses:
64+
fundedAddresses:
6365
- address: cosmos1ezptsm3npn54qx9vvpah4nymre59ykr9967vj9
6466
weight: "0.400000000000000000"
6567
- address: cosmos1aqn8ynvr3jmq67879qulzrwhchq5dtrvh6h4er
6668
weight: "0.300000000000000000"
6769
- address: cosmos1pkdk6m2nh77nlaep84cylmkhjder3areczme3w
6870
weight: "0.300000000000000000"
69-
mint_denom: stake
71+
mintDenom: stake
7072
chain_id: testapp-0
7173
validators:
7274
- name: alice

β€Žtestutil/keeper/fundraising.goβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import (
1919
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
2020
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
2121
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
22-
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
2322
"github.com/stretchr/testify/require"
2423

2524
"github.com/ignite/modules/x/fundraising/keeper"
2625
"github.com/ignite/modules/x/fundraising/types"
26+
minttypes "github.com/ignite/modules/x/mint/types"
2727
)
2828

2929
func FundraisingKeeper(t testing.TB) (keeper.Keeper, context.Context, address.Codec) {

β€Žtestutil/simapp/simapp.goβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ import (
2626
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
2727
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
2828
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
29-
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
3029
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
3130
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
3231

3332
"github.com/ignite/modules/app"
3433
"github.com/ignite/modules/testutil/sample"
34+
minttypes "github.com/ignite/modules/x/mint/types"
3535
)
3636

3737
var r *rand.Rand

β€Žx/fundraising/simulation/helpers.goβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66

77
sdk "github.com/cosmos/cosmos-sdk/types"
88
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
9-
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
109

1110
"github.com/ignite/modules/x/fundraising/keeper"
1211
"github.com/ignite/modules/x/fundraising/types"
12+
minttypes "github.com/ignite/modules/x/mint/types"
1313
)
1414

1515
var testCoinDenoms = []string{

0 commit comments

Comments
Β (0)