rosetta-sdk-typescript
Version:
Typescript SDK to create and interact with Rosetta API implementations.
45 lines (44 loc) • 1.47 kB
JavaScript
;
/* 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.BlockTransactionToJSON = exports.BlockTransactionFromJSONTyped = exports.BlockTransactionFromJSON = void 0;
const _1 = require("./");
function BlockTransactionFromJSON(json) {
return BlockTransactionFromJSONTyped(json, false);
}
exports.BlockTransactionFromJSON = BlockTransactionFromJSON;
function BlockTransactionFromJSONTyped(json, ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
block_identifier: _1.BlockIdentifierFromJSON(json['block_identifier']),
transaction: _1.TransactionFromJSON(json['transaction']),
};
}
exports.BlockTransactionFromJSONTyped = BlockTransactionFromJSONTyped;
function BlockTransactionToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
block_identifier: _1.BlockIdentifierToJSON(value.block_identifier),
transaction: _1.TransactionToJSON(value.transaction),
};
}
exports.BlockTransactionToJSON = BlockTransactionToJSON;