Skip to content

Instantly share code, notes, and snippets.

@coding-ai
coding-ai / hello_world.vy
Created November 16, 2021 17:03
Hello World Vyper Application
greeting: public(String[100])
@external
def __init__():
self.greeting = "Hello World!"
@external
def greet() -> String[100]:
return self.greeting
@coding-ai
coding-ai / crud.vy
Created November 16, 2021 17:02
CRUD Vyper Application
struct User:
name: String[100]
created: uint256
users: HashMap[int128, User]
nextUserId: int128
@external
def __init__():