Skip to content

feat(iota-indexer, iota-json-rpc-types, ts-sdk, explorer): Support TransactionKind filters #5801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 19, 2025

Conversation

samuel-rufi
Copy link
Member

@samuel-rufi samuel-rufi commented Mar 6, 2025

Description of change

Adds support for the TransactionKind and TransactionKindIn filters.

Relevant PRs

#5434
#5469

Type of change

  • Enhancement (a non-breaking change which adds functionality)

@samuel-rufi samuel-rufi requested review from a team as code owners March 6, 2025 14:01
Copy link

vercel bot commented Mar 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
apps-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2025 4:25pm
rebased-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2025 4:25pm
wallet-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2025 4:25pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Mar 19, 2025 4:25pm

@iota-ci iota-ci added infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group. labels Mar 6, 2025
@github-actions github-actions bot added ts-sdk Issues related to the TS SDK explorer Issues related to the Explorer and removed sc-platform Issues related to the Smart Contract Platform group. infrastructure Issues related to the Infrastructure Team labels Mar 6, 2025
@samuel-rufi samuel-rufi force-pushed the feat/rpc-transaction-kind-filter branch from db6ad7e to 4eb77bf Compare March 6, 2025 14:36
@iota-ci iota-ci added infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group. labels Mar 6, 2025
samuel-rufi and others added 2 commits March 11, 2025 12:49
…ters in `query_transaction_blocks_impl` (#5434)

* feat: implement TransactionFilter::TransactionKind{In}

* refactor: Update openrpc.json

* refactor: Format

* refactor: Clippy

* refactor: Remove TransactionFilter::TransactionKindIn filter

* Simplify format!

Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>

* Revert "refactor: Remove TransactionFilter::TransactionKindIn filter"

This reverts commit d993a49.

* types: Differ between SystemTransactions

* types: Simplify format!

* types: impl From<&TransactionKind>

* types: Change to human readable params

* types: Rename constant

* types: Use strum

* types: Update openrpc spec

* types: Improve error message

* Refactor: Maintain backward compatibility with former iota_indexer::types::TransactionKind enum

Co-authored-by: Konstantinos Demartinos <konstantinos.demartinos@iota.org>

* refactor: Use IotaTransactionKind directly in the filter

* refactor: Rename var

* refactor: Generate Spec

* test(iota-indexer): add test for TransactionKind(In) filter

* refactor: Document `SystemTransaction` and impl `is_system_transaction` to better align `IotaTransactionKind` with the `TransactionKind` type

* refactor: Regenerate openrpc spec

---------

Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>
Co-authored-by: Konstantinos Demartinos <konstantinos.demartinos@iota.org>
Co-authored-by: Roman Overko <roman.overko@iota.org>
…ctionKind` and `TransactionKindIn` (#5469)

* feat: implement TransactionFilter::TransactionKind{In}

* refactor: Update openrpc.json

* refactor: Format

* refactor: Clippy

* chore: re-generate ts sdk files after openrpc schema update

* feat(ts-sdk): add TransactionKind public enum

* refactor(explorer): update transactionKind type

* refactor(ts-sdk): Update graphql codegen

* feat(iota-indexer, iota-json-rpc-types): Support transaction kind filters in `query_transaction_blocks_impl` (#5434)

* feat: implement TransactionFilter::TransactionKind{In}

* refactor: Update openrpc.json

* refactor: Format

* refactor: Clippy

* refactor: Remove TransactionFilter::TransactionKindIn filter

* Simplify format!

Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>

* Revert "refactor: Remove TransactionFilter::TransactionKindIn filter"

This reverts commit d993a49.

* types: Differ between SystemTransactions

* types: Simplify format!

* types: impl From<&TransactionKind>

* types: Change to human readable params

* types: Rename constant

* types: Use strum

* types: Update openrpc spec

* types: Improve error message

* Refactor: Maintain backward compatibility with former iota_indexer::types::TransactionKind enum

Co-authored-by: Konstantinos Demartinos <konstantinos.demartinos@iota.org>

* refactor: Use IotaTransactionKind directly in the filter

* refactor: Rename var

* refactor: Generate Spec

* test(iota-indexer): add test for TransactionKind(In) filter

* refactor: Document `SystemTransaction` and impl `is_system_transaction` to better align `IotaTransactionKind` with the `TransactionKind` type

* refactor: Regenerate openrpc spec

---------

Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>
Co-authored-by: Konstantinos Demartinos <konstantinos.demartinos@iota.org>
Co-authored-by: Roman Overko <roman.overko@iota.org>

* feat(ts-sdk): update TransactionKind enum and introduce IotaTransactionKind type

* fix(ts-sdk): enable balance change display in payIota function options

* refactor(explorer, ts-sdk): update transaction kind type to IotaTransactionKind

* chore: add changeset

---------

Co-authored-by: samuel_rufi <samuel.rufinatscha@iota.org>
Co-authored-by: marc2332 <mespinsanz@gmail.com>
Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com>
Co-authored-by: Konstantinos Demartinos <konstantinos.demartinos@iota.org>
Co-authored-by: Roman Overko <roman.overko@iota.org>
Co-authored-by: Panteleymonchuk <panteleymonchuk@gmail.com>
Copy link
Contributor

@sergiupopescu199 sergiupopescu199 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ✨ with some minor comments.

…s not present; avoid duplicate values in `IN(..)` filter; improve comments
@samuel-rufi samuel-rufi requested a review from muXxer March 17, 2025 12:43
* chore(ts-sdk): regenerate graphql after infra changes

* chore(ts-sdk): upgrade graphql transport after re-generated codebase

* feat(graphql-transport): Fix mapping of transaction kind filter

* feat(graphql-transport): Revert compatibility test change

* feat(graphql-transport): typo

* feat(graphql-transport): Improve typing

---------

Co-authored-by: Mario Sarcevic <mario.sarcevic@iota.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Issues related to our CI pipeline documentation Improvements or additions to documentation explorer Issues related to the Explorer infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group. ts-sdk Issues related to the TS SDK wallet Issues related to the IOTA Wallet wallet-dashboard Issues related to the Wallet Dashboard dApp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants