core.cleos_sys

class eosfactory.core.cleos_sys.BuyRam(payer, receiver, amount, buy_ram_kbytes=0, expiration_sec=None, skip_sign=0, dont_broadcast=0, force_unique=0, max_cpu_usage=0, max_net_usage=0, ref_block=None, delay_sec=0, is_verbose=1)[source]

Bases: eosfactory.core.cleos.Cleos

Buy RAM.

Parameters:
  • payer (str or interface.Account) – The account paying for RAM.
  • receiver (str or interface.Account) – The account receiving bought RAM.
  • amount (int) – The amount of EOS to pay for RAM, or number of kbytes of RAM if buy_ram_kbytes is set.
  • buy_ram_kbytes (bool) – If set, buy ram in number of kbytes.

See definitions of the remaining parameters: cleos.common_parameters().

class eosfactory.core.cleos_sys.DelegateBw(payer, receiver, stake_net_quantity, stake_cpu_quantity, permission=None, transfer=False, expiration_sec=None, skip_sign=0, dont_broadcast=0, force_unique=0, max_cpu_usage=0, max_net_usage=0, ref_block=None, delay_sec=0, is_verbose=1)[source]

Bases: eosfactory.core.cleos.Cleos

Delegate bandwidth.

Parameters:
  • payer (str or interface.Account) – The account to delegate bandwidth from.
  • receiver (str or interface.Account) – The account to receive the delegated bandwidth.
  • stake_net_quantity (int) – The amount of EOS to stake for network bandwidth.
  • stake_cpu_quantity (int) – The amount of EOS to stake for CPU bandwidth.
  • transfer (bool) – Transfer voting power and right to unstake EOS to receiver.

See definitions of the remaining parameters: cleos.common_parameters().

class eosfactory.core.cleos_sys.SystemNewaccount(creator, name, owner_key, active_key, stake_net, stake_cpu, permission=None, buy_ram_kbytes=0, buy_ram='', transfer=False, expiration_sec=None, skip_sign=0, dont_broadcast=0, force_unique=0, max_cpu_usage=0, max_net_usage=0, ref_block=None, delay_sec=0, is_verbose=1)[source]

Bases: eosfactory.core.interface.Account, eosfactory.core.cleos.Cleos

Create an account, buy ram, stake for bandwidth for the account.

Parameters:
  • creator (str or interface.Account) – The account creating the new account.
  • name – The name of the new account.
  • owner_key (str) – If set, the owner public key for the new account, otherwise random.
  • active_key (str) – If set, the active public key for the new account, otherwise random.
  • stake_net (int) – The amount of EOS delegated for net bandwidth.
  • stake_cpu (int) – The amount of EOS delegated for CPU bandwidth.
  • buy_ram (str) – The amount of RAM bytes to purchase for the new account in EOS.
  • buy_ram_kbytes (int) – The amount of RAM bytes to purchase for the new account in kibibytes (KiB)
  • transfer (bool) – Transfer voting power and right to unstake EOS to receiver.

See definitions of the remaining parameters: cleos.common_parameters().