Sebastian Bor
bc00009d64
Governance: Realm authority validation ( #2787 )
...
* feat: Ensure realm authority can be set to realm's governances only
* chore: update comments for governance account check
* chore: update realm authority comments
* chore: update comments
* chore: update comments
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-01-24 19:41:01 +00:00
Tyera Eulberg
a98977f5fd
token-2022: add more tests ( #2783 )
...
* Add extended-mint case to test_get_account_data_size()
* Add missing account-type init
* Add basic init-acct ProgramTest tests
2022-01-24 11:39:13 -07:00
Tyera Eulberg
c03c1fc7b4
token-2022: make extension instruction builders consistent with vanilla token ( #2782 )
...
* Make TransferFee and MintClose ix builders consistent with vanilla token
* Make ConfidentialTransfer ix builders consistent with vanilla token
2022-01-24 11:03:37 -07:00
Tyera Eulberg
28e779d480
Bump thread_local ( #2789 )
...
* Revert "Temp. ignore thread_local 1.1.3 security warning (#2788 )"
This reverts commit 44b338fa14
.
* Bump thread_local
2022-01-24 11:01:43 -07:00
Sebastian Bor
2ae2f5f067
Governance Chat: Voter weight ( #2778 )
...
* chore: update governance chat program version to 0.2.0
* feat: support voter weight for chat
* chore: move ensure_voter_weight_addin_is_built to test sdk
* chore: add program version to logs
* fix: workaround for logs
* chore: add test for chat message using voter weight addin
* chore: remove logger overrides
Co-authored-by: Jon Cinque
2022-01-24 17:59:21 +00:00
Sebastian Bor
44b338fa14
Temp. ignore thread_local 1.1.3 security warning ( #2788 )
...
* fix: temp ingnore thread_local 1.1.3 security warning
* chore: fix typo
2022-01-24 17:36:22 +00:00
Jordan Sexton
66770345eb
alpha version bump
2022-01-22 00:29:56 -06:00
Jordan Sexton
0cfedde82d
version bump: 0.2.0-alpha.1
2022-01-22 00:29:56 -06:00
Jordan Sexton
5afaae7a60
add decoded instruction type guard functions
2022-01-22 00:29:56 -06:00
Jordan Sexton
55b1732731
add DecodedInstruction type
2022-01-22 00:29:56 -06:00
Jordan Sexton
65cd045523
update deps
2022-01-22 00:26:44 -06:00
Jordan Sexton
b55986b16b
update tsconfig
2022-01-22 00:26:44 -06:00
steveluscher
f090e55642
Build ESModules with typescript-esm
2022-01-22 00:26:44 -06:00
steveluscher
eda6998654
Import indexes, explicitly
2022-01-22 00:26:44 -06:00
Tyera Eulberg
83c3ffad25
Bump solana crates to v1.9.5 ( #2780 )
...
* Bump solana crates to v1.9.5
* Update sol_set_return_data type signature and un-ignore test
2022-01-21 22:52:10 -07:00
Jon Cinque
8ee35d74c1
stake-pool-cli / token-lending-cli: Sign after balance check ( #2773 )
2022-01-22 01:11:58 +01:00
Tyera Eulberg
defdca2201
Comment SyscallStubs sol_set_return_data and ignore test for now ( #2777 )
2022-01-21 16:32:37 -07:00
Tyera Eulberg
bf96dd43bf
token-2022: overwrite with init_extension using default state ( #2746 )
...
* Overwrite extension data when init is called
* Update comments
2022-01-21 16:28:04 -07:00
Tyera Eulberg
fbd3dd4247
Bump solana-zk-token-sdk ( #2772 )
2022-01-21 15:57:55 -07:00
Tyera Eulberg
821ad120d8
Bump zk-token-sdk and impl Default for confidential-transfer extensions ( #2771 )
2022-01-21 13:33:41 -07:00
Tyera Eulberg
498d347cdd
token-2022: bump compute limit for close test ( #2770 )
2022-01-21 11:54:02 -07:00
Jon Cinque
54cb4ad1d8
associated-token-account: Revert to using spl-token-2022 ( #2769 )
...
* associated-token-account: Revert to using spl-token-2022
* Clear up no-entrypoint feature for rust client
2022-01-21 19:17:44 +01:00
Jon Cinque
78e7a9538e
associated-token-account: Bump dependent token version to 3.3 ( #2766 )
...
* associated-token-account: Bump dependent token version to 3.3
* Fix uses of deprecated instruction
2022-01-21 11:01:06 +01:00
Jon Cinque
f5a6dc671c
token-2022: Zeroize account data on close ( #2764 )
...
* token-2022: Zeroize account data on close
* Address feedback
2022-01-21 02:47:48 +01:00
Jon Cinque
81f50127f1
token: Bump version to 3.3.0 ( #2765 )
2022-01-21 01:47:02 +01:00
Jon Cinque
3eccf25ece
token: Zeroize data on account close ( #2763 )
2022-01-21 01:03:00 +01:00
Jon Cinque
260dfa2a09
token-lending-cli: Sign before checking fee for message ( #2761 )
2022-01-20 14:45:17 +01:00
Jon Cinque
2e03106ae0
stake-pool-cli: Sign messages before checking fee ( #2759 )
2022-01-20 14:36:19 +01:00
Jon Cinque
ba46fedafb
token-2022: Add init transfer fee config ( #2757 )
2022-01-20 13:29:40 +01:00
Michał Piotrowski
b6bafc7a64
token lending tests p1 ( #2719 )
2022-01-19 21:05:41 +01:00
Jon Cinque
db0b2c5295
token-2022: Add mint close authority support everywhere ( #2754 )
...
* token-2022: Add mint close authority support everywhere
* Address feedback
2022-01-19 18:40:00 +01:00
Jon Cinque
480dc6870f
token-2022: Add init mint close authority ( #2744 )
2022-01-19 12:44:45 +01:00
Trent Nelson
f3704db5ff
Bump token-2022 test CUs again for tip of 1.9
2022-01-18 18:19:52 -07:00
Sebastian.Bor
edc524fd13
chore: fix test_create_realm_for_existing_pda
2022-01-18 14:39:04 -07:00
Jon Cinque
0a61bc4ea3
token: Bump compute units in tests ( #2752 )
2022-01-18 13:15:08 +01:00
Sebastian Bor
602d74779c
Governance: Account creation workaround for existing PDA ( #2751 )
...
* fix: use allocate/assign to create PDA with lamports
* chore: test crate realm for existing pda
2022-01-18 11:02:31 +00:00
dr497
dd035edda0
name-service: allow parent owner to transfer subdomains
2022-01-16 09:06:35 -08:00
Tyera Eulberg
00b8a4b332
token-2022: Support extensions in InitializeAccount variations ( #2743 )
...
* Prep helper fn to reuse code
* Adjust error to match current _initialize_account handling
* Add new helper to initialize extension from ExtensionType
* Include required extensions in InitializeAccount processing
* Initialize native mint
* Add missing native-mint test case for get_account_data_size
* Remove superfluous mint unpack
* Limit scope of StateWithExtensionsMut method
* Update comments to be correct
* Check account length vis-a-vis required extensions in Initialize
* Noop confidential-transfer case, add comments, and make fn name more explicit
* gt -> ne
2022-01-15 13:59:03 -07:00
Jon Cinque
3e1dd73396
token-2022: Basic integration with rust client ( #2739 )
...
* token-2022: Basic integration with rust client
* Rename ExtenstionType -> Self
* Fix merge conflicts
2022-01-14 20:34:43 +01:00
Tyera Eulberg
cad24e502a
Add GetAccountDataSize implementation ( #2736 )
...
* Add helper to get required Account extensions
* Add GetAccountDataSize processor
* Add get_account_data_size instruction
* Add test harness to check return data
* Add test of basic mint/account get-len
* Move method inside impl ExtensionType
2022-01-13 18:50:01 -07:00
Tyera Eulberg
d3a597d2f7
Use spl-token-2022 in ATA program ( #2737 )
...
* Bump ATA to spl-token-2022
* Use latest program to fix id mismatch in deprecated ix test
2022-01-13 18:40:35 -07:00
Michael Vines
e7737760ee
Port the remainder of the zk-token program to the ConfidentialTransfer extension
2022-01-13 10:44:42 -08:00
Jon Cinque
ac85fca43d
token: Refactor transfer fee instructions + processor ( #2733 )
2022-01-13 12:08:17 +01:00
Michael Vines
db9f89828b
Allow the confidential transfer extension to block `CloseAccount`
2022-01-12 09:54:53 -08:00
Jon Cinque
c85373aa3e
token: Check self-ownership in `validate_owner`
2022-01-12 08:20:10 -08:00
Ikko Ashimine
9dd61d84ab
fix: typo in binary_option.py ( #2732 )
...
Initalize -> Initialize
2022-01-12 15:50:38 +01:00
Michael Vines
583afbd35f
Drop `new_base` argument, `pack_base()` now works on `self.base`
2022-01-11 21:11:19 -08:00
Jon Cinque
f2056358b7
token: Add checks for mixed type initialization ( #2723 )
...
* token: Add checks for mixed type initialization
* Address feedback
2022-01-12 01:33:02 +01:00
Ben Williams
0c9f962a7b
fix small typo ( #2727 )
2022-01-11 14:33:23 -07:00
Michael Vines
991eb83a67
Confidential transfer extension
2022-01-11 13:22:20 -08:00