Class: TEALrb::Enums::TxnType

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

Instance Method Summary collapse

Constructor Details

#initialize(contract) ⇒ TxnType

Returns a new instance of TxnType.



6
7
8
# File 'lib/tealrb/enums.rb', line 6

def initialize(contract)
  @contract = contract
end

Instance Method Details

#application_callObject



34
35
36
# File 'lib/tealrb/enums.rb', line 34

def application_call
  txn_type_int 'appl'
end

#asset_configObject



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

def asset_config
  txn_type_int 'acfg'
end

#asset_freezeObject



30
31
32
# File 'lib/tealrb/enums.rb', line 30

def asset_freeze
  txn_type_int 'afrz'
end

#asset_transferObject



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

def asset_transfer
  txn_type_int 'axfer'
end

#key_registrationObject



18
19
20
# File 'lib/tealrb/enums.rb', line 18

def key_registration
  txn_type_int 'keyreg'
end

#payObject



14
15
16
# File 'lib/tealrb/enums.rb', line 14

def pay
  txn_type_int 'pay'
end

#unknownObject



10
11
12
# File 'lib/tealrb/enums.rb', line 10

def unknown
  txn_type_int 'unknown'
end