getter

package
v0.0.0-...-03ee383 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainLinkReferenceGetter

type ChainLinkReferenceGetter interface {

	// IsSingleSignatureAccount returns if the target account is single signature account
	IsSingleSignatureAccount() (bool, error)

	// GetChain returns Chain instance
	GetChain() (types.Chain, error)

	// GetFilename returns filename to save
	GetFilename() (string, error)

	// GetOwner returns the owner of the link
	GetOwner() (string, error)
}

ChainLinkReferenceGetter allows to get all the data needed to generate a ChainLinkJSON instance

type ChainLinkReferencePrompt

type ChainLinkReferencePrompt struct {
	ChainLinkReferenceGetter
	// contains filtered or unexported fields
}

ChainLinkReferencePrompt is a ChainLinkReferenceGetter implemented with an interactive prompt

func NewChainLinkReferencePrompt

func NewChainLinkReferencePrompt() *ChainLinkReferencePrompt

NewChainLinkReferencePrompt returns an instance implementing ChainLinkReferencePrompt

func (ChainLinkReferencePrompt) GetChain

func (cp ChainLinkReferencePrompt) GetChain() (types.Chain, error)

GetChain implements ChainLinkReferenceGetter

func (ChainLinkReferencePrompt) GetFilename

func (cp ChainLinkReferencePrompt) GetFilename() (string, error)

GetFilename implements ChainLinkReferenceGetter

func (*ChainLinkReferencePrompt) GetOwner

func (cp *ChainLinkReferencePrompt) GetOwner() (string, error)

GetOwner implements ChainLinkReferenceGetter

func (ChainLinkReferencePrompt) IsSingleSignatureAccount

func (cp ChainLinkReferencePrompt) IsSingleSignatureAccount() (bool, error)

IsSingleSignatureAccount implements ChainLinkReferenceGetter

type MultiSignatureAccountReferenceGetter

type MultiSignatureAccountReferenceGetter interface {
	// GetSignedChainID returns the chain id which is used to sign the multisigned tx file
	GetSignedChainID() (string, error)

	// GetMultiSignedTxFilePath returns the path of multisigned transaction file
	GetMultiSignedTxFilePath() (string, error)
}

MultiSignatureAccountReferenceGetter allows to get all the data needed to generate a ChainLinkJSON interface for multi signature account

type SingleSignatureAccountReferenceGetter

type SingleSignatureAccountReferenceGetter interface {
	// GetMnemonic returns the mnemonic
	GetMnemonic() (string, error)
}

SingleSignatureAccountReferenceGetter allows to get all the data needed to generate a ChainLinkJSON interface for single signature account

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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