Skip to content

Commit

Permalink
Merge pull request #724 from eco-stake/remove-ui-code
Browse files Browse the repository at this point in the history
Remove UI code
  • Loading branch information
tombeynon authored Mar 27, 2023
2 parents 3defb75 + 7812bc0 commit f18cc70
Show file tree
Hide file tree
Showing 103 changed files with 975 additions and 23,790 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
.parcel-cache
Dockerfile
.git
.vim
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/publish.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ scripts/*
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.vim
.iml

# Parcel related files
dist/
.cache
.parcel-cache/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17
18
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# dev env
FROM node:17-slim
FROM node:18-slim

RUN apt-get update && apt-get install -y python3 make g++

Expand All @@ -14,4 +14,4 @@ ENV DIRECTORY_PROTOCOL=https
ENV DIRECTORY_DOMAIN=cosmos.directory

EXPOSE 3000
CMD npm run start
CMD npm run autostake
33 changes: 0 additions & 33 deletions Dockerfile.production

This file was deleted.

21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ REStake is also a convenient staking tool, allowing you to claim and compound yo

Try it out at [restake.app](https://restake.app).

The REStake UI has it's own dedicated repository at [eco-stake/restake-ui](https://github.com/eco-stake/restake-ui).

## How it works / Authz

Authz is a new feature for Tendermint chains which lets you grant permission to another wallet to carry out certain transactions for you. These transactions are sent by the grantee on behalf of the granter, meaning the validator will send and pay for the TX, but actions will affect your wallet (such as claiming rewards).
Expand All @@ -21,7 +23,7 @@ A script is also provided which allows a validator to automatically search their
- As of writing, Ledger is unable to send the necessary transactions to enable Authz. This is purely due to the way transactions are sent to a Ledger device and a workaround should be possible soon.
- Authz is also not fully supported yet. Many chains are yet to update. The REStake UI will fall back to being a manual staking app with useful manual compounding features.
- Currently REStake needs the browser extension version of Keplr, but WalletConnect and Keplr iOS functionality will be added ASAP.
- REStake requires Nodejs version 17.x or later, it will not work with earlier versions.
- REStake requires Nodejs version 18.x or later, it will not work with earlier versions.

## Become an operator

Expand Down Expand Up @@ -87,19 +89,18 @@ cp .env.sample .env

#### Instructions for NPM

##### Install nodejs@v17
##### Install nodejs@v18

```bash
curl -sL https://deb.nodesource.com/setup_17.x -o /tmp/nodesource_setup.sh
curl -sL https://deb.nodesource.com/setup_18.x -o /tmp/nodesource_setup.sh
# read the script file and when you're sure it's safe run it
chmod +x /tmp/nodesource_setup.sh
/tmp/nodesource_setup.sh
apt install nodejs -y
node --version
> v17.9.0
> v18.15.0
npm --version
> 8.5.5

> 9.5.0
```

##### Clone the repository and build it
Expand Down Expand Up @@ -404,13 +405,9 @@ Note that most attributes from Chain Registry can be overridden by defining the

### Running the UI

Run the UI using docker with one line:

```bash
docker run -p 80:80 -t ghcr.io/eco-stake/restake
```
The REStake UI now has it's own dedicated repository at [eco-stake/restake-ui](https://github.com/eco-stake/restake-ui).

Alternative run from source using `docker-compose up` or `npm start`.
Check the project README for instructions on running your own UI.

## Ethos

Expand Down
10 changes: 5 additions & 5 deletions README_TURKISH.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ cp .env.sample .env

#### NPM için Talimatlar

##### nodejs@v17 yükleme
##### nodejs@v18 yükleme

```bash
curl -sL https://deb.nodesource.com/setup_17.x -o /tmp/nodesource_setup.sh
curl -sL https://deb.nodesource.com/setup_18.x -o /tmp/nodesource_setup.sh
# read the script file and when you're sure it's safe run it
chmod +x /tmp/nodesource_setup.sh
/tmp/nodesource_setup.sh
apt install nodejs -y
node --version
> v17.9.0
> v18.15.0
npm --version
> 8.5.5
> 9.5.0
```

Depoyu klonlama ve yükleme
Expand Down Expand Up @@ -267,7 +267,7 @@ NPM kurulumu için `Requires` ve `After` direktiflerini kaldırın ve` `ExecStar

🔴 **Eğer `Failed to restake service with docker compose` gibi bir hata alırsanız yine `chmod 777 /usr/bin/docker-compose` komutu ile dosyaya okuma, yazma ve çalıştırma izni veriniz.**

Çözüm için değerli arkadaşım [Odyseus](https://github.com/odyseus8)'a teşekkür ederim.
Çözüm için değerli arkadaşım [Odyseus](https://github.com/odyseus8)'a teşekkür ederim.

##### systemd timer dosyası oluşturma

Expand Down
41 changes: 0 additions & 41 deletions deploy.yml

This file was deleted.

2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ services:
build: .
env_file:
- .env
ports:
- '1234:1234'
volumes:
- .:/usr/src/app
- restake_node_modules:/usr/src/app/node_modules
Expand Down
44 changes: 0 additions & 44 deletions nginx.conf

This file was deleted.

Loading

0 comments on commit f18cc70

Please sign in to comment.