@shapeshiftoss/unchained-client 6.10.0 → 6.12.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.
- package/README.md +3 -1
- package/dist/bitcoin/index.d.ts +0 -1
- package/dist/bitcoin/index.js +5 -2
- package/dist/bitcoin/parser/index.d.ts +0 -1
- package/dist/bitcoin/parser/index.js +43 -54
- package/dist/bitcoin/parser/utils.d.ts +0 -1
- package/dist/bitcoin/parser/utils.js +0 -1
- package/dist/bitcoin/types.d.ts +0 -1
- package/dist/bitcoin/types.js +0 -1
- package/dist/cosmos/index.d.ts +0 -1
- package/dist/cosmos/index.js +5 -2
- package/dist/cosmos/parser/index.d.ts +4 -5
- package/dist/cosmos/parser/index.js +55 -50
- package/dist/cosmos/parser/utils.d.ts +3 -4
- package/dist/cosmos/parser/utils.js +28 -25
- package/dist/cosmos/types.d.ts +4 -1
- package/dist/cosmos/types.js +0 -1
- package/dist/ethereum/index.d.ts +0 -1
- package/dist/ethereum/index.js +5 -2
- package/dist/ethereum/parser/abi/erc20.d.ts +0 -1
- package/dist/ethereum/parser/abi/erc20.js +69 -70
- package/dist/ethereum/parser/abi/foxyStaking.d.ts +0 -1
- package/dist/ethereum/parser/abi/foxyStaking.js +161 -162
- package/dist/ethereum/parser/abi/multiSig.d.ts +0 -1
- package/dist/ethereum/parser/abi/multiSig.js +79 -80
- package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts +0 -1
- package/dist/ethereum/parser/abi/shapeShiftRouter.js +119 -120
- package/dist/ethereum/parser/abi/thor.d.ts +0 -1
- package/dist/ethereum/parser/abi/thor.js +28 -29
- package/dist/ethereum/parser/abi/uniV2.d.ts +0 -1
- package/dist/ethereum/parser/abi/uniV2.js +55 -56
- package/dist/ethereum/parser/abi/weth.d.ts +0 -1
- package/dist/ethereum/parser/abi/weth.js +66 -67
- package/dist/ethereum/parser/abi/yearnVault.d.ts +0 -1
- package/dist/ethereum/parser/abi/yearnVault.js +95 -96
- package/dist/ethereum/parser/constants.d.ts +0 -1
- package/dist/ethereum/parser/constants.js +0 -1
- package/dist/ethereum/parser/foxy.d.ts +8 -9
- package/dist/ethereum/parser/foxy.js +27 -59
- package/dist/ethereum/parser/index.d.ts +0 -1
- package/dist/ethereum/parser/index.js +52 -59
- package/dist/ethereum/parser/thor.d.ts +6 -5
- package/dist/ethereum/parser/thor.js +33 -49
- package/dist/ethereum/parser/uniV2.d.ts +5 -5
- package/dist/ethereum/parser/uniV2.js +75 -82
- package/dist/ethereum/parser/utils.d.ts +0 -1
- package/dist/ethereum/parser/utils.js +2 -3
- package/dist/ethereum/parser/weth.d.ts +6 -5
- package/dist/ethereum/parser/weth.js +76 -99
- package/dist/ethereum/parser/yearn.d.ts +11 -12
- package/dist/ethereum/parser/yearn.js +51 -62
- package/dist/ethereum/parser/zrx.d.ts +1 -2
- package/dist/ethereum/parser/zrx.js +18 -30
- package/dist/ethereum/types.d.ts +0 -1
- package/dist/ethereum/types.js +0 -1
- package/dist/generated/bitcoin/api.d.ts +117 -121
- package/dist/generated/bitcoin/api.js +82 -111
- package/dist/generated/bitcoin/base.d.ts +3 -4
- package/dist/generated/bitcoin/base.js +2 -3
- package/dist/generated/bitcoin/common.d.ts +3 -4
- package/dist/generated/bitcoin/common.js +23 -39
- package/dist/generated/bitcoin/configuration.d.ts +1 -2
- package/dist/generated/bitcoin/configuration.js +1 -2
- package/dist/generated/bitcoin/index.d.ts +1 -2
- package/dist/generated/bitcoin/index.js +6 -3
- package/dist/generated/cosmos/api.d.ts +143 -144
- package/dist/generated/cosmos/api.js +89 -115
- package/dist/generated/cosmos/base.d.ts +2 -3
- package/dist/generated/cosmos/base.js +0 -1
- package/dist/generated/cosmos/common.d.ts +2 -3
- package/dist/generated/cosmos/common.js +22 -38
- package/dist/generated/cosmos/configuration.d.ts +0 -1
- package/dist/generated/cosmos/configuration.js +0 -1
- package/dist/generated/cosmos/index.d.ts +0 -1
- package/dist/generated/cosmos/index.js +5 -2
- package/dist/generated/ethereum/api.d.ts +74 -78
- package/dist/generated/ethereum/api.js +74 -101
- package/dist/generated/ethereum/base.d.ts +3 -4
- package/dist/generated/ethereum/base.js +2 -3
- package/dist/generated/ethereum/common.d.ts +3 -4
- package/dist/generated/ethereum/common.js +23 -39
- package/dist/generated/ethereum/configuration.d.ts +1 -2
- package/dist/generated/ethereum/configuration.js +1 -2
- package/dist/generated/ethereum/index.d.ts +1 -2
- package/dist/generated/ethereum/index.js +6 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5 -2
- package/dist/types.d.ts +12 -2
- package/dist/types.js +0 -1
- package/dist/utils.d.ts +2 -3
- package/dist/utils.js +23 -23
- package/dist/websocket.d.ts +1 -2
- package/dist/websocket.js +78 -80
- package/package.json +21 -13
- package/dist/bitcoin/index.d.ts.map +0 -1
- package/dist/bitcoin/index.js.map +0 -1
- package/dist/bitcoin/parser/index.d.ts.map +0 -1
- package/dist/bitcoin/parser/index.js.map +0 -1
- package/dist/bitcoin/parser/utils.d.ts.map +0 -1
- package/dist/bitcoin/parser/utils.js.map +0 -1
- package/dist/bitcoin/types.d.ts.map +0 -1
- package/dist/bitcoin/types.js.map +0 -1
- package/dist/cosmos/index.d.ts.map +0 -1
- package/dist/cosmos/index.js.map +0 -1
- package/dist/cosmos/parser/index.d.ts.map +0 -1
- package/dist/cosmos/parser/index.js.map +0 -1
- package/dist/cosmos/parser/utils.d.ts.map +0 -1
- package/dist/cosmos/parser/utils.js.map +0 -1
- package/dist/cosmos/types.d.ts.map +0 -1
- package/dist/cosmos/types.js.map +0 -1
- package/dist/ethereum/index.d.ts.map +0 -1
- package/dist/ethereum/index.js.map +0 -1
- package/dist/ethereum/parser/abi/erc20.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/erc20.js.map +0 -1
- package/dist/ethereum/parser/abi/foxyStaking.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/foxyStaking.js.map +0 -1
- package/dist/ethereum/parser/abi/multiSig.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/multiSig.js.map +0 -1
- package/dist/ethereum/parser/abi/shapeShiftRouter.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/shapeShiftRouter.js.map +0 -1
- package/dist/ethereum/parser/abi/thor.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/thor.js.map +0 -1
- package/dist/ethereum/parser/abi/uniV2.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/uniV2.js.map +0 -1
- package/dist/ethereum/parser/abi/weth.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/weth.js.map +0 -1
- package/dist/ethereum/parser/abi/yearnVault.d.ts.map +0 -1
- package/dist/ethereum/parser/abi/yearnVault.js.map +0 -1
- package/dist/ethereum/parser/constants.d.ts.map +0 -1
- package/dist/ethereum/parser/constants.js.map +0 -1
- package/dist/ethereum/parser/foxy.d.ts.map +0 -1
- package/dist/ethereum/parser/foxy.js.map +0 -1
- package/dist/ethereum/parser/index.d.ts.map +0 -1
- package/dist/ethereum/parser/index.js.map +0 -1
- package/dist/ethereum/parser/thor.d.ts.map +0 -1
- package/dist/ethereum/parser/thor.js.map +0 -1
- package/dist/ethereum/parser/uniV2.d.ts.map +0 -1
- package/dist/ethereum/parser/uniV2.js.map +0 -1
- package/dist/ethereum/parser/utils.d.ts.map +0 -1
- package/dist/ethereum/parser/utils.js.map +0 -1
- package/dist/ethereum/parser/weth.d.ts.map +0 -1
- package/dist/ethereum/parser/weth.js.map +0 -1
- package/dist/ethereum/parser/yearn.d.ts.map +0 -1
- package/dist/ethereum/parser/yearn.js.map +0 -1
- package/dist/ethereum/parser/zrx.d.ts.map +0 -1
- package/dist/ethereum/parser/zrx.js.map +0 -1
- package/dist/ethereum/types.d.ts.map +0 -1
- package/dist/ethereum/types.js.map +0 -1
- package/dist/generated/bitcoin/api.d.ts.map +0 -1
- package/dist/generated/bitcoin/api.js.map +0 -1
- package/dist/generated/bitcoin/base.d.ts.map +0 -1
- package/dist/generated/bitcoin/base.js.map +0 -1
- package/dist/generated/bitcoin/common.d.ts.map +0 -1
- package/dist/generated/bitcoin/common.js.map +0 -1
- package/dist/generated/bitcoin/configuration.d.ts.map +0 -1
- package/dist/generated/bitcoin/configuration.js.map +0 -1
- package/dist/generated/bitcoin/index.d.ts.map +0 -1
- package/dist/generated/bitcoin/index.js.map +0 -1
- package/dist/generated/cosmos/api.d.ts.map +0 -1
- package/dist/generated/cosmos/api.js.map +0 -1
- package/dist/generated/cosmos/base.d.ts.map +0 -1
- package/dist/generated/cosmos/base.js.map +0 -1
- package/dist/generated/cosmos/common.d.ts.map +0 -1
- package/dist/generated/cosmos/common.js.map +0 -1
- package/dist/generated/cosmos/configuration.d.ts.map +0 -1
- package/dist/generated/cosmos/configuration.js.map +0 -1
- package/dist/generated/cosmos/index.d.ts.map +0 -1
- package/dist/generated/cosmos/index.js.map +0 -1
- package/dist/generated/ethereum/api.d.ts.map +0 -1
- package/dist/generated/ethereum/api.js.map +0 -1
- package/dist/generated/ethereum/base.d.ts.map +0 -1
- package/dist/generated/ethereum/base.js.map +0 -1
- package/dist/generated/ethereum/common.d.ts.map +0 -1
- package/dist/generated/ethereum/common.js.map +0 -1
- package/dist/generated/ethereum/configuration.d.ts.map +0 -1
- package/dist/generated/ethereum/configuration.js.map +0 -1
- package/dist/generated/ethereum/index.d.ts.map +0 -1
- package/dist/generated/ethereum/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -4970
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/websocket.d.ts.map +0 -1
- 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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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 =
|
|
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
|
|
@@ -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.
|
|
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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @shapeshiftoss/ethereum-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: 6.
|
|
5
|
+
* The version of the OpenAPI document: 6.11.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
-
|
|
403
|
-
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
692
|
+
sendTx(requestParameters: V1ApiSendTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
696
693
|
}
|
|
697
|
-
//# sourceMappingURL=api.d.ts.map
|