Commit Graph

94 Commits

Author SHA1 Message Date
Jon Cinque 0ca46c6220
Revert solana_rbpf to 0.1.32 to fix CI (#776) 2020-11-02 16:39:20 +01:00
dependabot[bot] 355fa0a12c
Bump solana_rbpf from 0.1.32 to 0.2.0 (#775)
Bumps [solana_rbpf](https://github.com/solana-labs/rbpf) from 0.1.32 to 0.2.0.
- [Release notes](https://github.com/solana-labs/rbpf/releases)
- [Commits](https://github.com/solana-labs/rbpf/compare/v0.1.32...v0.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 12:04:42 +00:00
Michael Vines fd7307754e Cargo.lock 2020-11-01 20:48:15 -08:00
Justin Starry 138ca68a87
Switch to Github Actions for CI (#768) 2020-11-01 18:42:51 +08:00
Trent Nelson d02975bb0b token-cli: Plumb multisig support for supporting subcommands 2020-10-30 15:57:20 -06:00
dependabot[bot] 3cd7f4e0d5
Bump num-derive from 0.3.2 to 0.3.3 (#761)
Bumps [num-derive](https://github.com/rust-num/num-derive) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/rust-num/num-derive/releases)
- [Changelog](https://github.com/rust-num/num-derive/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-derive/compare/num-derive-0.3.2...num-derive-0.3.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-30 12:05:57 +00:00
dependabot[bot] 4b53e264c7
Bump num-traits from 0.2.12 to 0.2.14 (#760)
Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.12 to 0.2.14.
- [Release notes](https://github.com/rust-num/num-traits/releases)
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.12...num-traits-0.2.14)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-30 12:04:12 +00:00
Greg Fitzgerald 6906200174
Cleanup themis (#742)
* Cleanup themis

* Speed up seeding fee-payers
* Add utility functions

* Remove BN variant of themis
2020-10-27 16:57:09 -06:00
anatoly yakovenko 64a362c059
Use u128 for all the math but store in u64 (#711)
* Use u128 for all the math but store in u64

* tests

* missing changes

* bulds

* specific conversion failure

* fix tests

* use large numbers

* Rebase and fix merge issue from new tests

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2020-10-26 18:18:33 +01:00
Justin Starry a6cfc590e1
Prevent swap accounts being used as user accounts (#719) 2020-10-26 18:17:47 +08:00
Michael Vines 211f92e8c6 Groom Cargo.tomls 2020-10-25 07:52:33 +00:00
Michael Vines 47d31cc6f2 tmp: bpf first 2020-10-24 19:21:38 -07:00
Michael Vines 80e29ef6b9 Port SPL to solana-program and `cargo build-bpf` 2020-10-24 19:21:38 -07:00
dependabot[bot] 14d102b86a
Bump solana-cli-config from 1.4.1 to 1.4.2 (#704)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.4.1...v1.4.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 13:29:32 +00:00
dependabot[bot] 1f0bf3bacb
Bump solana-logger from 1.4.1 to 1.4.2 (#705)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.4.1...v1.4.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 12:13:37 +00:00
dependabot[bot] 1dfebe929d
Bump serde from 1.0.116 to 1.0.117 (#660)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.116 to 1.0.117.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-19 13:47:45 +00:00
dependabot[bot] 1af2292021
Bump console from 0.12.0 to 0.13.0 (#659)
Bumps [console](https://github.com/mitsuhiko/console) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/mitsuhiko/console/releases)
- [Changelog](https://github.com/mitsuhiko/console/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/console/compare/v0.12.0...v0.13.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-19 12:18:56 +00:00
Justin Starry 9a8fa8e845
Update SDK version to v1.3.17 (#649)
* Update SDK version to v1.3.17

* Fix clients
2020-10-19 18:07:45 +08:00
Greg Fitzgerald 2ec3b3fa4f
Upgrade solana-sdk in themis (#636)
* Upgrade solana-sdk in themis

* Fix build

* Bump Token CLI dependencies
* Remove Cargo.lock files

* Fix BN build

* Upgrade BN client too
2020-10-16 16:28:07 -06:00
anatoly yakovenko 44b95aecdb
Token stake pool (#493)
* init

* instructions

* instruction progress

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* update

* wip

* update

* wip

* clippy

* builds

* builds

* wip test

* init testcargo fmt

* update

* wip stake instructions

* wip

* comment

* update

* update

* update

* init cli

* Address review comments

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2020-10-16 19:38:12 +02:00
dependabot[bot] edc03f23c1
Bump solana-cli-config from 1.4.0 to 1.4.1 (#644)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.4.0...v1.4.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-16 13:37:30 +00:00
dependabot[bot] 86c0182ec4
Bump solana-logger from 1.4.0 to 1.4.1 (#645)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.4.0...v1.4.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-16 12:20:02 +00:00
Tyera Eulberg 6718d42e34
Bump memo and token versions (#627) 2020-10-15 12:20:23 -06:00
Jack May 08d9999f99
add shared-memory program (#611)
* add shared-memory program

* add offset and reduce shared object size
2020-10-14 23:50:57 +00:00
Michael Vines 9324154df2 Bump version 2020-10-14 08:41:52 -07:00
dependabot[bot] 3d01a16746
Bump solana-logger from 1.3.15 to 1.4.0 (#621)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.3.15 to 1.4.0.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.15...v1.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-14 13:59:38 +00:00
dependabot[bot] 535b2f0942
Bump solana-cli-config from 1.3.17 to 1.4.0 (#620)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.17 to 1.4.0.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.17...v1.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-14 12:39:20 +00:00
Yutaro Mori 5f56635fde
Pass TokenSwap state into the constructor to simplify function calls (#586)
* Pass TokenSwap state into the constructor to simplify function calls

* WIP: Update program to return token_program_id

* Add tokenProgramId to js TokenSwapInfo object

* Address pr comments

* Remove TokenSwapInfo and use loadTokenSwap as the primary way to fetch TokenSwap metadata

* Fix module.d.ts

* Address pr comments

* Clarification on comments

Co-authored-by: Yutaro Mori <yutaro@umaproject.org>
2020-10-14 12:37:58 +02:00
dependabot[bot] 304c6400fa
Bump serde_json from 1.0.58 to 1.0.59 (#610)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.58...v1.0.59)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-13 13:23:28 +00:00
dependabot[bot] 120731e78e
Bump solana-cli-config from 1.3.16 to 1.3.17 (#609)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.16 to 1.3.17.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.16...v1.3.17)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-13 12:12:58 +00:00
dependabot[bot] 6b06db1787
Bump solana-cli-config from 1.3.15 to 1.3.16 (#603)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.15 to 1.3.16.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.15...v1.3.16)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 12:21:31 +00:00
Greg Fitzgerald b4bbe11568
Use ristretto_mul builtin to stay below BPF instruction limit (#575)
* Use ristretto_mul builtin to stay below BPF instruction limit

* Test against a full local validator

There's now three levels of integration test:

* local_e2e uses a native program and tests with a single Bank instance.
  This configuration is simplest to compile and offers the best error
  messages.

* validator_e2e uses a BPF program and tests with a single Validator
instance.
  This configuration allows us to test new validator functionality
  before it's released without having to spin up nodes manually.

* examples/tps.rs uses whatever cluster the Solana CLI points to,
  which may be devnet, testnet, mainnet-beta or a cluster of your
  own.
2020-10-09 16:55:45 -06:00
Justin Starry a4f09fe05e
SPL token lending scaffolding (#582)
* Scaffolding for spl-token-lending program

* Scaffolding for TS client
2020-10-09 13:29:51 +08:00
dependabot[bot] 08eb665e81
Bump cbindgen from 0.14.6 to 0.15.0 (#578)
Bumps [cbindgen](https://github.com/eqrion/cbindgen) from 0.14.6 to 0.15.0.
- [Release notes](https://github.com/eqrion/cbindgen/releases)
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES)
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.14.6...v0.15.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-08 09:07:41 +00:00
dependabot[bot] 923676fae2
Bump thiserror from 1.0.20 to 1.0.21 (#573)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.20...1.0.21)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-07 09:06:05 +00:00
Tyera Eulberg 8131bec332
Bump token to published version 2020-10-05 21:12:45 -06:00
Greg Fitzgerald b020dd29c1
Add Ristretto version of THEMIS (#566)
* Add Ristretto version of THEMIS

BN BPF instruction counts:
  CalculateAggregate:    83,511
  SubmitProofDecryption: 33,755,027

Ristretto BPF instruction counts:
  CalculateAggregate:    13,049,558
  SubmitProofDecryption: 13,149,232

* Fix CI script
2020-10-05 18:49:38 -06:00
dependabot[bot] 66f334bc8e
Bump solana-logger from 1.3.14 to 1.3.15 (#564)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.3.14 to 1.3.15.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.14...v1.3.15)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-05 08:56:41 +00:00
dependabot[bot] 12c43abb68
Bump solana-cli-config from 1.3.14 to 1.3.15 (#565)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.14 to 1.3.15.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.14...v1.3.15)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-05 08:56:34 +00:00
dependabot[bot] b33bf9c460
Bump serde_json from 1.0.57 to 1.0.58 (#561)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.57...v1.0.58)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-02 08:56:06 +00:00
Trent Nelson 0b995a293b Re-add spl-token-cli to workspace 2020-10-01 11:47:12 -06:00
dependabot[bot] 7a90c53557
Bump getrandom from 0.1.14 to 0.1.15 (#559)
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.1.14 to 0.1.15.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.1.14...v0.1.15)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-01 08:42:48 +00:00
Greg Fitzgerald acc0c62f9b
Add Themis using the BN curve (#549)
* Add THEMIS Policy Contract

* Add test with 128 ads

* Add instructions

* Allow clients to work concurrently

* pub(crate) utils to find unused code

* Remove serde_json dep

* Drop dependency on primitive_types

* Add a simpler inner_product

* Use elgamal for proof verification

* Migrate to Ristretto

Also, use Serde for instruction serialization

* Add remaining instructions to processor

* Remove rand 0.6 dependency

* Add instruction constructors

* Add e2e test

* Move client test out of BPF build

* Add BPF instruction count test

Shows us that serde makes too many recursive calls and causes
a very high instruction count (Vec<U256> becomes impractical).

* Use Borsh serialization and test calculate_aggregate()

Bump BPF instruction count limits after upgrading compiler

* Test SubmitProofDecryption BPF instruction count

* Remove CompressedRistretto

This drops SubmitProofDecryption instructions by ~2.5M.

Also, box up more RistrettoPoints, because they're huge (120 bytes) and
blow up the BPF stack.

* Add transaction size metrics and update BPF counts

* Switch back to BN

* Add benchmarking

* Use configured keypair path
* Make num_users configurable
* Make testnet benchmark an example, not a test

* Exclude themis client from CI build

Because of Travis failure on itertools dependency
2020-09-30 21:33:29 -06:00
Trent Nelson c4cf9ffef4 token: Bump solana crates to 1.3.14 2020-09-30 20:17:53 +00:00
dependabot[bot] 8c777f25a9
Bump solana-logger from 1.3.13 to 1.3.14 (#553)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.3.13 to 1.3.14.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.13...v1.3.14)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-30 09:16:41 +00:00
dependabot[bot] 449c4b95d6
Bump solana-cli-config from 1.3.13 to 1.3.14 (#552)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.3.13 to 1.3.14.
- [Release notes](https://github.com/solana-labs/solana/releases)
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md)
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.13...v1.3.14)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-30 08:38:55 +00:00
Trent Nelson ec9961cd7f spl-token-cli: Add 'account-info' subcommand 2020-09-24 20:38:28 -06:00
Tyera Eulberg 9a7d5949c6
Bump spl-token-cli, and solana versions (#523)
* Bump spl-token-cli, incl solana versions

* Pin exact solana versions
2020-09-24 08:35:58 +00:00
dependabot[bot] e8bb772dba
Bump console from 0.11.3 to 0.12.0 (#518)
Bumps [console](https://github.com/mitsuhiko/console) from 0.11.3 to 0.12.0.
- [Release notes](https://github.com/mitsuhiko/console/releases)
- [Commits](https://github.com/mitsuhiko/console/compare/v0.11.3...v0.12.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-23 13:05:51 +00:00
Tyera Eulberg 4c93e07ec9
Add freeze and thaw functionality to spl-token cli (#511)
* Add arg to enable token mint to freeze

* Add freeze/thaw subcommands

* Add frozen marker to spl-token accounts

* Add todos to simplify args
2020-09-22 10:54:51 -06:00