Class: WhopSDK::Models::SwapCreateQuoteResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::SwapCreateQuoteResponse
- Defined in:
- lib/whop_sdk/models/swap_create_quote_response.rb,
sig/whop_sdk/models/swap_create_quote_response.rbs
Overview
Defined Under Namespace
Modules: Object
Instance Attribute Summary collapse
-
#amount_in ⇒ String
Source token amount used for the quote.
-
#amount_out ⇒ String
Estimated destination token amount.
-
#amount_out_min ⇒ String?
Minimum destination amount after slippage.
-
#bridge_fee ⇒ String?
Estimated bridge fee for cross-chain swaps.
-
#estimated_duration_seconds ⇒ Integer?
Estimated time for the swap to complete.
-
#fee_bps ⇒ Integer
Whop fee in basis points.
-
#from_address ⇒ String?
Source wallet address used for the quote.
-
#from_token ⇒ Hash{Symbol=>Object}
Resolved source token details.
-
#metadata ⇒ Hash{Symbol=>Object}
Metadata from the request.
- #object ⇒ Symbol, WhopSDK::Models::SwapCreateQuoteResponse::Object
-
#rate ⇒ String
Quoted exchange rate.
-
#requires_token_approval ⇒ Boolean?
Whether the source token needs approval before swapping.
-
#to_address ⇒ String?
Destination wallet address used for the quote.
-
#to_token ⇒ Hash{Symbol=>Object}
Resolved destination token details.
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
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], 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
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#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 90
|
Instance Attribute Details
#amount_in ⇒ String
Source token amount used for the quote.
11 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 11 required :amount_in, String |
#amount_out ⇒ String
Estimated destination token amount.
17 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 17 required :amount_out, String |
#amount_out_min ⇒ String?
Minimum destination amount after slippage.
58 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 58 optional :amount_out_min, String |
#bridge_fee ⇒ String?
Estimated bridge fee for cross-chain swaps.
64 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 64 optional :bridge_fee, String, nil?: true |
#estimated_duration_seconds ⇒ Integer?
Estimated time for the swap to complete.
70 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 70 optional :estimated_duration_seconds, Integer, nil?: true |
#fee_bps ⇒ Integer
Whop fee in basis points.
23 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 23 required :fee_bps, Integer |
#from_address ⇒ String?
Source wallet address used for the quote.
76 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 76 optional :from_address, String, nil?: true |
#from_token ⇒ Hash{Symbol=>Object}
Resolved source token details.
29 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 29 required :from_token, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown] |
#metadata ⇒ Hash{Symbol=>Object}
Metadata from the request.
35 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 35 required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown] |
#object ⇒ Symbol, WhopSDK::Models::SwapCreateQuoteResponse::Object
40 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 40 required :object, enum: -> { WhopSDK::Models::SwapCreateQuoteResponse::Object } |
#rate ⇒ String
Quoted exchange rate.
46 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 46 required :rate, String |
#requires_token_approval ⇒ Boolean?
Whether the source token needs approval before swapping.
82 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 82 optional :requires_token_approval, WhopSDK::Internal::Type::Boolean, nil?: true |
#to_address ⇒ String?
Destination wallet address used for the quote.
88 |
# File 'lib/whop_sdk/models/swap_create_quote_response.rb', line 88 optional :to_address, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
69 |
# File 'sig/whop_sdk/models/swap_create_quote_response.rbs', line 69
def to_hash: -> {
|