Commit Graph

2909 Commits

Author SHA1 Message Date
Jon Cinque 17b63e96b9
ci: Update twotx.patch to apply properly (#3748) 2022-10-24 20:58:47 -04:00
Sebastian Bor 84a04d2d6c
feat: change dispose_account to support vote casting (#3744) 2022-10-24 23:00:06 +01:00
Noah Gundotra a05f3bdebb
ac: rename Wrapper to Noop (#3735) 2022-10-24 09:32:36 -04:00
Noah Gundotra 5504af4996
Account Compression: Add CMT checks for out of bounds leaf indices and initialization (#3724)
* cmt: add check for leaf index OOB

* ac: add checks for leaf index OOB

* ac: add tests for leaf index OOB

* nit: fix some poor logging & unused imports

* cmt: add initialization checks before public methods

* cmt: update LeafContentsModified error message

* cmt: make tests easier to read, add PartialEq, Eq to CMTError

* ac: make LeafOOB error the last error in the struct to prevent breaking changes

* ac: fmt fix
2022-10-21 14:06:47 -04:00
B Haney 44d9f154d9
Update README.md (#3652)
* Update README.md

* Update README.md

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

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-10-20 08:53:49 -04:00
Jon Cinque c318603368
managed-token: Remove ignored profile.release (#3728)
The SPL build currently gives this warning every time:

```
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/jon/src/solana/solana-program-library/managed-token/program/Cargo.toml
workspace: /home/jon/src/solana/solana-program-library/Cargo.toml
```

Remove the ignored `profile.release` configuration in managed-token.
2022-10-19 10:58:27 -04:00
Jon Cinque 944bb968f3
instruction-padding: Add a new program for padding instructions (#3608) 2022-10-19 01:06:34 -04:00
hanako mumei d02d49e267 fix comment, remove allow dead code 2022-10-17 16:09:41 -07:00
bji a7f6f8811e
token-cli: Only require default signer for commands which use it (#3293) 2022-10-14 17:50:33 +02:00
Noah Gundotra 6e81794844
Account Compression: JS SDK release 0.1.1 (#3680)
* ac: beet* as deps, not peerDeps

* ac: expose depth size pairs, add canopyDepth to CMTAccount getters

* ac: add tests for CMT Account

* ac: update README.md

* ac: update lockfile
2022-10-13 11:52:16 -04:00
Noah Gundotra 39935bab12
ac: expose ChangeLogEventV1 in crate (#3707) 2022-10-12 19:01:42 -04:00
hanako mumei 8177a4d9e2 update Cargo.lock 2022-10-12 14:58:11 -07:00
hanako mumei 88b147506d bump token-cli to 2.1.1 and token-client to 0.2.1 2022-10-12 10:48:23 -07:00
hanako mumei 3a87c8fc0a update solana to 1.14.4 2022-10-12 10:48:23 -07:00
Michael Danenberg 1e2579f8e8
Account Compression: Adding new() function for ChangeLogEvent and expose ChangeLogEventV1 (#3688)
Needed by Metaplex.
2022-10-11 09:05:44 -04:00
hanako mumei 5f189d1fc0 bump token-client to 0.2.0 and token-cli to 2.1.0 2022-10-10 17:36:34 -07:00
hanako mumei c5a6d0ae31 token-cli: dont push fee_payer to bulk_signers 2022-10-08 21:41:21 -07:00
hanako mumei 51f5e93e4e token-client: clean up useless temp vecs 2022-10-07 14:08:27 -07:00
hanako mumei a5a565b56c token-client: move decimals from Token methods to struct 2022-10-07 12:24:36 -07:00
hanako mumei 4842217611 token-cli: final accounts command cleanups 2022-10-07 10:18:55 -07:00
hanako mumei 7583907f10 token-cli: display delegate and close for accounts 2022-10-07 10:18:55 -07:00
hanako mumei 61bee36db6 token-cli: fliter accounts display by delegate or close
also add ability to print only account addresses
2022-10-07 10:18:55 -07:00
hanako mumei 4b4bbb3959 token-cli: improve accounts header display 2022-10-07 10:18:55 -07:00
hanako mumei b0903340b9 token-cli: support multiple programs for `spl-token accounts`
also remove decimals from CliTokenAccount, which turns out to be extraneous
2022-10-07 10:18:55 -07:00
hanako mumei 200b2acab4 token-cli: final fixes for client conversion 2022-10-06 17:33:34 -07:00
hanako mumei 2c6fbf7c67 token-cli: make gc transfer tokens from uncloseable
also change client transfer to use idempotent associated account instruction
2022-10-06 17:33:34 -07:00
hanako mumei f8d82e5dbd token-cli: safer behavior for transfer decimals 2022-10-06 17:33:34 -07:00
hanako mumei 7b86fc9038 token-cli: remove handle_tx 2022-10-06 17:33:34 -07:00
hanako mumei 7847f35f1e token-cli: convert transfer to client 2022-10-06 17:33:34 -07:00
hanako mumei e6739b5bae token-cli: convert gc to client
add new client function empty_and_close_auxiliary_account which does what it says
also remove sign-only mode from command_close to permit client close behave more sensibly
2022-10-06 17:33:34 -07:00
hanako mumei 186303a9d2 token-cli: convert create_multisig to client 2022-10-06 17:33:34 -07:00
hanako mumei 37168db058 token-cli: convert required memos and interest rate to client 2022-10-06 17:33:34 -07:00
hanako mumei 7e3a62473b token-client: convert extended functions to new interface
covers all extensions except confidential transfers
2022-10-06 17:33:34 -07:00
Jon Cinque 96ce922727
token-cli: Add directions for building and running tests (#3673) 2022-10-06 19:37:22 +02:00
Noah Gundotra b0d84fc44d
Account Compression: 0.1.2 release (#3672)
* ac: expose wrap_application_data_v1, hide wrap_event

* ac: separate event deserialization methods, update IDL

* ac: add test for deserializing application data event

* ac: add crate READMEs, update top-level README

* ac: bump version to 0.1.2
2022-10-06 11:58:16 -05:00
mwrites f61af23932
[token-js] : JS binding for CreateIdempotent instruction (#3558)
* JS binding for CreateIdempotent instruction

* revert

* newline

* Removed Idempotent flag and extracted Idempotent logic to its own set of functions

* Conventions
2022-10-06 16:56:32 +02:00
Noah Gundotra c84f65c5ff
account-compression: update program ids in 0.1.1 (#3670) 2022-10-05 15:27:59 -05:00
timkoopmans 4e09bd54fb typo 2022-10-04 15:59:29 -07:00
hanako mumei 065e62922a token-cli: load config if exists without -C 2022-09-29 14:34:05 -07:00
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