Class: WhopSDK::Models::SwapCreateQuoteResponse
Overview
Defined Under Namespace
Modules: Object
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(amount_in:, amount_out:, fee_bps:, from_token:, metadata:, object:, rate:, to_token:, amount_out_min: nil, bridge_fee: nil, estimated_duration_seconds: nil, from_address: nil, requires_token_approval: nil, to_address: nil) ⇒ Object
constructor
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(amount_in:, amount_out:, fee_bps:, from_token:, metadata:, object:, rate:, to_token:, amount_out_min: nil, bridge_fee: nil, estimated_duration_seconds: nil, from_address: nil, requires_token_approval: nil, to_address: nil) ⇒ Object
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 77
|
Instance Attribute Details
#amount_in ⇒ String
10
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 10
required :amount_in, String
|
#amount_out ⇒ String
15
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 15
required :amount_out, String
|
#amount_out_min ⇒ String?
50
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 50
optional :amount_out_min, String
|
#bridge_fee ⇒ String?
55
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 55
optional :bridge_fee, String, nil?: true
|
#estimated_duration_seconds ⇒ Integer?
60
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 60
optional :estimated_duration_seconds, Integer, nil?: true
|
#fee_bps ⇒ Integer
20
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 20
required :fee_bps, Integer
|
#from_address ⇒ String?
65
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 65
optional :from_address, String, nil?: true
|
#from_token ⇒ Hash{Symbol=>Object}
#rate ⇒ String
40
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 40
required :rate, String
|
#requires_token_approval ⇒ Boolean?
70
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 70
optional :requires_token_approval, WhopSDK::Internal::Type::Boolean, nil?: true
|
#to_address ⇒ String?
75
|
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 75
optional :to_address, String, nil?: true
|
#to_token ⇒ Hash{Symbol=>Object}