Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and call | Péter Szilágyi | 2016-05-20 | 5 | -6/+101 |
| | |||||
* | accounts/abi: fix abi test for go vet... | Péter Szilágyi | 2016-05-12 | 1 | -2/+2 |
| | |||||
* | accounts/abi/bind: fix multi-value anonymous unmarshalling | Péter Szilágyi | 2016-05-12 | 2 | -3/+37 |
| | |||||
* | accounts/abi: fixed unpacking in to already slice interfaces | Jeffrey Wilcke | 2016-05-11 | 3 | -31/+94 |
| | | | | | | | | | | | | | | | | Previously it was assumed that wheneven type `[]interface{}` was given that the interface was empty. The abigen rightfully assumed that interface slices which already have pre-allocated variable sets to be assigned. This PR fixes that by checking that the given `[]interface{}` is larger than zero and assigns each value using the generic `set` function (this function has also been moved to abi/reflect.go) and checks whether the assignment was possible. The generic assignment function `set` now also deals with pointers (useful for interface slice mentioned above) by dereferencing the pointer until it finds a setable type. | ||||
* | release, all: integrate the release service into geth | Péter Szilágyi | 2016-05-02 | 1 | -2/+3 |
| | |||||
* | Merge pull request #2435 from obscuren/abi-array-fixes | Péter Szilágyi | 2016-04-28 | 8 | -362/+733 |
|\ | | | | | accounts/abi: refactored ABI package | ||||
| * | accounts/abi: fixed string and fixed size bytes packing | Jeffrey Wilcke | 2016-04-28 | 6 | -85/+137 |
| | | |||||
| * | accounts/abi: added unpacking "anything" in to interface{} | Jeffrey Wilcke | 2016-04-28 | 2 | -0/+11 |
| | | |||||
| * | accounts/abi: fixed strict go-like unpacking | Jeffrey Wilcke | 2016-04-28 | 2 | -27/+158 |
| | | |||||
| * | accouns/abi: refactored ABI package | Jeffrey Wilcke | 2016-04-20 | 8 | -314/+491 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the abi package parsing and type handling. Relying mostly on package reflect as opposed to most of our own type reflection. Our own type reflection is still used however for cases such as Bytes and FixedBytes (abi: bytes•). This also inclused several fixes for slice handling of arbitrary and fixed size for all supported types. This also further removes implicit type casting such as assigning, for example `[2]T{} = []T{1}` will fail, however `[2]T{} == []T{1, 2}` (notice assigning *slice* to fixed size *array*). Assigning arrays to slices will always succeed if they are of the same element type. Incidentally also fixes #2379 | ||||
* | | accounts/abi/bind, eth: add contract non-existent error | Péter Szilágyi | 2016-04-27 | 4 | -4/+60 |
|/ | |||||
* | accounts/abi/bind/backends: estimate needed gas, not used | Péter Szilágyi | 2016-04-15 | 1 | -1/+1 |
| | |||||
* | all: fix go vet warnings | Felix Lange | 2016-04-15 | 1 | -5/+5 |
| | |||||
* | all: update license information | Felix Lange | 2016-04-15 | 1 | -0/+16 |
| | |||||
* | accounts, crypto: move keystore to package accounts | Felix Lange | 2016-04-12 | 2 | -28/+23 |
| | | | | | | | | | | The account management API was originally implemented as a thin layer around crypto.KeyStore, on the grounds that several kinds of key stores would be implemented later on. It turns out that this won't happen so KeyStore is a superflous abstraction. In this commit crypto.KeyStore and everything related to it moves to package accounts and is unexported. | ||||
* | accounts/abi/bind: support generating bindings for various arrays | Péter Szilágyi | 2016-04-05 | 2 | -16/+67 |
| | |||||
* | abi: removed implicit type casting & refactored type parsing | Jeffrey Wilcke | 2016-04-05 | 3 | -53/+80 |
| | |||||
* | abi: accept output slices of all supported types | Jeffrey Wilcke | 2016-04-05 | 3 | -5/+143 |
| | |||||
* | abi: accept input slices of all supported types | Jeffrey Wilcke | 2016-04-05 | 5 | -145/+106 |
| | |||||
* | Merge pull request #2405 from karalabe/abigen-default-methods | Jeffrey Wilcke | 2016-04-01 | 3 | -5/+102 |
|\ | | | | | accounts/abi/bind: surface raw wrappers to access low level ops | ||||
| * | accounts/abi/bind: surface raw wrappers to access low level ops | Péter Szilágyi | 2016-04-01 | 3 | -5/+102 |
| | | |||||
* | | accounts/a/b/backends, core: chain maker homestead block set to 0 | Jeffrey Wilcke | 2016-04-01 | 1 | -2/+1 |
| | | | | | | | | | | | | | | The chain maker and the simulated backend now run with a homestead phase beginning at block 0 (i.e. there's no frontier). This commit also fixes up #2388 | ||||
* | | core: added basic chain configuration | Jeffrey Wilcke | 2016-04-01 | 1 | -3/+8 |
|/ | | | | | | | | | Added chain configuration options and write out during genesis database insertion. If no "config" was found, nothing is written to the database. Configurations are written on a per genesis base. This means that any chain (which is identified by it's genesis hash) can have their own chain settings. | ||||
* | accounts/abi/bind: support account slices, drop hash type | Péter Szilágyi | 2016-03-31 | 1 | -2/+2 |
| | |||||
* | accounts/abi/bind: merge all tests into a single suite | Péter Szilágyi | 2016-03-31 | 1 | -22/+22 |
| | |||||
* | accounts/abi/bind: use anonymous ephemeral call result structs | Péter Szilágyi | 2016-03-31 | 1 | -15/+10 |
| | |||||
* | accounts/abi/bind, cmd/abigen: dedup structs, exclude patterns | Péter Szilágyi | 2016-03-26 | 1 | -6/+6 |
| | |||||
* | accounts/abi/bind: fix double pointer in generated code | Péter Szilágyi | 2016-03-25 | 2 | -4/+36 |
| | |||||
* | accounts/abi/bind, cmd/abigen: port to templates, bind to solidity | Péter Szilágyi | 2016-03-24 | 9 | -428/+530 |
| | |||||
* | accounts/abi/bind: constructor, auth utils and various backends | Péter Szilágyi | 2016-03-24 | 9 | -263/+723 |
| | |||||
* | accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABI | Péter Szilágyi | 2016-03-24 | 6 | -41/+855 |
| | |||||
* | Merge pull request #2348 from obscuren/abi-variable-input | Péter Szilágyi | 2016-03-17 | 4 | -31/+193 |
|\ | | | | | accounts/abi: Fixed bytes input accept []byte and variable input support | ||||
| * | accounts/abi: Fixed bytes input accept []byte and variable input support | Jeffrey Wilcke | 2016-03-15 | 4 | -31/+193 |
| | | | | | | | | | | | | | | | | | | Fixed up `[]byte` slice support such that `function print(bytes input)` accepts `[]byte` as input and treats it as 1 element rather than a slice of multiple elements. Added support for variable length input parameters like `bytes` and `strings`. | ||||
* | | accounts/abi: handle the "constant" modifier for functions | Péter Szilágyi | 2016-03-16 | 2 | -9/+12 |
|/ | |||||
* | all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}() | Ricardo Catalinas Jiménez | 2016-02-22 | 4 | -9/+9 |
| | | | | As we aren't really using the standarized SHA-3 | ||||
* | accounts/abi: support for typed array | Jeffrey Wilcke | 2016-02-15 | 2 | -43/+114 |
| | | | | | Added support for fixed size and arbitrary length byte arrays to be marshallable in fixed size (typed) byte slices. | ||||
* | accounts/abi: fixed return tuple and string, bytes return type parsing | Jeffrey Wilcke | 2016-02-11 | 3 | -30/+363 |
| | | | | | | | | | | | | | Removed old unmarshalling of return types: `abi.Call(...).([]byte)`. This is now replaced by a new syntax: ``` var a []byte err := abi.Call(&a, ...) ``` It also addresses a few issues with Bytes and Strings and can also handle both fixed and arbitrary sized byte slices, including strings. | ||||
* | account/abi: implements event parsing | Jeffrey Wilcke | 2016-02-02 | 6 | -31/+174 |
| | | | | | | Implementation of basic event parsing and its input types. This separates methods and events and fixes an issue with go type parsing and validation. | ||||
* | accounts/abi: added output parsing & added call mechanism | Jeffrey Wilcke | 2015-11-25 | 6 | -88/+243 |
| | | | | Added calling mechanism and return value parsing | ||||
* | accounts/abi: ABI fixes & added types | Jeffrey Wilcke | 2015-10-30 | 3 | -21/+80 |
| | | | | | | | Changed field `input` to new `inputs`. Addad Hash and Address as input types. Added bytes[N] and N validation | ||||
* | all: fix license headers one more time | Felix Lange | 2015-07-24 | 6 | -6/+6 |
| | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 6 | -24/+24 |
| | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library". | ||||
* | all: update license information | Felix Lange | 2015-07-07 | 6 | -0/+96 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 2 | -10/+10 |
| | |||||
* | removed | obscuren | 2015-03-08 | 1 | -106/+0 |
| | |||||
* | Implemented contract ABI | obscuren | 2015-01-27 | 7 | -0/+969 |