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

Complete work on eth-event-viewer #2

Open
wants to merge 79 commits into
base: initial-commit-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
877ba5e
eth-event-viewer: add initial gall and landscape app
dominic22 Mar 19, 2020
dd21ee6
eth-event-viewer: add initial gall and landscape app
dominic22 Mar 19, 2020
6aa17f7
gall: request ethereum abi data from static url
dominic22 Mar 19, 2020
ba12e80
landscape: initial add/remove of contract events list received by abi
dominic22 Mar 20, 2020
34c3f33
gall: add handle subscribe and unsubscribe triggered by an action and…
dominic22 Mar 20, 2020
9f9dd0f
landscape: add event reducer and subscription
dominic22 Mar 20, 2020
190e3b0
gall: add handle subscribe and unsubscribe by action
dominic22 Mar 20, 2020
d6c17f9
landscape: add new contract form
dominic22 Mar 20, 2020
f39885c
landscape: add skeleton component
dominic22 Mar 21, 2020
0611a21
landscape: use checkbox to disable event list, add links to navigate …
dominic22 Mar 21, 2020
c41da1c
landscape: check for valid eth address using web3-utils and show inpu…
dominic22 Mar 21, 2020
3122200
gall: remove obsolete code, encode custom-contract type to json and s…
dominic22 Mar 22, 2020
8197e83
Update README.md
dominic22 Mar 22, 2020
178a29f
landscape: use contract type instead of address strings to add/remove…
dominic22 Mar 22, 2020
049150b
Merge remote-tracking branch 'origin/master'
dominic22 Mar 22, 2020
21caa87
gall: use contract-type when removing contracts, encode specific events
dominic22 Mar 23, 2020
7b36c3a
landscape: use contract-type when removing contracts
dominic22 Mar 23, 2020
d6fe335
etheventviewer-gall: watch/leave arms, initial event-log-decoder, par…
dominic22 Mar 31, 2020
05edd95
etheventviewer-ui: watch/leave buttons, transform events using abi re…
dominic22 Mar 31, 2020
48dc79e
etheventviewer-gall: encode event-log into json
dominic22 Apr 1, 2020
c181a12
etheventviewer-ui: initial event-logs ui
dominic22 Apr 3, 2020
8b99e77
etheventviewer-gall: initial send of event log list
dominic22 Apr 3, 2020
db280ee
etheventviewer-gall: add abi-events into gall state
dominic22 Apr 4, 2020
51f58e0
etheventviewer-gall: use map instead of set for contracts in state
dominic22 Apr 4, 2020
c31805d
etheventviewer-ui: use address to delete a contract of the state
dominic22 Apr 4, 2020
0a47f85
etheventviewer-gall: use hex address for key of map etc.
dominic22 Apr 4, 2020
3ff3141
etheventviewer-gall: use ux-to-cord for event log
dominic22 Apr 4, 2020
d85bd1a
etheventviewer-gall: add event-logs of the history to the state and s…
dominic22 Apr 5, 2020
608e261
etheventviewer-ui: initial output of event logs
dominic22 Apr 5, 2020
8be9621
etheventviewer-ui: display events and topics
dominic22 Apr 5, 2020
14a8f8c
etheventviewer-app: initial update on-watch of gall app
dominic22 Apr 5, 2020
2189d1e
etheventviewer-gall: dynamic subscribe paths, subscribe to eth watche…
dominic22 Apr 7, 2020
1c47535
etheventviewer-ui: more robust ui, better error texts
dominic22 Apr 7, 2020
67aeecf
etheventviewer-ui: filter event logs
dominic22 Apr 10, 2020
8ada52b
etheventviewer-ui: add filtering of the event log
dominic22 Apr 12, 2020
53f5d69
etheventviewer-ui: more robust ui, set initial state after adding con…
dominic22 Apr 12, 2020
0fd7e66
etheventviewer-gall: remove obsolete code, fix issues when adding new…
dominic22 Apr 12, 2020
e1842ee
etheventviewer-ui: small refactoring
dominic22 Apr 13, 2020
defec36
etheventviewer-ui: move event selection to local state
dominic22 Apr 13, 2020
323b93e
etheventviewer-gall: fix put in problem
dominic22 Apr 14, 2020
a7a4fc4
etheventviewer-gall: send new received log to landscape
dominic22 Apr 14, 2020
c79deb4
etheventviewer-ui: receive new log and add it to contract event-logs
dominic22 Apr 14, 2020
9686422
etheventviewer-gall: Specific actions for state updates, remove obsol…
dominic22 Apr 16, 2020
bede1b1
etheventviewer-ui: Add reducers for specific state updates, remove ob…
dominic22 Apr 16, 2020
e7cd79c
etheventviewer-ui: Send individual history instead of full state to l…
dominic22 Apr 16, 2020
642f3c8
etheventviewer-ui: Receive individual history instead of full state f…
dominic22 Apr 16, 2020
cfffb09
etheventviewer: Rename contract address
dominic22 Apr 16, 2020
1a88c94
etheventviewer: Rename contract address
dominic22 Apr 16, 2020
a845ba4
etheventviewer: Adjust ui, remove obsolete code, add reload button
dominic22 Apr 16, 2020
7fe40d2
etheventviewer-gall: refactor state update
dominic22 Apr 16, 2020
1a7097f
etheventviewer-ui: Refactor ui, check for unique keys and order logs …
dominic22 Apr 18, 2020
841126e
etheventviewer-ui: Adjust contracts reducer
dominic22 Apr 18, 2020
807604d
etheventviewer-ui: Render events only after a timeout, so it need onl…
dominic22 Apr 19, 2020
3d9f6dc
etheventviewer-gall: clear history without logs in path
dominic22 Apr 19, 2020
6d48a48
etheventviewer-gall: refactor code and move generic code into library
dominic22 Apr 23, 2020
d51b4c4
etheventviewer-ui: refactor code and remove obsolete code
dominic22 Apr 26, 2020
a046b48
etheventviewer-gall: rename lib, use alias for import, refactor code
dominic22 Apr 26, 2020
72fd42b
etheventviewer-gall: rename lib, use alias for import, refactor code
dominic22 Apr 26, 2020
e276a1d
etheventviewer-gall: remove logs, shorten line length
dominic22 Apr 26, 2020
e3204da
etheventviewer: add tile png and %add at launcha
dominic22 Apr 27, 2020
e45a693
eth-event-viewer: rename app
dominic22 Apr 27, 2020
b0d9628
eth-event-viewer: remove obsolete log
dominic22 Apr 27, 2020
fb86896
eth-event-viewer-ui: responsive user interface
dominic22 Apr 28, 2020
c7f0b5e
eth-event-viewer-gall: refactor poke mechanism using lib sur and mar …
dominic22 May 1, 2020
c5ad02e
eth-event-viewer-ui: more robust user interface
dominic22 May 2, 2020
c80c9a6
Merge pull request #1 from dominic22/view-actions-as-mark
dominic22 May 2, 2020
3ed7169
remove idea files
dominic22 May 9, 2020
3bf5d1d
initial review findings
dominic22 May 22, 2020
e4394b2
add type annotations to var declarations
dominic22 May 22, 2020
aa410cc
change order of arms
dominic22 May 22, 2020
c365fb1
check response wire
dominic22 May 22, 2020
da45c22
refactor and reduce event-log/history functions to one single function
dominic22 May 23, 2020
d195677
eth-event-viewer: request current block number and send/display on ui
dominic22 Jun 4, 2020
8f9d774
eth-event-viewer: remove data field from event log
dominic22 Jun 4, 2020
2228cc9
eth-event-viewer: make ui more robust
dominic22 Jun 4, 2020
10933ca
eth-event-viewer: refactor code, fix block number issue
dominic22 Jun 6, 2020
f766956
eth-event-viewer: more robust ui, remove unnecessary logs, add previo…
dominic22 Jun 6, 2020
7a99068
eth-event-viewer: remove log
dominic22 Jun 6, 2020
7273cd4
eth-event-viewer: add more explaining event message
dominic22 Jun 6, 2020
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
/dist/
2 changes: 1 addition & 1 deletion .urbitrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
URBIT_PIERS: [
"%URBITPIER%",
"/home/do7ze5/urbit/dus/home",
]
};
31 changes: 3 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Get started building a simple application for Landscape on your [Urbit](http://urbit.org) ship with a few commands.
Implementation of the urbit bounty Display ETH Data
Link: https://grants.urbit.org/bounties/831044524-display-eth-data

This tool is experimental and primarily used internally to develop front-end applications. While Tlon does not officially support this tool, you can always get general programming help for Urbit in the `~dopzod/urbit-help` chat.
It is an ethereum event viewer gall + landscape app which can be used to listen for ethereum contract events.

## Installation

Expand All @@ -12,10 +13,6 @@ In order to run your application on your ship, you will need Urbit v.0.10.0 or h

Once you're up and running, your tile lives in `tile/tile.js`, which uses [React](https://reactjs.org) to render itself -- you'll want a basic foothold with it first. When you make changes, the `urbit` directory will update with the compiled application and, if you're running `npm run serve`, it will automatically copy itself to your Urbit ship when you save your changes (more information on that below).

### `npm start`

This runs the wizard. Give it an application name and the location of your Urbit ship's desk and it will customise the files so your new application will run on your ship.

### `npm run build`

This builds your application and copies it into your Urbit ship's desk. In your Urbit (v.0.8.0 or higher) `|commit %home` (or `%your-desk-name`) to synchronise your changes.
Expand All @@ -26,25 +23,3 @@ If this is the first time you're running your application on your Urbit ship, do

Builds the application and copies it into your Urbit ship's desk, watching for changes. In your Urbit (v.0.8.0 or higher) `|commit %home` (or `%your-desk-name`) to synchronise your changes.

## FAQ

### What is a "tile" vs. "full" app?

When you run `npm run start`, the wizard will ask you to specify which you want:

- **tile**: A tile that exists on the Landscape launch screen. A pre-existing example is the "Weather" tile or the "Clock" tile in Landscape.
- **full**: A tile that links to a full-screen application: this means that you will work in both `tile.js` (for the tile interface) and `root.js` (and beyond) in the `src` folder.

No matter which option you specify, the wizard will customise the Hoon boilerplate for you and provide a basic example accordingly.

### How can I ensure my app fits Landscape design?

Landscape makes use of the [Indigo](https://urbit.github.io/indigo-react/) CSS framework. The template tile and full application both make use of it as an example for you to get going fast.

### What if I want to communicate with my ship / provide more functionality besides a front-end?

By default, your app will provide an example of passing state from ship to front-end with the `peer-[yourappname]tile` arm in the app's .hoon file -- in this case, just sending your ship's name as a data prop. The code is well-commented if you don't want to pass state, or if you want to know how to pass almost anything else from your ship to the Landscape interface.

In order to do anything substantial, of course, you'll want to know [Hoon](https://urbit.org/docs/tutorials/hoon/). If this is intimidating, don't panic: `create-landscape-app` is a fantastic way to start learning by leveraging your strengths. This repository is intended to be a boilerplate for rapid front-end development; it's also a gradual, incremental introduction to Hoon for web developers by allowing for rapid prototyping and experimentation with the Landscape interface.

Happy hacking!
164 changes: 0 additions & 164 deletions full/gulpfile.js

This file was deleted.

139 changes: 0 additions & 139 deletions full/src/css/custom.css

This file was deleted.

4 changes: 0 additions & 4 deletions full/src/index.css

This file was deleted.

Loading