@tatumio/doge 2.2.23 → 2.2.24

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@tatumio/doge",
3
- "version": "2.2.23",
3
+ "version": "2.2.24",
4
4
  "license": "MIT",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@tatumio/shared-testing-common": "2.2.23",
9
- "@tatumio/api-client": "2.2.23",
8
+ "@tatumio/shared-testing-common": "2.2.24",
9
+ "@tatumio/api-client": "2.2.24",
10
10
  "axios": "^0.26.0",
11
11
  "form-data": "^4.0.0",
12
- "@tatumio/shared-testing-btc-based": "2.2.23",
13
- "@tatumio/shared-blockchain-btc-based": "2.2.23",
14
- "@tatumio/shared-abstract-sdk": "2.2.23",
12
+ "@tatumio/shared-testing-btc-based": "2.2.24",
13
+ "@tatumio/shared-blockchain-btc-based": "2.2.24",
14
+ "@tatumio/shared-abstract-sdk": "2.2.24",
15
15
  "bignumber.js": "^9.0.2",
16
- "@tatumio/shared-core": "2.2.23",
16
+ "@tatumio/shared-core": "2.2.24",
17
17
  "lodash": "^4.17.21",
18
- "@tatumio/shared-blockchain-abstract": "2.2.23",
18
+ "@tatumio/shared-blockchain-abstract": "2.2.24",
19
19
  "bip32": "^2.0.5",
20
20
  "bip39": "^3.0.2",
21
21
  "bitcoinjs-lib": "^5.2.0",
@@ -90,6 +90,48 @@ const dogeTransactions = (apiCalls = {
90
90
  throw new doge_sdk_errors_1.DogeSdkError(e);
91
91
  }
92
92
  });
93
+ const prepareSignedReplaceableTransaction = (body) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
94
+ try {
95
+ const { to, fee, changeAddress } = body;
96
+ const transaction = new bitcore_lib_doge_1.Transaction();
97
+ const hasFeeAndChange = !lodash_1.default.isNil(changeAddress) && !lodash_1.default.isNil(fee);
98
+ for (const item of to) {
99
+ const amount = shared_abstract_sdk_1.amountUtils.toSatoshis(item.value);
100
+ transaction.to(item.address, amount);
101
+ }
102
+ const privateKeysToSign = [];
103
+ for (const item of body.fromUTXO) {
104
+ const satoshis = shared_abstract_sdk_1.amountUtils.toSatoshis(item.value);
105
+ transaction.from([
106
+ bitcore_lib_doge_1.Transaction.UnspentOutput.fromObject({
107
+ txId: item.txHash,
108
+ outputIndex: item.index,
109
+ script: bitcore_lib_doge_1.Script.fromAddress(item.address).toString(),
110
+ satoshis,
111
+ }),
112
+ ]);
113
+ if ('signatureId' in item)
114
+ privateKeysToSign.push(item.signatureId);
115
+ else if ('privateKey' in item)
116
+ privateKeysToSign.push(item.privateKey);
117
+ }
118
+ if (hasFeeAndChange) {
119
+ transaction.change(changeAddress);
120
+ transaction.fee(shared_abstract_sdk_1.amountUtils.toSatoshis(fee));
121
+ }
122
+ transaction.enableRBF();
123
+ if ('fromUTXO' in body && 'signatureId' in body.fromUTXO[0] && body.fromUTXO[0].signatureId) {
124
+ return JSON.stringify(transaction);
125
+ }
126
+ for (const pk of privateKeysToSign) {
127
+ transaction.sign(bitcore_lib_doge_1.PrivateKey.fromWIF(pk));
128
+ }
129
+ return transaction.serialize();
130
+ }
131
+ catch (e) {
132
+ throw new doge_sdk_errors_1.DogeSdkError(e);
133
+ }
134
+ });
93
135
  const validateBody = (body) => {
94
136
  if (!('fromUTXO' in body) && !('fromAddress' in body)) {
95
137
  throw new doge_sdk_errors_1.DogeSdkError(shared_abstract_sdk_1.SdkErrorCode.BTC_BASED_WRONG_BODY);
@@ -121,6 +163,7 @@ const dogeTransactions = (apiCalls = {
121
163
  return {
122
164
  sendTransaction,
123
165
  prepareSignedTransaction,
166
+ prepareSignedReplaceableTransaction,
124
167
  };
125
168
  };
126
169
  exports.dogeTransactions = dogeTransactions;
@@ -1 +1 @@
1
- {"version":3,"file":"doge.sdk.tx.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.tx.ts"],"names":[],"mappings":";;;;AAAA,aAAa;AACb,uDAAkE;AAClE,oDAQ4B;AAE5B,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