Skip to content

Commit

Permalink
Merge pull request #35 from AudiusProject/jowlee-update-claim-event
Browse files Browse the repository at this point in the history
Update claim event
  • Loading branch information
jowlee authored and michellebrier committed Oct 9, 2023
1 parent a17c671 commit 8f24e12
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/protocol-dashboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/protocol-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@audius/libs": "1.1.4",
"@audius/libs": "1.1.5",
"@audius/stems": "^0.3.3",
"@reduxjs/toolkit": "^1.4.0",
"chart.js": "^2.9.3",
Expand Down
18 changes: 18 additions & 0 deletions packages/protocol-dashboard/src/services/Audius/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,22 @@ export default class Claim {
const info = await this.getContract().claimPending(address)
return info
}

async getClaimProcessedEvents(
claimer: Address
): Promise<
Array<{
blockNumber: number
claimer: Address
rewards: BN
oldTotal: BN
newTotal: BN
}>
> {
await this.aud.hasPermissions()
const info = await this.getContract().getClaimProcessedEvents({
claimer
})
return info
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function fetchTimeline(
aud.Governance.getProposalsForAddresses([wallet]),
aud.Delegate.getIncreaseDelegateStakeEvents(wallet),
aud.Delegate.getDecreaseDelegateStakeEvents(wallet),
aud.Delegate.getClaimEvents(wallet),
aud.Claim.getClaimProcessedEvents(wallet),
aud.Delegate.getReceiveDelegationIncreaseEvents(wallet),
aud.ServiceProviderClient.getRegisteredServiceProviderEvents(wallet),
aud.ServiceProviderClient.getDeregisteredServiceProviderEvents(wallet),
Expand Down

0 comments on commit 8f24e12

Please sign in to comment.