package
0.1.0
Repository: https://github.com/phoreproject/go-ethwallet.git
Documentation: pkg.go.dev

# Functions

DeployEscrow deploys a new Ethereum contract, binding an instance of Escrow to it.
DeployRegistry deploys a new Ethereum contract, binding an instance of Registry to it.
DeserializeEthScript - used to deserialize eth redeem script.
DeserializePendingTxn - used to deserialize eth pending txn.
GenDefaultKeyStore will generate a default keystore.
GenScriptHash - used to generate script hash for eth as per escrow smart contract.
GenTokenScriptHash - used to generate script hash for erc20 token as per escrow smart contract.
GenWallet creates a wallet.
NewAccountFromKeyfile returns the account imported.
NewAccountFromMnemonic returns generated account.
NewERC20Wallet will return a reference to the ERC20 Wallet.
NewEscrow creates a new instance of Escrow, bound to a specific deployed contract.
NewEscrowCaller creates a new read-only instance of Escrow, bound to a specific deployed contract.
NewEscrowFilterer creates a new log filterer instance of Escrow, bound to a specific deployed contract.
NewEscrowTransactor creates a new write-only instance of Escrow, bound to a specific deployed contract.
NewEthClient returns a new eth client wss://mainnet.infura.io/ws/v3/YOUR-PROJECT-ID.
NewEthereumPriceFetcher - instantiate a eth price fetcher.
NewEthereumWallet will return a reference to the Eth Wallet.
NewEthereumWalletWithKeyfile will return a reference to the Eth Wallet.
NewRegistry creates a new instance of Registry, bound to a specific deployed contract.
NewRegistryCaller creates a new read-only instance of Registry, bound to a specific deployed contract.
NewRegistryFilterer creates a new log filterer instance of Registry, bound to a specific deployed contract.
NewRegistryTransactor creates a new write-only instance of Registry, bound to a specific deployed contract.
NewToken creates a new instance of Token, bound to a specific deployed contract.
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.
NewWalletService - used to create new wallet service.
NormalizeCurrencyCode standardizes the format for the given currency code.
SerializeEthScript - used to serialize eth redeem script.
SerializePendingTxn - used to serialize eth pending txn.

# Constants

EscrowABI is the input ABI used to generate the binding from.
EscrowBin is the compiled bytecode used for deploying new contracts.
EtherScanAPIKey is needed for all Eherscan requests.
InfuraAPIKey is the hard coded Infura API key.
RegistryABI is the input ABI used to generate the binding from.
RegistryBin is the compiled bytecode used for deploying new contracts.
TokenABI is the input ABI used to generate the binding from.

# Variables

EthCurrencyDefinition is eth defaults.

# Structs

Account represents ethereum keystore.
BitfinexDecoder - decoder with Bitfinex exchange as provider.
BittrexDecoder - decoder with Bittrex exchange as provider.
ERC20Wallet is the wallet implementation for ethereum.
Escrow is an auto generated Go binding around an Ethereum contract.
EscrowCaller is an auto generated read-only Go binding around an Ethereum contract.
EscrowCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
EscrowCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
EscrowExecuted represents a Executed event raised by the Escrow contract.
EscrowExecutedIterator is returned from FilterExecuted and is used to iterate over the raw logs and unpacked data for Executed events raised by the Escrow contract.
EscrowFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
EscrowFundAdded represents a FundAdded event raised by the Escrow contract.
EscrowFundAddedIterator is returned from FilterFundAdded and is used to iterate over the raw logs and unpacked data for FundAdded events raised by the Escrow contract.
EscrowFunded represents a Funded event raised by the Escrow contract.
EscrowFundedIterator is returned from FilterFunded and is used to iterate over the raw logs and unpacked data for Funded events raised by the Escrow contract.
EscrowRaw is an auto generated low-level Go binding around an Ethereum contract.
EscrowSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
EscrowTransactor is an auto generated write-only Go binding around an Ethereum contract.
EscrowTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
EscrowTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
EthAddress implements the WalletAddress interface.
EthClient represents the eth client.
EthConfiguration - used for eth specific configuration.
EthereumPriceFetcher - get ETH prices from the providers (exchanges).
EthereumWallet is the wallet implementation for ethereum.
EthGasStationData represents ethgasstation api data https://ethgasstation.info/json/ethgasAPI.json {"average": 20.0, "fastestWait": 0.4, "fastWait": 0.4, "fast": 200.0, "safeLowWait": 10.6, "blockNum": 6684733, "avgWait": 2.0, "block_time": 13.056701030927835, "speed": 0.7529715304081577, "fastest": 410.0, "safeLow": 17.0}.
EthRedeemScript - used to represent redeem script for eth wallet <uniqueId: 20><threshold:1><timeoutHours:4><buyer:20><seller:20> <moderator:20><multisigAddress:20><tokenAddress:20>.
ExchangeRateProvider - used for looking up exchange rates for ETH.
KrakenDecoder - decoder with Kraken exchange as provider.
OpenBazaarDecoder - decoder to be used by OB.
PendingTxn used to record a pending eth txn.
PoloniexDecoder - decoder with Poloniex exchange as provider.
Registry is an auto generated Go binding around an Ethereum contract.
RegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
RegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
RegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
RegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
RegistryOwnershipRenounced represents a OwnershipRenounced event raised by the Registry contract.
RegistryOwnershipRenouncedIterator is returned from FilterOwnershipRenounced and is used to iterate over the raw logs and unpacked data for OwnershipRenounced events raised by the Registry contract.
RegistryOwnershipTransferred represents a OwnershipTransferred event raised by the Registry contract.
RegistryOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Registry contract.
RegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
RegistryRecommendedVersionRemoved represents a RecommendedVersionRemoved event raised by the Registry contract.
RegistryRecommendedVersionRemovedIterator is returned from FilterRecommendedVersionRemoved and is used to iterate over the raw logs and unpacked data for RecommendedVersionRemoved events raised by the Registry contract.
RegistrySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
RegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
RegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
RegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
RegistryVersionAdded represents a VersionAdded event raised by the Registry contract.
RegistryVersionAddedIterator is returned from FilterVersionAdded and is used to iterate over the raw logs and unpacked data for VersionAdded events raised by the Registry contract.
RegistryVersionRecommended represents a VersionRecommended event raised by the Registry contract.
RegistryVersionRecommendedIterator is returned from FilterVersionRecommended and is used to iterate over the raw logs and unpacked data for VersionRecommended events raised by the Registry contract.
RegistryVersionUpdated represents a VersionUpdated event raised by the Registry contract.
RegistryVersionUpdatedIterator is returned from FilterVersionUpdated and is used to iterate over the raw logs and unpacked data for VersionUpdated events raised by the Registry contract.
Service - used to represent WalletService.
Token is an auto generated Go binding around an Ethereum contract.
TokenApproval represents a Approval event raised by the Token contract.
TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
TokenDetail is used to capture ERC20 token details.
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
TokenTransfer represents a Transfer event raised by the Token contract.
TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.

# Interfaces

ExchangeRateDecoder - used for serializing/deserializing provider struct.