@tatumio/doge 2.0.1-alpha.227 → 2.0.1-alpha.231

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/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@tatumio/doge",
3
- "version": "2.0.1-alpha.227",
3
+ "version": "2.0.1-alpha.231",
4
4
  "license": "MIT",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@tatumio/shared-testing": "2.0.1-alpha.224",
9
- "@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.224",
10
- "@tatumio/shared-core": "2.0.1-alpha.224",
8
+ "@tatumio/shared-testing-common": "2.0.1-alpha.231",
9
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.231",
10
+ "@tatumio/api-client": "2.0.1-alpha.231",
11
11
  "axios": "^0.24.0",
12
- "@tatumio/api-client": "2.0.1-alpha.224",
13
- "cross-blob": "^3.0.0",
14
12
  "form-data": "^4.0.0",
15
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.224",
16
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.224",
13
+ "@tatumio/shared-core": "2.0.1-alpha.231",
14
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.231",
17
15
  "bignumber.js": "^9.0.2",
16
+ "@tatumio/shared-testing-btc-based": "2.0.1-alpha.231",
17
+ "@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.231",
18
18
  "bip32": "^2.0.5",
19
19
  "bip39": "^3.0.2",
20
20
  "bitcoinjs-lib": "^5.2.0",
package/src/index.js CHANGED
@@ -1,2 +1,5 @@
1
- export * from './lib/doge.sdk';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ (0, tslib_1.__exportStar)(require("./lib/doge.sdk"), exports);
2
5
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/doge/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/doge/src/index.ts"],"names":[],"mappings":";;;AAAA,8DAA8B"}
@@ -46,10 +46,13 @@ export declare const TatumDogeSDK: (args: {
46
46
  };
47
47
  withdrawal: {
48
48
  getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<import("@tatumio/api-client").WithdrawalObject[]>;
49
+ broadcast: typeof import("@tatumio/api-client").OffChainWithdrawalService.broadcastBlockchainTransaction;
50
+ create: typeof import("@tatumio/api-client").OffChainWithdrawalService.storeWithdrawal;
51
+ complete: typeof import("@tatumio/api-client").OffChainWithdrawalService.completeWithdrawal;
49
52
  };
50
53
  storeTokenAddress: typeof import("@tatumio/api-client").OffChainBlockchainService.storeTokenAddress;
51
54
  };
52
- getExchangeRate(basePair?: import("@tatumio/shared-core").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
55
+ getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
53
56
  storage: {
54
57
  upload: typeof import("@tatumio/api-client").StorageIpfsService.storeIpfs;
55
58
  get: typeof import("@tatumio/api-client").StorageIpfsService.getIpfsData;
@@ -1,10 +1,13 @@
1
- import { SdkError, SdkErrorCode } from '@tatumio/shared-abstract-sdk';
2
- export const DOGE_ERRORS_MAPPING = {
3
- 'dogecore.ErrorTransactionFeeErrorTooSmall': SdkErrorCode.BTC_FEE_TOO_SMALL,
4
- 'dogecore.ErrorTransactionInvalidOutputAmountSum': SdkErrorCode.BTC_NOT_ENOUGH_BALANCE,
5
- 'dogecore.ErrorTransactionFeeErrorDifferent': SdkErrorCode.BTC_FEE_TOO_SMALL,
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DogeSdkError = exports.DOGE_ERRORS_MAPPING = void 0;
4
+ const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
5
+ exports.DOGE_ERRORS_MAPPING = {
6
+ 'dogecore.ErrorTransactionFeeErrorTooSmall': shared_abstract_sdk_1.SdkErrorCode.BTC_FEE_TOO_SMALL,
7
+ 'dogecore.ErrorTransactionInvalidOutputAmountSum': shared_abstract_sdk_1.SdkErrorCode.BTC_NOT_ENOUGH_BALANCE,
8
+ 'dogecore.ErrorTransactionFeeErrorDifferent': shared_abstract_sdk_1.SdkErrorCode.BTC_FEE_TOO_SMALL,
6
9
  };
7
- export class DogeSdkError extends SdkError {
10
+ class DogeSdkError extends shared_abstract_sdk_1.SdkError {
8
11
  constructor(error) {
9
12
  if (typeof error === 'string') {
10
13
  super({
@@ -14,9 +17,10 @@ export class DogeSdkError extends SdkError {
14
17
  else {
15
18
  super({
16
19
  originalError: error,
17
- errorSubstringMapping: DOGE_ERRORS_MAPPING,
20
+ errorSubstringMapping: exports.DOGE_ERRORS_MAPPING,
18
21
  });
19
22
  }
20
23
  }
21
24
  }
25
+ exports.DogeSdkError = DogeSdkError;
22
26
  //# sourceMappingURL=doge.sdk.errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"doge.sdk.errors.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAErE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,2CAA2C,EAAE,YAAY,CAAC,iBAAiB;IAC3E,iDAAiD,EAAE,YAAY,CAAC,sBAAsB;IACtF,4CAA4C,EAAE,YAAY,CAAC,iBAAiB;CAC7E,CAAA;AAOD,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,YAAY,KAA+B;QACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,KAAK,CAAC;gBACJ,IAAI,EAAE,KAAK;aACZ,CAAC,CAAA;SACH;aAAM;YACL,KAAK,CAAC;gBACJ,aAAa,EAAE,KAAK;gBACpB,qBAAqB,EAAE,mBAAmB;aAC3C,CAAC,CAAA;SACH;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"doge.sdk.errors.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.errors.ts"],"names":[],"mappings":";;;AAAA,sEAAqE;AAExD,QAAA,mBAAmB,GAAG;IACjC,2CAA2C,EAAE,kCAAY,CAAC,iBAAiB;IAC3E,iDAAiD,EAAE,kCAAY,CAAC,sBAAsB;IACtF,4CAA4C,EAAE,kCAAY,CAAC,iBAAiB;CAC7E,CAAA;AAOD,MAAa,YAAa,SAAQ,8BAAQ;IACxC,YAAY,KAA+B;QACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,KAAK,CAAC;gBACJ,IAAI,EAAE,KAAK;aACZ,CAAC,CAAA;SACH;aAAM;YACL,KAAK,CAAC;gBACJ,aAAa,EAAE,KAAK;gBACpB,qBAAqB,EAAE,2BAAmB;aAC3C,CAAC,CAAA;SACH;IACH,CAAC;CACF;AAbD,oCAaC"}
@@ -1,18 +1,22 @@
1
- import { Blockchain } from '@tatumio/shared-core';
2
- import { btcBasedSdk } from '@tatumio/shared-blockchain-btc-based';
3
- import { BlockchainDogecoinService } from '@tatumio/api-client';
4
- import { dogeTransactions } from './doge.sdk.tx';
5
- const blockchain = Blockchain.DOGE;
6
- export const TatumDogeSDK = (args) => {
7
- return Object.assign(Object.assign({}, btcBasedSdk(Object.assign(Object.assign({}, args), { blockchain }))), { transaction: dogeTransactions(), blockchain: {
8
- mempool: BlockchainDogecoinService.dogeGetMempool,
9
- info: BlockchainDogecoinService.dogeGetBlockChainInfo,
10
- broadcast: BlockchainDogecoinService.dogeBroadcast,
11
- getBlockHash: BlockchainDogecoinService.dogeGetBlockHash,
12
- getBlock: BlockchainDogecoinService.dogeGetBlock,
13
- getUTXO: BlockchainDogecoinService.dogeGetUtxo,
14
- getTransaction: BlockchainDogecoinService.dogeGetRawTransaction,
15
- sendTransaction: BlockchainDogecoinService.dogeTransferBlockchain,
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TatumDogeSDK = void 0;
4
+ const shared_core_1 = require("@tatumio/shared-core");
5
+ const shared_blockchain_btc_based_1 = require("@tatumio/shared-blockchain-btc-based");
6
+ const api_client_1 = require("@tatumio/api-client");
7
+ const doge_sdk_tx_1 = require("./doge.sdk.tx");
8
+ const blockchain = shared_core_1.Blockchain.DOGE;
9
+ const TatumDogeSDK = (args) => {
10
+ return Object.assign(Object.assign({}, (0, shared_blockchain_btc_based_1.btcBasedSdk)(Object.assign(Object.assign({}, args), { blockchain }))), { transaction: (0, doge_sdk_tx_1.dogeTransactions)(), blockchain: {
11
+ mempool: api_client_1.BlockchainDogecoinService.dogeGetMempool,
12
+ info: api_client_1.BlockchainDogecoinService.dogeGetBlockChainInfo,
13
+ broadcast: api_client_1.BlockchainDogecoinService.dogeBroadcast,
14
+ getBlockHash: api_client_1.BlockchainDogecoinService.dogeGetBlockHash,
15
+ getBlock: api_client_1.BlockchainDogecoinService.dogeGetBlock,
16
+ getUTXO: api_client_1.BlockchainDogecoinService.dogeGetUtxo,
17
+ getTransaction: api_client_1.BlockchainDogecoinService.dogeGetRawTransaction,
18
+ sendTransaction: api_client_1.BlockchainDogecoinService.dogeTransferBlockchain,
16
19
  } });
17
20
  };
21
+ exports.TatumDogeSDK = TatumDogeSDK;
18
22
  //# sourceMappingURL=doge.sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"doge.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/doge/src/lib/doge.sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,C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,YAAY;YAChD,OAAO,EAAE,sCAAyB,CAAC,WAAW;YAC9C,cAAc,EAAE,sCAAyB,CAAC,qBAAqB;YAC/D,eAAe,EAAE,sCAAyB,CAAC,sBAAsB;SAClE,IACF;AACH,CAAC,CAAA;AAfY,QAAA,YAAY,gBAexB"}
@@ -1,21 +1,24 @@
1
- import { __awaiter } from "tslib";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dogeTransactions = void 0;
4
+ const tslib_1 = require("tslib");
2
5
  // @ts-ignore
3
- import { PrivateKey, Script, Transaction } from 'bitcore-lib-doge';
4
- import { ApiServices, } from '@tatumio/api-client';
5
- import { amountUtils } from '@tatumio/shared-abstract-sdk';
6
- import { DogeSdkError } from './doge.sdk.errors';
6
+ const bitcore_lib_doge_1 = require("bitcore-lib-doge");
7
+ const api_client_1 = require("@tatumio/api-client");
8
+ const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
9
+ const doge_sdk_errors_1 = require("./doge.sdk.errors");
7
10
  // @TODO add support - by address
8
- const prepareSignedTransaction = (body) => __awaiter(void 0, void 0, void 0, function* () {
11
+ const prepareSignedTransaction = (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
9
12
  try {
10
13
  const { fromUTXO, to, fee, changeAddress } = body;
11
- const tx = new Transaction().fee(amountUtils.toSatoshis(fee)).change(changeAddress);
14
+ const tx = new bitcore_lib_doge_1.Transaction().fee(shared_abstract_sdk_1.amountUtils.toSatoshis(fee)).change(changeAddress);
12
15
  const privateKeysToSign = [];
13
16
  for (const item of fromUTXO) {
14
17
  tx.from({
15
18
  txId: item.txHash,
16
19
  outputIndex: item.index,
17
- script: Script.fromAddress(item.address).toString(),
18
- satoshis: amountUtils.toSatoshis(item.value),
20
+ script: bitcore_lib_doge_1.Script.fromAddress(item.address).toString(),
21
+ satoshis: shared_abstract_sdk_1.amountUtils.toSatoshis(item.value),
19
22
  });
20
23
  if ('signatureId' in item)
21
24
  privateKeysToSign.push(item.signatureId);
@@ -23,27 +26,28 @@ const prepareSignedTransaction = (body) => __awaiter(void 0, void 0, void 0, fun
23
26
  privateKeysToSign.push(item.privateKey);
24
27
  }
25
28
  for (const item of to) {
26
- tx.to(item.address, amountUtils.toSatoshis(item.value));
29
+ tx.to(item.address, shared_abstract_sdk_1.amountUtils.toSatoshis(item.value));
27
30
  }
28
31
  if (fromUTXO && 'signatureId' in fromUTXO[0] && fromUTXO[0].signatureId) {
29
32
  return JSON.stringify({ txData: JSON.stringify(tx), privateKeysToSign });
30
33
  }
31
34
  for (const pk of privateKeysToSign) {
32
- tx.sign(PrivateKey.fromWIF(pk));
35
+ tx.sign(bitcore_lib_doge_1.PrivateKey.fromWIF(pk));
33
36
  }
34
37
  return tx.serialize();
35
38
  }
36
39
  catch (e) {
37
- throw new DogeSdkError(e);
40
+ throw new doge_sdk_errors_1.DogeSdkError(e);
38
41
  }
39
42
  });
40
- const sendTransaction = (body) => __awaiter(void 0, void 0, void 0, function* () {
41
- return ApiServices.blockchain.doge.dogeBroadcast({
43
+ const sendTransaction = (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
44
+ return api_client_1.ApiServices.blockchain.doge.dogeBroadcast({
42
45
  txData: yield prepareSignedTransaction(body),
43
46
  });
44
47
  });
45
- export const dogeTransactions = () => ({
48
+ const dogeTransactions = () => ({
46
49
  sendTransaction,
47
50
  prepareSignedTransaction,
48
51
  });
52
+ exports.dogeTransactions = dogeTransactions;
49
53
  //# sourceMappingURL=doge.sdk.tx.js.map
@@ -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,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,EACL,WAAW,GAIZ,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,WAAW,EAA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