text: /*******************************************************************************
  *  (c) 2019 Zondax GmbH
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  *  Unless required by applicable law or agreed to in writing, software
  *  distributed under the License is distributed on an "AS IS" BASIS,
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  ********************************************************************************/
  #pragma once
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #include "parser_common.h"
  #include "substrate_methods_V1.h"
  #include "substrate_types_V1.h"
  #include <stddef.h>
  #include <stdint.h>
  
  // Read functions
  parser_error_t _readAccountId_V1(parser_context_t* c, pd_AccountId_V1_t* v);
  parser_error_t _readAccountIndex_V1(parser_context_t* c, pd_AccountIndex_V1_t* v);
  parser_error_t _readAccountVoteSplit_V1(parser_context_t* c, pd_AccountVoteSplit_V1_t* v);
  parser_error_t _readAccountVoteStandard_V1(parser_context_t* c, pd_AccountVoteStandard_V1_t* v);
  parser_error_t _readAccountVote_V1(parser_context_t* c, pd_AccountVote_V1_t* v);
  parser_error_t _readBabeEquivocationProof_V1(parser_context_t* c, pd_BabeEquivocationProof_V1_t* v);
  parser_error_t _readCallHashOf_V1(parser_context_t* c, pd_CallHashOf_V1_t* v);
  parser_error_t _readChangesTrieConfiguration_V1(parser_context_t* c, pd_ChangesTrieConfiguration_V1_t* v);
  parser_error_t _readCompactAccountIndex_V1(parser_context_t* c, pd_CompactAccountIndex_V1_t* v);
  parser_error_t _readCompactActiveIndex_V1(parser_context_t* c, pd_CompactActiveIndex_V1_t* v);
  parser_error_t _readCompactAuctionIndex_V1(parser_context_t* c, pd_CompactAuctionIndex_V1_t* v);
  parser_error_t _readCompactBountyIndex_V1(parser_context_t* c, pd_CompactBountyIndex_V1_t* v);
  parser_error_t _readCompactEraIndex_V1(parser_context_t* c, pd_CompactEraIndex_V1_t* v);
  parser_error_t _readCompactLeasePeriodOf_V1(parser_context_t* c, pd_CompactLeasePeriodOf_V1_t* v);
  parser_error_t _readCompactMemberCount_V1(parser_context_t* c, pd_CompactMemberCount_V1_t* v);
  parser_error_t _readCompactMoment_V1(parser_context_t* c, pd_CompactMoment_V1_t* v);
  parser_error_t _readCompactParaId_V1(parser_context_t* c, pd_CompactParaId_V1_t* v);
  parser_error_t _readCompactPerBill_V1(parser_context_t* c, pd_CompactPerBill_V1_t* v);
  parser_error_t _readCompactPerquintill_V1(parser_context_t* c, pd_CompactPerquintill_V1_t* v);
  parser_error_t _readCompactPropIndex_V1(parser_context_t* c, pd_CompactPropIndex_V1_t* v);
  parser_error_t _readCompactProposalIndex_V1(parser_context_t* c, pd_CompactProposalIndex_V1_t* v);
  parser_error_t _readCompactReferendumIndex_V1(parser_context_t* c, pd_CompactReferendumIndex_V1_t* v);
  parser_error_t _readCompactRegistrarIndex_V1(parser_context_t* c, pd_CompactRegistrarIndex_V1_t* v);
  parser_error_t _readCompactWeight_V1(parser_context_t* c, pd_CompactWeight_V1_t* v);
  parser_error_t _readConviction_V1(parser_context_t* c, pd_Conviction_V1_t* v);
  parser_error_t _readEcdsaSignature_V1(parser_context_t* c, pd_EcdsaSignature_V1_t* v);
  parser_error_t _readEraIndex_V1(parser_context_t* c, pd_EraIndex_V1_t* v);
  parser_error_t _readEthereumAddress_V1(parser_context_t* c, pd_EthereumAddress_V1_t* v);
  parser_error_t _readGrandpaEquivocationProof_V1(parser_context_t* c, pd_GrandpaEquivocationProof_V1_t* v);
  parser_error_t _readHeadData_V1(parser_context_t* c, pd_HeadData_V1_t* v);
  parser_error_t _readHrmpChannelId_V1(parser_context_t* c, pd_HrmpChannelId_V1_t* v);
  parser_error_t _readIdentityFields_V1(parser_context_t* c, pd_IdentityFields_V1_t* v);
  parser_error_t _readIdentityInfo_V1(parser_context_t* c, pd_IdentityInfo_V1_t* v);
  parser_error_t _readIdentityJudgement_V1(parser_context_t* c, pd_IdentityJudgement_V1_t* v);
  parser_error_t _readKeyOwnerProof_V1(parser_context_t* c, pd_KeyOwnerProof_V1_t* v);
  parser_error_t _readKeyValue_V1(parser_context_t* c, pd_KeyValue_V1_t* v);
  parser_error_t _readKey_V1(parser_context_t* c, pd_Key_V1_t* v);
  parser_error_t _readKeys_V1(parser_context_t* c, pd_Keys_V1_t* v);
  parser_error_t _readLeasePeriodOf_V1(parser_context_t* c, pd_LeasePeriodOf_V1_t* v);
  parser_error_t _readLookupSource_V1(parser_context_t* c, pd_LookupSource_V1_t* v);
  parser_error_t _readMemberCount_V1(parser_context_t* c, pd_MemberCount_V1_t* v);
  parser_error_t _readMultiAsset_V1(parser_context_t* c, pd_MultiAsset_V1_t* v);
  parser_error_t _readMultiLocation_V1(parser_context_t* c, pd_MultiLocation_V1_t* v);
  parser_error_t _readMultiSignature_V1(parser_context_t* c, pd_MultiSignature_V1_t* v);
  parser_error_t _readMultiSigner_V1(parser_context_t* c, pd_MultiSigner_V1_t* v);
  parser_error_t _readNextConfigDescriptor_V1(parser_context_t* c, pd_NextConfigDescriptor_V1_t* v);
  parser_error_t _readOpaqueCall_V1(parser_context_t* c, pd_OpaqueCall_V1_t* v);
  parser_error_t _readOptionAccountId_V1(parser_context_t* c, pd_OptionAccountId_V1_t* v);
  parser_error_t _readOptionChangesTrieConfiguration_V1(parser_context_t* c, pd_OptionChangesTrieConfiguration_V1_t* v);
  parser_error_t _readOptionMultiSignature_V1(parser_context_t* c, pd_OptionMultiSignature_V1_t* v);
  parser_error_t _readOptionMultiSigner_V1(parser_context_t* c, pd_OptionMultiSigner_V1_t* v);
  parser_error_t _readOptionPeriod_V1(parser_context_t* c, pd_OptionPeriod_V1_t* v);
  parser_error_t _readOptionProxyType_V1(parser_context_t* c, pd_OptionProxyType_V1_t* v);
  parser_error_t _readOptionReferendumIndex_V1(parser_context_t* c, pd_OptionReferendumIndex_V1_t* v);
  parser_error_t _readOptionStatementKind_V1(parser_context_t* c, pd_OptionStatementKind_V1_t* v);
  parser_error_t _readOptionTimepoint_V1(parser_context_t* c, pd_OptionTimepoint_V1_t* v);
  parser_error_t _readOptionTupleBalanceOfBalanceOfBlockNumber_V1(parser_context_t* c, pd_OptionTupleBalanceOfBalanceOfBlockNumber_V1_t* v);
  parser_error_t _readParaId_V1(parser_context_t* c, pd_ParaId_V1_t* v);
  parser_error_t _readParachainsInherentData_V1(parser_context_t* c, pd_ParachainsInherentData_V1_t* v);
  parser_error_t _readPerbill_V1(parser_context_t* c, pd_Perbill_V1_t* v);
  parser_error_t _readPercent_V1(parser_context_t* c, pd_Percent_V1_t* v);
  parser_error_t _readPeriod_V1(parser_context_t* c, pd_Period_V1_t* v);
  parser_error_t _readPriority_V1(parser_context_t* c, pd_Priority_V1_t* v);
  parser_error_t _readProxyType_V1(parser_context_t* c, pd_ProxyType_V1_t* v);
  parser_error_t _readRawSolution_V1(parser_context_t* c, pd_RawSolution_V1_t* v);
  parser_error_t _readReferendumIndex_V1(parser_context_t* c, pd_ReferendumIndex_V1_t* v);
  parser_error_t _readRegistrarIndex_V1(parser_context_t* c, pd_RegistrarIndex_V1_t* v);
  parser_error_t _readRenouncing_V1(parser_context_t* c, pd_Renouncing_V1_t* v);
  parser_error_t _readRewardDestination_V1(parser_context_t* c, pd_RewardDestination_V1_t* v);
  parser_error_t _readSessionIndex_V1(parser_context_t* c, pd_SessionIndex_V1_t* v);
  parser_error_t _readSignature_V1(parser_context_t* c, pd_Signature_V1_t* v);
  parser_error_t _readSocietyJudgement_V1(parser_context_t* c, pd_SocietyJudgement_V1_t* v);
  parser_error_t _readSolutionOrSnapshotSize_V1(parser_context_t* c, pd_SolutionOrSnapshotSize_V1_t* v);
  parser_error_t _readStatementKind_V1(parser_context_t* c, pd_StatementKind_V1_t* v);
  parser_error_t _readStreamDependency_V1(parser_context_t* c, pd_StreamDependency_V1_t* v);
  parser_error_t _readTimepoint_V1(parser_context_t* c, pd_Timepoint_V1_t* v);
  parser_error_t _readTupleAccountIdData_V1(parser_context_t* c, pd_TupleAccountIdData_V1_t* v);
  parser_error_t _readTupleBalanceOfBalanceOfBlockNumber_V1(parser_context_t* c, pd_TupleBalanceOfBalanceOfBlockNumber_V1_t* v);
  parser_error_t _readValidationCode_V1(parser_context_t* c, pd_ValidationCode_V1_t* v);
  parser_error_t _readValidatorPrefs_V1(parser_context_t* c, pd_ValidatorPrefs_V1_t* v);
  parser_error_t _readVecAccountId_V1(parser_context_t* c, pd_VecAccountId_V1_t* v);
  parser_error_t _readVecKeyValue_V1(parser_context_t* c, pd_VecKeyValue_V1_t* v);
  parser_error_t _readVecKey_V1(parser_context_t* c, pd_VecKey_V1_t* v);
  parser_error_t _readVecLookupSource_V1(parser_context_t* c, pd_VecLookupSource_V1_t* v);
  parser_error_t _readVecMultiAsset_V1(parser_context_t* c, pd_VecMultiAsset_V1_t* v);
  parser_error_t _readVecTupleAccountIdData_V1(parser_context_t* c, pd_VecTupleAccountIdData_V1_t* v);
  parser_error_t _readVestingInfo_V1(parser_context_t* c, pd_VestingInfo_V1_t* v);
  parser_error_t _readVote_V1(parser_context_t* c, pd_Vote_V1_t* v);
  parser_error_t _readWeight_V1(parser_context_t* c, pd_Weight_V1_t* v);
  parser_error_t _readXcm_V1(parser_context_t* c, pd_Xcm_V1_t* v);
  parser_error_t _readu8_array_32_V1(parser_context_t* c, pd_u8_array_32_V1_t* v);
  
  parser_error_t _readSubAccount_V1(parser_context_t* c, eq_Subaccount_t* v);
  
  // toString functions
  parser_error_t _toStringAccountId_V1(
      const pd_AccountId_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringAccountIndex_V1(
      const pd_AccountIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringAccountVoteSplit_V1(
      const pd_AccountVoteSplit_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringAccountVoteStandard_V1(
      const pd_AccountVoteStandard_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringAccountVote_V1(
      const pd_AccountVote_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringBabeEquivocationProof_V1(
      const pd_BabeEquivocationProof_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCallHashOf_V1(
      const pd_CallHashOf_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringChangesTrieConfiguration_V1(
      const pd_ChangesTrieConfiguration_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactAccountIndex_V1(
      const pd_CompactAccountIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactActiveIndex_V1(
      const pd_CompactActiveIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactAuctionIndex_V1(
      const pd_CompactAuctionIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactBountyIndex_V1(
      const pd_CompactBountyIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactEraIndex_V1(
      const pd_CompactEraIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactLeasePeriodOf_V1(
      const pd_CompactLeasePeriodOf_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactMemberCount_V1(
      const pd_CompactMemberCount_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactMoment_V1(
      const pd_CompactMoment_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactParaId_V1(
      const pd_CompactParaId_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactPerBill_V1(
      const pd_CompactPerBill_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactPerquintill_V1(
      const pd_CompactPerquintill_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactPropIndex_V1(
      const pd_CompactPropIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactProposalIndex_V1(
      const pd_CompactProposalIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactReferendumIndex_V1(
      const pd_CompactReferendumIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactRegistrarIndex_V1(
      const pd_CompactRegistrarIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCompactWeight_V1(
      const pd_CompactWeight_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringConviction_V1(
      const pd_Conviction_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringEcdsaSignature_V1(
      const pd_EcdsaSignature_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringEraIndex_V1(
      const pd_EraIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringEthereumAddress_V1(
      const pd_EthereumAddress_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringGrandpaEquivocationProof_V1(
      const pd_GrandpaEquivocationProof_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringHeadData_V1(
      const pd_HeadData_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringHrmpChannelId_V1(
      const pd_HrmpChannelId_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringIdentityFields_V1(
      const pd_IdentityFields_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringIdentityInfo_V1(
      const pd_IdentityInfo_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringIdentityJudgement_V1(
      const pd_IdentityJudgement_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringKeyOwnerProof_V1(
      const pd_KeyOwnerProof_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringKeyValue_V1(
      const pd_KeyValue_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringKey_V1(
      const pd_Key_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringKeys_V1(
      const pd_Keys_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringLeasePeriodOf_V1(
      const pd_LeasePeriodOf_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringLookupSource_V1(
      const pd_LookupSource_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringMemberCount_V1(
      const pd_MemberCount_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringMultiAsset_V1(
      const pd_MultiAsset_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringMultiLocation_V1(
      const pd_MultiLocation_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringMultiSignature_V1(
      const pd_MultiSignature_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringMultiSigner_V1(
      const pd_MultiSigner_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringNextConfigDescriptor_V1(
      const pd_NextConfigDescriptor_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOpaqueCall_V1(
      const pd_OpaqueCall_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionAccountId_V1(
      const pd_OptionAccountId_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionChangesTrieConfiguration_V1(
      const pd_OptionChangesTrieConfiguration_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionMultiSignature_V1(
      const pd_OptionMultiSignature_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionMultiSigner_V1(
      const pd_OptionMultiSigner_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionPeriod_V1(
      const pd_OptionPeriod_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionProxyType_V1(
      const pd_OptionProxyType_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionReferendumIndex_V1(
      const pd_OptionReferendumIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionStatementKind_V1(
      const pd_OptionStatementKind_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionTimepoint_V1(
      const pd_OptionTimepoint_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringOptionTupleBalanceOfBalanceOfBlockNumber_V1(
      const pd_OptionTupleBalanceOfBalanceOfBlockNumber_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringParaId_V1(
      const pd_ParaId_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringParachainsInherentData_V1(
      const pd_ParachainsInherentData_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringPerbill_V1(
      const pd_Perbill_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringPercent_V1(
      const pd_Percent_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringPeriod_V1(
      const pd_Period_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringPriority_V1(
      const pd_Priority_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringProxyType_V1(
      const pd_ProxyType_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringRawSolution_V1(
      const pd_RawSolution_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringReferendumIndex_V1(
      const pd_ReferendumIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringRegistrarIndex_V1(
      const pd_RegistrarIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringRenouncing_V1(
      const pd_Renouncing_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringRewardDestination_V1(
      const pd_RewardDestination_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringSessionIndex_V1(
      const pd_SessionIndex_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringSignature_V1(
      const pd_Signature_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringSocietyJudgement_V1(
      const pd_SocietyJudgement_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringSolutionOrSnapshotSize_V1(
      const pd_SolutionOrSnapshotSize_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringStatementKind_V1(
      const pd_StatementKind_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringStreamDependency_V1(
      const pd_StreamDependency_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringTimepoint_V1(
      const pd_Timepoint_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringTupleAccountIdData_V1(
      const pd_TupleAccountIdData_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringTupleBalanceOfBalanceOfBlockNumber_V1(
      const pd_TupleBalanceOfBalanceOfBlockNumber_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringValidationCode_V1(
      const pd_ValidationCode_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringValidatorPrefs_V1(
      const pd_ValidatorPrefs_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVecAccountId_V1(
      const pd_VecAccountId_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVecKeyValue_V1(
      const pd_VecKeyValue_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVecKey_V1(
      const pd_VecKey_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVecLookupSource_V1(
      const pd_VecLookupSource_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVecMultiAsset_V1(
      const pd_VecMultiAsset_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVecTupleAccountIdData_V1(
      const pd_VecTupleAccountIdData_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVestingInfo_V1(
      const pd_VestingInfo_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringVote_V1(
      const pd_Vote_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringWeight_V1(
      const pd_Weight_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringXcm_V1(
      const pd_Xcm_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringu8_array_32_V1(
      const pd_u8_array_32_V1_t* v,
      char* outValue,
      uint16_t outValueLen,
      uint8_t pageIdx,
      uint8_t* pageCount);
  
  parser_error_t _toStringCurrency_V1(
          const eq_Currency_t* v,
          char* outValue,
          uint16_t outValueLen,
          uint8_t pageIdx,
          uint8_t* pageCount);
  
  parser_error_t _toStringCurrency(
          const eq_Currency_t* v,
          char* outValue,
          uint16_t outValueLen);
  
  parser_error_t _toStringSubaccount_V1(
          const eq_Subaccount_t* v,
          char* outValue,
          uint16_t outValueLen,
          uint8_t pageIdx,
          uint8_t* pageCount);
  
  parser_error_t _toStringSubaccount(
          const eq_Subaccount_t* v,
          char* outValue,
          uint16_t outValueLen);
  
  #ifdef __cplusplus
  }
  #endif
  