int32
This section is a work in progress.
The Kybra type int32
corresponds to the Candid type int32 and will become a Python int at runtime.
Python:
from kybra import ic, int32, query
@query
def get_int32() -> int32:
return 2_147_483_647
@query
def print_int32(int32: int32) -> int32:
ic.print(type(int32))
return int32
Candid:
service: {
"get_int32": () -> (int32) query;
"print_int32": (int32) -> (int32) query;
}