Skip to content
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

774 request add fragment support for filtereventlogs #878

Merged
merged 14 commits into from
May 17, 2024

Conversation

Valazan
Copy link
Contributor

@Valazan Valazan commented May 16, 2024

this PR adds support for decoding event logs. Decoding can be apply to single events filters as well as filters with multiple contract events and criteria.

e.g.

    const events = await thorSoloClient.logs.filterEventLogs({
            criteriaSet: [transferCriteria, valueCriteria]
        });

        expect(events.map((x) => x.decodedData)).toEqual([
            [
                [
                    '0xF02f557c753edf5fcdCbfE4c1c3a448B3cC84D54',
                    '0x9E7911de289c3c856ce7f421034F66b6Cde49C39',
                    5000n
                ],
                ['0xF02f557c753edf5fcdCbfE4c1c3a448B3cC84D54', 3000n]
            ]
        ]);

@Valazan Valazan requested a review from a team as a code owner May 16, 2024 14:11
@Valazan Valazan linked an issue May 16, 2024 that may be closed by this pull request
@Valazan Valazan marked this pull request as draft May 16, 2024 14:12
@Valazan Valazan marked this pull request as draft May 16, 2024 14:12
@Valazan Valazan force-pushed the 774--request---add-fragment-support-for-filtereventlogs branch from 96d2574 to f16540b Compare May 17, 2024 10:37
Copy link

github-actions bot commented May 17, 2024

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 99%
99.81% (3267/3273) 99.33% (748/753) 99.7% (675/677)
Title Tests Skipped Failures Errors Time
core 473 0 💤 0 ❌ 0 🔥 1m 10s ⏱️
network 641 0 💤 0 ❌ 0 🔥 4m 5s ⏱️
errors 48 0 💤 0 ❌ 0 🔥 14.891s ⏱️

@Valazan Valazan marked this pull request as ready for review May 17, 2024 12:17
@Valazan Valazan merged commit bb03058 into main May 17, 2024
8 of 10 checks passed
@fabiorigam fabiorigam deleted the 774--request---add-fragment-support-for-filtereventlogs branch May 19, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💡 [REQUEST] - Add fragment support for filterEventLogs
3 participants