Commit Graph

55 Commits

Author SHA1 Message Date
samkim-crypto 0c8fb24d47
upgrade solana-program to 1.14.6 (#3765) 2022-10-27 07:59:25 +09:00
Noah Gundotra 5504af4996
Account Compression: Add CMT checks for out of bounds leaf indices and initialization (#3724)
* cmt: add check for leaf index OOB

* ac: add checks for leaf index OOB

* ac: add tests for leaf index OOB

* nit: fix some poor logging & unused imports

* cmt: add initialization checks before public methods

* cmt: update LeafContentsModified error message

* cmt: make tests easier to read, add PartialEq, Eq to CMTError

* ac: make LeafOOB error the last error in the struct to prevent breaking changes

* ac: fmt fix
2022-10-21 14:06:47 -04:00
hanako mumei 3a87c8fc0a update solana to 1.14.4 2022-10-12 10:48:23 -07:00
Noah Gundotra c84f65c5ff
account-compression: update program ids in 0.1.1 (#3670) 2022-10-05 15:27:59 -05:00
Noah Gundotra 410390b301
cmt: add method to check if the tree is empty (#3640) 2022-09-23 16:30:50 -04:00
Jon Cinque f97a3dc7cf
clippy: Deny integer arithmetic, add allows where needed (#3606) 2022-09-15 13:16:53 +02:00
Jon Cinque 563512bcfb
account-compression: Rename packages, prep for release (#3600) 2022-09-13 17:44:18 +02:00
Noah Gundotra 74a41cc140
Concurrent Merkle Tree: Improve Docs (#3589) 2022-09-10 10:42:44 +05:30
Noah Gundotra 3fe92ea05f
Add on-chain compression program that uses CMT (#3489) 2022-08-25 08:51:35 -10:00
hana 65769ce23d
Update rust to 1.60, solana to 1.11.6 (#3492)
also change bpf to sbf throughout the codebase

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-08-18 12:16:02 -07:00
Tyera Eulberg 3c54aecfe9
Bump solana to v1.10.35 (#3485) 2022-08-16 12:33:24 -06:00
Noah Gundotra d685fe1918
Introduce Concurrent Merkle Tree Implementation (#3455) 2022-08-16 10:54:37 -07:00
Tyera Eulberg c00194d225
Bump solana crates to v1.10.33 (#3385) 2022-07-27 11:28:14 -06:00
Jon Cinque c1ee6a58be
Update Solana crates to 1.10.29 (#3303) 2022-07-01 16:51:01 -04:00
Dmitri Makarov f1c1d440e9
Bump solana to v1.10.15 (#3176) 2022-05-17 11:27:30 -07:00
Tyera Eulberg b3fe5b6d5d
Bump token-2022 (#3113)
* Bump token-2022

* Bump solana dependencies
2022-04-26 12:15:26 -06: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
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
Tyera Eulberg f4c5fdcfcf
Bump solana to v1.9.9 (#2902) 2022-02-23 16:20:55 -07: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
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
Michał Piotrowski 05e3ff3d7d
libraries tests p2 (#2699)
* libraries tests p2

* libraries tests p2 - address review comments
2022-01-05 17:23:09 -05: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
Jack May 14fd41336b
Bump instruction count limit (#2647) 2021-12-16 13:49:43 -08:00
Dmitri Makarov c6758a697c
Increase compute max units for sqrt_u128_max test (#2574)
This increase is caused by upgrade of compiler builtins
2021-11-13 07:16:11 -08:00
Michael Vines 9acb082dc3 Upgrade to Solana v1.8.1 2021-10-20 22:52:19 -07:00
Michael Vines 12732f8d5a Upgrade to Solana 1.8.0 2021-10-12 09:40:06 -07:00
Michael Vines 4406265d4a Upgrade to Solana 1.7.11 2021-08-30 12:41:08 -07:00
Tyera Eulberg 30fccebdc6
Bump solana crates (#2139) 2021-07-23 16:47:06 +00:00
Brian Anderson 8fbb54bf5f
Eliminate doc warnings (#2058)
* Add URL autolinks to docs in spl-math

* Autolink URLs in doc comments

* Surround 'account references' doc items with code spans to avoid warnings
2021-07-15 17:58:37 -05:00
Tyera Eulberg 0acc8c8bad
Bump solana and borsh crates (#2015) 2021-07-02 16:53:41 +00:00
dependabot[bot] 99654e0ad8
build(deps): bump uint from 0.8.5 to 0.9.1 (#2006)
Bumps [uint](https://github.com/paritytech/parity-common) from 0.8.5 to 0.9.1.
- [Release notes](https://github.com/paritytech/parity-common/releases)
- [Commits](https://github.com/paritytech/parity-common/compare/uint-v0.8.5...uint-v0.9.1)

---
updated-dependencies:
- dependency-name: uint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-01 11:31:18 +00:00
Jon Cinque 21f8af34e7
Update all solana dependencies to 1.7.3, fix issues (#1958)
* Update all dependencies to 1.7.3, fix issues

* Remove esm from mocha

* Fix missed token test

* Also update rust version

* token-swap: update tolerance on sim test

* Run `cargo clippy --fix` for needless_borrow errors

* Rerun cargo fmt
2021-06-25 00:39:08 +02:00
Tyera Eulberg e28af24443 Bump solana version 2021-06-14 16:02:27 -06:00
Jon Cinque de8433e815
ci: Split out test-bpf into separate workflows for each program (#1893)
* ci: Split token, token-swap, and token-lending out

* Remove token lending js in main runner

* token-swap: Update proptest to trigger build

* Remove unused Cargo.lock file

* lending: Update proptest to trigger lending build

* Fix lending test

* Try re-using action

* binary-oracle-pair: Bump token version to trigger build

* Reference action differently

* Add checkout step before local action

* Move out cargo test bpf step

* Add more programs

* Update example file to trigger job

* Update library file to trigger build

* Update name-service file to trigger build

* Update record file to trigger build

* Update shared memory file to trigger build

* Add pull request runners for each probram / library

* Fix pull-request yml file referencing unknown step
2021-06-11 22:35:00 +02:00
Trent Nelson 1f36ca301b Bump solana crates to v1.6.7 2021-05-05 04:39:49 +00:00
Michael Vines 1e47030549 Update SPL to Solana v1.6.6 2021-04-23 13:39:51 -07:00
Jack May df994bf426
Fix float measurements (#1613)
* Fix float measurements

* add u64 divide
2021-04-21 00:33:49 +00:00
Jon Cinque 8f325dcd2d
math: Improve sqrt using bit-wise operations (#1562)
* math: Improve sqrt guess using bit-wise operations

* Run fmt and bump up instruction for failed test

* Bump up compute cost from CI failure

* Update CI version of toolchain

* Address feedback
2021-04-05 14:48:27 +02:00
Michael Vines 448be67cfa Update to Solana 1.6.2 2021-03-30 09:38:04 -07:00
Jon Cinque d336b8b714
stake-pool: Use checked_ceil_div for withdraw calc (#1482)
* stake-pool: Use checked_ceil_div for withdraw calc

When a stake account is totally removed from a stake pool by the
manager, there's a chance that the operation would not take enough of
the manager's pool tokens by 1 due to truncation.

Do a ceiling division instead, and refactor ceiling division into the
math library.

* Use new function name on CLI

* Cargo fmt
2021-03-23 00:33:51 +01:00
Michael Vines 662f38f939 Bump Solana version to 1.6.1 2021-03-18 04:07:16 +00:00
Michael Vines af5fdb3146 Bump Rust version to 1.50.0 2021-03-16 22:22:59 -07:00
Michael Vines 686444088b Bump Solana version to 1.5.15 2021-03-16 18:33:37 -07:00
Michael Vines 64edd0ba76 Remove unknown_clippy_lints 2021-03-16 18:33:37 -07:00
Michael Vines 995d4a029f Remove tokio dev-dependency 2021-03-16 18:33:37 -07:00
Michael Vines 7886d62488 Bump max BPF compute units 2021-03-16 09:08:59 -07:00
Jack May 7567b41bce
Float perf feedback (#1428) 2021-03-10 22:04:30 +00:00
Jack May d87dc5be11
Add bpf float performance tests (#1425) 2021-03-10 01:40:39 +00:00