contract

Nep5TransferEvent: boa3.builtin.type.Event

The NEP-5 transfer event that will be triggered whenever a token is transferred, minted or burned. It needs the addresses of the sender, receiver and the amount transferred.

Nep11TransferEvent: boa3.builtin.type.Event

The NEP-11 Transfer event that will be triggered whenever a token is transferred, minted or burned. It needs the addresses of the sender, receiver, amount transferred and the id of the token.

Nep17TransferEvent: boa3.builtin.type.Event

The NEP-17 Transfer event that will be triggered whenever a token is transferred, minted or burned. It needs the addresses of the sender, receiver and the amount transferred.

abort()

Aborts the execution of a smart contract.

class NeoAccountState

Bases: object

Represents the account state of NEO token in the NEO system.

Variables
  • balance (int) – the current account balance, which equals to the votes cast

  • height (int) – the height of the block where the balance changed last time

  • vote_to (ECPoint) – the voting target of the account

to_script_hash(data_bytes: Any)bytes

Converts a data to a script hash.

Parameters

data_bytes (Any) – data to hash

Returns

the script hash of the data

Return type

bytes