Skip to content

Add ptb command count rule option #63

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 2 commits into from
Apr 11, 2025
Merged

Conversation

wulfraem
Copy link
Contributor

@wulfraem wulfraem commented Apr 8, 2025

Description of change

Adds ptb-command-count rule option to allow defining rules based on count of transaction in the programmable transaction of the to be funded transaction.

As not all supported transactions have a programmable transaction, this rule is only applicable to the ones with a programmable transaction and ignored for other transaction kinds.

Syntax follows the same style as the gas-budget option. The protocol should only allow up to 1024 commands, but kept the type of the option based on usize as this is the type, the SDK returns (.len()).

Links to any relevant issues

Resolves #59.

wulfraem added 2 commits April 7, 2025 14:28
- update tests, docu
- update scripts to use `#!/bin/bash` for macOS compatibility
@wulfraem wulfraem added the enhancement New feature or request label Apr 8, 2025
@wulfraem wulfraem requested a review from qrayven April 8, 2025 07:36
@wulfraem wulfraem changed the title Add ptb command count rule otion Add ptb command count rule option Apr 8, 2025
@wulfraem wulfraem merged commit 0072620 into dev Apr 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Configurable Limit on Commands per PTB
2 participants