feat(@wallet): Add opensea api key

This commit is contained in:
Anthony Laibe 2022-02-10 14:22:41 +01:00 committed by Anthony Laibe
parent 52e96e904b
commit 03b4bb0511
8 changed files with 27 additions and 6 deletions

View File

@ -282,6 +282,10 @@ DEFAULT_TOKEN := 220a1abb4b6943a093c35d0ce4fb0732
INFURA_TOKEN ?= $(DEFAULT_TOKEN)
NIM_PARAMS += -d:INFURA_TOKEN:"$(INFURA_TOKEN)"
DEFAULT_OPENSEA_API_KEY := ""
OPENSEA_API_KEY ?= $(DEFAULT_OPENSEA_API_KEY)
NIM_PARAMS += -d:OPENSEA_API_KEY:"$(OPENSEA_API_KEY)"
DEFAULT_TENOR_API_KEY := DU7DWZ27STB2
TENOR_API_KEY ?= $(DEFAULT_TENOR_API_KEY)
NIM_PARAMS += -d:TENOR_API_KEY:"$(TENOR_API_KEY)"

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.3.3'
library 'status-jenkins-lib@v1.3.4'
pipeline {
agent { label 'linux' }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.3.3'
library 'status-jenkins-lib@v1.3.4'
pipeline {
agent {

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.3.3'
library 'status-jenkins-lib@v1.3.4'
pipeline {
agent {

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.3.3'
library 'status-jenkins-lib@v1.3.4'
pipeline {
agent { label 'windows' }

View File

@ -11,6 +11,18 @@ let INFURA_TOKEN_RESOLVED =
else:
INFURA_TOKEN
const OPENSEA_API_KEY {.strdefine.} = ""
# allow runtime override via environment variable; core contributors can set a
# an opensea API key in this way for local development
let OPENSEA_API_KEY_ENV = $getEnv("OPENSEA_API_KEY")
let OPENSEA_API_KEY_RESOLVED* =
if OPENSEA_API_KEY_ENV != "":
OPENSEA_API_KEY_ENV
else:
OPENSEA_API_KEY
const DEFAULT_NETWORK_NAME* = "mainnet_rpc"
const DEFAULT_NETWORKS_IDS* = @["mainnet_rpc", "testnet_rpc", "rinkeby_rpc", "goerli_rpc", "xdai_rpc", "poa_rpc" ]
@ -164,7 +176,8 @@ var NODE_CONFIG* = %* {
"LightClient": false
},
"WalletConfig": {
"Enabled": true
"Enabled": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED
},
"EnsConfig": {
"Enabled": true

View File

@ -314,6 +314,10 @@ method login*(self: Service, account: AccountDto, password: string): string =
"EnsConfig": %* {
"Enabled": true
},
"WalletConfig": {
"Enabled": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED
},
}
let response = status_account.login(account.name, account.keyUid, hashedPassword, account.identicon, thumbnailImage,

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 6cfe0f136960b792feec8ceb9cde1066e9568b71
Subproject commit 66d511e33f8cb3a543dc569ba63ed324d97bdd29