Ethereum Boilerplate Questions

Hello there! Appreciate the help on this forum :slight_smile:
What’s the purpose of the data folder in the boilerplate? I understand it’s like a local blockchain data for blocks? When’s that used and how?

Hi @rost

It’s a folder for temporary files of the truffle. You don’t need to use/interact with them.

Can they be deleted, then? And how are they related to Truffle? Are they created when deploying a contract? And if so, why are they not, say, Truffle/Data?

It creates automatically. You can delete it, but after you run local chain yarn devchain it’ll be created again

1 Like

it’s a question for the Truffle team :smile:

1 Like

Does the Dex work with the 1inch plugin on the Ropsten Network?

No, it supports only mainnets. 1inch itself doesn’t work on tesnets

1 Like

Thank you sir. I was able to create my logo as an SVG and upload to the boilerplate. Seriously… you guys blow me away. Truly an amazing group of developers and human beings allowing us to utilize your brilliance. Looking forward to learning more from Moralis!

2 Likes

Hey fellas… I am making it to this stage as well… running on my local host and everything is fine. Opening VSC terminal to the public folder in the boilerplate and running npx moralis-admin-cli deploy and it opens up a blank screen https://wtr3qy8dtt8m.usemoralis.com/. Should I be running the cli deploy from a different folder? Thank you all!

Hey @bolfcoin

You need to npm run build and then you need to upload the build folder, not public

Hey @Yomoo,

one question concerning the boilerplate code. Based on that I did my own version and deployed that to moralis server. When I first open the link it works I get this……

But when I click on reload I get this.


What did I wrong? Can you help me please?

Server URL is: https://pabqesk4xtqx.usemoralis.com:2053/server

Best regards

Henning

Hey @henmeh

Does it work correctly on localhost?

Yes. Locally everything works fine. I searched a little bit by myself and found some stuff concering hashHistory but I am not sure what to do with that.

Okay got it!! Thank you my friend!

Hello, I am currently working on a Next.js Ethereum boilerplate
[ported from ethereum-boilerplate/ethereum-boilerplate]

I however keep getting this error. I believe it is related to Ant design antd package, but I am having a hard time trying to fix it. I would also appreciate feedback on the currently deployed version.

Github Repo: https://github.com/davidparseen/ethereum-nextjs-boilerplate
Github Page: https://davidparseen.github.io/ethereum-nextjs-boilerplate/ (edited)

Error:

Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect 
should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.
[17:01]
at Overflow (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\rc-overflow\lib\Overflow.js:42:32)
    at InheritableContextProvider (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\rc-menu\lib\context\MenuContext.js:40:23)
    at Menu (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\rc-menu\lib\Menu.js:78:32)
    at InternalMenu (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\antd\lib\menu\index.js:73:37)
    at Menu (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\antd\lib\menu\index.js:166:37)
    at MenuItems (webpack-internal:///./src/components/MenuItems.jsx:21:81)
    at header
    at Basic (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\antd\lib\layout\layout.js:78:25)
    at Header (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\antd\lib\layout\layout.js:61:37)
    at section
    at BasicLayout (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\antd\lib\layout\layout.js:93:34)
    at Layout (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\antd\lib\layout\layout.js:61:37)
    at BaseLayout (webpack-internal:///./src/components/BaseLayout.jsx:64:23)
    at MoralisProvider (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\react-moralis\lib\index.cjs.js:4159:23)
    at Application (webpack-internal:///./src/pages/_app.jsx:25:24)
    at InnerApp
    at StyleRegistry (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\styled-jsx\dist\stylesheet-registry.js:231:34)
    at AppContainer (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\next\dist\server\render.js:339:29)
    at AppContainerWithIsomorphicFiberStructure (C:\Users\Parseen\ethereum-nextjs-boilerplate\node_modules\next\dist\server\render.js:369:57)

Hi @davidparseen!

Awesome, great job! Let me check the repo

1 Like

@davidparseen How do I reproduce this error? Because for it works ok

Happens when I visit the /quickstart route, after running yarn dev.
I have tried some fixes from https://stackoverflow.com/questions/58070996/how-to-fix-the-warning-uselayouteffect-does-nothing-on-the-server.

but I haven’t been able to use one successfully.

1 Like

If I build something could I deploy it to a network not listed as supported? I’m interested in Flare Network which is Eth EVM compatible and forked Avalanche consensus.

You could add any Network. But you wont have moralis functionalities if the network is not supported from morlalis, such as showing all NFTs, ERC20 Balances/Transfers and so on