Commit Graph

2770 Commits

Author SHA1 Message Date
Sebastian Bor aaaf537be3
Governance: Move reserved space to GovernanceConfig (#3628)
* chore: move reserved space to GovernanceConfig

* chore: fix build
2022-09-27 21:23:43 +01:00
Noah Gundotra 271c13b20c
Account Compression: Add Close Tree Instruction (#3641)
* ac: add close tree instruction

* ac: update sdk with close tree instruction

* ac: test close tree instruction
2022-09-26 09:52:51 -04:00
samkim-crypto 50abadd819
token-2022: integrate memo into confidential extension (#3587)
* resolve conflict

* add test for confidential extension with memo

* add test for confidential transfer with memo

* change proof instruction order for memo

* resolve conflict

* minor

* rename new_with_memo to new_with_required_memo_transfers

* fix failing tests due to rebase

* fix failing tests due to rebase
2022-09-26 12:27:44 +09:00
IDrawCharts 1f6e9262a8
Fixed typo (#3643) 2022-09-25 10:35:20 -04:00
Alexander Meißner 7172b329a2
Same thing as in #3637 but for with_upgrade_program_transaction(). (#3642) 2022-09-24 13:23:45 +02:00
Noah Gundotra 410390b301
cmt: add method to check if the tree is empty (#3640) 2022-09-23 16:30:50 -04:00
Alexander Meißner aa5fdee00a
Refactor `test_create_program_governance` (#3637)
* Splits the unrealistically large transaction generated by with_governed_program() into many.

* Update apt packet list before attempting install in CI.
2022-09-23 21:36:34 +02:00
Noah Gundotra dad3fbaf1c
Account Compression: Version ChangeLog + Test (#3632)
* AC: export idl in SDK, add cmt helper functions

* AC: remove unnecessary events, emit statements

* AC: update noop program id

* AC: make events a typed struct (remove anchor event attr)

* AC: update AC program id, only emit events via cpi

* AC: update TS sdk

* AC: add event tests

* AC: update Anchor.toml

* AC: remove old program ids
2022-09-22 15:05:24 -04:00
Sebastian Bor 7fdb082445
Governance: Implement Absolute max voter weight source (#3627)
* feat: Implement Absolute max voter weight source

* chore: Rename max_vote_weight to max_voter_weight

* chore: update comments

* chore: test_try_tip_vote_with_reduced_absolute_mint_max_vote_weight_and_vote_overflow

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-09-22 09:40:44 -04:00
hanako mumei e988b163bb token-cli: constrain program id input 2022-09-21 10:37:53 -07:00
hanako mumei 2ae2a6bdf3 token-cli: test --immutable, final cleanups 2022-09-21 10:37:53 -07:00
hanako mumei 304e1bd0f7 token-cli: implement --immutable for wrap 2022-09-21 10:37:53 -07:00
hanako mumei 5756e7f9b7 token-cli: convert unwrap and sync_native to client
also allow client to control its own nativeness (nativity?)
2022-09-21 10:37:53 -07:00
hanako mumei 953e06b3a2 token-client: support wrap
also convert cli to use client for wrap
2022-09-21 10:37:53 -07:00
hanako mumei 6b05f02be7 token-cli: implement --immutable for create-account 2022-09-21 10:37:53 -07:00
hanako mumei 697a9e3d5e token-cli: convert create-account to use client 2022-09-21 10:37:53 -07:00
Noah Gundotra 9205a61a3f
AC: version on-chain accounts (#3619) 2022-09-21 09:16:11 -04:00
Jarry Xiao 318ced195f
Added prototype for managed-token program (#3573)
* Added prototype from managed-token program
2022-09-20 19:03:51 -04:00
Lucio M. Tato 54695b2334
Governance: add notes to ease collaboration (#3617) 2022-09-19 10:30:10 +01:00
hanako mumei e5d4b824b7 token-cli: remove unnecessary fetch for memo transfers 2022-09-16 13:24:16 -07:00
Noah Gundotra 8528f92f07
SPL Account Compression JS Package (#3609)
* AC: fix tsconfig json files for publishing js package

* AC: fix package.json module exporting, move mpl to peerDeps

* AC: rename program ids and addresses to match crate
2022-09-16 15:56:31 -04:00
Andrii Tretyakov feeda6a61e
token-cli: Memo transfer extension (#3525)
token-cli: Add support for required transfer memos
2022-09-16 11:17:42 -07:00
Jon Cinque 6099f41dd3
farms: Update docs to build-bpf instead of build-sbf (#3612) 2022-09-16 01:25:57 +02:00
Jon Cinque 8636eb3270
token-upgrade-cli: Use test-validator instead of validator (#3611) 2022-09-15 22:59:14 +02:00
Jon Cinque 98c6d3be82
ci: Add clap-v3-utils to patch and update scripts (#3610) 2022-09-15 22:20:41 +02:00
Jon Cinque fa534e987a
token-upgrade: Add CLI and docs (#3593)
* token-upgrade: Add CLI and docs

* Remove build.rs and build by hand

* Exclude token-upgrade-cli from cargo-build-test

* Use user-friendly token-client response printing

* Make docs consistent with implementation + other feedback

* Remove integer arithmetic

* Make required parameters `required()`
2022-09-15 20:25:40 +02:00
Jon Cinque f97a3dc7cf
clippy: Deny integer arithmetic, add allows where needed (#3606) 2022-09-15 13:16:53 +02:00
hanako mumei 2acc42fd96 token-cli: display all extensions except confidential 2022-09-14 11:36:40 -07:00
hanako mumei f3f9995484 token-cli: impl display for interest and transfer fee 2022-09-14 11:36:40 -07:00
hanako mumei bdd0d4938a token-cli: impl display for half of extensions 2022-09-14 11:36:40 -07:00
hanako mumei b90903c990 token-cli: impl two extensions for display
also indent all the displys cutely
2022-09-14 11:36:40 -07:00
hanako mumei 6d61b8e3e4 token-cli: impl `spl-token display` for mint
also show decimals for accounts, because we can
2022-09-14 11:36:40 -07:00
hanako mumei 00b8e7a8b1 token-cli: modernize account-info, impl display 2022-09-14 11:36:40 -07:00
hanako mumei f8d1503acf token-cli: convert multisig display to UiMultisig 2022-09-14 11:36:40 -07:00
hanako mumei bdc3087533 token-cli: modernize multisig display 2022-09-14 11:36:40 -07:00
Jon Cinque c0ef1f95ef
token-upgrade: Define new conversion program (#3436)
* token-upgrade: Define interface and state for token upgrade program

* Update with feedback

* Address more feedback, make the whole thing stateless

* Address interface feedback

* Add implementation

* Update language

* Update language

* Add tests

* Add CI

* Change program id to tkup

* Rebase fix

* Address feedback

* Enforce decimals match
2022-09-14 12:44:29 +02:00
samkim-crypto 7633f6f81d
token-2022: Add support for non transferable and immutable ownership in token client (#3582)
* add token client support for non transferable mint

* resolve conflict

* add basic tests for non transferable token account

* add test for fees for non-transferable accounts

* resolve test failure from rebase
2022-09-14 17:37:09 +09:00
samkim-crypto 4587da1eab
confidential-extension: Restrict deposit source and withdraw dest to base accounts (#3540)
* resolve conflict

* update token client for new deposit syntax

* resolve conflict

* update tests

* address doc comments
2022-09-14 16:22:52 +09:00
Edgar ac47fb1e38
add stake pool support support for hardware wallets in set-manager (#3583)
* add support for hardware wallets in set-manager

* clippy

* wrap new_manager in &Option<T> type

* trigger CI
2022-09-13 20:31:27 +02:00
Jon Cinque 0bbe9bd7c8
audit: Update axum-core and its deps aggressively (#3601) 2022-09-13 18:13:31 +02:00
Jon Cinque 563512bcfb
account-compression: Rename packages, prep for release (#3600) 2022-09-13 17:44:18 +02:00
Jordan Sexton d0277e65dd organize imports, lint 2022-09-12 18:39:51 -05:00
Jordan Sexton 48c0ede285 token js: patch version bump 2022-09-12 18:38:49 -05:00
Sammy Harris 6f4bdaa912
Update token-js with rent-less instructions (#3590)
* add new token instructions

* add decode helper function

* remove commented out thingy

* fix decode order

* update unit test

* add new unit tests
2022-09-12 17:52:53 -05:00
Jon Cinque 49a119b105
token-client: Add fmt::Display implementation to RpcClientResponse (#3594)
* token-client: Add Display to RpcClientResponse

* Handle crates defined as `{ version = "...", ... }
2022-09-12 22:09:55 +02:00
Jon Cinque 6bcd051d38
token-client: Change create_account to return T::Output (#3584) 2022-09-10 16:01:50 +02:00
Noah Gundotra 74a41cc140
Concurrent Merkle Tree: Improve Docs (#3589) 2022-09-10 10:42:44 +05:30
hanako mumei 065a04788d token-cli: remove unnecessary program_id logic 2022-09-09 09:56:19 -07:00
jon wong 504139fd0c
Update token-2022.md (#3576) 2022-09-08 12:10:07 -04:00
Noah Gundotra ee1b4be087
Account Compression: Autogenerate TS SDK with Solita (#3551)
* AC: SDK can be imported into test

* AC: rename program folder, update account type discriminant size to u8

* AC: tests now pass

AC: remove log statements

AC: update README

AC: restructure class as a type

* AC: remove 'roll' and 'gummy' references

* AC: remove anchor TS dependency from SDK

AC: fix unused, missing imports

AC: remove unused anchor imports

AC: remove test utils

* AC: move anchor tests inside js sdk

AC: remove unnecessary bn dependency, use Anchor just for testing

* AC: remove unused exports, update Solita path

* AC: update tsconfigs

* AC: address nits

* AC: add ser/de beets for CMT library types

* AC: update test formatting

* AC: clean up confusing tests

* AC: move convenience functions to instructions

* AC: move test deps out of build

* AC: add comment explaining header padding

Co-authored-by: Noah Gundotra <noahgundotra@noahs-mbp.mynetworksettings.com>
Co-authored-by: jarry-xiao <jarry.xiao@gmail.com>
Co-authored-by: Sam Orend <sam.orend22@gmail.com>
Co-authored-by: Jarry Xiao <61092285+jarry-xiao@users.noreply.github.com>
Co-authored-by: austbot <me@austbot.com>
2022-09-08 17:04:54 +05:30