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
|
||||
}
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue