@spirobel/monero-wallet-api 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scanning-syncing/backgroundWorker.d.ts +1 -1
- package/dist/scanning-syncing/backgroundWorker.js +15 -5
- package/dist/scanning-syncing/scanSettings.js +4 -4
- package/dist/scanning-syncing/scanresult/scanCacheOpened.js +1 -1
- package/dist/scanning-syncing/worker-entrypoints/worker.js +1 -1
- package/dist/tools/monero-tools.d.ts +4 -1
- package/dist/tools/monero-tools.js +6 -1
- package/package.json +1 -1
|
@@ -42,5 +42,8 @@ export declare function parseDestination(destination: string): string;
|
|
|
42
42
|
export declare const OPEN_DOMAINS: string[];
|
|
43
43
|
export declare function checkToolInvocationValidity(invo: ParsedMoneroToolInvocation): Promise<ToolInvocationValidity>;
|
|
44
44
|
export declare const ADDRESS_VALID_RESPONSE: {
|
|
45
|
-
valid_address:
|
|
45
|
+
readonly valid_address: true;
|
|
46
|
+
};
|
|
47
|
+
export declare const ADDRESS_INVALID_RESPONSE: {
|
|
48
|
+
readonly valid_address: false;
|
|
46
49
|
};
|
|
@@ -129,7 +129,9 @@ export const OPEN_DOMAINS = ["monerochan.city"];
|
|
|
129
129
|
export async function checkToolInvocationValidity(invo) {
|
|
130
130
|
// send 001 fetch from destination domain to check if the address is valid
|
|
131
131
|
if (invo.tool.tool_id == "001") {
|
|
132
|
-
const
|
|
132
|
+
const link = invo[invo.found_in];
|
|
133
|
+
const invo_link = new URL(link);
|
|
134
|
+
const checkUrl = `${invo_link.origin}/monerochan001/${invo.tool.payload.address}`;
|
|
133
135
|
try {
|
|
134
136
|
if (invo.destination_domain === OPEN_DOMAINS[0]) {
|
|
135
137
|
return "unverified";
|
|
@@ -163,3 +165,6 @@ export async function checkToolInvocationValidity(invo) {
|
|
|
163
165
|
export const ADDRESS_VALID_RESPONSE = {
|
|
164
166
|
valid_address: true,
|
|
165
167
|
};
|
|
168
|
+
export const ADDRESS_INVALID_RESPONSE = {
|
|
169
|
+
valid_address: false,
|
|
170
|
+
};
|