Skip to content

Commit

Permalink
Merge pull request #207 from VerusCoin/dev
Browse files Browse the repository at this point in the history
v1.0.12-5
  • Loading branch information
Asherda authored Jul 14, 2023
2 parents 4e09acb + a99c002 commit 00d7c3d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ stages:
variables:
DOCKER_DRIVER: overlay2
DEFAULT_VERUSCOIN_BRANCH: release
VERUS_VERSION: 1.0.12-4
VERUSCOIN_VERSION: 1.0.12-4
VERUS_VERSION: 1.0.12-5
VERUSCOIN_VERSION: 1.0.12-5
KOMODO_VERSION: 0.8.0
KOMODO_DOWNLOAD_URL: https://github.com/KomodoPlatform/komodo/releases/download
PIRATE_VERSION: 5.7.4
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "verus-desktop",
"productName": "Verus-Desktop",
"version": "1.0.12-4",
"version": "1.0.12-5",
"description": "Verus Desktop Wallet App",
"main": "main.js",
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions routes/api/native/reservetransfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ module.exports = (api) => {
let tx = null;

try {
tx = await api.native.callDaemon(chainTicker, "getrawtransaction", [
z_operation.result.txid,
1,
]);
if (z_operation.result.txid) {
tx = await api.native.callDaemon(chainTicker, "getrawtransaction", [
z_operation.result.txid,
1,
]);
}
} catch (e) {}

transfers.push({
Expand Down
43 changes: 39 additions & 4 deletions routes/api/native/verusbridge/verusbridge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const server = require("verus_bridgekeeper");
const confFile = require("verus_bridgekeeper/confFile");

module.exports = (api) => {
module.exports = (api) => {

api.native.start_bridgekeeper = (chainTicker) => {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -42,7 +43,7 @@ module.exports = (api) => {
if (result) resolve(result);
else reject(result);
});
};
};

api.native.bridgekeeper_setconf = (chainTicker, key, infuraLink, ethContract) => {
return new Promise(async (resolve, reject) => {
Expand All @@ -67,6 +68,18 @@ module.exports = (api) => {
});
};

api.native.bridgekeeper_getconf = (chainTicker) => {
return new Promise(async (resolve, reject) => {
if (chainTicker !== "VRSC")
reject(new Error("bridgekeeper not currently supported outside of VRSC"));

const result = confFile.loadConfFile(chainTicker);

if (result) resolve(result);
else reject(result);
});
};

api.setPost("/native/start_bridgekeeper", (req, res, next) => {
const { chainTicker } = req.body;

Expand Down Expand Up @@ -134,7 +147,7 @@ module.exports = (api) => {

res.send(JSON.stringify(retObj));
});
});
});

api.setPost("/native/bridgekeeper_setconf", (req, res, next) => {
const { key, infuraLink, ethContract, chainTicker } = req.body;
Expand All @@ -156,7 +169,29 @@ module.exports = (api) => {

res.send(JSON.stringify(retObj));
});
}, true);
}, true);

api.setPost("/native/bridgekeeper_getconf", (req, res, next) => {
const { chainTicker } = req.body;
api.native
.bridgekeeper_getconf(chainTicker)
.then((reply) => {
const retObj = {
msg: "success",
result: reply,
};

res.send(JSON.stringify(retObj));
})
.catch((error) => {
const retObj = {
msg: "error",
result: error,
};

res.send(JSON.stringify(retObj));
});
}, true);

return api;
};
1 change: 1 addition & 0 deletions routes/workers/openExternalSafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const allowedOrigins = [
'35.204.174.237:3001/insight/tx/',
'etherscan.io/tx/',
'ropsten.etherscan.io/tx/',
'www.infura.io'
]

function generateOpenExternalSafe(shell, url) {
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.12-4",
"version": "1.0.12-5",
"minVersion": "1.0.12-4",
"versionUrl": "https://raw.githubusercontent.com/VerusCoin/Verus-Desktop/master/version.json",
"repository": "https://github.com/VerusCoin/Verus-Desktop/"
Expand Down
2 changes: 1 addition & 1 deletion version_build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.12-4
1.0.12-5

0 comments on commit 00d7c3d

Please sign in to comment.