Class: TEALrb::InnerTxn
- Inherits:
-
Object
- Object
- TEALrb::InnerTxn
- Defined in:
- lib/tealrb/inner_txn.rb
Instance Method Summary collapse
- #accounts=(value) ⇒ Object
- #amount=(value) ⇒ Object
- #application_args=(value) ⇒ Object
- #application_id=(value) ⇒ Object
- #applications=(value) ⇒ Object
- #approval_program=(value) ⇒ Object
- #asset_amount=(value) ⇒ Object
- #asset_close_to=(value) ⇒ Object
- #asset_receiver=(value) ⇒ Object
- #asset_sender=(value) ⇒ Object
- #assets=(value) ⇒ Object
- #begin ⇒ Object
- #clear_state_program=(value) ⇒ Object
- #close_remainder_to=(value) ⇒ Object
- #config_asset=(value) ⇒ Object
- #config_asset_clawback=(value) ⇒ Object
- #config_asset_decimals=(value) ⇒ Object
- #config_asset_default_frozen=(value) ⇒ Object
- #config_asset_freeze=(value) ⇒ Object
- #config_asset_manager=(value) ⇒ Object
- #config_asset_metadata_hash=(value) ⇒ Object
- #config_asset_name=(value) ⇒ Object
- #config_asset_reserve=(value) ⇒ Object
- #config_asset_total=(value) ⇒ Object
- #config_asset_unit_name=(value) ⇒ Object
- #config_asset_url=(value) ⇒ Object
- #created_application_id=(value) ⇒ Object
- #created_asset_id=(value) ⇒ Object
- #extra_program_pages=(value) ⇒ Object
- #fee=(value) ⇒ Object
- #first_valid=(value) ⇒ Object
- #first_valid_time=(value) ⇒ Object
- #freeze_asset=(value) ⇒ Object
- #freeze_asset_account=(value) ⇒ Object
- #freeze_asset_frozen=(value) ⇒ Object
- #global_num_byte_slice=(value) ⇒ Object
- #global_num_uint=(value) ⇒ Object
- #group_index=(value) ⇒ Object
-
#initialize(contract) ⇒ InnerTxn
constructor
A new instance of InnerTxn.
- #last_log=(value) ⇒ Object
- #last_valid=(value) ⇒ Object
- #lease=(value) ⇒ Object
- #local_num_byte_slice=(value) ⇒ Object
- #local_num_uint=(value) ⇒ Object
- #logs=(value) ⇒ Object
- #next ⇒ Object
- #nonparticipation=(value) ⇒ Object
- #note=(value) ⇒ Object
- #num_accounts=(value) ⇒ Object
- #num_app_args=(value) ⇒ Object
- #num_applications=(value) ⇒ Object
- #num_assets=(value) ⇒ Object
- #num_logs=(value) ⇒ Object
- #on_completion=(value) ⇒ Object
- #receiver=(value) ⇒ Object
- #rekey_to=(value) ⇒ Object
- #selection_pk=(value) ⇒ Object
- #sender=(value) ⇒ Object
- #state_proof_pk=(value) ⇒ Object
- #submit ⇒ Object
- #tx_id=(value) ⇒ Object
- #type=(value) ⇒ Object
- #type_enum=(value) ⇒ Object
- #vote_first=(value) ⇒ Object
- #vote_key_dilution=(value) ⇒ Object
- #vote_last=(value) ⇒ Object
- #vote_pk=(value) ⇒ Object
- #xfer_asset=(value) ⇒ Object
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 |
#begin ⇒ Object
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 |
#next ⇒ Object
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 |
#submit ⇒ Object
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 |