ndavd

2.1K posts

ndavd banner
ndavd

ndavd

@0xndavd

fullstack dev @escher_fi; building on ethereum; https://t.co/SCCotcjcNZ;

on-chain Katılım Mayıs 2021
347 Takip Edilen206 Takipçiler
Sabitlenmiş Tweet
ndavd
ndavd@0xndavd·
The idea is to have a singleton HTML registry where protocols could set minimalistic versions of their dapps. Users can fetch and run it locally in one command. It provides some safety when domains get hijacked and users don't know which urls are safe. github.com/ndavd/html-reg…
ross.wei@z0r0zzz

zSwap: the frontend lives in contract bytecode at 0xFd38f20E6739fB7362Ab49F9248C8AbC90A9882e Run locally: cast call 0xFd38f20E6739fB7362Ab49F9248C8AbC90A9882e 'html()(string)' -r eth.llamarpc.com | jq -r . > zSwap.html && python3 -m http.server 8000 That's the tweet.

English
4
3
20
2.8K
ndavd
ndavd@0xndavd·
The idea is to have a singleton HTML registry where protocols could set minimalistic versions of their dapps. Users can fetch and run it locally in one command. It provides some safety when domains get hijacked and users don't know which urls are safe. github.com/ndavd/html-reg…
ross.wei@z0r0zzz

zSwap: the frontend lives in contract bytecode at 0xFd38f20E6739fB7362Ab49F9248C8AbC90A9882e Run locally: cast call 0xFd38f20E6739fB7362Ab49F9248C8AbC90A9882e 'html()(string)' -r eth.llamarpc.com | jq -r . > zSwap.html && python3 -m http.server 8000 That's the tweet.

English
4
3
20
2.8K
ndavd retweetledi
ross.wei
ross.wei@z0r0zzz·
New ERC: Contract-Hosted Application HTML Contract serves own dapp via html(). Wallet fetches via same call it already trusts, so UI lives in same channel as the bytecode. Live demo: …888741B254d37e1b27128AfEAaBC.w4eth.io < Make Apps Decentralized Again >
ross.wei tweet mediaross.wei tweet media
English
12
11
73
2.9K
ndavd
ndavd@0xndavd·
Some of my latest contributions to Foundry which are already available on the latest nightly version: - expectAndMockCall — helper for expectation and mocking - console.table — print tabular output in console - ignored_error_codes_from — ignore error codes from matching paths
English
0
0
5
113
ndavd retweetledi
ross.wei
ross.wei@z0r0zzz·
publishing and running a website on ethereum is much cheaper and more secure than using vercel
ndavd@0xndavd

@z0r0zzz And uploading the whole dapp to the HTML registry on mainnet costed just 3.25 USD

English
2
5
39
2.3K
ndavd
ndavd@0xndavd·
@z0r0zzz And uploading the whole dapp to the HTML registry on mainnet costed just 3.25 USD
English
1
0
5
2.4K
ross.wei
ross.wei@z0r0zzz·
zSwap can be fetched via the standalone onchain UI, 0x000000000A4A4F895734cF70700b6F84AadbcA6C by calling html() or request() via ERC-5219 It can also be fetched through the HTML registry deployed by @0xndavd, and is keyed to the same router used by the UI, html(ROUTER)
ndavd@0xndavd

The idea is to have a singleton HTML registry where protocols could set minimalistic versions of their dapps. Users can fetch and run it locally in one command. It provides some safety when domains get hijacked and users don't know which urls are safe. github.com/ndavd/html-reg…

English
2
1
22
1.3K
ndavd
ndavd@0xndavd·
@z0r0zzz Thaanks, yours too, not sure how you were able to mine those many zeroes haha
English
0
0
1
11
ross.wei
ross.wei@z0r0zzz·
@0xndavd on it :~) nice choice of vanity address btw
English
2
0
1
22
ross.wei
ross.wei@z0r0zzz·
@0xndavd done. I was able to actually call into the registry through the same router that plugs into the onchain UI. Cool stuff.
ross.wei tweet media
English
1
0
1
21
ndavd
ndavd@0xndavd·
@z0r0zzz can you try out your zSwap?
English
1
0
1
76
ndavd
ndavd@0xndavd·
It's on mainnet 0xFa11bacCdc38022dbf8795cC94333304C9f22722
English
1
0
0
93
ndavd
ndavd@0xndavd·
@z0r0zzz HTMLRegistry has been deployed BTW checkout the README
English
0
0
1
27
ross.wei
ross.wei@z0r0zzz·
@0xndavd it just works. I think there is whole new kind of programming around 'perma dapps' - especially since in almost all cases, dapps are just an input form for swap or deposit, and can have their fallback versions as single file html source that can be served by users on own machines
English
3
0
9
222
ndavd
ndavd@0xndavd·
@tritlo 34Hz actually sounds pretty decent
English
1
0
1
85
Matti Palli 🧙‍♂️
e-ink is so good for being able to enjoy the sun without sacrificing your eyes
Matti Palli 🧙‍♂️ tweet media
English
168
296
8.9K
432.8K
ndavd
ndavd@0xndavd·
@0xngmi It's going to come back stronger
English
0
0
1
67
0xngmi
0xngmi@0xngmi·
I see ppl calling for the death of defi They're wrong DeFi is gonna take a hit but it will not die, current situation is completely recoverable with protocol treasuries and loans I believe in DeFi and I'm gonna keep working to make it succeed🦙
English
140
109
1.3K
50.6K
ndavd
ndavd@0xndavd·
Listen for HTMLRegistry__HtmlSet events to track updates. If in doubt that the frontend might be compromised, one can call latestVersion(author,target) at a past block to get the trusted past version and use it in html(author,target,version).
English
0
0
1
100
ndavd
ndavd@0xndavd·
If the contract is not ownable (or uses another interface, such as role-based ownership) and has no way to call the registry, then it's recommended to use a trusted author and target and mention that in the protocol's documentation, calling html(author,target).
English
1
0
1
120