Commit Graph

2820 Commits

Author SHA1 Message Date
hanako mumei 836c9e67a6 token-2022: implement CpiGuard
(this is a reversion of a previous reversion of the original CpiGuard commit)
2022-10-25 19:31:15 -07:00
Jon Cinque b45641f634
token-2022: Clarify `decode_instruction_data` (#3760) 2022-10-25 21:57:26 -04:00
Jon Cinque 8d79d85969
token-2022: Add unnecessary owner checks for more clarity (#3759) 2022-10-25 21:31:34 -04:00
samkim-crypto 12c11f6f9c
let error propagate instead of panicking (#3754) 2022-10-26 09:37:37 +09:00
samkim-crypto 02b1265ec8
fix minor test data description (#3752) 2022-10-26 09:37:04 +09:00
samkim-crypto bf10dfddf4
fix possible panic from short data length (#3751) 2022-10-26 09:36:46 +09:00
Jon Cinque 5f3cbc49ae
ci: Reduce audit ignores (#3758) 2022-10-25 20:34:34 -04:00
Athar Mohammad 94f78b2dcf
[token-js]: new overload of confirm tx in examples (#3685) 2022-10-25 19:52:33 -04:00
J e69c7706fb
`spl-token` cli - use default config file (#3738)
* add missing load from CONFIG_FILE default path
2022-10-25 14:41:37 -07:00
Trent Nelson 2c28eaa036
Revert "token-2022: implement CpiGuard (#3712)"
This reverts commit 126fb93be2.
2022-10-25 00:46:00 -06:00
hana 126fb93be2
token-2022: implement CpiGuard (#3712)
token-2022: implement CPI Guard

CPI Guard is an extension to block certain unsafe token operations from being done by programs through CPI
2022-10-24 18:36:57 -07:00
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