mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 08:50:09 +00:00
feat: obtain rarible api keys
This commit is contained in:
parent
1f076b9ff3
commit
8848943422
@ -158,6 +158,14 @@ func defaultNodeConfig(installationID string, request *requests.CreateAccount) (
|
|||||||
nodeConfig.WalletConfig.OpenseaAPIKey = request.OpenseaAPIKey
|
nodeConfig.WalletConfig.OpenseaAPIKey = request.OpenseaAPIKey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if request.RaribleMainnetAPIKey != "" {
|
||||||
|
nodeConfig.WalletConfig.RaribleMainnetAPIKey = request.RaribleMainnetAPIKey
|
||||||
|
}
|
||||||
|
|
||||||
|
if request.RaribleTestnetAPIKey != "" {
|
||||||
|
nodeConfig.WalletConfig.RaribleTestnetAPIKey = request.RaribleTestnetAPIKey
|
||||||
|
}
|
||||||
|
|
||||||
if request.InfuraToken != "" {
|
if request.InfuraToken != "" {
|
||||||
nodeConfig.WalletConfig.InfuraAPIKey = request.InfuraToken
|
nodeConfig.WalletConfig.InfuraAPIKey = request.InfuraToken
|
||||||
}
|
}
|
||||||
|
@ -530,11 +530,13 @@ type Network struct {
|
|||||||
|
|
||||||
// WalletConfig extra configuration for wallet.Service.
|
// WalletConfig extra configuration for wallet.Service.
|
||||||
type WalletConfig struct {
|
type WalletConfig struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
OpenseaAPIKey string `json:"OpenseaAPIKey"`
|
OpenseaAPIKey string `json:"OpenseaAPIKey"`
|
||||||
AlchemyAPIKeys map[uint64]string `json:"AlchemyAPIKeys"`
|
RaribleMainnetAPIKey string `json:"RaribleMainnetAPIKey"`
|
||||||
InfuraAPIKey string `json:"InfuraAPIKey"`
|
RaribleTestnetAPIKey string `json:"RaribleTestnetAPIKey"`
|
||||||
InfuraAPIKeySecret string `json:"InfuraAPIKeySecret"`
|
AlchemyAPIKeys map[uint64]string `json:"AlchemyAPIKeys"`
|
||||||
|
InfuraAPIKey string `json:"InfuraAPIKey"`
|
||||||
|
InfuraAPIKeySecret string `json:"InfuraAPIKeySecret"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LocalNotificationsConfig extra configuration for localnotifications.Service.
|
// LocalNotificationsConfig extra configuration for localnotifications.Service.
|
||||||
|
@ -43,10 +43,12 @@ type CreateAccount struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type WalletSecretsConfig struct {
|
type WalletSecretsConfig struct {
|
||||||
PoktToken string `json:"poktToken"`
|
PoktToken string `json:"poktToken"`
|
||||||
InfuraToken string `json:"infuraToken"`
|
InfuraToken string `json:"infuraToken"`
|
||||||
InfuraSecret string `json:"infuraSecret"`
|
InfuraSecret string `json:"infuraSecret"`
|
||||||
OpenseaAPIKey string `json:"openseaApiKey"`
|
OpenseaAPIKey string `json:"openseaApiKey"`
|
||||||
|
RaribleMainnetAPIKey string `json:"raribleMainnetApiKey"`
|
||||||
|
RaribleTestnetAPIKey string `json:"raribleTestnetApiKey"`
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
GanacheURL string `json:"ganacheURL"`
|
GanacheURL string `json:"ganacheURL"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user