You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tip: 34
title: TRC-34 Event subscribe to support contract without ABI
author: wubin1<wubin1@tron.network>
discussions to: https://github.com/tronprotocol/TIPs/issues/34
category: TRC
status: accepted
created: 2019-4-19
Abstract
To support contract without ABI, contract log parsing is separated from java-tron main program.
Moreover, developers could upload self ABI string to parse contract log and contract event, which could be more convenient to support some contracts without ABI.
Motivation
The contract does not need ABI anymore after the introduction of triggerConstantContract api, so tron-eventquery service could support developers to upload ABI and parse contract log and contract event.
Specification
In order to support contract without ABI, contract log parsing is separated from java-tron main program and we parse contract log in event plugin.
In addition, the function of parse contract log is configurable. It's is true by default.
event.subscribe = {
contractParse = true,
......
If it is false, we only pass the raw data to developers who subscribe events.
Moreover, event query service adds three new http api for supporting developers to developers parse contract log and contract event by self upload ABI string.
Developers could subscribe triggers more conveniently.
Backwards Compatibility
There are no backwards compatibility concerns.
Test Cases
Emitting events from contract that without ABI.
Emitting events from contract that with ABI.
The text was updated successfully, but these errors were encountered:
DorianRust
changed the title
TRC: Event subscribe to support not abi
TRC: Event subscribe to support contract without ABI
Apr 19, 2019
Abstract
To support contract without ABI, contract log parsing is separated from java-tron main program.
Moreover, developers could upload self ABI string to parse contract log and contract event, which could be more convenient to support some contracts without ABI.
Motivation
The contract does not need ABI anymore after the introduction of triggerConstantContract api, so tron-eventquery service could support developers to upload ABI and parse contract log and contract event.
Specification
In order to support contract without ABI, contract log parsing is separated from java-tron main program and we parse contract log in event plugin.
In addition, the function of parse contract log is configurable. It's is true by default.
event.subscribe = {
contractParse = true,
......
If it is false, we only pass the raw data to developers who subscribe events.
Moreover, event query service adds three new http api for supporting developers to developers parse contract log and contract event by self upload ABI string.
Developers could subscribe triggers more conveniently.
Backwards Compatibility
There are no backwards compatibility concerns.
Test Cases
The text was updated successfully, but these errors were encountered: