Skip to content

Commit da960e4

Browse files
authored
Merge pull request #85 from signum-network/develop
Web app refresh
2 parents 4fedf13 + 2b519bb commit da960e4

File tree

240 files changed

+21833
-9146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+21833
-9146
lines changed

.DS_Store

8 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ bin/
132132
/logging.xml
133133
/pool.properties
134134
/jooq-schema.mv.db
135+
.DS_Store

README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ An open-source, fair, and auditable Signum mining pool software where miners can
44

55
## Features
66

7+
- Accounts can join your pool using the [Signum XT Wallet](https://github.com/signum-network/signum-xt-wallet).
78
- PoC+ boost calculated by the pool using recent deadlines (no boost drops)
89
- Pool can be audited by API (all information is available to the public)
910
- Miners can set individually their _share model_
@@ -12,7 +13,7 @@ An open-source, fair, and auditable Signum mining pool software where miners can
1213
- Payouts by multi-out transactions with the current _standard_ fee (variable)
1314
- Support for multiple pool IDs (a primary and many secondaries)
1415

15-
![image](https://user-images.githubusercontent.com/31958515/122991794-d0a75f00-d37b-11eb-9d1a-71ae44b144c6.png)
16+
![image](https://user-images.githubusercontent.com/35440957/166112978-39c80bee-af6c-4f4d-b41c-881d2b263d23.png)
1617

1718
## Pool shares
1819

@@ -46,32 +47,52 @@ multiple _secondary_ IDs.
4647
Whenever a _secondary_ ID forges a block, its balance is transfered automatically to the primary ID so it can manage
4748
the payments.
4849

49-
Check a [testnet live demo](http://nivbox.co.uk:9000) to check on the latest development version.
50+
## Authors
5051

51-
Originally by [Harry1453](https://github.com/harry1453),
52-
updated by [jjos](https://github.com/jjos2372).
52+
* Originally by [Harry1453](https://github.com/harry1453)
53+
* Updated by [jjos](https://github.com/jjos2372)
54+
* Web application by [ipr0310](https://github.com/ipr0310)
5355

54-
Donations are very welcome at [S-JJQS-MMA4-GHB4-4ZNZU](https://explorer.burstcoin.network/?action=account&account=3278233074628313816).
56+
## Donations are very welcome
57+
58+
* Harry1453-[S-HARR-YJSD-6JL2-9RE46](https://explorer.signum.network/address/8217266070159336183)
59+
* jjos-[S-JJQS-MMA4-GHB4-4ZNZU](https://explorer.signum.network/address/3278233074628313816)
60+
* ipr0310-[S-36WQ-GYQN-D856-9DUJH](https://explorer.signum.network/address/8629824288351884182)
61+
62+
## Demo
63+
64+
- http://testnet.btfg.space:9000
5565

5666
## Pools using the software
5767

58-
- http://spacepool.btfg.space
68+
- http://spacepool.lmsi.club/
5969
- https://pool.signumcoin.ro
6070
- http://signa.voiplanparty.com:8124
61-
- http://openburstpool.ddns.net:8126
62-
- http://signumpool.de:8080
71+
- http://opensignumpool.ddns.net:8126
72+
- http://signumpool.de:8080/
6373
- https://signumpool.com
6474
- https://signapool.notallmine.net
6575
- https://fomplopool.com
6676
- http://signum.land
67-
- https://signum.space
77+
78+
## Powered by
79+
- [Signum](https://github.com/signum-network/signum-node)
80+
- [SignumJS](https://github.com/signum-network/signumjs)
81+
- [React](https://reactjs.org/)
82+
- [MUI](https://mui.com/)
6883

6984
## Requirements
7085

7186
- [Synced Signum node](https://github.com/signum-network/signum-node)
7287
- Java 64 Bits version 8 or 11
7388
- MariaDB (Optional, but recommended for advanced users)
7489

90+
## XT Wallet integration
91+
92+
In order to be able to use the XT wallet module. For security reasons the pool website must be on **HTTPS** or localhost
93+
94+
<img src="https://user-images.githubusercontent.com/35440957/168082091-3480557d-8bdd-455b-88f5-f0ed8d1ff87e.png" width="100" height="50">
95+
7596
## Installation
7697

7798
- [Download The Latest Release](https://github.com/signum-network/signum-pool/releases/latest)

dist/pool.properties

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ nodeAddresses = http://localhost:8125;
2020
poolName = SIGNUM POOL
2121

2222
# The URL miners should point their miner to
23-
miningURL = http://nivbox.co.uk:9000
23+
miningURL = http://testnet.btfg.space:9000
2424

2525
# The passphrase of the pool account
2626
passphrase = YOUR POOL PASSPHRASE GOES HERE
@@ -104,19 +104,20 @@ site.root = ./html/
104104
site.miningGuide = https://signum.network/mining.html
105105

106106
# The public node that the site will link to
107-
site.nodeAddress = https://wallet.burst-alliance.org:8125/index.html
108-
#site.nodeAddress = https://testnet-2.burst-alliance.org:6876/index.html
107+
# Keep the node URL formatted as the following examples
108+
site.nodeAddress = https://europe.signum.network
109+
#site.nodeAddress = https://europe3.testnet.signum.network
109110

110111
# The discord URL that the site will link to
111112
site.discord = https://discord.gg/V437QK4nKQ
112113

113114
# The explorer URL
114-
site.explorer = https://explorer.signum.network/
115+
site.explorer = https://explorer.signum.network
115116
site.explorerAccount = ?action=account&account=
116117

117118
# The faucet URL (if you want to privide some)
118-
# site.faucet = http://faucet.burst-alliance.org/
119-
# site.faucet = http://nivbox.co.uk:7777/
119+
# site.faucet = http://faucet.burst-alliance.org
120+
# site.faucet = http://nivbox.co.uk:7777
120121

121122
# The title, as displayed on the site
122123
site.title = SIGNUM POOL
@@ -159,7 +160,9 @@ site.showTradingLink = YES
159160
site.miniTradingLink = https://bit.ly/2UEd4RB
160161
site.largeTradingLink = https://bit.ly/3A5BIep
161162

162-
site.price = https://min-api.cryptocompare.com/data/price?fsym=SIGNA&tsyms=USD
163+
site.price = https://api.coingecko.com/api/v3/simple/price?ids=signum&vs_currencies=usd
163164

164-
# Your google tracking ID, if some
165-
#site.googleTrackingID = UA-ADFASDFS
165+
#Google Tracking ID, optional
166+
#Example of Tracking ID: G-XXXXXX
167+
#DO NOT USE THE DEPRECATED UNIVERSAL ANALYTICS PROPERTY, EXAMPLE: UA-XXXXX (DO NOT USE IT)
168+
#site.googleTrackingID = G-XXXXX

react-pool/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

react-pool/.gitignore

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7-
package-lock.json
87

98
# testing
109
/coverage
1110

1211
# production
1312
/build
14-
build.rar
1513

1614
# misc
1715
.DS_Store
@@ -23,11 +21,3 @@ build.rar
2321
npm-debug.log*
2422
yarn-debug.log*
2523
yarn-error.log*
26-
27-
#vscode
28-
/.vscode
29-
30-
#serverless
31-
.serverless
32-
serverless.yml
33-
/package-lock.json

react-pool/README.md

Lines changed: 48 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,53 @@
11
# Welcome to Signum's Pool website
22

3-
_Maybe you will find helpful tips_
3+
### Featured tools
4+
- [SignumJS](https://github.com/signum-network/signumjs)
5+
- [React](https://reactjs.org/)
6+
- [Redux Toolkit](https://redux-toolkit.js.org/)
7+
- [MUI](https://mui.com/)
8+
- [useSWR](https://swr.vercel.app/)
49

5-
## How to use testing or production mode 📋
10+
## How to use Development or Production mode 📋
611

7-
- **Testing mode refers to the "development enviroment"**
12+
- **Development mode refers to the "development enviroment"**
813

9-
> Testing mode will fetch data from a remote pool server
14+
> Development mode will fetch data from a remote pool server
1015
11-
> **Example: you can fetch data from different pools by just changing the variable TEST_NODE in globalParameters.js**
16+
> **Example: you can fetch data from different pools by just changing the variable isDevelopmentMode in enviroments/index.ts**
1217
1318
- **Production mode refers to the "production enviroment"**
1419

1520
> Production mode will fetch data from the local pool server which you will host the web app
1621
17-
Per default the testing mode is activated automatically when running `npm start`, but `npm run build` activates production mode
22+
Per default the Development mode is activated automatically when running `npm start`, but `npm run build` activates Production mode
1823

19-
> _If you need - for whatever reasons - to develop on production mode you need to override the "useTestNet" variable_
24+
> _If you need - for whatever reasons - to develop on production mode you need to override the "isDevelopmentMode" variable_
2025
21-
> The variable useTestnet also refers to the "development enviroment"
22-
23-
- Go to the folder src/utils/
24-
- You will find the file "globalParameter.js"
25-
- Find the variable "useTestNet"
26+
- Go to the file "enviroments/index.ts"
27+
- You will find the variable "isDevelopmentMode"
2628

2729
- If that variable is equal to true, the website will fetch data from a remote pool node **you can change the url**
2830
- If that variable is equal to false, the website will fetch data from your local pool node!
2931

30-
> The variable "useTestNet" is assigned correspondingly, so it's not necessary to override it
32+
> The variable "isDevelopmentMode" is assigned correspondingly, so it's not necessary to override it
33+
34+
## How to use pool in Testnet or Mainet network 📋
35+
36+
- **The isTestNet variable refers to the network which may be used**
37+
38+
> **Example: you can host your pool in the Testnet or Mainnet network by modifying the variable isTestNet in enviroments/index.ts**
39+
40+
> The variable "isTestNet" is assigned correspondingly, so it's not necessary to override it
3141
3242
## Commands for deployment 🛠️
3343

3444
_Use this commands if you are going to deploy changes or start the deployment_
3545

36-
- If you have not installed the dependencies, run "npm install", if there is already a folder called "node_modules", forget this step
37-
- npm run build - Build project's production site
38-
- After the build command has finished, you will only need the folder "Build"
39-
- Only use the folder "Build", you can deploy the production app in your pool node
40-
- Always serve the file index.html
46+
- If you have not installed the dependencies, run `npm install`, if there is already a folder called `/node_modules`, forget this step
47+
- `npm run build` - Build project's production site
48+
- After the build command has finished, you will only need the folder `/Build`
49+
- You will need to move the files from `/Build` folder to the `/html` folder, in the production app of your pool node
50+
- Always serve the file `index.html`
4151

4252
## Available Languages 🌐
4353

@@ -48,7 +58,6 @@ Discover the available languages you can set by default or users can freely choo
4858
- `es` Spanish
4959
- `de` Deutsche
5060
- `it` Italiano
51-
- `kr` Korean
5261
- `pt` Português
5362
- `tr` Türk
5463
- `nl` Nederlands
@@ -58,6 +67,19 @@ Discover the available languages you can set by default or users can freely choo
5867

5968
> `code` -> language name
6069
70+
71+
## How to load specific language from URL 🌐
72+
73+
If you want to share a link with some miners which talks a specific language, you can just add the following get parameter in the URL.
74+
Make sure that you assign a available language.
75+
76+
> **lang=ru**
77+
78+
> Example #1: **http://poolUrlExample.com/?lang=ru**
79+
80+
> Example #2: **http://poolUrlExample.com/randomRoute/?random=true&lang=ru**
81+
82+
6183
## How to implement extra links on your header 🕹️
6284

6385
If you want extra links to be put in your header, you must go to the file `pool.properties` and find and customize the variable `extraMenuItems`
@@ -112,16 +134,17 @@ If you want your pool website to be shown on iframes, you can just add the follo
112134
## How to use Google Analytics (Optional)
113135

114136
- Go to Google Analytics website and if you’re first time user, you’ll asked to set up an account including your data sharing settings.
115-
- Create a new property — remember to select the Universal Analytics property option. You have the options to create UA, or GA4 or both properties.
116-
- Fill up the remaining information for setting up your account and properties; and then you’ll get the tracking ID (e.g. UA-123456789–1)
117-
- Once you get the Tracking ID, you just need to assign that value in the variable "GOOGLETRACKINGID"
137+
- Create a new property
138+
- Add a ``Web Data Stream``
139+
- Fill up the remaining information for setting up your ``web data stream``. Then you’ll get the tracking ID (e.g. G-XXXXXX)
140+
- Once you get the Tracking ID, you just need to assign that value in the variable `GOOGLETRACKINGID`
118141
- If you do not want google analytics, just leave the variable empty
119142

120-
> Example of a tracking ID: **UA-200778790-1**
143+
> Example of a tracking ID: **G-XXXXXXX**
121144
122-
## URL used for embed in trading viewer page
145+
> **DO NOT USE THE DEPRECATED UNIVERSAL ANALYTICS PROPERTY, EXAMPLE: UA-XXXXX**
123146
124-
_I used bitly.com for shortening these links, the first link is the mini widget, and the second one is the large widget_
147+
## URL used for embed in trading viewer page
125148

126149
- https://s.tradingview.com/embed-widget/tickers/?locale=en#%7B%22symbols%22%3A%5B%7B%22description%22%3A%22BTC%2FSIGNA%22%2C%22proName%22%3A%22BITTREX%3ASIGNABTC%22%7D%2C%7B%22description%22%3A%22SIGNA%2FUSD%22%2C%22proName%22%3A%22BITTREX%3ASIGNAUSD%22%7D%5D%2C%22colorTheme%22%3A%22dark%22%2C%22isTransparent%22%3Afalse%2C%22showSymbolLogo%22%3Atrue%2C%22width%22%3A%22100%25%22%2C%22height%22%3A104%2C%22utm_source%22%3A%22www.tradingview.com%22%2C%22utm_medium%22%3A%22widget_new%22%2C%22utm_campaign%22%3A%22tickers%22%7D
127150

0 commit comments

Comments
 (0)