Commit Graph

2599 Commits

Author SHA1 Message Date
imprfekt 429824e4fb
docs: token: Added missing information about security audit (#2724)
* docs: token: Added information about security audit

for Streamflow Timelock.

* docs: token: additional security report added for Streamflow
2022-01-11 18:09:58 +01:00
Jon Cinque 2d770628ef
stake-pool-cli: Add best practices for fees, prevent zero fees (#2670)
* stake-pool-cli: Add best practices for fees, prevent zero fees

* Address feedback
2022-01-11 01:24:16 +01:00
Michael Vines 2caec406bc Rename StateWithExtensionsMut::get_extension() 2022-01-10 13:15:02 -08:00
Michael Vines 9aa859c929 Display RPC transport stats 2022-01-10 11:54:22 -08:00
Tyera Eulberg 7fd1b6b75f
Fixup tests to use rent-exempt accounts (#2717) 2022-01-10 09:49:32 -07:00
Tyera Eulberg f4e0cae144
Fix up helper to create rent-exempt accounts (#2720) 2022-01-08 15:51:17 -07:00
Michael Vines 7f0e86cc0f Harden StateWithExtensions unpacking 2022-01-08 09:20:02 -08:00
Tyera Eulberg d166e28836
Strip extension account-type prefixes (#2715)
* Strip account-type prefixes

* Edit comment
2022-01-07 16:46:01 -07:00
Michael Vines 3cc92d294a How about ConfidentialTransferState and ConfidentialTransferAuditor? 2022-01-07 14:58:41 -08:00
Michael Vines 5fe1eb6a9d Add Confidential Transfer Extension boilerplate 2022-01-07 14:58:41 -08:00
Michał Piotrowski 0a98473f0a
libraries tests p1 (#2697)
* libraries tests p1

* fix cs

* libraries tests p1 - address review comments

* fix cs

* libraries tests p1 - address review comments - revert a change because of clippy

* libraries tests p1 - apply cleanups from joncinque
2022-01-07 16:26:40 +01:00
Jon Cinque ac38f220e1
CI: Add cargo audit, just like in the monorepo (#2707) 2022-01-07 13:16:33 +01:00
Michael Vines 7cc9bd7013 Move each extension into its own module 2022-01-06 09:41:06 -08:00
Noopur Ramakant Phalak a0755afa96
Update stake-pool.md (#2702)
Github link rectified for stake-pool source code...
2022-01-06 17:11:11 +01:00
Alessandro Decina 7dcd69b03e
update-solana-dependencies.sh: use sed -E (#2701)
Use sed in extended RE mode. The former BRE didn't work on osx.
2022-01-06 11:38:45 +11:00
Dmitri Makarov 65b49073f4
Decrease the stake pool size due to the new mem op syscall base cost (#2705) 2022-01-05 14:26:13 -08:00
Michał Piotrowski 05e3ff3d7d
libraries tests p2 (#2699)
* libraries tests p2

* libraries tests p2 - address review comments
2022-01-05 17:23:09 -05:00
Michał Piotrowski fe7b848024
token tests p1 (#2700)
* token tests p1

* token tests - address review comments

* fix cs
2022-01-05 17:11:31 -05:00
Jon Cinque eedcbd8602
token: Extension state packing (#2642)
* token: Extension state packing

* Move to bytemuck

* Cleanup a bit

* Remove all unsafe, address feedback

* Address feedback

* Add test for multisig-length account

* Add tests for Account and multi-extension

* Remove last todo

* Add more tests
2022-01-04 17:55:51 -05:00
Sebastian Bor 24bb1c8158
Governance: Native Treasuries (#2692)
* feat: Implement CreateNativeTreasury instruction

* chore: fix fmt

* chore: make clippy happy

* chore: remove account check

* feat: sign with treasury account seeds

* chore: comment out unused code

* feat: Use system as the treasury account owner

* feat: Assert valid governance account

* chore: Make clippy happy

* fix: Use explicit system program id

* feat: add treasury seeds only when required by the instruction

* chore: review celanup

* chore: make clippy happy

* chore: rename  create_and_serialize_account_signed2

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>

* chore: update create_and_serialize_account_signed2 name

* fix: remove NativeTreasury from account enums

* chore: update treasury seeds prefix

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-01-03 22:30:34 +00:00
Sebastian Bor 78cb324352
Governance: Program metadata (#2679)
* feat: implement UpdateProgramMetadata instruction

* feat: put metadata info into the logs

* feat: use CARGO PKG version

* feat: add updated_at for program metadata

* chore: Update instruction comments

* chore: replace .unwrap() with ?

* fix: Change max size to support XXX.YYY.ZZZ version format
2021-12-31 00:44:32 +00:00
Jon Cinque f5f062e1b0
stake-pool-js: Prepare package for release (#2681)
* stake-pool-js: Prepare package for release

* Upgrade node version for new npm

* Regenerate package-lock.json

* Update README, fix build to remove test files
2021-12-30 12:55:09 -05:00
Sebastian Bor dec9074bb4
Governance: Update readme (#2685) 2021-12-30 14:44:37 +00:00
Peyton Randolph c5d73812cb
[token-swap] Upgrade PyO3 from 0.12.3 to 0.15.1 (#2673)
* Update PyO3 from 0.12.3 to 0.15.1

* run cargo fmt --all
2021-12-29 22:54:57 -05:00
Dmitri Makarov 48f31d5d0e
Increase compute budget limits in a test affected by new mem op cost (#2680) 2021-12-29 17:49:19 -08:00
Michał Piotrowski aa92fae3e9
add test for memo (#2678)
* add test for memo

* add test for memo - fix clippy warning

* add test for memo - review suggestions
2021-12-29 14:30:04 -07:00
Jon Cinque 6ee008d256
Update SDK to 1.9.2, fix warnings (#2674)
* Update SDK to 1.9.2, fix warnings

* Upgrade honggfuzz

* Use `get_latest_blockhash` correctly
2021-12-28 23:02:47 -05:00
Michał Piotrowski 050e03feaf
fix grcov dependency checking (#2667)
* fix grcov dependency checking

* fix grcov dependency checking - address review comment
2021-12-28 09:27:55 -05:00
Jordan Sexton 78b8ef9688 remove dist tag from package version 2021-12-27 20:09:33 -06:00
Jordan Sexton 14952a75ba organize config 2021-12-27 20:03:13 -06:00
Jordan Sexton 0cd82ce775 fix default arg 2021-12-27 20:03:13 -06:00
Jordan Sexton ad0525ebfe remove watch command 2021-12-27 20:03:13 -06:00
Jordan Sexton afaef4c141 update yarn.lock 2021-12-27 20:03:13 -06:00
Jordan Sexton 9378b1ed94 set lower compatible version of web3js 2021-12-27 20:03:13 -06:00
Jordan Sexton 074ef06126 update buffer-layout-utils 2021-12-27 20:03:13 -06:00
Jordan Sexton bba59e9e05 update dev deps 2021-12-27 20:03:13 -06:00
Jordan Sexton a8b27006b4 update version to 0.2.0-alpha.0@next 2021-12-27 20:03:13 -06:00
Jordan Sexton 537bfe3efe add checked + unchecked decode functions 2021-12-27 20:03:13 -06:00
Jordan Sexton 6e7b7d7faa InitializeAccount doesn't have multisigners 2021-12-27 20:03:13 -06:00
Jordan Sexton 7ac61bc957 target esnext with esm build, es6 with cjs 2021-12-27 20:03:13 -06:00
Jordan Sexton 1844efe298 fix comments 2021-12-27 20:03:13 -06:00
Colin Ogoo 70893b0299 build(cjs/esm): create cjs/esm bundles
- update build script to build both esm and cjs compatible packages
- add postbuild script to delegate the module type check to package.json within lib/esm and lib/cjs directory
2021-12-27 20:03:13 -06:00
Colin Ogoo cc074a1b5e build(rollup): remove rollup and related packages
step one of removing rollup from the build pipeline
2021-12-27 20:03:13 -06:00
Jordan Sexton 0db9c3dc00 fix decoded type 2021-12-27 20:03:13 -06:00
Jordan Sexton 8ca7381402 fix argument order 2021-12-27 20:03:13 -06:00
Jordan Sexton 931befabb0 add more decode functions, refactor 2021-12-27 20:03:13 -06:00
Jordan Sexton 8cca13cecf add initial instruction decoding functions 2021-12-27 20:03:13 -06:00
Jordan Sexton 7f8d04cdeb add instruction errors 2021-12-27 20:03:13 -06:00
Jordan Sexton e97f51031f fix doc comments 2021-12-27 20:03:13 -06:00
Jordan Sexton 3dc18b2f19 strictly type and expose instruction data layouts 2021-12-27 20:03:13 -06:00