Skip to content

Commit

Permalink
use new api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
almindor committed Nov 25, 2020
1 parent f7ddbbd commit c22f910
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/contractmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ namespace Etherwall {

void ContractModel::requestAbi(const QString& address) {
// get contract ABI
QNetworkRequest request(QUrl("https://data.etherwall.com/api/contracts"));
QNetworkRequest request(QUrl("https://api.etherwall.com/api/contracts"));
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
QJsonObject objectJson;
objectJson["address"] = address;
Expand Down
2 changes: 1 addition & 1 deletion src/currencymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace Etherwall {
fCurrencies.append(CurrencyInfo("ETH", 1.0));

// get currency data from etherdata
QNetworkRequest request(QUrl("https://data.etherwall.com/api/currencies"));
QNetworkRequest request(QUrl("https://api.etherwall.com/api/currencies"));
request.setSslConfiguration(fSSLConfig);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");

Expand Down
2 changes: 1 addition & 1 deletion src/initializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Etherwall {

void Initializer::start()
{
QNetworkRequest request(QUrl("https://data.etherwall.com/api/init"));
QNetworkRequest request(QUrl("https://api.etherwall.com/api/init"));
request.setSslConfiguration(fSSLConfig);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
QJsonObject objectJson;
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ int main(int argc, char *argv[])
NodeManager nodeManager;
GethLogApp gethLog;

// get SSL cert for https://data.etherwall.com
const QSslCertificate certificate(EtherWall_Cert.toUtf8());
// get SSL cert for https://data.etherwall.com, no longer needed!
// const QSslCertificate certificate(EtherWall_Cert.toUtf8());
QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
sslConfig.addCaCertificate(certificate);
// sslConfig.addCaCertificate(certificate);

Initializer initializer(gethPath, sslConfig);
Trezor::TrezorDevice trezor;
Expand Down
4 changes: 2 additions & 2 deletions src/transactionmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ namespace Etherwall {

void TransactionModel::checkVersion(bool manual) {
// get latest app version
QNetworkRequest request(QUrl("https://data.etherwall.com/api/version"));
QNetworkRequest request(QUrl("https://api.etherwall.com/api/version"));
request.setSslConfiguration(fSSLConfig);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
request.setRawHeader("x-internal-manual", manual ? "t" : "f");
Expand Down Expand Up @@ -542,7 +542,7 @@ namespace Etherwall {
}

// get historical transactions from etherdata
QNetworkRequest request(QUrl("https://data.etherwall.com/api/transactions"));
QNetworkRequest request(QUrl("https://api.etherwall.com/api/transactions"));
request.setSslConfiguration(fSSLConfig);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
QJsonObject objectJson;
Expand Down

0 comments on commit c22f910

Please sign in to comment.