CalDescent
257ca2da05
Bumped default block archive serialization version to V2.
2023-02-03 12:36:57 +01:00
CalDescent
d27316eb64
Clear cache after rebuilding.
2023-02-02 18:11:56 +01:00
CalDescent
64d8353629
Added V2 support in the block archive, and added feature to rebuild a V1 block archive using V2 block serialization. Should drastically reduce the archive size once rebuilt.
2023-02-02 15:54:03 +01:00
CalDescent
f5e30eeaf5
Merge pull request #104 from QuickMythril/foreign-height
...
Add foreign chain height to API calls
2023-02-01 20:28:55 +00:00
QuickMythril
21f5d9a3d0
Add foreign chain height to API calls
...
GET /crosschain/{COIN}/height
2023-01-31 17:23:25 -05:00
CalDescent
3077810ea8
Fixed bugs causing websites to report as "Not published" when listed in the UI.
2023-01-29 18:05:04 +00:00
CalDescent
4ba2f7ad6a
Small documentation updates
2023-01-29 17:20:25 +00:00
CalDescent
8eba0f89fe
Added to Q-Apps documentation
2023-01-29 17:09:28 +00:00
CalDescent
600f98ddab
Fixed bug in extractComponents()
2023-01-29 13:38:08 +00:00
CalDescent
eb07e6613f
Fixed small bug
2023-01-29 13:23:12 +00:00
CalDescent
6c445ff646
GET_ACCOUNT_ADDRESS and GET_ACCOUNT_PUBLIC_KEY replaced with a single action: GET_USER_ACCOUNT, as it doesn't make sense to request address and public key separately (they are essentially the same thing).
2023-01-29 13:23:01 +00:00
CalDescent
4d9cece9fa
Timeouts are specified by action, rather than using 10 second for every request. This allows certain requests to wait for longer before timing out, such as ones that create transactions.
2023-01-29 13:07:26 +00:00
CalDescent
8beffd4dae
Switched to document.querySelectorAll() as otherwise we were only intercepting the first image on the page.
2023-01-29 12:12:47 +00:00
CalDescent
566c6a3f4b
Added support for img src updates from a Q-App.
...
Example:
document.getElementById("logo").src = "qortal://thumbnail/QortalDemo/qortal_avatar";
2023-01-29 12:04:39 +00:00
CalDescent
1be3ae267e
Reduce log spam.
2023-01-29 11:45:09 +00:00
CalDescent
7af551fbc5
Added "GET_QDN_RESOURCE_URL" Q-Apps action, to allow a website/app to programmatically determine the URL to retrieve any QDN resource it needs to access.
...
Examples:
### Get URL to load a QDN resource
```
let url = await qortalRequest({
action: "GET_QDN_RESOURCE_URL",
service: "THUMBNAIL",
name: "QortalDemo",
identifier: "qortal_avatar"
// path: "filename.jpg" // optional - not needed if resource contains only one file
});
```
### Get URL to load a QDN website
```
let url = await qortalRequest({
action: "GET_QDN_RESOURCE_URL",
service: "WEBSITE",
name: "QortalDemo",
});
```
### Get URL to load a specific file from a QDN website
```
let url = await qortalRequest({
action: "GET_QDN_RESOURCE_URL",
service: "WEBSITE",
name: "AlphaX",
path: "/assets/img/logo.png"
});
```
2023-01-29 11:44:59 +00:00
CalDescent
6ba6c58843
Added support for qortal:// protocol links when loading images from the DOM.
...
Example: <img src="qortal://THUMBNAIL/QortalDemo/qortal_avatar" />
2023-01-29 11:18:00 +00:00
CalDescent
ab34fae810
Merge pull request #90 from QuickMythril/german
...
Updated German translations
2023-01-28 20:22:11 +00:00
CalDescent
42f2d015b7
Merge branch 'master' into german
2023-01-28 20:22:02 +00:00
CalDescent
2181ece28d
Merge pull request #89 from lexandr0s/patch-2
...
Update ApiError_ru.properties
2023-01-28 20:21:13 +00:00
CalDescent
03a5d0e5f9
Merge pull request #88 from lexandr0s/patch-1
...
Update SysTray_ru.properties
2023-01-28 20:21:00 +00:00
CalDescent
352f094272
Merge pull request #99 from Nuc1eoN/polish-translation
...
Add polish translation
2023-01-28 20:20:35 +00:00
CalDescent
ca09dd264f
Merge branch 'master' into q-apps
2023-01-28 20:14:35 +00:00
CalDescent
eea98d0bc7
Fixed bugs.
2023-01-28 18:37:04 +00:00
CalDescent
9c58faa7c2
Added LINK_TO_QDN_RESOURCE support in the gateway.
2023-01-28 18:36:55 +00:00
CalDescent
3cdfa4e276
Increased loading screen refresh interval from 1s to 2s.
2023-01-28 18:03:00 +00:00
CalDescent
380ba5b8c2
Show "File not found" on the loading screen when navigating to a non-existent resource.
2023-01-28 18:01:52 +00:00
CalDescent
04f248bcdd
Upgraded gateway to support service and identifier.
...
The URL used to access the gateway is now interpreted, and the most appropriate resource is served. This means it can be used in different ways to retrieve any type of content from QDN. For example:
/QortalDemo
/QortalDemo/minting-leveling/index.html
/WEBSITE/QortalDemo
/WEBSITE/QortalDemo/minting-leveling/index.html
/APP/QortalDemo
/THUMBNAIL/QortalDemo/qortal_avatar
/QCHAT_IMAGE/birtydasterd/qchat_BfBeCz
/ARBITRARY_DATA/PirateChainWallet/LiteWalletJNI/coinparams.json
2023-01-28 17:56:24 +00:00
CalDescent
37b20aac66
Upgraded rendering to support identifiers, as well as single file resources.
...
This allows any QDN resource (e.g. an IMAGE) to be linked to from a website/app and then rendered on screen. It isn't yet supported in gateway or domain map mode, as these need some more thought.
2023-01-28 16:55:04 +00:00
CalDescent
e1e52b3165
RenderResource moved to restricted resources, as /render/* endpoints shouldn't ever need to be served over the gateway.
2023-01-28 15:52:46 +00:00
CalDescent
c5c826453b
Removed unnecessary join when finding MESSAGE transactions, which caused secret to be unavailable when querying pruned blocks.
2023-01-28 15:41:48 +00:00
CalDescent
e86b9b1caf
Added additional Litecoin ElectrumX server.
2023-01-28 15:34:30 +00:00
CalDescent
46e8baac98
Added linking between QDN websites / apps.
...
The simplest way to link to another QDN website is to include a link with the format:
<a href="qortal://WEBSITE/QortalDemo">link text</a>
This can be expanded to link to a specific path, e.g:
<a href="qortal://WEBSITE/QortalDemo/minting-leveling/index.html">link text</a>
Or it can be initiated programatically, via qortalRequest():
let res = await qortalRequest({
action: "LINK_TO_QDN_RESOURCE",
service: "WEBSITE",
name: "QortalDemo",
path: "/minting-leveling/index.html" // Optional
});
Note that qortal:// links don't yet support identifiers, so the above format is not confirmed.
2023-01-28 15:22:03 +00:00
CalDescent
3b6e1ea27f
Added "qdnContext" variable, with possible values of "render", "gateway", or "domainMap".
...
This is used internally to allow Q-Apps to determine how to handle certain requests.
2023-01-28 14:42:29 +00:00
CalDescent
5a1cc7a0de
Fixed/improved logging when an exception is caught whilst adding statuses to resources.
2023-01-28 14:32:17 +00:00
CalDescent
0ec5e39517
Fixed additional NPE
2023-01-28 14:31:04 +00:00
CalDescent
bede5a71f8
Fixed various NPEs when checking statuses of non-existent resources.
2023-01-28 14:17:23 +00:00
CalDescent
5e750b4283
Added new ArbitraryResourceStatus "NOT_PUBLISHED" - for when a non-existent resource is attempted to be loaded.
2023-01-28 14:15:54 +00:00
CalDescent
4a42dc2d00
Don't require prior authorization of QDN resources if qdnAuthBypassEnabled is true. Necessary for resource linking.
2023-01-28 14:14:44 +00:00
CalDescent
7fc170575c
Merge branch 'cancel-sell-name-fixes'
2023-01-28 12:11:42 +00:00
CalDescent
876658256f
Prevent a P2SH address being funded for a trade if there is an unconfirmed buy or cancel request in progress for it already.
...
This prevents foreign coins from leaving the local wallet when there is a high probability that the trade will fail, and therefore should reduce the chances of losing transaction fees due to refunds.
Whenever this occurs, the UI will show "Trade has an existing buy request or is pending cancellation." after clicking Buy.
2023-01-28 11:57:15 +00:00
CalDescent
a24ba40d5c
Added additional Dogecoin ElectrumX server.
2023-01-28 09:54:15 +00:00
CalDescent
06d8a21714
Added CANCEL_SELL_NAME equivalents to NamesDatabaseIntegrityCheck.java
2023-01-27 19:38:26 +00:00
CalDescent
ae44065d7e
Fixed issue with CancelSellName transactions.
2023-01-27 19:34:23 +00:00
CalDescent
6ad0989ea2
Reduce log spam
2023-01-27 18:35:44 +00:00
CalDescent
5962ebd08a
More logging improvements in ArbitraryDataReader.decrypt()
2023-01-27 16:56:53 +00:00
CalDescent
bf06d47842
Create an ArbitraryDataResource object when building. Eventually this could be passed in to the reader instead of the individual components (service, name, identifier, etc)
...
This is now used to improve logging when extracting.
2023-01-27 16:55:43 +00:00
CalDescent
d7b1615d4f
qdnAuthBypassEnabled defaulted to true, as it is needed for Q-Apps.
2023-01-27 16:26:36 +00:00
CalDescent
8c708558cb
Implemented ElectrumX version negotiation. Fixes issues with DOGE wallet.
2023-01-27 14:33:34 +00:00
CalDescent
6b36d94c6f
Removed searchResultsTransactions cache, to simplify code. The hostedTransactions cache is still in place, which limits disk reads when searching, so this additional cache isn't really needed.
2023-01-27 12:48:42 +00:00