Amr Ali
34344982a9
Rename programs to instruction_processors ( #3789 )
...
* Rename programs to instruction_processors
* Updates around the code base to support instruction_processors rename
* Kabab instruction_processors
* Update Cargo.toml files and scripts to use instruction-processors
* Update Cargo.toml to use instruction-processors
* Update CI scripts to use instruction-processors
2019-04-16 22:39:00 +02:00
Dan Albert
8638b3bb19
Update Cargo.toml files for version = 0.14.0
2019-04-16 02:50:20 +00:00
Michael Vines
0767c0c07f
Add DNS resolution to cli tools
2019-04-14 21:25:46 -07:00
Pankaj Garg
b001685e7b
Added missing feature flag for erasure ( #3741 )
2019-04-11 15:25:32 -07:00
Rob Walker
f1e7237c09
vote_api cleanup ( #3710 )
...
* vote_api cleanup
* fixups
* fixup
* remove unused code
* revert removal of serialize and deserialize
* ...
* increase coverage, bootstrap staking
* Sagar's STAKE to my VOTE
2019-04-10 17:52:47 -07:00
dependabot[bot]
21287ba554
Bump clap from 2.32.0 to 2.33.0
...
Bumps [clap](https://github.com/clap-rs/clap ) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-08 12:56:44 -07:00
dependabot[bot]
7295a84d69
Bump bincode from 1.1.2 to 1.1.3 ( #3672 )
...
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/compare/v1.1.2...v1.1.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-08 12:55:18 -07:00
Jack May
e551f6b552
Support settable drone lamport cap ( #3675 )
2019-04-08 12:37:01 -07:00
Tyera Eulberg
f349c1f0dc
Get everything off RpcSignatureStatus
2019-04-05 22:09:29 -06:00
Greg Fitzgerald
35298e01a8
Remove Instruction wrapper structs and name functions after enum fields
2019-04-03 13:34:27 -07:00
Greg Fitzgerald
867f6f107b
Rename SystemInstruction::Move to SystemInstruction::Transfer
2019-04-03 08:35:57 -06:00
Greg Fitzgerald
43bb813cbe
Rename 'new_account' to 'new_user_account'
...
And 'new_program_account' to 'new_account'
2019-04-02 21:24:42 -06:00
Greg Fitzgerald
dd4c512954
Rename Wallet's id to keypair
2019-04-02 07:38:28 -06:00
Greg Fitzgerald
fcef54d062
Add a constructor to generate random pubkeys
2019-03-31 16:23:18 -06:00
Greg Fitzgerald
5646daa820
Delete lots of fee parameters
...
So many zeros!
2019-03-29 19:21:51 -06:00
Greg Fitzgerald
31f8b6d352
Integrate Message into Transaction
2019-03-29 13:03:29 -07:00
Greg Fitzgerald
4bc3f70150
Boot VoteTransaction
2019-03-25 17:11:57 -07:00
Greg Fitzgerald
33972ef89e
Boot BudgetTransaction
2019-03-24 14:52:06 -06:00
Greg Fitzgerald
d0761f57e8
Add _program suffix to directories of crates with _program suffix
2019-03-21 16:24:06 -06:00
Greg Fitzgerald
4247fa946e
Add solana-wallet balance <PUBKEY>
2019-03-21 09:51:27 -06:00
Greg Fitzgerald
d2415613de
Migrate loader tests to BankClient
2019-03-21 09:19:24 -06:00
Greg Fitzgerald
63e8496473
Cleanup pubkey parsing copypasta
2019-03-20 16:08:03 -07:00
Michael Vines
9b7c1d5650
Relocate *-help.sh to their respective packages
2019-03-20 14:34:57 -07:00
Pankaj Garg
da7e49c880
Fix broken build
...
- build breaks if Cuda feature is used
2019-03-18 15:29:51 -07:00
Michael Vines
a35ebe1186
Avoid RpcRequest
2019-03-17 01:34:58 -07:00
Michael Vines
c498775a3d
Move generic rpc_client functions from wallet/ to client/
2019-03-17 01:34:58 -07:00
Michael Vines
73ceaf07b1
client/: move RpcClient from rpc_request.rs to rpc_client.rs
2019-03-16 23:27:23 -07:00
Michael Vines
7b314f47f7
Factor RPC request mechanism out of RpcClient into *RpcClientRequest
2019-03-16 23:27:23 -07:00
Michael Vines
97e73311c5
Move mock request_airdrop_transaction into drone/, closer to the real impl
2019-03-16 22:14:09 -07:00
Michael Vines
e2c24481e4
wallet/ now only dev-depends on core/
2019-03-16 21:40:39 -07:00
Michael Vines
bcc34b906c
Relieve the caller of having to care about the rpc request id
2019-03-16 11:32:01 -07:00
Michael Vines
c2b1010f18
Clarify url vs addr
2019-03-16 11:32:01 -07:00
Greg Fitzgerald
24d9138067
Abandon Builder pattern
2019-03-15 14:46:44 -06:00
Greg Fitzgerald
aca739b800
Boot fees from TransactionBuilder
2019-03-15 14:46:44 -06:00
Greg Fitzgerald
48d86683e2
Abuse KeypairUtil
2019-03-15 09:06:54 -06:00
Greg Fitzgerald
6a68df3ebd
Don't resign airdrop requests with the keypair asking for an airdrop
...
The correct thing to do here is retry until you get a
BlockhashNotFound error, and then send another request
to the drone for a new signed transaction.
Also, this test is an integration test masquerading as a unit-test..
2019-03-15 09:06:54 -06:00
Greg Fitzgerald
4d53be8350
Make it unappealing to build and sign transactions at the same time
...
Use a client to sign transactions. It'll need that keypair anyway
to resign new blockhashes on retries.
2019-03-15 09:06:54 -06:00
Greg Fitzgerald
f8bf9ca218
Make safe transaction signing the default
2019-03-15 09:06:54 -06:00
Greg Fitzgerald
c1eec0290e
Rename userdata to data ( #3282 )
...
* Rename userdata to data
Instead of saying "userdata", which is ambiguous and imprecise,
say "instruction data" or "account data".
Also, add `ProgramError::InvalidInstructionData`
Fixes #2761
2019-03-14 10:48:27 -06:00
Michael Vines
7d593e6c61
Exit gracefully when no subcommand is specified
2019-03-14 00:35:34 -05:00
Michael Vines
bb420cb995
Use crate_description and crate_name Clap macros
2019-03-14 00:35:34 -05:00
Tyera Eulberg
12fde77ecd
Update crate references
2019-03-12 22:05:38 -06:00
Michael Vines
1ee43a7633
Remove non-essential programs from runtime/
2019-03-12 15:11:59 -05:00
Michael Vines
6899bd7099
0.13.0
2019-03-11 16:21:19 -07:00
Rob Walker
195a880576
pass Pubkeys as refs, copy only where values needed ( #3213 )
...
* pass Pubkeys as refs, copy only where values needed
* Pubkey is pervasive
* fixup
2019-03-09 19:28:43 -08:00
Tyera Eulberg
639cb49356
Fix wallet integration tests
2019-03-07 19:18:53 -07:00
Tyera Eulberg
4625aed3a5
Make hypen/underscore consistent
2019-03-07 16:51:25 -08:00
Tyera Eulberg
0badc90058
Wallet new tests
2019-03-06 20:46:18 -08:00
Tyera Eulberg
a4a3995a84
Add staking commands to wallet
2019-03-06 17:50:15 -08:00
Michael Vines
0604bbb473
Rename tokens to lamports in wallet/
2019-03-05 17:56:44 -08:00
Michael Vines
53f09c44f3
Rename tokens to lamports in sdk/
2019-03-05 17:28:06 -08:00
Tyera Eulberg
2fdfa98d55
Fix process_pay SystemTransaction type
2019-03-05 09:33:27 -07:00
anatoly yakovenko
1654199b23
Use PohRecorder to synchronize instead of rotate. ( #3080 )
2019-03-03 16:44:06 -08:00
Greg Fitzgerald
037fcf6b3d
Bump all native programs up a level
...
Don't categorize programs by a single backend.
2019-03-02 22:11:48 -08:00
Greg Fitzgerald
e6486b2824
Move Budget out of the SDK
2019-03-02 16:44:36 -08:00
Michael Vines
a94880574b
block_hash => blockhash
2019-03-02 12:13:30 -07:00
Michael Vines
0f1582c196
cargo fmt
2019-03-02 12:13:30 -07:00
Michael Vines
85159a0eb4
Rename JSON RPC getLastId to getRecentBlockHash
2019-03-02 12:13:30 -07:00
Michael Vines
258cf21416
Purge remaining last_id (now called block_hash)
2019-03-02 12:13:30 -07:00
Michael Vines
ce1b72809a
Rename get_last_id() to get_recent_block_hash()
2019-03-02 12:13:30 -07:00
Michael Vines
176d5e0d37
Rename Transaction last_id field to recent_block_hash
2019-03-02 12:13:30 -07:00
Michael Vines
5f5d779ee1
Move src/ into core/src. Top-level crate is now called solana-workspace
2019-03-02 09:52:18 -08:00
Michael Vines
fdc31e99df
Clean up type casts
2019-03-01 13:38:17 -08:00
dependabot[bot]
5b72a984a3
Bump serde_json from 1.0.38 to 1.0.39
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.38...v1.0.39 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-28 06:57:17 -07:00
Michael Vines
05646d72b8
Remove unnecessary fetching of a new last_id
2019-02-27 22:58:59 -08:00
Michael Vines
cd976a8082
s/tx/transaction/ for function names
2019-02-27 17:00:10 -08:00
Michael Vines
163ed40efb
Send program write transactions concurrently
2019-02-27 17:00:10 -08:00
Michael Vines
b5d714eec7
Derive retry timeout from slot duration
2019-02-27 11:13:29 -08:00
Michael Vines
88ecce12a2
No longer need to give new_fullnode() a random string
2019-02-26 22:08:17 -08:00
dependabot[bot]
46ec5cf765
Bump dirs from 1.0.4 to 1.0.5
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-26 20:04:36 -07:00
Greg Fitzgerald
e9b0e3cb9d
Move RpcSignatureStatus into its own module
...
And fixup some imports from previous commits.
2019-02-17 12:20:05 -07:00
dependabot[bot]
e42c95a327
Bump bincode from 1.1.1 to 1.1.2
...
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/compare/v1.1.1...v1.1.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-16 13:58:37 -07:00
Greg Fitzgerald
c55ada2f26
Fix wallet test
2019-02-14 13:26:46 -07:00
Greg Fitzgerald
4e4a1643c4
Boot SystemInstruction::Spawn
2019-02-14 13:26:46 -07:00
dependabot[bot]
3849b8ece4
Bump bincode from 1.0.1 to 1.1.1 ( #2709 )
...
* Bump bincode from 1.0.1 to 1.1.1
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.0.1 to 1.1.1.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
* update autocfg 0.1.1 => 0.1.2
2019-02-14 12:46:22 -06:00
Stephen Akridge
1e58c585d3
Add retry_get_balance function
...
clients don't need to know about json
2019-02-10 09:08:16 -08:00
Stephen Akridge
ed4e9febe0
Refactor wallet processing
...
Yuge functions
2019-02-10 09:08:16 -08:00
Michael Vines
c5a74ada05
leader_scheduler: remove bootstrap_height
2019-02-06 14:23:10 -08:00
Michael Vines
85c8af08b3
Link dangling program cuda features to the src/ crate
2019-02-01 12:42:46 -08:00
Greg Fitzgerald
dad0bfe447
Replace transaction traits with structs
...
Also:
* SystemTransaction::new -> new_account
* SystemTransaction::new_create -> new_program_account
2019-02-01 11:38:25 -08:00
dependabot[bot]
0e58023794
Bump serde_json from 1.0.37 to 1.0.38
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.37...v1.0.38 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-01 10:06:21 -07:00
Michael Vines
25f25d0f82
new_fullnode: don't return the genesis_block, nobody uses it
2019-01-29 17:51:07 -08:00
Michael Vines
bfaf5634a1
.unwrap() in tests instead of assert!()ing .is_ok() for a better failure message
2019-01-28 16:10:32 -08:00
Stephen Akridge
2262f279d5
Reduce boilerplate code with helper function to create
...
fullnode/bank/genesis
2019-01-28 13:48:58 -08:00
Greg Fitzgerald
1bae87d4b3
Add unit-test-friendly VoteSignerProxy constructor
2019-01-26 14:56:49 -07:00
Michael Vines
4bb6549895
Genesis block is now a json file
2019-01-25 09:05:15 -08:00
dependabot[bot]
06e3cd3d2a
Bump serde_json from 1.0.36 to 1.0.37
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.36...v1.0.37 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-25 03:34:06 -08:00
Tyera Eulberg
b7be5b9a7a
Add no-signer argument
2019-01-24 10:47:37 -08:00
Michael Vines
9a7082d0d5
Report stuck last_id in error message
2019-01-23 00:02:30 -08:00
Tyera Eulberg
cb23070dfe
Remove sleeps on fullnode spin-up in integration tests
2019-01-21 13:27:31 -07:00
Michael Vines
c7e5006bcf
Remove assert!()s that hide error codes, making failure debug harder
2019-01-21 10:36:56 -08:00
Stephen Akridge
1b15fd1da6
Fix build, add new parameter to new_with_bank
2019-01-18 15:07:46 -08:00
Stephen Akridge
1fd7bd7ede
Storage fixes
...
* replicators generate their sample values
* fixes to replicator block height logic
2019-01-18 13:05:35 -08:00
Tyera Eulberg
75e19f4f0f
Add build script
2019-01-17 12:38:04 -08:00
Tyera Eulberg
1a5bf0c689
Remove sleep
2019-01-17 12:38:04 -08:00
Tyera Eulberg
3e245f16c0
Add wallet deploy integration test
2019-01-17 12:38:04 -08:00
Tyera Eulberg
2698b7614b
Add wallet deploy unit tests, incl program test fixture
2019-01-17 12:38:04 -08:00
Michael Vines
a84b6bc7e4
Overhaul wallet rpc/drone command-line arguments
2019-01-17 08:36:05 -08:00
dependabot[bot]
590b88f718
Bump serde_json from 1.0.35 to 1.0.36
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.35...v1.0.36 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-16 15:57:01 -07:00
Tyera Eulberg
0d7b1a84cb
Remove unused timeout wallet arg and config field
2019-01-16 09:20:45 -08:00