-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
6,355 additions
and
4,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
vendor | ||
composer.lock | ||
TRASH | ||
# Documentation is autogenerated by doxygen. | ||
docs | ||
doc | ||
*generatedTest.php | ||
|
||
!docs/.gitkeep | ||
|
||
# General OSX | ||
# See: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
._* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# API development | ||
|
||
### Schema based API | ||
|
||
In order to keep this API up do date it is build schema based. | ||
(resources/ethjs-schema.json) | ||
|
||
Ethereum **JsonRPC Methods** are on ethereum-schema->methods. Implemented in Ethereum class. | ||
Check out the JsonRpcInterface. | ||
|
||
To regenerate src/EthMethods.php and src/JsonRpcInterface.php run | ||
|
||
``` | ||
composer run-script generate-methods | ||
``` | ||
|
||
|
||
**Complex Data types** | ||
are generated ethereum-schema->objects. | ||
Currently these are: | ||
|
||
``` | ||
EthSyncing | ||
SendTransaction | ||
EstimateTransaction | ||
CallTransaction | ||
Block | ||
Transaction | ||
Receipt | ||
Filter | ||
FilterChange | ||
SHHPost | ||
SHHFilter | ||
SHHFilterChange | ||
SHHMessage | ||
``` | ||
|
||
To regenerate run | ||
|
||
``` | ||
composer run-script generate-complex-datatypes | ||
``` | ||
|
||
|
||
### Testing | ||
|
||
``` | ||
composer install | ||
vendor/bin/phpunit | ||
``` | ||
|
||
See phpunit.xml and tests/ | ||
|
||
### API doc generation | ||
|
||
The API documentation is auto-generated by [doxygen](http://www.stack.nl/~dimitri/doxygen/). | ||
|
||
``` | ||
doxygen Doxyfile | ||
``` | ||
|
||
There is a onlin version of this API documentation at [http://ethereum-php.org/dev](http://ethereum-php.org/dev) | ||
|
||
### Other files | ||
|
||
### Credits | ||
|
||
Ethereum-PHP library is part of the [Drupal Ethereum Module](https://www.drupal.org/project/ethereum). | ||
|
||
**Many thanks to...** | ||
|
||
* [ConsenSys](https://consensys.net) for sponsoring the Development of Ethereum-PHP library and Drupal module. | ||
* Nick Dodson and Dan Finlay for therir work on [ethjs-schema](https://github.com/digitaldonkey/ethjs-schema). This API is based on it. | ||
* Jim Wigginton for the [Math_BigInteger](https://pear.php.net/package/Math_BigInteger/docs/latest/Math_BigInteger/Math_BigInteger.html) pear package. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# This keeps this directory in git. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.