Commit Graph

3143 Commits

Author SHA1 Message Date
Jon Cinque cacf4e9038
deps: Update uint to 0.9.5 (#3901) 2022-12-13 23:38:34 +01:00
dependabot[bot] 5279302b38
build(deps): bump crossbeam-utils from 0.8.5 to 0.8.11 (#3534)
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.5 to 0.8.11.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.5...crossbeam-utils-0.8.11)

---
updated-dependencies:
- dependency-name: crossbeam-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 22:56:44 +01:00
dependabot[bot] 3372eb6c0d
build(deps): bump console from 0.14.1 to 0.15.0 (#2676)
Bumps [console](https://github.com/mitsuhiko/console) from 0.14.1 to 0.15.0.
- [Release notes](https://github.com/mitsuhiko/console/releases)
- [Changelog](https://github.com/mitsuhiko/console/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/console/compare/0.14.1...v0.15.0)

---
updated-dependencies:
- dependency-name: console
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 22:54:55 +01:00
Jon Cinque 7ef7535ef2
stake-pool: Cleanup clippy, maybe fix a test (#3898)
* stake-pool: Cleanup clippy, maybe fix a test

* Change withdraw instructions more

* Refresh blockhashes
2022-12-13 16:32:52 +01:00
Jon Cinque 5f4943802b
clippy: Remove `useless_conversion` (#3899) 2022-12-13 15:56:12 +01:00
Jon Cinque 77a297c2c7
docs: Add token-2022 audits and clarify upgradability (#3894)
* docs: Add token-2022 audits and clarify upgradeability

* Update docs/src/token-2022.md

Co-authored-by: Michael Vines <mvines@gmail.com>

* Update docs/src/token-2022.md

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* More updates

Co-authored-by: Michael Vines <mvines@gmail.com>
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-12-13 12:26:24 +01:00
Jon Cinque 5d16d5b926 token-swap: Update withdraw-one fee calculation 2022-12-09 00:51:55 +01:00
Jon Cinque edd6a85223
ci: Update Cargo.lock with 1.4.10 crate resolution (#3883) 2022-12-09 00:21:04 +01:00
zhaogang 8922d20697
binary-option: Fixed three integer overflows (#3121)
* Fixed three integer overflows in binary-option

* Update binary-option/program/src/state.rs

Change error type to AmountOverflow.

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

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-12-09 00:17:55 +01:00
samkim-crypto 39a6d59f27
[token-2022] Divide encrypted fee into lo and hi (TOB-STK-11) (#3878)
* require regular fee proof for self-transfers with fee

* process encrypted lo and hi fee separately
2022-12-07 10:53:48 +09:00
Austin Adams ed8522b56e
Expose more types from CMT (#3875)
* Expose other types from CMT to allow usage on the client side while deserializing accounts.

* adds a convenient creation slot getter
2022-12-06 11:32:41 -05:00
samkim-crypto bb404a6af5
update solana to 1.14.10 (#3872) 2022-12-06 12:59:00 +09:00
Jon Cinque fd92ccf9e9
stake-pool: Keep trying to fix tests for CI (#3871) 2022-12-06 02:23:18 +01:00
Jon Cinque 56640720cf
stake-pool: Test max pool size with compute unit limit (#3870) 2022-12-05 18:47:22 +01:00
Jon Cinque da375306d2
stake-pool: Add tolerance for stake accounts at minimum (#3839)
* stake-pool: Add tolerance for stake accounts at minimum

* Use test-case to check more cases

* Add more tolerance on withdrawal

* Potentially fix test per #3854

* Keep throwing solutions until CI passes

* Fix repeated transaction issue

* Fix preferred withdrawal tolerance too

* Remove doubled tolerance
2022-12-05 12:23:36 +01:00
samkim-crypto c7fbd4b69b
check expected new source ciphertext in processing confidential transfer (#3867) 2022-12-03 14:46:02 +09:00
samkim-crypto 6a8cf4f938
[docs] Add formal spec for the public-key validity proof (#3863)
* ci: Bump rust stable version for twotx build

* [docs] add public-key validity proof formal spec

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-12-02 14:23:13 +09:00
Athar Mohammad c7c12f987c
token-cli: support for permanent delegate (#3841)
* token-cli: support for permanent delegate

* using associated account helper
2022-11-30 17:19:22 +01:00
Tyera 979fdc8b7b
Bump ATA to v1.1.2 (#3855) 2022-11-29 13:48:49 -07:00
Jon Cinque 30f60563ba
stake-pool: Make transaction signatures unique in withdraw test (#3854) 2022-11-29 20:54:46 +01:00
Jon Cinque 1566564b04
stake-pool: Refresh blockhash more often on update tests (#3853)
* stake-pool: Refresh blockhash more often on update tests

* Bump down max pool size, updated correctly in #3839

* Move withdraw test to another file

* Refactor withdraw tests more

* Get more blockhashes during `update_stake_pool_balance`
2022-11-29 19:15:46 +01:00
Jon Cinque 7d4ab6028b
stake-pool: Split up more tests to help CI, avoid warping (#3852)
* stake-pool: Split up more tests to help CI, avoid warping

* Remove unnecessary updates

* Split preferred test that keeps failing
2022-11-29 15:49:55 +01:00
Jon Cinque 792ffbc518
stake-pool: Split up tests to avoid CI failures (#3850) 2022-11-29 02:22:18 +01:00
Jon Cinque d8e3803fe4
ci: Fix 2xtx build (#3849) 2022-11-29 01:29:58 +01:00
Sebastian Bor 21cfaffc78
Governance: voting_cool_off_time (#3830)
* wip: add voting_cool_off_time

* feat: Default voting_cool_off_time to 1h for 10h or longer votes

* wip: Assert valid voting cool of time

* chore: cleanup GovernanceConfig tests

* chore: Rename vote_end_time() to expected_vote_end_time()

* chore: test_cast_council_veto_vote_within_cool_off_time

* chore: test_cast_approve_vote_with_cannot_vote_in_cool_off_time_error

* chore: test_change_yes_vote_to_no_within_cool_off_time

* chore: Reorder GovernanceConfig fields

* chore: test_finalize_vote_with_cannot_finalize_during_cool_off_time_error

* fix: Remove default voting_cool_off_time

* fix: Use max = base + cool_off voting time setup

* chore: Cleanup

* chore: Fix test_change_yes_vote_to_no_within_cool_off_time

* chore: Adjust base, cool off and max voting time names

* chore: Create has_voting_base_time_ended
2022-11-25 11:43:32 +00:00
Zhuojie Zhou | rex c24f9e876b
managed-token: add approve/revoke methods (#3820)
* managed-token: add approve/revoke/wrap methods

* Remove wrap and add more tests
2022-11-23 23:17:54 +01:00
hanako mumei 1a0e7742dc token-cli: temp add wildcard to account output 2022-11-23 10:39:28 -08:00
Athar Mohammad 3dd744d450
js support for permanent delegate authority (#3833) 2022-11-23 16:29:09 +01:00
hanako mumei 0de5f7339a bump token-cli to 2.2 and token-client to 0.3 2022-11-21 12:41:53 -08:00
Jon Cinque b253f36dd9
stake-pool: Bump token-2022 to 0.5 (#3837) 2022-11-21 20:45:52 +01:00
Jon Cinque fa438bbfa8
stake-pool: Add / remove validators from the reserve (#3714)
* stake-pool: Create validator stake accounts from reserve

* Update accounting to take minimum into account

* Refactor withdraw tests

* Add ability to remove validators during withdraw stake

* Add seed to validator stake account address derivation

* Update CLI with new instruction formats

* Update documentation and helper scripts for new funding

* Update Python bindings

* Try to fix flakey test

* Support token-2022

* Condense tests for CI

* Reduce huge pool limit post-rebase

* Avoid draining the whole reserve

* Restrict account extensions on allow-list

* Update comments to say "lamports"

* Fixup code comments and variable names

* Fix clippy in tests
2022-11-21 20:13:27 +01:00
hanako mumei 3c4267be06 token-2022: bump version to 0.5 2022-11-21 09:29:18 -08:00
Sebastian Bor dc18878ef1
Governance: Maintenance update (#3832)
* chore: Add comment to unused Governance account

* chore: fix typos

* chore: Update comments
2022-11-19 14:48:14 +00:00
Jon Cinque e0dd05fa5c
stake-pool: Add test for removing all validators from huge pool (#3806) 2022-11-19 01:47:02 +01:00
Jon Cinque 135cbdff04
stake-pool: Add lamports check for transient stake account on decrease (#3805) 2022-11-19 01:43:22 +01:00
Jon Cinque 84182ce926
stake-pool: Truncate on withdrawal calculation (#3804) 2022-11-19 01:42:57 +01:00
Sebastian Bor c5fcbefe19
Governance: Remove stats only fields to make room for more Config values (#3828)
* fix: Remove voting_proposal_count

* chore: add governance size tests

* chore: fix chat tests compilation
2022-11-18 15:49:04 +00:00
Sebastian Bor af7c378c95
Revert "Governance: Extend Veto vote period by min_transaction_hold_up_time (#3808)" (#3827)
This reverts commit 84e5c830cc.
2022-11-18 11:35:21 +00:00
Sebastian Bor 84e5c830cc
Governance: Extend Veto vote period by min_transaction_hold_up_time (#3808)
* feat: Extend Veto vote period by min_transaction_hold_up_time

* chore: add veto vote within hold up time tests

* chore: test_cast_council_veto_vote_within_hold_up_time

* chore: try to limit no of jobs to fix build

* chore: limit jobs to 1

* Revert "chore: limit jobs to 1"

This reverts commit 03191b891754c3d5f71463588ec7ff35aaa88534.

* Revert "chore: try to limit no of jobs to fix build"

This reverts commit 0adce587df96029569b67c19f97f623324a0ae11.

* fix: use saturating_add

* chore: rename vote_end_time() to expected_vote_end_time()
2022-11-17 19:56:38 +00:00
samkim-crypto 6725958c26
[token-2022] Enable confidential payments only feature (#3790)
* add allow_non_confidential_credits field

* add tests for disabling non-confidential transfers

* Apply suggestions from code review

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* clarify comment wording

* Update token/program-2022/src/extension/confidential_transfer/processor.rs

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

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-11-17 13:10:21 +09:00
Sebastian Bor dabb7799f6
Governance: Cleanup drive space before executing build (#3818)
* fix: split execution of spl-governance tests

* chore: test governance pull request action

* fix: increase tests timeout

* wip: test_cast_council_veto_vote

* Revert "wip: test_cast_council_veto_vote"

This reverts commit 3678eb867826bbd43292929598daa5cb84bcff17.

* fix: split use_veto_vote

* chore: display disk space between tests runs

* fix: cleanup space on build machine

* chore: remove Android from runner

* Revert "fix: split use_veto_vote"

This reverts commit 197cd02483f1e79b5b8a94b94489162f16b04c92.

* wip: disable test split

* chore: revert test-sbf changes
2022-11-16 18:29:14 +00:00
hanako mumei 7f851bd75a token-cli: add --recipient-owner flag to mint 2022-11-15 18:40:25 -08:00
hanako mumei bc02c1139c token-cli: owner-related cleanups 2022-11-15 18:40:25 -08:00
Jon Cinque b93d49ebd3
ci: Bump rust stable version for twotx build (#3813) 2022-11-15 23:43:56 +01:00
Jon Cinque 8d0a2e1000
token-2022: Add PermanentDelegate extension (#3725)
* token-2022: Add PermanentDelegate extension

* Address feedback

* Refactor getting permanent delegate

* Rename function

* More cleanup

* Fix ATA
2022-11-15 14:10:59 +01:00
hanako mumei 0ddbd71302 token-cli: test close account 2022-11-14 12:57:08 -08:00
DerLomo 086b115181
Update quick_start.md (#3816) 2022-11-14 15:47:06 +01:00
Jon Cinque d50f2745f8
token-cli: Support transfer fee extension (#3792)
* token-cli: Add transfer fee to create-token

* Add `expected-fee` arg to transfer

* Add withdraw-withheld-tokens implementation

* Add optional `Harvest` call while closing account

* Add `set-transfer-fee` command

* Fix rebase issues
2022-11-11 19:16:51 +01:00
Tyera Eulberg de73b277f3
Update readme release directions (#3811) 2022-11-11 00:18:39 -07:00
samkim-crypto da05275176
temporarily disable fees for downstream ci (#3798) 2022-11-07 11:17:31 +00:00