@ellipticltd/aml-utils 0.12.1 → 0.13.0
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/.idea/aws.xml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="accountSettings">
|
|
4
|
+
<option name="activeProfile" value="profile:default" />
|
|
5
|
+
<option name="activeRegion" value="eu-west-1" />
|
|
6
|
+
<option name="recentlyUsedProfiles">
|
|
7
|
+
<list>
|
|
8
|
+
<option value="profile:default" />
|
|
9
|
+
</list>
|
|
10
|
+
</option>
|
|
11
|
+
<option name="recentlyUsedRegions">
|
|
12
|
+
<list>
|
|
13
|
+
<option value="eu-west-1" />
|
|
14
|
+
</list>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
|
@@ -134,3 +134,21 @@ export namespace polkadot {
|
|
|
134
134
|
function isTxHash(str: any): any;
|
|
135
135
|
function isTxHash(str: any): any;
|
|
136
136
|
}
|
|
137
|
+
export namespace cardano {
|
|
138
|
+
function isAddress(str: any): any;
|
|
139
|
+
function isAddress(str: any): any;
|
|
140
|
+
function isTxHash(str: any): boolean;
|
|
141
|
+
function isTxHash(str: any): boolean;
|
|
142
|
+
}
|
|
143
|
+
export namespace cryptocom {
|
|
144
|
+
function isAddress(str: any): any;
|
|
145
|
+
function isAddress(str: any): any;
|
|
146
|
+
function isTxHash(str: any): boolean;
|
|
147
|
+
function isTxHash(str: any): boolean;
|
|
148
|
+
}
|
|
149
|
+
export namespace near {
|
|
150
|
+
function isAddress(str: any): boolean;
|
|
151
|
+
function isAddress(str: any): boolean;
|
|
152
|
+
function isTxHash(str: any): boolean;
|
|
153
|
+
function isTxHash(str: any): boolean;
|
|
154
|
+
}
|
|
@@ -315,6 +315,37 @@ const validations = {
|
|
|
315
315
|
return str.length === 66 && web3.isHexStrict(str);
|
|
316
316
|
},
|
|
317
317
|
},
|
|
318
|
+
cardano: {
|
|
319
|
+
isAddress(str) {
|
|
320
|
+
return addressValidator.validate(str, 'ada');
|
|
321
|
+
},
|
|
322
|
+
isTxHash(str) {
|
|
323
|
+
if (!V.isHexadecimal(str)) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
return str.length === 64;
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
cryptocom: {
|
|
330
|
+
isAddress(str) {
|
|
331
|
+
return addressValidator.validate(str, 'cro');
|
|
332
|
+
},
|
|
333
|
+
isTxHash(str) {
|
|
334
|
+
if (!V.isHexadecimal(str)) {
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
return str.length === 64;
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
near: {
|
|
341
|
+
isAddress(str) {
|
|
342
|
+
// https://nomicon.io/DataStructures/Account
|
|
343
|
+
return /^(([a-z\d]+[-_])*[a-z\d]+\.)*([a-z\d]+[-_])*[a-z\d]+$/.test(str);
|
|
344
|
+
},
|
|
345
|
+
isTxHash(str) {
|
|
346
|
+
return str.length === 44;
|
|
347
|
+
},
|
|
348
|
+
},
|
|
318
349
|
};
|
|
319
350
|
Object.keys(V).forEach((k) => {
|
|
320
351
|
const v = V[k];
|
|
@@ -320,6 +320,37 @@ const validations = {
|
|
|
320
320
|
return str.length === 66 && web3.isHexStrict(str);
|
|
321
321
|
},
|
|
322
322
|
},
|
|
323
|
+
cardano: {
|
|
324
|
+
isAddress(str) {
|
|
325
|
+
return addressValidator.validate(str, 'ada');
|
|
326
|
+
},
|
|
327
|
+
isTxHash(str) {
|
|
328
|
+
if (!V.isHexadecimal(str)) {
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
return str.length === 64;
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
cryptocom: {
|
|
335
|
+
isAddress(str) {
|
|
336
|
+
return addressValidator.validate(str, 'cro');
|
|
337
|
+
},
|
|
338
|
+
isTxHash(str) {
|
|
339
|
+
if (!V.isHexadecimal(str)) {
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
return str.length === 64;
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
near: {
|
|
346
|
+
isAddress(str) {
|
|
347
|
+
// https://nomicon.io/DataStructures/Account
|
|
348
|
+
return /^(([a-z\d]+[-_])*[a-z\d]+\.)*([a-z\d]+[-_])*[a-z\d]+$/.test(str);
|
|
349
|
+
},
|
|
350
|
+
isTxHash(str) {
|
|
351
|
+
return str.length === 44;
|
|
352
|
+
},
|
|
353
|
+
},
|
|
323
354
|
};
|
|
324
355
|
|
|
325
356
|
Object.keys(V).forEach((k) => {
|