Class: TEALrb::Account
- Inherits:
-
OpcodeType
- Object
- OpcodeType
- TEALrb::Account
- Defined in:
- lib/tealrb/account.rb
Instance Method Summary collapse
- #apps_created ⇒ Object
- #apps_opted_in ⇒ Object
- #asset_balance(_asa_id = nil) ⇒ Object
- #asset_balance?(_asa_id = nil) ⇒ Boolean
- #asset_frozen?(_asa_id = nil) ⇒ Boolean
- #asset_frozen_value(_asa_id = nil) ⇒ Object
- #assets ⇒ Object
- #assets_created ⇒ Object
- #auth_addr ⇒ Object
- #balance ⇒ Object
- #balance? ⇒ Boolean
- #box_bytes ⇒ Object
- #boxes ⇒ Object
- #bytes ⇒ Object
- #extra_pages ⇒ Object
-
#initialize(contract) ⇒ Account
constructor
A new instance of Account.
- #min_balance ⇒ Object
- #uints ⇒ Object
Methods inherited from OpcodeType
Constructor Details
#initialize(contract) ⇒ Account
Returns a new instance of Account.
5 6 7 8 |
# File 'lib/tealrb/account.rb', line 5 def initialize(contract) @field = 'Accounts' super end |
Instance Method Details
#apps_created ⇒ Object
54 55 56 |
# File 'lib/tealrb/account.rb', line 54 def apps_created @contract.acct_param_value 'AcctTotalAppsCreated' end |
#apps_opted_in ⇒ Object
58 59 60 |
# File 'lib/tealrb/account.rb', line 58 def apps_opted_in @contract.acct_param_value 'AcctTotalAppsOptedIn' end |
#asset_balance(_asa_id = nil) ⇒ Object
14 15 16 |
# File 'lib/tealrb/account.rb', line 14 def asset_balance(_asa_id = nil) @contract.asset_holding_value 'AssetBalance' end |
#asset_balance?(_asa_id = nil) ⇒ Boolean
10 11 12 |
# File 'lib/tealrb/account.rb', line 10 def asset_balance?(_asa_id = nil) @contract.asset_holding_exists? 'AssetBalance' end |
#asset_frozen?(_asa_id = nil) ⇒ Boolean
18 19 20 |
# File 'lib/tealrb/account.rb', line 18 def asset_frozen?(_asa_id = nil) @contract.asset_frozen_exists? 'AssetFrozen' end |
#asset_frozen_value(_asa_id = nil) ⇒ Object
22 23 24 |
# File 'lib/tealrb/account.rb', line 22 def asset_frozen_value(_asa_id = nil) @contract.asset_frozen_value 'AssetFrozen' end |
#assets ⇒ Object
66 67 68 |
# File 'lib/tealrb/account.rb', line 66 def assets @contract.acct_param_value 'AcctTotalAssets' end |
#assets_created ⇒ Object
62 63 64 |
# File 'lib/tealrb/account.rb', line 62 def assets_created @contract.acct_param_value 'AcctTotalAssetsCreated' end |
#auth_addr ⇒ Object
34 35 36 |
# File 'lib/tealrb/account.rb', line 34 def auth_addr @contract.acct_param_value 'AcctAuthAddr' end |
#balance ⇒ Object
30 31 32 |
# File 'lib/tealrb/account.rb', line 30 def balance @contract.acct_param_value 'AcctBalance' end |
#balance? ⇒ Boolean
38 39 40 |
# File 'lib/tealrb/account.rb', line 38 def balance? @contract.acct_has_balance? end |
#box_bytes ⇒ Object
74 75 76 |
# File 'lib/tealrb/account.rb', line 74 def box_bytes @contract.acct_param_value 'AcctTotalBoxBytes' end |
#boxes ⇒ Object
70 71 72 |
# File 'lib/tealrb/account.rb', line 70 def boxes @contract.acct_param_value 'AcctTotalBoxes' end |
#bytes ⇒ Object
46 47 48 |
# File 'lib/tealrb/account.rb', line 46 def bytes @contract.acct_param_value 'AcctTotalNumByteSlice' end |
#extra_pages ⇒ Object
50 51 52 |
# File 'lib/tealrb/account.rb', line 50 def extra_pages @contract.acct_param_value 'AcctTotalExtraAppPages' end |
#min_balance ⇒ Object
26 27 28 |
# File 'lib/tealrb/account.rb', line 26 def min_balance @contract.acct_param_value 'AcctMinBalance' end |
#uints ⇒ Object
42 43 44 |
# File 'lib/tealrb/account.rb', line 42 def uints @contract.acct_param_value 'AcctTotalNumUint' end |