Skip to content

Instantly share code, notes, and snippets.

@Ankarrr
Last active February 26, 2018 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ankarrr/f3f4173316223337696ea4c904e968ac to your computer and use it in GitHub Desktop.
Save Ankarrr/f3f4173316223337696ea4c904e968ac to your computer and use it in GitHub Desktop.
  1. name: a string,event 的名稱

  2. type: a string,always "event"

  3. inputs: an array,輸入的參數,包含:

    • name: a string,參數名稱

    • type: a string,參數的 data type(e.g. uint256)

    • components: an array,如果輸入的參數是 tuple(struct) type 才會有這個欄位。描述 struct 中包含的資料型態

    • indexed: true,如果這個參數被宣告為 indexed,反之為 false

  4. anonymous: true,如果 event 被宣告為 anonymous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment