Legacy component. For parsing contract query responses, use the "SmartContractQueriesController" instead. For parsing smart contract outcome (return data), use the "SmartContractTransactionsOutcomeParser" instead. For parding smart contract events, use the "TransactionEventsParser" instead.

Parses contract query responses and smart contract results. The parsing involves some heuristics, in order to handle slight inconsistencies (e.g. some SCRs are present on API, but missing on Gateway).

Constructors

Properties

argsSerializer: IArgsSerializer

Methods

  • Internal

    For internal use only.

    Once the legacy "ResultParser" is deprecated & removed, this logic will be absorbed into "TransactionEventsParser".

    Parameters

    • options: {
          dataItems: Buffer[];
          eventDefinition: {
              inputs: IEventInputDefinition[];
          };
          topics: Buffer[];
      }
      • dataItems: Buffer[]
      • eventDefinition: {
            inputs: IEventInputDefinition[];
        }
        • inputs: IEventInputDefinition[]
      • topics: Buffer[]

    Returns any

  • Legacy method, use "TransactionEventsParser.parseEvent()" instead.

    Parameters

    • transactionEvent: ITransactionEvent
    • eventDefinition: {
          inputs: IEventInputDefinition[];
      }
      • inputs: IEventInputDefinition[]

    Returns any