Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ sourceUrl: https://ethereumdev.io/logging-data-with-events/
address: "0x19dE91Af973F404EDF5B4c093983a7c6E3EC8ccE"
---

In Solidity, [events](/developers/docs/smart-contracts/anatomy/#events-and-logs) are dispatched signals the smart contracts can fire. DApps, or anything connected to Ethereum JSON-RPC API, can listen to these events and act accordingly. Event can also be indexed, so that the event history is searchable later.
In Solidity, [events](/developers/docs/smart-contracts/anatomy/#events-and-logs) are dispatched signals the smart contracts can fire. DApps, or anything connected to Ethereum JSON-RPC API, can listen to these events and act accordingly. An event can also be indexed so that the event history is searchable later.

The most common event on the Ethereum blockchain at the time of writing this article is the Transfer event that is emitted by ERC20 tokens when someone transfer tokens.
## Events {#events}

The most common event on the Ethereum blockchain at the time of writing this article is the Transfer event that is emitted by ERC20 tokens when someone transfers tokens.

```solidity
event Transfer(address indexed from, address indexed to, uint256 value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ address: "0x19dE91Af973F404EDF5B4c093983a7c6E3EC8ccE"

W Solidity [zdarzenia](/developers/docs/smart-contracts/anatomy/#events-and-logs) to wysyłane sygnały, które mogą uruchamiać inteligentne kontrakty. Aplikacje zdecentralizowane lub wszystko, co jest połączone z interfejsem API Ethereum JSON-RPC, może nasłuchiwać tych zdarzeń i odpowiednio działać. Zdarzenie można również zindeksować, aby później można było przeszukiwać historię zdarzeń.

## Zdarzeniami {#events}

Najczęstszym zdarzeniem na blockchainie Ethereum w momencie pisania tego artykułu jest zdarzenie Transfer, które jest emitowane przez tokeny ERC20, gdy ktoś przenosi tokeny.

```solidity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ address: "0x19dE91Af973F404EDF5B4c093983a7c6E3EC8ccE"

În Solidity, [evenimentele](/developers/docs/smart-contracts/anatomy/#events-and-logs) sunt semnalele expediate pe care contractele inteligente le pot declanșa. Aplicațiile dapp sau orice conectat la Ethereum JSON-RPC API, pot asculta aceste evenimente și pot acționa în consecință. De asemenea, evenimentul poate fi indexat, pentru ca istoricul evenimentelor să poată fi căutat mai târziu.

## Evenimente {#events}

Cel mai comun eveniment pe Ethereum blockchain la momentul scrierii acestui articol este evenimentul de transfer, care este emis de tokenuri ERC20 atunci când cineva transferă tokenuri.

```solidity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ address: "0x19dE91Af973F404EDF5B4c093983a7c6E3EC8ccE"

在 solidity 中,[事件](/developers/docs/smart-contracts/anatomy/#events-and-logs)是智能合约可触发的调度信号。 去中心化应用或其他任何连接到以太坊 JSON-PRC API 的程序,都可以监听这些事件,并执行相应操作。 可以建立事件的索引,以便稍后可以搜索到事件历史记录。

## 事件 {#events}

在撰写这篇文章之时,以太坊区块链上最常见的事件是由 ERC20 代币转账时触发的 Transfer 事件。

```solidity
Expand Down