Skip to content

Commit

Permalink
feat(kvindexer): add evm-nft submodule (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 authored Dec 17, 2024
1 parent b30593b commit f0aa106
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
}
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 f0aa106

Please sign in to comment.