-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from HathorNetwork/dev
Release v0.18.0
- Loading branch information
Showing
22 changed files
with
3,197 additions
and
2,401 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,50 @@ | ||
{ | ||
"name": "hathor-admin", | ||
"version": "0.17.0", | ||
"version": "0.18.0", | ||
"private": true, | ||
"dependencies": { | ||
"@hathor/wallet-lib": "^0.29.0", | ||
"axios": "^0.17.1", | ||
"bootstrap": "^4.0.0", | ||
"d3-selection": "^1.3.2", | ||
"d3-zoom": "^1.7.3", | ||
"font-awesome": "^4.7.0", | ||
"jquery": "^3.2.1", | ||
"lodash": "^4.17.11", | ||
"npm-run-all": "^4.1.2", | ||
"popper.js": "^1.12.9", | ||
"prop-types": "^15.7.2", | ||
"qrcode.react": "^0.8.0", | ||
"react": "^16.12.0", | ||
"react-cookie-consent": "^6.2.4", | ||
"react-copy-to-clipboard": "^5.0.1", | ||
"react-dom": "^16.2.0", | ||
"react-gtm-module": "^2.0.11", | ||
"react-loading": "^1.0.3", | ||
"react-paginate": "^5.0.0", | ||
"react-redux": "^5.0.7", | ||
"@hathor/wallet-lib": "1.4.0", | ||
"axios": "0.17.1", | ||
"bootstrap": "4.6.2", | ||
"d3-selection": "1.4.2", | ||
"d3-zoom": "1.8.3", | ||
"font-awesome": "4.7.0", | ||
"jquery": "3.7.0", | ||
"lodash": "4.17.21", | ||
"npm-run-all": "4.1.5", | ||
"popper.js": "1.16.1", | ||
"prop-types": "15.8.1", | ||
"qrcode.react": "0.8.0", | ||
"react": "16.14.0", | ||
"react-cookie-consent": "6.4.1", | ||
"react-copy-to-clipboard": "5.1.0", | ||
"react-dom": "16.14.0", | ||
"react-gtm-module": "2.0.11", | ||
"react-loading": "1.0.5", | ||
"react-paginate": "5.3.1", | ||
"react-redux": "5.1.2", | ||
"react-router-dom": "4.2.2", | ||
"react-scripts": "^3.2.0", | ||
"redux": "^4.0.0", | ||
"sass": "^1.44.0", | ||
"viz.js": "^2.1.2", | ||
"unleash-proxy-client": "^1.11.0", | ||
"@unleash/proxy-client-react": "^1.0.4" | ||
"react-scripts": "3.4.4", | ||
"redux": "4.2.1", | ||
"sass": "1.64.2", | ||
"viz.js": "2.1.2", | ||
"unleash-proxy-client": "1.11.0", | ||
"@unleash/proxy-client-react": "1.0.4" | ||
}, | ||
"scripts": { | ||
"build-css": "sass src:src", | ||
"watch-css": "npm run build-css && sass --watch src:src", | ||
"start-js": "react-scripts start", | ||
"start-js": "react-scripts --openssl-legacy-provider start", | ||
"start": "npm-run-all -p watch-css start-js", | ||
"build-js": "react-scripts --openssl-legacy-provider build", | ||
"build": "npm-run-all build-css build-js", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* Copyright (c) Hathor Labs and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import requestExplorerServiceV1 from './axiosInstance'; | ||
|
||
const nanoApi = { | ||
/** | ||
* Get the state of a nano contract | ||
* | ||
* @param {string} id Nano contract id | ||
* @param {string[]} fields List of fields to get the state | ||
* @param {string[]} balances List of token uids to get the balance | ||
* @param {string[]} fields List of private methods with parameters to call | ||
* | ||
* For more details, see full node api docs | ||
*/ | ||
getState(id, fields, balances, calls) { | ||
const data = { id, fields, balances, calls }; | ||
return requestExplorerServiceV1.get(`node_api/nc_state`, {params: data}).then((res) => { | ||
return res.data | ||
}, (res) => { | ||
throw new Error(res.data.message); | ||
}); | ||
}, | ||
|
||
/** | ||
* Get the history of transactions of a nano contract | ||
* | ||
* @param {string} id Nano contract id | ||
* | ||
* For more details, see full node api docs | ||
*/ | ||
getHistory(id) { | ||
const data = { id }; | ||
return requestExplorerServiceV1.get(`node_api/nc_history`, {params: data}).then((res) => { | ||
return res.data | ||
}, (res) => { | ||
throw new Error(res.data.message); | ||
}); | ||
}, | ||
|
||
/** | ||
* Get the blueprint information | ||
* | ||
* @param {string} blueprintId ID of the blueprint | ||
* | ||
* For more details, see full node api docs | ||
*/ | ||
getBlueprintInformation(blueprintId) { | ||
const data = { blueprint_id: blueprintId }; | ||
return requestExplorerServiceV1.get(`node_api/nc_blueprint_information`, {params: data}).then((res) => { | ||
return res.data | ||
}, (res) => { | ||
throw new Error(res.data.message); | ||
}); | ||
}, | ||
}; | ||
|
||
export default nanoApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.