Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Eddy Ashton 0d45a28eb2
Replace Boost with intx (#55)
* Add intx lib

* Add basic intx cmake wrapper, test exe

* WIP: Use intx rather than boost

* Compiles

* Correct signed comparison

* lol

* Make an object, even if its empty

* Use intx::narrow_cast where appropriate

* Fix sdiv

* Fix signextend

* Fix smod

* Fix mload

* Correct to_hex_str

* Fix address_to_hex_string

* Manage your expectations

* Remove unnecessary assignment functions

* Remove unnecessary assign_j

* Minimise bigint.h

* Broad rename - phase I

* Renames - placate samples

* Restore from_bytes

* format

* Remove unnecessary overload

* Add comment

* Implement ostream operator<< for intx

* Include io headers

* Clarify to_hex_string overloads

* Explicit [to/from]_json

* Remove Boost references

* Remove temp intx tests

* Bump
2019-10-10 17:05:08 +01:00
Eddy Ashton e5e35c7e84
Add disassembler app (#50)
* Add basic disassembler sample

* Improve disassembler out_of_range exception

* Remove double-0x, unnecessary space

* Align instruction count
2019-08-30 18:01:32 +01:00
Eddy Ashton 36ca7e32ea
Abstract account (#49)
* Initial implementation of abstract Account

* Update samples

* Simplify API

* Remove incorrect comment

* Simplify further - common implementation of pay_to

* Add libfmt license notice

* Merge fixups

* Disable automatic nonce-increment pending further investigation

* Allow nonce to be set in constructor

* Remove unnecessary methods from abstract interfaces
2019-08-23 13:18:25 +01:00
Eddy Ashton d0177767e8
Move includes, rename namespace (#47)
* Rename evm namespace to eevm

* Juggle files

* Move includes

* Fix README link

* Separate core srcs in static library from Simple impl

* Decorate CMake

* Remove unused type aliases

* Make Circle test verbose
2019-08-16 16:15:07 +01:00
Eddy Ashton 0c14073d48
Add implementation of RLP Decode (#23)
* Move RLP tests to separate file

* Initial int parsing

* String and list decoding

* Support for writing single byte-vectors

* WIP

* List and empty decoding

* Tuple decode by tag dispatch

* Properly decode tuple items separately

* Avoid undefined execution order

* Add some comments

* Avoid references in tag dispatch

* Decode a long, nested example

* Add example of decoding a user type

* Test uint256_t decoding

* Fix uint256 0 encoding/decoding, add tx hash test

* Correct name

* Generalise to_hex_string
2019-04-04 13:36:07 +01:00
Eddy Ashton 24be26b00e
Replace RLP implementation (#19)
* Clear error message when TEST_DIR is not set

* Use uint256 call_values

* In progress improvements to RLP

Working tuple nesting

* Tuple of tuples is still a problem

* Correct and tested RLP

* Add comments

* Replace old rlp-implementation with new

* Rename rlp::to_bytes to to_byte_string

* Add to_byte_string for boost bigints

* Test large uint256_t encoding

* Remove debug inclusions

* Add missed include for std::apply

* Print verbose make instructions in CI

* Try a windows-hosted agent

* Reinstate Ubuntu CI - give up on it passing
2019-03-08 14:49:00 +00:00
Eddy Ashton 287570c2ed
Add samples (#13)
* const& code, clang-format pass

* Add hello_world and sum samples

* clang-format pass

* Initial commit of ERC20 sample

* Add random transactions

* Add comments

* Add const& to avoid unnecessary copies

* Add license headers

* Precise comments

* Initial samples README

* Updated readme, remove unnecessary bin-runtime

* README update

* Check result of hello_world, readme pass
2018-12-03 10:41:25 +00:00
Felix Schuster 568ba6f66a tidy 2018-10-29 11:37:06 +00:00
Edward Ashton (Brook Street) 962f075f75 Seed commit 2018-10-26 11:38:32 +01:00