keeper

package
v1.1.2-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	rarimo types.RarimocoreKeeper,
) *Keeper

func (Keeper) EditCSCAListProposal

func (k Keeper) EditCSCAListProposal(ctx sdk.Context, proposal *types.EditCSCAListProposal) error

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) GetAllNode

func (k Keeper) GetAllNode(ctx sdk.Context) []types.Node

func (Keeper) GetNode

func (k Keeper) GetNode(ctx sdk.Context, key string) (val types.Node, found bool)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

func (Keeper) GetRootKey

func (k Keeper) GetRootKey(ctx sdk.Context) string

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) RemoveNode

func (k Keeper) RemoveNode(ctx sdk.Context, key string)

func (Keeper) RemoveTree

func (k Keeper) RemoveTree(ctx sdk.Context)

RemoveTree removes all nodes iteratively from the store. It should be done with dropping just NodeKeyPrefix content, but requires deep research of Cosmos SDK store.

func (Keeper) ReplaceCSCAListProposal

func (k Keeper) ReplaceCSCAListProposal(ctx sdk.Context, proposal *types.ReplaceCSCAListProposal) error

func (Keeper) SetNode

func (k Keeper) SetNode(ctx sdk.Context, n types.Node)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

func (Keeper) SetRootKey

func (k Keeper) SetRootKey(ctx sdk.Context, root string)

func (Keeper) Tree

type Treap

type Treap struct {
	// contains filtered or unexported fields
}

Treap implements dynamic Merkle tree using treap data structure. Proof of concept: https://github.com/olegfomenko/crypto/tree/master/go/dynamic-merkle

func (Treap) Insert

func (t Treap) Insert(ctx sdk.Context, key string)

Insert adds key to the treap. Key must be hex string with 0x prefix.

func (Treap) Remove

func (t Treap) Remove(ctx sdk.Context, key string)

Remove removes key from the treap. Key must be hex string with 0x prefix.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL