sendfunds

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullUTXO

type FullUTXO struct {
	Address         string
	LovelaceBalance int
	TokenBalances   map[string]int
	TXCount         int
	Rows            []UTXORow
}

func NewFullUTXO

func NewFullUTXO() FullUTXO

type FundSender

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

FundSender some struct

func NewFundSender

func NewFundSender(runner leader.CommandRunner, network, magic string) FundSender

NewFundSender init method for fundsender

func (*FundSender) RunSendFunds

func (fs *FundSender) RunSendFunds(startAddress, signingKeyFile string, paymentAddressesWithTokens map[string]PaymentDetails) error

type PaymentDetails

type PaymentDetails struct {
	AdaAmount     int            `yaml:"lovelaceAmount"`
	PaymentTokens []TokenDetails `yaml:"paymentTokens"`
}

type PaymentYaml

type PaymentYaml struct {
	SourceAddress   string                    `yaml:"sourceAddress"`
	TargetAddresses map[string]PaymentDetails `yaml:"targetAddresses"`
}

func ReadPaymentFile

func ReadPaymentFile(fileReader utils.FileUtilsInterface, paymentFilePath string) *PaymentYaml

type TipQuery

type TipQuery struct {
	Slot int
}

TipQuery struct to unmarshall json

type TokenDetails

type TokenDetails struct {
	TokenID     string `yaml:"tokenID"`
	TokenAmount int    `yaml:"tokenAmount"`
}

type UTXORow

type UTXORow struct {
	Hash            string
	TxID            string
	LovelaceBalance int
	Tokens          map[string]int
}

Jump to

Keyboard shortcuts

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