transaction

package
v0.0.0-...-00b5140 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	New([]byte, []byte, *big.Int) (*blockchain.Transaction, error)
	CoinBaseTx([]byte) *blockchain.Transaction
	FindUserBalance([]byte) *big.Int
	FindUserTokensSend([]byte) *big.Int
	FindUserTokensReceived([]byte) *big.Int
	WriteBlock([]byte) (*blockchain.Block, error)
	GetLastBlock() ([]byte, *big.Int, error)
	SendBlock(input SendBlockInput) error
}

Adapter is an interface which describes all the methods to interact with persistence.

type SendBlockInput

type SendBlockInput struct {
	From   []byte
	To     []byte
	Amount *big.Int
}

SendBlockInput represent a new block input to send.

Directories

Path Synopsis
impl

Jump to

Keyboard shortcuts

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