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) AddSavedAddress(ctx context.Context, sa SavedAddress) error
- func (api *API) AddressExists(ctx context.Context, address types.Address) (bool, 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) DeleteSavedAddress(ctx context.Context, address common.Address, ens string, isTest bool) 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) 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) 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(ctx context.Context, addresses []common.Address, chainIDs []wcommon.ChainID, ...) error
- func (api *API) GetAddressDetails(ctx context.Context, chainID uint64, address string) (*DerivedAddress, error)
- func (api *API) GetBalanceHistory(ctx context.Context, chainIDs []uint64, address common.Address, ...) ([]*history.ValuePoint, error)
- func (api *API) GetCachedCurrencyFormats() (currency.FormatPerSymbol, error)
- func (api *API) GetCachedWalletTokensWithoutMarketData(ctx context.Context) (map[common.Address][]Token, error)
- func (api *API) GetCollectibleOwnersByContractAddress(chainID uint64, contractAddress common.Address) (*thirdparty.NFTContractOwnership, error)
- func (api *API) GetCryptoOnRamps(ctx context.Context) ([]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) 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) GetMultiTransactions(ctx context.Context, transactionIDs []transfer.MultiTransactionIDType) ([]*transfer.MultiTransaction, error)
- func (api *API) GetOldestActivityTimestampAsync(ctx context.Context, addresses []common.Address) error
- func (api *API) GetOpenseaAssetsByNFTUniqueID(ctx context.Context, chainID uint64, uniqueIDs []thirdparty.NFTUniqueID, ...) (*opensea.AssetContainer, error)
- func (api *API) GetOpenseaAssetsByOwnerAndCollection(ctx context.Context, chainID uint64, owner common.Address, ...) ([]opensea.Asset, error)
- func (api *API) GetOpenseaAssetsByOwnerAndCollectionWithCursor(ctx context.Context, chainID uint64, owner common.Address, ...) (*opensea.AssetContainer, error)
- func (api *API) GetOpenseaAssetsByOwnerAndContractAddressWithCursor(ctx context.Context, chainID uint64, owner common.Address, ...) (*opensea.AssetContainer, error)
- func (api *API) GetOpenseaAssetsByOwnerWithCursor(ctx context.Context, chainID uint64, owner common.Address, cursor string, ...) (*opensea.AssetContainer, error)
- func (api *API) GetOpenseaCollectionsByOwner(ctx context.Context, chainID uint64, owner common.Address) ([]opensea.OwnedCollection, error)
- func (api *API) GetPendingOutboundTransactionsByAddress(ctx context.Context, address common.Address) ([]*transactions.PendingTransaction, error)
- func (api *API) GetPendingOutboundTransactionsByAddressAndChainID(ctx context.Context, chainIDs []uint64, address common.Address) ([]*transactions.PendingTransaction, error)
- func (api *API) GetPendingTransactions(ctx context.Context) ([]*transactions.PendingTransaction, error)
- func (api *API) GetPendingTransactionsByChainIDs(ctx context.Context, chainIDs []uint64) ([]*transactions.PendingTransaction, error)
- func (api *API) GetPendingTransactionsForIdentities(ctx context.Context, identities []transfer.TransactionIdentity) (result []*transactions.PendingTransaction, err error)
- func (api *API) GetRecipientsAsync(ctx context.Context, offset int, limit int) (ignored bool, err error)
- func (api *API) GetSavedAddresses(ctx context.Context) ([]SavedAddress, error)
- func (api *API) GetSuggestedFees(ctx context.Context, chainID uint64) (*SuggestedFees, error)
- func (api *API) GetSuggestedRoutes(ctx context.Context, sendType SendType, account common.Address, ...) (*SuggestedRoutes, error)
- func (api *API) GetTokens(ctx context.Context, chainID uint64) ([]*token.Token, error)
- func (api *API) GetTokensBalances(ctx context.Context, accounts, addresses []common.Address) (map[common.Address]map[common.Address]*hexutil.Big, error)
- func (api *API) GetTokensBalancesForChainIDs(ctx context.Context, chainIDs []uint64, accounts, addresses []common.Address) (map[common.Address]map[common.Address]*hexutil.Big, error)
- func (api *API) GetTransactionEstimatedTime(ctx context.Context, chainID uint64, maxFeePerGas *big.Float) (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) GetVisibleTokens(chainIDs []uint64) (map[uint64][]*token.Token, error)
- func (api *API) GetWalletToken(ctx context.Context, addresses []common.Address) (map[common.Address][]Token, error)
- func (api *API) LoadTransferByHash(ctx context.Context, address common.Address, hash common.Hash) error
- func (api *API) SetInitialBlocksRange(ctx context.Context) error
- func (api *API) SetInitialBlocksRangeForChainIDs(ctx context.Context, chainIDs []uint64) error
- func (api *API) StartWallet(ctx context.Context) error
- func (api *API) StopWallet(ctx context.Context) error
- func (api *API) ToggleVisibleToken(ctx context.Context, chainID uint64, address common.Address) (bool, error)
- func (api *API) UpdateVisibleTokens(ctx context.Context, symbols []string) error
- func (api *API) WatchTransaction(ctx context.Context, transactionHash common.Hash) error
- func (api *API) WatchTransactionByChainID(ctx context.Context, chainID uint64, transactionHash common.Hash) error
- type ChainBalance
- type CryptoOnRamp
- type CryptoOnRampManager
- type CryptoOnRampOptions
- type DataSourceType
- type Decoder
- type DerivedAddress
- type FeeHistory
- type FeeManager
- type GasFeeMode
- type Graph
- type Node
- type Path
- type Persistence
- type Reader
- type Router
- type SavedAddress
- type SavedAddressesManager
- func (sam *SavedAddressesManager) AddSavedAddressIfNewerUpdate(sa SavedAddress, updateClock uint64) (insertedOrUpdated bool, err error)
- func (sam *SavedAddressesManager) DeleteSavedAddress(address common.Address, ens string, 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) UpdateMetadataAndUpsertSavedAddress(sa SavedAddress) (updatedClock uint64, err error)
- type SendType
- type Service
- func (s *Service) APIs() []gethrpc.API
- func (s *Service) GetFeed() *event.Feed
- func (s *Service) IsStarted() bool
- func (s *Service) Protocols() []p2p.Protocol
- func (s *Service) SetNFTMetadataProvider(provider thirdparty.NFTMetadataProvider)
- func (s *Service) Start() error
- func (s *Service) Stop() error
- type SuggestedFees
- type SuggestedRoutes
- type Token
- type TokenMarketValues
- type TransactionEstimation
Constants ¶
const EstimatePubKey = "" /* 132-byte string literal not displayed */
const EstimateUsername = "RandomUsername"
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) AddSavedAddress ¶ added in v0.86.7
func (api *API) AddSavedAddress(ctx context.Context, sa SavedAddress) error
func (*API) AddressExists ¶ added in v0.152.3
func (*API) CheckRecentHistory ¶ added in v0.75.0
func (*API) CheckRecentHistoryForChainIDs ¶ added in v0.86.7
func (*API) CreateMultiTransaction ¶ added in v0.103.2
func (api *API) CreateMultiTransaction(ctx context.Context, multiTransactionCommand *transfer.MultiTransactionCommand, data []*bridge.TransactionBridge, password string) (*transfer.MultiTransactionCommandResult, error)
func (*API) DeleteCustomToken ¶ added in v0.38.1
func (*API) DeleteCustomTokenByChainID ¶ added in v0.86.7
func (*API) DeleteEthereumChain ¶ added in v0.86.7
func (*API) DeleteSavedAddress ¶ added in v0.86.7
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) 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)
func (*API) FetchPrices ¶ added in v0.96.4
func (*API) FetchTokenDetails ¶ added in v0.106.1
func (api *API) FetchTokenDetails(ctx context.Context, symbols []string) (map[string]thirdparty.TokenDetails, error)
func (*API) FilterActivityAsync ¶ added in v0.158.0
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, address 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) GetCachedCurrencyFormats ¶ added in v0.131.11
func (api *API) GetCachedCurrencyFormats() (currency.FormatPerSymbol, error)
func (*API) GetCachedWalletTokensWithoutMarketData ¶ added in v0.151.13
func (*API) GetCollectibleOwnersByContractAddress ¶ added in v0.146.3
func (api *API) GetCollectibleOwnersByContractAddress(chainID uint64, contractAddress common.Address) (*thirdparty.NFTContractOwnership, error)
func (*API) GetCryptoOnRamps ¶ added in v0.71.4
func (api *API) GetCryptoOnRamps(ctx context.Context) ([]CryptoOnRamp, error)
func (*API) GetCustomTokens ¶ added in v0.38.1
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) 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) GetMultiTransactions ¶ added in v0.138.1
func (api *API) GetMultiTransactions(ctx context.Context, transactionIDs []transfer.MultiTransactionIDType) ([]*transfer.MultiTransaction, error)
func (*API) GetOldestActivityTimestampAsync ¶ added in v0.161.2
func (*API) GetOpenseaAssetsByNFTUniqueID ¶ added in v0.137.2
func (api *API) GetOpenseaAssetsByNFTUniqueID(ctx context.Context, chainID uint64, uniqueIDs []thirdparty.NFTUniqueID, limit int) (*opensea.AssetContainer, error)
func (*API) GetOpenseaAssetsByOwnerAndCollection ¶ added in v0.83.17
func (api *API) GetOpenseaAssetsByOwnerAndCollection(ctx context.Context, chainID uint64, owner common.Address, collectionSlug string, limit int) ([]opensea.Asset, error)
Kept for compatibility with mobile app
func (*API) GetOpenseaAssetsByOwnerAndCollectionWithCursor ¶ added in v0.138.1
func (*API) GetOpenseaAssetsByOwnerAndContractAddressWithCursor ¶ added in v0.138.8
func (*API) GetOpenseaAssetsByOwnerWithCursor ¶ added in v0.138.1
func (*API) GetOpenseaCollectionsByOwner ¶ added in v0.83.17
func (*API) GetPendingOutboundTransactionsByAddress ¶ added in v0.62.0
func (api *API) GetPendingOutboundTransactionsByAddress(ctx context.Context, address common.Address) ( []*transactions.PendingTransaction, error)
func (*API) GetPendingOutboundTransactionsByAddressAndChainID ¶ added in v0.86.7
func (api *API) GetPendingOutboundTransactionsByAddressAndChainID(ctx context.Context, chainIDs []uint64, address common.Address) ([]*transactions.PendingTransaction, error)
func (*API) GetPendingTransactions ¶ added in v0.62.0
func (api *API) GetPendingTransactions(ctx context.Context) ([]*transactions.PendingTransaction, error)
func (*API) GetPendingTransactionsByChainIDs ¶ added in v0.102.6
func (api *API) GetPendingTransactionsByChainIDs(ctx context.Context, chainIDs []uint64) ([]*transactions.PendingTransaction, error)
func (*API) GetPendingTransactionsForIdentities ¶ added in v0.151.4
func (api *API) GetPendingTransactionsForIdentities(ctx context.Context, identities []transfer.TransactionIdentity) ( result []*transactions.PendingTransaction, err error)
func (*API) GetRecipientsAsync ¶ added in v0.161.2
func (*API) GetSavedAddresses ¶ added in v0.86.7
func (api *API) GetSavedAddresses(ctx context.Context) ([]SavedAddress, error)
func (*API) GetSuggestedFees ¶ added in v0.97.4
func (*API) GetSuggestedRoutes ¶ added in v0.101.1
func (api *API) GetSuggestedRoutes( ctx context.Context, sendType SendType, account common.Address, amountIn *hexutil.Big, tokenSymbol string, disabledFromChainIDs, disabledToChaindIDs, preferedChainIDs []uint64, gasFeeMode GasFeeMode, fromLockedAmount map[uint64]*hexutil.Big, ) (*SuggestedRoutes, error)
func (*API) GetTokensBalances ¶
func (api *API) GetTokensBalances(ctx context.Context, accounts, addresses []common.Address) (map[common.Address]map[common.Address]*hexutil.Big, error)
GetTokensBalances return mapping of token balances for every account.
func (*API) GetTokensBalancesForChainIDs ¶ added in v0.86.7
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)
GetTransfersByAddress returns transfers for a single address
func (*API) GetTransfersByAddressAndChainID ¶ added in v0.86.7
func (*API) GetTransfersForIdentities ¶ added in v0.151.4
func (*API) GetVisibleTokens ¶ added in v0.98.3
func (*API) GetWalletToken ¶ added in v0.115.5
func (*API) LoadTransferByHash ¶ added in v0.91.10
func (api *API) LoadTransferByHash(ctx context.Context, address common.Address, hash common.Hash) error
LoadTransferByHash loads transfer to the database Only used by status-mobile
func (*API) SetInitialBlocksRange ¶ added in v0.73.1
SetInitialBlocksRange sets initial blocks range
func (*API) SetInitialBlocksRangeForChainIDs ¶ added in v0.86.7
func (*API) ToggleVisibleToken ¶ added in v0.98.3
func (*API) UpdateVisibleTokens ¶ added in v0.125.2
func (*API) WatchTransaction ¶ added in v0.74.1
type ChainBalance ¶ added in v0.115.5
type CryptoOnRamp ¶ added in v0.71.4
type CryptoOnRamp struct { Name string `json:"name"` Description string `json:"description"` Fees string `json:"fees"` LogoURL string `json:"logoUrl"` SiteURL string `json:"siteUrl"` Hostname string `json:"hostname"` Params map[string]string `json:"params"` // TODO implement params in JSON and parsing status-mobile }
type CryptoOnRampManager ¶ added in v0.71.4
func NewCryptoOnRampManager ¶ added in v0.71.4
func NewCryptoOnRampManager(options *CryptoOnRampOptions) *CryptoOnRampManager
func (*CryptoOnRampManager) Get ¶ added in v0.71.4
func (c *CryptoOnRampManager) Get() ([]CryptoOnRamp, error)
type CryptoOnRampOptions ¶ added in v0.71.4
type CryptoOnRampOptions struct {
// contains filtered or unexported fields
}
type DataSourceType ¶ added in v0.71.4
type DataSourceType int
const ( DataSourceHTTP DataSourceType = iota + 1 DataSourceStatic )
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 FeeHistory ¶ added in v0.97.4
type FeeHistory struct {
BaseFeePerGas []string `json:"baseFeePerGas"`
}
type FeeManager ¶ added in v0.97.4
type GasFeeMode ¶ added in v0.113.0
type GasFeeMode int
const ( GasFeeLow GasFeeMode = iota GasFeeMedium GasFeeHigh )
type Path ¶ added in v0.113.0
type Path struct { BridgeName string From *params.Network To *params.Network MaxAmountIn *hexutil.Big AmountIn *hexutil.Big AmountInLocked bool AmountOut *hexutil.Big GasAmount uint64 GasFees *SuggestedFees BonderFees *hexutil.Big TokenFees *big.Float Cost *big.Float EstimatedTime TransactionEstimation ApprovalRequired bool ApprovalGasFees *big.Float ApprovalAmountRequired *hexutil.Big ApprovalContractAddress *common.Address }
type Persistence ¶ added in v0.151.13
type Persistence struct {
// contains filtered or unexported fields
}
func NewPersistence ¶ added in v0.151.13
func NewPersistence(db *sql.DB) *Persistence
func (*Persistence) GetTokens ¶ added in v0.151.13
func (p *Persistence) GetTokens() (map[common.Address][]Token, error)
func (*Persistence) SaveTokens ¶ added in v0.151.13
func (p *Persistence) SaveTokens(tokens map[common.Address][]Token) (err error)
type Reader ¶ added in v0.100.0
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) GetCachedWalletTokensWithoutMarketData ¶ added in v0.151.13
GetCachedWalletTokensWithoutMarketData returns the latest fetched balances, minus price information
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"` Favourite bool `json:"favourite"` ChainShortNames string `json:"chainShortNames"` // used with address only, not with ENSName ENSName string `json:"ens"` IsTest bool `json:"isTest"` CreatedAt int64 `json:"createdAt"` // contains filtered or unexported fields }
func (*SavedAddress) ID ¶ added in v0.131.2
func (s *SavedAddress) ID() string
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, updateClock uint64) (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) UpdateMetadataAndUpsertSavedAddress ¶ added in v0.111.5
func (sam *SavedAddressesManager) UpdateMetadataAndUpsertSavedAddress(sa SavedAddress) (updatedClock uint64, err 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, rpcClient *rpc.Client, accountFeed *event.Feed, gethManager *account.GethManager, transactor *transactions.Transactor, config *params.NodeConfig, ens *ens.Service, stickers *stickers.Service, rpcFilterSrvc *rpcfilters.Service, ) *Service
NewService initializes service instance.
func (*Service) SetNFTMetadataProvider ¶ added in v0.162.1
func (s *Service) SetNFTMetadataProvider(provider thirdparty.NFTMetadataProvider)
Set external Collectibles metadata provider
type SuggestedFees ¶ added in v0.97.4
type SuggestedFees struct { GasPrice *big.Float `json:"gasPrice"` BaseFee *big.Float `json:"baseFee"` MaxPriorityFeePerGas *big.Float `json:"maxPriorityFeePerGas"` MaxFeePerGasLow *big.Float `json:"maxFeePerGasLow"` MaxFeePerGasMedium *big.Float `json:"maxFeePerGasMedium"` MaxFeePerGasHigh *big.Float `json:"maxFeePerGasHigh"` EIP1559Enabled bool `json:"eip1559Enabled"` }
type SuggestedRoutes ¶ added in v0.101.1
type Token ¶ added in v0.38.1
type Token struct { Name string `json:"name"` Symbol string `json:"symbol"` Color string `json:"color"` Decimals uint `json:"decimals"` BalancesPerChain map[uint64]ChainBalance `json:"balancesPerChain"` Description string `json:"description"` AssetWebsiteURL string `json:"assetWebsiteUrl"` BuiltOn string `json:"builtOn"` MarketValuesPerCurrency map[string]TokenMarketValues `json:"marketValuesPerCurrency"` PegSymbol string `json:"pegSymbol"` }
type TokenMarketValues ¶ added in v0.125.0
type TokenMarketValues struct { MarketCap float64 `json:"marketCap"` HighDay float64 `json:"highDay"` LowDay float64 `json:"lowDay"` ChangePctHour float64 `json:"changePctHour"` ChangePctDay float64 `json:"changePctDay"` ChangePct24hour float64 `json:"changePct24hour"` Change24hour float64 `json:"change24hour"` Price float64 `json:"price"` HasError bool `json:"hasError"` }
type TransactionEstimation ¶ added in v0.103.2
type TransactionEstimation int
const ( Unknown TransactionEstimation = iota LessThanOneMinute LessThanThreeMinutes LessThanFiveMinutes MoreThanFiveMinutes )
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
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 |