Skip to content

Commit

Permalink
Fix subgraph from param
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuanx committed Feb 14, 2024
1 parent a7e8549 commit c73cd93
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions subgraph/src/token-table-unlocker-v-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function handleActualCancelled(event: ActualCancelledEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'ActualCancelled'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.actualId = event.params.actualId
entity.pendingAmountClaimable = event.params.pendingAmountClaimable
Expand All @@ -66,7 +66,7 @@ export function handleActualCreated(event: ActualCreatedEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'ActualCreated'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.presetId = event.params.presetId
entity.actualId = event.params.actualId
Expand Down Expand Up @@ -128,7 +128,7 @@ export function handlePresetCreated(event: PresetCreatedEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'PresetCreated'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.presetId = event.params.presetId
entity.projectId = context.getString('projectId')
Expand All @@ -146,7 +146,7 @@ export function handleTokensClaimed(event: TokensClaimedEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'TokensClaimed'
entity.from = event.transaction.from
entity.from = event.params.caller
entity.timestamp = event.block.timestamp
entity.actualId = event.params.actualId
entity.to = event.params.to
Expand Down Expand Up @@ -176,7 +176,7 @@ export function handleTokensWithdrawn(event: TokensWithdrawnEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'TokensWithdrawn'
entity.from = event.transaction.from
entity.from = event.params.by
entity.timestamp = event.block.timestamp
entity.by = event.params.by
entity.amount = event.params.amount
Expand All @@ -198,7 +198,7 @@ export function handleClaimingDelegateSet(
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'ClaimingDelegateSet'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.delegate = event.params.delegate
entity.projectId = context.getString('projectId')
Expand All @@ -218,7 +218,7 @@ export function handleCancelDisabled(event: CancelDisabledEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'CancelDisabled'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.projectId = context.getString('projectId')
entity.transactionHash = event.transaction.hash
Expand All @@ -236,7 +236,7 @@ export function handleHookDisabled(event: HookDisabledEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'HookDisabled'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.projectId = context.getString('projectId')
entity.transactionHash = event.transaction.hash
Expand All @@ -250,7 +250,7 @@ export function handleWithdrawDisabled(event: WithdrawDisabledEvent): void {
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.event = 'WithdrawDisabled'
entity.from = event.transaction.from
entity.from = TokenTableUnlockerV2.bind(event.address).owner()
entity.timestamp = event.block.timestamp
entity.transactionHash = event.transaction.hash
entity.projectId = context.getString('projectId')
Expand Down

0 comments on commit c73cd93

Please sign in to comment.