Class: WhopSDK::Models::SwapCreateQuoteParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::SwapCreateQuoteParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/swap_create_quote_params.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#amount ⇒ String
Input token amount.
- #from_address ⇒ String?
- #from_chain ⇒ String, ...
-
#from_token ⇒ String
Source token contract address.
- #metadata ⇒ Hash{Symbol=>Object}?
- #slippage_bps ⇒ Integer?
- #to_address ⇒ String?
- #to_chain ⇒ String, ...
-
#to_token ⇒ String
Destination token contract address.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from WhopSDK::Internal::Type::BaseModel
Instance Attribute Details
#amount ⇒ String
Input token amount.
14 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 14 required :amount, String |
#from_address ⇒ String?
31 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 31 optional :from_address, String, nil?: true |
#from_chain ⇒ String, ...
36 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 36 optional :from_chain, union: -> { WhopSDK::SwapCreateQuoteParams::FromChain }, nil?: true |
#from_token ⇒ String
Source token contract address.
20 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 20 required :from_token, String |
#metadata ⇒ Hash{Symbol=>Object}?
41 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 41 optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown] |
#slippage_bps ⇒ Integer?
46 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 46 optional :slippage_bps, Integer, nil?: true |
#to_address ⇒ String?
51 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 51 optional :to_address, String, nil?: true |
#to_chain ⇒ String, ...
56 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 56 optional :to_chain, union: -> { WhopSDK::SwapCreateQuoteParams::ToChain }, nil?: true |
#to_token ⇒ String
Destination token contract address.
26 |
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 26 required :to_token, String |
Class Method Details
.variants ⇒ Array(String, Integer)
|
|
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 86
|