Skip to content

Conversation

@sirdeggen
Copy link
Collaborator

@sirdeggen sirdeggen commented Aug 25, 2025

Description of Changes

Add a fee policy which grabs live rates from Gorilla Pool.

Linked Issues / Tickets

Closes #342

Testing Procedure

Describe the tests you've added or any testing steps you've taken.

  • I have added new unit tests
  • All tests pass locally
  • I have tested manually in my local environment

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have updated CHANGELOG.md with my changes
  • I have run npm run doc and npm run lint one final time before requesting a review
  • I have fixed all linter errors to ensure these changes are compliant with ts-standard
  • I have run npm version patch so that my changes will trigger a new version to be released when they are merged

@codecov

This comment has been minimized.

@sirdeggen sirdeggen requested a review from Copilot August 25, 2025 16:03
@sirdeggen sirdeggen marked this pull request as ready for review August 25, 2025 16:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new LivePolicy fee model that dynamically fetches current transaction fees from the ARC GorillaPool API, replacing the static fee model as the default for transactions.

  • Adds a LivePolicy class that extends SatoshisPerKilobyte and fetches live rates from GorillaPool
  • Implements singleton pattern with intelligent caching and fallback mechanisms
  • Updates the default fee model for transactions from static rates to live rates

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/transaction/fee-models/LivePolicy.ts New fee model class that fetches live rates from ARC API with caching
src/transaction/fee-models/index.ts Exports the new LivePolicy class
src/transaction/fee-models/__tests/LivePolicy.test.ts Unit tests for LivePolicy singleton and caching behavior
src/transaction/Transaction.ts Updates default fee model and documentation to use LivePolicy
docs/reference/transaction.md Updates documentation to reflect new default fee model
CHANGELOG.md Documents the addition of LivePolicy feature
package.json Version bump to 1.6.25

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqubecloud
Copy link

@sirdeggen
Copy link
Collaborator Author

https://arc.taal.com/v1/policy

Is now public

ty-everett
ty-everett previously approved these changes Sep 3, 2025
Copy link
Collaborator

@ty-everett ty-everett left a comment

Choose a reason for hiding this comment

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

1.7.1 is released, apologies for the delay on this.

This looks good and is approved from my perspective, it can be patched to 1.7.2 and then released.

@ty-everett
Copy link
Collaborator

1.7.3*

Copilot AI review requested due to automatic review settings October 2, 2025 20:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sirdeggen sirdeggen merged commit e4751a2 into master Oct 2, 2025
9 checks passed
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2025

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.

[DISCUSSION] Variable Fee Model

3 participants