hydroprotocol / hydro-scaffold-dex Goto Github PK
View Code? Open in Web Editor NEWA Decentralized Exchange Scaffold - launch a DEX in minutes
License: Apache License 2.0
A Decentralized Exchange Scaffold - launch a DEX in minutes
License: Apache License 2.0
The functions of backend/api/orders_server.go ignore the order type. These functions assume that the amount is in base token. However, when the type of order is “market” and the side is "buy", the amount of order is in quote token.
However MatchOrder() of orderbook.go deals with the "market" order correctly.
Good day
When I added a new ERC20 Token paired to DAI or paired to HOT, I got the ...cannot find Symbol by address... error.
I ran this command "hydro-scaffold-dex>docker-compose -f docker-compose-mainnet.yaml up" and got the following log reports:
"hydro-scaffold-dex-redis | 1:M 15 Nov 2020 14:57:18.095 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.
hydro-scaffold-dex-ws | time="2020-11-15T13:39:54Z" level=info msg="Websocket Server is listening on :3002"
Then it was followed by endless logs from hydro-scaffold-dex-api and hydro-scaffold-dex-ws.eg.
"hydro-scaffold-dex-ws | time="2020-11-15T13:42:01Z" level=debug msg="rec msg: {"channel_id":"TraderAddress#0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a","payload":{"type":"lockedBalanceChange","symbol":"DAI","balance":"15079859809453000000000"}}"
hydro-scaffold-dex-ws | time="2020-11-15T13:42:01Z" level=debug msg="rec msg: {"channel_id":"Market#HOT-DAI","payload":{"side":"buy","sequence":18,"price":"0.8367","amount":"2154.1469"}}"
hydro-scaffold-dex-ws | time="2020-11-15T13:42:01Z" level=debug msg="rec msg: {"channel_id":"TraderAddress#0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a","payload":{"type":"orderChange","order":{"id":"0x007a16c2100ce598f6fa20a27381b47440f2ea22866e030409132c41027ba925","traderAddress":"0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a","marketID":"HOT-DAI","side":"buy","price":"0.8367","amount":"2154.1469","status":"pending","type":"limit","version":"hydro-v1","availableAmount":"2154.1469","confirmedAmount":"0","canceledAmount":"0","pendingAmount":"0","makerFeeRate":"0.001","takerFeeRate":"0.003","makerRebateRate":"0","gasFeeAmount":"0.45","json":"{\"trader\":\"0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a\",\"relayer\":\"0x93388b4efe13b9b18ed480783c05462409851547\",\"baseTokenAmount\":\"2154146900000000000000\",\"quoteTokenAmount\":\"1802374711230000000000\",\"baseToken\":\"0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218\",\"quoteToken\":\"0xbc3524faa62d0763818636d5e400f112279d6cc0\",\"gasTokenAmount\":\"450000000000000000\",\"signature\":\"0x1b00000000000000000000000000000000000000000000000000000000000000e1460b3ab11daf6c3bf8dbbf47574e6c811b4cd5e24ffe2be831ce5466a7ca382e2b3c96d0da248ef4518a3421343f39eb02dab9e938b5f4982bc1d04f7931a4\",\"data\":\"0x02000011ba94e2900064012c000064a3f3d8f7b7384c00000000000000000000\"}","createdAt":"2020-11-15T13:42:01.8691204Z","updatedAt":"2020-11-15T13:42:01.8781781Z"}}}"
hydro-scaffold-dex-ws | time="2020-11-15T13:42:01Z" level=debug msg="rec msg: {"channel_id":"TraderAddress#0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a","payload":{"type":"lockedBalanceChange","symbol":"DAI","balance":"16882234520683000000000"}}"
hydro-scaffold-dex-ws | time="2020-11-15T13:42:02Z" level=debug msg="rec msg: {"channel_id":"Market#HOT-DAI","payload":{"side":"buy","sequence":19,"price":"0.8203","amount":"2175.58173"}}"
hydro-scaffold-dex-ws | time="2020-11-15T13:42:02Z" level=debug msg="rec msg: {"channel_id":"TraderAddress#0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a","payload":{"type":"orderChange","order":{"id":"0x5b1e423236d7770947f3a0ff9c551950ddafbbe71b61062ce8fdfc4619d5f434","traderAddress":"0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a","marketID":"HOT-DAI","side":"buy","price":"0.8203","amount":"2175.58173","status":"pending","type":"limit","version":"hydro-v1","availableAmount":"2175.58173","confirmedAmount":"0","canceledAmount":"0","pendingAmount":"0","makerFeeRate":"0.001","takerFeeRate":"0.003","makerRebateRate":"0","gasFeeAmount":"0.45","json":"{\"trader\":\"0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a\",\"relayer\":\"0x93388b4efe13b9b18ed480783c05462409851547\",\"baseTokenAmount\":\"2175581730000000000000\",\"quoteTokenAmount\":\"1784629693119000000000\",\"baseToken\":\"0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218\",\"quoteToken\":\"0xbc3524faa62d0763818636d5e400f112279d6cc0\",\"gasTokenAmount\":\"450000000000000000\",\"signature\":\"0x1c000000000000000000000000000000000000000000000000000000000000007bb85d70493054f9c16320d76ad8c02dabd2bbe032ad91f8e93cb44bbbf5421c1a57688ec18dbb5619a12ad57f5183213c53e821cc66e71b3135cd0c434060d9\",\"data\":\"0x02000011ba94e2a00064012c00005a4eda6afb3b902d00000000000000000000\"}","createdAt":"2020-11-15T13:42:02.2642397Z","updatedAt":"2020-11-15T13:42:02.2686695Z"}}}"
May you help explain what wrong I did or what is happening here?
Thank you.
I have created a NUKER-WETH market, and I have approved it. Nuke is approved in my wallet in the UI, but WETH isn't. Why is this?
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
lookup db on 127.0.0.11:53: no such host
I found that we can customize fee, so which wallet fee will go to ?
Order status is not being updated even after the transaction from relayer's account is confirmed on the blockchain.
I have checked the database in postgresql container and saw the table, it's not updating the data.
I have hydro protocol running locally and i wanted to add an ERC20 token. I received the error below:
"cannot find Symbol by address 0x115170eb12107c377046eaed6e0d7179505ce6d1 on chain"
May you help give me information on how to resolve the above. Thank you.
I am following the instructions mentioned in the link:
https://hydroprotocol.io/docs/overview/getting-started.html
After executing "docker-compose pull && docker-compose up -d", when I am trying to access localhost:3000 in browser, I am getting connection refused error in browser console
when i try to manually configure ,I am getting following error in on executing make api:
go run ./cli/api/main.go
panic: dial tcp 127.0.0.1:5432: connect: connection refused
goroutine 1 [running]:
github.com/HydroProtocol/hydro-scaffold-dex/backend/models.Connect(0xc0000342e1, 0x3f, 0xc0000342e1)
/home/dimple/blockchain/hydro/hydro-scaffold-dex/backend/models/conn.go:16 +0x105
github.com/HydroProtocol/hydro-scaffold-dex/backend/api.StartServer(0xd5a800, 0xc0000371c0, 0xca4090)
/home/dimple/blockchain/hydro/hydro-scaffold-dex/backend/api/server.go:139 +0x112
main.run(0xc00002a118)
/home/dimple/blockchain/hydro/hydro-scaffold-dex/backend/cli/api/main.go:16 +0x97
main.main()
/home/dimple/blockchain/hydro/hydro-scaffold-dex/backend/cli/api/main.go:22 +0x22
exit status 2
Makefile:14: recipe for target 'api' failed
make: *** [api] Error 1
I am using ubuntu 18.04 version for its deployment.
could you please help in resolving this error? In case of any modification required, please do let me know to run this properly.
I had no problems when I tried with Localhost.
I followed the instructions and I'm making a mistake somewhere.
- REACT_APP_API_URL=http://api.theexchange.site
- REACT_APP_WS_URL=wss://ws.theexchange.site
- REACT_APP_NODE_URL=http://rpc.theexchange.site
I edited the nginx-config.md
folder
upstream hydro-dex-web {
server theexchange.site;
}
upstream hydro-dex-api {
server theexchange.site;
}
upstream hydro-dex-ws {
server theexchange.site;
}
upstream hydro-dex-rpc {
server theexchange.site;
}
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
server {
listen 80;
server_name theexchange.site;
# cache static content
location ^~ /static/ {
expires 7d;
proxy_pass http://hydro-dex-web;
}
location / {
proxy_pass http://hydro-dex-web;
}
}
server {
listen 80;
server_name api.theexchange.site;
location / {
proxy_pass http://hydro-dex-api;
}
}
server {
listen 80;
server_name ws.theexchange.site;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://hydro-dex-ws;
}
}
server {
listen 80;
server_name rpc.theexchange.site;
location / {
proxy_pass http://hydro-dex-rpc;
}
}
sudo nginx -t
and sudo nginx -s reload
does not work when I go to the my web site .
where am i doing wrong?
thanks
Hello guys,
I think there is some issue with the chartdata, I made a local env, then I activated the bot and everything work, but chart data are always zero
http://localhost:3001/markets/HOT-DAI/trades
"status": 0,
"desc": "success",
"data": {
"count": 255,
"trades": [
{
"id": 258,
"transactionID": 245,
"transactionHash": "0x32385469bdb82ac1c0eed6bd2d046f2d1e31c0c75a2a6bc8139fb7863a30821a",
"status": "successful",
"marketID": "HOT-DAI",
"maker": "0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a",
"taker": "0xf8950488d3a850c89f1e68976ab0e883e6274bb4",
"takerSide": "buy",
"makerOrderID": "0xddd87c98ad8ff45778a34f5160fa84607126422d019988b3f587a19a47f06c07",
"takerOrderID": "0x09edf2ea4bd77bee9fa9758bb25892044a8234f2d16ce58a6efec12ee336e0c5",
"sequence": 0,
"amount": "67.58992",
"price": "0.9803",
"executedAt": "1970-01-01T00:00:00Z",
"createdAt": "2019-06-06T10:26:16.221068Z",
"updatedAt": "2019-06-06T10:26:24.596616Z"
},
{
"id": 257,
"transactionID": 244,
"transactionHash": "0x8500a109a5594ffd7922c2d693bfd953f5e4df9039858b3842f8bfda6c369624",
"status": "successful",
"marketID": "HOT-DAI",
"maker": "0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a",
"taker": "0xf8950488d3a850c89f1e68976ab0e883e6274bb4",
"takerSide": "buy",
"makerOrderID": "0xddd87c98ad8ff45778a34f5160fa84607126422d019988b3f587a19a47f06c07",
"takerOrderID": "0xbcdbaf4f08740234920f5d083dac668ff9cb8ed835fe661409e7c2aef7f3b2a1",
"sequence": 0,
"amount": "66.92399",
"price": "0.9803",
"executedAt": "1970-01-01T00:00:00Z",
"createdAt": "2019-06-06T10:26:15.867777Z",
"updatedAt": "2019-06-06T10:26:24.559195Z"
},
{
"id": 256,
"transactionID": 243,
"transactionHash": "0x146fe478b2f81b538f95787682b75b2e13ff71a1d243eec676bea33891cafe28",
"status": "successful",
"marketID": "HOT-DAI",
"maker": "0x126aa4ef50a6e546aa5ecd1eb83c060fb780891a",
"taker": "0xf8950488d3a850c89f1e68976ab0e883e6274bb4",
"takerSide": "buy",
"makerOrderID": "0xddd87c98ad8ff45778a34f5160fa84607126422d019988b3f587a19a47f06c07",
"takerOrderID": "0xa7e33d613f851457848aa3022335608dacce9551166da0774baa0866b72a26e2",
"sequence": 0,
"amount": "66.26463",
"price": "0.9803",
"executedAt": "1970-01-01T00:00:00Z",
"createdAt": "2019-06-06T10:26:15.510964Z",
"updatedAt": "2019-06-06T10:26:24.383959Z"
},
....
http://localhost:3001/markets/HOT-DAI/candles?from=1557189049&to=1559817049&granularity=300
{
"status": 0,
"desc": "success",
"data": {
"candles": [
]
}
}
error log
{"time":"2019-05-15T04:19:27.959111553Z","level":"INFO","prefix":"-","file":"orderbook.go","line":"327","message":"plItem is nil when RemoveOrder"}
ddex.io using same version or a different one ?
Lets say I want to start a decentralized exchange using HydraProtocol SDK. If i set it up under my website, can the users see trade histories that is made in DDex.io ?
Also is there any documentation to push it to a hosting provider?
Hello. Can i know how to change the name of the website i create using your platform ?
Can we add transaction pairs such as USD and euro
Hello guys I would like to take some questions.
I did this tutorial correctly:
"Launch a DEX on your local server
Once you have docker installed, open up your terminal and enter the following commands:
Clone the git repository
git clone https://github.com/hydroprotocol/hydro-scaffold-dex.git
Change your working directory
cd hydro-scaffold-dex
Build and Launch your Hydro Relayer
docker-compose pull && docker-compose up -d
This step downloads all of the required environments and files for the standard Hydro Relayer. After all of the files are prepared, it will launch the relayer to your local server (localhost: 3000). It could take a few minutes to complete. "
But when I send the command "docker-compose pull && docker-compose up -d" in CMD and go to localhost: 3000 me from the white screen, only the icon and the name Hydro SDK Web in the tab appears, the rest is all white, at Docker the hydro-scaffold-dex-makerhydroprotocolio / amm-bots is restarting and sometimes it appears as EXITED (2).
LOG: /amm-bots/main.go:16 + 0x70
panic: Get http: // api: 3001 / markets: dial tcp 172.18.0.9:3001: connect: connection refused
and hydro-scaffold-dex-pgpostgres
RESTARTING
LOG: https://www.postgresql.org/docs/current/auth-trust.html
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD = password" on "docker run".
You may also use "POSTGRES_HOST_AUTH_METHOD = trust" to allow all
connections without a password. This is * not * recommended.
See PostgreSQL documentation about "trust":
I try to run the dex on mainnet on my mac via docker-compose -f docker-compose-mainnet.yaml up
(with updated addresses in docker-compose-mainnet.yaml
) but admin cli give me offline status for every services except web.
docker-compose exec admin sh
/ # hydro-dex-ctl status
{
"data": {
"api": "offline",
"engine": "offline",
"launcher": "offline",
"watcher": "offline",
"web": "online",
"websocket": "offline"
},
"desc": "success",
"status": 0
}
Which is strange as I can post datas to admin and api ports via postman.
On the other side, when I try to add a pair via CLI I also receive an error :
/ # hydro-dex-ctl market new MKR-USDT \
> --baseTokenAddress=0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2 \
> --quoteTokenAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7
cannot find Symbol by address 0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2 on chain
It seem this is the issue most of us are facing using this deploying the dex - pls, kindly help us fix this.
Cannot find Symbol by address on chain. I got this error when try to create new market. How can I fix this ?
I get an error when trying to "make api". I think its related to my go env variables or path being incorrect. Can anyone shed some light on this? I have uploaded a photo of the error below.
Thank you.
Rachel
when I try to create a market for HOT-BOMB using the following code:
/ # hydro-dex-ctl market new HOT-BOMB
--baseTokenAddress=0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218
--quoteTokenAddress=0x1C95b093d6C236d3EF7c796fE33f9CC6b8606714
cannot find Symbol by address 0x1c95b093d6c236d3ef7c796fe33f9cc6b8606714 on chain
I get the error that the hydrosdk cannot find the symbol by address on chain.
I get this same error no matter what erc20 token I try to add.
Is there any documentation or something like swagger for the backend API endpoints?
The lower end "Home" versions of Windows don't support Hyper-V, so Docker works by installing VirtualBox and running everything in a VM instead. This generally works fine, however one side effect is that docker is not able to bind to localhost, and instead requires you to point to the VirtualBox ip, typically 192.168.99.100. All of the services are accessible through this IP, however the docker-compose.yml contains environment variables which tell the web ui how to connect to the backend, and it hardcodes the urls to http://localhost:{PORT}.
I see two potential solutions to fix this:
Stop hardcoding localhost in the docker-compose. Initial research suggests this adds a bit of complexity and will likely mean we need to create a shell script that queries for the correct IP address and passes it along itself as an environment variable when running docker-compose up. While this is a pain, having a CLI to handle common commands (start | log | stop) may be useful anyway, and we may need to do this once we allow connections to ropsten/mainnet.
There is a workaround for VirtualBox, specifically you have to add port forwarding rules to the image that is being used by Docker (usually default?). You can modify it in the UI but that's a bit of a pain since you need to expose 3000, 3001, 3002, and 8545. According to this article, it can be done via command line, so perhaps we can create a shell script to set it up for Windows 10 Home users: https://stackoverflow.com/questions/35372399/connect-to-docker-machine-using-localhost
docker-compose says "no such files" when run. Does this work anymore?
Tokens listed on the exchange are supposed to have a direct link. e.g https://example.com/trade/WETH-DAI but the sdk only has the default homepage https://example.com for all tokens. Please can this be fixed? It's it's available do tell how i can fix it. Thank you
I created new market pair with my own 2 erc20 tokens but when I created market pair on localnet then market pair is visible but in token section there is no token by which I created market pair.
After running docker-compose pull && docker-compose up -d
i tried to check out the exchange by visiting http://165.22.121.237:3000 but i only see blank page, what do i do to see exchange?
I am using the command docker-compose -f docker-compose-mainnet.yaml up -d
to start the exchange.
I have the NIO-BNB pair added according to the image:
When I try to run the command hydro-dex-ctl market approve NIO-BNB
the following error occurs:
{
"desc": "Error -32602 (invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type hexutil.Bytes)",
"status": -1
}
The same when I try to publish by running the command hydro-dex-ctl market publish NIO-BNB
Can anyone help?
USDT借贷利率飙升到60%?这让人怎么借?才用了五六天就要赶紧还掉,加上手续费等,实际利率接近30%以上,谁还会再借?
Hi Team,
We have integrated Hydro SDK Wallet in our product https://www.exnomy.com, we are facing a weird problem in the wallet SDK where the browser wallet is giving different address when we run it locally and when we either build a docker and run locally or deploy it to AWS or even directly deploy the project to s3.
Sample Account Details: (Import wallet in Browser wallet)
12 words phrases
museum hen train couple aerobic inquiry enrich inform endorse across traffic audit
Password: Ranking@new1
Now if I run the project locally we get: 6dcd4ae2a41255f9dfb78fcd9b77a95f07eb3363
And on deploying the same code we get : 0540915cff69c80a59ab403a80a903bac8381f96
Note we have removed the prefix '0x'
PFA of the test I have done, I see the same 12 words and password going to SDK I have taken
a logs screen shot.
We need a doc or docker-compose file to describe how to start a hydro relayer on other envs, such as ropsten and mainnet.
hydro-dex-ctl market new CVRL-WETH \ --baseTokenAddress=0x448C0a7fb16D8CA04D1142D4D12D61672697B173 \ --quoteTokenAddress=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
1 - I'm not able to add new pairs
erro: panic: invalid character 'a' looking for beginning of value
panic: invalid character 'a' looking for beginning of value
goroutine 1 [running]:
github.com/HydroProtocol/hydro-sdk-backend/sdk/ethereum.callContract(0xc00000e02
0, 0xc000014240, 0x2a, 0x992a3c, 0xa, 0xc0000ac960, 0x4dffd3)
/go/pkg/mod/github.com/!hydro!protocol/[email protected]/sdk/eth
ereum/erc20.go:217 +0x148
github.com/HydroProtocol/hydro-sdk-backend/sdk/ethereum.(*Erc20Service).Symbol(0
xc00000e020, 0xc000014240, 0x2a, 0x2a, 0x1, 0x0, 0x7f871b717000)
/go/pkg/mod/github.com/!hydro!protocol/[email protected]/sdk/eth
ereum/erc20.go:86 +0x5e
github.com/HydroProtocol/hydro-scaffold-dex/backend/admin/cli.(*Admin).NewMarket
(0xc0004f0000, 0x7ffc813e1c88, 0x9, 0xc000014240, 0x2a, 0x7ffc813e1ce4, 0x2a, 0x
0, 0x0, 0x0, ...)
/app/admin/cli/admin.go:119 +0xd6
github.com/HydroProtocol/hydro-scaffold-dex/backend/admin/cli.NewDexCli.func2(0x
c0004de420, 0xb2b900, 0x33)
/app/admin/cli/cli.go:193 +0x233
github.com/urfave/cli.HandleAction(0x8f81c0, 0xc0004fa000, 0xc0004de420, 0xc0000
10100, 0x0)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:490 +0xc8
github.com/urfave/cli.Command.Run(0x99043a, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x994a
00, 0xf, 0x0, ...)
/go/pkg/mod/github.com/urfave/[email protected]/command.go:210 +0x9a2
github.com/urfave/cli.(*App).RunAsSubcommand(0xc0004da340, 0xc0004de160, 0x0, 0x
0)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:379 +0x7ef
github.com/urfave/cli.Command.startApp(0x991449, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0
x99dbb4, 0x20, 0x0, ...)
/go/pkg/mod/github.com/urfave/[email protected]/command.go:298 +0x808
github.com/urfave/cli.Command.Run(0x991449, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x99db
b4, 0x20, 0x0, ...)
/go/pkg/mod/github.com/urfave/[email protected]/command.go:98 +0x1250
github.com/urfave/cli.(*App).Run(0xc0004da1a0, 0xc000066180, 0x6, 0x6, 0x0, 0x0)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:255 +0x687
main.main()
/app/cli/admincli/main.go:12 +0x4f
2 - How to remove pairs
3 - How to receive all tx fee in my admin wallet?
Getting the following errors:
hydro-scaffold-dex-launcher | Error relocating /bin/launcher: fcntl64: symbol not found
hydro-scaffold-dex-engine | Error relocating /bin/engine: fcntl64: symbol not found
hydro-scaffold-dex-admin-api | Error relocating /bin/adminapi: fcntl64: symbol not found
hydro-scaffold-dex-watcher | Error relocating /bin/watcher: fcntl64: symbol not found
hydro-scaffold-dex-api | Error relocating /bin/api: fcntl64: symbol not found
Logs attached:
log.txt
After running all the necessary commands on google cloud platform i am unable to access the port 3000 on which the app should suppose to run. Please help to resolve this issue
I am unable to customize the frontend of the Hydro SDK Web. I tried changing the hydro logo to my logo, the header title to mine and some other changes but it doesn't reflect the changes. Any changes I make using an editor doesn't reflect on the live SDK. Please help
When trying to run on react I am having issues getting the graphic up in the browser, nothing is coming up on deploying it. It says complied successfully, but nothing is coming up. I tried uninstalling, do I need to docker everything first like in the opening read.me? Maybe I am missing something?
Docker is exposing an unsecured redis service (port 6379) to the outside. Most of the images are exposing ports to the world outside Docker when this may not be necessary. This is a security issue if not using a firewall.
Recommend changing ports to expose in docker-compose.yaml for images that don't need to be accessed from outside Docker.
image: redis:5.0
expose:
- 6379
hydro-box-dex-launcher | Response: {"id":1,"jsonrpc":"2.0","result":"0x85a8b783ba3e8fdb301dace060cc5994d8c301404c6d504e01b34a2f9c14c909","error":{"message":"VM Exception while processing transaction: revert SUB_ERROR","code":-32000,"data":{"0x85a8b783ba3e8fdb301dace060cc5994d8c301404c6d504e01b34a2f9c14c909":{"error":"revert","program_counter":1224,"return":"0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000095355425f4552524f520000000000000000000000000000000000000000000000","reason":"SUB_ERROR"},"stack":"o: VM Exception while processing transaction: revert SUB_ERROR\n at Function.o.fromResults (/app/ganache-core.docker.cli.js:10:82299)\n at /app/ganache-core.docker.cli.js:47:151756\n at /app/ganache-core.docker.cli.js:47:128087\n at b (/app/ganache-core.docker.cli.js:47:127744)\n at /app/ganache-core.docker.cli.js:47:127797\n at t.default (/app/ganache-core.docker.cli.js:52:259867)\n at /app/ganache-core.docker.cli.js:47:128711\n at _.n.emit (/app/ganache-core.docker.cli.js:61:1063005)\n at /app/ganache-core.docker.cli.js:61:1701802\n at /app/ganache-core.docker.cli.js:61:1701825\n at /app/ganache-core.docker.cli.js:61:351481\n at /app/ganache-core.docker.cli.js:2:69007\n at i (/app/ganache-core.docker.cli.js:2:84062)\n at /app/ganache-core.docker.cli.js:2:64530\n at process._tickCallback (internal/process/next_tick.js:61:11)","name":"o"}}}
hydro-box-dex-launcher |
hydro-box-dex-launcher | time="2019-05-06T04:01:28Z" level=info msg="Send Tx failed, launchLog ID: 5, err: Error -32000 (VM Exception while processing transaction: revert SUB_ERROR)"
hydro-box-dex-launcher | time="2019-05-06T04:01:28Z" level=info msg="launcher stop!"
hydro-box-dex-launcher | panic: Error -32000 (VM Exception while processing transaction: revert SUB_ERROR)
hydro-box-dex-launcher |
hydro-box-dex-launcher | goroutine 1 [running]:
hydro-box-dex-launcher | main.Run(0xc000513f38, 0xacc4a0)
hydro-box-dex-launcher | /app/cli/launcher/main.go:95 +0x81d
hydro-box-dex-launcher | main.run(0xc000080058)
hydro-box-dex-launcher | /app/cli/launcher/main.go:33 +0x26a
hydro-box-dex-launcher | main.main()
hydro-box-dex-launcher | /app/cli/launcher/main.go:116 +0x22
...
hydro-box-dex-launcher exited with code 2
Questions from dforce:
How to add new markets?
How to change fee rates?
Right now we hardcode the database to be sqlite3, we should allow for a range of options to be defined by an environment variable and include drivers as necessary.
Please help , is it possible to run this thing on tron? why publish contracts for tron. if you dont support it?
After compiling the source code with docker-compose -f docker-compose-mainnet-source.yaml up
i tried to connect to http://My.ip/3000 and i get a blank layout
and this is what it says also
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.