Crate rusk_abi

source ·
Expand description

Build Status Repository Documentation

Rusk ABI

The ABI to develop Dusk Network smart contracts

Modules

Structs

Enums

Constants

Functions

  • Get the current block height.
  • Calls a contract’s fn_name function with the given argument fn_arg. The contract will have 93% of the remaining points available to spend.
  • Calls a contract with the given RawCall. The contract will have 93% of the remaining points available to spend.
  • Calls a contract with the given RawCall allowing it to spend the given points_limit.
  • Calls a contract’s fn_name function with the given argument fn_arg, allowing it to spend the given points_limit.
  • Return the ID of the calling contract. The returned id will be uninitialized if there is no caller - meaning this is the first contract to be called.
  • Converts a ContractId to a BlsScalar
  • Emits an event with the given data.
  • Feeds the host with data.
  • Generate a ContractId address from the given slice of bytes, that is also a valid BlsScalar
  • Compute the blake2b hash of the given bytes, returning the resulting scalar. The output of the hasher is truncated (last nibble) to fit onto a scalar.
  • Execute some code that the host provides under the given name.
  • Returns the points limit with which the contact was called.
  • Returns data made available by the host under the given name. The type D must be correctly specified, otherwise undefined behavior will occur.
  • Return the current contract’s owner.
  • Query a contract for the types of payment it accepts.
  • Compute the poseidon hash of the given scalars
  • Return the current contract’s id.
  • Returns the amount of points the contact has spent.
  • Verify a BLS signature is valid for the given public key and message
  • Verify a proof is valid for a given circuit type and public inputs
  • Verify a schnorr signature is valid for the given public key and message
  • Wrap a call with its respective (de)serializers.

Type Aliases