publishing

package
v0.0.0-...-06c96c1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const AncestorLimit = 1200
View Source
const MaxFloDataLen = 1040

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	WaitForAncestorConfirmations bool
	// contains filtered or unexported fields
}

func (*Address) CreateAndSignTx

func (a *Address) CreateAndSignTx(floData []byte) (*wire.MsgTx, error)

Requires lock

func (*Address) Publish

func (a *Address) Publish(o5 ...*pb_oip5.OipFive) (*PublishResult, error)

func (*Address) PushTx

func (a *Address) PushTx(tx *wire.MsgTx) (*SendToBlockchainResult, error)

Requires lock

func (*Address) SendToBlockchain

func (a *Address) SendToBlockchain(floData []byte) (*SendToBlockchainResult, error)

func (*Address) SendToBlockchainMultipart

func (a *Address) SendToBlockchainMultipart(floData []byte) (*SendToBlockchainResult, error)

func (*Address) SetTxFee

func (a *Address) SetTxFee(fee floutil.Amount)

func (*Address) UpdateUtxoSet

func (a *Address) UpdateUtxoSet() error

type MultiPart

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

func NewMultiPart

func NewMultiPart(pub Publisher, signingAddress floutil.Address, wif floutil.WIF) *MultiPart

func (*MultiPart) Build

func (mp *MultiPart) Build() (*wire.MsgTx, [][]byte, error)

func (*MultiPart) SetFloData

func (mp *MultiPart) SetFloData(floData []byte)

type PublishResult

type PublishResult struct {
	Sbr []*SendToBlockchainResult
}

type Publisher

type Publisher interface {
	UpdateUtxoSet() error
	Publish(o5 ...*pb_oip5.OipFive) (*PublishResult, error)
	CreateAndSignTx(floData []byte) (*wire.MsgTx, error)
	SendToBlockchain(floData []byte) (*SendToBlockchainResult, error)
	SendToBlockchainMultipart(floData []byte) (*SendToBlockchainResult, error)
	SetTxFee(fee floutil.Amount)
}

func NewAddress

func NewAddress(client *rpcclient.Client, addr floutil.Address, wif *floutil.WIF, net *chaincfg.Params) (Publisher, error)

type SendToBlockchainResult

type SendToBlockchainResult struct {
	Tx     []*wire.MsgTx
	TxHash []*chainhash.Hash
}

type Utxo

type Utxo struct {
	Hash     *chainhash.Hash
	Index    uint32
	PkScript []byte
	Value    floutil.Amount
	Conf     uint64
}

Jump to

Keyboard shortcuts

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