Created
February 6, 2025 15:44
-
-
Save 0M3REXE/87216d598047c67079df8e0ccf24d1ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from algopy import ARC4Contract, UInt64 | |
from algopy.arc4 import abimethod | |
class Calculator(ARC4Contract): | |
@abimethod() | |
def add(self,a:UInt64,b:UInt64)->UInt64: | |
return a+b | |
@abimethod() | |
def sub(self,a:UInt64,b:UInt64)->UInt64: | |
return a-b | |
@abimethod() | |
def mul(self,a:UInt64,b:UInt64)->UInt64: | |
return a*b | |
@abimethod() | |
def div(self,a:UInt64,b:UInt64)->UInt64: | |
return a//b |
Author
0M3REXE
commented
Feb 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment