hanako mumei
d1dfa2d233
token-js: CPI Guard tests
2022-12-15 17:27:46 -08:00
hanako mumei
980065ec6c
token-js: implement CPI Guard
2022-12-15 17:27:46 -08:00
dependabot[bot]
ac96df0745
build(deps-dev): bump mocha and @types/mocha in /token/js ( #3717 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ). These dependencies needed to be updated together.
Updates `mocha` from 9.2.2 to 10.1.0
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.1.0 )
Updates `@types/mocha` from 9.1.1 to 10.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
- dependency-name: "@types/mocha"
dependency-type: direct:development
update-type: version-update:semver-major
...
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-14 20:26:22 +01:00
Jon Cinque
ae994afa3e
Update repo to `edition = "2021"` ( #3900 )
2022-12-13 23:46:26 +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
5f4943802b
clippy: Remove `useless_conversion` ( #3899 )
2022-12-13 15:56:12 +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
samkim-crypto
bb404a6af5
update solana to 1.14.10 ( #3872 )
2022-12-06 12:59:00 +09:00
samkim-crypto
c7fbd4b69b
check expected new source ciphertext in processing confidential transfer ( #3867 )
2022-12-03 14:46:02 +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
Jon Cinque
d8e3803fe4
ci: Fix 2xtx build ( #3849 )
2022-11-29 01:29:58 +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
hanako mumei
3c4267be06
token-2022: bump version to 0.5
2022-11-21 09:29:18 -08: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
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
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
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
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
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
Jon Cinque
9db366cfb7
token: Fix some spelling mistakes ( #3777 )
2022-10-28 18:03:20 -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
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