Versions in this module Expand all Collapse all v0 v0.1.0 Jun 4, 2020 Changes in this version + const EscrowABI + const EscrowBin + const EtherScanAPIKey + const InfuraAPIKey + const RegistryABI + const RegistryBin + const TokenABI + var EthCurrencyDefinition = wi.CurrencyDefinition + func GenScriptHash(script EthRedeemScript) ([32]byte, string, error) + func GenTokenScriptHash(script EthRedeemScript) ([32]byte, string, error) + func GenWallet() + func NormalizeCurrencyCode(currencyCode string) string + func SerializeEthScript(scrpt EthRedeemScript) ([]byte, error) + func SerializePendingTxn(pTxn PendingTxn) ([]byte, error) + type Account struct + func GenDefaultKeyStore(passwd string) (*Account, error) + func NewAccountFromKeyfile(keyFile, password string) (*Account, error) + func NewAccountFromMnemonic(mnemonic, password string, params *chaincfg.Params) (*Account, error) + func (account *Account) Address() common.Address + func (account *Account) SignTransaction(signer types.Signer, tx *types.Transaction) (*types.Transaction, error) + type BitfinexDecoder struct + type BittrexDecoder struct + type ERC20Wallet struct + func NewERC20Wallet(cfg config.CoinConfig, params *chaincfg.Params, mnemonic string, ...) (*ERC20Wallet, error) + func (wallet *ERC20Wallet) AddTransactionListener(callback func(wi.TransactionCallback)) + func (wallet *ERC20Wallet) Balance() (confirmed, unconfirmed int64) + func (wallet *ERC20Wallet) BumpFee(txid chainhash.Hash) (*chainhash.Hash, error) + func (wallet *ERC20Wallet) ChainTip() (uint32, chainhash.Hash) + func (wallet *ERC20Wallet) ChildKey(keyBytes []byte, chaincode []byte, isPrivateKey bool) (*hd.ExtendedKey, error) + func (wallet *ERC20Wallet) Close() + func (wallet *ERC20Wallet) CreateAddress() (common.Address, error) + func (wallet *ERC20Wallet) CreateMultisigSignature(ins []wi.TransactionInput, outs []wi.TransactionOutput, key *hd.ExtendedKey, ...) ([]wi.Signature, error) + func (wallet *ERC20Wallet) CurrencyCode() string + func (wallet *ERC20Wallet) CurrentAddress(purpose wi.KeyPurpose) btcutil.Address + func (wallet *ERC20Wallet) DecodeAddress(addr string) (btcutil.Address, error) + func (wallet *ERC20Wallet) EstimateFee(ins []wi.TransactionInput, outs []wi.TransactionOutput, feePerByte uint64) uint64 + func (wallet *ERC20Wallet) EstimateSpendFee(amount int64, feeLevel wi.FeeLevel) (uint64, error) + func (wallet *ERC20Wallet) ExchangeRates() wi.ExchangeRates + func (wallet *ERC20Wallet) GenerateMultisigScript(keys []hd.ExtendedKey, threshold int, timeout time.Duration, ...) (btcutil.Address, []byte, error) + func (wallet *ERC20Wallet) GetBalance() (*big.Int, error) + func (wallet *ERC20Wallet) GetConfirmations(txid chainhash.Hash) (confirms, atHeight uint32, err error) + func (wallet *ERC20Wallet) GetFeePerByte(feeLevel wi.FeeLevel) uint64 + func (wallet *ERC20Wallet) GetTransaction(txid chainhash.Hash) (wi.Txn, error) + func (wallet *ERC20Wallet) GetUnconfirmedBalance() (*big.Int, error) + func (wallet *ERC20Wallet) HasKey(addr btcutil.Address) bool + func (wallet *ERC20Wallet) IsDust(amount int64) bool + func (wallet *ERC20Wallet) MasterPrivateKey() *hd.ExtendedKey + func (wallet *ERC20Wallet) MasterPublicKey() *hd.ExtendedKey + func (wallet *ERC20Wallet) Multisign(ins []wi.TransactionInput, outs []wi.TransactionOutput, sigs1 []wi.Signature, ...) ([]byte, error) + func (wallet *ERC20Wallet) NewAddress(purpose wi.KeyPurpose) btcutil.Address + func (wallet *ERC20Wallet) Params() *chaincfg.Params + func (wallet *ERC20Wallet) ReSyncBlockchain(fromTime time.Time) + func (wallet *ERC20Wallet) ScriptToAddress(script []byte) (btcutil.Address, error) + func (wallet *ERC20Wallet) Spend(amount big.Int, addr btcutil.Address, feeLevel wi.FeeLevel, referenceID string) (*chainhash.Hash, error) + func (wallet *ERC20Wallet) Start() + func (wallet *ERC20Wallet) SweepAddress(utxos []wi.TransactionInput, address *btcutil.Address, key *hd.ExtendedKey, ...) (*chainhash.Hash, error) + func (wallet *ERC20Wallet) Transactions() ([]wi.Txn, error) + func (wallet *ERC20Wallet) Transfer(to string, value *big.Int) (common.Hash, error) + type Escrow struct + func DeployEscrow(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Escrow, error) + func NewEscrow(address common.Address, backend bind.ContractBackend) (*Escrow, error) + type EscrowCaller struct + func NewEscrowCaller(address common.Address, caller bind.ContractCaller) (*EscrowCaller, error) + func (_Escrow *EscrowCaller) CalculateRedeemScriptHash(opts *bind.CallOpts, uniqueId [20]byte, threshold uint8, timeoutHours uint32, ...) ([32]byte, error) + func (_Escrow *EscrowCaller) CheckBeneficiary(opts *bind.CallOpts, scriptHash [32]byte, beneficiary common.Address) (bool, error) + func (_Escrow *EscrowCaller) CheckVote(opts *bind.CallOpts, scriptHash [32]byte, party common.Address) (bool, error) + func (_Escrow *EscrowCaller) GetAllTransactionsForParty(opts *bind.CallOpts, partyAddress common.Address) ([][32]byte, error) + func (_Escrow *EscrowCaller) PartyVsTransaction(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([32]byte, error) + func (_Escrow *EscrowCaller) TransactionCount(opts *bind.CallOpts) (*big.Int, error) + func (_Escrow *EscrowCaller) Transactions(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error) + type EscrowCallerRaw struct + Contract *EscrowCaller + func (_Escrow *EscrowCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type EscrowCallerSession struct + CallOpts bind.CallOpts + Contract *EscrowCaller + func (_Escrow *EscrowCallerSession) CalculateRedeemScriptHash(uniqueId [20]byte, threshold uint8, timeoutHours uint32, buyer common.Address, ...) ([32]byte, error) + func (_Escrow *EscrowCallerSession) CheckBeneficiary(scriptHash [32]byte, beneficiary common.Address) (bool, error) + func (_Escrow *EscrowCallerSession) CheckVote(scriptHash [32]byte, party common.Address) (bool, error) + func (_Escrow *EscrowCallerSession) GetAllTransactionsForParty(partyAddress common.Address) ([][32]byte, error) + func (_Escrow *EscrowCallerSession) PartyVsTransaction(arg0 common.Address, arg1 *big.Int) ([32]byte, error) + func (_Escrow *EscrowCallerSession) TransactionCount() (*big.Int, error) + func (_Escrow *EscrowCallerSession) Transactions(arg0 [32]byte) (struct{ ... }, error) + type EscrowExecuted struct + Amounts []*big.Int + Destinations []common.Address + Raw types.Log + ScriptHash [32]byte + type EscrowExecutedIterator struct + Event *EscrowExecuted + func (it *EscrowExecutedIterator) Close() error + func (it *EscrowExecutedIterator) Error() error + func (it *EscrowExecutedIterator) Next() bool + type EscrowFilterer struct + func NewEscrowFilterer(address common.Address, filterer bind.ContractFilterer) (*EscrowFilterer, error) + func (_Escrow *EscrowFilterer) FilterExecuted(opts *bind.FilterOpts) (*EscrowExecutedIterator, error) + func (_Escrow *EscrowFilterer) FilterFundAdded(opts *bind.FilterOpts, from []common.Address) (*EscrowFundAddedIterator, error) + func (_Escrow *EscrowFilterer) FilterFunded(opts *bind.FilterOpts, from []common.Address) (*EscrowFundedIterator, error) + func (_Escrow *EscrowFilterer) WatchExecuted(opts *bind.WatchOpts, sink chan<- *EscrowExecuted) (event.Subscription, error) + func (_Escrow *EscrowFilterer) WatchFundAdded(opts *bind.WatchOpts, sink chan<- *EscrowFundAdded, from []common.Address) (event.Subscription, error) + func (_Escrow *EscrowFilterer) WatchFunded(opts *bind.WatchOpts, sink chan<- *EscrowFunded, from []common.Address) (event.Subscription, error) + type EscrowFundAdded struct + From common.Address + Raw types.Log + ScriptHash [32]byte + ValueAdded *big.Int + type EscrowFundAddedIterator struct + Event *EscrowFundAdded + func (it *EscrowFundAddedIterator) Close() error + func (it *EscrowFundAddedIterator) Error() error + func (it *EscrowFundAddedIterator) Next() bool + type EscrowFunded struct + From common.Address + Raw types.Log + ScriptHash [32]byte + Value *big.Int + type EscrowFundedIterator struct + Event *EscrowFunded + func (it *EscrowFundedIterator) Close() error + func (it *EscrowFundedIterator) Error() error + func (it *EscrowFundedIterator) Next() bool + type EscrowRaw struct + Contract *Escrow + func (_Escrow *EscrowRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_Escrow *EscrowRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Escrow *EscrowRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type EscrowSession struct + CallOpts bind.CallOpts + Contract *Escrow + TransactOpts bind.TransactOpts + func (_Escrow *EscrowSession) AddFundsToTransaction(scriptHash [32]byte) (*types.Transaction, error) + func (_Escrow *EscrowSession) AddTokenTransaction(buyer common.Address, seller common.Address, moderator common.Address, ...) (*types.Transaction, error) + func (_Escrow *EscrowSession) AddTokensToTransaction(scriptHash [32]byte, value *big.Int) (*types.Transaction, error) + func (_Escrow *EscrowSession) AddTransaction(buyer common.Address, seller common.Address, moderator common.Address, ...) (*types.Transaction, error) + func (_Escrow *EscrowSession) CalculateRedeemScriptHash(uniqueId [20]byte, threshold uint8, timeoutHours uint32, buyer common.Address, ...) ([32]byte, error) + func (_Escrow *EscrowSession) CheckBeneficiary(scriptHash [32]byte, beneficiary common.Address) (bool, error) + func (_Escrow *EscrowSession) CheckVote(scriptHash [32]byte, party common.Address) (bool, error) + func (_Escrow *EscrowSession) Execute(sigV []uint8, sigR [][32]byte, sigS [][32]byte, scriptHash [32]byte, ...) (*types.Transaction, error) + func (_Escrow *EscrowSession) GetAllTransactionsForParty(partyAddress common.Address) ([][32]byte, error) + func (_Escrow *EscrowSession) PartyVsTransaction(arg0 common.Address, arg1 *big.Int) ([32]byte, error) + func (_Escrow *EscrowSession) TransactionCount() (*big.Int, error) + func (_Escrow *EscrowSession) Transactions(arg0 [32]byte) (struct{ ... }, error) + type EscrowTransactor struct + func NewEscrowTransactor(address common.Address, transactor bind.ContractTransactor) (*EscrowTransactor, error) + func (_Escrow *EscrowTransactor) AddFundsToTransaction(opts *bind.TransactOpts, scriptHash [32]byte) (*types.Transaction, error) + func (_Escrow *EscrowTransactor) AddTokenTransaction(opts *bind.TransactOpts, buyer common.Address, seller common.Address, ...) (*types.Transaction, error) + func (_Escrow *EscrowTransactor) AddTokensToTransaction(opts *bind.TransactOpts, scriptHash [32]byte, value *big.Int) (*types.Transaction, error) + func (_Escrow *EscrowTransactor) AddTransaction(opts *bind.TransactOpts, buyer common.Address, seller common.Address, ...) (*types.Transaction, error) + func (_Escrow *EscrowTransactor) Execute(opts *bind.TransactOpts, sigV []uint8, sigR [][32]byte, sigS [][32]byte, ...) (*types.Transaction, error) + type EscrowTransactorRaw struct + Contract *EscrowTransactor + func (_Escrow *EscrowTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Escrow *EscrowTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type EscrowTransactorSession struct + Contract *EscrowTransactor + TransactOpts bind.TransactOpts + func (_Escrow *EscrowTransactorSession) AddFundsToTransaction(scriptHash [32]byte) (*types.Transaction, error) + func (_Escrow *EscrowTransactorSession) AddTokenTransaction(buyer common.Address, seller common.Address, moderator common.Address, ...) (*types.Transaction, error) + func (_Escrow *EscrowTransactorSession) AddTokensToTransaction(scriptHash [32]byte, value *big.Int) (*types.Transaction, error) + func (_Escrow *EscrowTransactorSession) AddTransaction(buyer common.Address, seller common.Address, moderator common.Address, ...) (*types.Transaction, error) + func (_Escrow *EscrowTransactorSession) Execute(sigV []uint8, sigR [][32]byte, sigS [][32]byte, scriptHash [32]byte, ...) (*types.Transaction, error) + type EthAddress struct + func (addr EthAddress) EncodeAddress() string + func (addr EthAddress) IsForNet(params *chaincfg.Params) bool + func (addr EthAddress) ScriptAddress() []byte + func (addr EthAddress) String() string + type EthClient struct + func NewEthClient(url string) (*EthClient, error) + func (client *EthClient) EstimateGasSpend(from common.Address, value *big.Int) (*big.Int, error) + func (client *EthClient) EstimateTxnGas(from, to common.Address, value *big.Int) (*big.Int, error) + func (client *EthClient) GetBalance(destAccount common.Address) (*big.Int, error) + func (client *EthClient) GetEthGasStationEstimate() (*EthGasStationData, error) + func (client *EthClient) GetLatestBlock() (uint32, common.Hash, error) + func (client *EthClient) GetTokenBalance(destAccount, tokenAddress common.Address) (*big.Int, error) + func (client *EthClient) GetTransaction(hash common.Hash) (*types.Transaction, bool, error) + func (client *EthClient) GetTxnNonce(txID string) (int32, error) + func (client *EthClient) GetUnconfirmedBalance(destAccount common.Address) (*big.Int, error) + func (client *EthClient) Transfer(from *Account, destAccount common.Address, value *big.Int, spendAll bool, ...) (common.Hash, error) + func (client *EthClient) TransferToken(from *Account, toAddress common.Address, tokenAddress common.Address, ...) (common.Hash, error) + type EthConfiguration struct + RegistryAddress string + RopstenPPAddress string + type EthGasStationData struct + Average float64 + AvgWait float64 + BlockNum int64 + BlockTime float64 + Fast float64 + FastWait float64 + Fastest float64 + FastestWait float64 + SafeLow float64 + SafeLowWait float64 + Speed float64 + type EthRedeemScript struct + Buyer common.Address + Moderator common.Address + MultisigAddress common.Address + Seller common.Address + Threshold uint8 + Timeout uint32 + TokenAddress common.Address + TxnID common.Address + func DeserializeEthScript(b []byte) (EthRedeemScript, error) + type EthereumPriceFetcher struct + func NewEthereumPriceFetcher(dialer proxy.Dialer) *EthereumPriceFetcher + func (z *EthereumPriceFetcher) GetAllRates(cacheOK bool) (map[string]float64, error) + func (z *EthereumPriceFetcher) GetExchangeRate(currencyCode string) (float64, error) + func (z *EthereumPriceFetcher) GetLatestRate(currencyCode string) (float64, error) + func (z *EthereumPriceFetcher) UnitsPerCoin() int64 + type EthereumWallet struct + func NewEthereumWallet(cfg config.CoinConfig, params *chaincfg.Params, mnemonic string, ...) (*EthereumWallet, error) + func NewEthereumWalletWithKeyfile(url, keyFile, passwd string) *EthereumWallet + func (wallet *EthereumWallet) AddTransactionListener(callback func(wi.TransactionCallback)) + func (wallet *EthereumWallet) AddWatchedAddresses(addrs ...btcutil.Address) error + func (wallet *EthereumWallet) AssociateTransactionWithOrder(txnCB wi.TransactionCallback) + func (wallet *EthereumWallet) Balance() (confirmed, unconfirmed wi.CurrencyValue) + func (wallet *EthereumWallet) BumpFee(txid chainhash.Hash) (*chainhash.Hash, error) + func (wallet *EthereumWallet) ChainTip() (uint32, chainhash.Hash) + func (wallet *EthereumWallet) ChildKey(keyBytes []byte, chaincode []byte, isPrivateKey bool) (*hd.ExtendedKey, error) + func (wallet *EthereumWallet) Close() + func (wallet *EthereumWallet) CreateAddress() (common.Address, error) + func (wallet *EthereumWallet) CreateMultisigSignature(ins []wi.TransactionInput, outs []wi.TransactionOutput, key *hd.ExtendedKey, ...) ([]wi.Signature, error) + func (wallet *EthereumWallet) CurrencyCode() string + func (wallet *EthereumWallet) CurrentAddress(purpose wi.KeyPurpose) btcutil.Address + func (wallet *EthereumWallet) DecodeAddress(addr string) (btcutil.Address, error) + func (wallet *EthereumWallet) EstimateFee(ins []wi.TransactionInput, outs []wi.TransactionOutput, feePerByte big.Int) big.Int + func (wallet *EthereumWallet) EstimateSpendFee(amount big.Int, feeLevel wi.FeeLevel) (big.Int, error) + func (wallet *EthereumWallet) ExchangeRates() wi.ExchangeRates + func (wallet *EthereumWallet) GenerateMultisigScript(keys []hd.ExtendedKey, threshold int, timeout time.Duration, ...) (btcutil.Address, []byte, error) + func (wallet *EthereumWallet) GetBalance() (*big.Int, error) + func (wallet *EthereumWallet) GetConfirmations(txid chainhash.Hash) (confirms, atHeight uint32, err error) + func (wallet *EthereumWallet) GetFeePerByte(feeLevel wi.FeeLevel) big.Int + func (wallet *EthereumWallet) GetTransaction(txid chainhash.Hash) (wi.Txn, error) + func (wallet *EthereumWallet) GetUnconfirmedBalance() (*big.Int, error) + func (wallet *EthereumWallet) HasKey(addr btcutil.Address) bool + func (wallet *EthereumWallet) IsDust(amount big.Int) bool + func (wallet *EthereumWallet) MasterPrivateKey() *hd.ExtendedKey + func (wallet *EthereumWallet) MasterPublicKey() *hd.ExtendedKey + func (wallet *EthereumWallet) Multisign(ins []wi.TransactionInput, outs []wi.TransactionOutput, sigs1 []wi.Signature, ...) ([]byte, error) + func (wallet *EthereumWallet) NewAddress(purpose wi.KeyPurpose) btcutil.Address + func (wallet *EthereumWallet) Params() *chaincfg.Params + func (wallet *EthereumWallet) PrintKeys() + func (wallet *EthereumWallet) ReSyncBlockchain(fromTime time.Time) + func (wallet *EthereumWallet) ScriptToAddress(script []byte) (btcutil.Address, error) + func (wallet *EthereumWallet) Spend(amount big.Int, addr btcutil.Address, feeLevel wi.FeeLevel, referenceID string, ...) (*chainhash.Hash, error) + func (wallet *EthereumWallet) Start() + func (wallet *EthereumWallet) SweepAddress(utxos []wi.TransactionInput, address *btcutil.Address, key *hd.ExtendedKey, ...) (*chainhash.Hash, error) + func (wallet *EthereumWallet) Transactions() ([]wi.Txn, error) + func (wallet *EthereumWallet) TransactionsFromBlock(startBlock *int) ([]wi.Txn, error) + func (wallet *EthereumWallet) Transfer(to string, value *big.Int, spendAll bool, fee big.Int) (common.Hash, error) + type ExchangeRateDecoder interface + type ExchangeRateProvider struct + type KrakenDecoder struct + type OpenBazaarDecoder struct + type PendingTxn struct + Amount string + From string + Nonce int32 + OrderID string + To string + TxnID common.Hash + WithInput bool + func DeserializePendingTxn(b []byte) (PendingTxn, error) + type PoloniexDecoder struct + type Registry struct + func DeployRegistry(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Registry, error) + func NewRegistry(address common.Address, backend bind.ContractBackend) (*Registry, error) + type RegistryCaller struct + func NewRegistryCaller(address common.Address, caller bind.ContractCaller) (*RegistryCaller, error) + func (_Registry *RegistryCaller) GetContractAtIndex(opts *bind.CallOpts, index *big.Int) (string, error) + func (_Registry *RegistryCaller) GetRecommendedVersion(opts *bind.CallOpts, contractName string) (struct{ ... }, error) + func (_Registry *RegistryCaller) GetTotalContractCount(opts *bind.CallOpts) (*big.Int, error) + func (_Registry *RegistryCaller) GetVersionAtIndex(opts *bind.CallOpts, contractName string, index *big.Int) (string, error) + func (_Registry *RegistryCaller) GetVersionCountForContract(opts *bind.CallOpts, contractName string) (*big.Int, error) + func (_Registry *RegistryCaller) GetVersionDetails(opts *bind.CallOpts, contractName string, versionName string) (struct{ ... }, error) + func (_Registry *RegistryCaller) Owner(opts *bind.CallOpts) (common.Address, error) + type RegistryCallerRaw struct + Contract *RegistryCaller + func (_Registry *RegistryCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type RegistryCallerSession struct + CallOpts bind.CallOpts + Contract *RegistryCaller + func (_Registry *RegistryCallerSession) GetContractAtIndex(index *big.Int) (string, error) + func (_Registry *RegistryCallerSession) GetRecommendedVersion(contractName string) (struct{ ... }, error) + func (_Registry *RegistryCallerSession) GetTotalContractCount() (*big.Int, error) + func (_Registry *RegistryCallerSession) GetVersionAtIndex(contractName string, index *big.Int) (string, error) + func (_Registry *RegistryCallerSession) GetVersionCountForContract(contractName string) (*big.Int, error) + func (_Registry *RegistryCallerSession) GetVersionDetails(contractName string, versionName string) (struct{ ... }, error) + func (_Registry *RegistryCallerSession) Owner() (common.Address, error) + type RegistryFilterer struct + func NewRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryFilterer, error) + func (_Registry *RegistryFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*RegistryOwnershipRenouncedIterator, error) + func (_Registry *RegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*RegistryOwnershipTransferredIterator, error) + func (_Registry *RegistryFilterer) FilterRecommendedVersionRemoved(opts *bind.FilterOpts) (*RegistryRecommendedVersionRemovedIterator, error) + func (_Registry *RegistryFilterer) FilterVersionAdded(opts *bind.FilterOpts, implementation []common.Address) (*RegistryVersionAddedIterator, error) + func (_Registry *RegistryFilterer) FilterVersionRecommended(opts *bind.FilterOpts) (*RegistryVersionRecommendedIterator, error) + func (_Registry *RegistryFilterer) FilterVersionUpdated(opts *bind.FilterOpts) (*RegistryVersionUpdatedIterator, error) + func (_Registry *RegistryFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *RegistryOwnershipRenounced, ...) (event.Subscription, error) + func (_Registry *RegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RegistryOwnershipTransferred, ...) (event.Subscription, error) + func (_Registry *RegistryFilterer) WatchRecommendedVersionRemoved(opts *bind.WatchOpts, sink chan<- *RegistryRecommendedVersionRemoved) (event.Subscription, error) + func (_Registry *RegistryFilterer) WatchVersionAdded(opts *bind.WatchOpts, sink chan<- *RegistryVersionAdded, ...) (event.Subscription, error) + func (_Registry *RegistryFilterer) WatchVersionRecommended(opts *bind.WatchOpts, sink chan<- *RegistryVersionRecommended) (event.Subscription, error) + func (_Registry *RegistryFilterer) WatchVersionUpdated(opts *bind.WatchOpts, sink chan<- *RegistryVersionUpdated) (event.Subscription, error) + type RegistryOwnershipRenounced struct + PreviousOwner common.Address + Raw types.Log + type RegistryOwnershipRenouncedIterator struct + Event *RegistryOwnershipRenounced + func (it *RegistryOwnershipRenouncedIterator) Close() error + func (it *RegistryOwnershipRenouncedIterator) Error() error + func (it *RegistryOwnershipRenouncedIterator) Next() bool + type RegistryOwnershipTransferred struct + NewOwner common.Address + PreviousOwner common.Address + Raw types.Log + type RegistryOwnershipTransferredIterator struct + Event *RegistryOwnershipTransferred + func (it *RegistryOwnershipTransferredIterator) Close() error + func (it *RegistryOwnershipTransferredIterator) Error() error + func (it *RegistryOwnershipTransferredIterator) Next() bool + type RegistryRaw struct + Contract *Registry + func (_Registry *RegistryRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_Registry *RegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Registry *RegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type RegistryRecommendedVersionRemoved struct + ContractName string + Raw types.Log + type RegistryRecommendedVersionRemovedIterator struct + Event *RegistryRecommendedVersionRemoved + func (it *RegistryRecommendedVersionRemovedIterator) Close() error + func (it *RegistryRecommendedVersionRemovedIterator) Error() error + func (it *RegistryRecommendedVersionRemovedIterator) Next() bool + type RegistrySession struct + CallOpts bind.CallOpts + Contract *Registry + TransactOpts bind.TransactOpts + func (_Registry *RegistrySession) AddVersion(contractName string, versionName string, status uint8, ...) (*types.Transaction, error) + func (_Registry *RegistrySession) GetContractAtIndex(index *big.Int) (string, error) + func (_Registry *RegistrySession) GetRecommendedVersion(contractName string) (struct{ ... }, error) + func (_Registry *RegistrySession) GetTotalContractCount() (*big.Int, error) + func (_Registry *RegistrySession) GetVersionAtIndex(contractName string, index *big.Int) (string, error) + func (_Registry *RegistrySession) GetVersionCountForContract(contractName string) (*big.Int, error) + func (_Registry *RegistrySession) GetVersionDetails(contractName string, versionName string) (struct{ ... }, error) + func (_Registry *RegistrySession) MarkRecommendedVersion(contractName string, versionName string) (*types.Transaction, error) + func (_Registry *RegistrySession) Owner() (common.Address, error) + func (_Registry *RegistrySession) RemoveRecommendedVersion(contractName string) (*types.Transaction, error) + func (_Registry *RegistrySession) RenounceOwnership() (*types.Transaction, error) + func (_Registry *RegistrySession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) + func (_Registry *RegistrySession) UpdateVersion(contractName string, versionName string, status uint8, bugLevel uint8) (*types.Transaction, error) + type RegistryTransactor struct + func NewRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryTransactor, error) + func (_Registry *RegistryTransactor) AddVersion(opts *bind.TransactOpts, contractName string, versionName string, status uint8, ...) (*types.Transaction, error) + func (_Registry *RegistryTransactor) MarkRecommendedVersion(opts *bind.TransactOpts, contractName string, versionName string) (*types.Transaction, error) + func (_Registry *RegistryTransactor) RemoveRecommendedVersion(opts *bind.TransactOpts, contractName string) (*types.Transaction, error) + func (_Registry *RegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) + func (_Registry *RegistryTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) + func (_Registry *RegistryTransactor) UpdateVersion(opts *bind.TransactOpts, contractName string, versionName string, status uint8, ...) (*types.Transaction, error) + type RegistryTransactorRaw struct + Contract *RegistryTransactor + func (_Registry *RegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Registry *RegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type RegistryTransactorSession struct + Contract *RegistryTransactor + TransactOpts bind.TransactOpts + func (_Registry *RegistryTransactorSession) AddVersion(contractName string, versionName string, status uint8, ...) (*types.Transaction, error) + func (_Registry *RegistryTransactorSession) MarkRecommendedVersion(contractName string, versionName string) (*types.Transaction, error) + func (_Registry *RegistryTransactorSession) RemoveRecommendedVersion(contractName string) (*types.Transaction, error) + func (_Registry *RegistryTransactorSession) RenounceOwnership() (*types.Transaction, error) + func (_Registry *RegistryTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) + func (_Registry *RegistryTransactorSession) UpdateVersion(contractName string, versionName string, status uint8, bugLevel uint8) (*types.Transaction, error) + type RegistryVersionAdded struct + ContractName string + Implementation common.Address + Raw types.Log + VersionName string + type RegistryVersionAddedIterator struct + Event *RegistryVersionAdded + func (it *RegistryVersionAddedIterator) Close() error + func (it *RegistryVersionAddedIterator) Error() error + func (it *RegistryVersionAddedIterator) Next() bool + type RegistryVersionRecommended struct + ContractName string + Raw types.Log + VersionName string + type RegistryVersionRecommendedIterator struct + Event *RegistryVersionRecommended + func (it *RegistryVersionRecommendedIterator) Close() error + func (it *RegistryVersionRecommendedIterator) Error() error + func (it *RegistryVersionRecommendedIterator) Next() bool + type RegistryVersionUpdated struct + BugLevel uint8 + ContractName string + Raw types.Log + Status uint8 + VersionName string + type RegistryVersionUpdatedIterator struct + Event *RegistryVersionUpdated + func (it *RegistryVersionUpdatedIterator) Close() error + func (it *RegistryVersionUpdatedIterator) Error() error + func (it *RegistryVersionUpdatedIterator) Next() bool + type Service struct + func NewWalletService(db wallet.Datastore, client *ethclient.Client, coinType wallet.CoinType) *Service + func (ws *Service) ChainTip() (uint32, chainhash.Hash) + func (ws *Service) Start() + func (ws *Service) Stop() + func (ws *Service) UpdateState() + type Token struct + func NewToken(address common.Address, backend bind.ContractBackend) (*Token, error) + type TokenApproval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type TokenApprovalIterator struct + Event *TokenApproval + func (it *TokenApprovalIterator) Close() error + func (it *TokenApprovalIterator) Error() error + func (it *TokenApprovalIterator) Next() bool + type TokenCaller struct + func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error) + func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error) + func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error) + func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error) + func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error) + func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type TokenCallerRaw struct + Contract *TokenCaller + func (_Token *TokenCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type TokenCallerSession struct + CallOpts bind.CallOpts + Contract *TokenCaller + func (_Token *TokenCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) + func (_Token *TokenCallerSession) BalanceOf(_owner common.Address) (*big.Int, error) + func (_Token *TokenCallerSession) Decimals() (uint8, error) + func (_Token *TokenCallerSession) Name() (string, error) + func (_Token *TokenCallerSession) Symbol() (string, error) + func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error) + type TokenDetail struct + type TokenFilterer struct + func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error) + func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*TokenApprovalIterator, error) + func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*TokenTransferIterator, error) + func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, _owner []common.Address, ...) (event.Subscription, error) + func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, _from []common.Address, ...) (event.Subscription, error) + type TokenRaw struct + Contract *Token + func (_Token *TokenRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type TokenSession struct + CallOpts bind.CallOpts + Contract *Token + TransactOpts bind.TransactOpts + func (_Token *TokenSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) + func (_Token *TokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) BalanceOf(_owner common.Address) (*big.Int, error) + func (_Token *TokenSession) Decimals() (uint8, error) + func (_Token *TokenSession) Name() (string, error) + func (_Token *TokenSession) Symbol() (string, error) + func (_Token *TokenSession) TotalSupply() (*big.Int, error) + func (_Token *TokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) + func (_Token *TokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) + type TokenTransactor struct + func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error) + func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error) + type TokenTransactorRaw struct + Contract *TokenTransactor + func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Token *TokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type TokenTransactorSession struct + Contract *TokenTransactor + TransactOpts bind.TransactOpts + func (_Token *TokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) + func (_Token *TokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) + type TokenTransfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type TokenTransferIterator struct + Event *TokenTransfer + func (it *TokenTransferIterator) Close() error + func (it *TokenTransferIterator) Error() error + func (it *TokenTransferIterator) Next() bool