blockchain

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package blockchain contains code for interacting with the decentr blockchain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.1.4

func New(b *broadcaster.Broadcaster) *blockchain

New returns new instance of Blockchain.

Types

type Blockchain

type Blockchain interface {
	DistributeRewards(rewards []Reward) (tx string, err error)
}

Blockchain is interface for interacting with the blockchain.

type Reward added in v1.4.0

type Reward struct {
	Receiver string
	ID       uint64
	Reward   uint64
}

Reward is a copy of operations.Reward but with string receiver instead of sdk.AccAddress.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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