Module: MixinBot::API::ComputerApi
- Included in:
- MixinBot::API
- Defined in:
- lib/mixin_bot/api/computer_api.rb
Overview
Delegates to Computer for API surface parity with Go SDK.
Instance Method Summary collapse
- #build_system_call_extra(uid, cid, skip_process: false, fid: nil) ⇒ Object
- #computer_deploy_external_asset(assets) ⇒ Object
- #computer_user_id_to_bytes(id) ⇒ Object
- #decode_computer_extra_base64(extra) ⇒ Object
- #encode_mtg_extra(app_id, extra) ⇒ Object
- #encode_operation_memo(operation, extra = +'')) ⇒ Object
- #get_computer_deployed_assets ⇒ Object
- #get_computer_info ⇒ Object
- #get_computer_system_call(id) ⇒ Object
- #get_computer_user(addr) ⇒ Object
- #get_fee_on_xin_based_on_sol(sol_amount) ⇒ Object
- #lock_computer_nonce_account(mix) ⇒ Object
- #register_computer ⇒ Object
Instance Method Details
#build_system_call_extra(uid, cid, skip_process: false, fid: nil) ⇒ Object
43 44 45 |
# File 'lib/mixin_bot/api/computer_api.rb', line 43 def build_system_call_extra(uid, cid, skip_process: false, fid: nil) MixinBot::Computer.build_system_call_extra(uid, cid, skip_process:, fid:) end |
#computer_deploy_external_asset(assets) ⇒ Object
23 24 25 |
# File 'lib/mixin_bot/api/computer_api.rb', line 23 def computer_deploy_external_asset(assets) MixinBot::Computer.deploy_external_assets(assets) end |
#computer_user_id_to_bytes(id) ⇒ Object
39 40 41 |
# File 'lib/mixin_bot/api/computer_api.rb', line 39 def computer_user_id_to_bytes(id) MixinBot::Computer.user_id_to_bytes(id) end |
#decode_computer_extra_base64(extra) ⇒ Object
55 56 57 |
# File 'lib/mixin_bot/api/computer_api.rb', line 55 def decode_computer_extra_base64(extra) MixinBot::Computer.decode_computer_extra_base64(extra) end |
#encode_mtg_extra(app_id, extra) ⇒ Object
51 52 53 |
# File 'lib/mixin_bot/api/computer_api.rb', line 51 def encode_mtg_extra(app_id, extra) MixinBot::Computer.encode_mtg_extra(app_id, extra) end |
#encode_operation_memo(operation, extra = +'')) ⇒ Object
47 48 49 |
# File 'lib/mixin_bot/api/computer_api.rb', line 47 def encode_operation_memo(operation, extra = +'') MixinBot::Computer.encode_operation_memo(operation, extra) end |
#get_computer_deployed_assets ⇒ Object
15 16 17 |
# File 'lib/mixin_bot/api/computer_api.rb', line 15 def get_computer_deployed_assets MixinBot::Computer.deployed_assets end |
#get_computer_info ⇒ Object
7 8 9 |
# File 'lib/mixin_bot/api/computer_api.rb', line 7 def get_computer_info MixinBot::Computer.info end |
#get_computer_system_call(id) ⇒ Object
19 20 21 |
# File 'lib/mixin_bot/api/computer_api.rb', line 19 def get_computer_system_call(id) MixinBot::Computer.system_call(id) end |
#get_computer_user(addr) ⇒ Object
11 12 13 |
# File 'lib/mixin_bot/api/computer_api.rb', line 11 def get_computer_user(addr) MixinBot::Computer.user(addr) end |
#get_fee_on_xin_based_on_sol(sol_amount) ⇒ Object
31 32 33 |
# File 'lib/mixin_bot/api/computer_api.rb', line 31 def get_fee_on_xin_based_on_sol(sol_amount) MixinBot::Computer.fee_on_xin_from_sol(sol_amount) end |
#lock_computer_nonce_account(mix) ⇒ Object
27 28 29 |
# File 'lib/mixin_bot/api/computer_api.rb', line 27 def lock_computer_nonce_account(mix) MixinBot::Computer.lock_nonce_account(mix) end |
#register_computer ⇒ Object
35 36 37 |
# File 'lib/mixin_bot/api/computer_api.rb', line 35 def register_computer MixinBot::Computer.register_computer(self) end |