@shapeshiftoss/unchained-client 6.11.0 → 6.11.1

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 (187) hide show
  1. package/README.md +3 -1
  2. package/dist/bitcoin/index.d.ts +0 -1
  3. package/dist/bitcoin/index.js +5 -2
  4. package/dist/bitcoin/parser/index.d.ts +0 -1
  5. package/dist/bitcoin/parser/index.js +43 -55
  6. package/dist/bitcoin/parser/utils.d.ts +0 -1
  7. package/dist/bitcoin/parser/utils.js +0 -1
  8. package/dist/bitcoin/types.d.ts +0 -1
  9. package/dist/bitcoin/types.js +0 -1
  10. package/dist/cosmos/index.d.ts +0 -1
  11. package/dist/cosmos/index.js +5 -2
  12. package/dist/cosmos/parser/index.d.ts +1 -2
  13. package/dist/cosmos/parser/index.js +56 -64
  14. package/dist/cosmos/parser/utils.d.ts +2 -3
  15. package/dist/cosmos/parser/utils.js +21 -22
  16. package/dist/cosmos/types.d.ts +0 -1
  17. package/dist/cosmos/types.js +0 -1
  18. package/dist/ethereum/index.d.ts +0 -1
  19. package/dist/ethereum/index.js +5 -2
  20. package/dist/ethereum/parser/abi/erc20.d.ts +0 -1
  21. package/dist/ethereum/parser/abi/erc20.js +69 -70
  22. package/dist/ethereum/parser/abi/foxyStaking.d.ts +0 -1
  23. package/dist/ethereum/parser/abi/foxyStaking.js +161 -162
  24. package/dist/ethereum/parser/abi/multiSig.d.ts +0 -1
  25. package/dist/ethereum/parser/abi/multiSig.js +79 -80
  26. package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts +0 -1
  27. package/dist/ethereum/parser/abi/shapeShiftRouter.js +119 -120
  28. package/dist/ethereum/parser/abi/thor.d.ts +0 -1
  29. package/dist/ethereum/parser/abi/thor.js +28 -29
  30. package/dist/ethereum/parser/abi/uniV2.d.ts +0 -1
  31. package/dist/ethereum/parser/abi/uniV2.js +55 -56
  32. package/dist/ethereum/parser/abi/weth.d.ts +0 -1
  33. package/dist/ethereum/parser/abi/weth.js +66 -67
  34. package/dist/ethereum/parser/abi/yearnVault.d.ts +0 -1
  35. package/dist/ethereum/parser/abi/yearnVault.js +95 -96
  36. package/dist/ethereum/parser/constants.d.ts +0 -1
  37. package/dist/ethereum/parser/constants.js +0 -1
  38. package/dist/ethereum/parser/foxy.d.ts +1 -2
  39. package/dist/ethereum/parser/foxy.js +22 -34
  40. package/dist/ethereum/parser/index.d.ts +0 -1
  41. package/dist/ethereum/parser/index.js +46 -54
  42. package/dist/ethereum/parser/thor.d.ts +1 -2
  43. package/dist/ethereum/parser/thor.js +29 -41
  44. package/dist/ethereum/parser/uniV2.d.ts +0 -1
  45. package/dist/ethereum/parser/uniV2.js +87 -99
  46. package/dist/ethereum/parser/utils.d.ts +0 -1
  47. package/dist/ethereum/parser/utils.js +2 -3
  48. package/dist/ethereum/parser/weth.d.ts +0 -1
  49. package/dist/ethereum/parser/weth.js +72 -84
  50. package/dist/ethereum/parser/yearn.d.ts +1 -2
  51. package/dist/ethereum/parser/yearn.js +46 -58
  52. package/dist/ethereum/parser/zrx.d.ts +1 -2
  53. package/dist/ethereum/parser/zrx.js +18 -30
  54. package/dist/ethereum/types.d.ts +0 -1
  55. package/dist/ethereum/types.js +0 -1
  56. package/dist/generated/bitcoin/api.d.ts +116 -120
  57. package/dist/generated/bitcoin/api.js +81 -110
  58. package/dist/generated/bitcoin/base.d.ts +2 -3
  59. package/dist/generated/bitcoin/base.js +1 -2
  60. package/dist/generated/bitcoin/common.d.ts +2 -3
  61. package/dist/generated/bitcoin/common.js +22 -38
  62. package/dist/generated/bitcoin/configuration.d.ts +0 -1
  63. package/dist/generated/bitcoin/configuration.js +0 -1
  64. package/dist/generated/bitcoin/index.d.ts +0 -1
  65. package/dist/generated/bitcoin/index.js +5 -2
  66. package/dist/generated/cosmos/api.d.ts +143 -144
  67. package/dist/generated/cosmos/api.js +89 -115
  68. package/dist/generated/cosmos/base.d.ts +2 -3
  69. package/dist/generated/cosmos/base.js +0 -1
  70. package/dist/generated/cosmos/common.d.ts +2 -3
  71. package/dist/generated/cosmos/common.js +22 -38
  72. package/dist/generated/cosmos/configuration.d.ts +0 -1
  73. package/dist/generated/cosmos/configuration.js +0 -1
  74. package/dist/generated/cosmos/index.d.ts +0 -1
  75. package/dist/generated/cosmos/index.js +5 -2
  76. package/dist/generated/ethereum/api.d.ts +73 -77
  77. package/dist/generated/ethereum/api.js +73 -100
  78. package/dist/generated/ethereum/base.d.ts +2 -3
  79. package/dist/generated/ethereum/base.js +1 -2
  80. package/dist/generated/ethereum/common.d.ts +2 -3
  81. package/dist/generated/ethereum/common.js +22 -38
  82. package/dist/generated/ethereum/configuration.d.ts +0 -1
  83. package/dist/generated/ethereum/configuration.js +0 -1
  84. package/dist/generated/ethereum/index.d.ts +0 -1
  85. package/dist/generated/ethereum/index.js +5 -2
  86. package/dist/index.d.ts +0 -1
  87. package/dist/index.js +5 -2
  88. package/dist/types.d.ts +0 -1
  89. package/dist/types.js +0 -1
  90. package/dist/utils.d.ts +1 -2
  91. package/dist/utils.js +18 -21
  92. package/dist/websocket.d.ts +1 -2
  93. package/dist/websocket.js +78 -84
  94. package/package.json +19 -11
  95. package/dist/bitcoin/index.d.ts.map +0 -1
  96. package/dist/bitcoin/index.js.map +0 -1
  97. package/dist/bitcoin/parser/index.d.ts.map +0 -1
  98. package/dist/bitcoin/parser/index.js.map +0 -1
  99. package/dist/bitcoin/parser/utils.d.ts.map +0 -1
  100. package/dist/bitcoin/parser/utils.js.map +0 -1
  101. package/dist/bitcoin/types.d.ts.map +0 -1
  102. package/dist/bitcoin/types.js.map +0 -1
  103. package/dist/cosmos/index.d.ts.map +0 -1
  104. package/dist/cosmos/index.js.map +0 -1
  105. package/dist/cosmos/parser/index.d.ts.map +0 -1
  106. package/dist/cosmos/parser/index.js.map +0 -1
  107. package/dist/cosmos/parser/utils.d.ts.map +0 -1
  108. package/dist/cosmos/parser/utils.js.map +0 -1
  109. package/dist/cosmos/types.d.ts.map +0 -1
  110. package/dist/cosmos/types.js.map +0 -1
  111. package/dist/ethereum/index.d.ts.map +0 -1
  112. package/dist/ethereum/index.js.map +0 -1
  113. package/dist/ethereum/parser/abi/erc20.d.ts.map +0 -1
  114. package/dist/ethereum/parser/abi/erc20.js.map +0 -1
  115. package/dist/ethereum/parser/abi/foxyStaking.d.ts.map +0 -1
  116. package/dist/ethereum/parser/abi/foxyStaking.js.map +0 -1
  117. package/dist/ethereum/parser/abi/multiSig.d.ts.map +0 -1
  118. package/dist/ethereum/parser/abi/multiSig.js.map +0 -1
  119. package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts.map +0 -1
  120. package/dist/ethereum/parser/abi/shapeShiftRouter.js.map +0 -1
  121. package/dist/ethereum/parser/abi/thor.d.ts.map +0 -1
  122. package/dist/ethereum/parser/abi/thor.js.map +0 -1
  123. package/dist/ethereum/parser/abi/uniV2.d.ts.map +0 -1
  124. package/dist/ethereum/parser/abi/uniV2.js.map +0 -1
  125. package/dist/ethereum/parser/abi/weth.d.ts.map +0 -1
  126. package/dist/ethereum/parser/abi/weth.js.map +0 -1
  127. package/dist/ethereum/parser/abi/yearnVault.d.ts.map +0 -1
  128. package/dist/ethereum/parser/abi/yearnVault.js.map +0 -1
  129. package/dist/ethereum/parser/constants.d.ts.map +0 -1
  130. package/dist/ethereum/parser/constants.js.map +0 -1
  131. package/dist/ethereum/parser/foxy.d.ts.map +0 -1
  132. package/dist/ethereum/parser/foxy.js.map +0 -1
  133. package/dist/ethereum/parser/index.d.ts.map +0 -1
  134. package/dist/ethereum/parser/index.js.map +0 -1
  135. package/dist/ethereum/parser/thor.d.ts.map +0 -1
  136. package/dist/ethereum/parser/thor.js.map +0 -1
  137. package/dist/ethereum/parser/uniV2.d.ts.map +0 -1
  138. package/dist/ethereum/parser/uniV2.js.map +0 -1
  139. package/dist/ethereum/parser/utils.d.ts.map +0 -1
  140. package/dist/ethereum/parser/utils.js.map +0 -1
  141. package/dist/ethereum/parser/weth.d.ts.map +0 -1
  142. package/dist/ethereum/parser/weth.js.map +0 -1
  143. package/dist/ethereum/parser/yearn.d.ts.map +0 -1
  144. package/dist/ethereum/parser/yearn.js.map +0 -1
  145. package/dist/ethereum/parser/zrx.d.ts.map +0 -1
  146. package/dist/ethereum/parser/zrx.js.map +0 -1
  147. package/dist/ethereum/types.d.ts.map +0 -1
  148. package/dist/ethereum/types.js.map +0 -1
  149. package/dist/generated/bitcoin/api.d.ts.map +0 -1
  150. package/dist/generated/bitcoin/api.js.map +0 -1
  151. package/dist/generated/bitcoin/base.d.ts.map +0 -1
  152. package/dist/generated/bitcoin/base.js.map +0 -1
  153. package/dist/generated/bitcoin/common.d.ts.map +0 -1
  154. package/dist/generated/bitcoin/common.js.map +0 -1
  155. package/dist/generated/bitcoin/configuration.d.ts.map +0 -1
  156. package/dist/generated/bitcoin/configuration.js.map +0 -1
  157. package/dist/generated/bitcoin/index.d.ts.map +0 -1
  158. package/dist/generated/bitcoin/index.js.map +0 -1
  159. package/dist/generated/cosmos/api.d.ts.map +0 -1
  160. package/dist/generated/cosmos/api.js.map +0 -1
  161. package/dist/generated/cosmos/base.d.ts.map +0 -1
  162. package/dist/generated/cosmos/base.js.map +0 -1
  163. package/dist/generated/cosmos/common.d.ts.map +0 -1
  164. package/dist/generated/cosmos/common.js.map +0 -1
  165. package/dist/generated/cosmos/configuration.d.ts.map +0 -1
  166. package/dist/generated/cosmos/configuration.js.map +0 -1
  167. package/dist/generated/cosmos/index.d.ts.map +0 -1
  168. package/dist/generated/cosmos/index.js.map +0 -1
  169. package/dist/generated/ethereum/api.d.ts.map +0 -1
  170. package/dist/generated/ethereum/api.js.map +0 -1
  171. package/dist/generated/ethereum/base.d.ts.map +0 -1
  172. package/dist/generated/ethereum/base.js.map +0 -1
  173. package/dist/generated/ethereum/common.d.ts.map +0 -1
  174. package/dist/generated/ethereum/common.js.map +0 -1
  175. package/dist/generated/ethereum/configuration.d.ts.map +0 -1
  176. package/dist/generated/ethereum/configuration.js.map +0 -1
  177. package/dist/generated/ethereum/index.d.ts.map +0 -1
  178. package/dist/generated/ethereum/index.js.map +0 -1
  179. package/dist/index.d.ts.map +0 -1
  180. package/dist/index.js.map +0 -1
  181. package/dist/tsconfig.tsbuildinfo +0 -4986
  182. package/dist/types.d.ts.map +0 -1
  183. package/dist/types.js.map +0 -1
  184. package/dist/utils.d.ts.map +0 -1
  185. package/dist/utils.js.map +0 -1
  186. package/dist/websocket.d.ts.map +0 -1
  187. package/dist/websocket.js.map +0 -1
@@ -12,15 +12,6 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
15
  Object.defineProperty(exports, "__esModule", { value: true });
25
16
  exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
17
  const base_1 = require("./base");
@@ -44,15 +35,13 @@ exports.assertParamExists = assertParamExists;
44
35
  *
45
36
  * @export
46
37
  */
47
- const setApiKeyToObject = function (object, keyParamName, configuration) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- if (configuration && configuration.apiKey) {
50
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
51
- ? yield configuration.apiKey(keyParamName)
52
- : yield configuration.apiKey;
53
- object[keyParamName] = localVarApiKeyValue;
54
- }
55
- });
38
+ const setApiKeyToObject = async function (object, keyParamName, configuration) {
39
+ if (configuration && configuration.apiKey) {
40
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
41
+ ? await configuration.apiKey(keyParamName)
42
+ : await configuration.apiKey;
43
+ object[keyParamName] = localVarApiKeyValue;
44
+ }
56
45
  };
57
46
  exports.setApiKeyToObject = setApiKeyToObject;
58
47
  /**
@@ -69,30 +58,26 @@ exports.setBasicAuthToObject = setBasicAuthToObject;
69
58
  *
70
59
  * @export
71
60
  */
72
- const setBearerAuthToObject = function (object, configuration) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- if (configuration && configuration.accessToken) {
75
- const accessToken = typeof configuration.accessToken === 'function'
76
- ? yield configuration.accessToken()
77
- : yield configuration.accessToken;
78
- object["Authorization"] = "Bearer " + accessToken;
79
- }
80
- });
61
+ const setBearerAuthToObject = async function (object, configuration) {
62
+ if (configuration && configuration.accessToken) {
63
+ const accessToken = typeof configuration.accessToken === 'function'
64
+ ? await configuration.accessToken()
65
+ : await configuration.accessToken;
66
+ object["Authorization"] = "Bearer " + accessToken;
67
+ }
81
68
  };
82
69
  exports.setBearerAuthToObject = setBearerAuthToObject;
83
70
  /**
84
71
  *
85
72
  * @export
86
73
  */
87
- const setOAuthToObject = function (object, name, scopes, configuration) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- if (configuration && configuration.accessToken) {
90
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
91
- ? yield configuration.accessToken(name, scopes)
92
- : yield configuration.accessToken;
93
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
94
- }
95
- });
74
+ const setOAuthToObject = async function (object, name, scopes, configuration) {
75
+ if (configuration && configuration.accessToken) {
76
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
77
+ ? await configuration.accessToken(name, scopes)
78
+ : await configuration.accessToken;
79
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
80
+ }
96
81
  };
97
82
  exports.setOAuthToObject = setOAuthToObject;
98
83
  /**
@@ -145,9 +130,8 @@ exports.toPathString = toPathString;
145
130
  */
146
131
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
147
132
  return (axios = globalAxios, basePath = BASE_PATH) => {
148
- const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
133
+ const axiosRequestArgs = { ...axiosArgs.options, url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url };
149
134
  return axios.request(axiosRequestArgs);
150
135
  };
151
136
  };
152
137
  exports.createRequestFunction = createRequestFunction;
153
- //# sourceMappingURL=common.js.map
@@ -81,4 +81,3 @@ export declare class Configuration {
81
81
  */
82
82
  isJsonMime(mime: string): boolean;
83
83
  }
84
- //# sourceMappingURL=configuration.d.ts.map
@@ -40,4 +40,3 @@ class Configuration {
40
40
  }
41
41
  }
42
42
  exports.Configuration = Configuration;
43
- //# sourceMappingURL=configuration.js.map
@@ -11,4 +11,3 @@
11
11
  */
12
12
  export * from "./api";
13
13
  export * from "./configuration";
14
- //# sourceMappingURL=index.d.ts.map
@@ -14,7 +14,11 @@
14
14
  */
15
15
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
16
  if (k2 === undefined) k2 = k;
17
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
18
22
  }) : (function(o, m, k, k2) {
19
23
  if (k2 === undefined) k2 = k;
20
24
  o[k2] = m[k];
@@ -25,4 +29,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
29
  Object.defineProperty(exports, "__esModule", { value: true });
26
30
  __exportStar(require("./api"), exports);
27
31
  __exportStar(require("./configuration"), exports);
28
- //# sourceMappingURL=index.js.map
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
13
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from './base';
15
15
  /**
16
16
  * Contains info about a 400 Bad Request response
@@ -23,7 +23,7 @@ export interface BadRequestError {
23
23
  * @type {string}
24
24
  * @memberof BadRequestError
25
25
  */
26
- error: string;
26
+ 'error': string;
27
27
  }
28
28
  /**
29
29
  * Contains additional ethereum specific info
@@ -36,31 +36,31 @@ export interface EthereumAccount {
36
36
  * @type {string}
37
37
  * @memberof EthereumAccount
38
38
  */
39
- balance: string;
39
+ 'balance': string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof EthereumAccount
44
44
  */
45
- unconfirmedBalance: string;
45
+ 'unconfirmedBalance': string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof EthereumAccount
50
50
  */
51
- pubkey: string;
51
+ 'pubkey': string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
55
55
  * @memberof EthereumAccount
56
56
  */
57
- nonce: number;
57
+ 'nonce': number;
58
58
  /**
59
59
  *
60
60
  * @type {Array<TokenBalance>}
61
61
  * @memberof EthereumAccount
62
62
  */
63
- tokens: Array<TokenBalance>;
63
+ 'tokens': Array<TokenBalance>;
64
64
  }
65
65
  /**
66
66
  * Contains info about an Ethereum transaction
@@ -73,91 +73,91 @@ export interface EthereumTx {
73
73
  * @type {string}
74
74
  * @memberof EthereumTx
75
75
  */
76
- txid: string;
76
+ 'txid': string;
77
77
  /**
78
78
  *
79
79
  * @type {string}
80
80
  * @memberof EthereumTx
81
81
  */
82
- blockHash?: string;
82
+ 'blockHash'?: string;
83
83
  /**
84
84
  *
85
85
  * @type {number}
86
86
  * @memberof EthereumTx
87
87
  */
88
- blockHeight?: number;
88
+ 'blockHeight'?: number;
89
89
  /**
90
90
  *
91
91
  * @type {number}
92
92
  * @memberof EthereumTx
93
93
  */
94
- timestamp?: number;
94
+ 'timestamp'?: number;
95
95
  /**
96
96
  *
97
97
  * @type {string}
98
98
  * @memberof EthereumTx
99
99
  */
100
- from: string;
100
+ 'from': string;
101
101
  /**
102
102
  *
103
103
  * @type {string}
104
104
  * @memberof EthereumTx
105
105
  */
106
- to: string;
106
+ 'to': string;
107
107
  /**
108
108
  *
109
109
  * @type {number}
110
110
  * @memberof EthereumTx
111
111
  */
112
- confirmations: number;
112
+ 'confirmations': number;
113
113
  /**
114
114
  *
115
115
  * @type {string}
116
116
  * @memberof EthereumTx
117
117
  */
118
- value: string;
118
+ 'value': string;
119
119
  /**
120
120
  *
121
121
  * @type {string}
122
122
  * @memberof EthereumTx
123
123
  */
124
- fee: string;
124
+ 'fee': string;
125
125
  /**
126
126
  *
127
127
  * @type {string}
128
128
  * @memberof EthereumTx
129
129
  */
130
- gasLimit: string;
130
+ 'gasLimit': string;
131
131
  /**
132
132
  *
133
133
  * @type {string}
134
134
  * @memberof EthereumTx
135
135
  */
136
- gasUsed?: string;
136
+ 'gasUsed'?: string;
137
137
  /**
138
138
  *
139
139
  * @type {string}
140
140
  * @memberof EthereumTx
141
141
  */
142
- gasPrice: string;
142
+ 'gasPrice': string;
143
143
  /**
144
144
  *
145
145
  * @type {number}
146
146
  * @memberof EthereumTx
147
147
  */
148
- status: number;
148
+ 'status': number;
149
149
  /**
150
150
  *
151
151
  * @type {string}
152
152
  * @memberof EthereumTx
153
153
  */
154
- inputData?: string;
154
+ 'inputData'?: string;
155
155
  /**
156
156
  *
157
157
  * @type {Array<TokenTransfer>}
158
158
  * @memberof EthereumTx
159
159
  */
160
- tokenTransfers?: Array<TokenTransfer>;
160
+ 'tokenTransfers'?: Array<TokenTransfer>;
161
161
  }
162
162
  /**
163
163
  * Contains info about Ethereum transaction history
@@ -170,19 +170,19 @@ export interface EthereumTxHistory {
170
170
  * @type {string}
171
171
  * @memberof EthereumTxHistory
172
172
  */
173
- cursor?: string;
173
+ 'cursor'?: string;
174
174
  /**
175
175
  *
176
176
  * @type {string}
177
177
  * @memberof EthereumTxHistory
178
178
  */
179
- pubkey: string;
179
+ 'pubkey': string;
180
180
  /**
181
181
  *
182
182
  * @type {Array<EthereumTx>}
183
183
  * @memberof EthereumTxHistory
184
184
  */
185
- txs: Array<EthereumTx>;
185
+ 'txs': Array<EthereumTx>;
186
186
  }
187
187
  /**
188
188
  * Contains info about current recommended fees to use in a transaction
@@ -195,19 +195,19 @@ export interface GasFees {
195
195
  * @type {string}
196
196
  * @memberof GasFees
197
197
  */
198
- gasPrice: string;
198
+ 'gasPrice': string;
199
199
  /**
200
200
  *
201
201
  * @type {string}
202
202
  * @memberof GasFees
203
203
  */
204
- maxFeePerGas: string;
204
+ 'maxFeePerGas': string;
205
205
  /**
206
206
  *
207
207
  * @type {string}
208
208
  * @memberof GasFees
209
209
  */
210
- maxPriorityFeePerGas: string;
210
+ 'maxPriorityFeePerGas': string;
211
211
  }
212
212
  /**
213
213
  * Contains info about the running coinstack
@@ -220,7 +220,7 @@ export interface Info {
220
220
  * @type {string}
221
221
  * @memberof Info
222
222
  */
223
- network: string;
223
+ 'network': string;
224
224
  }
225
225
  /**
226
226
  * Contains info about a 500 Internal Server Error response
@@ -233,7 +233,7 @@ export interface InternalServerError {
233
233
  * @type {string}
234
234
  * @memberof InternalServerError
235
235
  */
236
- message: string;
236
+ 'message': string;
237
237
  }
238
238
  /**
239
239
  * Contains the serialized raw transaction hex
@@ -246,7 +246,7 @@ export interface SendTxBody {
246
246
  * @type {string}
247
247
  * @memberof SendTxBody
248
248
  */
249
- hex: string;
249
+ 'hex': string;
250
250
  }
251
251
  /**
252
252
  * Contains info about a token including balance for an address
@@ -259,37 +259,37 @@ export interface TokenBalance {
259
259
  * @type {string}
260
260
  * @memberof TokenBalance
261
261
  */
262
- contract: string;
262
+ 'contract': string;
263
263
  /**
264
264
  *
265
265
  * @type {number}
266
266
  * @memberof TokenBalance
267
267
  */
268
- decimals: number;
268
+ 'decimals': number;
269
269
  /**
270
270
  *
271
271
  * @type {string}
272
272
  * @memberof TokenBalance
273
273
  */
274
- name: string;
274
+ 'name': string;
275
275
  /**
276
276
  *
277
277
  * @type {string}
278
278
  * @memberof TokenBalance
279
279
  */
280
- symbol: string;
280
+ 'symbol': string;
281
281
  /**
282
282
  *
283
283
  * @type {string}
284
284
  * @memberof TokenBalance
285
285
  */
286
- type: string;
286
+ 'type': string;
287
287
  /**
288
288
  *
289
289
  * @type {string}
290
290
  * @memberof TokenBalance
291
291
  */
292
- balance: string;
292
+ 'balance': string;
293
293
  }
294
294
  /**
295
295
  * Contains info about a token including transfer details
@@ -302,49 +302,49 @@ export interface TokenTransfer {
302
302
  * @type {string}
303
303
  * @memberof TokenTransfer
304
304
  */
305
- contract: string;
305
+ 'contract': string;
306
306
  /**
307
307
  *
308
308
  * @type {number}
309
309
  * @memberof TokenTransfer
310
310
  */
311
- decimals: number;
311
+ 'decimals': number;
312
312
  /**
313
313
  *
314
314
  * @type {string}
315
315
  * @memberof TokenTransfer
316
316
  */
317
- name: string;
317
+ 'name': string;
318
318
  /**
319
319
  *
320
320
  * @type {string}
321
321
  * @memberof TokenTransfer
322
322
  */
323
- symbol: string;
323
+ 'symbol': string;
324
324
  /**
325
325
  *
326
326
  * @type {string}
327
327
  * @memberof TokenTransfer
328
328
  */
329
- type: string;
329
+ 'type': string;
330
330
  /**
331
331
  *
332
332
  * @type {string}
333
333
  * @memberof TokenTransfer
334
334
  */
335
- from: string;
335
+ 'from': string;
336
336
  /**
337
337
  *
338
338
  * @type {string}
339
339
  * @memberof TokenTransfer
340
340
  */
341
- to: string;
341
+ 'to': string;
342
342
  /**
343
343
  *
344
344
  * @type {string}
345
345
  * @memberof TokenTransfer
346
346
  */
347
- value: string;
347
+ 'value': string;
348
348
  }
349
349
  /**
350
350
  * Contains info about a transaction
@@ -357,25 +357,25 @@ export interface Tx {
357
357
  * @type {string}
358
358
  * @memberof Tx
359
359
  */
360
- txid: string;
360
+ 'txid': string;
361
361
  /**
362
362
  *
363
363
  * @type {string}
364
364
  * @memberof Tx
365
365
  */
366
- blockHash?: string;
366
+ 'blockHash'?: string;
367
367
  /**
368
368
  *
369
369
  * @type {number}
370
370
  * @memberof Tx
371
371
  */
372
- blockHeight?: number;
372
+ 'blockHeight'?: number;
373
373
  /**
374
374
  *
375
375
  * @type {number}
376
376
  * @memberof Tx
377
377
  */
378
- timestamp?: number;
378
+ 'timestamp'?: number;
379
379
  }
380
380
  /**
381
381
  * Contains info about a 422 Validation Error response
@@ -388,23 +388,20 @@ export interface ValidationError {
388
388
  * @type {string}
389
389
  * @memberof ValidationError
390
390
  */
391
- message: ValidationErrorMessageEnum;
391
+ 'message': ValidationErrorMessageEnum;
392
392
  /**
393
393
  *
394
394
  * @type {{ [key: string]: any; }}
395
395
  * @memberof ValidationError
396
396
  */
397
- details: {
397
+ 'details': {
398
398
  [key: string]: any;
399
399
  };
400
400
  }
401
- /**
402
- * @export
403
- * @enum {string}
404
- */
405
- export declare enum ValidationErrorMessageEnum {
406
- ValidationFailed = "Validation failed"
407
- }
401
+ export declare const ValidationErrorMessageEnum: {
402
+ readonly ValidationFailed: "Validation failed";
403
+ };
404
+ export declare type ValidationErrorMessageEnum = typeof ValidationErrorMessageEnum[keyof typeof ValidationErrorMessageEnum];
408
405
  /**
409
406
  * V1Api - axios parameter creator
410
407
  * @export
@@ -419,26 +416,26 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
419
416
  * @param {*} [options] Override http request option.
420
417
  * @throws {RequiredError}
421
418
  */
422
- estimateGas: (data: string, from: string, to: string, value: string, options?: any) => Promise<RequestArgs>;
419
+ estimateGas: (data: string, from: string, to: string, value: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
423
420
  /**
424
421
  * Get account details by address
425
422
  * @param {string} pubkey account address
426
423
  * @param {*} [options] Override http request option.
427
424
  * @throws {RequiredError}
428
425
  */
429
- getAccount: (pubkey: string, options?: any) => Promise<RequestArgs>;
426
+ getAccount: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
430
427
  /**
431
428
  * Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
432
429
  * @param {*} [options] Override http request option.
433
430
  * @throws {RequiredError}
434
431
  */
435
- getGasFees: (options?: any) => Promise<RequestArgs>;
432
+ getGasFees: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
436
433
  /**
437
434
  * Get information about the running coinstack
438
435
  * @param {*} [options] Override http request option.
439
436
  * @throws {RequiredError}
440
437
  */
441
- getInfo: (options?: any) => Promise<RequestArgs>;
438
+ getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
442
439
  /**
443
440
  * Get transaction history by address
444
441
  * @param {string} pubkey account address
@@ -447,14 +444,14 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
447
444
  * @param {*} [options] Override http request option.
448
445
  * @throws {RequiredError}
449
446
  */
450
- getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any) => Promise<RequestArgs>;
447
+ getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
451
448
  /**
452
449
  * Sends raw transaction to be broadcast to the node.
453
450
  * @param {SendTxBody} sendTxBody serialized raw transaction hex
454
451
  * @param {*} [options] Override http request option.
455
452
  * @throws {RequiredError}
456
453
  */
457
- sendTx: (sendTxBody: SendTxBody, options?: any) => Promise<RequestArgs>;
454
+ sendTx: (sendTxBody: SendTxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
458
455
  };
459
456
  /**
460
457
  * V1Api - functional programming interface
@@ -470,26 +467,26 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
470
467
  * @param {*} [options] Override http request option.
471
468
  * @throws {RequiredError}
472
469
  */
473
- estimateGas(data: string, from: string, to: string, value: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
470
+ estimateGas(data: string, from: string, to: string, value: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
474
471
  /**
475
472
  * Get account details by address
476
473
  * @param {string} pubkey account address
477
474
  * @param {*} [options] Override http request option.
478
475
  * @throws {RequiredError}
479
476
  */
480
- getAccount(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumAccount>>;
477
+ getAccount(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumAccount>>;
481
478
  /**
482
479
  * Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
483
480
  * @param {*} [options] Override http request option.
484
481
  * @throws {RequiredError}
485
482
  */
486
- getGasFees(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GasFees>>;
483
+ getGasFees(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GasFees>>;
487
484
  /**
488
485
  * Get information about the running coinstack
489
486
  * @param {*} [options] Override http request option.
490
487
  * @throws {RequiredError}
491
488
  */
492
- getInfo(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
489
+ getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
493
490
  /**
494
491
  * Get transaction history by address
495
492
  * @param {string} pubkey account address
@@ -498,14 +495,14 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
498
495
  * @param {*} [options] Override http request option.
499
496
  * @throws {RequiredError}
500
497
  */
501
- getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumTxHistory>>;
498
+ getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumTxHistory>>;
502
499
  /**
503
500
  * Sends raw transaction to be broadcast to the node.
504
501
  * @param {SendTxBody} sendTxBody serialized raw transaction hex
505
502
  * @param {*} [options] Override http request option.
506
503
  * @throws {RequiredError}
507
504
  */
508
- sendTx(sendTxBody: SendTxBody, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
505
+ sendTx(sendTxBody: SendTxBody, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<string>>;
509
506
  };
510
507
  /**
511
508
  * V1Api - factory interface
@@ -654,7 +651,7 @@ export declare class V1Api extends BaseAPI {
654
651
  * @throws {RequiredError}
655
652
  * @memberof V1Api
656
653
  */
657
- estimateGas(requestParameters: V1ApiEstimateGasRequest, options?: any): Promise<import("axios").AxiosResponse<string, any>>;
654
+ estimateGas(requestParameters: V1ApiEstimateGasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
658
655
  /**
659
656
  * Get account details by address
660
657
  * @param {V1ApiGetAccountRequest} requestParameters Request parameters.
@@ -662,21 +659,21 @@ export declare class V1Api extends BaseAPI {
662
659
  * @throws {RequiredError}
663
660
  * @memberof V1Api
664
661
  */
665
- getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<EthereumAccount, any>>;
662
+ getAccount(requestParameters: V1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EthereumAccount, any>>;
666
663
  /**
667
664
  * Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
668
665
  * @param {*} [options] Override http request option.
669
666
  * @throws {RequiredError}
670
667
  * @memberof V1Api
671
668
  */
672
- getGasFees(options?: any): Promise<import("axios").AxiosResponse<GasFees, any>>;
669
+ getGasFees(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GasFees, any>>;
673
670
  /**
674
671
  * Get information about the running coinstack
675
672
  * @param {*} [options] Override http request option.
676
673
  * @throws {RequiredError}
677
674
  * @memberof V1Api
678
675
  */
679
- getInfo(options?: any): Promise<import("axios").AxiosResponse<Info, any>>;
676
+ getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Info, any>>;
680
677
  /**
681
678
  * Get transaction history by address
682
679
  * @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
@@ -684,7 +681,7 @@ export declare class V1Api extends BaseAPI {
684
681
  * @throws {RequiredError}
685
682
  * @memberof V1Api
686
683
  */
687
- getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: any): Promise<import("axios").AxiosResponse<EthereumTxHistory, any>>;
684
+ getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EthereumTxHistory, any>>;
688
685
  /**
689
686
  * Sends raw transaction to be broadcast to the node.
690
687
  * @param {V1ApiSendTxRequest} requestParameters Request parameters.
@@ -692,6 +689,5 @@ export declare class V1Api extends BaseAPI {
692
689
  * @throws {RequiredError}
693
690
  * @memberof V1Api
694
691
  */
695
- sendTx(requestParameters: V1ApiSendTxRequest, options?: any): Promise<import("axios").AxiosResponse<string, any>>;
692
+ sendTx(requestParameters: V1ApiSendTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
696
693
  }
697
- //# sourceMappingURL=api.d.ts.map