@shapeshiftoss/unchained-client 10.8.0 → 10.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/evm/index.d.ts +1 -0
  2. package/dist/evm/index.js +2 -1
  3. package/dist/evm/optimism/index.d.ts +2 -0
  4. package/dist/evm/optimism/index.js +18 -0
  5. package/dist/evm/optimism/parser/index.d.ts +5 -0
  6. package/dist/evm/optimism/parser/index.js +12 -0
  7. package/dist/evm/parser/index.js +13 -8
  8. package/dist/generated/avalanche/models/GasFees.d.ts +2 -2
  9. package/dist/generated/avalanche/models/GasFees.js +3 -4
  10. package/dist/generated/cosmos/apis/V1Api.d.ts +6 -2
  11. package/dist/generated/cosmos/apis/V1Api.js +9 -3
  12. package/dist/generated/cosmos/models/Validators.d.ts +6 -0
  13. package/dist/generated/cosmos/models/Validators.js +3 -0
  14. package/dist/generated/cosmos/models/ValidatorsAllOf.d.ts +32 -0
  15. package/dist/generated/cosmos/models/ValidatorsAllOf.js +52 -0
  16. package/dist/generated/cosmos/models/index.d.ts +1 -0
  17. package/dist/generated/cosmos/models/index.js +1 -0
  18. package/dist/generated/ethereum/models/GasFees.d.ts +2 -2
  19. package/dist/generated/ethereum/models/GasFees.js +3 -4
  20. package/dist/generated/optimism/apis/V1Api.d.ts +94 -0
  21. package/dist/generated/optimism/apis/V1Api.js +239 -0
  22. package/dist/generated/optimism/apis/index.d.ts +1 -0
  23. package/dist/generated/optimism/apis/index.js +20 -0
  24. package/dist/generated/optimism/index.d.ts +3 -0
  25. package/dist/generated/optimism/index.js +22 -0
  26. package/dist/generated/optimism/models/Account.d.ts +56 -0
  27. package/dist/generated/optimism/models/Account.js +64 -0
  28. package/dist/generated/optimism/models/BadRequestError.d.ts +31 -0
  29. package/dist/generated/optimism/models/BadRequestError.js +51 -0
  30. package/dist/generated/optimism/models/BaseInfo.d.ts +31 -0
  31. package/dist/generated/optimism/models/BaseInfo.js +51 -0
  32. package/dist/generated/optimism/models/BaseTxHistoryTx.d.ts +44 -0
  33. package/dist/generated/optimism/models/BaseTxHistoryTx.js +58 -0
  34. package/dist/generated/optimism/models/GasFees.d.ts +43 -0
  35. package/dist/generated/optimism/models/GasFees.js +56 -0
  36. package/dist/generated/optimism/models/InternalServerError.d.ts +31 -0
  37. package/dist/generated/optimism/models/InternalServerError.js +51 -0
  38. package/dist/generated/optimism/models/InternalTx.d.ts +43 -0
  39. package/dist/generated/optimism/models/InternalTx.js +57 -0
  40. package/dist/generated/optimism/models/SendTxBody.d.ts +31 -0
  41. package/dist/generated/optimism/models/SendTxBody.js +51 -0
  42. package/dist/generated/optimism/models/TokenBalance.d.ts +61 -0
  43. package/dist/generated/optimism/models/TokenBalance.js +66 -0
  44. package/dist/generated/optimism/models/TokenTransfer.d.ts +73 -0
  45. package/dist/generated/optimism/models/TokenTransfer.js +72 -0
  46. package/dist/generated/optimism/models/Tx.d.ts +123 -0
  47. package/dist/generated/optimism/models/Tx.js +94 -0
  48. package/dist/generated/optimism/models/ValidationError.d.ts +46 -0
  49. package/dist/generated/optimism/models/ValidationError.js +60 -0
  50. package/dist/generated/optimism/models/index.d.ts +12 -0
  51. package/dist/generated/optimism/models/index.js +31 -0
  52. package/dist/generated/optimism/runtime.d.ts +170 -0
  53. package/dist/generated/optimism/runtime.js +310 -0
  54. package/dist/generated/osmosis/apis/V1Api.d.ts +6 -2
  55. package/dist/generated/osmosis/apis/V1Api.js +9 -3
  56. package/dist/generated/osmosis/models/Validators.d.ts +6 -0
  57. package/dist/generated/osmosis/models/Validators.js +3 -0
  58. package/dist/generated/osmosis/models/ValidatorsAllOf.d.ts +32 -0
  59. package/dist/generated/osmosis/models/ValidatorsAllOf.js +52 -0
  60. package/dist/generated/osmosis/models/index.d.ts +1 -0
  61. package/dist/generated/osmosis/models/index.js +1 -0
  62. package/dist/generated/thorchain/models/Validators.d.ts +6 -0
  63. package/dist/generated/thorchain/models/Validators.js +3 -0
  64. package/dist/generated/thorchain/models/ValidatorsAllOf.d.ts +32 -0
  65. package/dist/generated/thorchain/models/ValidatorsAllOf.js +52 -0
  66. package/dist/generated/thorchain/models/index.d.ts +1 -0
  67. package/dist/generated/thorchain/models/index.js +1 -0
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.js +2 -1
  70. package/package.json +2 -2
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @shapeshiftoss/optimism-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 8.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 current recommended fees to use in a transaction
14
+ * @export
15
+ * @interface GasFees
16
+ */
17
+ export interface GasFees {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GasFees
22
+ */
23
+ gasPrice: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GasFees
28
+ */
29
+ maxFeePerGas?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GasFees
34
+ */
35
+ maxPriorityFeePerGas?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GasFees interface.
39
+ */
40
+ export declare function instanceOfGasFees(value: object): boolean;
41
+ export declare function GasFeesFromJSON(json: any): GasFees;
42
+ export declare function GasFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GasFees;
43
+ export declare function GasFeesToJSON(value?: GasFees | null): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.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.GasFeesToJSON = exports.GasFeesFromJSONTyped = exports.GasFeesFromJSON = exports.instanceOfGasFees = void 0;
18
+ const runtime_1 = require("../runtime");
19
+ /**
20
+ * Check if a given object implements the GasFees interface.
21
+ */
22
+ function instanceOfGasFees(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "gasPrice" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfGasFees = instanceOfGasFees;
28
+ function GasFeesFromJSON(json) {
29
+ return GasFeesFromJSONTyped(json, false);
30
+ }
31
+ exports.GasFeesFromJSON = GasFeesFromJSON;
32
+ function GasFeesFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'gasPrice': json['gasPrice'],
38
+ 'maxFeePerGas': !(0, runtime_1.exists)(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
39
+ 'maxPriorityFeePerGas': !(0, runtime_1.exists)(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
40
+ };
41
+ }
42
+ exports.GasFeesFromJSONTyped = GasFeesFromJSONTyped;
43
+ function GasFeesToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'gasPrice': value.gasPrice,
52
+ 'maxFeePerGas': value.maxFeePerGas,
53
+ 'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
54
+ };
55
+ }
56
+ exports.GasFeesToJSON = GasFeesToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @shapeshiftoss/optimism-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 8.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 500 Internal Server Error response
14
+ * @export
15
+ * @interface InternalServerError
16
+ */
17
+ export interface InternalServerError {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InternalServerError
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the InternalServerError interface.
27
+ */
28
+ export declare function instanceOfInternalServerError(value: object): boolean;
29
+ export declare function InternalServerErrorFromJSON(json: any): InternalServerError;
30
+ export declare function InternalServerErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalServerError;
31
+ export declare function InternalServerErrorToJSON(value?: InternalServerError | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.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.InternalServerErrorToJSON = exports.InternalServerErrorFromJSONTyped = exports.InternalServerErrorFromJSON = exports.instanceOfInternalServerError = void 0;
18
+ /**
19
+ * Check if a given object implements the InternalServerError interface.
20
+ */
21
+ function instanceOfInternalServerError(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "message" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfInternalServerError = instanceOfInternalServerError;
27
+ function InternalServerErrorFromJSON(json) {
28
+ return InternalServerErrorFromJSONTyped(json, false);
29
+ }
30
+ exports.InternalServerErrorFromJSON = InternalServerErrorFromJSON;
31
+ function InternalServerErrorFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'message': json['message'],
37
+ };
38
+ }
39
+ exports.InternalServerErrorFromJSONTyped = InternalServerErrorFromJSONTyped;
40
+ function InternalServerErrorToJSON(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.InternalServerErrorToJSON = InternalServerErrorToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @shapeshiftoss/optimism-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 8.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 an EVM internal transaction
14
+ * @export
15
+ * @interface InternalTx
16
+ */
17
+ export interface InternalTx {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InternalTx
22
+ */
23
+ from: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InternalTx
28
+ */
29
+ to: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InternalTx
34
+ */
35
+ value: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the InternalTx interface.
39
+ */
40
+ export declare function instanceOfInternalTx(value: object): boolean;
41
+ export declare function InternalTxFromJSON(json: any): InternalTx;
42
+ export declare function InternalTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalTx;
43
+ export declare function InternalTxToJSON(value?: InternalTx | null): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.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.InternalTxToJSON = exports.InternalTxFromJSONTyped = exports.InternalTxFromJSON = exports.instanceOfInternalTx = void 0;
18
+ /**
19
+ * Check if a given object implements the InternalTx interface.
20
+ */
21
+ function instanceOfInternalTx(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "from" in value;
24
+ isInstance = isInstance && "to" in value;
25
+ isInstance = isInstance && "value" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfInternalTx = instanceOfInternalTx;
29
+ function InternalTxFromJSON(json) {
30
+ return InternalTxFromJSONTyped(json, false);
31
+ }
32
+ exports.InternalTxFromJSON = InternalTxFromJSON;
33
+ function InternalTxFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'from': json['from'],
39
+ 'to': json['to'],
40
+ 'value': json['value'],
41
+ };
42
+ }
43
+ exports.InternalTxFromJSONTyped = InternalTxFromJSONTyped;
44
+ function InternalTxToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'from': value.from,
53
+ 'to': value.to,
54
+ 'value': value.value,
55
+ };
56
+ }
57
+ exports.InternalTxToJSON = InternalTxToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @shapeshiftoss/optimism-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 8.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 the serialized raw transaction hex
14
+ * @export
15
+ * @interface SendTxBody
16
+ */
17
+ export interface SendTxBody {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SendTxBody
22
+ */
23
+ hex: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SendTxBody interface.
27
+ */
28
+ export declare function instanceOfSendTxBody(value: object): boolean;
29
+ export declare function SendTxBodyFromJSON(json: any): SendTxBody;
30
+ export declare function SendTxBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendTxBody;
31
+ export declare function SendTxBodyToJSON(value?: SendTxBody | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.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.SendTxBodyToJSON = exports.SendTxBodyFromJSONTyped = exports.SendTxBodyFromJSON = exports.instanceOfSendTxBody = void 0;
18
+ /**
19
+ * Check if a given object implements the SendTxBody interface.
20
+ */
21
+ function instanceOfSendTxBody(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "hex" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSendTxBody = instanceOfSendTxBody;
27
+ function SendTxBodyFromJSON(json) {
28
+ return SendTxBodyFromJSONTyped(json, false);
29
+ }
30
+ exports.SendTxBodyFromJSON = SendTxBodyFromJSON;
31
+ function SendTxBodyFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'hex': json['hex'],
37
+ };
38
+ }
39
+ exports.SendTxBodyFromJSONTyped = SendTxBodyFromJSONTyped;
40
+ function SendTxBodyToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'hex': value.hex,
49
+ };
50
+ }
51
+ exports.SendTxBodyToJSON = SendTxBodyToJSON;
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @shapeshiftoss/optimism-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 8.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 token including balance for an address
14
+ * @export
15
+ * @interface TokenBalance
16
+ */
17
+ export interface TokenBalance {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TokenBalance
22
+ */
23
+ contract: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof TokenBalance
28
+ */
29
+ decimals: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TokenBalance
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof TokenBalance
40
+ */
41
+ symbol: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TokenBalance
46
+ */
47
+ type: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof TokenBalance
52
+ */
53
+ balance: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the TokenBalance interface.
57
+ */
58
+ export declare function instanceOfTokenBalance(value: object): boolean;
59
+ export declare function TokenBalanceFromJSON(json: any): TokenBalance;
60
+ export declare function TokenBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenBalance;
61
+ export declare function TokenBalanceToJSON(value?: TokenBalance | null): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.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.TokenBalanceToJSON = exports.TokenBalanceFromJSONTyped = exports.TokenBalanceFromJSON = exports.instanceOfTokenBalance = void 0;
18
+ /**
19
+ * Check if a given object implements the TokenBalance interface.
20
+ */
21
+ function instanceOfTokenBalance(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "contract" in value;
24
+ isInstance = isInstance && "decimals" in value;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "symbol" in value;
27
+ isInstance = isInstance && "type" in value;
28
+ isInstance = isInstance && "balance" in value;
29
+ return isInstance;
30
+ }
31
+ exports.instanceOfTokenBalance = instanceOfTokenBalance;
32
+ function TokenBalanceFromJSON(json) {
33
+ return TokenBalanceFromJSONTyped(json, false);
34
+ }
35
+ exports.TokenBalanceFromJSON = TokenBalanceFromJSON;
36
+ function TokenBalanceFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'contract': json['contract'],
42
+ 'decimals': json['decimals'],
43
+ 'name': json['name'],
44
+ 'symbol': json['symbol'],
45
+ 'type': json['type'],
46
+ 'balance': json['balance'],
47
+ };
48
+ }
49
+ exports.TokenBalanceFromJSONTyped = TokenBalanceFromJSONTyped;
50
+ function TokenBalanceToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'contract': value.contract,
59
+ 'decimals': value.decimals,
60
+ 'name': value.name,
61
+ 'symbol': value.symbol,
62
+ 'type': value.type,
63
+ 'balance': value.balance,
64
+ };
65
+ }
66
+ exports.TokenBalanceToJSON = TokenBalanceToJSON;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @shapeshiftoss/optimism-api
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 8.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 token including transfer details
14
+ * @export
15
+ * @interface TokenTransfer
16
+ */
17
+ export interface TokenTransfer {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TokenTransfer
22
+ */
23
+ contract: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof TokenTransfer
28
+ */
29
+ decimals: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TokenTransfer
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof TokenTransfer
40
+ */
41
+ symbol: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof TokenTransfer
46
+ */
47
+ type: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof TokenTransfer
52
+ */
53
+ from: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof TokenTransfer
58
+ */
59
+ to: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof TokenTransfer
64
+ */
65
+ value: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the TokenTransfer interface.
69
+ */
70
+ export declare function instanceOfTokenTransfer(value: object): boolean;
71
+ export declare function TokenTransferFromJSON(json: any): TokenTransfer;
72
+ export declare function TokenTransferFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenTransfer;
73
+ export declare function TokenTransferToJSON(value?: TokenTransfer | null): any;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.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.TokenTransferToJSON = exports.TokenTransferFromJSONTyped = exports.TokenTransferFromJSON = exports.instanceOfTokenTransfer = void 0;
18
+ /**
19
+ * Check if a given object implements the TokenTransfer interface.
20
+ */
21
+ function instanceOfTokenTransfer(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "contract" in value;
24
+ isInstance = isInstance && "decimals" in value;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "symbol" in value;
27
+ isInstance = isInstance && "type" in value;
28
+ isInstance = isInstance && "from" in value;
29
+ isInstance = isInstance && "to" in value;
30
+ isInstance = isInstance && "value" in value;
31
+ return isInstance;
32
+ }
33
+ exports.instanceOfTokenTransfer = instanceOfTokenTransfer;
34
+ function TokenTransferFromJSON(json) {
35
+ return TokenTransferFromJSONTyped(json, false);
36
+ }
37
+ exports.TokenTransferFromJSON = TokenTransferFromJSON;
38
+ function TokenTransferFromJSONTyped(json, ignoreDiscriminator) {
39
+ if ((json === undefined) || (json === null)) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'contract': json['contract'],
44
+ 'decimals': json['decimals'],
45
+ 'name': json['name'],
46
+ 'symbol': json['symbol'],
47
+ 'type': json['type'],
48
+ 'from': json['from'],
49
+ 'to': json['to'],
50
+ 'value': json['value'],
51
+ };
52
+ }
53
+ exports.TokenTransferFromJSONTyped = TokenTransferFromJSONTyped;
54
+ function TokenTransferToJSON(value) {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+ 'contract': value.contract,
63
+ 'decimals': value.decimals,
64
+ 'name': value.name,
65
+ 'symbol': value.symbol,
66
+ 'type': value.type,
67
+ 'from': value.from,
68
+ 'to': value.to,
69
+ 'value': value.value,
70
+ };
71
+ }
72
+ exports.TokenTransferToJSON = TokenTransferToJSON;