Skip to content

Commit

Permalink
Update arbitrum mappings file
Browse files Browse the repository at this point in the history
  • Loading branch information
seandotau authored Aug 20, 2023
1 parent 3460d66 commit 3dbd38e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/quickstart/quickstart_chains/arbitrum.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ Mapping functions define how chain data is transformed into the optimised GraphQ
Navigate to the default mapping function in the `src/mappings` directory. You will be able to see three exported functions: `handleBlock`, `handleLog`, and `handleTransaction`. Replace these functions with the following code:

```ts
import { Dividend, User } from "../types";
import { ClaimDividendBatchLog } from "../types/abi-interfaces/WinrStakingAbi";

async function checkGetUser(userID: string): Promise<User> {
let user = await User.get(userID.toLowerCase());
if (!user) {
Expand Down

0 comments on commit 3dbd38e

Please sign in to comment.