@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
@@ -3,7 +3,7 @@
3
3
  "master",
4
4
  {
5
5
  "name": "*",
6
- "prerelease": true
6
+ "prerelease": true,
7
7
  }
8
8
  ],
9
9
  "plugins": [
@@ -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 ethereumClassic {
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;
@@ -434,7 +434,7 @@ const validations = {
434
434
  return str.length === 66 && web3.isHexStrict(str);
435
435
  },
436
436
  },
437
- ethereumClassic: {
437
+ celo: {
438
438
  isAddress(str) {
439
439
  return web3.isAddress(str);
440
440
  },
@@ -440,14 +440,14 @@ describe('Validations', () => {
440
440
  });
441
441
  });
442
442
  });
443
- describe('ETC', () => {
443
+ describe('celo', () => {
444
444
  describe('isAddress', () => {
445
- it('should return true if the address evaluates as a web3 address', () => validations_1.default.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d26').should.be.true);
446
- it('should return false if the address does not evaluate to a web3 address', () => validations_1.default.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d2G').should.be.false);
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 ETC hash', () => validations_1.default.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de').should.be.true);
450
- it('should correctly validate an incorrect ETC hash', () => validations_1.default.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de!').should.be.false);
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
  });
@@ -439,7 +439,7 @@ const validations = {
439
439
  return str.length === 66 && web3.isHexStrict(str);
440
440
  },
441
441
  },
442
- ethereumClassic: {
442
+ celo: {
443
443
  isAddress(str) {
444
444
  return web3.isAddress(str);
445
445
  },
@@ -575,16 +575,16 @@ describe('Validations', () => {
575
575
  });
576
576
  });
577
577
 
578
- describe('ETC', () => {
578
+ describe('celo', () => {
579
579
  describe('isAddress', () => {
580
- it('should return true if the address evaluates as a web3 address', () => validations.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d26').should.be.true);
581
- it('should return false if the address does not evaluate to a web3 address', () => validations.ethereumClassic.isAddress('0x667B248015b02f35F0dBb7e02695f9D081CC5d2G').should.be.false);
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 ETC hash', () => validations.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de').should.be.true);
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 ETC hash', () => validations.ethereumClassic.isTxHash('0x5b410a65887837fe8c2b6fadf3bad8808411cef67ed22eba27f75f6d446673de!').should.be.false);
587
+ it('should correctly validate an incorrect CELO hash', () => validations.celo.isTxHash('0xad90ee6159a7760fda9c594dc0bb9a3fec8b5c57dc61e391b65e4f8d0efc2faG').should.be.false);
588
588
  });
589
589
  });
590
590
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellipticltd/aml-utils",
3
- "version": "0.15.8",
3
+ "version": "0.15.9-SCR-1220",
4
4
  "description": "Utilities, helpers, validations, type-checking, etc",
5
5
  "engines": {
6
6
  "node": "10.1.0",