type
- class Event
Bases:
object
Describes an action that happened in the blockchain. Neo3-Boa compiler won’t recognize the __init__ of this class. To create a new Event, use the method CreateNewEvent:
Check out Neo’s Documentation to learn more about Events.
>>> from boa3.builtin.compile_time import CreateNewEvent ... new_event: Event = CreateNewEvent( # create a new Event with the CreateNewEvent method ... [ ... ('name', str), ... ('amount', int) ... ], ... 'New Event' ... )
- class ECPoint(arg: bytes)
Bases:
bytes
Represents a coordinate pair for elliptic curve cryptography (ECC) structures.
- Address
A type used only to indicate that a parameter or return on the manifest should be treated as an Address. Same as str.
- BlockHash
A type used only to indicate that a parameter or return on the manifest should be treated as a BlockHash. Same as UInt256.
- PublicKey
A type used only to indicate that a parameter or return on the manifest should be treated as a PublicKey. Same as ECPoint.
- ScriptHash
A type used only to indicate that a parameter or return on the manifest should be treated as a ScriptHash. Same as UInt160.
- ScriptHashLittleEndian
A type used only to indicate that a parameter or return on the manifest should be treated as a ScriptHashLittleEndian. Same as UInt160.
- TransactionId
A type used only to indicate that a parameter or return on the manifest should be treated as a TransactionId. Same as UInt256.
Subpackages
helper
- to_bool(value: bytes) bool
Return a bytes value to the boolean it represents.
>>> to_bool(b'\x00') False
>>> to_bool(b'\x01') True
>>> to_bool(b'\x02') True