Loading .ava

.ava
Back to Home
Code Converter

.ava to Any Language

Convert your .ava programs to Solidity, Cairo, or Rust.

.ava Program

Input

var message = "Welcome!"
var tips = []
var total_donated = 0

fun setMessage(newMessage)
  var message = newMessage
  return null
end

fun getMessage() -> message

fun buyCoffee(note)
  var tip = ["from","amount",note,"time"]
  add(tips, tip)
  var total_donated = total_donated + 1
  return null
end

fun getTipsCount() -> len(tips)

fun getTip(i) -> tips / i

Converted Code

Output
No content found