parsec

package module
v0.0.0-...-e3183ca Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 2 Imported by: 0

README

Parsec

Unit testing framework for the Cosmos SDK

Parsec - a unit of distance used in astronomy, equal to about 3.26 light years (3.086 × 1013 kilometers). One parsec corresponds to the distance at which the mean radius of the earth's orbit subtends an angle of one second of arc.

Development

Currently in development. Not ready for use.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

Types

type Bank

type Bank interface {
}

TODO

type BankKeeper

type BankKeeper struct {
	Bank
}

func NewBankKeeper

func NewBankKeeper() BankKeeper

type Context

type Context interface {
	KVStore(key sdk.StoreKey) KVStore
}

type Handler

type Handler func(ctx Context, msg types.Msg) types.Result

type KVStore

type KVStore struct {
	Store
	// contains filtered or unexported fields
}

func NewKVStore

func NewKVStore() KVStore

func (KVStore) Delete

func (k KVStore) Delete(key []byte)

func (KVStore) Get

func (k KVStore) Get(key []byte) []byte

func (KVStore) Has

func (k KVStore) Has(key []byte) bool

func (KVStore) Set

func (k KVStore) Set(key, value []byte)

type MockContext

type MockContext struct {
	Context
}

func NewMockContext

func NewMockContext() MockContext

func (MockContext) KVStore

func (c MockContext) KVStore(key sdk.StoreKey) KVStore

type Store

type Store interface {
	// Get returns nil iff key doesn't exist. Panics on nil key.
	Get(key []byte) []byte

	// Has checks if a key exists. Panics on nil key.
	Has(key []byte) bool

	// Set sets the key. Panics on nil key or value.
	Set(key, value []byte)

	// Delete deletes the key. Panics on nil key.
	Delete(key []byte)
}

Jump to

Keyboard shortcuts

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