Sebastian Bor
3d3b32dcf6
Governance: Veto vote ( #3156 )
...
* chore: remove #[repr(C)]
* wip: resolve proposal governing token mint
* fix: remove optionality from veto vote
* feat: implement tipping for veto vote
* fix: move vote_threshold to the end of Proposal struct
* chore: remove use super
* chore: make clippy happy
* chore: add change log
* feat: add council_veto_vote_threshold
* fix: resolve vote threshold for voting token mint
* chore: revert old function name
* fix: calculate max veto in coerce_max_voter_weight
* chore: make clippy happy
* chore: make clippy happy
* feat: Implement RelinquishVote for Veto
* chore: update comments
* chore: rename with_cast_vote to with_cast_yes_no_vote
* chore: rename with_cast_multi_option_vote to with_cast_vote
* chore: create use_veto_vote test scenario
* chore: Add veto vote disabled tests
* chore: Add partial Veto vote tests
* chore: update comments
* chore: test_cast_veto_vote_with_no_council_error
* chore: test_relinquish_veto_vote
* chore: rename with_token_owner_record to with_community_token_owner_record
* chore: test_relinquish_veto_vote_with_vote_record_for_different_voting_mint_error
* chore: test_cast_veto_vote_with_invalid_voting_mint_error
* chore: fix chat build
* chore: test_cast_veto_vote_with_council_only_allowed_to_veto
* fix: Use VoteKind to distinguish between Veto and Electorate votes
* chore: make clippy happy
* Update change log
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
* chore: rename voting_token_mint to vote_governing_token_mint
* chore: test_cast_yes_and_veto_votes_with_yes_as_winning_vote
* fix: throw error for Community veto
* chore: Update comments
* chore: Update names and commnents
* chore: split try_get_tipped_vote_state into Electorate and Veto cases
* chore: Update comments
* chore: remove #[allow(clippy::float_cmp)]
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-05-17 16:37:43 +01:00
dboures
49c53ad653
token-js: Add sync version of getAssociatedTokenAddress ( #3171 )
...
* token-js: Bump web3.js dependency to 1.41.0
* token-js: Add sync version of getAssociatedTokenAddress
* token-js: add test for getAssociatedTokenAddressSync
* Update lockfile
Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-05-17 00:30:31 +02:00
Jon Cinque
895747f29f
token-lending: Bump / set / pin versions for 0.2.0 crates ( #3157 )
2022-05-12 00:27:02 +02:00
Seth Girvan
dc5684445f
Governance: fix instruction accounts comments ( #3144 )
2022-05-09 22:49:15 +02:00
samkim-crypto
9e029349fc
Rename encryption pubkey ( #3147 )
...
* token-2022: change elgamal pubkey to encryption pubkey
* token-2022: update client and tests for elgamal pubkey to encryption pubkey
2022-05-08 12:51:18 +09:00
samkim-crypto
b6eb64b0b4
token-2022: check pending and available balance on confidential token tests ( #3145 )
...
* token-2022: check pending and available balance on confidential token tests
* token-2022: cargo fmt
2022-05-07 15:00:58 +09:00
Sebastian Bor
219b6a1b78
Governance: Council Vote Threshold ( #3135 )
...
* wip: Replace proposal_cool_off_time with council_vote_threshold
* wip: serialise governance vec
* wip: cool off time
* chore: create test to deserialize legacy config
* wip: default council_vote_threshold from community_vote_threshold for legacy accounts
* chore: fix chat compilation
* feat: use community_vote_threshold for voting
* feat: assert all voting thresholds are not disabled
* chore: simplify tests without config mutation
* feat: assert proposal is created for valid vote threshold
* chore: update test name
* chore: test_finalize_council_vote
* chore: test_cast_council_vote
* chore: test for disabled voter threshold
* feat: Ensure GovernanceConfig reserved buffer is always empty
* chore: change error name to AtLeastOneVoteThresholdRequired
* chore: add comments
* chore: Add VoteThreshold.Any comments
2022-05-06 17:24:46 +01:00
samkim-crypto
bcf7aa2d6e
token-2022: client for confidential withdraw withheld tokens ( #3134 )
2022-05-06 15:52:43 +09:00
Tyera Eulberg
731a1363b1
Token client improvements ( #3139 )
...
* Use-stmt cleanup
* Use nonblocking RpcClient
* Arc-wrap RpcClient
* Confirm tx when using RpcClient
* Bump version for releasing
2022-05-04 18:11:11 -06:00
Tyera Eulberg
d087b574e6
Accommodate upstream web3.js changes in twotx patch ( #3140 )
2022-05-04 17:32:51 -06:00
Jon Cinque
9ef3fd819f
token-lending: Add version to spl-token dependency ( #3137 )
2022-05-04 13:03:34 +02:00
Jon Cinque
7d2048bd1c
token-lending: Fix maximum withdrawal value calculation ( #3138 )
2022-05-04 13:02:50 +02:00
Jon Cinque
a1c827d674
stake-pool: Update program to work with minimum delegation ( #3127 )
...
* stake-pool: Update program to work with minimum delegation
* Update minimum reserve lamports in the CLI
* Cargo fmt
* Add another test for hijacked account
* Fix python and JS constants
2022-05-02 22:45:25 +02:00
Sebastian Bor
3db53e278b
Governance: Rename vote_threshold_percentage to community_vote_threshold ( #3132 )
2022-05-02 16:15:08 +01:00
Jon Cinque
e59a0dc186
token-2022: Set transfer fee two epochs ahead ( #3120 )
2022-04-27 17:48:08 +02:00
Tyera Eulberg
51ece68cec
Add feature-wrapping for new ConfidentialTransferInstruction::TransferWithFee ( #3116 )
2022-04-26 13:15:09 -06:00
Tyera Eulberg
b3fe5b6d5d
Bump token-2022 ( #3113 )
...
* Bump token-2022
* Bump solana dependencies
2022-04-26 12:15:26 -06:00
Tyera Eulberg
2c1a671a77
Make spl-token-2022 instruction decoders pub ( #3112 )
...
* Make instruction decoders pub
* Add missing doc
2022-04-26 07:56:08 -06:00
Tyera Eulberg
2491b29a1e
Add AuthorityType variant to use for mint close-authority adjustment ( #3111 )
2022-04-26 07:55:15 -06:00
Jon Cinque
c616db83c4
token-2022: Add compatibility test for instructions ( #3106 )
2022-04-22 23:55:18 +02:00
samkim-crypto
049a89f351
token-2022: Add confidential transfer with fee instruction ( #2988 )
...
* token-2022: add separate transfer with fee instruction
* token-2022: add `TransferWithFee` client code
* apply twoxtx patch
* token-2022: add brief tests for transfer with fee
* Revert "apply twoxtx patch"
This reverts commit ce09d1f5d2fb496cd4ee9991be234726786e39f2.
* token-2022: cargo fmt
* token-2022: uncommenting the rest of the tests
* token-2022: cargo fmt
* token-2022: temporarily reverting to 5f89521
* token-2022: minor
* token-2022: clippy
* token-2022: apply twoxtx patch
* token-2022: fix transfer with fee test
* Revert "token-2022: apply twoxtx patch"
This reverts commit 577e63c2f38ce0a17fa4aede3d0acfd852b1d3ab.
* token-2022: simplify fee parameter for zkp on client
* token-2022: fix build
2022-04-22 14:00:42 -04:00
Jon Cinque
b5e301b210
name-service-js: Add to CI, clean up packages ( #3097 )
2022-04-22 00:01:24 +02:00
Harsh Ghodkar
f7d4ebecc6
added a flag to check if the recipient address is correct ( #3085 )
...
* added a flag to check if the recipient address is correct
* small fix
* Made the changes of adding the check to a suggested block
* updating from base
* was able to clear merge conflicts
* added a couple tests
* better names for tests
* done with fixes
* cargo fmt
2022-04-21 21:53:30 +02:00
Seth Girvan
01c2c4bfb9
Governance: fix ProposalTransaction seeds comment ( #3095 )
2022-04-21 20:44:18 +02:00
Ronald Hood Jr
ae2e000434
InitializeImmutableOwner Instruction ( #3068 )
...
* initializeImmutableOwner Instruction
* Immutable Owner Testing
* immutable owner tests
* Creating Mint and Initializing Account
* Parameter Synchronization
* Documentation Update
Co-authored-by: Ronald Hood <ronald.hood@yale.edu>
2022-04-21 20:43:56 +02:00
samkim-crypto
76f0532d83
token-2022: fix confidential transfer tests ( #3096 )
...
* token-2022: update zk-token-sdk to 1.10.8
* token-2022: remove ignore tag for confidential tranfer test
2022-04-21 12:21:21 -04:00
Anurag Gupta
fe20132b07
Updated index.ts and tests ( #3094 )
2022-04-21 01:00:43 +02:00
Ronald Hood Jr
4825298bc9
F32 Normal CDF Instruction and Implementation ( #3090 )
...
* F32 Normal CDF Instruction and Implementation
* Linting
* Prop Test and Option Return Removal
* Reverting Change to Cargo.lock
2022-04-20 17:40:52 +02:00
Bogdan Shumygora
9123a80a6a
Remove duplciate output of 'Stake Accounts' header ( #3089 )
2022-04-18 23:26:08 +02:00
Jon Cinque
bbde6d8703
token-cli: Add tests for all cases from docs ( #3070 )
...
* token-cli: Add tests for all cases from docs
* Add TestValidator and build.rs for programs
* Fix solana-test-validator version
* Add solana-test-validator to patch script
2022-04-15 21:51:16 +02:00
Jon Cinque
6828b42c22
security: Add policy ( #3079 )
...
* security: Add policy
* Update SECURITY.md
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Set expectations
* Relax a bit more
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-04-14 20:33:48 +02:00
Ronald Hood Jr
5611ad8bd5
Float exponentiation and logarithm instructions - MLH ( #2968 )
...
* Float exponentiation and logarithm instructions
* Corrections to instructions and tests
* Revamping Math Instructions
* Changed E Constant and modified compute max
* Formatting and Clippy Linting
* increased log computation allowance
Co-authored-by: Ronald Hood <ronald.hood@yale.edu>
2022-04-13 14:39:14 +02:00
Jon Cinque
1d1c2b178b
Upgrade crates to 1.10.8 ( #3076 )
2022-04-11 22:25:27 +02:00
T.J. Kyner
dd8f4d138f
reverting markdown changes
2022-04-09 00:41:03 -06:00
T.J. Kyner
899d1fc7ab
providing link to docs regarding airdrop command
2022-04-09 00:41:03 -06:00
T.J. Kyner
dde9daa112
updated comment
2022-04-09 00:41:03 -06:00
T.J. Kyner
a79e0ad22f
reduced wrapped sol amount
2022-04-09 00:41:03 -06:00
T.J. Kyner
bcbed1d5f3
updated airdrop request values
...
The current example of requesting an airdrop of 10 sol three times results in failed transactions due to the current airdrop limit of 2 sol per request and 24 sol per account per day. This PR updates the example to work within those constraints.
2022-04-09 00:41:03 -06:00
Jon Cinque
b2fad8a078
deps: Update bytemuck_derive to 1.1 ( #3054 )
2022-04-01 14:21:34 +02:00
Jon Cinque
513c1143a2
token-cli-bench: Remove RPC utils in favor of Tpu Client ( #3046 )
2022-04-01 13:41:33 +02:00
Arnold Lee
b425bae86a
Fixed small typo. ( #3051 )
...
Mutlisig -> Multisig
2022-03-30 20:43:50 +02:00
Jordan Sexton
552ada1035
remove old ts dir
2022-03-30 11:12:13 -06:00
Anurag Gupta
3d54d641e5
Update token.mdx ( #3049 )
2022-03-29 13:50:16 -06:00
Jon Cinque
fe4eb13fec
token-js: Fix build due to duplicated web3.js ( #3048 )
2022-03-29 21:24:21 +02:00
Jon Cinque
a19dc170e8
ci: Bump Node from v12 to v14 for spl-token downstream users ( #3047 )
2022-03-29 19:08:51 +02:00
Sergo
24baf875e9
Update README.md ( #3042 )
...
Fix comma typo.
2022-03-28 14:24:15 +02:00
Danny Povolotski
29d424e597
fully switch to @solana/buffer-layout ( #2634 )
...
* remove unused buffer-layout
* change to solana implementation of buffer-layout
* use latest buffer-layout and utils
* update buffer-layout-utils
* update buffer-layout-utils
* info.data is already Uint8Array
* update deps, fix lint
* remove node engine requirements
Co-authored-by: Danny Povolotski <danny@192.168.1.34>
Co-authored-by: Jordan Sexton <jordan@jordansexton.com>
2022-03-26 22:00:59 -06:00
Sebastian Bor
762c584dfe
Governance: Update addin account discriminators to Anchor compatible ( #3026 )
2022-03-24 18:28:47 +00:00
fauxfire
8322b8bb40
Typos. ( #3023 )
2022-03-22 23:42:44 -06:00
Jon Cinque
182c0532e4
associated-token-account: Add recover nested account ix ( #2889 )
...
* associated-token-account: Add transfer / close nested accounts
* Swap wallet and wrong_wallet in test
* Use new error
* Force destination to wallet and ATA
* Fix merge conflicts
* Add more vanilla spl-token tests
* Improve test, fix instruction comments
* Address feedback
* Rename CloseNested -> RecoverNested, add comment
* Fix typo in comment
2022-03-22 22:58:10 +01:00