Content pfp
Content
@
https://opensea.io/collection/evm-6
0 reply
0 recast
2 reactions

typeof.eth ๐Ÿ”ต pfp
typeof.eth ๐Ÿ”ต
@typeof.eth
Hi, I made a library that spins up a front-end for you to interact with your contracts while in development. The UI is generated from your compiled contract artifacts. Supports Hardhat and Foundry. Demo: https://www.youtube.com/watch?v=s5IMzkf2uak Package: https://www.npmjs.com/package/@type_of/contract-gui
4 replies
4 recasts
27 reactions

Andrei O. pfp
Andrei O.
@andrei0x309
There is a lot to unpack here. Literally, you committed 400+ files totaling 280+MB of .next cache to the pkg. Also, block explorers support uploading custom ABIs you can probably make a command to auto-upload and have a UI. IMO for contract development testing scripts are the preferred way of interaction.
1 reply
0 recast
0 reaction

typeof.eth ๐Ÿ”ต pfp
typeof.eth ๐Ÿ”ต
@typeof.eth
I mean, yeah, the library is a built Next.js project, so that's expected. It's meant for local development so file size shouldn't matter IMO. Also, since it's primarily for local dev, block explorers wouldn't work. > testing scripts are the preferred way of interaction IMO, having options is good.
1 reply
0 recast
1 reaction

Andrei O. pfp
Andrei O.
@andrei0x309
No .next folder should never be included in npm pkg is meant to only exist on local dev machine. Use .npmignore file to ignore that folder for your next version of the pkg.
1 reply
0 recast
0 reaction

typeof.eth ๐Ÿ”ต pfp
typeof.eth ๐Ÿ”ต
@typeof.eth
Lol, I don't think this is a yes or no thing, it's a choice. This package is the built Next.js project and a bin script to initialize the server. I chose to build the Next.js project to prioritize ease of use. I'll think about doing it differently but it's not a super high priority since the project currently works.
2 replies
0 recast
0 reaction

Andrei O. pfp
Andrei O.
@andrei0x309
The ReadMe doesn't mention how to use the NPM pkg.Why upload a public pkg if the use info is missing? The average size of NPM pkg is 416KB, a single version of your pkg alone is 1.1-e5 of all NPM which has 2.1M pkgs. IMO this even breaks TOS under Acceptable Content, NPM is not a GP DB, is meant for usable libs.
1 reply
0 recast
0 reaction

typeof.eth ๐Ÿ”ต pfp
typeof.eth ๐Ÿ”ต
@typeof.eth
I don't know what you mean by the first thing, there's a pretty detailed README. R.e. the rest, I don't really wanna keep talking about this. I'll think about only including the source in the future.
2 replies
0 recast
1 reaction