Module: Privy::Models::Wallets::TransactionGetParams::Asset

Extended by:
Internal::Type::Union
Defined in:
lib/privy/models/wallets/transaction_get_params.rb,
sig/privy/models/wallets/transaction_get_params.rbs

Overview

Exactly one of asset or token is required. Cannot be used together with token.

collapse

USDC =

Returns:

  • (:usdc)
:usdc
USDC_E =

Returns:

  • (:"usdc.e")
:"usdc.e"
ETH =

Returns:

  • (:eth)
:eth
AVAX =

Returns:

  • (:avax)
:avax
POL =

Returns:

  • (:pol)
:pol
USDT =

Returns:

  • (:usdt)
:usdt
EURC =

Returns:

  • (:eurc)
:eurc
USDB =

Returns:

  • (:usdb)
:usdb
SOL =

Returns:

  • (:sol)
:sol

Constant Summary collapse

WalletAssetArray =
Privy::Internal::Type::ArrayOf[enum: -> { Privy::WalletAsset }]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, 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

Class Method Details

.variantsArray(Symbol, Array<Symbol, Privy::Models::WalletAsset>)

Returns:



141
142
143
144
145
146
147
148
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 141

define_sorbet_constant!(:Variants) do
  T.type_alias do
    T.any(
      Privy::Wallets::TransactionGetParams::Asset::TaggedSymbol,
      T::Array[Privy::WalletAsset::TaggedSymbol]
    )
  end
end

Instance Method Details

#self?.variants::Array[Privy::Models::Wallets::TransactionGetParams::asset]

Returns:

  • (::Array[Privy::Models::Wallets::TransactionGetParams::asset])


127
# File 'sig/privy/models/wallets/transaction_get_params.rbs', line 127

def self?.variants: -> ::Array[Privy::Models::Wallets::TransactionGetParams::asset]