blockchain

package
v1.0.1-stable-dd60dab Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nil = TxExecutionSpeed(iota)
	Slow
	Standard
	Fast
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Address  string `json:"address"`
	Decimals int    `json:"decimals"`
	Amount   string `json:"balance"`
}

type Blockchain

type Blockchain struct {
	Name    tokens.BlockchainName `json:"name"`
	Address string                `json:"address"`
}

type Cost

type Cost map[tokens.Name]*big.Int

Cost of an atomic swap

func CostBlobToCost

func CostBlobToCost(costBlob CostBlob) Cost

CostBlobToCost converts cost blob to cost

type CostBlob

type CostBlob map[tokens.Name]string

TODO: Why this is in foundation? CostBlob is the json representation of cost.

func CostToCostBlob

func CostToCostBlob(cost Cost) CostBlob

CostToCostBlob converts cost to cost blob

type TxExecutionSpeed

type TxExecutionSpeed uint8

Jump to

Keyboard shortcuts

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