Skip to content

Commit

Permalink
Zapper, contributor doc updates (#41)
Browse files Browse the repository at this point in the history
* Zapper

* Update CONTRIBUTE.md

* more zapper methods

* Update testTxHashes.ts

* Update Interpreter.test.js.snap

* Update CONTRIBUTE.md
  • Loading branch information
leojacob1 authored Aug 25, 2022
1 parent 894c601 commit 68ce6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ You made it to the fun part, congrats. Here, I'll walk through an example interp
- **{userAddress} (userName is recommended)**: The address of the user interacting with the contract
- **{\_\_NATIVEVALUETRANSFERRED\_\_}**: The amount of ETH transferred in a NFT sale.

- **exampleDescription**: Just like `exampleDescriptionTemplate` but with example values plugged in for the variables.
- **exampleDescription**: Just like `exampleDescriptionTemplate` but with example values plugged in for the variables. These values can be whatever you like and are just meant to show what the `exampleDescriptionTemplate` field could look like when it gets filled in.
- **keywords**: An object with each key that matches a variable wrapped in curly braces from`exampleDescriptionTemplate` and each value being an object with "instructions" on how to isolate the variable's value from the transaction's event logs. This inner object has the following keys...

- **key**: The name of the field from the event. For example, if you want the value of a Transfer, this would likely be "value" or "amount". If you want an ERC20 token's symbol, use your filters to isolate an event emitted from the address of the token's contract, and use `"key": "contractSymbol"`. See the Uniswap interpretation for an example of this.
Expand Down

0 comments on commit 68ce6b4

Please sign in to comment.