@shapeshiftoss/unchained-client 10.15.0 → 10.17.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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/evm/arbitrum/parser/index.js +1 -1
- package/dist/cjs/evm/avalanche/parser/index.js +1 -1
- package/dist/cjs/evm/base/parser/index.js +1 -1
- package/dist/cjs/evm/bnbsmartchain/parser/index.js +1 -1
- package/dist/cjs/evm/ethereum/parser/__tests__/ethereum.test.js +13 -13
- package/dist/cjs/evm/ethereum/parser/index.js +12 -3
- package/dist/cjs/evm/ethereum/parser/uniV2.d.ts +4 -3
- package/dist/cjs/evm/ethereum/parser/uniV2.js +13 -10
- package/dist/cjs/evm/ethereum/parser/weth.d.ts +0 -2
- package/dist/cjs/evm/ethereum/parser/weth.js +0 -2
- package/dist/cjs/evm/gnosis/parser/index.js +1 -1
- package/dist/cjs/evm/optimism/parser/index.js +1 -1
- package/dist/cjs/evm/parser/erc20.d.ts +0 -2
- package/dist/cjs/evm/parser/erc20.js +0 -2
- package/dist/cjs/evm/parser/index.d.ts +1 -2
- package/dist/cjs/evm/parser/index.js +2 -2
- package/dist/cjs/evm/polygon/parser/index.js +1 -1
- package/dist/cjs/generated/arbitrum/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/arbitrum/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/arbitrum/models/index.d.ts +1 -0
- package/dist/cjs/generated/arbitrum/models/index.js +1 -0
- package/dist/cjs/generated/avalanche/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/avalanche/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/avalanche/models/index.d.ts +1 -0
- package/dist/cjs/generated/avalanche/models/index.js +1 -0
- package/dist/cjs/generated/base/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/base/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/base/models/index.d.ts +1 -0
- package/dist/cjs/generated/base/models/index.js +1 -0
- package/dist/cjs/generated/bitcoin/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/bitcoin/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/bitcoin/models/index.d.ts +1 -0
- package/dist/cjs/generated/bitcoin/models/index.js +1 -0
- package/dist/cjs/generated/bitcoincash/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/bitcoincash/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/bitcoincash/models/index.d.ts +1 -0
- package/dist/cjs/generated/bitcoincash/models/index.js +1 -0
- package/dist/cjs/generated/bnbsmartchain/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/bnbsmartchain/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/bnbsmartchain/models/index.d.ts +1 -0
- package/dist/cjs/generated/bnbsmartchain/models/index.js +1 -0
- package/dist/cjs/generated/dogecoin/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/dogecoin/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/dogecoin/models/index.d.ts +1 -0
- package/dist/cjs/generated/dogecoin/models/index.js +1 -0
- package/dist/cjs/generated/ethereum/apis/V1Api.d.ts +15 -0
- package/dist/cjs/generated/ethereum/apis/V1Api.js +24 -0
- package/dist/cjs/generated/ethereum/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/ethereum/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/ethereum/models/index.d.ts +1 -0
- package/dist/cjs/generated/ethereum/models/index.js +1 -0
- package/dist/cjs/generated/gnosis/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/gnosis/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/gnosis/models/index.d.ts +1 -0
- package/dist/cjs/generated/gnosis/models/index.js +1 -0
- package/dist/cjs/generated/litecoin/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/litecoin/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/litecoin/models/index.d.ts +1 -0
- package/dist/cjs/generated/litecoin/models/index.js +1 -0
- package/dist/cjs/generated/optimism/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/optimism/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/optimism/models/index.d.ts +1 -0
- package/dist/cjs/generated/optimism/models/index.js +1 -0
- package/dist/cjs/generated/polygon/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/polygon/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/polygon/models/index.d.ts +1 -0
- package/dist/cjs/generated/polygon/models/index.js +1 -0
- package/dist/cjs/generated/solana/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/solana/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/solana/models/index.d.ts +1 -0
- package/dist/cjs/generated/solana/models/index.js +1 -0
- package/dist/cjs/generated/zcash/models/NotFoundError.d.ts +31 -0
- package/dist/cjs/generated/zcash/models/NotFoundError.js +51 -0
- package/dist/cjs/generated/zcash/models/index.d.ts +1 -0
- package/dist/cjs/generated/zcash/models/index.js +1 -0
- package/dist/cjs/tron/__tests__/api.test.js +125 -0
- package/dist/cjs/tron/api.d.ts +7 -0
- package/dist/cjs/tron/api.js +39 -3
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/evm/arbitrum/parser/index.js +1 -1
- package/dist/esm/evm/avalanche/parser/index.js +1 -1
- package/dist/esm/evm/base/parser/index.js +1 -1
- package/dist/esm/evm/bnbsmartchain/parser/index.js +1 -1
- package/dist/esm/evm/ethereum/parser/__tests__/ethereum.test.js +13 -13
- package/dist/esm/evm/ethereum/parser/index.js +12 -3
- package/dist/esm/evm/ethereum/parser/uniV2.d.ts +4 -3
- package/dist/esm/evm/ethereum/parser/uniV2.js +14 -11
- package/dist/esm/evm/ethereum/parser/weth.d.ts +0 -2
- package/dist/esm/evm/ethereum/parser/weth.js +0 -2
- package/dist/esm/evm/gnosis/parser/index.js +1 -1
- package/dist/esm/evm/optimism/parser/index.js +1 -1
- package/dist/esm/evm/parser/erc20.d.ts +0 -2
- package/dist/esm/evm/parser/erc20.js +0 -2
- package/dist/esm/evm/parser/index.d.ts +1 -2
- package/dist/esm/evm/parser/index.js +3 -3
- package/dist/esm/evm/polygon/parser/index.js +1 -1
- package/dist/esm/generated/arbitrum/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/arbitrum/models/NotFoundError.js +44 -0
- package/dist/esm/generated/arbitrum/models/index.d.ts +1 -0
- package/dist/esm/generated/arbitrum/models/index.js +1 -0
- package/dist/esm/generated/avalanche/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/avalanche/models/NotFoundError.js +44 -0
- package/dist/esm/generated/avalanche/models/index.d.ts +1 -0
- package/dist/esm/generated/avalanche/models/index.js +1 -0
- package/dist/esm/generated/base/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/base/models/NotFoundError.js +44 -0
- package/dist/esm/generated/base/models/index.d.ts +1 -0
- package/dist/esm/generated/base/models/index.js +1 -0
- package/dist/esm/generated/bitcoin/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/bitcoin/models/NotFoundError.js +44 -0
- package/dist/esm/generated/bitcoin/models/index.d.ts +1 -0
- package/dist/esm/generated/bitcoin/models/index.js +1 -0
- package/dist/esm/generated/bitcoincash/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/bitcoincash/models/NotFoundError.js +44 -0
- package/dist/esm/generated/bitcoincash/models/index.d.ts +1 -0
- package/dist/esm/generated/bitcoincash/models/index.js +1 -0
- package/dist/esm/generated/bnbsmartchain/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/bnbsmartchain/models/NotFoundError.js +44 -0
- package/dist/esm/generated/bnbsmartchain/models/index.d.ts +1 -0
- package/dist/esm/generated/bnbsmartchain/models/index.js +1 -0
- package/dist/esm/generated/dogecoin/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/dogecoin/models/NotFoundError.js +44 -0
- package/dist/esm/generated/dogecoin/models/index.d.ts +1 -0
- package/dist/esm/generated/dogecoin/models/index.js +1 -0
- package/dist/esm/generated/ethereum/apis/V1Api.d.ts +15 -0
- package/dist/esm/generated/ethereum/apis/V1Api.js +24 -0
- package/dist/esm/generated/ethereum/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/ethereum/models/NotFoundError.js +44 -0
- package/dist/esm/generated/ethereum/models/index.d.ts +1 -0
- package/dist/esm/generated/ethereum/models/index.js +1 -0
- package/dist/esm/generated/gnosis/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/gnosis/models/NotFoundError.js +44 -0
- package/dist/esm/generated/gnosis/models/index.d.ts +1 -0
- package/dist/esm/generated/gnosis/models/index.js +1 -0
- package/dist/esm/generated/litecoin/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/litecoin/models/NotFoundError.js +44 -0
- package/dist/esm/generated/litecoin/models/index.d.ts +1 -0
- package/dist/esm/generated/litecoin/models/index.js +1 -0
- package/dist/esm/generated/optimism/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/optimism/models/NotFoundError.js +44 -0
- package/dist/esm/generated/optimism/models/index.d.ts +1 -0
- package/dist/esm/generated/optimism/models/index.js +1 -0
- package/dist/esm/generated/polygon/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/polygon/models/NotFoundError.js +44 -0
- package/dist/esm/generated/polygon/models/index.d.ts +1 -0
- package/dist/esm/generated/polygon/models/index.js +1 -0
- package/dist/esm/generated/solana/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/solana/models/NotFoundError.js +44 -0
- package/dist/esm/generated/solana/models/index.d.ts +1 -0
- package/dist/esm/generated/solana/models/index.js +1 -0
- package/dist/esm/generated/zcash/models/NotFoundError.d.ts +31 -0
- package/dist/esm/generated/zcash/models/NotFoundError.js +44 -0
- package/dist/esm/generated/zcash/models/index.d.ts +1 -0
- package/dist/esm/generated/zcash/models/index.js +1 -0
- package/dist/esm/tron/__tests__/api.test.js +125 -0
- package/dist/esm/tron/api.d.ts +7 -0
- package/dist/esm/tron/api.js +39 -3
- package/package.json +4 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* @shapeshiftoss/bitcoin-api
|
|
7
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 10.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NotFoundErrorToJSON = exports.NotFoundErrorFromJSONTyped = exports.NotFoundErrorFromJSON = exports.instanceOfNotFoundError = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the NotFoundError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfNotFoundError(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNotFoundError = instanceOfNotFoundError;
|
|
27
|
+
function NotFoundErrorFromJSON(json) {
|
|
28
|
+
return NotFoundErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundErrorFromJSON = NotFoundErrorFromJSON;
|
|
31
|
+
function NotFoundErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.NotFoundErrorFromJSONTyped = NotFoundErrorFromJSONTyped;
|
|
40
|
+
function NotFoundErrorToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value.message,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.NotFoundErrorToJSON = NotFoundErrorToJSON;
|
|
@@ -6,6 +6,7 @@ export * from './BaseTxHistoryTx';
|
|
|
6
6
|
export * from './InternalServerError';
|
|
7
7
|
export * from './NetworkFee';
|
|
8
8
|
export * from './NetworkFees';
|
|
9
|
+
export * from './NotFoundError';
|
|
9
10
|
export * from './RawTx';
|
|
10
11
|
export * from './RawTxVinInner';
|
|
11
12
|
export * from './RawTxVinInnerScriptSig';
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./BaseTxHistoryTx"), exports);
|
|
|
25
25
|
__exportStar(require("./InternalServerError"), exports);
|
|
26
26
|
__exportStar(require("./NetworkFee"), exports);
|
|
27
27
|
__exportStar(require("./NetworkFees"), exports);
|
|
28
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
28
29
|
__exportStar(require("./RawTx"), exports);
|
|
29
30
|
__exportStar(require("./RawTxVinInner"), exports);
|
|
30
31
|
__exportStar(require("./RawTxVinInnerScriptSig"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/bitcoincash-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 10.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
|
+
/**
|
|
13
|
+
* Contains info about a 404 Not Found response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotFoundError
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotFoundError interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfNotFoundError(value: object): boolean;
|
|
29
|
+
export declare function NotFoundErrorFromJSON(json: any): NotFoundError;
|
|
30
|
+
export declare function NotFoundErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundError;
|
|
31
|
+
export declare function NotFoundErrorToJSON(value?: NotFoundError | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* @shapeshiftoss/bitcoincash-api
|
|
7
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 10.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NotFoundErrorToJSON = exports.NotFoundErrorFromJSONTyped = exports.NotFoundErrorFromJSON = exports.instanceOfNotFoundError = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the NotFoundError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfNotFoundError(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNotFoundError = instanceOfNotFoundError;
|
|
27
|
+
function NotFoundErrorFromJSON(json) {
|
|
28
|
+
return NotFoundErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundErrorFromJSON = NotFoundErrorFromJSON;
|
|
31
|
+
function NotFoundErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.NotFoundErrorFromJSONTyped = NotFoundErrorFromJSONTyped;
|
|
40
|
+
function NotFoundErrorToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value.message,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.NotFoundErrorToJSON = NotFoundErrorToJSON;
|
|
@@ -6,6 +6,7 @@ export * from './BaseTxHistoryTx';
|
|
|
6
6
|
export * from './InternalServerError';
|
|
7
7
|
export * from './NetworkFee';
|
|
8
8
|
export * from './NetworkFees';
|
|
9
|
+
export * from './NotFoundError';
|
|
9
10
|
export * from './RawTx';
|
|
10
11
|
export * from './RawTxVinInner';
|
|
11
12
|
export * from './RawTxVinInnerScriptSig';
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./BaseTxHistoryTx"), exports);
|
|
|
25
25
|
__exportStar(require("./InternalServerError"), exports);
|
|
26
26
|
__exportStar(require("./NetworkFee"), exports);
|
|
27
27
|
__exportStar(require("./NetworkFees"), exports);
|
|
28
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
28
29
|
__exportStar(require("./RawTx"), exports);
|
|
29
30
|
__exportStar(require("./RawTxVinInner"), exports);
|
|
30
31
|
__exportStar(require("./RawTxVinInnerScriptSig"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/bnbsmartchain-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 10.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
|
+
/**
|
|
13
|
+
* Contains info about a 404 Not Found response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotFoundError
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotFoundError interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfNotFoundError(value: object): boolean;
|
|
29
|
+
export declare function NotFoundErrorFromJSON(json: any): NotFoundError;
|
|
30
|
+
export declare function NotFoundErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundError;
|
|
31
|
+
export declare function NotFoundErrorToJSON(value?: NotFoundError | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* @shapeshiftoss/bnbsmartchain-api
|
|
7
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 10.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NotFoundErrorToJSON = exports.NotFoundErrorFromJSONTyped = exports.NotFoundErrorFromJSON = exports.instanceOfNotFoundError = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the NotFoundError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfNotFoundError(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNotFoundError = instanceOfNotFoundError;
|
|
27
|
+
function NotFoundErrorFromJSON(json) {
|
|
28
|
+
return NotFoundErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundErrorFromJSON = NotFoundErrorFromJSON;
|
|
31
|
+
function NotFoundErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.NotFoundErrorFromJSONTyped = NotFoundErrorFromJSONTyped;
|
|
40
|
+
function NotFoundErrorToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value.message,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.NotFoundErrorToJSON = NotFoundErrorToJSON;
|
|
@@ -10,6 +10,7 @@ export * from './GasEstimate';
|
|
|
10
10
|
export * from './GasFees';
|
|
11
11
|
export * from './InternalServerError';
|
|
12
12
|
export * from './InternalTx';
|
|
13
|
+
export * from './NotFoundError';
|
|
13
14
|
export * from './RPCRequest';
|
|
14
15
|
export * from './RPCResponse';
|
|
15
16
|
export * from './RPCResponseError';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./GasEstimate"), exports);
|
|
|
29
29
|
__exportStar(require("./GasFees"), exports);
|
|
30
30
|
__exportStar(require("./InternalServerError"), exports);
|
|
31
31
|
__exportStar(require("./InternalTx"), exports);
|
|
32
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
32
33
|
__exportStar(require("./RPCRequest"), exports);
|
|
33
34
|
__exportStar(require("./RPCResponse"), exports);
|
|
34
35
|
__exportStar(require("./RPCResponseError"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/dogecoin-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 10.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
|
+
/**
|
|
13
|
+
* Contains info about a 404 Not Found response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotFoundError
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotFoundError interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfNotFoundError(value: object): boolean;
|
|
29
|
+
export declare function NotFoundErrorFromJSON(json: any): NotFoundError;
|
|
30
|
+
export declare function NotFoundErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundError;
|
|
31
|
+
export declare function NotFoundErrorToJSON(value?: NotFoundError | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* @shapeshiftoss/dogecoin-api
|
|
7
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 10.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NotFoundErrorToJSON = exports.NotFoundErrorFromJSONTyped = exports.NotFoundErrorFromJSON = exports.instanceOfNotFoundError = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the NotFoundError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfNotFoundError(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNotFoundError = instanceOfNotFoundError;
|
|
27
|
+
function NotFoundErrorFromJSON(json) {
|
|
28
|
+
return NotFoundErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundErrorFromJSON = NotFoundErrorFromJSON;
|
|
31
|
+
function NotFoundErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.NotFoundErrorFromJSONTyped = NotFoundErrorFromJSONTyped;
|
|
40
|
+
function NotFoundErrorToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value.message,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.NotFoundErrorToJSON = NotFoundErrorToJSON;
|
|
@@ -6,6 +6,7 @@ export * from './BaseTxHistoryTx';
|
|
|
6
6
|
export * from './InternalServerError';
|
|
7
7
|
export * from './NetworkFee';
|
|
8
8
|
export * from './NetworkFees';
|
|
9
|
+
export * from './NotFoundError';
|
|
9
10
|
export * from './RawTx';
|
|
10
11
|
export * from './RawTxVinInner';
|
|
11
12
|
export * from './RawTxVinInnerScriptSig';
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./BaseTxHistoryTx"), exports);
|
|
|
25
25
|
__exportStar(require("./InternalServerError"), exports);
|
|
26
26
|
__exportStar(require("./NetworkFee"), exports);
|
|
27
27
|
__exportStar(require("./NetworkFees"), exports);
|
|
28
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
28
29
|
__exportStar(require("./RawTx"), exports);
|
|
29
30
|
__exportStar(require("./RawTxVinInner"), exports);
|
|
30
31
|
__exportStar(require("./RawTxVinInnerScriptSig"), exports);
|
|
@@ -20,6 +20,9 @@ export interface EstimateGasRequest {
|
|
|
20
20
|
export interface GetAccountRequest {
|
|
21
21
|
pubkey: string;
|
|
22
22
|
}
|
|
23
|
+
export interface GetRfoxStakingDurationRequest {
|
|
24
|
+
address: string;
|
|
25
|
+
}
|
|
23
26
|
export interface GetTransactionRequest {
|
|
24
27
|
txid: string;
|
|
25
28
|
}
|
|
@@ -77,6 +80,18 @@ export declare class V1Api extends runtime.BaseAPI {
|
|
|
77
80
|
* Get information about the running coinstack
|
|
78
81
|
*/
|
|
79
82
|
getInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseInfo>;
|
|
83
|
+
/**
|
|
84
|
+
* Get rFOX staking duration by contract address
|
|
85
|
+
*/
|
|
86
|
+
getRfoxStakingDurationRaw(requestParameters: GetRfoxStakingDurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
87
|
+
[key: string]: number;
|
|
88
|
+
}>>;
|
|
89
|
+
/**
|
|
90
|
+
* Get rFOX staking duration by contract address
|
|
91
|
+
*/
|
|
92
|
+
getRfoxStakingDuration(requestParameters: GetRfoxStakingDurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
93
|
+
[key: string]: number;
|
|
94
|
+
}>;
|
|
80
95
|
/**
|
|
81
96
|
* Get transaction details
|
|
82
97
|
*/
|
|
@@ -162,6 +162,30 @@ class V1Api extends runtime.BaseAPI {
|
|
|
162
162
|
const response = await this.getInfoRaw(initOverrides);
|
|
163
163
|
return await response.value();
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Get rFOX staking duration by contract address
|
|
167
|
+
*/
|
|
168
|
+
async getRfoxStakingDurationRaw(requestParameters, initOverrides) {
|
|
169
|
+
if (requestParameters.address === null || requestParameters.address === undefined) {
|
|
170
|
+
throw new runtime.RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getRfoxStakingDuration.');
|
|
171
|
+
}
|
|
172
|
+
const queryParameters = {};
|
|
173
|
+
const headerParameters = {};
|
|
174
|
+
const response = await this.request({
|
|
175
|
+
path: `/api/v1/rfox/staking-duration/{address}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
|
|
176
|
+
method: 'GET',
|
|
177
|
+
headers: headerParameters,
|
|
178
|
+
query: queryParameters,
|
|
179
|
+
}, initOverrides);
|
|
180
|
+
return new runtime.JSONApiResponse(response);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Get rFOX staking duration by contract address
|
|
184
|
+
*/
|
|
185
|
+
async getRfoxStakingDuration(requestParameters, initOverrides) {
|
|
186
|
+
const response = await this.getRfoxStakingDurationRaw(requestParameters, initOverrides);
|
|
187
|
+
return await response.value();
|
|
188
|
+
}
|
|
165
189
|
/**
|
|
166
190
|
* Get transaction details
|
|
167
191
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/ethereum-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 10.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
|
+
/**
|
|
13
|
+
* Contains info about a 404 Not Found response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotFoundError
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotFoundError interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfNotFoundError(value: object): boolean;
|
|
29
|
+
export declare function NotFoundErrorFromJSON(json: any): NotFoundError;
|
|
30
|
+
export declare function NotFoundErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundError;
|
|
31
|
+
export declare function NotFoundErrorToJSON(value?: NotFoundError | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* @shapeshiftoss/ethereum-api
|
|
7
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 10.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NotFoundErrorToJSON = exports.NotFoundErrorFromJSONTyped = exports.NotFoundErrorFromJSON = exports.instanceOfNotFoundError = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the NotFoundError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfNotFoundError(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNotFoundError = instanceOfNotFoundError;
|
|
27
|
+
function NotFoundErrorFromJSON(json) {
|
|
28
|
+
return NotFoundErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundErrorFromJSON = NotFoundErrorFromJSON;
|
|
31
|
+
function NotFoundErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.NotFoundErrorFromJSONTyped = NotFoundErrorFromJSONTyped;
|
|
40
|
+
function NotFoundErrorToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value.message,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.NotFoundErrorToJSON = NotFoundErrorToJSON;
|
|
@@ -10,6 +10,7 @@ export * from './GasEstimate';
|
|
|
10
10
|
export * from './GasFees';
|
|
11
11
|
export * from './InternalServerError';
|
|
12
12
|
export * from './InternalTx';
|
|
13
|
+
export * from './NotFoundError';
|
|
13
14
|
export * from './RPCRequest';
|
|
14
15
|
export * from './RPCResponse';
|
|
15
16
|
export * from './RPCResponseError';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./GasEstimate"), exports);
|
|
|
29
29
|
__exportStar(require("./GasFees"), exports);
|
|
30
30
|
__exportStar(require("./InternalServerError"), exports);
|
|
31
31
|
__exportStar(require("./InternalTx"), exports);
|
|
32
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
32
33
|
__exportStar(require("./RPCRequest"), exports);
|
|
33
34
|
__exportStar(require("./RPCResponse"), exports);
|
|
34
35
|
__exportStar(require("./RPCResponseError"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @shapeshiftoss/gnosis-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 10.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
|
+
/**
|
|
13
|
+
* Contains info about a 404 Not Found response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface NotFoundError
|
|
16
|
+
*/
|
|
17
|
+
export interface NotFoundError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotFoundError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotFoundError interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfNotFoundError(value: object): boolean;
|
|
29
|
+
export declare function NotFoundErrorFromJSON(json: any): NotFoundError;
|
|
30
|
+
export declare function NotFoundErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundError;
|
|
31
|
+
export declare function NotFoundErrorToJSON(value?: NotFoundError | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* @shapeshiftoss/gnosis-api
|
|
7
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 10.0.0
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.NotFoundErrorToJSON = exports.NotFoundErrorFromJSONTyped = exports.NotFoundErrorFromJSON = exports.instanceOfNotFoundError = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the NotFoundError interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfNotFoundError(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfNotFoundError = instanceOfNotFoundError;
|
|
27
|
+
function NotFoundErrorFromJSON(json) {
|
|
28
|
+
return NotFoundErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundErrorFromJSON = NotFoundErrorFromJSON;
|
|
31
|
+
function NotFoundErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.NotFoundErrorFromJSONTyped = NotFoundErrorFromJSONTyped;
|
|
40
|
+
function NotFoundErrorToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value.message,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.NotFoundErrorToJSON = NotFoundErrorToJSON;
|
|
@@ -10,6 +10,7 @@ export * from './GasEstimate';
|
|
|
10
10
|
export * from './GasFees';
|
|
11
11
|
export * from './InternalServerError';
|
|
12
12
|
export * from './InternalTx';
|
|
13
|
+
export * from './NotFoundError';
|
|
13
14
|
export * from './RPCRequest';
|
|
14
15
|
export * from './RPCResponse';
|
|
15
16
|
export * from './RPCResponseError';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./GasEstimate"), exports);
|
|
|
29
29
|
__exportStar(require("./GasFees"), exports);
|
|
30
30
|
__exportStar(require("./InternalServerError"), exports);
|
|
31
31
|
__exportStar(require("./InternalTx"), exports);
|
|
32
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
32
33
|
__exportStar(require("./RPCRequest"), exports);
|
|
33
34
|
__exportStar(require("./RPCResponse"), exports);
|
|
34
35
|
__exportStar(require("./RPCResponseError"), exports);
|