@ellipticltd/aml-utils 0.15.8 → 0.15.9-SCR-1220
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/.releaserc.json
CHANGED
|
@@ -218,7 +218,7 @@ export namespace fantom {
|
|
|
218
218
|
function isTxHash(str: any): any;
|
|
219
219
|
function isTxHash(str: any): any;
|
|
220
220
|
}
|
|
221
|
-
export namespace
|
|
221
|
+
export namespace celo {
|
|
222
222
|
function isAddress(str: any): any;
|
|
223
223
|
function isAddress(str: any): any;
|
|
224
224
|
function isTxHash(str: any): any;
|
|
@@ -440,14 +440,14 @@ describe('Validations', () => {
|
|
|
440
440
|
});
|
|
441
441
|
});
|
|
442
442
|
});
|
|
443
|
-
describe('
|
|
443
|
+
describe('celo', () => {
|
|
444
444
|
describe('isAddress', () => {
|
|
445
|
-
it('should return true if the address evaluates as a web3 address', () => validations_1.default.
|
|
446
|
-
it('should return false if the address does not evaluate to a web3 address', () => validations_1.default.
|
|
445
|
+
it('should return true if the address evaluates as a web3 address', () => validations_1.default.celo.isAddress('0x711520A753A23a3760B0361e0EB8d3A0eD472326').should.be.true);
|
|
446
|
+
it('should return false if the address does not evaluate to a web3 address', () => validations_1.default.celo.isAddress('0x711520A753A23a3760B0361e0EB8d3A0eD47232G').should.be.false);
|
|
447
447
|
});
|
|
448
448
|
describe('isTxHash', () => {
|
|
449
|
-
it('should correctly validate a valid
|
|
450
|
-
it('should correctly validate an incorrect
|
|
449
|
+
it('should correctly validate a valid CELO hash', () => validations_1.default.celo.isTxHash('0xad90ee6159a7760fda9c594dc0bb9a3fec8b5c57dc61e391b65e4f8d0efc2fab').should.be.true);
|
|
450
|
+
it('should correctly validate an incorrect CELO hash', () => validations_1.default.celo.isTxHash('0xad90ee6159a7760fda9c594dc0bb9a3fec8b5c57dc61e391b65e4f8d0efc2faG').should.be.false);
|
|
451
451
|
});
|
|
452
452
|
});
|
|
453
453
|
});
|
|
@@ -575,16 +575,16 @@ describe('Validations', () => {
|
|
|
575
575
|
});
|
|
576
576
|
});
|
|
577
577
|
|
|
578
|
-
describe('
|
|
578
|
+
describe('celo', () => {
|
|
579
579
|
describe('isAddress', () => {
|
|
580
|
-
it('should return true if the address evaluates as a web3 address', () => validations.
|
|
581
|
-
it('should return false if the address does not evaluate to a web3 address', () => validations.
|
|
580
|
+
it('should return true if the address evaluates as a web3 address', () => validations.celo.isAddress('0x711520A753A23a3760B0361e0EB8d3A0eD472326').should.be.true);
|
|
581
|
+
it('should return false if the address does not evaluate to a web3 address', () => validations.celo.isAddress('0x711520A753A23a3760B0361e0EB8d3A0eD47232G').should.be.false);
|
|
582
582
|
});
|
|
583
583
|
|
|
584
584
|
describe('isTxHash', () => {
|
|
585
|
-
it('should correctly validate a valid
|
|
585
|
+
it('should correctly validate a valid CELO hash', () => validations.celo.isTxHash('0xad90ee6159a7760fda9c594dc0bb9a3fec8b5c57dc61e391b65e4f8d0efc2fab').should.be.true);
|
|
586
586
|
|
|
587
|
-
it('should correctly validate an incorrect
|
|
587
|
+
it('should correctly validate an incorrect CELO hash', () => validations.celo.isTxHash('0xad90ee6159a7760fda9c594dc0bb9a3fec8b5c57dc61e391b65e4f8d0efc2faG').should.be.false);
|
|
588
588
|
});
|
|
589
589
|
});
|
|
590
590
|
});
|