-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new abi encoder supporting tuples (#68)
Co-authored-by: Ignacio Mazzara <nachomazzara@gmail.com>
- Loading branch information
1 parent
7fc2bf5
commit 2254a2d
Showing
72 changed files
with
4,445 additions
and
1,489 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 |
---|---|---|
|
@@ -29,3 +29,4 @@ eth_common/.ethereum | |
src/temp | ||
**/*.lcov | ||
coverage.lcov | ||
test-result |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [bytesToHex](./eth-connect.bytestohex.md) | ||
|
||
## bytesToHex() function | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function bytesToHex(bytes: Uint8Array): string; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| bytes | Uint8Array | | | ||
|
||
<b>Returns:</b> | ||
|
||
string | ||
|
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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [bytesToUtf8String](./eth-connect.bytestoutf8string.md) | ||
|
||
## bytesToUtf8String() function | ||
|
||
Decodes an Uint8Array or hex string into a UTF-8 string | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function bytesToUtf8String(bytesOrHexString: Uint8Array | string): string; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| bytesOrHexString | Uint8Array \| string | | | ||
|
||
<b>Returns:</b> | ||
|
||
string | ||
|
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,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [concatBytes](./eth-connect.concatbytes.md) | ||
|
||
## concatBytes() function | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function concatBytes(...buffers: Uint8Array[]): Uint8Array; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| buffers | Uint8Array\[\] | | | ||
|
||
<b>Returns:</b> | ||
|
||
Uint8Array | ||
|
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,25 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [fromTwosComplement](./eth-connect.fromtwoscomplement.md) | ||
|
||
## fromTwosComplement() function | ||
|
||
If the bit N is 1 | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function fromTwosComplement(num: BigNumber, bits?: number): BigNumber; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| num | [BigNumber](./eth-connect.bignumber.md) | | | ||
| bits | number | | | ||
|
||
<b>Returns:</b> | ||
|
||
[BigNumber](./eth-connect.bignumber.md) | ||
|
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [getAddress](./eth-connect.getaddress.md) | ||
|
||
## getAddress() function | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function getAddress(address: string): string; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| address | string | | | ||
|
||
<b>Returns:</b> | ||
|
||
string | ||
|
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,25 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [signedIsNegative](./eth-connect.signedisnegative.md) | ||
|
||
## signedIsNegative() function | ||
|
||
Check if input value is negative in twos complement | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function signedIsNegative(value: BigNumber, bits: number): boolean; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| value | [BigNumber](./eth-connect.bignumber.md) | | | ||
| bits | number | | | ||
|
||
<b>Returns:</b> | ||
|
||
boolean | ||
|
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
<b>Signature:</b> | ||
|
||
```typescript | ||
_inputTypes: string[]; | ||
_inputTypes: AbiInput[]; | ||
``` |
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
<b>Signature:</b> | ||
|
||
```typescript | ||
_outputTypes: string[]; | ||
_outputTypes: AbiOutput[]; | ||
``` |
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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [eth-connect](./eth-connect.md) > [stringToUtf8Bytes](./eth-connect.stringtoutf8bytes.md) | ||
|
||
## stringToUtf8Bytes() function | ||
|
||
Converts a string into a Uint8Array encoded with UTF-8 | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function stringToUtf8Bytes(str: string): Uint8Array; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| str | string | | | ||
|
||
<b>Returns:</b> | ||
|
||
Uint8Array | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.