Jordan Sexton
0db9c3dc00
fix decoded type
2021-12-27 20:03:13 -06:00
Jordan Sexton
8ca7381402
fix argument order
2021-12-27 20:03:13 -06:00
Jordan Sexton
931befabb0
add more decode functions, refactor
2021-12-27 20:03:13 -06:00
Jordan Sexton
8cca13cecf
add initial instruction decoding functions
2021-12-27 20:03:13 -06:00
Jordan Sexton
7f8d04cdeb
add instruction errors
2021-12-27 20:03:13 -06:00
Jordan Sexton
e97f51031f
fix doc comments
2021-12-27 20:03:13 -06:00
Jordan Sexton
3dc18b2f19
strictly type and expose instruction data layouts
2021-12-27 20:03:13 -06:00
Jordan Sexton
20463a7a6b
change get*Info method names
2021-12-27 20:03:13 -06:00
Jordan Sexton
0b586a2809
include license in published package
2021-12-27 20:03:13 -06:00
Jordan Sexton
2cd6f68de8
add rollup to build
2021-12-27 20:03:13 -06:00
Jordan Sexton
60b8340ed4
add published files
2021-12-27 20:03:13 -06:00
Jordan Sexton
95c3ab4e4b
build for node 14 (LTS)
2021-12-27 20:03:13 -06:00
Jordan Sexton
d7d3f08a5e
AccountInfo::data should already be a Buffer
2021-12-27 20:03:13 -06:00
Jordan Sexton
e02d632b36
fix build from source directions
2021-12-27 20:03:13 -06:00
Jordan Sexton
da6c573b0c
organize imports
2021-12-27 20:03:13 -06:00
Emilia Hane
241a09b494
fix: token address in place of sender address
2021-12-27 10:31:03 -08:00
Alexander Ray
cd8d79a2b4
[stake-pool] js: web3 stake pool bindings ( #2604 )
...
* - add stake-pool-web3-bindings (preview)
* - update readme
* - add tests
* - remove package-lock from foreign project
* - revert changes from foreign project
* - review improvenments
* - refactor regarding review suggestions
* - fix test
- fix readme
* Update stake-pool/js/src/instructions.ts
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* - add withdraw authority as optional parameter
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2021-12-23 13:34:02 -05:00
Jon Cinque
1f4b65153f
Update tests to prepare for `BanksClientError` ( #2657 )
...
* Update tests to prepare for `BanksClientError`
* Remove import from record tests
2021-12-23 13:08:06 -05:00
Alexey Skibin
07bf49fdb8
farms: Add trade governance ( #2635 )
2021-12-22 18:50:36 -06:00
Dmitri Makarov
4e73dad461
Increase compute limit in another test ( #2658 )
2021-12-21 16:09:21 -08:00
Kirill Fomichev
dcf91e9ae8
Add token/rust: spl-token-api ( #2102 )
...
* Init spl-token-api
* rename token/rust
* add mint_to, transfer
* add BoxFuture
* fmt + Send + Sync
* TokenBanksClient::new_from_client
* add trait SendTransaction
* deps
* add enum for TokenBanksClient
* update to 1.7.11
* fix Token::mint_to
* fix transfer and add get_account_info
* unstrict deps
* add get_or_create_associated_account_info
* add set_authority and split tests
* set_authority for mint/account
* re-export spl_token
* add Token::new
* update solana crates
* remove comments
* change generic names
* change process_ixs method
* add Token::get_mint_info
* fix same mint tx
* add Token::with_payer
* fmt
* TokenClient::send_transaction accept ref
* rename Token* to Program*
2021-12-21 12:16:20 -07:00
Dmitri Makarov
e039957fc4
Increase compute max units in program-2022 assert_instruction_count ( #2655 )
2021-12-21 10:59:44 -08:00
Jon Cinque
8c9f8a0088
stake-pool: Reduce maximum pool size ( #2654 )
...
* stake-pool: Reduce huge pool size in tests
* stake-pool: Reduce supported maximum size
2021-12-21 13:10:12 +01:00
Dmitri Makarov
28d0aa7759
Increase compute max units due to changes in handling of memory ops ( #2653 )
2021-12-20 15:29:36 -08:00
Jon Cinque
1851068e8c
stake-pool-docs: Clarify that epoch fee is on top of commissions ( #2652 )
2021-12-20 22:15:37 +01:00
Ikko Ashimine
0655bd7dd1
Fix typo in account.rs ( #2651 )
...
insted -> instead
2021-12-18 10:08:40 -07:00
Phạm Văn Dũng
a6a1ce4290
fix account list in token_swap instructions docs ( #2648 )
2021-12-17 13:05:23 +01:00
Jack May
14fd41336b
Bump instruction count limit ( #2647 )
2021-12-16 13:49:43 -08:00
Jon Cinque
5aa3b98f2c
stake-pool-cli: Add next fees in verbose mode, fix mapping ( #2645 )
2021-12-16 14:46:01 +01:00
Jordan Sexton
fef4438cd1
fix test
2021-12-14 16:49:30 -06:00
Jordan Sexton
4179acbf8b
Rewrite spl-token-js in TypeScript ( #2539 )
...
* first draft
* restructuring
* fix imports
* move errors to constants
* fmt
* fix ata
* finish core implementation
* don't export internal utils
* rename internal util files
* token account is owned by token program
* docs
* docs
* port example
* add basic tests from current implementation
* enable es6 features in lint config
* don't build tests into lib dir
* doc tweaks
* add preinstall script
* add types, don't postinstall
* allow keypairs to create accounts, and default to using ATAs
* add explicit enum values
* remove unused dependency
* expose allowOwnerOffCurve option to getOrCreateAssociatedTokenAccount action
* make multisigners optional
* WIP, undo
* update buffer-layout and buffer-layout-utils from npm
* update dev dependencies
2021-12-14 16:47:57 -06:00
Jon Cinque
2cd68d3f5c
token-2022: Add transfer fee types and instructions ( #2608 )
...
* token-2022: Add transfer fee accounts and instructions
* Address feedback
* More feedback
* Move to mixins
* Separate instructions for mixin initialization
* Feedback again again again!
* Getting there...
* More more feedback again again
* Add `WithdrawWithheldTokensFromAccounts` instruction
* Add instruction serde, fix all errors
2021-12-14 23:36:02 +01:00
Jon Cinque
ba08b6e662
stake-pool: Mint extra reserve lamports as pool tokens on init ( #2636 )
...
* stake-pool: Mint extra reserve lamports as pool tokens on init
* Wait more aggressively in py test
* Simplify test
2021-12-14 18:45:15 +01:00
Jon Cinque
9bda73f37c
stake-pool-cli: Add `deposit-all-stake` command ( #2614 )
...
* stake-pool-cli: Add `deposit-all-stake` command
* Improve py test
2021-12-14 02:25:37 +01:00
Jon Cinque
d5ac6b883b
stake-pool-py: Add simple rebalance bot ( #2630 )
...
* stake-pool-py: Add simple rebalance bot
* Fixup test
* Refactor flaky tests
* Create vote earlier in test
* Duplicate create_vote call causes stall
* Wait more aggressively
2021-12-13 13:17:07 +01:00
Yang Hau
8eb2c3ce60
fix: Fix typos ( #2625 )
2021-12-12 02:48:06 -07:00
Abhimanyu Singh Gaur
70973850d3
token-swap: Migrate to `@solana/buffer-layout` ( #2629 )
2021-12-10 21:53:46 +01:00
Michael Vines
442ff895e9
Remove legacy msg form
2021-12-10 07:41:53 -08:00
Michael Vines
1a0155e34b
Update to Rust 1.57.0
2021-12-09 23:56:47 -08:00
Jon Cinque
a7888861da
stake-pool-py: Create and deserialize stake pools ( #2557 )
...
* stake-pool-py: Create and deserialize stake pools with CI
* Add ability to add / remove validators
* Add vote init instruction for cleaner tests
* Fixup CI
* Add deposit / withdraw sol
* Add update instructions
* Add increase / decrease stake
* Add deposit / withdraw stake
2021-12-10 00:43:25 +01:00
Abhimanyu Singh Gaur
e29bc53c5f
Migrate to @solana/buffer-layout ( #2624 )
...
* Update package.json
* Fix build errors
* More fixes
* Add flow definitions
2021-12-09 16:26:14 +01:00
Jordan Sexton
0b8961597b
lending: validate pyth price trading status ( #2618 )
2021-12-04 17:59:20 -06:00
imprfekt
eaca634995
docs: token: Added timelock program ( #2616 )
...
* docs: token: Added timelock program
Added another solution for SPL token vesting, with additional customizations.
* Docs: token: Token Vesting — solution names and orders
* docs: token: Added "coming soon" features for StreamFlow's token vesting.
...and further explained default options.
2021-12-04 01:09:14 +01:00
Jordan Sexton
c2b287788b
lending: handle rounding consistently ( #1883 )
...
* handle rounding consistently
* remove unused method
* slightly increase test compute limits
* reuse existing decimal functions
2021-12-03 17:13:21 -06:00
Jon Cinque
c24bc966f1
stake-pool-cli: Update input parser to work with ledgers ( #2613 )
...
* stake-pool-cli: Update input parser to work with ledgers
* fmt
2021-12-03 01:55:18 +01:00
Jon Cinque
97285c65b1
Update Cargo.lock post themis removal ( #2611 )
2021-12-03 00:47:08 +01:00
Brooks Prumo
1de578d36e
docs: Prefer non gendered pronouns ( #2610 )
2021-12-02 17:28:45 -06:00
Ben Lawson
f3ad77cfce
(Docs) Update Coverage instructions with MacOS commands
2021-12-01 22:26:19 -08:00
Jack May
507f928c0a
Remove themis ( #2607 )
2021-12-01 12:31:01 -08:00
Jack May
5839d97449
Exclude farms from workspace ( #2606 )
2021-12-01 10:48:10 -08:00