UNPKG

rosetta-sdk-typescript

Version:

Typescript SDK to create and interact with Rosetta API implementations.

45 lines (44 loc) 1.66 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Rosetta * Build Once. Integrate Your Blockchain Everywhere. * * The version of the OpenAPI document: 1.4.10 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.MempoolTransactionRequestToJSON = exports.MempoolTransactionRequestFromJSONTyped = exports.MempoolTransactionRequestFromJSON = void 0; const _1 = require("./"); function MempoolTransactionRequestFromJSON(json) { return MempoolTransactionRequestFromJSONTyped(json, false); } exports.MempoolTransactionRequestFromJSON = MempoolTransactionRequestFromJSON; function MempoolTransactionRequestFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { network_identifier: _1.NetworkIdentifierFromJSON(json['network_identifier']), transaction_identifier: _1.TransactionIdentifierFromJSON(json['transaction_identifier']), }; } exports.MempoolTransactionRequestFromJSONTyped = MempoolTransactionRequestFromJSONTyped; function MempoolTransactionRequestToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { network_identifier: _1.NetworkIdentifierToJSON(value.network_identifier), transaction_identifier: _1.TransactionIdentifierToJSON(value.transaction_identifier), }; } exports.MempoolTransactionRequestToJSON = MempoolTransactionRequestToJSON;