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

Move fee estimation to SDK #177

Merged
merged 5 commits into from
Aug 28, 2023
Merged

Move fee estimation to SDK #177

merged 5 commits into from
Aug 28, 2023

Conversation

benoitdevos
Copy link
Contributor

For each operation to the blockchain nnn(), a new method is added estimateFeesNnn() - that estimates the Fees for the operation. In order to ensure accurate calculation, all parameters required for the blockchain operation are also required to estimate the fees, so we have:

async nnn(params: NnnParams & BlockchainSubmissionParams): Promise<void> {};

async estimateFeesNnn(params: NnnParams): Promise<Fees> {};

https://github.com/logion-network/logion-internal/issues/904

Copy link
Contributor

@gdethier gdethier left a comment

Choose a reason for hiding this comment

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

Great job, thanks! I left a couple of comments, but nothing critical.

packages/client/src/Loc.ts Show resolved Hide resolved
packages/client/src/Loc.ts Show resolved Hide resolved
packages/client/src/Loc.ts Show resolved Hide resolved
packages/client/src/Loc.ts Show resolved Hide resolved
@benoitdevos benoitdevos merged commit 1f47d4c into main Aug 28, 2023
1 check passed
@benoitdevos benoitdevos deleted the feature/move-fee-estimation branch August 28, 2023 09:23
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.

2 participants