txbuildtest

package
v0.0.0-...-9190965 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOpenResultMetaXDR

func BuildOpenResultMetaXDR(params OpenResultMetaParams) (string, error)

func BuildResultMetaXDR

func BuildResultMetaXDR(ledgerEntryResults []xdr.LedgerEntryData) (string, error)

BuildResultMetaXDR returns a result meta XDR base64 encoded that contains the input ledger entry changes. Only creates one operation meta for simiplicity.

func BuildResultXDR

func BuildResultXDR(success bool) (string, error)

BuildResult returns a result XDR base64 encoded that is successful or not based on the input parameter.

Types

type OpenResultMetaParams

type OpenResultMetaParams struct {
	InitiatorSigner         string
	InitiatorSignerWeight   uint32 // Defaults to 1 if not set.
	ResponderSigner         string
	ResponderSignerWeight   uint32 // Defaults to 1 if not set.
	ExtraSigner             string
	InitiatorChannelAccount string
	ResponderChannelAccount string
	Thresholds              xdr.Thresholds // Defaults to 0, 2, 2, 2 if not set.
	StartSequence           int64
	Asset                   txnbuild.Asset
	TrustLineFlag           xdr.TrustLineFlags // Defaults to authorized flag.
}

Jump to

Keyboard shortcuts

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