feat: implement support for collectibles provider Rarible

Fixes #12310
This commit is contained in:
Dario Gabriel Lipicar 2023-11-23 18:13:19 -03:00 committed by dlipicar
parent 5b9e4faa8a
commit 91a411fd36
6 changed files with 23 additions and 1 deletions

View File

@ -75,6 +75,8 @@
"WalletConfig": {
"Enabled": true,
"OpenseaAPIKey": "",
"RaribleMainnetAPIKey": "",
"RaribleTestnetAPIKey": "",
"AlchemyAPIKeys": {},
"InfuraAPIKey": "",
"InfuraAPIKeySecret": ""

View File

@ -225,6 +225,8 @@ var NODE_CONFIG* = %* {
"WalletConfig": {
"Enabled": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED,
"RaribleMainnetAPIKey": RARIBLE_MAINNET_API_KEY_RESOLVED,
"RaribleTestnetAPIKey": RARIBLE_TESTNET_API_KEY_RESOLVED,
"AlchemyAPIKeys": %* {
"1": ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED,
"5": ALCHEMY_ETHEREUM_GOERLI_TOKEN_RESOLVED,

View File

@ -384,6 +384,8 @@ QtObject:
result["WalletConfig"] = %* {
"LoadAllTransfers": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED,
"RaribleMainnetAPIKey": RARIBLE_MAINNET_API_KEY_RESOLVED,
"RaribleTestnetAPIKey": RARIBLE_TESTNET_API_KEY_RESOLVED,
"InfuraAPIKey": INFURA_TOKEN_RESOLVED,
"InfuraAPIKeySecret": INFURA_TOKEN_SECRET_RESOLVED,
"AlchemyAPIKeys": %* {

View File

@ -56,5 +56,7 @@ let
ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismGoerliToken
ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED* = desktopConfig.alchemyOptimismSepoliaToken
OPENSEA_API_KEY_RESOLVED* = desktopConfig.openseaApiKey
RARIBLE_MAINNET_API_KEY_RESOLVED* = desktopConfig.raribleMainnetApiKey
RARIBLE_TESTNET_API_KEY_RESOLVED* = desktopConfig.raribleTestnetApiKey
TENOR_API_KEY_RESOLVED* = desktopConfig.tenorApiKey
WALLET_CONNECT_PROJECT_ID* = BUILD_WALLET_CONNECT_PROJECT_ID

View File

@ -14,6 +14,8 @@ const BASE_NAME_INFURA_TOKEN = "INFURA_TOKEN"
const BASE_NAME_INFURA_TOKEN_SECRET = "INFURA_TOKEN_SECRET"
const BASE_NAME_POKT_TOKEN = "POKT_TOKEN"
const BASE_NAME_OPENSEA_API_KEY = "OPENSEA_API_KEY"
const BASE_NAME_RARIBLE_MAINNET_API_KEY = "RARIBLE_MAINNET_API_KEY"
const BASE_NAME_RARIBLE_TESTNET_API_KEY = "RARIBLE_TESTNET_API_KEY"
const BASE_NAME_ALCHEMY_ETHEREUM_MAINNET_TOKEN = "ALCHEMY_ETHEREUM_MAINNET_TOKEN"
const BASE_NAME_ALCHEMY_ETHEREUM_GOERLI_TOKEN = "ALCHEMY_ETHEREUM_GOERLI_TOKEN"
const BASE_NAME_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN = "ALCHEMY_ETHEREUM_SEPOLIA_TOKEN"
@ -39,6 +41,8 @@ const
DEFAULT_POKT_TOKEN = "849214fd2f85acead08f5184"
BUILD_POKT_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_POKT_TOKEN, DEFAULT_POKT_TOKEN)
const BUILD_OPENSEA_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_OPENSEA_API_KEY)
const BUILD_RARIBLE_MAINNET_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_RARIBLE_MAINNET_API_KEY)
const BUILD_RARIBLE_TESTNET_API_KEY = getEnv(BUILD_TIME_PREFIX & BASE_NAME_RARIBLE_TESTNET_API_KEY)
const BUILD_ALCHEMY_ETHEREUM_MAINNET_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ETHEREUM_MAINNET_TOKEN)
const BUILD_ALCHEMY_ETHEREUM_GOERLI_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ETHEREUM_GOERLI_TOKEN)
const BUILD_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN = getEnv(BUILD_TIME_PREFIX & BASE_NAME_ALCHEMY_ETHEREUM_SEPOLIA_TOKEN)
@ -107,6 +111,16 @@ type StatusDesktopConfig = object
desc: "Sets open sea api key"
name: $BASE_NAME_OPENSEA_API_KEY
abbr: "open-sea-api-key" .}: string
raribleMainnetApiKey* {.
defaultValue: BUILD_RARIBLE_MAINNET_API_KEY
desc: "Sets rarible mainnet api key"
name: $BASE_NAME_RARIBLE_MAINNET_API_KEY
abbr: "rarible-mainnet-api-key" .}: string
raribleTestnetApiKey* {.
defaultValue: BUILD_RARIBLE_TESTNET_API_KEY
desc: "Sets rarible testnet api key"
name: $BASE_NAME_RARIBLE_TESTNET_API_KEY
abbr: "rarible-testnet-api-key" .}: string
alchemyEthereumMainnetToken* {.
defaultValue: BUILD_ALCHEMY_ETHEREUM_MAINNET_TOKEN
desc: "Sets alchemy ethereum mainnet token"

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 31d0782f6678c275a9009139c819bfda51482e21
Subproject commit 8a84c858a87324013a8a6f2fd75bee1cfc0892b6