multichain-address-validator 0.8.4 → 0.8.5

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getValidatorForChain = getValidatorForChain;
4
4
  const types_js_1 = require("./types.js");
5
5
  const index_js_1 = require("./validators/index.js");
6
- const bitcoin_validator_1 = require("./validators/bitcoin_validator");
6
+ const bitcoin_validator_js_1 = require("./validators/bitcoin_validator.js");
7
7
  const chainValidators = {
8
8
  algorand: { validator: index_js_1.AlgorandValidator },
9
9
  aptos: { validator: index_js_1.MoveValidator },
@@ -13,12 +13,12 @@ const chainValidators = {
13
13
  mainnet: (0, index_js_1.BTCValidator)({
14
14
  addressTypes: ['00', '05'],
15
15
  bech32Hrp: ['bc'],
16
- allowedSegwitVersions: [bitcoin_validator_1.SegwitVersion.NativeSegwit],
16
+ allowedSegwitVersions: [bitcoin_validator_js_1.SegwitVersion.NativeSegwit],
17
17
  }),
18
18
  testnet: (0, index_js_1.BTCValidator)({
19
19
  addressTypes: ['6f', 'c4', '3c', '26'],
20
20
  bech32Hrp: ['tb'],
21
- allowedSegwitVersions: [bitcoin_validator_1.SegwitVersion.NativeSegwit],
21
+ allowedSegwitVersions: [bitcoin_validator_js_1.SegwitVersion.NativeSegwit],
22
22
  }),
23
23
  },
24
24
  },
@@ -91,12 +91,12 @@ const chainValidators = {
91
91
  mainnet: (0, index_js_1.BTCValidator)({
92
92
  addressTypes: ['30', '32'],
93
93
  bech32Hrp: ['ltc'],
94
- allowedSegwitVersions: [bitcoin_validator_1.SegwitVersion.NativeSegwit],
94
+ allowedSegwitVersions: [bitcoin_validator_js_1.SegwitVersion.NativeSegwit],
95
95
  }),
96
96
  testnet: (0, index_js_1.BTCValidator)({
97
97
  addressTypes: ['6f', 'c4', '3a'],
98
98
  bech32Hrp: ['tltc'],
99
- allowedSegwitVersions: [bitcoin_validator_1.SegwitVersion.NativeSegwit],
99
+ allowedSegwitVersions: [bitcoin_validator_js_1.SegwitVersion.NativeSegwit],
100
100
  })
101
101
  }
102
102
  },
@@ -1,6 +1,6 @@
1
1
  import { NetworkType } from './types.js';
2
2
  import { AlgorandValidator, BCHValidator, BittensorValidator, BTCValidator, CardanoValidator, CosmosValidator, EOSValidator, ETHValidator, HederaValidator, MoneroValidator, MoveValidator, NanoValidator, NemValidator, PolkadotValidator, RippleValidator, SiaValidator, SolanaValidator, TezosValidator, TronValidator, XLMValidator, ZcashValidator, } from './validators/index.js';
3
- import { SegwitVersion } from './validators/bitcoin_validator';
3
+ import { SegwitVersion } from './validators/bitcoin_validator.js';
4
4
  const chainValidators = {
5
5
  algorand: { validator: AlgorandValidator },
6
6
  aptos: { validator: MoveValidator },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "multichain-address-validator",
3
3
  "description": "Multichain address validator for Bitcoin and other blockchains.",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "keywords": [
6
6
  "0x",
7
7
  "zrx",