Class: TEALrb::Gtxn

Inherits:
GroupTxn show all
Defined in:
lib/tealrb/group_txn.rb

Instance Method Summary collapse

Methods inherited from GroupTxn

#[]

Methods included from TxnFields

#accounts, #amount, #application_args, #application_id, #applications, #approval_program, #asset_amount, #asset_close_to, #asset_receiver, #asset_sender, #assets, #clear_state_program, #close_remainder_to, #config_asset, #config_asset_clawback, #config_asset_decimals, #config_asset_default_frozen, #config_asset_freeze, #config_asset_manager, #config_asset_metadata_hash, #config_asset_name, #config_asset_reserve, #config_asset_total, #config_asset_unit_name, #config_asset_url, #created_application_id, #created_asset_id, #extra_program_pages, #fee, #first_valid, #first_valid_time, #freeze_asset, #freeze_asset_account, #freeze_asset_frozen, #global_num_byte_slice, #global_num_uint, #group_index, #last_log, #last_valid, #lease, #local_num_byte_slice, #local_num_uint, #logs, #nonparticipation, #note, #num_accounts, #num_app_args, #num_applications, #num_assets, #num_logs, #on_completion, #receiver, #rekey_to, #selection_pk, #sender, #state_proof_pk, #tx_id, #type, #type_enum, #vote_first, #vote_key_dilution, #vote_last, #vote_pk, #xfer_asset

Methods inherited from OpcodeType

#[]

Constructor Details

#initialize(contract, index) ⇒ Gtxn

Returns a new instance of Gtxn.



21
22
23
24
# File 'lib/tealrb/group_txn.rb', line 21

def initialize(contract, index)
  @index = index
  super(contract)
end

Instance Method Details

#txnfield_opcode(field, *_args) ⇒ Object



26
27
28
# File 'lib/tealrb/group_txn.rb', line 26

def txnfield_opcode(field, *_args)
  @contract.gtxn @index, field
end