Commit Graph

2849 Commits

Author SHA1 Message Date
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
Jon Cinque 374f5283ec
token-cli: Specify that `default-account-state` takes a value (#3800) 2022-11-04 17:06:40 +00:00
Jon Cinque 25817cbf08
token-cli: Support DefaultAccountState extension (#3785)
* token-cli: Support DefaultAccountState extension

* Switch to `default-account-state` flag

* Change error to assert

* Rebase fix
2022-11-03 00:50:51 +00:00
Jon Cinque 8e98905a8c
token-cli: Add non-transferable mint creation (#3795)
* token-cli: Add non-transferable mint creation

* Add alias
2022-11-03 00:35:30 +01:00
Tyera Eulberg 574fe73465
Fix CpiGuard typo, but actually DRY processor methods (#3791)
* Fix typo

* DRY CpiGuard

* DRY RequiredMemoTransfers
2022-11-02 10:33:37 -06:00
samkim-crypto edac3c50f0
Disable confidential transfer tests (#3786)
* disable confidential transfer tests

* featurize additional parts of the code
2022-10-31 11:53:12 +09:00
samkim-crypto abc77af1d9
Require pubkey validity proof when initializing confidential account (#3784) 2022-10-30 14:51:22 +09:00
Noah Gundotra 85160e0d51
Account Compression: add docs link for account compression (#3783)
* ac: add docs link for account compression

* ac: bump ts pkg version to 0.1.4
2022-10-29 10:27:23 -04:00
hanako mumei 0bc2a02f00 token-cli: support cpi guard enable/disable 2022-10-29 00:07:33 -07:00
Jon Cinque 9610bed534
token-js: Bump version to 0.3.6 for release (#3778) 2022-10-28 18:24:00 -04:00
Noah Gundotra 5aa36923d7
ac: bump ts sdk version to 0.1.3 (#3782) 2022-10-28 18:22:17 -04:00
Jon Cinque 9db366cfb7
token: Fix some spelling mistakes (#3777) 2022-10-28 18:03:20 -04:00
Noah Gundotra 92b1ea35bb
Account Compression: Typescript SDK v0.1.3 (#3743)
* ac-ts: update typescript to match v0.1.4 on-chain

* ac: add prettier, lint, typedoc config

* ac: test all init pairs

* ac: format everything

* ac: breaking changes to instructions helpers

* ac: update tests to use getCurrentBufferIndex

* ac: add docs to ts sdk

* ac: add examples to Readme, Canopy calculation explanation

* ac: ts helpers now require ValidDepthSizePair

* ac: restructure MerkleTree in tests to follow  layout

* ac: lint, pretty

* ac: export MerkleTree file

* ac: revamp instruction helpers with merkle tree class

* ac: add docs

* ac: pretty, lint

* ac: update README with jnwng's feedback

* ac: export merkle-tree docs
2022-10-28 17:38:09 -04:00
Yihau Chen a16d21cf22
chore: replace '::set-output' with '>> $GITHUB_OUTPUT' (#3764)
* chore: replace '::set-output' with '>> $GITHUB_OUTPUT'

* trigger docs pipeline when yml changed
2022-10-28 17:27:43 -04:00
samkim-crypto 16384e2f00
add destination confidential account test for withdraw withheld instructions (#3774) 2022-10-29 05:49:32 +09:00
samkim-crypto 1c3af5e53d
[token-2022] Add doc regarding the ability of withdraw withheld authority [ZELLIC-3.4] (#3773)
* Mention the corresponding proof instruction in the token instruction doc

* add warning about withheld fees authority
2022-10-29 04:11:47 +09:00
hanako mumei fcb44af0f9 token-cli: more better errors in command_transfer
* check if the user needs to provide a memo
* dont let the user create ata accounts belonging to other token-owned accounts
* also, define valid program ids in one place and use for all tests
2022-10-27 11:18:54 -07:00
samkim-crypto 94b912a2b2
Add pubkey consistency check on account and proof data (#3768) 2022-10-27 16:49:55 +09:00
samkim-crypto d6a72ebfe4
Add pubkey consistency check on account and proof data (#3767) 2022-10-27 12:40:26 +09:00
samkim-crypto 7a2702936d
remove transfer with fee instruction (#3766) 2022-10-27 10:26:33 +09:00
samkim-crypto 0c8fb24d47
upgrade solana-program to 1.14.6 (#3765) 2022-10-27 07:59:25 +09:00
Jon Cinque aaabce2035
token-2022: Return errors for malformed extension data (#3762) 2022-10-26 11:16:00 -04:00
Jon Cinque d331f47c52
token-2022: Remove redundant mint initialization check (#3763) 2022-10-26 11:15:32 -04:00
Jon Cinque 0ff8fe1546
token-2022: Error sooner when searching for an extension in TLV data (#3761) 2022-10-26 11:15:08 -04:00
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