Skip to content

Commit

Permalink
add nft-indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jan 9, 2025
1 parent ed99cab commit a79066c
Show file tree
Hide file tree
Showing 7 changed files with 834 additions and 2 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
3 changes: 3 additions & 0 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@
},
{
"url": "./tmp-swagger-gen/indexer/tx/v1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/indexer/nft/v1/query.swagger.json"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit a79066c

Please sign in to comment.