Documentation ¶
Index ¶
- Constants
- type API
- func (api *API) AddCustomToken(ctx context.Context, token token.Token) error
- func (api *API) AddEthereumChain(ctx context.Context, network params.Network) error
- func (api *API) AddWalletConnectSession(ctx context.Context, session_json string) error
- func (api *API) AddressExists(ctx context.Context, address types.Address) (bool, error)
- func (api *API) BuildRawTransaction(ctx context.Context, chainID uint64, sendTxArgsJSON string, signature string) (response *transfer.TxResponse, err error)
- func (api *API) BuildTransaction(ctx context.Context, chainID uint64, sendTxArgsJSON string) (response *transfer.TxResponse, err error)
- func (api *API) CancelActivityFilterTask(requestID int32) error
- func (api *API) CheckRecentHistory(ctx context.Context, addresses []common.Address) error
- func (api *API) CheckRecentHistoryForChainIDs(ctx context.Context, chainIDs []uint64, addresses []common.Address) error
- func (api *API) CreateMultiTransaction(ctx context.Context, multiTransactionCommand *transfer.MultiTransactionCommand, ...) (*transfer.MultiTransactionCommandResult, error)
- func (api *API) DeleteCustomToken(ctx context.Context, address common.Address) error
- func (api *API) DeleteCustomTokenByChainID(ctx context.Context, chainID uint64, address common.Address) error
- func (api *API) DeleteEthereumChain(ctx context.Context, chainID uint64) error
- func (api *API) DisconnectWalletConnectSession(ctx context.Context, topic walletconnect.Topic) error
- func (api *API) DiscoverToken(ctx context.Context, chainID uint64, address common.Address) (*token.Token, error)
- func (api *API) FetchAllCurrencyFormats() (currency.FormatPerSymbol, error)
- func (api *API) FetchBalancesByOwnerAndContractAddress(ctx context.Context, chainID wcommon.ChainID, ownerAddress common.Address, ...) (thirdparty.TokenBalancesPerContractAddress, error)
- func (api *API) FetchCachedBalancesByOwnerAndContractAddress(ctx context.Context, chainID wcommon.ChainID, ownerAddress common.Address, ...) (thirdparty.TokenBalancesPerContractAddress, error)
- func (api *API) FetchChainIDForURL(ctx context.Context, rpcURL string) (*big.Int, error)
- func (api *API) FetchCollectibleOwnersByContractAddress(ctx context.Context, chainID wcommon.ChainID, contractAddress common.Address) (*thirdparty.CollectibleContractOwnership, error)
- func (api *API) FetchCollectionSocialsAsync(contractID thirdparty.ContractID) error
- func (api *API) FetchDecodedTxData(ctx context.Context, data string) (*thirdparty.DataParsed, error)
- func (api *API) FetchMarketValues(ctx context.Context, symbols []string, currency string) (map[string]thirdparty.TokenMarketValues, error)
- func (api *API) FetchOrGetCachedWalletBalances(ctx context.Context, addresses []common.Address) (map[common.Address][]token.StorageToken, error)
- func (api *API) FetchPrices(ctx context.Context, symbols []string, currencies []string) (map[string]map[string]float64, error)
- func (api *API) FetchTokenDetails(ctx context.Context, symbols []string) (map[string]thirdparty.TokenDetails, error)
- func (api *API) FilterActivityAsync(requestID int32, addresses []common.Address, chainIDs []wcommon.ChainID, ...) error
- func (api *API) GetActivityCollectiblesAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, ...) error
- func (api *API) GetAddressDetails(ctx context.Context, chainID uint64, address string) (*DerivedAddress, error)
- func (api *API) GetBalanceHistory(ctx context.Context, chainIDs []uint64, addresses []common.Address, ...) ([]*history.ValuePoint, error)
- func (api *API) GetBalanceHistoryRange(ctx context.Context, chainIDs []uint64, addresses []common.Address, ...) ([]*history.ValuePoint, error)
- func (api *API) GetBalancesByChain(ctx context.Context, chainIDs []uint64, addresses, tokens []common.Address) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error)
- func (api *API) GetCachedCurrencyFormats() (currency.FormatPerSymbol, error)
- func (api *API) GetCollectibleOwnersByContractAddress(ctx context.Context, chainID wcommon.ChainID, contractAddress common.Address) (*thirdparty.CollectibleContractOwnership, error)
- func (api *API) GetCollectibleOwnership(id thirdparty.CollectibleUniqueID) ([]thirdparty.AccountBalance, error)
- func (api *API) GetCollectiblesByUniqueIDAsync(requestID int32, uniqueIDs []thirdparty.CollectibleUniqueID, ...) error
- func (api *API) GetCryptoOnRampURL(ctx context.Context, providerID string, parameters onramp.Parameters) (string, error)
- func (api *API) GetCryptoOnRamps(ctx context.Context) ([]onramp.CryptoOnRamp, error)
- func (api *API) GetCustomTokens(ctx context.Context) ([]*token.Token, error)
- func (api *API) GetDailyMarketValues(ctx context.Context, symbol string, currency string, limit int, allData bool, ...) ([]thirdparty.HistoricalPrice, error)
- func (api *API) GetDerivedAddresses(ctx context.Context, password string, derivedFrom string, paths []string) ([]*DerivedAddress, error)
- func (api *API) GetDerivedAddressesForMnemonic(ctx context.Context, mnemonic string, paths []string) ([]*DerivedAddress, error)
- func (api *API) GetEstimatedLatestBlockNumber(ctx context.Context, chainID uint64) (uint64, error)
- func (api *API) GetEthereumChains(ctx context.Context) ([]*network.CombinedNetwork, error)
- func (api *API) GetHourlyMarketValues(ctx context.Context, symbol string, currency string, limit int, aggregate int) ([]thirdparty.HistoricalPrice, error)
- func (api *API) GetMoreForActivityFilterSession(id activity.SessionID, pageCount int) error
- func (api *API) GetMultiTransactions(ctx context.Context, transactionIDs []wcommon.MultiTransactionIDType) ([]*transfer.MultiTransaction, error)
- func (api *API) GetMultiTxDetails(ctx context.Context, multiTxID int) (*activity.EntryDetails, error)
- func (api *API) GetOldestActivityTimestampAsync(requestID int32, addresses []common.Address) error
- func (api *API) GetOwnedCollectiblesAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, ...) error
- func (api *API) GetPairingsJSONFileContent() ([]byte, error)
- func (api *API) GetPendingTransactions(ctx context.Context) ([]*transactions.PendingTransaction, error)
- func (api *API) GetPendingTransactionsForIdentities(ctx context.Context, identities []transfer.TransactionIdentity) (result []*transactions.PendingTransaction, err error)
- func (api *API) GetRecipientsAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, ...) (ignored bool, err error)
- func (api *API) GetSuggestedFees(ctx context.Context, chainID uint64) (*router.SuggestedFeesGwei, error)
- func (api *API) GetSuggestedRoutes(ctx context.Context, sendType router.SendType, addrFrom common.Address, ...) (*router.SuggestedRoutes, error)
- func (api *API) GetSuggestedRoutesV2(ctx context.Context, input *router.RouteInputParams) (*router.SuggestedRoutesV2, error)
- func (api *API) GetSuggestedRoutesV2Async(ctx context.Context, input *router.RouteInputParams)
- func (api *API) GetTokenList(ctx context.Context) (*token.ListWrapper, error)
- func (api *API) GetTokens(ctx context.Context, chainID uint64) ([]*token.Token, error)
- func (api *API) GetTransactionEstimatedTime(ctx context.Context, chainID uint64, maxFeePerGas *big.Float) (router.TransactionEstimation, error)
- func (api *API) GetTransfersByAddress(ctx context.Context, address common.Address, toBlock, limit *hexutil.Big, ...) ([]transfer.View, error)
- func (api *API) GetTransfersByAddressAndChainID(ctx context.Context, chainID uint64, address common.Address, ...) ([]transfer.View, error)
- func (api *API) GetTransfersForIdentities(ctx context.Context, identities []transfer.TransactionIdentity) ([]transfer.View, error)
- func (api *API) GetTxDetails(ctx context.Context, id string) (*activity.EntryDetails, error)
- func (api *API) GetWalletConnectActiveSessions(ctx context.Context, validAtTimestamp int64) ([]walletconnect.DBSession, error)
- func (api *API) GetWalletConnectDapps(ctx context.Context, validAtTimestamp int64, testChains bool) ([]walletconnect.DBDApp, error)
- func (api *API) GetWalletToken(ctx context.Context, addresses []common.Address) (map[common.Address][]token.StorageToken, error)
- func (api *API) HashMessageEIP191(ctx context.Context, message types.HexBytes) types.Hash
- func (api *API) IsChecksumValidForAddress(address string) (bool, error)
- func (api *API) LoadTransferByHash(ctx context.Context, address common.Address, hash common.Hash) error
- func (api *API) ProceedWithTransactionsSignatures(ctx context.Context, signatures map[string]transfer.SignatureDetails) (*transfer.MultiTransactionCommandResult, error)
- func (api *API) RefetchOwnedCollectibles() error
- func (api *API) ResetActivityFilterSession(id activity.SessionID, firstPageCount int) error
- func (api *API) RestartWalletReloadTimer(ctx context.Context) error
- func (api *API) SafeSignTypedDataForDApps(typedJson string, address string, password string, chainID uint64, legacy bool) (types.HexBytes, error)
- func (api *API) SearchCollectibles(ctx context.Context, chainID wcommon.ChainID, text string, cursor string, ...) (*thirdparty.FullCollectibleDataContainer, error)
- func (api *API) SearchCollections(ctx context.Context, chainID wcommon.ChainID, text string, cursor string, ...) (*thirdparty.CollectionDataContainer, error)
- func (api *API) SendTransactionWithSignature(ctx context.Context, chainID uint64, txType transactions.PendingTrxType, ...) (hash types.Hash, err error)
- func (api *API) SetPairingsJSONFileContent(content []byte) error
- func (api *API) SignMessage(ctx context.Context, message types.HexBytes, address common.Address, ...) (string, error)
- func (api *API) SignTypedDataV4(typedJson string, address string, password string) (types.HexBytes, error)
- func (api *API) StartActivityFilterSession(addresses []common.Address, chainIDs []wcommon.ChainID, filter activity.Filter, ...) (activity.SessionID, error)
- func (api *API) StartWallet(ctx context.Context) error
- func (api *API) StopActivityFilterSession(id activity.SessionID)
- func (api *API) StopSuggestedRoutesV2AsyncCalcualtion(ctx context.Context)
- func (api *API) StopWallet(ctx context.Context) error
- func (api *API) UpdateActivityFilterForSession(sessionID activity.SessionID, filter activity.Filter, firstPageCount int) error
- func (api *API) WatchTransactionByChainID(ctx context.Context, chainID uint64, transactionHash common.Hash) (err error)
- type Decoder
- type DerivedAddress
- type KeycardPairing
- type KeycardPairings
- type Reader
- func (r *Reader) FetchBalances(ctx context.Context, clients map[uint64]chain.ClientInterface, ...) (map[common.Address][]token.StorageToken, error)
- func (r *Reader) FetchOrGetCachedWalletBalances(ctx context.Context, clients map[uint64]chain.ClientInterface, ...) (map[common.Address][]token.StorageToken, error)
- func (r *Reader) GetCachedBalances(clients map[uint64]chain.ClientInterface, addresses []common.Address) (map[common.Address][]token.StorageToken, error)
- func (r *Reader) GetWalletToken(ctx context.Context, clients map[uint64]chain.ClientInterface, ...) (map[common.Address][]token.StorageToken, error)
- func (r *Reader) Restart() error
- func (r *Reader) Start() error
- func (r *Reader) Stop()
- type SavedAddress
- type SavedAddressesManager
- func (sam *SavedAddressesManager) AddSavedAddressIfNewerUpdate(sa SavedAddress) (insertedOrUpdated bool, err error)
- func (sam *SavedAddressesManager) DeleteSavedAddress(address common.Address, isTest bool, updateClock uint64) (deleted bool, err error)
- func (sam *SavedAddressesManager) DeleteSoftRemovedSavedAddresses(threshold uint64) error
- func (sam *SavedAddressesManager) GetRawSavedAddresses() ([]*SavedAddress, error)
- func (sam *SavedAddressesManager) GetSavedAddresses() ([]*SavedAddress, error)
- func (sam *SavedAddressesManager) GetSavedAddressesPerMode(testnetMode bool) ([]*SavedAddress, error)
- func (sam *SavedAddressesManager) RemainingCapacityForSavedAddresses(testnetMode bool) (int, error)
- func (sam *SavedAddressesManager) UpdateMetadataAndUpsertSavedAddress(sa SavedAddress) error
- type Service
- func (s *Service) APIs() []gethrpc.API
- func (s *Service) Config() *params.NodeConfig
- func (s *Service) FeatureFlags() *protocolCommon.FeatureFlags
- func (s *Service) GetCollectiblesManager() *collectibles.Manager
- func (s *Service) GetCollectiblesService() *collectibles.Service
- func (s *Service) GetEnsService() *ens.Service
- func (s *Service) GetMarketManager() *market.Manager
- func (s *Service) GetRPCClient() *rpc.Client
- func (s *Service) GetStickersService() *stickers.Service
- func (s *Service) GetTokenManager() *token.Manager
- func (s *Service) GetTransactor() *transactions.Transactor
- func (s *Service) IsStarted() bool
- func (s *Service) KeycardPairings() *KeycardPairings
- func (s *Service) Protocols() []p2p.Protocol
- func (s *Service) SetWalletCommunityInfoProvider(provider thirdparty.CommunityInfoProvider)
- func (s *Service) Start() error
- func (s *Service) Stop() error
Constants ¶
const (
EventBlockchainStatusChanged walletevent.EventType = "wallet-blockchain-status-changed"
)
const EventWalletTickCheckConnected walletevent.EventType = "wallet-tick-check-connected"
const EventWalletTickReload walletevent.EventType = "wallet-tick-reload"
WalletTickReload emitted every 15mn to reload the wallet balance and history
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is class with methods available over RPC.
func (*API) AddCustomToken ¶ added in v0.38.1
func (*API) AddEthereumChain ¶ added in v0.86.7
func (*API) AddWalletConnectSession ¶ added in v0.179.24
AddWalletConnectSession adds or updates a session wallet connect session
func (*API) AddressExists ¶ added in v0.152.3
func (*API) BuildRawTransaction ¶ added in v0.171.27
func (*API) BuildTransaction ¶ added in v0.171.25
func (*API) CancelActivityFilterTask ¶ added in v0.167.5
@deprecated replaced by session APIs; see #12120
func (*API) CheckRecentHistory ¶ added in v0.75.0
@deprecated
func (*API) CheckRecentHistoryForChainIDs ¶ added in v0.86.7
func (api *API) CheckRecentHistoryForChainIDs(ctx context.Context, chainIDs []uint64, addresses []common.Address) error
@deprecated
func (*API) CreateMultiTransaction ¶ added in v0.103.2
func (api *API) CreateMultiTransaction(ctx context.Context, multiTransactionCommand *transfer.MultiTransactionCommand, data []*pathprocessor.MultipathProcessorTxArgs, password string) (*transfer.MultiTransactionCommandResult, error)
func (*API) DeleteCustomToken ¶ added in v0.38.1
@deprecated
func (*API) DeleteCustomTokenByChainID ¶ added in v0.86.7
func (*API) DeleteEthereumChain ¶ added in v0.86.7
func (*API) DisconnectWalletConnectSession ¶ added in v0.179.24
func (api *API) DisconnectWalletConnectSession(ctx context.Context, topic walletconnect.Topic) error
DisconnectWalletConnectSession removes a wallet connect session
func (*API) DiscoverToken ¶ added in v0.98.1
func (*API) FetchAllCurrencyFormats ¶ added in v0.131.11
func (api *API) FetchAllCurrencyFormats() (currency.FormatPerSymbol, error)
func (*API) FetchBalancesByOwnerAndContractAddress ¶ added in v0.162.5
func (*API) FetchCachedBalancesByOwnerAndContractAddress ¶ added in v0.180.31
func (*API) FetchChainIDForURL ¶ added in v0.162.5
func (*API) FetchCollectibleOwnersByContractAddress ¶ added in v0.179.29
func (api *API) FetchCollectibleOwnersByContractAddress(ctx context.Context, chainID wcommon.ChainID, contractAddress common.Address) (*thirdparty.CollectibleContractOwnership, error)
func (*API) FetchCollectionSocialsAsync ¶ added in v0.179.17
func (api *API) FetchCollectionSocialsAsync(contractID thirdparty.ContractID) error
func (*API) FetchDecodedTxData ¶ added in v0.159.2
func (api *API) FetchDecodedTxData(ctx context.Context, data string) (*thirdparty.DataParsed, error)
func (*API) FetchMarketValues ¶ added in v0.106.1
func (api *API) FetchMarketValues(ctx context.Context, symbols []string, currency string) (map[string]thirdparty.TokenMarketValues, error)
@deprecated
func (*API) FetchOrGetCachedWalletBalances ¶ added in v0.173.0
func (*API) FetchPrices ¶ added in v0.96.4
func (api *API) FetchPrices(ctx context.Context, symbols []string, currencies []string) (map[string]map[string]float64, error)
@deprecated
func (*API) FetchTokenDetails ¶ added in v0.106.1
func (api *API) FetchTokenDetails(ctx context.Context, symbols []string) (map[string]thirdparty.TokenDetails, error)
@deprecated
func (*API) FilterActivityAsync ¶ added in v0.158.0
func (api *API) FilterActivityAsync(requestID int32, addresses []common.Address, chainIDs []wcommon.ChainID, filter activity.Filter, offset int, limit int) error
@deprecated replaced by session APIs; see #12120
func (*API) GetActivityCollectiblesAsync ¶ added in v0.167.5
func (*API) GetAddressDetails ¶ added in v0.142.1
func (api *API) GetAddressDetails(ctx context.Context, chainID uint64, address string) (*DerivedAddress, error)
Returns details for the passed address (response doesn't include derivation path)
func (*API) GetBalanceHistory ¶ added in v0.114.3
func (api *API) GetBalanceHistory(ctx context.Context, chainIDs []uint64, addresses []common.Address, tokenSymbol string, currencySymbol string, timeInterval history.TimeInterval) ([]*history.ValuePoint, error)
GetBalanceHistory retrieves token balance history for token identity on multiple chains
func (*API) GetBalanceHistoryRange ¶ added in v0.168.1
func (api *API) GetBalanceHistoryRange(ctx context.Context, chainIDs []uint64, addresses []common.Address, tokenSymbol string, currencySymbol string, fromTimestamp uint64, _ uint64) ([]*history.ValuePoint, error)
GetBalanceHistoryRange retrieves token balance history for token identity on multiple chains for a time range 'toTimestamp' is ignored for now, but will be used in the future to limit the range of the history
func (*API) GetBalancesByChain ¶ added in v0.171.39
func (api *API) GetBalancesByChain(ctx context.Context, chainIDs []uint64, addresses, tokens []common.Address) (map[uint64]map[common.Address]map[common.Address]*hexutil.Big, error)
GetBalancesByChain return a map with key as chain id and value as map of account address and map of token address and balance [chainID]account[token]balance
func (*API) GetCachedCurrencyFormats ¶ added in v0.131.11
func (api *API) GetCachedCurrencyFormats() (currency.FormatPerSymbol, error)
func (*API) GetCollectibleOwnersByContractAddress ¶ added in v0.146.3
func (api *API) GetCollectibleOwnersByContractAddress(ctx context.Context, chainID wcommon.ChainID, contractAddress common.Address) (*thirdparty.CollectibleContractOwnership, error)
func (*API) GetCollectibleOwnership ¶ added in v0.175.3
func (api *API) GetCollectibleOwnership(id thirdparty.CollectibleUniqueID) ([]thirdparty.AccountBalance, error)
func (*API) GetCollectiblesByUniqueIDAsync ¶ added in v0.171.21
func (api *API) GetCollectiblesByUniqueIDAsync(requestID int32, uniqueIDs []thirdparty.CollectibleUniqueID, dataType collectibles.CollectibleDataType) error
func (*API) GetCryptoOnRampURL ¶ added in v0.182.43
func (*API) GetCryptoOnRamps ¶ added in v0.71.4
func (*API) GetCustomTokens ¶ added in v0.38.1
@deprecated
func (*API) GetDailyMarketValues ¶ added in v0.111.5
func (*API) GetDerivedAddresses ¶ added in v0.142.1
func (api *API) GetDerivedAddresses(ctx context.Context, password string, derivedFrom string, paths []string) ([]*DerivedAddress, error)
Generates addresses for the provided paths, response doesn't include `HasActivity` value (if you need it check `GetAddressDetails` function)
func (*API) GetDerivedAddressesForMnemonic ¶ added in v0.142.1
func (api *API) GetDerivedAddressesForMnemonic(ctx context.Context, mnemonic string, paths []string) ([]*DerivedAddress, error)
Generates addresses for the provided paths derived from the provided mnemonic, response doesn't include `HasActivity` value (if you need it check `GetAddressDetails` function)
func (*API) GetEstimatedLatestBlockNumber ¶ added in v0.166.7
func (*API) GetEthereumChains ¶ added in v0.86.7
func (*API) GetHourlyMarketValues ¶ added in v0.111.5
func (api *API) GetHourlyMarketValues(ctx context.Context, symbol string, currency string, limit int, aggregate int) ([]thirdparty.HistoricalPrice, error)
func (*API) GetMoreForActivityFilterSession ¶ added in v0.174.6
func (*API) GetMultiTransactions ¶ added in v0.138.1
func (api *API) GetMultiTransactions(ctx context.Context, transactionIDs []wcommon.MultiTransactionIDType) ([]*transfer.MultiTransaction, error)
func (*API) GetMultiTxDetails ¶ added in v0.166.1
func (*API) GetOldestActivityTimestampAsync ¶ added in v0.161.2
func (*API) GetOwnedCollectiblesAsync ¶ added in v0.171.21
func (api *API) GetOwnedCollectiblesAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, filter collectibles.Filter, offset int, limit int, dataType collectibles.CollectibleDataType, fetchCriteria collectibles.FetchCriteria) error
func (*API) GetPairingsJSONFileContent ¶ added in v0.166.11
func (*API) GetPendingTransactions ¶ added in v0.62.0
func (api *API) GetPendingTransactions(ctx context.Context) ([]*transactions.PendingTransaction, error)
@deprecated Not used by status-desktop anymore
func (*API) GetPendingTransactionsForIdentities ¶ added in v0.151.4
func (api *API) GetPendingTransactionsForIdentities(ctx context.Context, identities []transfer.TransactionIdentity) ( result []*transactions.PendingTransaction, err error)
@deprecated Not used by status-desktop anymore
func (*API) GetRecipientsAsync ¶ added in v0.161.2
func (*API) GetSuggestedFees ¶ added in v0.97.4
func (*API) GetSuggestedRoutes ¶ added in v0.101.1
func (api *API) GetSuggestedRoutes( ctx context.Context, sendType router.SendType, addrFrom common.Address, addrTo common.Address, amountIn *hexutil.Big, tokenID string, toTokenID string, disabledFromChainIDs, disabledToChainIDs, preferedChainIDs []uint64, gasFeeMode router.GasFeeMode, fromLockedAmount map[uint64]*hexutil.Big, ) (*router.SuggestedRoutes, error)
func (*API) GetSuggestedRoutesV2 ¶ added in v0.179.22
func (api *API) GetSuggestedRoutesV2(ctx context.Context, input *router.RouteInputParams) (*router.SuggestedRoutesV2, error)
func (*API) GetSuggestedRoutesV2Async ¶ added in v0.181.32
func (api *API) GetSuggestedRoutesV2Async(ctx context.Context, input *router.RouteInputParams)
func (*API) GetTokenList ¶ added in v0.171.21
func (*API) GetTransactionEstimatedTime ¶ added in v0.103.2
func (*API) GetTransfersByAddress ¶
func (api *API) GetTransfersByAddress(ctx context.Context, address common.Address, toBlock, limit *hexutil.Big, fetchMore bool) ([]transfer.View, error)
@deprecated GetTransfersByAddress returns transfers for a single address
func (*API) GetTransfersByAddressAndChainID ¶ added in v0.86.7
func (api *API) GetTransfersByAddressAndChainID(ctx context.Context, chainID uint64, address common.Address, toBlock, limit *hexutil.Big, fetchMore bool) ([]transfer.View, error)
@deprecated
func (*API) GetTransfersForIdentities ¶ added in v0.151.4
func (api *API) GetTransfersForIdentities(ctx context.Context, identities []transfer.TransactionIdentity) ([]transfer.View, error)
@deprecated
func (*API) GetTxDetails ¶ added in v0.166.1
func (*API) GetWalletConnectActiveSessions ¶ added in v0.181.32
func (api *API) GetWalletConnectActiveSessions(ctx context.Context, validAtTimestamp int64) ([]walletconnect.DBSession, error)
GetWalletConnectActiveSessions returns all active wallet connect sessions
func (*API) GetWalletConnectDapps ¶ added in v0.179.24
func (api *API) GetWalletConnectDapps(ctx context.Context, validAtTimestamp int64, testChains bool) ([]walletconnect.DBDApp, error)
GetWalletConnectDapps returns all active wallet connect dapps Active dApp are those having active sessions (not expired and not disconnected)
func (*API) GetWalletToken ¶ added in v0.115.5
func (api *API) GetWalletToken(ctx context.Context, addresses []common.Address) (map[common.Address][]token.StorageToken, error)
Used by mobile
func (*API) HashMessageEIP191 ¶ added in v0.181.34
HashMessageEIP191 is used for hashing dApps requests for "personal_sign" and "eth_sign" in a safe manner following the EIP-191 version 0x45 for signing on the client side.
func (*API) IsChecksumValidForAddress ¶ added in v0.182.41
func (*API) LoadTransferByHash ¶ added in v0.91.10
func (api *API) LoadTransferByHash(ctx context.Context, address common.Address, hash common.Hash) error
@deprecated LoadTransferByHash loads transfer to the database Only used by status-mobile
func (*API) ProceedWithTransactionsSignatures ¶ added in v0.171.1
func (api *API) ProceedWithTransactionsSignatures(ctx context.Context, signatures map[string]transfer.SignatureDetails) (*transfer.MultiTransactionCommandResult, error)
func (*API) RefetchOwnedCollectibles ¶ added in v0.167.5
func (*API) ResetActivityFilterSession ¶ added in v0.174.6
func (*API) RestartWalletReloadTimer ¶ added in v0.181.32
func (*API) SafeSignTypedDataForDApps ¶ added in v0.181.34
func (api *API) SafeSignTypedDataForDApps(typedJson string, address string, password string, chainID uint64, legacy bool) (types.HexBytes, error)
SafeSignTypedDataForDApps is used to execute requests for "eth_signTypedData" if legacy is true else "eth_signTypedData_v4" the formatted typed data won't be prefixed in case of legacy calls, as the old dApps implementation expects the chain is validate for both cases
func (*API) SearchCollectibles ¶ added in v0.177.0
func (*API) SearchCollections ¶ added in v0.177.0
func (*API) SendTransactionWithSignature ¶ added in v0.171.25
func (*API) SetPairingsJSONFileContent ¶ added in v0.166.11
func (*API) SignMessage ¶ added in v0.171.25
func (*API) SignTypedDataV4 ¶ added in v0.180.31
func (api *API) SignTypedDataV4(typedJson string, address string, password string) (types.HexBytes, error)
SignTypedDataV4 dApps use it to execute "eth_signTypedData_v4" requests the formatted typed data will be prefixed with \x19\x01 based on the EIP-712 @deprecated
func (*API) StartActivityFilterSession ¶ added in v0.173.0
func (*API) StopActivityFilterSession ¶ added in v0.173.0
func (*API) StopSuggestedRoutesV2AsyncCalcualtion ¶ added in v0.181.32
func (*API) UpdateActivityFilterForSession ¶ added in v0.176.3
func (*API) WatchTransactionByChainID ¶ added in v0.86.7
func (api *API) WatchTransactionByChainID(ctx context.Context, chainID uint64, transactionHash common.Hash) (err error)
@deprecated TODO - #11861: Remove this and replace with EventPendingTransactionStatusChanged event and Delete to confirm the transaction where it is needed
type Decoder ¶ added in v0.161.2
type Decoder struct { Main *fourbytegithub.Client Fallback *fourbyte.Client }
func NewDecoder ¶ added in v0.161.2
func NewDecoder() *Decoder
func (*Decoder) Decode ¶ added in v0.161.2
func (d *Decoder) Decode(data string) (*thirdparty.DataParsed, error)
type DerivedAddress ¶ added in v0.100.0
type KeycardPairing ¶ added in v0.181.31
type KeycardPairings ¶ added in v0.166.11
type KeycardPairings struct {
// contains filtered or unexported fields
}
func NewKeycardPairings ¶ added in v0.166.11
func NewKeycardPairings() *KeycardPairings
func (*KeycardPairings) GetPairings ¶ added in v0.181.31
func (kp *KeycardPairings) GetPairings() (map[string]KeycardPairing, error)
func (*KeycardPairings) GetPairingsJSONFileContent ¶ added in v0.166.11
func (kp *KeycardPairings) GetPairingsJSONFileContent() ([]byte, error)
func (*KeycardPairings) SetKeycardPairingsFile ¶ added in v0.166.11
func (kp *KeycardPairings) SetKeycardPairingsFile(filePath string)
func (*KeycardPairings) SetPairingsJSONFileContent ¶ added in v0.166.11
func (kp *KeycardPairings) SetPairingsJSONFileContent(content []byte) error
type Reader ¶ added in v0.100.0
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶ added in v0.100.0
func NewReader(tokenManager token.ManagerInterface, marketManager *market.Manager, persistence token.TokenBalancesStorage, walletFeed *event.Feed) *Reader
func (*Reader) FetchBalances ¶ added in v0.180.31
func (*Reader) FetchOrGetCachedWalletBalances ¶ added in v0.173.0
func (*Reader) GetCachedBalances ¶ added in v0.180.31
func (*Reader) GetWalletToken ¶ added in v0.115.5
type SavedAddress ¶ added in v0.86.7
type SavedAddress struct { Address common.Address `json:"address"` // TODO: Add Emoji // Emoji string `json:"emoji"` Name string `json:"name"` ChainShortNames string `json:"chainShortNames"` // used with address only, not with ENSName ENSName string `json:"ens"` ColorID multiAccCommon.CustomizationColor `json:"colorId"` IsTest bool `json:"isTest"` CreatedAt int64 `json:"createdAt"` Removed bool `json:"removed"` // contains filtered or unexported fields }
func (*SavedAddress) ID ¶ added in v0.131.2
func (s *SavedAddress) ID() string
func (*SavedAddress) MarshalJSON ¶ added in v0.175.3
func (s *SavedAddress) MarshalJSON() ([]byte, error)
type SavedAddressesManager ¶ added in v0.86.7
type SavedAddressesManager struct {
// contains filtered or unexported fields
}
func NewSavedAddressesManager ¶ added in v0.111.5
func NewSavedAddressesManager(db *sql.DB) *SavedAddressesManager
func (*SavedAddressesManager) AddSavedAddressIfNewerUpdate ¶ added in v0.111.5
func (sam *SavedAddressesManager) AddSavedAddressIfNewerUpdate(sa SavedAddress) (insertedOrUpdated bool, err error)
func (*SavedAddressesManager) DeleteSavedAddress ¶ added in v0.86.7
func (*SavedAddressesManager) DeleteSoftRemovedSavedAddresses ¶ added in v0.111.5
func (sam *SavedAddressesManager) DeleteSoftRemovedSavedAddresses(threshold uint64) error
func (*SavedAddressesManager) GetRawSavedAddresses ¶ added in v0.111.5
func (sam *SavedAddressesManager) GetRawSavedAddresses() ([]*SavedAddress, error)
GetRawSavedAddresses provides access to the soft-delete and sync metadata
func (*SavedAddressesManager) GetSavedAddresses ¶ added in v0.86.7
func (sam *SavedAddressesManager) GetSavedAddresses() ([]*SavedAddress, error)
func (*SavedAddressesManager) GetSavedAddressesPerMode ¶ added in v0.182.41
func (sam *SavedAddressesManager) GetSavedAddressesPerMode(testnetMode bool) ([]*SavedAddress, error)
func (*SavedAddressesManager) RemainingCapacityForSavedAddresses ¶ added in v0.182.41
func (sam *SavedAddressesManager) RemainingCapacityForSavedAddresses(testnetMode bool) (int, error)
func (*SavedAddressesManager) UpdateMetadataAndUpsertSavedAddress ¶ added in v0.111.5
func (sam *SavedAddressesManager) UpdateMetadataAndUpsertSavedAddress(sa SavedAddress) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a wallet service.
func NewService ¶
func NewService( db *sql.DB, accountsDB *accounts.Database, appDB *sql.DB, rpcClient *rpc.Client, accountFeed *event.Feed, settingsFeed *event.Feed, gethManager *account.GethManager, transactor *transactions.Transactor, config *params.NodeConfig, ens *ens.Service, stickers *stickers.Service, pendingTxManager *transactions.PendingTxTracker, feed *event.Feed, mediaServer *server.MediaServer, statusProxyStageName string, ) *Service
NewService initializes service instance.
func (*Service) Config ¶ added in v0.179.16
func (s *Service) Config() *params.NodeConfig
func (*Service) FeatureFlags ¶ added in v0.180.31
func (s *Service) FeatureFlags() *protocolCommon.FeatureFlags
func (*Service) GetCollectiblesManager ¶ added in v0.179.22
func (s *Service) GetCollectiblesManager() *collectibles.Manager
func (*Service) GetCollectiblesService ¶ added in v0.179.22
func (s *Service) GetCollectiblesService() *collectibles.Service
func (*Service) GetEnsService ¶ added in v0.179.22
func (*Service) GetMarketManager ¶ added in v0.179.22
func (*Service) GetRPCClient ¶ added in v0.179.22
func (*Service) GetStickersService ¶ added in v0.179.22
func (*Service) GetTokenManager ¶ added in v0.179.22
func (*Service) GetTransactor ¶ added in v0.179.22
func (s *Service) GetTransactor() *transactions.Transactor
func (*Service) KeycardPairings ¶ added in v0.166.11
func (s *Service) KeycardPairings() *KeycardPairings
func (*Service) SetWalletCommunityInfoProvider ¶ added in v0.171.34
func (s *Service) SetWalletCommunityInfoProvider(provider thirdparty.CommunityInfoProvider)
Set external Collectibles community info provider
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
mock
Package mock_collectibles is a generated GoMock package.
|
Package mock_collectibles is a generated GoMock package. |
Moved here because transactions package depends on accounts package which depends on appdatabase where this functionality is needed
|
Moved here because transactions package depends on accounts package which depends on appdatabase where this functionality is needed |
mock
Package mock_onramp is a generated GoMock package.
|
Package mock_onramp is a generated GoMock package. |
pathprocessor/mock_pathprocessor
Package mock_pathprocessor is a generated GoMock package.
|
Package mock_pathprocessor is a generated GoMock package. |
alchemy
nolint: misspell
|
nolint: misspell |
mock
Package mock_thirdparty is a generated GoMock package.
|
Package mock_thirdparty is a generated GoMock package. |
paraswap/mock
Package mock_paraswap is a generated GoMock package.
|
Package mock_paraswap is a generated GoMock package. |
mock/balance_persistence
Package mock_balance_persistence is a generated GoMock package.
|
Package mock_balance_persistence is a generated GoMock package. |
mock/token
Package mock_token is a generated GoMock package.
|
Package mock_token is a generated GoMock package. |