Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Claim(c context.Context, req *types.QueryClaimRequest) (*types.QueryClaimResponse, error)
- func (k Keeper) ClaimList(c context.Context, req *types.QueryClaimListRequest) (*types.QueryClaimListResponse, error)
- func (k Keeper) Collection(c context.Context, req *types.QueryCollectionRequest) (*types.QueryCollectionResponse, error)
- func (k Keeper) CollectionList(c context.Context, req *types.QueryCollectionListRequest) (*types.QueryCollectionListResponse, error)
- func (k Keeper) CollectionPersistAndEmitEvents(ctx sdk.Context, collection types.Collection) error
- func (k Keeper) Delete(ctx sdk.Context, key []byte, prefix []byte)
- func (k Keeper) Dispute(c context.Context, req *types.QueryDisputeRequest) (*types.QueryDisputeResponse, error)
- func (k Keeper) DisputeList(c context.Context, req *types.QueryDisputeListRequest) (*types.QueryDisputeListResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) Get(ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn) (i interface{}, found bool)
- func (k Keeper) GetActiveIntent(ctx sdk.Context, agentAddress, collectionId string) (types.Intent, bool)
- func (k Keeper) GetAll(ctx sdk.Context, prefix []byte) storetypes.Iterator
- func (k Keeper) GetAllUserCollectionIntents(ctx sdk.Context, agentAddress, collectionId string) []types.Intent
- func (k Keeper) GetClaim(ctx sdk.Context, id string) (types.Claim, error)
- func (k Keeper) GetClaims(ctx sdk.Context) []types.Claim
- func (k Keeper) GetClaimsIterator(ctx sdk.Context) storetypes.Iterator
- func (k Keeper) GetCollection(ctx sdk.Context, id string) (types.Collection, error)
- func (k Keeper) GetCollections(ctx sdk.Context) []types.Collection
- func (k Keeper) GetCollectionsIterator(ctx sdk.Context) storetypes.Iterator
- func (k Keeper) GetDispute(ctx sdk.Context, proof string) (types.Dispute, error)
- func (k Keeper) GetDisputes(ctx sdk.Context) []types.Dispute
- func (k Keeper) GetDisputesIterator(ctx sdk.Context) storetypes.Iterator
- func (k Keeper) GetIntent(ctx sdk.Context, agentAddress, collectionId, intentID string) (types.Intent, error)
- func (k Keeper) GetIntents(ctx sdk.Context) []types.Intent
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState)
- func (k Keeper) Intent(c context.Context, req *types.QueryIntentRequest) (*types.QueryIntentResponse, error)
- func (k Keeper) IntentList(c context.Context, req *types.QueryIntentListRequest) (*types.QueryIntentListResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Marshal(value interface{}) (bytes []byte)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveIntentAndEmitEvents(ctx sdk.Context, intent types.Intent) error
- func (k Keeper) Set(ctx sdk.Context, key []byte, prefix []byte, i interface{}, marshal MarshalFn)
- func (k Keeper) SetClaim(ctx sdk.Context, data types.Claim)
- func (k Keeper) SetCollection(ctx sdk.Context, data types.Collection)
- func (k Keeper) SetDispute(ctx sdk.Context, data types.Dispute)
- func (k Keeper) SetIntent(ctx sdk.Context, data types.Intent)
- func (k Keeper) SetParams(ctx sdk.Context, params *types.Params)
- func (k Keeper) TransferCW20Payment(ctx sdk.Context, fromAddress, toAddress sdk.AccAddress, ...) error
- func (k Keeper) TransferIntentPayments(ctx sdk.Context, fromAddress, toAddress sdk.AccAddress, amount sdk.Coins, ...) error
- func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool
- func (k Keeper) UnmarshalClaim(value []byte) (interface{}, bool)
- func (k Keeper) UnmarshalCollection(value []byte) (interface{}, bool)
- func (k Keeper) UnmarshalDispute(value []byte) (interface{}, bool)
- func (k Keeper) UnmarshalIntent(value []byte) (interface{}, bool)
- type MarshalFn
- type Migrator
- type UnmarshalFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { AuthzKeeper types.AuthzKeeper IidKeeper types.IidKeeper BankKeeper types.BankKeeper EntityKeeper types.EntityKeeper WasmKeeper types.WasmKeeper AccountKeeper types.AccountKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ps paramtypes.Subspace, iidKeeper types.IidKeeper, authzKeeper types.AuthzKeeper, bankKeeper types.BankKeeper, entityKeeper types.EntityKeeper, wasmKeeper types.WasmKeeper, accountKeeper types.AccountKeeper, ) Keeper
func (Keeper) Claim ¶
func (k Keeper) Claim(c context.Context, req *types.QueryClaimRequest) (*types.QueryClaimResponse, error)
func (Keeper) ClaimList ¶
func (k Keeper) ClaimList(c context.Context, req *types.QueryClaimListRequest) (*types.QueryClaimListResponse, error)
func (Keeper) Collection ¶
func (k Keeper) Collection(c context.Context, req *types.QueryCollectionRequest) (*types.QueryCollectionResponse, error)
func (Keeper) CollectionList ¶
func (k Keeper) CollectionList(c context.Context, req *types.QueryCollectionListRequest) (*types.QueryCollectionListResponse, error)
func (Keeper) CollectionPersistAndEmitEvents ¶
CollectionPersistAndEmitEvents persists the collection and emits the events.
func (Keeper) Dispute ¶
func (k Keeper) Dispute(c context.Context, req *types.QueryDisputeRequest) (*types.QueryDisputeResponse, error)
func (Keeper) DisputeList ¶
func (k Keeper) DisputeList(c context.Context, req *types.QueryDisputeListRequest) (*types.QueryDisputeListResponse, error)
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the x/claims module's exported genesis.
func (Keeper) Get ¶
func (k Keeper) Get( ctx sdk.Context, key []byte, prefix []byte, unmarshal UnmarshalFn, ) (i interface{}, found bool)
Get gets an item from the store by bytes
func (Keeper) GetActiveIntent ¶
func (k Keeper) GetActiveIntent(ctx sdk.Context, agentAddress, collectionId string) (types.Intent, bool)
GetActiveIntent retrieves agents current intents for the collection, and returns the first intent if exists
func (Keeper) GetAllUserCollectionIntents ¶
func (Keeper) GetClaimsIterator ¶
func (k Keeper) GetClaimsIterator(ctx sdk.Context) storetypes.Iterator
func (Keeper) GetCollection ¶
func (Keeper) GetCollections ¶
func (k Keeper) GetCollections(ctx sdk.Context) []types.Collection
func (Keeper) GetCollectionsIterator ¶
func (k Keeper) GetCollectionsIterator(ctx sdk.Context) storetypes.Iterator
func (Keeper) GetDispute ¶
func (Keeper) GetDisputesIterator ¶
func (k Keeper) GetDisputesIterator(ctx sdk.Context) storetypes.Iterator
func (Keeper) GetIntent ¶
func (k Keeper) GetIntent(ctx sdk.Context, agentAddress, collectionId, intentID string) (types.Intent, error)
GetIntent retrieves an intent from the KV store using the generated key.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState)
InitGenesis initializes the x/claims module's state from a provided genesis state.
func (Keeper) Intent ¶
func (k Keeper) Intent(c context.Context, req *types.QueryIntentRequest) (*types.QueryIntentResponse, error)
func (Keeper) IntentList ¶
func (k Keeper) IntentList(c context.Context, req *types.QueryIntentListRequest) (*types.QueryIntentListResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveIntentAndEmitEvents ¶
RemoveIntentAndEmitEvents removes the intent from the KV store and emits the event as IntentUpdated for offchain indexers, Intent status will always change on removal so safe to always emit UpdateIntent event
func (Keeper) SetCollection ¶
func (k Keeper) SetCollection(ctx sdk.Context, data types.Collection)
func (Keeper) SetIntent ¶
SetIntent stores the intent in the KV store with the generated key format.
func (Keeper) TransferCW20Payment ¶
func (k Keeper) TransferCW20Payment(ctx sdk.Context, fromAddress, toAddress sdk.AccAddress, payment *types.CW20Payment) error
TransferCW20Payment transfers CW20 payments to the recipient address.
func (Keeper) TransferIntentPayments ¶
func (k Keeper) TransferIntentPayments(ctx sdk.Context, fromAddress, toAddress sdk.AccAddress, amount sdk.Coins, cw20Payments []*types.CW20Payment) error
TransferIntentPayments transfers payments, both native coins and CW20 payments, to the recipient address.
func (Keeper) Unmarshal ¶
func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool
nolint:staticcheck Unmarshal unmarshal a byte slice to a struct, return false in case of errors
func (Keeper) UnmarshalClaim ¶
func (Keeper) UnmarshalCollection ¶
func (Keeper) UnmarshalDispute ¶
func (Keeper) UnmarshalIntent ¶
type MarshalFn ¶
type MarshalFn func(value interface{}) []byte
MarshalFn is a generic function to marshal bytes
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶
func NewMigrator(keeper Keeper, legacySubspace paramstypes.Subspace) Migrator
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates from version 1 to 2.
type UnmarshalFn ¶
UnmarshalFn is a generic function to unmarshal bytes