testnet icon indicating copy to clipboard operation
testnet copied to clipboard

Sample contracts

Open lrettig opened this issue 6 years ago • 10 comments

child of #19

  • [ ] rust
  • [ ] assemblyscript
  • [ ] C++

From ewasm roadmap:

Implement ENS registar / resolver in C Implement RSA in C (with or without using the modexp contract) Implement Smartpool.io (which basically does an Ethash verification)

lrettig avatar Jun 01 '18 17:06 lrettig

Update from today's meeting:

  • Besides ERC-20 example, are there ideas of other examples we can do?
  • Some precompiles e.g. Blake hash
  • Just make sure to exclude anything that doesn’t fit in the block size limit
  • Blake, zk-snarks
  • fixed-point arithmetic exponentiation (@ehildenb)

lrettig avatar Jun 18 '18 20:06 lrettig

@lrettig Actually ENS resolver in AssemblyScript could be a good idea :)

axic avatar Jul 25 '18 01:07 axic

Sure. Let's get some basic stuff working first :)

lrettig avatar Jul 25 '18 16:07 lrettig

The ENS resolver is more basic than a multisig wallet, btw :)

axic avatar Jul 25 '18 16:07 axic

Is there an existing contract I can take a look at?

Sent via Superhuman iOS ( https://sprh.mn/[email protected] )

On Wed, Jul 25 2018 at 12:40, < [email protected] > wrote:

The ENS resolver is more basic than a multisig wallet, btw :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub ( https://github.com/ewasm/testnet/issues/22#issuecomment-407818965 ) , or mute the thread ( https://github.com/notifications/unsubscribe-auth/ADKbNF9Hpvx9vTvZvQuJ9X64prDmgoxcks5uKJ9pgaJpZM4UXE8O ).

lrettig avatar Jul 25 '18 18:07 lrettig

Suggested reading:

  • http://docs.ens.domains/en/latest/introduction.html#ens-in-5-minutes
  • http://docs.ens.domains/en/latest/implementers.html#writing-a-resolver
  • https://github.com/ensdomains/ens/tree/master/contracts

axic avatar Jul 25 '18 21:07 axic

@lrettig @axic Can we add Nim to this bucket list? We guys are happy to help!!

0zAND1z avatar Nov 16 '18 13:11 0zAND1z

This issue is probably not very useful in terms of project management, better to have individual issues for each of these ideas.

@kggp1995 please create an issue for Nim.

axic avatar Nov 16 '18 21:11 axic

#122 now tracks Nim Contracts on eWASM

0zAND1z avatar Nov 17 '18 05:11 0zAND1z

CF also https://github.com/ewasm/wrc20-examples/issues/1

lrettig avatar Nov 27 '18 11:11 lrettig