Skip to content

Commit

Permalink
apply the same fix to taurus leaderboard indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Dec 17, 2024
1 parent dd50ad8 commit 2f4d3a0
Show file tree
Hide file tree
Showing 4 changed files with 836 additions and 736 deletions.
2 changes: 1 addition & 1 deletion indexers/mainnet/leaderboard/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const project: SubstrateProject = {
dataSources: [
{
kind: SubstrateDatasourceKind.Runtime,
startBlock: 562800,
startBlock: 1,
mapping: {
file: "./dist/index.js",
handlers: [
Expand Down
107 changes: 2 additions & 105 deletions indexers/taurus/leaderboard/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,112 +49,9 @@ const project: SubstrateProject = {
mapping: {
file: "./dist/index.js",
handlers: [
// accounts
{
kind: SubstrateHandlerKind.Event,
handler: "handleTransferEvent",
filter: {
module: "balances",
method: "Transfer",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleRemarkEvent",
filter: {
module: "system",
method: "Remarked",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleExtrinsicSuccessEvent",
filter: {
module: "system",
method: "ExtrinsicSuccess",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleExtrinsicFailedEvent",
filter: {
module: "system",
method: "ExtrinsicFailed",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleTransactionFeePaidEvent",
filter: {
module: "transactionPayment",
method: "TransactionFeePaid",
},
},
// farmers
{
kind: SubstrateHandlerKind.Event,
handler: "handleFarmerVoteRewardEvent",
filter: {
module: "rewards",
method: "VoteReward",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleFarmerBlockRewardEvent",
filter: {
module: "rewards",
method: "BlockReward",
},
},
// operators & nominators
{
kind: SubstrateHandlerKind.Event,
handler: "handleOperatorRewardedEvent",
filter: {
module: "domains",
method: "OperatorRewarded",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleOperatorTaxCollectedEvent",
filter: {
module: "domains",
method: "OperatorTaxCollected",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleBundleStoredEvent",
filter: {
module: "domains",
method: "BundleStored",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleOperatorRegisteredEvent",
filter: {
module: "domains",
method: "OperatorRegistered",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleOperatorNominatedEvent",
filter: {
module: "domains",
method: "OperatorNominated",
},
},
{
kind: SubstrateHandlerKind.Event,
handler: "handleWithdrewStakeEvent",
filter: {
module: "domains",
method: "WithdrewStake",
},
kind: SubstrateHandlerKind.Block,
handler: "handleBlock",
},
],
},
Expand Down
Loading

0 comments on commit 2f4d3a0

Please sign in to comment.