Documentation ¶
Index ¶
- func DefaultBitcoinCashChainConfig(name string, rpcUser string, rpcPassword string) ibc.ChainConfig
- func DefaultBitcoinChainConfig(name string, rpcUser string, rpcPassword string) ibc.ChainConfig
- func DefaultDogecoinChainConfig(name string, rpcUser string, rpcPassword string) ibc.ChainConfig
- func DefaultLitecoinChainConfig(name string, rpcUser string, rpcPassword string) ibc.ChainConfig
- func NewWallet(keyname string, address string) ibc.Wallet
- func PanicFunctionName()
- type ListReceivedByAddress
- type ListUtxo
- type NodeWallet
- type ReceivedByAddress
- type SendInput
- type SendInputs
- type SendOutput
- type SendOutputs
- type SignRawTxError
- type SignRawTxOutput
- type TransactionReceipt
- type Utxo
- type UtxoChain
- func (c *UtxoChain) Acknowledgements(ctx context.Context, height int64) ([]ibc.PacketAcknowledgement, error)
- func (c *UtxoChain) Bind() []string
- func (c *UtxoChain) BuildRelayerWallet(ctx context.Context, keyName string) (ibc.Wallet, error)
- func (c *UtxoChain) BuildWallet(ctx context.Context, keyName string, mnemonic string) (ibc.Wallet, error)
- func (c *UtxoChain) Config() ibc.ChainConfig
- func (c *UtxoChain) CreateKey(ctx context.Context, keyName string) error
- func (c *UtxoChain) CreateRawTransaction(ctx context.Context, keyName string, listUtxo ListUtxo, addr string, ...) (string, error)
- func (c *UtxoChain) CreateWallet(ctx context.Context, keyName string) error
- func (c *UtxoChain) Exec(ctx context.Context, cmd []string, env []string) (stdout, stderr []byte, err error)
- func (c *UtxoChain) ExportState(ctx context.Context, height int64) (string, error)
- func (c *UtxoChain) GetAddress(ctx context.Context, keyName string) ([]byte, error)
- func (c *UtxoChain) GetBalance(ctx context.Context, address string, denom string) (sdkmath.Int, error)
- func (c *UtxoChain) GetGRPCAddress() string
- func (c *UtxoChain) GetGasFeesInNativeDenom(gasPaid int64) int64
- func (c *UtxoChain) GetHostGRPCAddress() string
- func (*UtxoChain) GetHostPeerAddress() string
- func (c *UtxoChain) GetHostRPCAddress() string
- func (c *UtxoChain) GetHostWSAddress() string
- func (c *UtxoChain) GetNewAddress(ctx context.Context, keyName string, mweb bool) (string, error)
- func (c *UtxoChain) GetRPCAddress() string
- func (c *UtxoChain) GetWSAddress() string
- func (c *UtxoChain) GetWalletVersion(ctx context.Context, keyName string) (int, error)
- func (c *UtxoChain) Height(ctx context.Context) (int64, error)
- func (c *UtxoChain) HomeDir() string
- func (c *UtxoChain) HostName() string
- func (c *UtxoChain) Initialize(ctx context.Context, testName string, cli *dockerclient.Client, ...) error
- func (c *UtxoChain) ListUnspent(ctx context.Context, keyName string) (ListUtxo, error)
- func (c *UtxoChain) LoadWallet(ctx context.Context, keyName string) error
- func (c *UtxoChain) Name() string
- func (c *UtxoChain) RecoverKey(ctx context.Context, keyName, mnemonic string) error
- func (c *UtxoChain) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error
- func (c *UtxoChain) SendFundsWithNote(ctx context.Context, keyName string, amount ibc.WalletAmount, note string) (string, error)
- func (c *UtxoChain) SendIBCTransfer(ctx context.Context, channelID, keyName string, amount ibc.WalletAmount, ...) (ibc.Tx, error)
- func (c *UtxoChain) SendRawTransaction(ctx context.Context, signedRawTxHex string) (string, error)
- func (c *UtxoChain) SetAccount(ctx context.Context, addr string, keyName string) error
- func (c *UtxoChain) SignRawTransaction(ctx context.Context, keyName string, rawTxHex string) (string, error)
- func (c *UtxoChain) Start(testName string, ctx context.Context, ...) error
- func (c *UtxoChain) Timeouts(ctx context.Context, height int64) ([]ibc.PacketTimeout, error)
- func (c *UtxoChain) UnloadWallet(ctx context.Context, keyName string) error
- func (c *UtxoChain) UnloadWalletAfterUse(on bool)
- type UtxoWallet
- type WalletInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBitcoinCashChainConfig ¶
func DefaultBitcoinCashChainConfig( name string, rpcUser string, rpcPassword string, ) ibc.ChainConfig
func DefaultBitcoinChainConfig ¶
func DefaultBitcoinChainConfig( name string, rpcUser string, rpcPassword string, ) ibc.ChainConfig
func DefaultDogecoinChainConfig ¶
func DefaultDogecoinChainConfig( name string, rpcUser string, rpcPassword string, ) ibc.ChainConfig
func DefaultLitecoinChainConfig ¶
func DefaultLitecoinChainConfig( name string, rpcUser string, rpcPassword string, ) ibc.ChainConfig
func PanicFunctionName ¶
func PanicFunctionName()
Types ¶
type ListReceivedByAddress ¶
type ListReceivedByAddress []ReceivedByAddress
type NodeWallet ¶
type NodeWallet struct {
// contains filtered or unexported fields
}
type ReceivedByAddress ¶
type SendInputs ¶
type SendInputs []SendInput
type SendOutput ¶
type SendOutputs ¶
type SendOutputs []SendOutput
type SignRawTxError ¶
type SignRawTxOutput ¶
type SignRawTxOutput struct { Hex string `json:"hex"` Complete bool `json:"complete"` Errors []SignRawTxError `json:"errors"` }
type TransactionReceipt ¶
type TransactionReceipt struct {
TxHash string `json:"transactionHash"`
}
type Utxo ¶
type Utxo struct { TxId string `json:"txid,omitempty"` Vout int `json:"vout,omitempty"` Address string `json:"address,omitempty"` Label string `json:"label,omitempty"` ScriptPubKey string `json:"scriptPubKey,omitempty"` Amount float64 `json:"amount,omitempty"` Confirmations int `json:"confirmations,omitempty"` Spendable bool `json:"spendable,omitempty"` Solvable bool `json:"solvable,omitempty"` Desc string `json:"desc,omitempty"` Safe bool `json:"safe,omitempty"` }
type UtxoChain ¶
type UtxoChain struct { VolumeName string NetworkID string DockerClient *dockerclient.Client // cli arguments BinDaemon string BinCli string RpcUser string RpcPassword string BaseCli []string AddrToKeyNameMap map[string]string KeyNameToWalletMap map[string]*NodeWallet WalletVersion int // contains filtered or unexported fields }
func NewUtxoChain ¶
func (*UtxoChain) Acknowledgements ¶
func (*UtxoChain) BuildRelayerWallet ¶
func (*UtxoChain) BuildWallet ¶
func (*UtxoChain) Config ¶
func (c *UtxoChain) Config() ibc.ChainConfig
func (*UtxoChain) CreateRawTransaction ¶
func (*UtxoChain) CreateWallet ¶
func (*UtxoChain) ExportState ¶
func (*UtxoChain) GetAddress ¶
Get address of account, cast to a string to use
func (*UtxoChain) GetBalance ¶
func (*UtxoChain) GetGRPCAddress ¶
func (*UtxoChain) GetGasFeesInNativeDenom ¶
func (*UtxoChain) GetHostGRPCAddress ¶
func (*UtxoChain) GetHostPeerAddress ¶
func (*UtxoChain) GetHostRPCAddress ¶
func (*UtxoChain) GetHostWSAddress ¶
func (*UtxoChain) GetNewAddress ¶
func (*UtxoChain) GetRPCAddress ¶
func (*UtxoChain) GetWSAddress ¶
func (*UtxoChain) GetWalletVersion ¶
Depending on the wallet version, getwalletinfo may require a created wallet name
func (*UtxoChain) Initialize ¶
func (*UtxoChain) ListUnspent ¶
func (*UtxoChain) LoadWallet ¶
func (*UtxoChain) RecoverKey ¶
func (*UtxoChain) SendFundsWithNote ¶
func (*UtxoChain) SendIBCTransfer ¶
func (*UtxoChain) SendRawTransaction ¶
func (*UtxoChain) SetAccount ¶
func (*UtxoChain) SignRawTransaction ¶
func (*UtxoChain) UnloadWallet ¶
func (*UtxoChain) UnloadWalletAfterUse ¶
UnloadWalletAfterUse() sets whether non-default wallets stay loaded Default value is false, wallets will stay loaded Setting this to true will load/unload a wallet for each action on a specific wallet. Currently, the only know case where this is required true is when using bifrost.
type UtxoWallet ¶
type UtxoWallet struct {
// contains filtered or unexported fields
}
func (*UtxoWallet) FormattedAddress ¶
func (w *UtxoWallet) FormattedAddress() string
Get formatted address, passing in a prefix
func (*UtxoWallet) KeyName ¶
func (w *UtxoWallet) KeyName() string
func (*UtxoWallet) Mnemonic ¶
func (w *UtxoWallet) Mnemonic() string
Get mnemonic, only used for relayer wallets
type WalletInfo ¶
type WalletInfo struct {
WalletVersion int `json:"walletversion"`
}
Click to show internal directories.
Click to hide internal directories.