Class: TEALrb::InnerTxn

Inherits:
Object
  • Object
show all
Defined in:
lib/tealrb/inner_txn.rb

Instance Method Summary collapse

Constructor Details

#initialize(contract) ⇒ InnerTxn

Returns a new instance of InnerTxn.



5
6
7
# File 'lib/tealrb/inner_txn.rb', line 5

def initialize(contract)
  @contract = contract
end

Instance Method Details

#accounts=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#amount=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#application_args=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#application_id=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#applications=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#approval_program=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#asset_amount=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#asset_close_to=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#asset_receiver=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#asset_sender=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#assets=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#beginObject



9
10
11
# File 'lib/tealrb/inner_txn.rb', line 9

def begin
  @contract.itxn_begin
end

#clear_state_program=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#close_remainder_to=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_clawback=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_decimals=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_default_frozen=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_freeze=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_manager=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_metadata_hash=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_name=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_reserve=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_total=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_unit_name=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#config_asset_url=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#created_application_id=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#created_asset_id=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#extra_program_pages=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#fee=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#first_valid=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#first_valid_time=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#freeze_asset=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#freeze_asset_account=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#freeze_asset_frozen=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#global_num_byte_slice=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#global_num_uint=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#group_index=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#last_log=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#last_valid=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#lease=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#local_num_byte_slice=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#local_num_uint=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#logs=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#nextObject



17
18
19
# File 'lib/tealrb/inner_txn.rb', line 17

def next
  @contract.itxn_next
end

#nonparticipation=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#note=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#num_accounts=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#num_app_args=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#num_applications=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#num_assets=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#num_logs=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#on_completion=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#receiver=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#rekey_to=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#selection_pk=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#sender=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#state_proof_pk=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#submitObject



13
14
15
# File 'lib/tealrb/inner_txn.rb', line 13

def submit
  @contract.itxn_submit
end

#tx_id=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#type=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#type_enum=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#vote_first=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#vote_key_dilution=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#vote_last=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#vote_pk=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end

#xfer_asset=(value) ⇒ Object



85
86
87
88
89
90
91
92
93
# File 'lib/tealrb/inner_txn.rb', line 85

TxnFields.instance_methods.each do |m|
  define_method("#{m}=") do |value|
    if m == :application_id
      @contract.itxn_field 'ApplicationID'
    else
      @contract.itxn_field m.to_s.split('_').collect(&:capitalize).join, value
    end
  end
end