utxo-lib 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { DashTransaction } from './DashTransaction';
2
+ import { DashTransaction } from './BabacoinTransaction';
3
3
  import { PsbtOpts, UtxoPsbt } from '../UtxoPsbt';
4
4
  import { Network } from '../../networks';
5
5
  import { Psbt as PsbtBase } from 'bip174';
@@ -2,7 +2,7 @@
2
2
  import * as bitcoinjs from 'bitcoinjs-lib';
3
3
  import { Network } from '../../networks';
4
4
  import { UtxoTransactionBuilder } from '../UtxoTransactionBuilder';
5
- import { DashTransaction } from './DashTransaction';
5
+ import { DashTransaction } from './BabacoinTransaction';
6
6
  import { UtxoTransaction } from '../UtxoTransaction';
7
7
  export declare class DashTransactionBuilder<TNumber extends number | bigint = number> extends UtxoTransactionBuilder<TNumber, DashTransaction<TNumber>> {
8
8
  constructor(network: Network, tx?: UtxoTransaction<TNumber>);
@@ -1,4 +1,4 @@
1
- export * from './DashPsbt';
2
- export * from './DashTransaction';
3
- export * from './DashTransactionBuilder';
1
+ export * from './BabacoinPsbt';
2
+ export * from './BabacoinTransaction';
3
+ export * from './BabacoinTransactionBuilder';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/bitgo/transaction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAY,OAAO,EAAc,MAAM,aAAa,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAYlE,wBAAgB,2BAA2B,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClF,GAAG,EAAE,MAAM,EACX,OAAO,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AAE,OAAO,EAChB,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GACrC,sBAAsB,CAAC,OAAO,CAAC,CA2BjC;AAED,wBAAgB,uCAAuC,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,EACrF,EAAE,EAAE,eAAe,CAAC,OAAO,CAAC,EAC5B,WAAW,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,GAChC,sBAAsB,CAAC,OAAO,CAAC,CAyBjC"}
@@ -11,9 +11,6 @@ const DashTransactionBuilder_1 = require("./dash/DashTransactionBuilder");
11
11
  const ZcashPsbt_1 = require("./zcash/ZcashPsbt");
12
12
  const ZcashTransactionBuilder_1 = require("./zcash/ZcashTransactionBuilder");
13
13
  const ZcashTransaction_1 = require("./zcash/ZcashTransaction");
14
- // #9286F8 PECUNIA CHANGES
15
- const DashPsbt_2 = require("./bbc/DashPsbt");
16
- const DashTransaction_2 = require("./bbc/DashTransaction");
17
14
  function createTransactionFromBuffer(buf, network, { version, amountType } = {}, deprecatedAmountType) {
18
15
  if (amountType) {
19
16
  if (deprecatedAmountType && amountType !== deprecatedAmountType) {
@@ -41,8 +38,6 @@ function createTransactionFromBuffer(buf, network, { version, amountType } = {},
41
38
  return DashTransaction_1.DashTransaction.fromBuffer(buf, false, amountType, network);
42
39
  case networks_1.networks.zcash:
43
40
  return ZcashTransaction_1.ZcashTransaction.fromBufferWithVersion(buf, network, version, amountType);
44
- case networks_1.networks.bbc:
45
- return DashTransaction_2.DashTransaction.fromBuffer(buf, false, amountType, network);
46
41
  }
47
42
  /* istanbul ignore next */
48
43
  throw new Error(`invalid network`);
@@ -62,9 +57,6 @@ function createPsbtFromBuffer(buf, network, bip32PathsAbsolute = false) {
62
57
  return DashPsbt_1.DashPsbt.fromBuffer(buf, { network, bip32PathsAbsolute });
63
58
  case networks_1.networks.zcash:
64
59
  return ZcashPsbt_1.ZcashPsbt.fromBuffer(buf, { network, bip32PathsAbsolute });
65
- // #9286F8 PECUNIA CHANGES
66
- case networks_1.networks.bbc:
67
- return DashPsbt_2.DashPsbt.fromBuffer(buf, { network, bip32PathsAbsolute });
68
60
  }
69
61
  /* istanbul ignore next */
70
62
  throw new Error(`invalid network`);
@@ -88,9 +80,6 @@ function createPsbtFromTransaction(tx, prevOuts) {
88
80
  return DashPsbt_1.DashPsbt.fromTransaction(tx, prevOuts);
89
81
  case networks_1.networks.zcash:
90
82
  return ZcashPsbt_1.ZcashPsbt.fromTransaction(tx, prevOuts);
91
- // #9286F8 PECUNIA CHANGES
92
- case networks_1.networks.bbc:
93
- return DashPsbt_2.DashPsbt.fromTransaction(tx, prevOuts);
94
83
  }
95
84
  /* istanbul ignore next */
96
85
  throw new Error(`invalid network`);
@@ -187,11 +176,6 @@ function createPsbtForNetwork(psbtOpts, { version } = {}) {
187
176
  psbt = ZcashPsbt_1.ZcashPsbt.createPsbt(psbtOpts);
188
177
  break;
189
178
  }
190
- // #9286F8 PECUNIA CHANGES
191
- case networks_1.networks.bbc: {
192
- psbt = DashPsbt_2.DashPsbt.createPsbt(psbtOpts);
193
- break;
194
- }
195
179
  default:
196
180
  throw new Error(`unsupported network`);
197
181
  }
@@ -244,4 +228,4 @@ function createTransactionBuilderFromTransaction(tx, prevOutputs) {
244
228
  throw new Error(`invalid network`);
245
229
  }
246
230
  exports.createTransactionBuilderFromTransaction = createTransactionBuilderFromTransaction;
247
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYml0Z28vdHJhbnNhY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsMENBQTREO0FBRTVELHlDQUFnRDtBQUNoRCx1REFBb0Q7QUFDcEQscUVBQWtFO0FBQ2xFLDhDQUEyQztBQUMzQyw0REFBeUQ7QUFDekQsMEVBQXVF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export declare const chainCodesP2shP2wsh: readonly [10, 11];
18
18
  export declare const chainCodesP2wsh: readonly [20, 21];
19
19
  export declare const chainCodesP2tr: readonly [30, 31];
20
20
  export declare const chainCodesP2trMusig2: readonly [40, 41];
21
- export declare const chainCodes: (0 | 30 | 1 | 20 | 10 | 11 | 21 | 31 | 40 | 41)[];
21
+ export declare const chainCodes: (0 | 30 | 1 | 10 | 31 | 11 | 20 | 21 | 40 | 41)[];
22
22
  export declare type ChainCode = typeof chainCodes[number];
23
23
  export declare function isChainCode(n: unknown): n is ChainCode;
24
24
  /**
@@ -19,6 +19,7 @@ export declare type Network = {
19
19
  * @deprecated
20
20
  */
21
21
  coin: string;
22
+ forkChain?: string;
22
23
  };
23
24
  export declare const networks: Record<NetworkName, Network>;
24
25
  /**
@@ -111,9 +112,4 @@ export declare function isZcash(network: Network): boolean;
111
112
  export declare function isValidNetwork(network: unknown): network is Network;
112
113
  export declare function supportsSegwit(network: Network): boolean;
113
114
  export declare function supportsTaproot(network: Network): boolean;
114
- /**
115
- * @param {Network} network
116
- * @returns {boolean} true iff network is dash or dashTest
117
- */
118
- export declare function isBbc(network: Network): boolean;
119
115
  //# sourceMappingURL=networks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/networks.ts"],"names":[],"mappings":"AAuCA,oBAAY,WAAW,GACnB,SAAS,GACT,SAAS,GACT,aAAa,GACb,oBAAoB,GACpB,OAAO,GACP,WAAW,GACX,aAAa,GACb,oBAAoB,GACpB,WAAW,GACX,kBAAkB,GAClB,MAAM,GACN,UAAU,GACV,UAAU,GACV,cAAc,GACd,UAAU,GACV,cAAc,GACd,OAAO,GACP,WAAW,GAEX,KAAK,CAAC;AAEV,oBAAY,OAAO,GAAG;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAA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AAG,OAAO,CAEvD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEhD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEpD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEpD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,OAAO,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAExD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEzD"}
@@ -16,7 +16,7 @@ forkId src/script/interpreter.h FORKID_*
16
16
 
17
17
  */
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.isBbc = exports.supportsTaproot = exports.supportsSegwit = exports.isValidNetwork = exports.isZcash = exports.isLitecoin = exports.isDogecoin = exports.isDash = exports.isBitcoinSV = exports.isBitcoinGold = exports.isECash = exports.isBitcoinCash = exports.isBitcoin = exports.getTestnet = exports.isSameCoin = exports.isTestnet = exports.isMainnet = exports.getMainnet = exports.getNetworkName = exports.getNetworkList = exports.networks = void 0;
19
+ exports.supportsTaproot = exports.supportsSegwit = exports.isValidNetwork = exports.isZcash = exports.isLitecoin = exports.isDogecoin = exports.isDash = exports.isBitcoinSV = exports.isBitcoinGold = exports.isECash = exports.isBitcoinCash = exports.isBitcoin = exports.getTestnet = exports.isSameCoin = exports.isTestnet = exports.isMainnet = exports.getMainnet = exports.getNetworkName = exports.getNetworkList = exports.networks = void 0;
20
20
  /**
21
21
  * @deprecated
22
22
  */
@@ -287,37 +287,28 @@ exports.getNetworkName = getNetworkName;
287
287
  * @returns {Object} the mainnet corresponding to a testnet
288
288
  */
289
289
  function getMainnet(network) {
290
- switch (network) {
291
- case exports.networks.bitcoin:
292
- case exports.networks.testnet:
290
+ switch (network.forkChain) {
291
+ case 'bitcoin':
293
292
  return exports.networks.bitcoin;
294
- case exports.networks.bitcoincash:
295
- case exports.networks.bitcoincashTestnet:
293
+ case 'bitcoincash':
296
294
  return exports.networks.bitcoincash;
297
- case exports.networks.bitcoingold:
298
- case exports.networks.bitcoingoldTestnet:
295
+ case 'bitcoingold':
299
296
  return exports.networks.bitcoingold;
300
- case exports.networks.bitcoinsv:
301
- case exports.networks.bitcoinsvTestnet:
297
+ case 'bitcoinsv':
302
298
  return exports.networks.bitcoinsv;
303
- case exports.networks.dash:
304
- case exports.networks.dashTest:
299
+ case 'dash':
305
300
  return exports.networks.dash;
306
- case exports.networks.ecash:
307
- case exports.networks.ecashTest:
301
+ case 'ecash':
308
302
  return exports.networks.ecash;
309
- case exports.networks.litecoin:
310
- case exports.networks.litecoinTest:
303
+ case 'litecoin':
311
304
  return exports.networks.litecoin;
312
- case exports.networks.zcash:
313
- case exports.networks.zcashTest:
305
+ case 'zcash':
314
306
  return exports.networks.zcash;
315
- case exports.networks.dogecoin:
316
- case exports.networks.dogecoinTest:
307
+ case 'dogecoin':
317
308
  return exports.networks.dogecoin;
318
309
  // #9286F8 PECUNIA CHANGES
319
- case exports.networks.bbc:
320
- return exports.networks.bbc;
310
+ default:
311
+ return exports.networks.bitcoin;
321
312
  }
322
313
  throw new TypeError(`invalid network`);
323
314
  }
@@ -465,13 +456,4 @@ function supportsTaproot(network) {
465
456
  return getMainnet(network) === exports.networks.bitcoin;
466
457
  }
467
458
  exports.supportsTaproot = supportsTaproot;
468
- // #9286F8 PECUNIA CHANGES
469
- /**
470
- * @param {Network} network
471
- * @returns {boolean} true iff network is dash or dashTest
472
- */
473
- function isBbc(network) {
474
- return getMainnet(network) === exports.networks.b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uZXR3b3JrOiB1bmtub3duKTogbmV0d29yayBpcyBOZXR3b3JrIHtcbiAgcmV0dXJuIGdldE5ldHdvcmtMaXN0KCkuaW5jbHVkZXMobmV0d29yayBhcyBOZXR3b3JrKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHN1cHBvcnRzU2Vnd2l0KG5ldHdvcms6IE5ldHdvcmspOiBib29sZWFuIHtcbiAgcmV0dXJuIChbbmV0d29ya3MuYml0Y29pbiwgbmV0d29ya3MubGl0ZWNvaW4sIG5ldHdvcmtzLmJpdGNvaW5nb2xkXSBhcyBOZXR3b3JrW10pLmluY2x1ZGVzKGdldE1haW5uZXQobmV0d29yaykpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gc3VwcG9ydHNUYXByb290KG5ldHdvcms6IE5ldHdvcmspOiBib29sZWFuIHtcbiAgcmV0dXJuIGdldE1haW5uZXQobmV0d29yaykgPT09IG5ldHdvcmtzLmJpdGNvaW47XG59XG4iXX0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utxo-lib",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Client-side Bitcoin JavaScript library",
5
5
  "main": "./dist/src/index.js",
6
6
  "engines": {