@shapeshiftoss/unchained-client 5.2.0 → 6.0.0

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.
Files changed (137) hide show
  1. package/README.md +32 -4
  2. package/dist/bitcoin/index.d.ts +3 -2
  3. package/dist/bitcoin/index.d.ts.map +1 -1
  4. package/dist/bitcoin/index.js +5 -14
  5. package/dist/bitcoin/index.js.map +1 -1
  6. package/dist/bitcoin/parser/index.d.ts +13 -0
  7. package/dist/bitcoin/parser/index.d.ts.map +1 -0
  8. package/dist/bitcoin/parser/index.js +74 -0
  9. package/dist/bitcoin/parser/index.js.map +1 -0
  10. package/dist/bitcoin/parser/utils.d.ts +4 -0
  11. package/dist/bitcoin/parser/utils.d.ts.map +1 -0
  12. package/dist/bitcoin/parser/utils.js +16 -0
  13. package/dist/bitcoin/parser/utils.js.map +1 -0
  14. package/dist/bitcoin/types.d.ts +2 -0
  15. package/dist/bitcoin/types.d.ts.map +1 -0
  16. package/dist/bitcoin/types.js +3 -0
  17. package/dist/bitcoin/types.js.map +1 -0
  18. package/dist/cosmos/index.d.ts +2 -1
  19. package/dist/cosmos/index.d.ts.map +1 -1
  20. package/dist/cosmos/index.js +4 -13
  21. package/dist/cosmos/index.js.map +1 -1
  22. package/dist/cosmos/parser/index.d.ts +13 -0
  23. package/dist/cosmos/parser/index.d.ts.map +1 -0
  24. package/dist/cosmos/parser/index.js +67 -0
  25. package/dist/cosmos/parser/index.js.map +1 -0
  26. package/dist/ethereum/index.d.ts +3 -2
  27. package/dist/ethereum/index.d.ts.map +1 -1
  28. package/dist/ethereum/index.js +5 -14
  29. package/dist/ethereum/index.js.map +1 -1
  30. package/dist/ethereum/parser/abi/erc20.d.ts +4 -0
  31. package/dist/ethereum/parser/abi/erc20.d.ts.map +1 -0
  32. package/dist/ethereum/parser/abi/erc20.js +292 -0
  33. package/dist/ethereum/parser/abi/erc20.js.map +1 -0
  34. package/dist/ethereum/parser/abi/multiSig.d.ts +4 -0
  35. package/dist/ethereum/parser/abi/multiSig.d.ts.map +1 -0
  36. package/dist/ethereum/parser/abi/multiSig.js +369 -0
  37. package/dist/ethereum/parser/abi/multiSig.js.map +1 -0
  38. package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts +4 -0
  39. package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts.map +1 -0
  40. package/dist/ethereum/parser/abi/shapeShiftRouter.js +495 -0
  41. package/dist/ethereum/parser/abi/shapeShiftRouter.js.map +1 -0
  42. package/dist/ethereum/parser/abi/thor.d.ts +4 -0
  43. package/dist/ethereum/parser/abi/thor.d.ts.map +1 -0
  44. package/dist/ethereum/parser/abi/thor.js +155 -0
  45. package/dist/ethereum/parser/abi/thor.js.map +1 -0
  46. package/dist/ethereum/parser/abi/uniV2.d.ts +4 -0
  47. package/dist/ethereum/parser/abi/uniV2.d.ts.map +1 -0
  48. package/dist/ethereum/parser/abi/uniV2.js +344 -0
  49. package/dist/ethereum/parser/abi/uniV2.js.map +1 -0
  50. package/dist/ethereum/parser/abi/yearnVault.d.ts +4 -0
  51. package/dist/ethereum/parser/abi/yearnVault.d.ts.map +1 -0
  52. package/dist/ethereum/parser/abi/yearnVault.js +648 -0
  53. package/dist/ethereum/parser/abi/yearnVault.js.map +1 -0
  54. package/dist/ethereum/parser/constants.d.ts +6 -0
  55. package/dist/ethereum/parser/constants.d.ts.map +1 -0
  56. package/dist/ethereum/parser/constants.js +9 -0
  57. package/dist/ethereum/parser/constants.js.map +1 -0
  58. package/dist/ethereum/parser/index.d.ts +21 -0
  59. package/dist/ethereum/parser/index.d.ts.map +1 -0
  60. package/dist/ethereum/parser/index.js +185 -0
  61. package/dist/ethereum/parser/index.js.map +1 -0
  62. package/dist/ethereum/parser/thor.d.ts +18 -0
  63. package/dist/ethereum/parser/thor.d.ts.map +1 -0
  64. package/dist/ethereum/parser/thor.js +81 -0
  65. package/dist/ethereum/parser/thor.js.map +1 -0
  66. package/dist/ethereum/parser/uniV2.d.ts +21 -0
  67. package/dist/ethereum/parser/uniV2.d.ts.map +1 -0
  68. package/dist/ethereum/parser/uniV2.js +130 -0
  69. package/dist/ethereum/parser/uniV2.js.map +1 -0
  70. package/dist/ethereum/parser/utils.d.ts +9 -0
  71. package/dist/ethereum/parser/utils.d.ts.map +1 -0
  72. package/dist/ethereum/parser/utils.js +47 -0
  73. package/dist/ethereum/parser/utils.js.map +1 -0
  74. package/dist/ethereum/parser/yearn.d.ts +24 -0
  75. package/dist/ethereum/parser/yearn.d.ts.map +1 -0
  76. package/dist/ethereum/parser/yearn.js +84 -0
  77. package/dist/ethereum/parser/yearn.js.map +1 -0
  78. package/dist/ethereum/parser/zrx.d.ts +7 -0
  79. package/dist/ethereum/parser/zrx.d.ts.map +1 -0
  80. package/dist/ethereum/parser/zrx.js +39 -0
  81. package/dist/ethereum/parser/zrx.js.map +1 -0
  82. package/dist/ethereum/types.d.ts +31 -0
  83. package/dist/ethereum/types.d.ts.map +1 -0
  84. package/dist/ethereum/types.js +3 -0
  85. package/dist/ethereum/types.js.map +1 -0
  86. package/dist/generated/bitcoin/api.d.ts +8 -8
  87. package/dist/generated/bitcoin/api.js +1 -1
  88. package/dist/generated/bitcoin/base.d.ts +1 -1
  89. package/dist/generated/bitcoin/base.js +1 -1
  90. package/dist/generated/bitcoin/common.d.ts +2 -2
  91. package/dist/generated/bitcoin/common.d.ts.map +1 -1
  92. package/dist/generated/bitcoin/common.js +1 -1
  93. package/dist/generated/bitcoin/configuration.d.ts +1 -1
  94. package/dist/generated/bitcoin/configuration.js +1 -1
  95. package/dist/generated/bitcoin/index.d.ts +1 -1
  96. package/dist/generated/bitcoin/index.js +1 -1
  97. package/dist/generated/cosmos/api.d.ts +43 -67
  98. package/dist/generated/cosmos/api.d.ts.map +1 -1
  99. package/dist/generated/cosmos/api.js +14 -14
  100. package/dist/generated/cosmos/api.js.map +1 -1
  101. package/dist/generated/cosmos/common.d.ts +1 -1
  102. package/dist/generated/cosmos/common.d.ts.map +1 -1
  103. package/dist/generated/ethereum/api.d.ts +7 -7
  104. package/dist/generated/ethereum/api.js +1 -1
  105. package/dist/generated/ethereum/base.d.ts +1 -1
  106. package/dist/generated/ethereum/base.js +1 -1
  107. package/dist/generated/ethereum/common.d.ts +2 -2
  108. package/dist/generated/ethereum/common.d.ts.map +1 -1
  109. package/dist/generated/ethereum/common.js +1 -1
  110. package/dist/generated/ethereum/configuration.d.ts +1 -1
  111. package/dist/generated/ethereum/configuration.js +1 -1
  112. package/dist/generated/ethereum/index.d.ts +1 -1
  113. package/dist/generated/ethereum/index.js +1 -1
  114. package/dist/index.d.ts +2 -0
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +6 -1
  117. package/dist/index.js.map +1 -1
  118. package/dist/tsconfig.tsbuildinfo +3150 -261
  119. package/dist/types.d.ts +74 -0
  120. package/dist/types.d.ts.map +1 -0
  121. package/dist/types.js +26 -0
  122. package/dist/types.js.map +1 -0
  123. package/dist/utils.d.ts +4 -0
  124. package/dist/utils.d.ts.map +1 -0
  125. package/dist/utils.js +43 -0
  126. package/dist/utils.js.map +1 -0
  127. package/dist/{bitcoin/websocket.d.ts → websocket.d.ts} +8 -7
  128. package/dist/websocket.d.ts.map +1 -0
  129. package/dist/{ethereum/websocket.js → websocket.js} +9 -8
  130. package/dist/websocket.js.map +1 -0
  131. package/package.json +10 -6
  132. package/dist/bitcoin/websocket.d.ts.map +0 -1
  133. package/dist/bitcoin/websocket.js +0 -177
  134. package/dist/bitcoin/websocket.js.map +0 -1
  135. package/dist/ethereum/websocket.d.ts +0 -61
  136. package/dist/ethereum/websocket.d.ts.map +0 -1
  137. package/dist/ethereum/websocket.js.map +0 -1
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Parser = void 0;
16
+ const sdk_1 = require("@yfi/sdk");
17
+ const ethers_1 = require("ethers");
18
+ const constants_1 = require("./constants");
19
+ const utils_1 = require("./utils");
20
+ const shapeShiftRouter_1 = __importDefault(require("./abi/shapeShiftRouter"));
21
+ const yearnVault_1 = __importDefault(require("./abi/yearnVault"));
22
+ class Parser {
23
+ constructor(args) {
24
+ this.shapeShiftInterface = new ethers_1.ethers.utils.Interface(shapeShiftRouter_1.default);
25
+ this.yearnInterface = new ethers_1.ethers.utils.Interface(yearnVault_1.default);
26
+ this.approvalSigHash = this.yearnInterface.getSighash('approve');
27
+ // TODO - work out how to use shapeShiftInterface.getSighash('deposit(address,address,uint256,uint256)')
28
+ this.depositSigHash = '0x20e8c565';
29
+ this.withdrawSigHash = '0x00f714ce';
30
+ this.provider = args.provider;
31
+ // The only Yearn-supported chain we currently support is mainnet
32
+ if (args.network == 'mainnet') {
33
+ // 1 for EthMain (@yfi/sdk/dist/chain.d.ts)
34
+ this.yearnSdk = new sdk_1.Yearn(1, { provider: this.provider, disableAllowlist: true });
35
+ }
36
+ }
37
+ parse(tx) {
38
+ var _a, _b, _c, _d, _e;
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const data = (_a = tx.ethereumSpecific) === null || _a === void 0 ? void 0 : _a.data;
41
+ if (!data)
42
+ return;
43
+ const txSigHash = utils_1.getSigHash(data);
44
+ const abiInterface = this.getAbiInterface(txSigHash);
45
+ if (!abiInterface)
46
+ return;
47
+ const decoded = abiInterface.parseTransaction({ data });
48
+ const receiveAddress = (_c = (_b = tx.vout) === null || _b === void 0 ? void 0 : _b[0].addresses) === null || _c === void 0 ? void 0 : _c[0];
49
+ if (!this.yearnTokenVaultAddresses) {
50
+ const vaults = yield ((_d = this.yearnSdk) === null || _d === void 0 ? void 0 : _d.vaults.get());
51
+ this.yearnTokenVaultAddresses = vaults === null || vaults === void 0 ? void 0 : vaults.map((vault) => vault.address);
52
+ }
53
+ if (txSigHash === this.approvalSigHash && (decoded === null || decoded === void 0 ? void 0 : decoded.args._spender) !== constants_1.SHAPE_SHIFT_ROUTER_CONTRACT)
54
+ return;
55
+ if (txSigHash === this.depositSigHash && receiveAddress !== constants_1.SHAPE_SHIFT_ROUTER_CONTRACT)
56
+ return;
57
+ if (txSigHash === this.withdrawSigHash &&
58
+ receiveAddress &&
59
+ !((_e = this.yearnTokenVaultAddresses) === null || _e === void 0 ? void 0 : _e.includes(receiveAddress)))
60
+ return;
61
+ return {
62
+ data: {
63
+ method: decoded === null || decoded === void 0 ? void 0 : decoded.name,
64
+ parser: 'yearn',
65
+ },
66
+ };
67
+ });
68
+ }
69
+ getAbiInterface(txSigHash) {
70
+ return (() => {
71
+ switch (txSigHash) {
72
+ case this.approvalSigHash:
73
+ case this.withdrawSigHash:
74
+ return this.yearnInterface;
75
+ case this.depositSigHash:
76
+ return this.shapeShiftInterface;
77
+ default:
78
+ return undefined;
79
+ }
80
+ })();
81
+ }
82
+ }
83
+ exports.Parser = Parser;
84
+ //# sourceMappingURL=yearn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yearn.js","sourceRoot":"","sources":["../../../src/ethereum/parser/yearn.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ import { Tx as BlockbookTx } from '@shapeshiftoss/blockbook';
2
+ import { GenericParser, TxSpecific } from '../../types';
3
+ import { ZrxTx } from '../types';
4
+ export declare class Parser implements GenericParser<BlockbookTx> {
5
+ parse(tx: BlockbookTx): Promise<TxSpecific<ZrxTx> | undefined>;
6
+ }
7
+ //# sourceMappingURL=zrx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zrx.d.ts","sourceRoot":"","sources":["../../../src/ethereum/parser/zrx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAO,aAAa,EAAa,UAAU,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAIhC,qBAAa,MAAO,YAAW,aAAa,CAAC,WAAW,CAAC;IACjD,KAAK,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;CAmBrE"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Parser = void 0;
13
+ const types_1 = require("../../types");
14
+ const utils_1 = require("./utils");
15
+ const constants_1 = require("./constants");
16
+ class Parser {
17
+ parse(tx) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ if (!utils_1.txInteractsWithContract(tx, constants_1.ZRX_PROXY_CONTRACT))
20
+ return;
21
+ if (!(tx.tokenTransfers && tx.tokenTransfers.length))
22
+ return;
23
+ const trade = {
24
+ dexName: types_1.Dex.Zrx,
25
+ type: types_1.TradeType.Trade,
26
+ };
27
+ const data = {
28
+ method: undefined,
29
+ parser: 'zrx',
30
+ };
31
+ return {
32
+ trade,
33
+ data,
34
+ };
35
+ });
36
+ }
37
+ }
38
+ exports.Parser = Parser;
39
+ //# sourceMappingURL=zrx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zrx.js","sourceRoot":"","sources":["../../../src/ethereum/parser/zrx.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uCAAuE;AAEvE,mCAAiD;AACjD,2CAAgD;AAEhD,MAAa,MAAM;IACX,KAAK,CAAC,EAAe;;YACzB,IAAI,CAAC,+BAAuB,CAAC,EAAE,EAAE,8BAAkB,CAAC;gBAAE,OAAM;YAC5D,IAAI,CAAC,CAAC,EAAE,CAAC,cAAc,IAAI,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC;gBAAE,OAAM;YAE5D,MAAM,KAAK,GAAG;gBACZ,OAAO,EAAE,WAAG,CAAC,GAAG;gBAChB,IAAI,EAAE,iBAAS,CAAC,KAAK;aACtB,CAAA;YAED,MAAM,IAAI,GAAG;gBACX,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,KAAK;aACd,CAAA;YAED,OAAO;gBACL,KAAK;gBACL,IAAI;aACL,CAAA;QACH,CAAC;KAAA;CACF;AApBD,wBAoBC"}
@@ -0,0 +1,31 @@
1
+ import { StandardTx, TxMetadata } from '../types';
2
+ export interface InternalTx {
3
+ blockNumber: string;
4
+ timeStamp: string;
5
+ hash: string;
6
+ from: string;
7
+ to: string;
8
+ value: string;
9
+ contractAddress: string;
10
+ input: string;
11
+ type: string;
12
+ gas: string;
13
+ gasUsed: string;
14
+ traceId: string;
15
+ isError: string;
16
+ errCode: string;
17
+ }
18
+ export declare type Network = 'mainnet' | 'ropsten';
19
+ export interface UniV2Tx extends StandardTx {
20
+ data?: TxMetadata;
21
+ }
22
+ export interface ZrxTx extends StandardTx {
23
+ data?: TxMetadata;
24
+ }
25
+ export interface ThorTx extends StandardTx {
26
+ data?: TxMetadata;
27
+ }
28
+ export interface YearnTx extends StandardTx {
29
+ data?: TxMetadata;
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ethereum/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oBAAY,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;AAE3C,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ethereum/types.ts"],"names":[],"mappings":""}
@@ -2,7 +2,7 @@
2
2
  * @shapeshiftoss/bitcoin-api
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 5.2.0
5
+ * The version of the OpenAPI document: 6.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -837,21 +837,21 @@ export declare class V1Api extends BaseAPI {
837
837
  * @throws {RequiredError}
838
838
  * @memberof V1Api
839
839
  */
840
- getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinAccount>>;
840
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinAccount, any>>;
841
841
  /**
842
842
  * Get information about the running coinstack
843
843
  * @param {*} [options] Override http request option.
844
844
  * @throws {RequiredError}
845
845
  * @memberof V1Api
846
846
  */
847
- getInfo(options?: any): Promise<import("axios").AxiosResponse<Info>>;
847
+ getInfo(options?: any): Promise<import("axios").AxiosResponse<Info, any>>;
848
848
  /**
849
849
  * Gets current network fee estimates for \'fast\', \'average\', and \'slow\' tx confirmation times
850
850
  * @param {*} [options] Override http request option.
851
851
  * @throws {RequiredError}
852
852
  * @memberof V1Api
853
853
  */
854
- getNetworkFees(options?: any): Promise<import("axios").AxiosResponse<BTCNetworkFees>>;
854
+ getNetworkFees(options?: any): Promise<import("axios").AxiosResponse<BTCNetworkFees, any>>;
855
855
  /**
856
856
  * Get transaction specific data directly from the node
857
857
  * @param {V1ApiGetTransactionRequest} requestParameters Request parameters.
@@ -859,7 +859,7 @@ export declare class V1Api extends BaseAPI {
859
859
  * @throws {RequiredError}
860
860
  * @memberof V1Api
861
861
  */
862
- getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinTxSpecific>>;
862
+ getTransaction(requestParameters: V1ApiGetTransactionRequest, options?: any): Promise<import("axios").AxiosResponse<BitcoinTxSpecific, any>>;
863
863
  /**
864
864
  * Get transaction history by address or xpub
865
865
  * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
@@ -867,7 +867,7 @@ export declare class V1Api extends BaseAPI {
867
867
  * @throws {RequiredError}
868
868
  * @memberof V1Api
869
869
  */
870
- getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory>>;
870
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory, any>>;
871
871
  /**
872
872
  * Get all unspent transaction outputs for an address or xpub Examples 1. Bitcoin (address) 2. Bitcoin (xpub)
873
873
  * @param {V1ApiGetUtxosRequest} requestParameters Request parameters.
@@ -875,7 +875,7 @@ export declare class V1Api extends BaseAPI {
875
875
  * @throws {RequiredError}
876
876
  * @memberof V1Api
877
877
  */
878
- getUtxos(requestParameters: V1ApiGetUtxosRequest, options?: any): Promise<import("axios").AxiosResponse<Utxo[]>>;
878
+ getUtxos(requestParameters: V1ApiGetUtxosRequest, options?: any): Promise<import("axios").AxiosResponse<Utxo[], any>>;
879
879
  /**
880
880
  * Sends raw transaction to be broadcast to the node.
881
881
  * @param {V1ApiSendTxRequest} requestParameters Request parameters.
@@ -883,6 +883,6 @@ export declare class V1Api extends BaseAPI {
883
883
  * @throws {RequiredError}
884
884
  * @memberof V1Api
885
885
  */
886
- sendTx(requestParameters: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
886
+ sendTx(requestParameters: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string, any>>;
887
887
  }
888
888
  //# sourceMappingURL=api.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * @shapeshiftoss/bitcoin-api
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 5.2.0
8
+ * The version of the OpenAPI document: 6.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * @shapeshiftoss/bitcoin-api
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 5.2.0
5
+ * The version of the OpenAPI document: 6.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * @shapeshiftoss/bitcoin-api
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 5.2.0
8
+ * The version of the OpenAPI document: 6.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * @shapeshiftoss/bitcoin-api
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 5.2.0
5
+ * The version of the OpenAPI document: 6.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -62,5 +62,5 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
66
66
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/generated/bitcoin/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAiB,WAAW,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,6DAOjF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,oDAIxD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,6DAO/D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,6DAO1F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAenE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,mDAQ7E,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,yDACjG,aAAa,aAA0B,MAAM,gDAI/D,CAAA"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/generated/bitcoin/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAiB,WAAW,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,6DAOjF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,oDAIxD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,6DAO/D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,6DAO1F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAenE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,mDAQ7E,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,yDACjG,aAAa,aAA0B,MAAM,qDAI/D,CAAA"}
@@ -5,7 +5,7 @@
5
5
  * @shapeshiftoss/bitcoin-api
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 5.2.0
8
+ * The version of the OpenAPI document: 6.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * @shapeshiftoss/bitcoin-api
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 5.2.0
5
+ * The version of the OpenAPI document: 6.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * @shapeshiftoss/bitcoin-api
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 5.2.0
8
+ * The version of the OpenAPI document: 6.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * @shapeshiftoss/bitcoin-api
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 5.2.0
5
+ * The version of the OpenAPI document: 6.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * @shapeshiftoss/bitcoin-api
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 5.2.0
8
+ * The version of the OpenAPI document: 6.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -243,23 +243,17 @@ export interface BaseTx {
243
243
  txid: string;
244
244
  }
245
245
  /**
246
- *
246
+ * Contains info about required base transaction history details
247
247
  * @export
248
248
  * @interface BaseTxHistory
249
249
  */
250
250
  export interface BaseTxHistory {
251
251
  /**
252
- *
253
- * @type {number}
254
- * @memberof BaseTxHistory
255
- */
256
- page: number;
257
- /**
258
- *
259
- * @type {number}
252
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
253
+ * @type {string}
260
254
  * @memberof BaseTxHistory
261
255
  */
262
- totalPages: number;
256
+ cursor: string;
263
257
  /**
264
258
  *
265
259
  * @type {string}
@@ -271,7 +265,7 @@ export interface BaseTxHistory {
271
265
  * @type {Array<Tx>}
272
266
  * @memberof BaseTxHistory
273
267
  */
274
- txs?: Array<Tx>;
268
+ txs: Array<Tx>;
275
269
  }
276
270
  /**
277
271
  *
@@ -290,7 +284,7 @@ export interface BaseTxHistoryAllOf {
290
284
  * @type {Array<Tx>}
291
285
  * @memberof BaseTxHistoryAllOf
292
286
  */
293
- txs?: Array<Tx>;
287
+ txs: Array<Tx>;
294
288
  }
295
289
  /**
296
290
  * Contains info about a staking delegation
@@ -356,11 +350,11 @@ export interface Info {
356
350
  */
357
351
  export interface InlineObject {
358
352
  /**
359
- * Raw transaction hex
353
+ * Raw transaction
360
354
  * @type {string}
361
355
  * @memberof InlineObject
362
356
  */
363
- hex: string;
357
+ rawTx: string;
364
358
  }
365
359
  /**
366
360
  * Contains info about a 500 Internal Server Error response
@@ -381,12 +375,6 @@ export interface InternalServerError {
381
375
  * @interface Message
382
376
  */
383
377
  export interface Message {
384
- /**
385
- *
386
- * @type {Array<string>}
387
- * @memberof Message
388
- */
389
- Addresses?: Array<string>;
390
378
  /**
391
379
  *
392
380
  * @type {string}
@@ -413,23 +401,17 @@ export interface Message {
413
401
  value?: Value;
414
402
  }
415
403
  /**
416
- * Contains info about pagination for large sets of data
404
+ * Contains info about pagination metadata
417
405
  * @export
418
406
  * @interface Pagination
419
407
  */
420
408
  export interface Pagination {
421
409
  /**
422
- *
423
- * @type {number}
424
- * @memberof Pagination
425
- */
426
- page: number;
427
- /**
428
- *
429
- * @type {number}
410
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
411
+ * @type {string}
430
412
  * @memberof Pagination
431
413
  */
432
- totalPages: number;
414
+ cursor: string;
433
415
  }
434
416
  /**
435
417
  * Contains info about a staking redelegation
@@ -510,7 +492,7 @@ export interface Tx {
510
492
  * @type {Array<Event>}
511
493
  * @memberof Tx
512
494
  */
513
- events?: Array<Event>;
495
+ events: Array<Event>;
514
496
  /**
515
497
  *
516
498
  * @type {Value}
@@ -540,13 +522,13 @@ export interface Tx {
540
522
  * @type {string}
541
523
  * @memberof Tx
542
524
  */
543
- memo: string;
525
+ memo?: string;
544
526
  /**
545
527
  *
546
528
  * @type {Array<Message>}
547
529
  * @memberof Tx
548
530
  */
549
- messages?: Array<Message>;
531
+ messages: Array<Message>;
550
532
  /**
551
533
  *
552
534
  * @type {string}
@@ -565,7 +547,7 @@ export interface TxAllOf {
565
547
  * @type {Array<Event>}
566
548
  * @memberof TxAllOf
567
549
  */
568
- events?: Array<Event>;
550
+ events: Array<Event>;
569
551
  /**
570
552
  *
571
553
  * @type {Value}
@@ -595,13 +577,13 @@ export interface TxAllOf {
595
577
  * @type {string}
596
578
  * @memberof TxAllOf
597
579
  */
598
- memo: string;
580
+ memo?: string;
599
581
  /**
600
582
  *
601
583
  * @type {Array<Message>}
602
584
  * @memberof TxAllOf
603
585
  */
604
- messages?: Array<Message>;
586
+ messages: Array<Message>;
605
587
  /**
606
588
  *
607
589
  * @type {string}
@@ -616,29 +598,23 @@ export interface TxAllOf {
616
598
  */
617
599
  export interface TxHistory {
618
600
  /**
619
- *
620
- * @type {Array<Tx>}
621
- * @memberof TxHistory
622
- */
623
- txs: Array<Tx>;
624
- /**
625
- *
626
- * @type {number}
601
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
602
+ * @type {string}
627
603
  * @memberof TxHistory
628
604
  */
629
- page: number;
605
+ cursor: string;
630
606
  /**
631
607
  *
632
- * @type {number}
608
+ * @type {string}
633
609
  * @memberof TxHistory
634
610
  */
635
- totalPages: number;
611
+ pubkey: string;
636
612
  /**
637
613
  *
638
- * @type {string}
614
+ * @type {Array<Tx>}
639
615
  * @memberof TxHistory
640
616
  */
641
- pubkey: string;
617
+ txs: Array<Tx>;
642
618
  }
643
619
  /**
644
620
  *
@@ -755,12 +731,12 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
755
731
  *
756
732
  * @summary Get paginated transaction history.
757
733
  * @param {string} pubkey Account address or xpub
758
- * @param {number} [page] Page number (default 1)
759
- * @param {number} [pageSize] Page size (default 25)
734
+ * @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
735
+ * @param {number} [pageSize] Page size (default 10)
760
736
  * @param {*} [options] Override http request option.
761
737
  * @throws {RequiredError}
762
738
  */
763
- getTxHistory: (pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
739
+ getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
764
740
  /**
765
741
  *
766
742
  * @summary Sends raw transaction to be broadcast to the node.
@@ -794,12 +770,12 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
794
770
  *
795
771
  * @summary Get paginated transaction history.
796
772
  * @param {string} pubkey Account address or xpub
797
- * @param {number} [page] Page number (default 1)
798
- * @param {number} [pageSize] Page size (default 25)
773
+ * @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
774
+ * @param {number} [pageSize] Page size (default 10)
799
775
  * @param {*} [options] Override http request option.
800
776
  * @throws {RequiredError}
801
777
  */
802
- getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
778
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
803
779
  /**
804
780
  *
805
781
  * @summary Sends raw transaction to be broadcast to the node.
@@ -833,12 +809,12 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
833
809
  *
834
810
  * @summary Get paginated transaction history.
835
811
  * @param {string} pubkey Account address or xpub
836
- * @param {number} [page] Page number (default 1)
837
- * @param {number} [pageSize] Page size (default 25)
812
+ * @param {string} [cursor] Pagination cursor from previous response or empty string for first page fetch
813
+ * @param {number} [pageSize] Page size (default 10)
838
814
  * @param {*} [options] Override http request option.
839
815
  * @throws {RequiredError}
840
816
  */
841
- getTxHistory(pubkey: string, page?: number | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
817
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
842
818
  /**
843
819
  *
844
820
  * @summary Sends raw transaction to be broadcast to the node.
@@ -874,13 +850,13 @@ export interface V1ApiGetTxHistoryRequest {
874
850
  */
875
851
  readonly pubkey: string;
876
852
  /**
877
- * Page number (default 1)
878
- * @type {number}
853
+ * Pagination cursor from previous response or empty string for first page fetch
854
+ * @type {string}
879
855
  * @memberof V1ApiGetTxHistory
880
856
  */
881
- readonly page?: number;
857
+ readonly cursor?: string;
882
858
  /**
883
- * Page size (default 25)
859
+ * Page size (default 10)
884
860
  * @type {number}
885
861
  * @memberof V1ApiGetTxHistory
886
862
  */
@@ -914,7 +890,7 @@ export declare class V1Api extends BaseAPI {
914
890
  * @throws {RequiredError}
915
891
  * @memberof V1Api
916
892
  */
917
- getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<Account>>;
893
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<Account, any>>;
918
894
  /**
919
895
  *
920
896
  * @summary Get information about the running coinstack.
@@ -922,7 +898,7 @@ export declare class V1Api extends BaseAPI {
922
898
  * @throws {RequiredError}
923
899
  * @memberof V1Api
924
900
  */
925
- getInfo(options?: any): Promise<import("axios").AxiosResponse<Info>>;
901
+ getInfo(options?: any): Promise<import("axios").AxiosResponse<Info, any>>;
926
902
  /**
927
903
  *
928
904
  * @summary Get paginated transaction history.
@@ -931,7 +907,7 @@ export declare class V1Api extends BaseAPI {
931
907
  * @throws {RequiredError}
932
908
  * @memberof V1Api
933
909
  */
934
- getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory>>;
910
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<TxHistory, any>>;
935
911
  /**
936
912
  *
937
913
  * @summary Sends raw transaction to be broadcast to the node.
@@ -940,7 +916,7 @@ export declare class V1Api extends BaseAPI {
940
916
  * @throws {RequiredError}
941
917
  * @memberof V1Api
942
918
  */
943
- sendTx(requestParameters?: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string>>;
919
+ sendTx(requestParameters?: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string, any>>;
944
920
  }
945
921
  /**
946
922
  * WebsocketApi - axios parameter creator
@@ -995,6 +971,6 @@ export declare class WebsocketApi extends BaseAPI {
995
971
  * @throws {RequiredError}
996
972
  * @memberof WebsocketApi
997
973
  */
998
- websocket(options?: any): Promise<import("axios").AxiosResponse<void>>;
974
+ websocket(options?: any): Promise<import("axios").AxiosResponse<void, any>>;
999
975
  }
1000
976
  //# sourceMappingURL=api.d.ts.map