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

relax type constraints and refactor tx builder #135

Open
4 tasks
aleeusgr opened this issue Apr 5, 2024 · 0 comments
Open
4 tasks

relax type constraints and refactor tx builder #135

aleeusgr opened this issue Apr 5, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@aleeusgr
Copy link
Owner

aleeusgr commented Apr 5, 2024

Currently tx's only work with Emulator, usage of API is prevented by type constraints here:

export const cancelVesting = async (
network: NetworkEmulator,
alice : WalletEmulator,
program: Program
) => {

Change the here and in submit tx to be WalletEulator | Wallet and NetworkEmulator | Network (something like it, see Helios docs);

test it:

  • can lock with emulator
  • can lock with testnet
  • can cancel with emulator
  • can cancel with testnet.
@aleeusgr aleeusgr changed the title relax type constraints and refactor txs so that they can be be used with API as well as with Emulator relax type constraints and refactor tx builder Apr 5, 2024
@aleeusgr aleeusgr added the good first issue Good for newcomers label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant