Documentation ¶
Index ¶
- func AllInvariants(k *Keeper) sdk.Invariant
- func ApplyRequest(ctx context.Context, k *Keeper, chain types.Chain, request types.Request, ...) error
- func CheckAccount(ctx context.Context, k *Keeper, launchID uint64, address string) (bool, error)
- func CheckRequest(ctx context.Context, k *Keeper, launchID uint64, request types.Request) error
- func DuplicatedAccountInvariant(k *Keeper) sdk.Invariant
- func InvalidChainInvariant(k *Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- func NewQueryServerImpl(k *Keeper) types.QueryServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k *Keeper)
- func UnknownRequestTypeInvariant(k *Keeper) sdk.Invariant
- type Keeper
- func (k Keeper) AddressCodec() address.Codec
- func (k Keeper) AllGenesisAccount(ctx context.Context) ([]types.GenesisAccount, error)
- func (k Keeper) AllGenesisValidator(ctx context.Context) ([]types.GenesisValidator, error)
- func (k Keeper) AllVestingAccount(ctx context.Context) ([]types.VestingAccount, error)
- func (k Keeper) AppendChain(ctx context.Context, chain types.Chain) (uint64, error)
- func (k Keeper) AppendRequest(ctx context.Context, request types.Request) (uint64, error)
- func (k Keeper) Chains(ctx context.Context) ([]types.Chain, error)
- func (k Keeper) CheckValidatorSet(ctx context.Context, launchID uint64, chainID string, ...) error
- func (k Keeper) CreateNewChain(ctx context.Context, coordinatorID uint64, ...) (uint64, error)
- func (k Keeper) EnableMonitoringConnection(ctx context.Context, launchID uint64) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetChain(ctx context.Context, launchID uint64) (types.Chain, error)
- func (k *Keeper) GetMonitoringcKeeper() types.MonitoringConsumerKeeper
- func (k Keeper) GetNextRequestIDWithUpdate(ctx context.Context, launchID uint64) (uint64, error)
- func (k *Keeper) GetProfileKeeper() types.ProfileKeeper
- func (k *Keeper) GetProjectKeeper() types.ProjectKeeper
- func (k Keeper) GetRequestCounter(ctx context.Context, launchID uint64) (uint64, error)
- func (k Keeper) GetValidatorsAndTotalDelegation(ctx context.Context, launchID uint64) (map[string]types.GenesisValidator, sdkmath.LegacyDec, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) RequestCreated(ctx context.Context, creator string, launchID, requestID uint64, ...) error
- func (k Keeper) Requests(ctx context.Context) ([]types.Request, error)
- func (k *Keeper) SetHooks(hooks types.LaunchHooks) error
- func (k *Keeper) SetMonitoringcKeeper(monitoringcKeeper types.MonitoringConsumerKeeper) error
- func (k *Keeper) SetProjectKeeper(projectKeeper types.ProjectKeeper) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllInvariants ¶
AllInvariants runs all invariants of the module.
func ApplyRequest ¶
func ApplyRequest( ctx context.Context, k *Keeper, chain types.Chain, request types.Request, coord profiletypes.Coordinator, ) error
ApplyRequest approves the request and performs the launch information changes
func CheckAccount ¶
CheckAccount check account inconsistency and return if an account exists for genesis or vesting accounts
func CheckRequest ¶
CheckRequest verifies that a request can be applied
func DuplicatedAccountInvariant ¶
DuplicatedAccountInvariant invariant that checks if the `GenesisAccount` exists into the `VestingAccount` store
func InvalidChainInvariant ¶
InvalidChainInvariant invariant that checks all chain in the store are valid
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k *Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k *Keeper)
RegisterInvariants registers all module invariants
func UnknownRequestTypeInvariant ¶
UnknownRequestTypeInvariant invariant that checks if the Request type is valid
Types ¶
type Keeper ¶
type Keeper struct { Schema collections.Schema Params collections.Item[types.Params] ChainSeq collections.Sequence Chain collections.Map[uint64, types.Chain] GenesisAccount collections.Map[collections.Pair[uint64, sdk.AccAddress], types.GenesisAccount] GenesisValidator collections.Map[collections.Pair[uint64, sdk.AccAddress], types.GenesisValidator] VestingAccount collections.Map[collections.Pair[uint64, sdk.AccAddress], types.VestingAccount] RequestSeq collections.Map[uint64, uint64] Request collections.Map[collections.Pair[uint64, uint64], types.Request] ParamChange collections.Map[collections.Pair[uint64, string], types.ParamChange] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, addressCodec address.Codec, storeService store.KVStoreService, logger log.Logger, authority string, distributionKeeper types.DistributionKeeper, profileKeeper types.ProfileKeeper, ) *Keeper
func (Keeper) AddressCodec ¶
AddressCodec returns the address codec.
func (Keeper) AllGenesisAccount ¶
AllGenesisAccount returns all GenesisAccount.
func (Keeper) AllGenesisValidator ¶
AllGenesisValidator returns all GenesisValidator.
func (Keeper) AllVestingAccount ¶
AllVestingAccount returns all VestingAccount.
func (Keeper) AppendChain ¶
AppendChain appends a chain in the store with a new launch id and update the count
func (Keeper) AppendRequest ¶
AppendRequest appends a Request in the store with a new launch id and update the count
func (Keeper) CheckValidatorSet ¶
func (k Keeper) CheckValidatorSet( ctx context.Context, launchID uint64, chainID string, validatorSet tmtypes.ValidatorSet, ) error
CheckValidatorSet checks the information about a validator set (used to create an IBC client) is valid
func (Keeper) CreateNewChain ¶
func (k Keeper) CreateNewChain( ctx context.Context, coordinatorID uint64, genesisChainID, sourceURL, sourceHash string, initialGenesis types.InitialGenesis, hasProject bool, projectID uint64, isMainnet bool, accountBalance sdk.Coins, metadata []byte, ) (uint64, error)
CreateNewChain creates a new chain in the store from the provided information
func (Keeper) EnableMonitoringConnection ¶
EnableMonitoringConnection sets a chain with MonitoringConnected set to true
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (*Keeper) GetMonitoringcKeeper ¶
func (k *Keeper) GetMonitoringcKeeper() types.MonitoringConsumerKeeper
GetMonitoringcKeeper gets the monitoring consumer keeper interface of the module
func (Keeper) GetNextRequestIDWithUpdate ¶
GetNextRequestIDWithUpdate increments bid id by one and set it.
func (*Keeper) GetProfileKeeper ¶
func (k *Keeper) GetProfileKeeper() types.ProfileKeeper
GetProfileKeeper gets the profile keeper interface of the module
func (*Keeper) GetProjectKeeper ¶
func (k *Keeper) GetProjectKeeper() types.ProjectKeeper
GetProjectKeeper gets the project keeper interface of the module
func (Keeper) GetRequestCounter ¶
GetRequestCounter get request counter for a specific chain ID
func (Keeper) GetValidatorsAndTotalDelegation ¶
func (k Keeper) GetValidatorsAndTotalDelegation( ctx context.Context, launchID uint64, ) (map[string]types.GenesisValidator, sdkmath.LegacyDec, error)
GetValidatorsAndTotalDelegation returns the genesisValidator map by consensus address and total of self delegation
func (Keeper) RequestCreated ¶
func (k Keeper) RequestCreated( ctx context.Context, creator string, launchID, requestID uint64, content types.RequestContent, ) error
RequestCreated calls associated hook if registered
func (*Keeper) SetHooks ¶
func (k *Keeper) SetHooks(hooks types.LaunchHooks) error
SetHooks sets the fundraising hooks.
func (*Keeper) SetMonitoringcKeeper ¶
func (k *Keeper) SetMonitoringcKeeper(monitoringcKeeper types.MonitoringConsumerKeeper) error
SetMonitoringcKeeper sets the monitoring consumer keeper interface of the module
func (*Keeper) SetProjectKeeper ¶
func (k *Keeper) SetProjectKeeper(projectKeeper types.ProjectKeeper) error
SetProjectKeeper sets the project keeper interface of the module
Source Files ¶
- chain.go
- genesis_account.go
- genesis_validator.go
- hooks.go
- invariants.go
- keeper.go
- msg_server.go
- msg_server_create_chain.go
- msg_server_edit_chain.go
- msg_server_revert_launch.go
- msg_server_send_request.go
- msg_server_settle_request.go
- msg_server_trigger_launch.go
- msg_server_update_launch_information.go
- msg_update_params.go
- query.go
- query_chain.go
- query_genesis_account.go
- query_genesis_validator.go
- query_param_change.go
- query_params.go
- query_request.go
- query_vesting_account.go
- request.go
- validator_set.go
- vesting_account.go