====== A.1.4 Event Class ====== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:start| Basic Ethereum Data Store]] Events are created when contract-based transactions create logs. Contains enriched data from table "Contract" and "Token"using contract ABI to e.g. decode name of the contract method. See: [[https://docs.google.com/spreadsheets/d/1ehCIQxjSZcVLnddDWHBzhPb8h83mHWZxvyX9eckghbU/edit#gid=1505686545]]
{{ dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:screen_shot_2021-06-09_at_6.47.52_pm.png?300 |}} The [[dido:public:ra:xapend:xapend.a_glossary:e:ethereum|Ethereum]] Event Class
===== Id ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] Primary Key ^ Description | ID | ^ Datatype | text (composite) | ^ Example | 0x00000000cc7c3b7faeca2e5059320a584cedbafe55c82ced3e57948ae21e3609 | ===== Event ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] Possible values: Transfer | Sync | Swapped | Burned | Birth | Approval | Cancel | Deposited | OnTokenPurchase | Swap | Mint | Deposit | OracleRequest | DividendPayed | buyLevelEvent ... ^ Description | The event name | ^ Datatype | text | ^ Example | Transfer | ===== Log Index ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Integer of the event index position in the block | ^ Datatype | numeric | ^ Example | 82 | ===== Transaction Index ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Integer of the transactions index position event was created from | ^ Datatype | numeric | ^ Example | 33 | ===== Transaction Hash ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Hash of the transactions this event was created from | ^ Datatype | text | ^ Example | 0xeaf089acba8a7ca74feee1b35ca0ab62aa42c5ba3c746a4aed94a308d6a674fb | ===== Block Hash ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Hash of the block where this event was in | ^ Datatype | text | ^ Example | 0x7eaea3baacd3b5ffb9833abf9c77a851db0feb874a93d97cfca89c9e891adaa2 | ===== Timestamp ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Timestamp | ^ Datatype | timestamp with time zone | ^ Example | 2020-02-21 23:34:19+00 | ===== Probablity ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] Currently, these are set to 1 for all data that we can retrieve from the [[dido:public:ra:xapend:xapend.a_glossary:b:blockchain|blockchain]] or verify via Etherscan. In case we’re able to find a matching contract in our database by comparing the byte code of a contract or find a similar contract on a different blockchain, this is reflected in the probability. The probabilities are then copied into the Event and Call tables to give an indication of how sure we are this is the right translation. ^ Description | Anyblock custom field | ^ Datatype | numeric | ^ Example | 0.9 | ===== Address ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Address from which this event originated (which is the contract) | ^ Datatype | text | ^ Example | 0x4D58b1E8007078eCc6eaf6DF7527b64E46831D23 | ===== Block Number ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Block number where this event is lokated | ^ Datatype | numeric | ^ Example | 9529604 | ===== Args ===== [[dido:public:s_cli:05_contents:03_prt:08_basic_dido_objects:04_event:start| Return to Top]] ^ Description | Array of argument objects coming from that event. Needed for executing method in contract (method parameters) | ^ Datatype | jsonb | ^ Example | [ {""hex"": ""0x6cdFB19632E4D0805064B741d39c6Ff0A9141952"", ""pos"": 0, ""name"": ""from"", ""type"": ""address""}, {""hex"": ""0x35CdCbDB6a5Aef115B9306Ce9C79a69321300203"", ""pos"": 1, ""name"": ""to"", ""type"": ""address""}, {""hex"": ""0x11b"", ""num"": 283, ""pos"": 2, ""name"": ""value"", ""type"": ""uint256"", ""scaled"": 2.83} ] | /**=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- /* To add a discussion page to this page, comment out the line that says ~~DISCUSSION:off~~ */ ~~DISCUSSION:on|Outstanding Issues~~ ~~DISCUSSION:off~~