* extends withdraw to merge if stake account is provided
* check if account is stake account and delegated to same validator
* fixing tests and defining withdraw accounts for delegated stake reciever
* implementation improvements in cli
* fix js tests
* added test for uninitialized stake account
* stake-pool: Update program to work with minimum delegation
* Update minimum reserve lamports in the CLI
* Cargo fmt
* Add another test for hijacked account
* Fix python and JS constants
* Add browser build commands and documentation
* Improve rollup configuration
* Remove unused external import from rollup configuration
* Move from Babel to Typescript plugin
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* stake-pool-js: Prepare package for release
* Upgrade node version for new npm
* Regenerate package-lock.json
* Update README, fix build to remove test files
* first commit
* add schema for stakepool accounts
* got imports working
* add typescript support
* fix schema
* Change to use PublicKey type
* change to camelCase instead
* add type annotations to typescript classes
* add readme
* Add prettier linting
* add instructions to run
* add test section
* prettier clean up schema.ts
* convert index.js to index.ts
* actually use decode method available in Assignable
* rename stakepoolaccount so i can have a wrapper class
* add new class StakePool and change return type of getStakePoolAccounts
* remove extraneous .js files
* update schema to incorporate jon's comments
* remove unnecessary comments
* add helper functions to get individual accounts; cleaned up code
* add Fee, change denominator/numerator to BN
* Add enums so we can check what type an accountType is
* Remove name and ticker in StakePool class
* fix borshjs import
* change outdir to dist/ folder
* Edit package.json
* add toBuffer for schema.PublicKey
* add exports and default exports to index.ts
* fix trailing comma on tsconfig.json
* get mocha test harness working with ts-node, ts-mocha, esm
* fix borsh import
* clean up imports
* add working test script
* remove unneeded borshjs import
* add unit tests for both decodes (WIP)
* no need to console.log in testOnDevnet since we now have a test suite
* Add tests for ValidatorListAccount.decode
* add schema.decode.StakePoolAccount test
* Finish up
* reduce dependencies in package.json
* Add lint command to package.json
* Lint with prettier
* Update README.md with new commands
* Write explanatory comments in index.js
* Small linting change
* feat: introduce new borshjs deserializeUnchecked import
* lint: npm lint
* refactor: upgrade web3js version
* refactor: refactor type names
* refactor: npm run lint
* refactor: improve tsconfig.json
* feat: add declaration and declarationMap to tsconfig.json
* feat: allow getStakePoolAccounts to more robustly handle errors
* Update stake-pool/js/.gitignore
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* Update stake-pool/js/package.json
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* Update stake-pool/js/package.json
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* Update stake-pool/js/package.json
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* Update stake-pool/js/package.json
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* refactor: modify `constructStakePoolSchema` to mutate in place
* lint: remove webpack.config.js
* lint: npm run lint
* lint: add comments above index.ts
* lint: lowercase schema
* feat: add full deserialization test
* Update stake-pool/js/package.json
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* refactor: remove try-catch block in getStakePoolAccounts
* lint: lint
* refactor: use web3js pubkey
* refactor: move integration tests to separate file
* refactor: change test.js to do encode-decode loop
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>