Skip to content

Commit

Permalink
feat(kvindexer): add evm-nft submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Dec 16, 2024
1 parent db00a17 commit 7936479
Show file tree
Hide file tree
Showing 6 changed files with 841 additions and 10 deletions.
7 changes: 6 additions & 1 deletion app/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
kvindexer "github.com/initia-labs/kvindexer"
kvindexerconfig "github.com/initia-labs/kvindexer/config"
blocksubmodule "github.com/initia-labs/kvindexer/submodules/block"
nft "github.com/initia-labs/kvindexer/submodules/evm-nft"
tx "github.com/initia-labs/kvindexer/submodules/evm-tx"
"github.com/initia-labs/kvindexer/submodules/pair"
kvindexermodule "github.com/initia-labs/kvindexer/x/kvindexer"
Expand Down Expand Up @@ -56,7 +57,11 @@ func setupIndexer(
if err != nil {
return nil, nil, nil, nil, err
}
err = kvIndexerKeeper.RegisterSubmodules(smBlock, smTx, smPair)
smNft, err := nft.NewEvmNFTSubmodule(app.ac, app.appCodec, kvIndexerKeeper, app.EVMKeeper, smPair)
if err != nil {
return nil, nil, nil, nil, err
}

Check warning on line 63 in app/indexer.go

View check run for this annotation

Codecov / codecov/patch

app/indexer.go#L62-L63

Added lines #L62 - L63 were not covered by tests
err = kvIndexerKeeper.RegisterSubmodules(smBlock, smTx, smPair, smNft)
if err != nil {
return nil, nil, nil, nil, err
}
Expand Down
5 changes: 4 additions & 1 deletion client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@
},
{
"url": "./tmp-swagger-gen/indexer/tx/v1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/indexer/nft/v1/query.swagger.json"
}
]
}


2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit 7936479

Please sign in to comment.