feat: obtain rarible api keys

This commit is contained in:
Dario Gabriel Lipicar 2023-10-12 16:40:13 -03:00 committed by dlipicar
parent 1f076b9ff3
commit 8848943422
3 changed files with 21 additions and 9 deletions

View File

@ -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
}

View File

@ -532,6 +532,8 @@ type Network struct {
type WalletConfig struct {
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"`

View File

@ -47,6 +47,8 @@ type WalletSecretsConfig struct {
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"`