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

Add execute methods with custom fee multipliers #163

Merged
merged 15 commits into from
Mar 27, 2024

Conversation

DelevoXDG
Copy link
Collaborator

@DelevoXDG DelevoXDG commented Mar 21, 2024

Stack

-- Support RPC 0.7.0 (#162)
-- Add execute methods with custom fee multipliers (#163)
-- Add transaction version enum (#164)
-- Refactor receipts (#165)

Describe your changes

  • Use multipliers instead of overheads in fee calculation utils
  • Add executeV1, executeV3 methods in StarknetAccount with estimate fee multipliers
    • Update docstrings for executeVX with call(s) as only argument to be in line with the new methods

Linked issues

Closes

Breaking changes

  • This issue contains breaking changes
  • StarknetFeeEstimate extension fee calculation utils
    • toResourceBounds() now takes amountMultiplier, unitPriceMultiplier instead of amountOverhead, unitPriceOverhead
    • toMaxFee() now takes multiplier instead of overhead

- Remove percentages
- Remove typo char

Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
@DelevoXDG DelevoXDG requested a review from THenry14 March 26, 2024 16:59
@DelevoXDG DelevoXDG merged commit b176a2e into feat/148-support-rpc-0.7.0 Mar 27, 2024
@DelevoXDG DelevoXDG deleted the feat/148-2-fee-multipliers branch March 27, 2024 10:29
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.

3 participants