Commit Graph

2599 Commits

Author SHA1 Message Date
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
Jon Cinque b7a3fc6243
token-2022: Fix (rarely) flakey test by changing tx (#3015) 2022-03-19 02:39:31 +01:00
Jon Cinque 2292dc2c8c
token-2022: Refactor instruction encoding / decoding (#3011) 2022-03-17 18:27:06 +01:00
kampung-tech 6487cde537
fix typo remove_liquidty to remove_liquidity (#3010) 2022-03-14 18:07:18 +01:00
Eric Su 664ad292ac
add TypeDocs link (#3005) 2022-03-12 00:11:03 -07:00
Jon Cinque 9c4127f5f1
token-swap-js: Cleanup for next release (#3004) 2022-03-11 22:23:41 +01:00
Brennan Gebotys a2bbabc1dc
add getMultipleAccounts for Token (#2990)
* add getMultipleAccounts for Token

* update naming convention of fcn

* rename & reorg code

* lint fix

Co-authored-by: obiwan <you@example.com>
2022-03-11 22:11:50 +01:00
samkim-crypto 4ddaae5f21
Bump zk token sdk (#3002)
* token-2022: bumping zk-token-sdk to 1.10.1-pre1 and updating variable names accordingly

* token-2022: updating client and test variables to match newest zk-token-sdk
2022-03-11 06:57:32 -05:00
Jon Cinque 56a1e97c95
token-js: Update @solana/web3.js dependency (#3001) 2022-03-10 22:32:31 +01:00
Jon Cinque 29479fcc72
token-2022: Make program and crate deployable (#2985)
* token-2022: Make program and crate deployable

* Featurize the syscall usage

* Re-add GenericTokenAccount

* Rebase correctly with GenericTokenAccount

* Add updated valid_account_data implementation
2022-03-10 17:42:16 +01:00
Tyera Eulberg 810c79ec32
token-2022: Allow anyone to burn/close an Account owned by the system program or the incinerator (#2890)
* Allow anyone to burn and close token Accounts owned by the system program and the incinerator

* Require rent from incinerator/system-owned token accounts be burnt when accounts closed

* Add support to OG program
2022-03-09 19:31:39 -07:00
Lijun Wang 76a92cda2d
Added checks if a token account is initialized when checking validity (#2986)
* Added checks if an account is initialized when checking validity
2022-03-09 16:53:48 -08:00
Tyera Eulberg 221935bdba
Ignore failing test (#2999) 2022-03-09 16:48:36 -07:00
Tyera Eulberg 26d3a33939
Update twoxtx patch (#2997) 2022-03-09 12:15:42 -07:00
Jon Cinque b7b7690217
scripts: Update solana_version in Anchor.toml with dependencies (#2996) 2022-03-09 17:57:15 +01:00
Tyera Eulberg 0aa95f2d00
Bump regex (#2995) 2022-03-08 14:52:03 -07:00
Jon Cinque d51b58294f
anchor: Updates for token-2022 (#2984)
* anchor: Update version, add token-2022 and dependencies

* Add token program id
2022-03-04 16:15:23 -05:00
samkim-crypto 7ab4de6174
token-2022: minor rename pod types with descriptive types (#2983) 2022-03-04 12:26:28 -05:00
Tyera Eulberg e17706c7be
Spell out destination (#2977) 2022-03-03 12:34:17 -07:00