Skip to main content

Show HN: Degen Raffle – A raffle built on Ethereum https://ift.tt/2UTVCsP

Show HN: Degen Raffle – A raffle built on Ethereum Hey HN! I've been working on this idea off and on for a few weeks now and I figured it was time to show it to folks before continuing to build it out any further (hence the terrible UI). The idea is this: A smart contract that allows players to win the tokens in the contract in proportion to the number of tokens they've depositing into the smart contract. For example, if you and another player enter a round with 1 token each, you both have a 50/50 shot of winning the other's token. Here's the catch. Anyone can end the round at any moment, even people who haven't deposited any tokens. The contract is currently deployed to Rinkeby and I currently hold all of the Degen Raffle Tokens (DRT) needed to enter the raffle. If you're interested in playing, let me know and I'll send you a few million. https://ift.tt/3zpITx9 August 28, 2021 at 11:11PM

Comments

Popular posts from this blog

Show HN: TypeScript query builder with full type inference https://ift.tt/xZp9HOm

Show HN: TypeScript query builder with full type inference Hey HN! Colin here - a TypeScripter, open sourcer, and engineer at EdgeDB. As the creator of Zod and tRPC, I'm interested in designing tools/APIs that use type inference and generics to make life easier for devs. This query builder represents another step in that direction. We set out to build an EdgeQL query builder that can express queries of arbitrary complexity (EdgeQL has feature parity with SQL, roughly) and infer the static type of the query result. We introspect the database and generate a schema-aware client that represent any query, including ones that use built-in functions, operators, string/array/tuple indexing, aggregations, conditionals, type casting, subqueries, computed properties, etc—things most ORMs can’t represent. This post mostly discusses the API design, which I think will be interesting regardless of familiarity with EdgeQL. I’d love to see some of these ideas bleed into future generations of TypeSc...