Commit Graph

2909 Commits

Author SHA1 Message Date
Jon Cinque 4aa529d194
ci: Separate twoxtx build step, match Rust version (#3422)
* ci: Separate twoxtx build step, match Rust version

* Make a change to trigger CI

* Really trigger CI this time

* Fixup yaml issue

* Also set RUST_STABLE_VERSION

* Define env variable earlier
2022-08-03 19:53:35 +02:00
Tyera Eulberg c618de374e
Refactor unpack and make test more robust (#3417)
* Refactor hasty fix to match token-2022

* Make test exhaustive

* cargo fmt

Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-03 01:44:55 -06:00
Tyera Eulberg e0ff9add17
Bump spl-token (#3418) 2022-08-03 01:24:38 -06:00
anatoly yakovenko 22faa05f18
check that unpack is tolerant of small sizes (#3416) 2022-08-02 23:11:13 -06:00
samkim-crypto c98609850f
token-2022: merge instruction data for confidential Transfer and TransferWithFee (#3410) 2022-08-03 12:15:31 +09:00
Jon Cinque 8f75f5905c
stake-pool-py: Clean up dependencies (#3412) 2022-08-03 01:19:33 +02:00
Jon Cinque 8f74ba517c
token-cli: Run fewer tests at once (#3414) 2022-08-03 01:14:55 +02:00
throwbackjams 5d8cb5588b
lending: Add instruction for changing reserve configuration after initialization (#3349)
* lending: Add instruction for configuring reserve params

* lending: (fix) remove duplicate import in modify_reserve_config test

* modify_reserve_config: refactor pack and unpack of ReserveConfig into helper func; refactor validate_reserve_config as method; refine tests
2022-08-02 16:56:33 +02:00
samkim-crypto 271d2358ad
Confidential transfer encryption doc (#3399)
* doc: add discussion on twisted elgamal

* doc: add twisted elgamal latex pdf

* doc: add available and pending balance discussion

* doc: additional minor wordings
2022-08-02 11:34:54 +09:00
Jon Cinque 674b0ac70e
token-cli: Add token-client dependency for token-2022 support (#3386) 2022-08-01 17:13:42 +02:00
Jon Cinque 80b8ff3b1d
token-cli: Run tests in batches (#3396) 2022-07-30 00:34:49 +02:00
Jon Cinque 3a7914ceba
stake-pool-py: Fix tests for Solana 1.10.33 (#3395) 2022-07-29 22:59:50 +02:00
Jon Cinque d1e842ca3f
docs: Fix link in token-2022 (#3394) 2022-07-29 11:55:37 +02:00
samkim-crypto c40f655d93
Confidential transfer overview doc (#3393)
* doc: add confidential extension doc structure

* doc: add encryption and zkp description in confidential extension doc

* doc: add usability and crypto features
2022-07-29 08:38:24 +09:00
Tyera Eulberg c21b4ae24a
Bump spl-token-2022 to 0.4.2 (#3390) 2022-07-27 12:25:11 -06:00
Tyera Eulberg c00194d225
Bump solana crates to v1.10.33 (#3385) 2022-07-27 11:28:14 -06:00
Jon Cinque fb46b9a115
ci: Harden docs publish to only run with a vercel token (#3389) 2022-07-27 16:57:59 +02:00
Jon Cinque 827176ed84
ci: Fixup docs CI to run build on all affecting PRs (#3388)
* ci: Fixup docs CI to run build on all affecting PRs

* Update CI env vars for GitHub Actions, remove Travis
2022-07-27 16:31:41 +02:00
Jon Cinque 8e68b6acf9
docs: Fix links (#3387) 2022-07-27 13:27:35 +02:00
Jon Cinque 29ad0f3013
token-2022: Add intro docs, structure for more docs (#3384)
* token-2022: Add intro docs, structure for more docs

* Address feedback

* Remove the word "migration"
2022-07-27 12:41:09 +02:00
Jon Cinque 48e6acb53f
token-cli: Support base token-2022 (without extensions) (#3071) 2022-07-27 10:47:43 +02:00
Justin Malčić d4bd86e162
Improve token error messages in token-swap (#3357)
* Move PrintProgramError impls

* Add wrapper function

* Add PrintProgramError to use declaration
2022-07-26 13:59:37 +02:00
c3pko 80f8890dd3
Rename stake-pool/LICENSE to stake-pool/py/LICENSE 2022-07-25 16:55:17 -07:00
c3pko 8a68056816
add_license_file (#3380)
* add_license_file

* Update LICENSE
2022-07-25 15:56:41 -07:00
Jon Cinque 60117fd9c5
token-cli: Figure out program_id dynamically (#3354)
* Resolve program id with mint info, use it where possible

* Avoid using `config.program_id` when we can figure it out

* Rename function
2022-07-25 23:22:47 +02:00
Jon Cinque 37280ce2e6
token-cli: Move everything to async (#3353) 2022-07-25 21:05:01 +02:00
Jon Cinque d3cbe360ac
token-2022: Refactor PrintProgramError impl to error file (#3366) 2022-07-24 21:28:09 +02:00
Jon Cinque 725430d81c
Revert "token-cli: Downgrade to crates.io versions for release (#3371)" (#3372)
This reverts commit 1c9e2a540c.
2022-07-23 20:16:24 +02:00
Jon Cinque 1c9e2a540c
token-cli: Downgrade to crates.io versions for release (#3371) 2022-07-23 19:14:14 +02:00
Pranjal Paliwal 8169e527e9
[stake-pool] instruction to add metadata for pool token (#3335)
* instruction to add metadata for pool token

* add documentation for instruction accounts

* address pull request comments

* added more tests for update pool token instruction

* add check for payer signature
2022-07-22 22:25:17 +02:00
Jon Cinque 4d1f8169a9
token-cli: Make BPF program builds in build.rs dependent on env var (#3362)
* token-cli: Make BPF program build dependent on env var

* Do it during `build` and not `test`
2022-07-22 09:30:30 +02:00
Justin Malčić 04954d0a1e
Add delegation tests (#3316)
* Add transfer test

* Add burn test

* Fix formatting
2022-07-21 14:51:45 +02:00
xweb3 fdc1df5e14
fix: change .mjs to .js (#3364) 2022-07-21 13:48:17 +02:00
Jon Cinque b709607271
token-cli: Bump version to 2.0.16 for release (#3360) 2022-07-20 20:15:03 +02:00
Jon Cinque 042da2b687
token-swap: Allow for huge swaps that almost entirely drain one side (#3334) 2022-07-19 19:08:12 +02:00
Ajay Gautam 62ede3262f
Update associated-token-account.md (#3329)
The create_associated_token_account was linked with the previous deprecated function. I have attached the newly updated instruction create_associated_token_account instruction.
2022-07-19 18:21:21 +02:00
Alisamar Husain b39efe8fb8
token-cli: Fix unexpected behavior when closing a wrapped SOL account with another wrapped SOL account as recipient (#3278)
* Check if recipient is a wrapped account

* Make clippy and fmt happy

* Avoided mutable, more functional clarity

* Add test for closing wrapped sol account

* wrap the default account

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>

* Fix formatting and failing tests

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-07-17 16:50:39 +02:00
samkim-crypto 937b64da37
Adjust confidential token rust client for offline signing (#3347)
* token-2022: remove account balance decryption from confidential transfer rust client

* token-2022: remove account balance decryption from withdraw withheld tokens from accounts

* token-2022: cargo fmt

* token-2022: update tests for new rust client syntax

* token-2022: cargo fmt

* token-2022: cargo clippy

* token-2022: minor
2022-07-16 05:34:19 +09:00
behzad nouri 76ad511ed0
patches test_lamport_transfer (#3346)
https://github.com/solana-labs/solana/pull/26606
prevents crediting a rent paying account if the account stays rent
paying. As a result, test_lamport_transfer fails.

The commit updates destination account lamports so that after transfer
it is no longer rent paying.
2022-07-14 22:31:02 +00:00
F.S. Kroes a79cba07c8
Used full out spelling to resolve confusion - related to #3330 (#3331)
* Used full out spelling to resolve confusion - related to #3330

Based on @CriesofCarrots comment. Made a new PR, because I couldn't change #3330 anymore. 
Used full out spelling of the word `AToken` to resolve confusion.

* Update docs/src/associated-token-account.md

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2022-07-11 09:56:05 -06:00
jon wong 024ba3ad41
token-2022: Bump version for 0.4.1 release (#3328)
* Bumping `spl-token-2022` version

* Bump Cargo.lock
2022-07-09 01:02:49 +02:00
Alexey Skibin 9396bd1b9e
Farms: Add Funds, mutisig support, new vaults and general improvements (#3247)
* Add decentralized Fund protocol to Farms

* Add Fund stats tracking

* Add build script for dynamic ids support

* Add multisig support to Farms

* Client to reload data only if changed

* Add Orca AQ Vaults and Funds, metadata updates

* Update metadata and docs
2022-07-08 13:46:30 -05:00
Daniel Kelleher c061a34cde
Now that token deposits can be used as inputs to vote plugins, remove the constraint that prevents token deposits when a vote plugin is used. (#3311) 2022-07-07 19:10:20 +01:00
omertxyz f30ad1d752
Add serde feature - token-2022 (#3291)
* Add serde to token-2022

* Add tests

* Fix feature syntax

* Formatting, enabling features

* Make CI work, and some naming nit cleanup

* Un-async tests

Co-authored-by: jon wong <j@jnwng.com>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-07-07 13:18:47 -04:00
Jon Cinque b5cec79ee4
CI: Bump openssl for audit (#3322) 2022-07-06 23:53:40 -04:00
Seth Girvan 1ca80547c8
Governance: set voting_completed_at to actual end time (#3179) 2022-07-06 12:24:05 +01:00
samkim-crypto 3afe1e652b
Derive elgamal key in token client (#3308)
* token-2022: derive elgamal key in token client

* token-2022: update program tests for key derivation

* token-2022: key derivation for apply pending balance

* token-2022: add configure account with max pending balance

* token-2022: update tests for apply pending balance

* token-2022: derive key for confidential trasfer with fee

* token-2022: update test for confidential transfer with fee

* token-2022: derive encryption keys for withdrawing withheld tokens

* token-2022: update tests
2022-07-04 15:47:33 +09:00
Jon Cinque 5874a14584
token-cli: Move cmd test into a separate file (#3306) 2022-07-01 19:41:27 -04:00
Jon Cinque c1ee6a58be
Update Solana crates to 1.10.29 (#3303) 2022-07-01 16:51:01 -04:00
Jon Cinque c4f10d8d53
token-js: Throw if using token-2022 instructions with tokenkeg (#3296)
* token-js: Throw if using token-2022 instructions with tokenkeg

* Fixup updated params
2022-06-29 13:39:30 -04:00