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