class TezosClient::Tools::FindBigMapsInStorage

Public Instance Methods

execute() click to toggle source
# File lib/tezos_client/tools/find_big_maps_in_storage.rb, line 9
def execute
  hash_storage
    .map(&:last)
    .select { |value| value.is_a? TezosClient::BigMap }
    .map(&:to_h)
    .map(&:with_indifferent_access)
end

Private Instance Methods

hash_storage() click to toggle source
# File lib/tezos_client/tools/find_big_maps_in_storage.rb, line 18
def hash_storage
  compose(
    TezosClient::Tools::ConvertToHash,
    data: storage,
    type: storage_type
  )
end