Documentation ¶
Index ¶
- Constants
- type Keeper
- func (k Keeper) BuildParams(sender sdk.AccAddress, to *common.Address, payload []byte, ...) evmtypes.MsgEvmTx
- func (k Keeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
- func (k Keeper) BurnEVMCoin(ctx sdk.Context, moduleName string, wlkContract, to sdk.AccAddress, ...) error
- func (k Keeper) DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (k Keeper) DeployRegistryContract(ctx sdk.Context, moduleName string, params interface{}) (sdk.AccAddress, error)
- func (k Keeper) DeployWRC20ForGivenERC20(ctx sdk.Context, moduleName string, params interface{}) (address sdk.AccAddress, err error)
- func (k Keeper) DeployWRC721ForGivenERC721(ctx sdk.Context, moduleName string, params interface{}) (address sdk.AccAddress, err error)
- func (k Keeper) GetDenomMetaData(ctx sdk.Context, denom string) types.Metadata
- func (k Keeper) GetModuleAccount(ctx sdk.Context, moduleName string) exported.ModuleAccountI
- func (k Keeper) GetModuleAccountAndPermissions(ctx sdk.Context, moduleName string) (exported.ModuleAccountI, []string)
- func (k Keeper) GetModuleAddress(moduleName string) sdk.AccAddress
- func (k Keeper) GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string)
- func (k Keeper) GetSupply(ctx sdk.Context) (supply supply.SupplyI)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Mint(ctx sdk.Context, contract, to sdk.AccAddress, moduleName string, ...) error
- func (k Keeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
- func (k Keeper) Send721CoinsFromEVMAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, moduleName string, ...) error
- func (k Keeper) Send721CoinsFromModuleToEVMAccount(ctx sdk.Context, to sdk.AccAddress, moduleName string, ...) error
- func (k Keeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (k Keeper) SendCoinsFromEVMAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, moduleName string, ...) error
- func (k Keeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (k Keeper) SendCoinsFromModuleToEVMAccount(ctx sdk.Context, to sdk.AccAddress, moduleName string, ...) error
- func (k Keeper) SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coin) error
- func (k Keeper) SetModuleAccount(ctx sdk.Context, macc exported.ModuleAccountI)
- func (k Keeper) SetSupply(ctx sdk.Context, supply supply.SupplyI)
- func (k *Keeper) SetVMKeeper(vmkeeper vmtypes.Keeper)
- func (k Keeper) Transfer721FromModuleToEvmAccount(ctx sdk.Context, recipientAddr sdk.AccAddress, wlkContract string, ...) error
- func (k Keeper) TransferFromModuleToEvmAccount(ctx sdk.Context, recipientAddr sdk.AccAddress, wlkContract string, ...) error
- func (k Keeper) UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (k Keeper) ValidatePermissions(macc exported.ModuleAccountI) error
- func (k Keeper) WRC20DenomValueForFunc(ctx sdk.Context, moduleName string, contract sdk.AccAddress, funcName string) (value interface{}, err error)
- func (k Keeper) WRC721DenomValueForFunc(ctx sdk.Context, moduleName string, contract sdk.AccAddress, funcName string) (value interface{}, err error)
Constants ¶
const DefaultDaoByteCode = `` /* 161118-byte string literal not displayed */
const DefaultGas = math.MaxUint64 / 2
/supply/keeper/evm_of_prestaking.go
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) BuildParams ¶ added in v1.5.53
func (Keeper) BurnEVMCoin ¶ added in v1.5.53
func (Keeper) DelegateCoinsFromAccountToModule ¶
func (Keeper) DeployRegistryContract ¶ added in v1.6.8
func (Keeper) DeployWRC20ForGivenERC20 ¶ added in v1.6.8
func (Keeper) DeployWRC721ForGivenERC721 ¶ added in v1.6.21
func (Keeper) GetDenomMetaData ¶
GetDenomMetaData retrieves the denomination metadata
func (Keeper) GetModuleAccount ¶
func (Keeper) GetModuleAccountAndPermissions ¶
func (Keeper) GetModuleAddress ¶
func (k Keeper) GetModuleAddress(moduleName string) sdk.AccAddress
GetModuleAddress returns an address based on the module name
func (Keeper) GetModuleAddressAndPermissions ¶
func (k Keeper) GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string)
func (Keeper) MintCoins ¶
MintCoins creates new coins from thin air and adds it to the module account. It will panic if the module account does not exist or is unauthorized.
func (Keeper) Send721CoinsFromEVMAccountToModule ¶ added in v1.6.21
func (Keeper) Send721CoinsFromModuleToEVMAccount ¶ added in v1.6.21
func (Keeper) SendCoins ¶
func (k Keeper) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
func (Keeper) SendCoinsFromAccountToModule ¶
func (k Keeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
SendCoinsFromAccountToModule transfers coins from an AccAddress to a ModuleAccount
func (Keeper) SendCoinsFromEVMAccountToModule ¶ added in v1.5.53
func (Keeper) SendCoinsFromModuleToAccount ¶
func (k Keeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
SendCoinsFromModuleToAccount transfers coins from a ModuleAccount to an AccAddress
func (Keeper) SendCoinsFromModuleToEVMAccount ¶ added in v1.5.53
func (Keeper) SendCoinsFromModuleToModule ¶
func (Keeper) SetModuleAccount ¶
func (k Keeper) SetModuleAccount(ctx sdk.Context, macc exported.ModuleAccountI)
func (*Keeper) SetVMKeeper ¶ added in v1.5.53
func (Keeper) Transfer721FromModuleToEvmAccount ¶ added in v1.6.21
func (k Keeper) Transfer721FromModuleToEvmAccount(ctx sdk.Context, recipientAddr sdk.AccAddress, wlkContract string, tokenId *big.Int) error
Transfer721FromModuleToEvmAccount transfers coins from a ModuleAccount to an AccAddress
func (Keeper) TransferFromModuleToEvmAccount ¶ added in v1.5.53
func (k Keeper) TransferFromModuleToEvmAccount(ctx sdk.Context, recipientAddr sdk.AccAddress, wlkContract string, amt *big.Int) error
TransferFromModuleToEvmAccount transfers coins from a ModuleAccount to an AccAddress
func (Keeper) UndelegateCoinsFromModuleToAccount ¶
func (k Keeper) UndelegateCoinsFromModuleToAccount( ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coin, ) error
UndelegateCoinsFromModuleToAccount undelegates the unbonding coins and transfers them from a module account to the delegator account. It will panic if the module account does not exist or is unauthorized.
func (Keeper) ValidatePermissions ¶
func (k Keeper) ValidatePermissions(macc exported.ModuleAccountI) error
ValidatePermissions validates that the module account has been granted permissions within its set of allowed permissions.