-
Notifications
You must be signed in to change notification settings - Fork 51
/
custom_message_decorator.go
79 lines (77 loc) · 3.03 KB
/
custom_message_decorator.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package types
import (
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
accountedpoolkeeper "github.com/elys-network/elys/x/accountedpool/keeper"
ammkeeper "github.com/elys-network/elys/x/amm/keeper"
assetprofilekeeper "github.com/elys-network/elys/x/assetprofile/keeper"
burnerkeeper "github.com/elys-network/elys/x/burner/keeper"
clockkeeper "github.com/elys-network/elys/x/clock/keeper"
commitmentkeeper "github.com/elys-network/elys/x/commitment/keeper"
epochskeeper "github.com/elys-network/elys/x/epochs/keeper"
estakingkeeper "github.com/elys-network/elys/x/estaking/keeper"
incentivekeeper "github.com/elys-network/elys/x/incentive/keeper"
leveragelpkeeper "github.com/elys-network/elys/x/leveragelp/keeper"
masterchefkeeper "github.com/elys-network/elys/x/masterchef/keeper"
oraclekeeper "github.com/elys-network/elys/x/oracle/keeper"
parameterkeeper "github.com/elys-network/elys/x/parameter/keeper"
perpetualkeeper "github.com/elys-network/elys/x/perpetual/keeper"
stablestakekeeper "github.com/elys-network/elys/x/stablestake/keeper"
tierkeeper "github.com/elys-network/elys/x/tier/keeper"
tokenomicskeeper "github.com/elys-network/elys/x/tokenomics/keeper"
transferhookkeeper "github.com/elys-network/elys/x/transferhook/keeper"
)
func CustomMessageDecorator(
moduleMessengers []ModuleMessenger,
accountedpool *accountedpoolkeeper.Keeper,
amm *ammkeeper.Keeper,
assetprofile *assetprofilekeeper.Keeper,
auth *authkeeper.AccountKeeper,
bank *bankkeeper.BaseKeeper,
burner *burnerkeeper.Keeper,
clock *clockkeeper.Keeper,
commitment *commitmentkeeper.Keeper,
epochs *epochskeeper.Keeper,
incentive *incentivekeeper.Keeper,
leveragelp *leveragelpkeeper.Keeper,
perpetual *perpetualkeeper.Keeper,
oracle *oraclekeeper.Keeper,
parameter *parameterkeeper.Keeper,
stablestake *stablestakekeeper.Keeper,
staking *stakingkeeper.Keeper,
tokenomics *tokenomicskeeper.Keeper,
transferhook *transferhookkeeper.Keeper,
masterchef *masterchefkeeper.Keeper,
estaking *estakingkeeper.Keeper,
tier *tierkeeper.Keeper,
) func(wasmkeeper.Messenger) wasmkeeper.Messenger {
return func(old wasmkeeper.Messenger) wasmkeeper.Messenger {
return &CustomMessenger{
wrapped: old,
moduleMessengers: moduleMessengers,
accountedpool: accountedpool,
amm: amm,
assetprofile: assetprofile,
auth: auth,
bank: bank,
burner: burner,
clock: clock,
commitment: commitment,
epochs: epochs,
incentive: incentive,
leveragelp: leveragelp,
perpetual: perpetual,
oracle: oracle,
parameter: parameter,
stablestake: stablestake,
staking: staking,
tokenomics: tokenomics,
transferhook: transferhook,
masterchef: masterchef,
estaking: estaking,
tier: tier,
}
}
}