just some vyper smart contracts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
fb_abi.json
fb_bytecode.bin
fb_out.json
fizzbuzz.vy
fizzbuzz_deploy.py
fizzbuzz_original.py
fizzbuzz_run.py
requirements.in
requirements.txt
test.vy
test_abi.json
test_bytecode.bin
test_deploy.py
test_out.json
test_run.py

README.md

Vyper Testing

just some Vyper smart contracts

The FizzBuzz Smart Contract

Compile the contract

Export the ABI

vyper -f abi fizzbuzz.vy > fb_abi.json 

Export the Bytecode

vyper -f bytecode fizzbuzz.vy > fb_bytecode.bin

Deploy and Run

Deploy to local Ganache-cli

python fizzbuzz_deploy.py 

Run the doit() function in the contract, display the transaction events

python fizzbuzz_run.py 

The Test Contract [Change the Number]

Compile the contract

Export the ABI

vyper -f abi test.vy > test_abi.json 

Export the Bytecode

vyper -f bytecode test.vy > test_bytecode.bin

Deploy and Run

Deploy to local Ganache-cli

python test_deploy.py 

Run the function, and change the number in the contract

python test_run.py 

OLD

FizzBuzz Smart Contract I originally wrote and deployed, but doesnt work as the events are separated. https://rinkeby.etherscan.io/address/0x6e905504efab2a9123766ce4854c3792def8bcff