Module: TEALrb::MaybeOps
- Included in:
- Contract
- Defined in:
- lib/tealrb/maybe_ops.rb
Instance Method Summary collapse
- #acct_has_balance?(asset_id = nil) ⇒ Boolean
- #acct_param_value(field, asset_id = nil) ⇒ Object
- #app_global_ex_exists?(account = nil, applicaiton = nil, key = nil) ⇒ Boolean
- #app_global_ex_value(account = nil, applicaiton = nil, key = nil) ⇒ Object
- #app_local_ex_exists?(account = nil, applicaiton = nil, key = nil) ⇒ Boolean
- #app_local_ex_value(account = nil, applicaiton = nil, key = nil) ⇒ Object
- #app_param_exists?(field, app_id = nil) ⇒ Boolean
- #app_param_value(field, app_id = nil) ⇒ Object
- #asset_holding_exists?(field, account_index = nil, asset_id = nil) ⇒ Boolean
- #asset_holding_value(field, account_index = nil, asset_id = nil) ⇒ Object
- #asset_param_exists?(field, asset_id = nil) ⇒ Boolean
- #asset_param_value(field, asset_id = nil) ⇒ Object
- #box_exists?(name = nil) ⇒ Boolean
- #box_len_exists?(name = nil) ⇒ Boolean
- #box_len_value(name = nil) ⇒ Object
- #box_value(name = nil) ⇒ Object
Instance Method Details
#acct_has_balance?(asset_id = nil) ⇒ Boolean
40 41 42 43 44 |
# File 'lib/tealrb/maybe_ops.rb', line 40 def acct_has_balance?(asset_id = nil) acct_params_get 'AcctBalance' swap pop end |
#acct_param_value(field, asset_id = nil) ⇒ Object
46 47 48 49 |
# File 'lib/tealrb/maybe_ops.rb', line 46 def acct_param_value(field, asset_id = nil) acct_params_get field pop end |
#app_global_ex_exists?(account = nil, applicaiton = nil, key = nil) ⇒ Boolean
62 63 64 65 66 |
# File 'lib/tealrb/maybe_ops.rb', line 62 def app_global_ex_exists?(account = nil, applicaiton = nil, key = nil) app_global_get_ex swap pop end |
#app_global_ex_value(account = nil, applicaiton = nil, key = nil) ⇒ Object
68 69 70 71 |
# File 'lib/tealrb/maybe_ops.rb', line 68 def app_global_ex_value(account = nil, applicaiton = nil, key = nil) app_global_get_ex pop end |
#app_local_ex_exists?(account = nil, applicaiton = nil, key = nil) ⇒ Boolean
51 52 53 54 55 |
# File 'lib/tealrb/maybe_ops.rb', line 51 def app_local_ex_exists?(account = nil, applicaiton = nil, key = nil) app_local_get_ex swap pop end |
#app_local_ex_value(account = nil, applicaiton = nil, key = nil) ⇒ Object
57 58 59 60 |
# File 'lib/tealrb/maybe_ops.rb', line 57 def app_local_ex_value(account = nil, applicaiton = nil, key = nil) app_local_get_ex pop end |
#app_param_exists?(field, app_id = nil) ⇒ Boolean
18 19 20 21 22 |
# File 'lib/tealrb/maybe_ops.rb', line 18 def app_param_exists?(field, app_id = nil) app_params_get field swap pop end |
#app_param_value(field, app_id = nil) ⇒ Object
24 25 26 27 |
# File 'lib/tealrb/maybe_ops.rb', line 24 def app_param_value(field, app_id = nil) app_params_get field pop end |
#asset_holding_exists?(field, account_index = nil, asset_id = nil) ⇒ Boolean
13 14 15 16 |
# File 'lib/tealrb/maybe_ops.rb', line 13 def asset_holding_exists?(field, account_index = nil, asset_id = nil) asset_holding_get field pop end |
#asset_holding_value(field, account_index = nil, asset_id = nil) ⇒ Object
7 8 9 10 11 |
# File 'lib/tealrb/maybe_ops.rb', line 7 def asset_holding_value(field, account_index = nil, asset_id = nil) asset_holding_get field swap pop end |
#asset_param_exists?(field, asset_id = nil) ⇒ Boolean
29 30 31 32 33 |
# File 'lib/tealrb/maybe_ops.rb', line 29 def asset_param_exists?(field, asset_id = nil) asset_params_get field swap pop end |
#asset_param_value(field, asset_id = nil) ⇒ Object
35 36 37 38 |
# File 'lib/tealrb/maybe_ops.rb', line 35 def asset_param_value(field, asset_id = nil) asset_params_get field pop end |
#box_exists?(name = nil) ⇒ Boolean
78 79 80 81 82 |
# File 'lib/tealrb/maybe_ops.rb', line 78 def box_exists?(name = nil) box_get swap pop end |
#box_len_exists?(name = nil) ⇒ Boolean
89 90 91 92 93 |
# File 'lib/tealrb/maybe_ops.rb', line 89 def box_len_exists?(name = nil) box_len swap pop end |
#box_len_value(name = nil) ⇒ Object
84 85 86 87 |
# File 'lib/tealrb/maybe_ops.rb', line 84 def box_len_value(name = nil) box_len pop end |
#box_value(name = nil) ⇒ Object
73 74 75 76 |
# File 'lib/tealrb/maybe_ops.rb', line 73 def box_value(name = nil) box_get pop end |