Skip to content

Commit

Permalink
feat: referral sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed May 31, 2024
1 parent 2caa677 commit 5a3ac11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ type UserBond @entity{
id: ID!
ref: String!,
height: BigInt!,
date: Date!
ts: BigInt!
}
2 changes: 1 addition & 1 deletion src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ export async function handleBondExecution(
id: msg.msg.decodedMsg.sender,
ref: referral,
height: BigInt(msg.block.header.height),
date: new Date(msg.block.header.time.getTime())
ts: BigInt(msg.block.header.time.getTime())
})).save();
}

0 comments on commit 5a3ac11

Please sign in to comment.