Skip to content

Commit

Permalink
avm value
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Jul 31, 2023
1 parent aef6265 commit 3984a87
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions algosdk/v2client/models/avm_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from typing import Dict, Any, Optional


class AVMValue:
type: int
uint: int
bytes: bytes

def __init__(
self, *, type: int = 0, uint: int = 0, _bytes: Optional[bytes] = None
) -> None:
self.type = type
self.uint = uint
self.bytes = _bytes if _bytes else b""

def dictify(self) -> Dict[str, Any]:
return {
"type": self.type,
"uint": self.uint,
"bytes": self.bytes,
}

0 comments on commit 3984a87

Please sign in to comment.