@shapeshiftoss/unchained-client 4.0.0 → 5.1.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.
- package/dist/bitcoin/websocket.d.ts.map +1 -1
- package/dist/bitcoin/websocket.js +5 -3
- package/dist/bitcoin/websocket.js.map +1 -1
- package/dist/cosmos/index.d.ts +2 -0
- package/dist/cosmos/index.d.ts.map +1 -0
- package/dist/cosmos/index.js +24 -0
- package/dist/cosmos/index.js.map +1 -0
- package/dist/ethereum/websocket.d.ts.map +1 -1
- package/dist/ethereum/websocket.js +5 -3
- package/dist/ethereum/websocket.js.map +1 -1
- package/dist/generated/bitcoin/api.d.ts +66 -22
- package/dist/generated/bitcoin/api.d.ts.map +1 -1
- package/dist/generated/bitcoin/api.js +53 -1
- package/dist/generated/bitcoin/api.js.map +1 -1
- package/dist/generated/bitcoin/base.d.ts +1 -1
- package/dist/generated/bitcoin/base.js +1 -1
- package/dist/generated/bitcoin/common.d.ts +1 -1
- package/dist/generated/bitcoin/common.js +1 -1
- package/dist/generated/bitcoin/configuration.d.ts +1 -1
- package/dist/generated/bitcoin/configuration.js +1 -1
- package/dist/generated/bitcoin/index.d.ts +1 -1
- package/dist/generated/bitcoin/index.js +1 -1
- package/dist/generated/cosmos/api.d.ts +939 -0
- package/dist/generated/cosmos/api.d.ts.map +1 -0
- package/dist/generated/cosmos/api.js +423 -0
- package/dist/generated/cosmos/api.js.map +1 -0
- package/dist/generated/cosmos/base.d.ts +56 -0
- package/dist/generated/cosmos/base.d.ts.map +1 -0
- package/dist/generated/cosmos/base.js +65 -0
- package/dist/generated/cosmos/base.js.map +1 -0
- package/dist/generated/cosmos/common.d.ts +66 -0
- package/dist/generated/cosmos/common.d.ts.map +1 -0
- package/dist/generated/cosmos/common.js +153 -0
- package/dist/generated/cosmos/common.js.map +1 -0
- package/dist/generated/cosmos/configuration.d.ts +84 -0
- package/dist/generated/cosmos/configuration.d.ts.map +1 -0
- package/dist/generated/cosmos/configuration.js +43 -0
- package/dist/generated/cosmos/configuration.js.map +1 -0
- package/dist/generated/cosmos/index.d.ts +14 -0
- package/dist/generated/cosmos/index.d.ts.map +1 -0
- package/dist/generated/cosmos/index.js +28 -0
- package/dist/generated/cosmos/index.js.map +1 -0
- package/dist/generated/ethereum/api.d.ts +78 -9
- package/dist/generated/ethereum/api.d.ts.map +1 -1
- package/dist/generated/ethereum/api.js +65 -13
- package/dist/generated/ethereum/api.js.map +1 -1
- package/dist/generated/ethereum/base.d.ts +1 -1
- package/dist/generated/ethereum/base.js +1 -1
- package/dist/generated/ethereum/common.d.ts +1 -1
- package/dist/generated/ethereum/common.js +1 -1
- package/dist/generated/ethereum/configuration.d.ts +1 -1
- package/dist/generated/ethereum/configuration.js +1 -1
- package/dist/generated/ethereum/index.d.ts +1 -1
- package/dist/generated/ethereum/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1334 -31
- package/package.json +5 -5
- package/LICENSE +0 -21
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cosmos Unchained API
|
|
6
|
+
* Provides access to cosmos chain data
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 5.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
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
|
+
const base_1 = require("./base");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
38
|
+
if (paramValue === null || paramValue === undefined) {
|
|
39
|
+
throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.assertParamExists = assertParamExists;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
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
|
+
});
|
|
56
|
+
};
|
|
57
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
const setBasicAuthToObject = function (object, configuration) {
|
|
63
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
64
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
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
|
+
});
|
|
81
|
+
};
|
|
82
|
+
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
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
|
+
});
|
|
96
|
+
};
|
|
97
|
+
exports.setOAuthToObject = setOAuthToObject;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
const setSearchParams = function (url, ...objects) {
|
|
103
|
+
const searchParams = new URLSearchParams(url.search);
|
|
104
|
+
for (const object of objects) {
|
|
105
|
+
for (const key in object) {
|
|
106
|
+
if (Array.isArray(object[key])) {
|
|
107
|
+
searchParams.delete(key);
|
|
108
|
+
for (const item of object[key]) {
|
|
109
|
+
searchParams.append(key, item);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
searchParams.set(key, object[key]);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
url.search = searchParams.toString();
|
|
118
|
+
};
|
|
119
|
+
exports.setSearchParams = setSearchParams;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @export
|
|
123
|
+
*/
|
|
124
|
+
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
125
|
+
const nonString = typeof value !== 'string';
|
|
126
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
127
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
128
|
+
: nonString;
|
|
129
|
+
return needsSerialization
|
|
130
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
131
|
+
: (value || "");
|
|
132
|
+
};
|
|
133
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
const toPathString = function (url) {
|
|
139
|
+
return url.pathname + url.search + url.hash;
|
|
140
|
+
};
|
|
141
|
+
exports.toPathString = toPathString;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @export
|
|
145
|
+
*/
|
|
146
|
+
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
147
|
+
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 });
|
|
149
|
+
return axios.request(axiosRequestArgs);
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
exports.createRequestFunction = createRequestFunction;
|
|
153
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/generated/cosmos/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;AAIH,iCAAoD;AAGpD;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,MAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;QAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE;YACvC,MAAM,mBAAmB,GAAG,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU;gBAClE,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC;gBAC1C,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC;YACjC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;SAC9C;IACL,CAAC;CAAA,CAAA;AAPY,QAAA,iBAAiB,qBAO7B;AAED;;;GAGG;AACI,MAAM,oBAAoB,GAAG,UAAU,MAAW,EAAE,aAA6B;IACpF,IAAI,aAAa,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAE;QACrE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,EAAE,a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AiB,EAAE,aAA6B;IAC/I,OAAO,CAAC,QAAuB,WAAW,EAAE,WAAmB,SAAS,EAAE,EAAE;QACxE,MAAM,gBAAgB,mCAAO,SAAS,CAAC,OAAO,KAAE,GAAG,EAAE,CAAC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,KAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,GAAC,CAAC;QAC5G,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC,CAAC;AACN,CAAC,CAAA;AALY,QAAA,qBAAqB,yBAKjC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cosmos Unchained API
|
|
3
|
+
* Provides access to cosmos chain data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
constructor(param?: ConfigurationParameters);
|
|
72
|
+
/**
|
|
73
|
+
* Check if the given MIME is a JSON MIME.
|
|
74
|
+
* JSON MIME examples:
|
|
75
|
+
* application/json
|
|
76
|
+
* application/json; charset=UTF8
|
|
77
|
+
* APPLICATION/JSON
|
|
78
|
+
* application/vnd.company+json
|
|
79
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
80
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
isJsonMime(mime: string): boolean;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/generated/cosmos/configuration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,MAAM,WAAW,uBAAuB;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;CAChC;AAED,qBAAa,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACrG;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAClJ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,CAAC;gBAEjB,KAAK,GAAE,uBAA4B;IAU/C;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAI3C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cosmos Unchained API
|
|
6
|
+
* Provides access to cosmos chain data
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 5.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Configuration = void 0;
|
|
17
|
+
class Configuration {
|
|
18
|
+
constructor(param = {}) {
|
|
19
|
+
this.apiKey = param.apiKey;
|
|
20
|
+
this.username = param.username;
|
|
21
|
+
this.password = param.password;
|
|
22
|
+
this.accessToken = param.accessToken;
|
|
23
|
+
this.basePath = param.basePath;
|
|
24
|
+
this.baseOptions = param.baseOptions;
|
|
25
|
+
this.formDataCtor = param.formDataCtor;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if the given MIME is a JSON MIME.
|
|
29
|
+
* JSON MIME examples:
|
|
30
|
+
* application/json
|
|
31
|
+
* application/json; charset=UTF8
|
|
32
|
+
* APPLICATION/JSON
|
|
33
|
+
* application/vnd.company+json
|
|
34
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
35
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
36
|
+
*/
|
|
37
|
+
isJsonMime(mime) {
|
|
38
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
39
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Configuration = Configuration;
|
|
43
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/generated/cosmos/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAaH,MAAa,aAAa;IAmDtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AA3ED,sCA2EC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cosmos Unchained API
|
|
3
|
+
* Provides access to cosmos chain data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/cosmos/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cosmos Unchained API
|
|
6
|
+
* Provides access to cosmos chain data
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 5.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
__exportStar(require("./api"), exports);
|
|
27
|
+
__exportStar(require("./configuration"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/cosmos/index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;AAGH,wCAAsB;AACtB,kDAAgC"}
|
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 5.1.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,6 +37,12 @@ export interface EthereumAccount {
|
|
|
37
37
|
* @memberof EthereumAccount
|
|
38
38
|
*/
|
|
39
39
|
balance: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof EthereumAccount
|
|
44
|
+
*/
|
|
45
|
+
unconfirmedBalance: string;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {string}
|
|
@@ -56,6 +62,44 @@ export interface EthereumAccount {
|
|
|
56
62
|
*/
|
|
57
63
|
tokens: Array<Token>;
|
|
58
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Contains info about current recommended fees to use in a transaction
|
|
67
|
+
* @export
|
|
68
|
+
* @interface GasFees
|
|
69
|
+
*/
|
|
70
|
+
export interface GasFees {
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof GasFees
|
|
75
|
+
*/
|
|
76
|
+
gasPrice: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof GasFees
|
|
81
|
+
*/
|
|
82
|
+
maxFeePerGas: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof GasFees
|
|
87
|
+
*/
|
|
88
|
+
maxPriorityFeePerGas: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Contains info about the running coinstack
|
|
92
|
+
* @export
|
|
93
|
+
* @interface Info
|
|
94
|
+
*/
|
|
95
|
+
export interface Info {
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof Info
|
|
100
|
+
*/
|
|
101
|
+
network: string;
|
|
102
|
+
}
|
|
59
103
|
/**
|
|
60
104
|
* Contains info about a 500 Internal Server Error response
|
|
61
105
|
* @export
|
|
@@ -274,11 +318,17 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
|
|
|
274
318
|
*/
|
|
275
319
|
getAccount: (pubkey: string, options?: any) => Promise<RequestArgs>;
|
|
276
320
|
/**
|
|
277
|
-
* Get the current gas
|
|
321
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
278
322
|
* @param {*} [options] Override http request option.
|
|
279
323
|
* @throws {RequiredError}
|
|
280
324
|
*/
|
|
281
|
-
|
|
325
|
+
getGasFees: (options?: any) => Promise<RequestArgs>;
|
|
326
|
+
/**
|
|
327
|
+
* Get information about the running coinstack
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
getInfo: (options?: any) => Promise<RequestArgs>;
|
|
282
332
|
/**
|
|
283
333
|
* Get transaction history by address
|
|
284
334
|
* @param {string} pubkey account address
|
|
@@ -320,11 +370,17 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
|
|
|
320
370
|
*/
|
|
321
371
|
getAccount(pubkey: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<EthereumAccount>>;
|
|
322
372
|
/**
|
|
323
|
-
* Get the current gas
|
|
373
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
324
374
|
* @param {*} [options] Override http request option.
|
|
325
375
|
* @throws {RequiredError}
|
|
326
376
|
*/
|
|
327
|
-
|
|
377
|
+
getGasFees(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GasFees>>;
|
|
378
|
+
/**
|
|
379
|
+
* Get information about the running coinstack
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
getInfo(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
|
|
328
384
|
/**
|
|
329
385
|
* Get transaction history by address
|
|
330
386
|
* @param {string} pubkey account address
|
|
@@ -366,11 +422,17 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
|
|
|
366
422
|
*/
|
|
367
423
|
getAccount(pubkey: string, options?: any): AxiosPromise<EthereumAccount>;
|
|
368
424
|
/**
|
|
369
|
-
* Get the current gas
|
|
425
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
getGasFees(options?: any): AxiosPromise<GasFees>;
|
|
430
|
+
/**
|
|
431
|
+
* Get information about the running coinstack
|
|
370
432
|
* @param {*} [options] Override http request option.
|
|
371
433
|
* @throws {RequiredError}
|
|
372
434
|
*/
|
|
373
|
-
|
|
435
|
+
getInfo(options?: any): AxiosPromise<Info>;
|
|
374
436
|
/**
|
|
375
437
|
* Get transaction history by address
|
|
376
438
|
* @param {string} pubkey account address
|
|
@@ -501,12 +563,19 @@ export declare class V1Api extends BaseAPI {
|
|
|
501
563
|
*/
|
|
502
564
|
getAccount(requestParameters: V1ApiGetAccountRequest, options?: any): Promise<import("axios").AxiosResponse<EthereumAccount>>;
|
|
503
565
|
/**
|
|
504
|
-
* Get the current gas
|
|
566
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
* @memberof V1Api
|
|
570
|
+
*/
|
|
571
|
+
getGasFees(options?: any): Promise<import("axios").AxiosResponse<GasFees>>;
|
|
572
|
+
/**
|
|
573
|
+
* Get information about the running coinstack
|
|
505
574
|
* @param {*} [options] Override http request option.
|
|
506
575
|
* @throws {RequiredError}
|
|
507
576
|
* @memberof V1Api
|
|
508
577
|
*/
|
|
509
|
-
|
|
578
|
+
getInfo(options?: any): Promise<import("axios").AxiosResponse<Info>>;
|
|
510
579
|
/**
|
|
511
580
|
* Get transaction history by address
|
|
512
581
|
* @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":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9E;;;;;;OAMG;IACI,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,GAAG;CAGrE"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @shapeshiftoss/ethereum-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:
|
|
8
|
+
* The version of the OpenAPI document: 5.1.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -123,12 +123,36 @@ const V1ApiAxiosParamCreator = function (configuration) {
|
|
|
123
123
|
};
|
|
124
124
|
}),
|
|
125
125
|
/**
|
|
126
|
-
* Get the current gas
|
|
126
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
127
127
|
* @param {*} [options] Override http request option.
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
*/
|
|
130
|
-
|
|
131
|
-
const localVarPath = `/api/v1/gas/
|
|
130
|
+
getGasFees: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const localVarPath = `/api/v1/gas/fees`;
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
if (configuration) {
|
|
136
|
+
baseOptions = configuration.baseOptions;
|
|
137
|
+
}
|
|
138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
139
|
+
const localVarHeaderParameter = {};
|
|
140
|
+
const localVarQueryParameter = {};
|
|
141
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
144
|
+
return {
|
|
145
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
};
|
|
148
|
+
}),
|
|
149
|
+
/**
|
|
150
|
+
* Get information about the running coinstack
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
getInfo: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const localVarPath = `/api/v1/info`;
|
|
132
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
157
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
134
158
|
let baseOptions;
|
|
@@ -253,13 +277,24 @@ const V1ApiFp = function (configuration) {
|
|
|
253
277
|
});
|
|
254
278
|
},
|
|
255
279
|
/**
|
|
256
|
-
* Get the current gas
|
|
280
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
getGasFees(options) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGasFees(options);
|
|
287
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* Get information about the running coinstack
|
|
257
292
|
* @param {*} [options] Override http request option.
|
|
258
293
|
* @throws {RequiredError}
|
|
259
294
|
*/
|
|
260
|
-
|
|
295
|
+
getInfo(options) {
|
|
261
296
|
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
297
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInfo(options);
|
|
263
298
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
264
299
|
});
|
|
265
300
|
},
|
|
@@ -322,12 +357,20 @@ const V1ApiFactory = function (configuration, basePath, axios) {
|
|
|
322
357
|
return localVarFp.getAccount(pubkey, options).then((request) => request(axios, basePath));
|
|
323
358
|
},
|
|
324
359
|
/**
|
|
325
|
-
* Get the current gas
|
|
360
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
getGasFees(options) {
|
|
365
|
+
return localVarFp.getGasFees(options).then((request) => request(axios, basePath));
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
* Get information about the running coinstack
|
|
326
369
|
* @param {*} [options] Override http request option.
|
|
327
370
|
* @throws {RequiredError}
|
|
328
371
|
*/
|
|
329
|
-
|
|
330
|
-
return localVarFp.
|
|
372
|
+
getInfo(options) {
|
|
373
|
+
return localVarFp.getInfo(options).then((request) => request(axios, basePath));
|
|
331
374
|
},
|
|
332
375
|
/**
|
|
333
376
|
* Get transaction history by address
|
|
@@ -381,13 +424,22 @@ class V1Api extends base_1.BaseAPI {
|
|
|
381
424
|
return exports.V1ApiFp(this.configuration).getAccount(requestParameters.pubkey, options).then((request) => request(this.axios, this.basePath));
|
|
382
425
|
}
|
|
383
426
|
/**
|
|
384
|
-
* Get the current gas
|
|
427
|
+
* Get the current recommended gas fees to use in a transaction * For EIP-1559 transactions, use `maxFeePerGas` and `maxPriorityFeePerGas` * For Legacy transactions, use `gasPrice`
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
* @memberof V1Api
|
|
431
|
+
*/
|
|
432
|
+
getGasFees(options) {
|
|
433
|
+
return exports.V1ApiFp(this.configuration).getGasFees(options).then((request) => request(this.axios, this.basePath));
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Get information about the running coinstack
|
|
385
437
|
* @param {*} [options] Override http request option.
|
|
386
438
|
* @throws {RequiredError}
|
|
387
439
|
* @memberof V1Api
|
|
388
440
|
*/
|
|
389
|
-
|
|
390
|
-
return exports.V1ApiFp(this.configuration).
|
|
441
|
+
getInfo(options) {
|
|
442
|
+
return exports.V1ApiFp(this.configuration).getInfo(options).then((request) => request(this.axios, this.basePath));
|
|
391
443
|
}
|
|
392
444
|
/**
|
|
393
445
|
* Get transaction history by address
|