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

V7 #215

Merged
merged 29 commits into from
Oct 8, 2024
Merged

V7 #215

merged 29 commits into from
Oct 8, 2024

Conversation

RolginRoman
Copy link
Contributor

The app is migrated in one of PRs, so it should be ok to release this version as the latest major

RolginRoman and others added 25 commits September 24, 2024 16:10
* ESM Support (#179)

* node imports
* esm maybe
* Prerelease publish v7 alpha
* jest to vitest

---------

Co-authored-by: Yolley <[email protected]>
* switch to bignubmer.js initial + rebase

* fixes

* fixes

* public API and README update

* bump to 7.0.0-alpa.2

* fix pre-commit

* lerna version bump and import fixes

* remove comments

* remove more leftover comments
* separate bn conversion script from pre-commit

* add eslint rule and improve script

* fix missing .js extensions in exports and bump alpha version

* more missing .js extensions and BigNumber fixes

* replace npm with pnpm
* Staking SDK
…r-fetches

Feat/update values for fetches
* revert initial

* small readme fix

* another readme fix
.prettierrc Outdated Show resolved Hide resolved
packages/distributor/solana/types.ts Outdated Show resolved Hide resolved
packages/distributor/solana/types.ts Outdated Show resolved Hide resolved
packages/distributor/solana/utils.ts Show resolved Hide resolved
packages/staking/solana/constants.ts Show resolved Hide resolved
packages/staking/solana/utils.ts Outdated Show resolved Hide resolved
packages/staking/solana/client.ts Outdated Show resolved Hide resolved
return rewardPoolProgram.account.rewardEntry.all(getFilters(criteria, REWARD_ENTRY_BYTE_OFFSETS));
}

getFeeValueIfExists(target: string | PublicKey): Promise<FeeValue | null> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's also expose fee config may be? So that we could fetch default fee, and may be some helper methods that just returns fee for a given wallet? (the same way as we check default fee for a partner wallet in StreamClient).

Example of config fetching https://github.com/streamflow-finance/streamflow-staking/blob/main/tests/test-fee-manager/update-fee-config.test.ts#L18

Copy link
Contributor Author

Choose a reason for hiding this comment

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

some helper methods that just returns fee for a given wallet

this function does exactly it, doesn't it?

I see possibility to change this behavior and make it

fetchForWallet(pk) || fetchDefault(), do you mean a function that does fetch with default config fallback?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated,
put 3 apis for fee:

  • getFee -> whitelisted or default
  • getDefault
  • getFeeForWallet nullable

packages/staking/solana/client.ts Outdated Show resolved Hide resolved
packages/staking/solana/client.ts Outdated Show resolved Hide resolved
packages/staking/solana/client.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@tatomir-streamflow tatomir-streamflow Oct 8, 2024

Choose a reason for hiding this comment

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

these changes to README can be reverted, looks like I missed it in reverting the BigNumber changes

@RolginRoman RolginRoman merged commit 528e941 into master Oct 8, 2024
2 checks passed
Copy link

github-actions bot commented Oct 8, 2024

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