Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPGRADE] Upgrade contracts #4

Merged
merged 30 commits into from
Jan 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dist: trusty
sudo: required
group: beta
language: node_js
node_js:
- "8"
cache:
directories:
- node_modules
install: npm install
script:
- npm i ganache-cli
- ganache-cli -i 1002 -l 8000000 > /dev/null &
- npm run truffle:test
- npm run truffle:migrate -- --netwotk=development
64 changes: 30 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
# drizzle-react-components
A set of useful components for common UI elements.

## Components

### LoadingContainer

This components wraps your entire app (but within the DrizzleProvider) and will show a loading screen until Drizzle, and therefore web3 and your contracts, are initialized.

`loadingComp` (component) The component displayed while Drizzle intializes.

`errorComp` (component) The component displayed if Drizzle initialization fails.

### ContractData

`contract` (string, required) Name of the contract to call.

`method` (string, required) Method of the contract to call.

`methodArgs` (array) Arguments for the contract method call. EX: The address for an ERC20 balanceOf() function. The last argument can optionally be an options object with the typical from, gas and gasPrice keys.

`hideIndicator` (boolean) If true, hides the loading indicator during contract state updates. Useful for things like ERC20 token symbols which do not change.

`toUtf8` (boolean) Converts the return value to a UTF-8 string before display.

`toAscii` (boolean) Converts the return value to an Ascii string before display.

### ContractForm

`contract` (string, required) Name of the contract whose method will be the basis the form.

`method` (string, required) Method whose inputs will be used to create corresponding form fields.

`labels` (array) Custom labels; will follow ABI input ordering. Useful for friendlier names. For example "_to" becoming "Recipient Address".
#Crypto-Will
Crypto-Will is a tool to deploy your personal will on the Ethereum blockchain.
You can:
- add beneficiaries,
- delete beneficiaries,
- set their percentage,
- set the Waiting period before the wealth can be disposed
- also reset the Wait timer before allowing disbursement

## Contracts
#### Mainnet

#### Ropsten
```
Deployer: 0xb42dA29a59a6042dD236009fc4A0e43B50C9Cc1b
```
#### Rinkeby
```
Deployer: 0xD6dB47543BE46821446Fe7E5E206BCc1e7A83244
```
#### Kovan
```
Deployer: 0x16E4255284FA3ebaec44CeB80F1D492a60cafcD1
```

## Tests
To run test, you need to have [ganache-cli](https://github.com/trufflesuite/ganache-cli) or [ganache](https://github.com/trufflesuite/ganache) installed globally using

- start ganache `ganache-cli` in terminal
- run tests from the repo directory `npm run truffle:test`
2,434 changes: 1,294 additions & 1,140 deletions build/contracts/Deployer.json

Large diffs are not rendered by default.

18,871 changes: 12,700 additions & 6,171 deletions build/contracts/Will.json

Large diffs are not rendered by default.

Loading