Skip to content

Commit 21bd180

Browse files
committed
BAEL-1461
1 parent 263009f commit 21bd180

28 files changed

Lines changed: 3125 additions & 0 deletions

‎pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
<module>dozer</module>
7575

7676
<module>ethereumj</module>
77+
<module>web3j</module>
7778

7879
<!--<module>ejb</module>-->
7980

‎web3j/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
target
3+
*.iml

‎web3j/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Web3j
2+
3+
### Relevant Articles:
4+
- [Lightweight Web3](http://www.baeldung.com/lightweight-web3/)

‎web3j/dev_ganache/README.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Ganache Readme
2+
3+
TL:DR - To set up Ganache visit: http://truffleframework.com/ganache/
4+
5+
# Three Ways to Install Ganache
6+
7+
Ganache is provided in three libraries or distributions:
8+
9+
(1) Ganache - https://github.com/trufflesuite/ganache
10+
11+
This is a pre-built and out-of-the-box solution. Easiest to set up. It provides an interface and server shell for Ganache CLI.
12+
13+
(2) Ganache CLI - https://www.npmjs.com/package/ganache-cli
14+
15+
Ganache CLI abstracts Ganache Core and supplies the default options and arguments used.
16+
17+
(3) Ganache Core - https://www.npmjs.com/package/ganache-core
18+
19+
Basically, only use Ganache Core if you need to build a totally customized option.
20+
21+
# Use
22+
23+
The default port is *8545* on *localhost*

‎web3j/dev_truffle/README.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Using Truffle
2+
3+
Basic Truffle walkthrough readme.
4+
5+
See also: http://truffleframework.com/docs/
6+
7+
# Bash
8+
9+
Truffle install
10+
11+
```bash
12+
$ npm install truffle -g
13+
$ truffle version
14+
```
15+
16+
Truffle commands:
17+
18+
```bash
19+
$ truffle init
20+
$ truffle compile
21+
$ truffle migrate
22+
$ truffle test
23+
```
24+
25+
# Directory Structure
26+
27+
The command `$ truffle init` will create a directory structure in the specified root according to the following:
28+
29+
```
30+
root -|
31+
|-build (Compiled Solc JSON Output Dir)
32+
|-contracts (Solc Contracts to be Compiled and Migrated)
33+
|-migrations (Specify the Order and Dependencies of Contracts to Be Deployed)
34+
|-test (Truffle Tests)
35+
```
36+
37+
# Compile
38+
39+
Truffle will compile the smart contracts and expose their **JSON ABI's for use with Web3.js** or **Binary ABI's for use with Web3J**.
40+
41+
# Migration
42+
43+
Truffle will let you deploy your Solc contracts directly to a blockchin of your choice.

0 commit comments

Comments
 (0)