diff options
Diffstat (limited to 'src/js/url-generators.js')
-rw-r--r-- | src/js/url-generators.js | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/js/url-generators.js b/src/js/url-generators.js index c950f1e..6158b6f 100644 --- a/src/js/url-generators.js +++ b/src/js/url-generators.js @@ -1,3 +1,10 @@ +/* Arching Kaos URL Generators + * + * Kaotisk Hund - 2024 + * + * @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL v3.0 + * + */ /* * URL generators * @@ -9,28 +16,29 @@ */ function getIPNSURL(ipnsKey){ - return activeSettings.ipfsGatewayAddress[activeSettings.ipfsSelectedGatewayAddress]+'ipns/'+ipnsKey; + return activeSettings.ipfs.gateway.list[activeSettings.ipfs.gateway.active]+'ipns/'+ipnsKey; } function getIPFSURL(ipfsHash){ - return activeSettings.ipfsGatewayAddress[activeSettings.ipfsSelectedGatewayAddress]+'ipfs/'+ipfsHash; + return activeSettings.ipfs.gateway.list[activeSettings.ipfs.gateway.active]+'ipfs/'+ipfsHash; } function getHoldersOfActiveAssetURL(){ - return activeSettings.horizonAddresses[activeSettings.horizonSelectedAddress]+ + return activeSettings.stellar.horizon.list[activeSettings.stellar.horizon.active]+ 'accounts?asset='+ - activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].code+ + activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].code+ ':'+ - activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].issuer+ + activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].issuer+ '&limit=200'; } function getTrustlinesURL(code=null, issuer=null){ - var code = (code === null)? activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].code : code; - var issuer = (issuer === null) ? activeSettings.stellarAssetsForScanning[activeSettings.stellarDefaultAsset].issuer : issuer; - return activeSettings.horizonAddresses[activeSettings.horizonSelectedAddress]+ + var code = (code === null)? activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].code : code; + var issuer = (issuer === null) ? activeSettings.stellar.asset.list[activeSettings.stellar.asset.active].issuer : issuer; + return activeSettings.stellar.horizon.list[activeSettings.stellar.horizon.active]+ 'assets?asset_code='+code+ '&asset_issuer='+issuer; } // vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4 +// @license-end |