-
Notifications
You must be signed in to change notification settings - Fork 46
/
interfaces.go
32 lines (27 loc) · 997 Bytes
/
interfaces.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
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
evmtypes "github.com/evmos/ethermint/x/evm/types"
)
// Required for deploying Map-Contract/Caling setter methods of Map-Contract
type EVMKeeper interface {
CallEVM(ctx sdk.Context, abi abi.ABI, from, contract common.Address, commit bool, method string, args ...interface{}) (*evmtypes.MsgEthereumTxResponse, error)
CallEVMWithData(
ctx sdk.Context,
from common.Address,
contract *common.Address,
data []byte,
commit bool,
) (*evmtypes.MsgEthereumTxResponse, error)
}
// AccountKeeper defines the expected account keeper used for simulations (noalias)
type AccountKeeper interface {
//GetAccount(ctx sdk.Context, addr sdk.AccAddress)
GetModuleAddress(moduleName string) sdk.AccAddress
GetSequence(sdk.Context, sdk.AccAddress) (uint64, error)
}
type GovKeeper interface {
GetProposalID(ctx sdk.Context) (uint64, error)
}