Module: WhopSDK::Models::SwapCreateQuoteParams::FromChain

Extended by:
Internal::Type::Union
Defined in:
lib/whop_sdk/models/swap_create_quote_params.rb

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(amount:, from_token:, to_token:, from_address: nil, from_chain: nil, metadata: nil, slippage_bps: nil, to_address: nil, to_chain: nil, request_options: {}) ⇒ Object

Parameters:

  • amount (String)

    Input token amount.

  • from_token (String)

    Source token contract address.

  • to_token (String)

    Destination token contract address.

  • from_address (String, nil) (defaults to: nil)
  • from_chain (String, Integer, nil) (defaults to: nil)
  • metadata (Hash{Symbol=>Object}) (defaults to: nil)
  • slippage_bps (Integer, nil) (defaults to: nil)
  • to_address (String, nil) (defaults to: nil)
  • to_chain (String, Integer, nil) (defaults to: nil)
  • request_options (WhopSDK::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


79
80
81
82
83
84
85
86
87
88
# File 'lib/whop_sdk/models/swap_create_quote_params.rb', line 79

module FromChain
  extend WhopSDK::Internal::Type::Union

  variant String

  variant Integer

  # @!method self.variants
  #   @return [Array(String, Integer)]
end