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
|
||||
}
|
||||
|
||||
if request.RaribleMainnetAPIKey != "" {
|
||||
nodeConfig.WalletConfig.RaribleMainnetAPIKey = request.RaribleMainnetAPIKey
|
||||
}
|
||||
|
||||
if request.RaribleTestnetAPIKey != "" {
|
||||
nodeConfig.WalletConfig.RaribleTestnetAPIKey = request.RaribleTestnetAPIKey
|
||||
}
|
||||
|
||||
if request.InfuraToken != "" {
|
||||
nodeConfig.WalletConfig.InfuraAPIKey = request.InfuraToken
|
||||
}
|
||||
|
|
|
@ -530,11 +530,13 @@ type Network struct {
|
|||
|
||||
// WalletConfig extra configuration for wallet.Service.
|
||||
type WalletConfig struct {
|
||||
Enabled bool
|
||||
OpenseaAPIKey string `json:"OpenseaAPIKey"`
|
||||
AlchemyAPIKeys map[uint64]string `json:"AlchemyAPIKeys"`
|
||||
InfuraAPIKey string `json:"InfuraAPIKey"`
|
||||
InfuraAPIKeySecret string `json:"InfuraAPIKeySecret"`
|
||||
Enabled bool
|
||||
OpenseaAPIKey string `json:"OpenseaAPIKey"`
|
||||
RaribleMainnetAPIKey string `json:"RaribleMainnetAPIKey"`
|
||||
RaribleTestnetAPIKey string `json:"RaribleTestnetAPIKey"`
|
||||
AlchemyAPIKeys map[uint64]string `json:"AlchemyAPIKeys"`
|
||||
InfuraAPIKey string `json:"InfuraAPIKey"`
|
||||
InfuraAPIKeySecret string `json:"InfuraAPIKeySecret"`
|
||||
}
|
||||
|
||||
// LocalNotificationsConfig extra configuration for localnotifications.Service.
|
||||
|
|
|
@ -43,10 +43,12 @@ type CreateAccount struct {
|
|||
}
|
||||
|
||||
type WalletSecretsConfig struct {
|
||||
PoktToken string `json:"poktToken"`
|
||||
InfuraToken string `json:"infuraToken"`
|
||||
InfuraSecret string `json:"infuraSecret"`
|
||||
OpenseaAPIKey string `json:"openseaApiKey"`
|
||||
PoktToken string `json:"poktToken"`
|
||||
InfuraToken string `json:"infuraToken"`
|
||||
InfuraSecret string `json:"infuraSecret"`
|
||||
OpenseaAPIKey string `json:"openseaApiKey"`
|
||||
RaribleMainnetAPIKey string `json:"raribleMainnetApiKey"`
|
||||
RaribleTestnetAPIKey string `json:"raribleTestnetApiKey"`
|
||||
|
||||
// Testing
|
||||
GanacheURL string `json:"ganacheURL"`
|
||||
|
|
Loading…
Reference in New Issue