diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-22 04:49:34 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-22 04:49:34 +0200 |
commit | a84f6765711e92c668ecb3becd2b1ee12b36abe7 (patch) | |
tree | 6c2aa0935f01f5f8eab6e3bcfb7e3c8aba049eee /src/js/url-generators.js | |
parent | 91e2aeb7c65bd2cd49982bd7161ecfedd707c0d6 (diff) | |
download | arching-kaos-web-ui-a84f6765711e92c668ecb3becd2b1ee12b36abe7.tar.gz arching-kaos-web-ui-a84f6765711e92c668ecb3becd2b1ee12b36abe7.tar.bz2 arching-kaos-web-ui-a84f6765711e92c668ecb3becd2b1ee12b36abe7.zip |
Peering look up
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r-- | src/js/url-generators.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/js/url-generators.js b/src/js/url-generators.js index 239ce53..1bfe881 100644 --- a/src/js/url-generators.js +++ b/src/js/url-generators.js @@ -18,7 +18,8 @@ import { getSettings } from "./arching-kaos-web-ui-settings.js"; const settings = getSettings(); -export function getStellarConfigurationVariableURL(stellarAddress){ +export function getStellarConfigurationVariableURL(stellarAddress) +{ return settings.stellar.horizon.list[settings.stellar.horizon.active]+ 'accounts/'+ stellarAddress+ @@ -26,15 +27,18 @@ export function getStellarConfigurationVariableURL(stellarAddress){ settings.stellar.variableNames.list[settings.stellar.variableNames.active]; } -export function getIPNSURL(ipnsKey){ +export function getIPNSURL(ipnsKey) +{ return settings.ipfs.gateway.list[settings.ipfs.gateway.active]+'ipns/'+ipnsKey; } -export function getIPFSURL(ipfsHash){ +export function getIPFSURL(ipfsHash) +{ return settings.ipfs.gateway.list[settings.ipfs.gateway.active]+'ipfs/'+ipfsHash; } -export function getHoldersOfActiveAssetURL(){ +export function getHoldersOfActiveAssetURL() +{ return settings.stellar.horizon.list[settings.stellar.horizon.active]+ 'accounts?asset='+ settings.stellar.asset.list[settings.stellar.asset.active].code+ @@ -43,7 +47,8 @@ export function getHoldersOfActiveAssetURL(){ '&limit=200'; } -export function getTrustlinesURL(code=null, issuer=null){ +export function getTrustlinesURL(code=null, issuer=null) +{ var code = (code === null)? settings.stellar.asset.list[settings.stellar.asset.active].code : code; var issuer = (issuer === null) ? settings.stellar.asset.list[settings.stellar.asset.active].issuer : issuer; return settings.stellar.horizon.list[settings.stellar.horizon.active]+ |