dhedge / dhedge-public-bot

Bot for automated trading on dHedge
4 stars 2 forks source link

.env configuration #1

Open dorienh opened 3 years ago

dorienh commented 3 years ago

I have a naive question about the .env files.

PROVIDER="https://kovan.infura.io/v3/your-infura-project-id"
MNEMONIC="your-trader-account-mnemonic-seed"
POOL_ADDRESS="your-pool-address"
ACCOUNT_ID="0"
FACTORY_ADDRESS="0xc3F42F64AD9A7C55D4e5970459f8CE8069456408"
GAS_ESTIMATE_PADDING="20"

Do I leave provider to what it's set at? (what is this?) pool address is part of the url? https://app.dhedge.org/manager/0xc304d6f59a5717eb0ada6fc6a8256221161c3359

What is the mnemonic? The wallet mnemonic?

Finally, does account_id matter?

Sorry for these many questions!

dorienh commented 3 years ago

So I found out some info in the example and via Discord, but my main question now:

PROVIDER="https://kovan.infura.io/v3/your-infura-project-id" ==> do I need to create an infura project (do you have any instructions for that, it's slightly overwhelming)

hochbruj commented 3 years ago

Yes, you need an infura project to interact with an ethereum node. It's pretty easy and free: https://blog.infura.io/getting-started-with-infura-28e41844cc89/ Let me know if you any more questions. Happy to help!

Am Mi., 16. Juni 2021 um 12:19 Uhr schrieb Dorien @.***

:

So I found out some info in the example and via Discord, but my main question now:

PROVIDER="https://kovan.infura.io/v3/your-infura-project-id" ==> do I need to create an infura project (do you have any instructions for that, it's slightly overwhelming)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dhedge/dhedge-public-bot/issues/1#issuecomment-861984490, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4SRIEFPTIODLGJZLJE33TTAC3HANCNFSM46U6QTBA .

dorienh commented 3 years ago

Thanks for the quick reply. Setting up the Infura project.

Do I need / or can I use: PROJECT SECRET REQUIRED and JWT PUBLIC KEY

Or do I leave those unchecked? Thanks!

On Wed, 16 Jun 2021 at 11:15, Jan Hochbrueckner @.***> wrote:

Yes, you need an infura project to interact with an ethereum node. It's pretty easy and free: https://blog.infura.io/getting-started-with-infura-28e41844cc89/ Let me know if you any more questions. Happy to help!

Am Mi., 16. Juni 2021 um 12:19 Uhr schrieb Dorien @.***

:

So I found out some info in the example and via Discord, but my main question now:

PROVIDER="https://kovan.infura.io/v3/your-infura-project-id" ==> do I need to create an infura project (do you have any instructions for that, it's slightly overwhelming)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/dhedge/dhedge-public-bot/issues/1#issuecomment-861984490 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAJ4SRIEFPTIODLGJZLJE33TTAC3HANCNFSM46U6QTBA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dhedge/dhedge-public-bot/issues/1#issuecomment-862005115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEES6ZEARV6AUA6PTE5XT3TTAJM7ANCNFSM46U6QTBA .

-- Dorien Herremans, PhD Assistant Professor, ISTD & DAI Director, SUTD Game Lab Lead, AMAAI (Audio, Music and AI Lab) http://dorienherremans.com

Singapore University of Technology and Design Information Technology and Design Pillar Office 1.502-18

hochbruj commented 3 years ago

No, you don't need this settings

Am Mi., 16. Juni 2021 um 13:33 Uhr schrieb Dorien @.***

:

Thanks for the quick reply. Setting up the Infura project.

Do I need / or can I use: PROJECT SECRET REQUIRED and JWT PUBLIC KEY

Or do I leave those unchecked? Thanks!

On Wed, 16 Jun 2021 at 11:15, Jan Hochbrueckner @.***> wrote:

Yes, you need an infura project to interact with an ethereum node. It's pretty easy and free: https://blog.infura.io/getting-started-with-infura-28e41844cc89/ Let me know if you any more questions. Happy to help!

Am Mi., 16. Juni 2021 um 12:19 Uhr schrieb Dorien @.***

:

So I found out some info in the example and via Discord, but my main question now:

PROVIDER="https://kovan.infura.io/v3/your-infura-project-id" ==> do I need to create an infura project (do you have any instructions for that, it's slightly overwhelming)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/dhedge/dhedge-public-bot/issues/1#issuecomment-861984490

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAJ4SRIEFPTIODLGJZLJE33TTAC3HANCNFSM46U6QTBA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/dhedge/dhedge-public-bot/issues/1#issuecomment-862005115 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABEES6ZEARV6AUA6PTE5XT3TTAJM7ANCNFSM46U6QTBA

.

-- Dorien Herremans, PhD Assistant Professor, ISTD & DAI Director, SUTD Game Lab Lead, AMAAI (Audio, Music and AI Lab) http://dorienherremans.com

Singapore University of Technology and Design Information Technology and Design Pillar Office 1.502-18

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dhedge/dhedge-public-bot/issues/1#issuecomment-862010984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4SRLI2CQELNTMZ7RFSWDTTALSLANCNFSM46U6QTBA .

dorienh commented 3 years ago

Thanks I believe I figured it out.