diff --git a/src/content/developers/tutorials/logging-events-smart-contracts/index.md b/src/content/developers/tutorials/logging-events-smart-contracts/index.md index b47d9b672e5..b80b7c94bea 100644 --- a/src/content/developers/tutorials/logging-events-smart-contracts/index.md +++ b/src/content/developers/tutorials/logging-events-smart-contracts/index.md @@ -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); diff --git a/src/content/translations/pl/developers/tutorials/logging-events-smart-contracts/index.md b/src/content/translations/pl/developers/tutorials/logging-events-smart-contracts/index.md index 2b1f04df8b5..f33e20711fa 100644 --- a/src/content/translations/pl/developers/tutorials/logging-events-smart-contracts/index.md +++ b/src/content/translations/pl/developers/tutorials/logging-events-smart-contracts/index.md @@ -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 diff --git a/src/content/translations/ro/developers/tutorials/logging-events-smart-contracts/index.md b/src/content/translations/ro/developers/tutorials/logging-events-smart-contracts/index.md index ee46243d5e4..0c8c2d166fc 100644 --- a/src/content/translations/ro/developers/tutorials/logging-events-smart-contracts/index.md +++ b/src/content/translations/ro/developers/tutorials/logging-events-smart-contracts/index.md @@ -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 diff --git a/src/content/translations/zh/developers/tutorials/logging-events-smart-contracts/index.md b/src/content/translations/zh/developers/tutorials/logging-events-smart-contracts/index.md index 523bd8b028d..4a34c48c03b 100644 --- a/src/content/translations/zh/developers/tutorials/logging-events-smart-contracts/index.md +++ b/src/content/translations/zh/developers/tutorials/logging-events-smart-contracts/index.md @@ -18,6 +18,8 @@ address: "0x19dE91Af973F404EDF5B4c093983a7c6E3EC8ccE" 在 solidity 中,[事件](/developers/docs/smart-contracts/anatomy/#events-and-logs)是智能合约可触发的调度信号。 去中心化应用或其他任何连接到以太坊 JSON-PRC API 的程序,都可以监听这些事件,并执行相应操作。 可以建立事件的索引,以便稍后可以搜索到事件历史记录。 +## 事件 {#events} + 在撰写这篇文章之时,以太坊区块链上最常见的事件是由 ERC20 代币转账时触发的 Transfer 事件。 ```solidity