From 5598dea970055ecddf66079d8de73be02e5d1ed3 Mon Sep 17 00:00:00 2001 From: Mohsen <56779182+mrtnetwork@users.noreply.github.com> Date: Sun, 18 Aug 2024 20:56:45 +0330 Subject: [PATCH] V1.1.0 - fix parsing transaction. --- CHANGELOG.md | 4 ++++ .../capability_v1/messages/capability_owners.dart | 2 +- .../messages/identified_packet_fees.dart | 2 +- .../messages/packet_fees.dart | 2 +- .../query/query_fee_enabled_channels_response.dart | 2 +- ..._incentivized_packets_for_channel_response.dart | 2 +- .../query/query_incentivized_packets_response.dart | 2 +- .../query/query_total_ack_fees_response.dart | 2 +- .../query/query_total_recv_fees_response.dart | 2 +- .../query/query_total_timeout_fees_response.dart | 2 +- .../messages/controller_genesis_state.dart | 4 ++-- .../messages/host_genesis_state.dart | 4 ++-- .../query/query_denom_traces_response.dart | 2 +- .../messages/genesis_state.dart | 14 +++++++------- .../messages/identified_channel.dart | 2 +- .../messages/upgrade_fields.dart | 2 +- .../messages/client_consensus_states.dart | 2 +- .../ibc_core_client_v1/messages/genesis_state.dart | 6 +++--- .../messages/identified_genesis_metadata.dart | 2 +- .../query/query_client_states_response.dart | 2 +- .../query_consensus_state_heights_response.dart | 2 +- .../query/query_consensus_states_response.dart | 2 +- .../messages/client_paths.dart | 2 +- .../messages/connection_end.dart | 2 +- .../messages/genesis_state.dart | 4 ++-- .../ibc_core_connection_v1/messages/version.dart | 2 +- .../service/msg_connection_open_try.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../messages/accumulator_content.dart | 2 +- .../osmosis_accum_v1beta1/messages/record_msg.dart | 4 ++-- .../messages/full_position_breakdown.dart | 6 +++--- .../messages/pool_data.dart | 6 +++--- .../messages/position_data.dart | 2 +- .../messages/tick_info.dart | 2 +- .../messages/tick_spacing_decrease_proposal.dart | 2 +- .../messages/uptime_tracker.dart | 2 +- .../messages/uptime_trackers.dart | 2 +- .../query/claimable_incentives_response.dart | 4 ++-- .../query/claimable_spread_rewards_response.dart | 2 +- .../query/get_total_liquidity_response.dart | 2 +- .../query/incentive_records_response.dart | 2 +- .../query/liquidity_net_in_direction_response.dart | 2 +- .../query/liquidity_per_tick_range_response.dart | 2 +- .../query/num_next_initialized_ticks_response.dart | 2 +- .../query/pool_accumulator_rewards_response.dart | 4 ++-- .../query/tick_accumulator_trackers_response.dart | 4 ++-- .../query/user_positions_response.dart | 2 +- .../query/user_unbonding_positions_response.dart | 2 +- .../services/msg_collect_incentives_response.dart | 4 ++-- .../msg_collect_spread_rewards_response.dart | 2 +- .../services/msg_create_position.dart | 2 +- .../messages/params.dart | 4 ++-- .../messages/genesis_state.dart | 2 +- .../messages/senesis_state.dart | 2 +- .../service/msg_create_balancer_pool.dart | 2 +- .../messages/pool.dart | 4 ++-- .../services/msg_create_stable_swap_pool.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../osmosis_gamm_v1beta1/messages/params.dart | 2 +- .../osmosis_gamm_v1beta1/messages/pool.dart | 2 +- .../messages/smooth_weight_change_params.dart | 4 ++-- .../query/query_swap_exact_amount_in_request.dart | 2 +- .../query/query_swap_exact_amount_out_request.dart | 2 +- .../query/query_total_liquidity_response.dart | 2 +- .../query/query_total_pool_liquidity_response.dart | 2 +- .../osmosis_gamm_v1beta1/services/exit_pool.dart | 2 +- .../services/exit_pool_response.dart | 2 +- .../osmosis_gamm_v1beta1/services/join_pool.dart | 2 +- .../services/join_pool_response.dart | 2 +- .../services/swap_exact_amount_in.dart | 2 +- .../services/swap_exact_amount_out.dart | 2 +- .../osmosis/osmosis_ibchooks/messages/params.dart | 2 +- .../osmosis/osmosis_incentives/messages/gauge.dart | 4 ++-- .../query/active_gauges_per_denom_response.dart | 2 +- .../query/active_gauges_response.dart | 2 +- .../osmosis_incentives/query/gauges_response.dart | 2 +- .../query/module_to_distribute_coins_response.dart | 2 +- .../query/query_lockable_durations_response.dart | 2 +- .../query/rewards_est_response.dart | 3 ++- .../query/upcoming_gauges_per_denom_response.dart | 2 +- .../query/upcoming_gauges_response.dart | 2 +- .../services/msg_add_to_gauge.dart | 2 +- .../services/msg_create_gauge.dart | 2 +- .../osmosis_lockup/messages/genesis_state.dart | 4 ++-- .../osmosis_lockup/messages/period_lock.dart | 2 +- .../query/account_locked_coins_response.dart | 2 +- .../query/account_locked_duration_response.dart | 2 +- ...ount_locked_longer_duration_denom_response.dart | 2 +- ...onger_duration_not_unlocking_only_response.dart | 2 +- .../account_locked_longer_duration_response.dart | 2 +- .../account_locked_past_time_denom_reesponse.dart | 2 +- ...cked_past_time_not_unlocking_only_fesponse.dart | 2 +- .../query/account_locked_past_time_response.dart | 2 +- .../query/account_unlockable_coins_response.dart | 2 +- .../account_unlocked_before_time_response.dart | 2 +- .../query/account_unlocking_coins_response.dart | 2 +- .../query/module_balance_response.dart | 3 ++- .../query/module_locked_amount_response.dart | 2 +- .../synthetic_lockups_by_lockup_id_response.dart | 2 +- .../osmosis_lockup/services/begin_unlocking.dart | 2 +- .../osmosis_lockup/services/lock_tokens.dart | 2 +- .../osmosis_mint_v1beta1/messages/params.dart | 2 +- .../messages/distr_info.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../messages/lockable_durations_info.dart | 2 +- .../messages/pool_to_gauges.dart | 2 +- .../messages/replace_pool_incentives_proposal.dart | 2 +- .../messages/update_pool_incentives_proposal.dart | 2 +- .../query_external_incentive_gauges_response.dart | 2 +- .../query/query_incentivized_pools_response.dart | 2 +- .../query/query_lockable_durations_response.dart | 2 +- .../messages/denom_pair_taker_fee_proposal.dart | 2 +- .../messages/genesis_state.dart | 6 +++--- .../messages/params.dart | 2 +- .../messages/pool_volume.dart | 2 +- .../messages/taker_fees_tracker.dart | 4 ++-- .../messages/tracked_volume.dart | 3 ++- .../estimate_swap_exact_amount_in_request.dart | 2 +- .../estimate_swap_exact_amount_out_request.dart | 2 +- .../query/total_liquidity_response.dart | 2 +- .../query/total_pool_liquidity_response.dart | 2 +- .../query/total_volume_for_pool_response.dart | 2 +- .../services/msg_set_denom_pair_taker_fee.dart | 2 +- .../msg_split_route_swap_exact_amount_in.dart | 2 +- .../msg_split_route_swap_exact_amount_out.dart | 2 +- .../services/msg_swap_exact_amount_in.dart | 2 +- .../services/msg_swap_exact_amount_out.dart | 2 +- .../messages/cosmwasm_pool_info.dart | 2 +- .../messages/cyclic_arb_tracker.dart | 2 +- .../osmosis_protorev_v1beta1/messages/route.dart | 2 +- .../messages/route_statistics.dart | 2 +- .../messages/token_pair_arb_routes.dart | 2 +- .../query_get_proto_rev_all_profits_response.dart | 2 +- ...et_proto_rev_all_route_statistics_response.dart | 2 +- .../query_get_proto_rev_base_denoms_response.dart | 2 +- ...t_proto_rev_token_pair_arb_routes_response.dart | 2 +- .../services/msg_set_base_denoms.dart | 2 +- .../services/msg_set_hot_routes.dart | 2 +- .../messages/genesis_state.dart | 4 ++-- .../osmosis_stream_swap_v1/messages/params.dart | 2 +- .../query/query_sales_response.dart | 2 +- .../services/msg_create_sale.dart | 2 +- .../osmosis_superfluid/messages/genesis_state.dart | 8 ++++---- .../query/all_assets_response.dart | 2 +- .../query/all_intermediary_accounts_response.dart | 2 +- ...legated_amount_by_validator_denom_response.dart | 2 +- ...ery_total_delegation_by_delegator_response.dart | 6 +++--- .../super_fluid_delegation_amount_response.dart | 2 +- ...er_fluid_delegations_by_delegator_response.dart | 4 ++-- ...id_delegations_by_validator_denom_response.dart | 2 +- ..._fluid_undelegations_by_delegator_response.dart | 6 +++--- ...d_super_fluid_positions_delegated_response.dart | 2 +- ...uper_fluid_positions_undelegating_response.dart | 2 +- ...ll_range_position_and_super_fluid_delegate.dart | 2 +- .../services/lock_and_super_fluid_delegate.dart | 2 +- ...shares_to_full_range_concentrated_position.dart | 2 +- .../messages/set_super_fluid_assets_proposal.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../messages/params.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../messages/tx_fees_tracker.dart | 2 +- .../query/query_fee_tokens_response.dart | 2 +- .../messages/validator_set_preferences.dart | 2 +- .../query_user_validator_preference_response.dart | 2 +- .../services/msg_set_validator_set_preference.dart | 2 +- .../messages/validator_set_preferences.dart | 2 +- .../query/user_validator_preferences_response.dart | 2 +- .../services/redelegate_validator_set.dart | 2 +- .../services/set_validator_set_preference.dart | 2 +- .../models/networks/thorchain/v1/common/fee.dart | 2 +- .../models/networks/thorchain/v1/common/tx.dart | 4 ++-- .../networks/thorchain/v1/events/event_errata.dart | 2 +- .../networks/thorchain/v1/events/event_gas.dart | 2 +- .../thorchain/v1/events/event_rewards.dart | 2 +- .../networks/thorchain/v1/events/event_slash.dart | 2 +- .../networks/thorchain/v1/events/node_mimirs.dart | 2 +- .../networks/thorchain/v1/messages/ban_voter.dart | 2 +- .../networks/thorchain/v1/messages/blame.dart | 2 +- .../thorchain/v1/messages/bond_providers.dart | 2 +- .../thorchain/v1/messages/keygen_block.dart | 2 +- .../thorchain/v1/messages/observed_tx_voter.dart | 6 +++--- .../thorchain/v1/messages/solvency_voter.dart | 2 +- .../networks/thorchain/v1/messages/thor_name.dart | 2 +- .../thorchain/v1/messages/tss_key_sign_metric.dart | 2 +- .../thorchain/v1/messages/tss_keygen_metric.dart | 2 +- .../networks/thorchain/v1/messages/tx_out.dart | 2 +- .../thorchain/v1/messages/tx_out_item.dart | 2 +- .../networks/thorchain/v1/messages/vault.dart | 4 ++-- .../networks/thorchain/v1/service/msg_deposit.dart | 2 +- .../thorchain/v1/service/msg_observed_tx_in.dart | 2 +- .../thorchain/v1/service/msg_observed_tx_out.dart | 2 +- .../networks/thorchain/v1/service/msg_send.dart | 2 +- .../thorchain/v1/service/msg_solvency.dart | 2 +- .../v1/service/msg_tss_key_sign_fail.dart | 2 +- .../thorchain/v1/service/msg_tss_pool.dart | 4 ++-- .../thorchain/v1/service/msg_yggdrasil.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../query/query_grantee_grants_response.dart | 2 +- .../query/query_granter_grants_response.dart | 2 +- .../query/query_grants_response.dart | 2 +- .../cosmos_authz_v1beta1/service/msg_exec.dart | 2 +- .../messages/abci_message_log.dart | 2 +- .../messages/string_event.dart | 2 +- .../messages/tx_response.dart | 4 ++-- .../query/list_all_interfaces_response.dart | 2 +- .../query/list_implementations_response.dart | 2 +- .../messages/proof_ops.dart | 2 +- .../messages/version_info.dart | 2 +- .../get_validator_set_by_height_response.dart | 2 +- .../messages/delegation_delegator_reward.dart | 2 +- .../messages/validator_accumulated_commission.dart | 2 +- .../messages/validator_current_rewards.dart | 2 +- .../messages/validator_current_rewards_record.dart | 2 +- .../messages/validator_historical_rewards.dart | 2 +- .../messages/validator_outstanding_rewards.dart | 2 +- .../validator_outstanding_rewards_record.dart | 2 +- .../messages/validator_slash_events.dart | 2 +- .../query/query_delegation_rewards_response.dart | 2 +- .../query_delegation_total_rewards_response.dart | 4 ++-- .../query/query_delegator_validators_response.dart | 2 +- ...query_validator_distribution_info_response.dart | 4 ++-- .../query/query_validator_slashes_response.dart | 2 +- .../msg_deposit_validator_rewards_pool.dart | 2 +- .../msg_withdraw_delegator_reward_response.dart | 2 +- ...msg_withdraw_validator_commission_response.dart | 2 +- .../messages/basic_allowance.dart | 2 +- .../messages/genesis_state.dart | 2 +- .../messages/periodic_allowance.dart | 4 ++-- .../query_allowances_by_granter_response.dart | 2 +- .../query/query_allowances_response.dart | 2 +- .../cosmos_gov_v1beta1/messages/deposit.dart | 2 +- .../messages/deposit_params.dart | 2 +- .../cosmos_gov_v1beta1/messages/genesis_state.dart | 12 ++++++------ .../cosmos_gov_v1beta1/messages/vote.dart | 2 +- .../query/query_deposits_response.dart | 2 +- .../query/query_proposals_response.dart | 2 +- .../query/query_votes_response.dart | 2 +- .../service/msg_submit_proposal.dart | 2 +- .../service/msg_vote_weighted.dart | 2 +- .../cosmos_nft_v1beta1/messages/entry.dart | 2 +- .../cosmos_nft_v1beta1/messages/genesis_state.dart | 4 ++-- .../messages/parameter_change_proposal.dart | 2 +- .../cosmos_params_v1beta1/messages/subspace.dart | 2 +- .../query/query_subspaces_response.dart | 2 +- .../query/query_signing_infos_response.dart | 2 +- .../messages/genesis_state.dart | 10 +++++----- .../messages/unbonding_delegation.dart | 2 +- .../cosmos_staking_v1beta1/messages/validator.dart | 2 +- ...y_delegator_unbonding_delegations_response.dart | 2 +- .../query/query_delegator_validators_response.dart | 2 +- ...y_validator_unbonding_delegations_response.dart | 2 +- .../query/get_block_with_txs_response.dart | 2 +- .../query/get_txs_event_request.dart | 2 +- .../query/get_txs_event_response.dart | 4 ++-- .../query/query_module_versions_response.dart | 2 +- .../messages/base_vesting_account.dart | 6 +++--- .../cosmos_vesting_v1beta1/messages/period.dart | 2 +- .../messages/periodic_vesting_account.dart | 2 +- .../service/create_periodic_vesting_account.dart | 2 +- .../service/create_permanent_locked_account.dart | 2 +- .../tendermint_crypto/messages/proof_ops.dart | 2 +- .../tendermint_p2p/messages/message/pex_addrs.dart | 2 +- .../tendermint_types/messages/commit.dart | 2 +- .../messages/evidence/evidence_list.dart | 2 +- .../evidence/light_client_attack_evidence.dart | 2 +- .../tendermint_types/messages/extended_commit.dart | 2 +- .../tendermint_types/messages/validator_set.dart | 2 +- .../tendermint/methods/tx/broadcast_tx_commit.dart | 3 +-- .../tendermint/models/models/check_tx.dart | 2 +- .../models/models/deliver_tx_response.dart | 8 ++++---- .../tendermint/models/models/tx_response.dart | 6 +++--- .../models/models/ban_status_response.dart | 2 +- .../models/models/streaming_swap_state.dart | 4 ++-- .../thornode/models/models/vault_info.dart | 14 +++++++------- .../thornode/models/models/vault_pubkey_info.dart | 2 +- .../thornode/models/models/vault_pubkeys_info.dart | 6 +++--- lib/src/utils/quick_extensions.dart | 4 ++-- pubspec.yaml | 2 +- 278 files changed, 358 insertions(+), 352 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 795d591..7e40462 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.0 + +* Fix parsing transaction. + ## 1.0.0 * Update dependencies diff --git a/lib/src/models/ibc/capability_v1/messages/capability_owners.dart b/lib/src/models/ibc/capability_v1/messages/capability_owners.dart index a8a6f29..fa23d3a 100755 --- a/lib/src/models/ibc/capability_v1/messages/capability_owners.dart +++ b/lib/src/models/ibc/capability_v1/messages/capability_owners.dart @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; /// CapabilityOwners defines a set of owners of a single Capability. The set of owners must be unique. class CapabilityOwners extends CosmosMessage { final List owners; - CapabilityOwners(List owners) : owners = owners.mutable; + CapabilityOwners(List owners) : owners = owners.immutable; factory CapabilityOwners.deserialize(List bytes) { final deocde = CosmosProtocolBuffer.decode(bytes); return CapabilityOwners( diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/messages/identified_packet_fees.dart b/lib/src/models/ibc/ibc_applications_fee_v1/messages/identified_packet_fees.dart index d334b18..c885ebb 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/messages/identified_packet_fees.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/messages/identified_packet_fees.dart @@ -13,7 +13,7 @@ class IbcFeeIdentifiedPacketFees extends CosmosMessage { final List packetFees; IbcFeeIdentifiedPacketFees( {required this.packetId, required List packetFees}) - : packetFees = packetFees.mutable; + : packetFees = packetFees.immutable; factory IbcFeeIdentifiedPacketFees.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcFeeIdentifiedPacketFees( diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/messages/packet_fees.dart b/lib/src/models/ibc/ibc_applications_fee_v1/messages/packet_fees.dart index 21bc17e..782f146 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/messages/packet_fees.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/messages/packet_fees.dart @@ -9,7 +9,7 @@ class PacketFees extends CosmosMessage { /// list of packet fees final List packetFees; PacketFees(List packetFees) - : packetFees = packetFees.mutable; + : packetFees = packetFees.immutable; factory PacketFees.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return PacketFees(decode diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_fee_enabled_channels_response.dart b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_fee_enabled_channels_response.dart index 3a33b3d..3c1c6f1 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_fee_enabled_channels_response.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_fee_enabled_channels_response.dart @@ -14,7 +14,7 @@ class QueryFeeEnabledChannelsResponse extends CosmosMessage { QueryFeeEnabledChannelsResponse( {required List feeEnabledChannels, this.pagination}) - : feeEnabledChannels = feeEnabledChannels.mutable; + : feeEnabledChannels = feeEnabledChannels.immutable; factory QueryFeeEnabledChannelsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryFeeEnabledChannelsResponse( diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_for_channel_response.dart b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_for_channel_response.dart index f968cc8..46a9725 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_for_channel_response.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_for_channel_response.dart @@ -14,7 +14,7 @@ class QueryIncentivizedPacketsForChannelResponse extends CosmosMessage { QueryIncentivizedPacketsForChannelResponse( {required List incentivizedPackets, this.pagination}) - : incentivizedPackets = incentivizedPackets.mutable; + : incentivizedPackets = incentivizedPackets.immutable; factory QueryIncentivizedPacketsForChannelResponse.deserialize( List bytes) { diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_response.dart b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_response.dart index 8b3c625..18889e6 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_response.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_incentivized_packets_response.dart @@ -14,7 +14,7 @@ class QueryIncentivizedPacketsResponse extends CosmosMessage { QueryIncentivizedPacketsResponse( {required List incentivizedPackets, this.pagination}) - : incentivizedPackets = incentivizedPackets.mutable; + : incentivizedPackets = incentivizedPackets.immutable; factory QueryIncentivizedPacketsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_ack_fees_response.dart b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_ack_fees_response.dart index e3a835a..dddc406 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_ack_fees_response.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_ack_fees_response.dart @@ -8,7 +8,7 @@ class QueryTotalAckFeesResponse extends CosmosMessage { /// the total packet acknowledgement fees final List recvFees; QueryTotalAckFeesResponse({required List recvFees}) - : recvFees = recvFees.mutable; + : recvFees = recvFees.immutable; factory QueryTotalAckFeesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryTotalAckFeesResponse( diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_recv_fees_response.dart b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_recv_fees_response.dart index 5b180a4..59d6388 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_recv_fees_response.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_recv_fees_response.dart @@ -8,7 +8,7 @@ class QueryTotalRecvFeesResponse extends CosmosMessage { /// the total packet receive fees final List recvFees; QueryTotalRecvFeesResponse({required List recvFees}) - : recvFees = recvFees.mutable; + : recvFees = recvFees.immutable; factory QueryTotalRecvFeesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryTotalRecvFeesResponse( diff --git a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_timeout_fees_response.dart b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_timeout_fees_response.dart index 9ba8813..a1df39d 100755 --- a/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_timeout_fees_response.dart +++ b/lib/src/models/ibc/ibc_applications_fee_v1/query/query_total_timeout_fees_response.dart @@ -8,7 +8,7 @@ class QueryTotalTimeoutFeesResponse extends CosmosMessage { /// the total packet receive fees final List timeoutFees; QueryTotalTimeoutFeesResponse({required List timeoutFees}) - : timeoutFees = timeoutFees.mutable; + : timeoutFees = timeoutFees.immutable; factory QueryTotalTimeoutFeesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryTotalTimeoutFeesResponse( diff --git a/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/controller_genesis_state.dart b/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/controller_genesis_state.dart index 57e6bc4..199f39e 100755 --- a/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/controller_genesis_state.dart +++ b/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/controller_genesis_state.dart @@ -16,8 +16,8 @@ class ControllerGenesisState extends CosmosMessage { required List interchainAccounts, List? ports, required this.params}) - : activeChannels = activeChannels.mutable, - interchainAccounts = interchainAccounts.mutable, + : activeChannels = activeChannels.immutable, + interchainAccounts = interchainAccounts.immutable, ports = ports?.nullOnEmpy; factory ControllerGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/host_genesis_state.dart b/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/host_genesis_state.dart index 9f1362a..a34d1d8 100755 --- a/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/host_genesis_state.dart +++ b/lib/src/models/ibc/ibc_applications_interchain_accounts_genesis_v1/messages/host_genesis_state.dart @@ -17,8 +17,8 @@ class HostGenesisState extends CosmosMessage { required List interchainAccounts, this.port, required this.params}) - : activeChannels = activeChannels.mutable, - interchainAccounts = interchainAccounts.mutable; + : activeChannels = activeChannels.immutable, + interchainAccounts = interchainAccounts.immutable; factory HostGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return HostGenesisState( diff --git a/lib/src/models/ibc/ibc_applications_transfer_v1/query/query_denom_traces_response.dart b/lib/src/models/ibc/ibc_applications_transfer_v1/query/query_denom_traces_response.dart index e1f21ef..047cd75 100755 --- a/lib/src/models/ibc/ibc_applications_transfer_v1/query/query_denom_traces_response.dart +++ b/lib/src/models/ibc/ibc_applications_transfer_v1/query/query_denom_traces_response.dart @@ -13,7 +13,7 @@ class QueryDenomTracesResponse extends CosmosMessage { final PageResponse? pagination; QueryDenomTracesResponse( {required List denomTraces, this.pagination}) - : denomTraces = denomTraces.mutable; + : denomTraces = denomTraces.immutable; factory QueryDenomTracesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryDenomTracesResponse( diff --git a/lib/src/models/ibc/ibc_core_channel_v1/messages/genesis_state.dart b/lib/src/models/ibc/ibc_core_channel_v1/messages/genesis_state.dart index 22f8d8b..f1f8e08 100755 --- a/lib/src/models/ibc/ibc_core_channel_v1/messages/genesis_state.dart +++ b/lib/src/models/ibc/ibc_core_channel_v1/messages/genesis_state.dart @@ -30,13 +30,13 @@ class IbcChannelGenesisState extends CosmosMessage { required List ackSequences, this.nextChannelSequence, required this.params}) - : channels = channels.mutable, - acknowledgements = acknowledgements.mutable, - commitments = commitments.mutable, - receipts = receipts.mutable, - sendSequences = sendSequences.mutable, - recvSequences = recvSequences.mutable, - ackSequences = ackSequences.mutable; + : channels = channels.immutable, + acknowledgements = acknowledgements.immutable, + commitments = commitments.immutable, + receipts = receipts.immutable, + sendSequences = sendSequences.immutable, + recvSequences = recvSequences.immutable, + ackSequences = ackSequences.immutable; factory IbcChannelGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcChannelGenesisState( diff --git a/lib/src/models/ibc/ibc_core_channel_v1/messages/identified_channel.dart b/lib/src/models/ibc/ibc_core_channel_v1/messages/identified_channel.dart index c57d26a..d1e3481 100755 --- a/lib/src/models/ibc/ibc_core_channel_v1/messages/identified_channel.dart +++ b/lib/src/models/ibc/ibc_core_channel_v1/messages/identified_channel.dart @@ -41,7 +41,7 @@ class IbcChannelIdentifiedChannel extends CosmosMessage { this.portId, this.channelId, this.upgradeSequence}) - : connectionHops = connectionHops?.mutable; + : connectionHops = connectionHops?.immutable; factory IbcChannelIdentifiedChannel.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcChannelIdentifiedChannel( diff --git a/lib/src/models/ibc/ibc_core_channel_v1/messages/upgrade_fields.dart b/lib/src/models/ibc/ibc_core_channel_v1/messages/upgrade_fields.dart index ce83804..5f570c3 100755 --- a/lib/src/models/ibc/ibc_core_channel_v1/messages/upgrade_fields.dart +++ b/lib/src/models/ibc/ibc_core_channel_v1/messages/upgrade_fields.dart @@ -9,7 +9,7 @@ class UpgradeFields extends CosmosMessage { final List? connectionHops; final String? version; UpgradeFields({this.ordering, List? connectionHops, this.version}) - : connectionHops = connectionHops?.mutable; + : connectionHops = connectionHops?.immutable; factory UpgradeFields.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return UpgradeFields( diff --git a/lib/src/models/ibc/ibc_core_client_v1/messages/client_consensus_states.dart b/lib/src/models/ibc/ibc_core_client_v1/messages/client_consensus_states.dart index 0bc911c..6e39620 100755 --- a/lib/src/models/ibc/ibc_core_client_v1/messages/client_consensus_states.dart +++ b/lib/src/models/ibc/ibc_core_client_v1/messages/client_consensus_states.dart @@ -13,7 +13,7 @@ class IbcClientClientConsensusStates extends CosmosMessage { final List consensusStates; IbcClientClientConsensusStates( {required List consensusStates, this.clientId}) - : consensusStates = consensusStates.mutable; + : consensusStates = consensusStates.immutable; factory IbcClientClientConsensusStates.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcClientClientConsensusStates( diff --git a/lib/src/models/ibc/ibc_core_client_v1/messages/genesis_state.dart b/lib/src/models/ibc/ibc_core_client_v1/messages/genesis_state.dart index 9d0996f..d1662be 100755 --- a/lib/src/models/ibc/ibc_core_client_v1/messages/genesis_state.dart +++ b/lib/src/models/ibc/ibc_core_client_v1/messages/genesis_state.dart @@ -32,9 +32,9 @@ class IbcClientGenesisState extends CosmosMessage { required this.params, this.createLocalhost, this.nextClientSequence}) - : clients = clients.mutable, - clientsConsensus = clientsConsensus.mutable, - clientsMetadata = clientsMetadata.mutable; + : clients = clients.immutable, + clientsConsensus = clientsConsensus.immutable, + clientsMetadata = clientsMetadata.immutable; factory IbcClientGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcClientGenesisState( diff --git a/lib/src/models/ibc/ibc_core_client_v1/messages/identified_genesis_metadata.dart b/lib/src/models/ibc/ibc_core_client_v1/messages/identified_genesis_metadata.dart index 14bfc33..a78d07f 100755 --- a/lib/src/models/ibc/ibc_core_client_v1/messages/identified_genesis_metadata.dart +++ b/lib/src/models/ibc/ibc_core_client_v1/messages/identified_genesis_metadata.dart @@ -10,7 +10,7 @@ class IbcClientIdentifiedGenesisMetadata extends CosmosMessage { final List clientMetadata; IbcClientIdentifiedGenesisMetadata( {this.clientId, required List clientMetadata}) - : clientMetadata = clientMetadata.mutable; + : clientMetadata = clientMetadata.immutable; factory IbcClientIdentifiedGenesisMetadata.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcClientIdentifiedGenesisMetadata( diff --git a/lib/src/models/ibc/ibc_core_client_v1/query/query_client_states_response.dart b/lib/src/models/ibc/ibc_core_client_v1/query/query_client_states_response.dart index 93553e7..87044c1 100755 --- a/lib/src/models/ibc/ibc_core_client_v1/query/query_client_states_response.dart +++ b/lib/src/models/ibc/ibc_core_client_v1/query/query_client_states_response.dart @@ -14,7 +14,7 @@ class QueryClientStatesResponse extends CosmosMessage { QueryClientStatesResponse( {required List clinetStates, this.pagination}) - : clinetStates = clinetStates.mutable; + : clinetStates = clinetStates.immutable; factory QueryClientStatesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryClientStatesResponse( diff --git a/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_state_heights_response.dart b/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_state_heights_response.dart index d9e5c69..5b7dc46 100755 --- a/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_state_heights_response.dart +++ b/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_state_heights_response.dart @@ -13,7 +13,7 @@ class QueryConsensusStateHeightsResponse extends CosmosMessage { final PageResponse? pagination; QueryConsensusStateHeightsResponse( {required List consensusStateHeights, this.pagination}) - : consensusStateHeights = consensusStateHeights.mutable; + : consensusStateHeights = consensusStateHeights.immutable; factory QueryConsensusStateHeightsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_states_response.dart b/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_states_response.dart index d703c13..715d084 100755 --- a/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_states_response.dart +++ b/lib/src/models/ibc/ibc_core_client_v1/query/query_consensus_states_response.dart @@ -14,7 +14,7 @@ class QueryConsensusStatesResponse extends CosmosMessage { QueryConsensusStatesResponse( {required List consensusStates, this.pagination}) - : consensusStates = consensusStates.mutable; + : consensusStates = consensusStates.immutable; factory QueryConsensusStatesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryConsensusStatesResponse( diff --git a/lib/src/models/ibc/ibc_core_connection_v1/messages/client_paths.dart b/lib/src/models/ibc/ibc_core_connection_v1/messages/client_paths.dart index ff739e7..d5431cd 100755 --- a/lib/src/models/ibc/ibc_core_connection_v1/messages/client_paths.dart +++ b/lib/src/models/ibc/ibc_core_connection_v1/messages/client_paths.dart @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class IbcConnectionClientPaths extends CosmosMessage { /// list of connection paths final List? paths; - IbcConnectionClientPaths({List? paths}) : paths = paths?.mutable; + IbcConnectionClientPaths({List? paths}) : paths = paths?.immutable; factory IbcConnectionClientPaths.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcConnectionClientPaths(paths: decode.getFields(1)); diff --git a/lib/src/models/ibc/ibc_core_connection_v1/messages/connection_end.dart b/lib/src/models/ibc/ibc_core_connection_v1/messages/connection_end.dart index 74a027d..7480a23 100755 --- a/lib/src/models/ibc/ibc_core_connection_v1/messages/connection_end.dart +++ b/lib/src/models/ibc/ibc_core_connection_v1/messages/connection_end.dart @@ -31,7 +31,7 @@ class IbcConnectionConnectionEnd extends CosmosMessage { this.state, required this.counterparty, this.delayPeriod}) - : versions = versions?.mutable; + : versions = versions?.immutable; factory IbcConnectionConnectionEnd.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcConnectionConnectionEnd( diff --git a/lib/src/models/ibc/ibc_core_connection_v1/messages/genesis_state.dart b/lib/src/models/ibc/ibc_core_connection_v1/messages/genesis_state.dart index cf2f1d7..1b3f7d8 100755 --- a/lib/src/models/ibc/ibc_core_connection_v1/messages/genesis_state.dart +++ b/lib/src/models/ibc/ibc_core_connection_v1/messages/genesis_state.dart @@ -19,8 +19,8 @@ class IbcConnectionGenesisState extends CosmosMessage { required List clientConnectionPaths, this.nextConnectionSequence, required this.params}) - : connections = connections.mutable, - clientConnectionPaths = clientConnectionPaths.mutable; + : connections = connections.immutable, + clientConnectionPaths = clientConnectionPaths.immutable; factory IbcConnectionGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcConnectionGenesisState( diff --git a/lib/src/models/ibc/ibc_core_connection_v1/messages/version.dart b/lib/src/models/ibc/ibc_core_connection_v1/messages/version.dart index 46d408f..437ec6f 100755 --- a/lib/src/models/ibc/ibc_core_connection_v1/messages/version.dart +++ b/lib/src/models/ibc/ibc_core_connection_v1/messages/version.dart @@ -10,7 +10,7 @@ class IbcConnectionVersion extends CosmosMessage { /// list of features compatible with the specified identifier final List? features; IbcConnectionVersion({this.identifier, List? features}) - : features = features?.mutable; + : features = features?.immutable; factory IbcConnectionVersion.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcConnectionVersion( diff --git a/lib/src/models/ibc/ibc_core_connection_v1/service/msg_connection_open_try.dart b/lib/src/models/ibc/ibc_core_connection_v1/service/msg_connection_open_try.dart index c46ce94..45a38ad 100755 --- a/lib/src/models/ibc/ibc_core_connection_v1/service/msg_connection_open_try.dart +++ b/lib/src/models/ibc/ibc_core_connection_v1/service/msg_connection_open_try.dart @@ -49,7 +49,7 @@ class IbcConnectionMsgConnectionOpenTry extends CosmosMessage required this.consensusHeight, this.signer, List? hostConsensusStateProof, - }) : counterpartyVersions = counterpartyVersions?.mutable, + }) : counterpartyVersions = counterpartyVersions?.immutable, proofInit = BytesUtils.tryToBytes(proofInit, unmodifiable: true), proofClient = BytesUtils.tryToBytes(proofClient, unmodifiable: true), proofConsensus = diff --git a/lib/src/models/ibc/ibc_lightclients_wasm_v1/messages/genesis_state.dart b/lib/src/models/ibc/ibc_lightclients_wasm_v1/messages/genesis_state.dart index 17e38f7..1fcae21 100755 --- a/lib/src/models/ibc/ibc_lightclients_wasm_v1/messages/genesis_state.dart +++ b/lib/src/models/ibc/ibc_lightclients_wasm_v1/messages/genesis_state.dart @@ -9,7 +9,7 @@ class IbcLightClientsWasmGenesisState extends CosmosMessage { /// uploaded light client wasm contracts final List contracts; IbcLightClientsWasmGenesisState(List contracts) - : contracts = contracts.mutable; + : contracts = contracts.immutable; factory IbcLightClientsWasmGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return IbcLightClientsWasmGenesisState(decode diff --git a/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/accumulator_content.dart b/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/accumulator_content.dart index 4c4b57c..4739d97 100644 --- a/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/accumulator_content.dart +++ b/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/accumulator_content.dart @@ -10,7 +10,7 @@ class OsmosisAccumAccumulatorContent extends CosmosMessage { final String totalShares; OsmosisAccumAccumulatorContent( {required List accumValue, required this.totalShares}) - : accumValue = accumValue.mutable; + : accumValue = accumValue.immutable; factory OsmosisAccumAccumulatorContent.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisAccumAccumulatorContent( diff --git a/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/record_msg.dart b/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/record_msg.dart index 9ff90e5..22adfe7 100644 --- a/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/record_msg.dart +++ b/lib/src/models/networks/osmosis/osmosis_accum_v1beta1/messages/record_msg.dart @@ -38,8 +38,8 @@ class OsmosisAccumRecord extends CosmosMessage { required this.numShares, required List accumValuePerShare, required List unclaimedRewardsTotal, - }) : accumValuePerShare = accumValuePerShare.mutable, - unclaimedRewardsTotal = unclaimedRewardsTotal.mutable; + }) : accumValuePerShare = accumValuePerShare.immutable, + unclaimedRewardsTotal = unclaimedRewardsTotal.immutable; factory OsmosisAccumRecord.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisAccumRecord( diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/full_position_breakdown.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/full_position_breakdown.dart index fd96121..4e47b3f 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/full_position_breakdown.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/full_position_breakdown.dart @@ -26,9 +26,9 @@ class FullPositionBreakdown extends CosmosMessage { required List claimableSpreadRewards, required List claimableIncentives, required List forfeitedIncentives}) - : claimableSpreadRewards = claimableSpreadRewards.mutable, - claimableIncentives = claimableIncentives.mutable, - forfeitedIncentives = forfeitedIncentives.mutable; + : claimableSpreadRewards = claimableSpreadRewards.immutable, + claimableIncentives = claimableIncentives.immutable, + forfeitedIncentives = forfeitedIncentives.immutable; factory FullPositionBreakdown.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return FullPositionBreakdown( diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/pool_data.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/pool_data.dart index bf445d1..4d7d845 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/pool_data.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/pool_data.dart @@ -26,9 +26,9 @@ class OsmosisConcentratedLiquidityPoolData extends CosmosMessage { incentivesAccumulators, required List incentiveRecords}) - : ticks = ticks.mutable, - incentivesAccumulators = incentivesAccumulators.mutable, - incentiveRecords = incentiveRecords.mutable; + : ticks = ticks.immutable, + incentivesAccumulators = incentivesAccumulators.immutable, + incentiveRecords = incentiveRecords.immutable; factory OsmosisConcentratedLiquidityPoolData.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisConcentratedLiquidityPoolData( diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/position_data.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/position_data.dart index 88cd39c..31b4bef 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/position_data.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/position_data.dart @@ -17,7 +17,7 @@ class OsmosisConcentratedLiquidityPositionData extends CosmosMessage { this.lockId, required this.spreadRewardAccumRecord, required List uptimeAccumRecords, - }) : uptimeAccumRecords = uptimeAccumRecords.mutable; + }) : uptimeAccumRecords = uptimeAccumRecords.immutable; factory OsmosisConcentratedLiquidityPositionData.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_info.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_info.dart index e6cb089..64bba4b 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_info.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_info.dart @@ -39,7 +39,7 @@ class OsmosisConcentratedLiquidityTickInfo extends CosmosMessage { spreadRewardGrowthOsppositeDirectionOfLastTraversal, required this.uptimeTrackers}) : spreadRewardGrowthOsppositeDirectionOfLastTraversal = - spreadRewardGrowthOsppositeDirectionOfLastTraversal.mutable; + spreadRewardGrowthOsppositeDirectionOfLastTraversal.immutable; factory OsmosisConcentratedLiquidityTickInfo.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisConcentratedLiquidityTickInfo( diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_spacing_decrease_proposal.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_spacing_decrease_proposal.dart index b9c4b8e..610f6a7 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_spacing_decrease_proposal.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/tick_spacing_decrease_proposal.dart @@ -17,7 +17,7 @@ class OsmosisConcentratedLiquidityTickSpacingDecreaseProposal this.description, required List poolIdToTickSpacingRecords, - }) : poolIdToTickSpacingRecords = poolIdToTickSpacingRecords.mutable; + }) : poolIdToTickSpacingRecords = poolIdToTickSpacingRecords.immutable; factory OsmosisConcentratedLiquidityTickSpacingDecreaseProposal.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_tracker.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_tracker.dart index e015ffd..d304195 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_tracker.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_tracker.dart @@ -7,7 +7,7 @@ class OsmosisConcentratedLiquidityUptimeTrackers extends CosmosMessage { final List list; OsmosisConcentratedLiquidityUptimeTrackers( List list) - : list = list.mutable; + : list = list.immutable; factory OsmosisConcentratedLiquidityUptimeTrackers.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_trackers.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_trackers.dart index c116e1f..8352c48 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_trackers.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/messages/uptime_trackers.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisConcentratedLiquidityUptimeTracker extends CosmosMessage { final List uptimeGrowthOutside; OsmosisConcentratedLiquidityUptimeTracker(List uptimeGrowthOutside) - : uptimeGrowthOutside = uptimeGrowthOutside.mutable; + : uptimeGrowthOutside = uptimeGrowthOutside.immutable; factory OsmosisConcentratedLiquidityUptimeTracker.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_incentives_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_incentives_response.dart index 4140183..ad526e0 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_incentives_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_incentives_response.dart @@ -11,8 +11,8 @@ class OsmosisConcentratedLiquidityClaimableIncentivesResponse OsmosisConcentratedLiquidityClaimableIncentivesResponse({ required List claimableIncentives, required List forfeitedIncentives, - }) : claimableIncentives = claimableIncentives.mutable, - forfeitedIncentives = forfeitedIncentives.mutable; + }) : claimableIncentives = claimableIncentives.immutable, + forfeitedIncentives = forfeitedIncentives.immutable; factory OsmosisConcentratedLiquidityClaimableIncentivesResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_spread_rewards_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_spread_rewards_response.dart index d99bb64..d4a116a 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_spread_rewards_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/claimable_spread_rewards_response.dart @@ -9,7 +9,7 @@ class OsmosisConcentratedLiquidityClaimableSpreadRewardsResponse OsmosisConcentratedLiquidityClaimableSpreadRewardsResponse( List claimableSpreadRewards) - : claimableSpreadRewards = claimableSpreadRewards.mutable; + : claimableSpreadRewards = claimableSpreadRewards.immutable; factory OsmosisConcentratedLiquidityClaimableSpreadRewardsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/get_total_liquidity_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/get_total_liquidity_response.dart index 8330f49..8c1af73 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/get_total_liquidity_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/get_total_liquidity_response.dart @@ -9,7 +9,7 @@ class OsmosisConcentratedLiquidityGetTotalLiquidityResponse OsmosisConcentratedLiquidityGetTotalLiquidityResponse( List totalLiquidity) - : totalLiquidity = totalLiquidity.mutable; + : totalLiquidity = totalLiquidity.immutable; factory OsmosisConcentratedLiquidityGetTotalLiquidityResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/incentive_records_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/incentive_records_response.dart index e8ddf64..bf89602 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/incentive_records_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/incentive_records_response.dart @@ -15,7 +15,7 @@ class OsmosisConcentratedLiquidityIncentiveRecordsResponse {required List incentiveRecords, this.pagination}) - : incentiveRecords = incentiveRecords.mutable; + : incentiveRecords = incentiveRecords.immutable; factory OsmosisConcentratedLiquidityIncentiveRecordsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_net_in_direction_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_net_in_direction_response.dart index 1d6e28c..642d4f9 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_net_in_direction_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_net_in_direction_response.dart @@ -16,7 +16,7 @@ class OsmosisConcentratedLiquidityLiquidityNetInDirectionResponse this.currentTick, required this.currentLiquidity, required this.currentSqrtPrice}) - : liquidityDepths = liquidityDepths.mutable; + : liquidityDepths = liquidityDepths.immutable; factory OsmosisConcentratedLiquidityLiquidityNetInDirectionResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_per_tick_range_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_per_tick_range_response.dart index 1e43a78..ad2c891 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_per_tick_range_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/liquidity_per_tick_range_response.dart @@ -12,7 +12,7 @@ class OsmosisConcentratedLiquidityLiquidityPerTickRangeResponse {required List liquidity, this.bucketIndex}) - : liquidity = liquidity.mutable; + : liquidity = liquidity.immutable; factory OsmosisConcentratedLiquidityLiquidityPerTickRangeResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/num_next_initialized_ticks_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/num_next_initialized_ticks_response.dart index c544143..7d5acca 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/num_next_initialized_ticks_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/num_next_initialized_ticks_response.dart @@ -14,7 +14,7 @@ class OsmosisConcentratedLiquidityNumNextInitializedTicksResponse required List liquidityDepths, this.currentTick, required this.currentLiquidity, - }) : liquidityDepths = liquidityDepths.mutable; + }) : liquidityDepths = liquidityDepths.immutable; factory OsmosisConcentratedLiquidityNumNextInitializedTicksResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/pool_accumulator_rewards_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/pool_accumulator_rewards_response.dart index 4f962e3..0ac434f 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/pool_accumulator_rewards_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/pool_accumulator_rewards_response.dart @@ -13,8 +13,8 @@ class OsmosisConcentratedLiquidityPoolAccumulatorRewardsResponse {required List spreadRewardGrowthGlobal, required List uptimeGrowthGlobal}) - : spreadRewardGrowthGlobal = spreadRewardGrowthGlobal.mutable, - uptimeGrowthGlobal = uptimeGrowthGlobal.mutable; + : spreadRewardGrowthGlobal = spreadRewardGrowthGlobal.immutable, + uptimeGrowthGlobal = uptimeGrowthGlobal.immutable; factory OsmosisConcentratedLiquidityPoolAccumulatorRewardsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/tick_accumulator_trackers_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/tick_accumulator_trackers_response.dart index e4abd84..7f5d4d3 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/tick_accumulator_trackers_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/tick_accumulator_trackers_response.dart @@ -14,8 +14,8 @@ class OsmosisConcentratedLiquidityTickAccumulatorTrackersResponse spreadRewardGrowthOppositeDirectionOfLastTraversal, required List uptimeTrackers}) : spreadRewardGrowthOppositeDirectionOfLastTraversal = - spreadRewardGrowthOppositeDirectionOfLastTraversal.mutable, - uptimeTrackers = uptimeTrackers.mutable; + spreadRewardGrowthOppositeDirectionOfLastTraversal.immutable, + uptimeTrackers = uptimeTrackers.immutable; factory OsmosisConcentratedLiquidityTickAccumulatorTrackersResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_positions_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_positions_response.dart index d763249..45c5e1d 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_positions_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_positions_response.dart @@ -12,7 +12,7 @@ class OsmosisConcentratedLiquidityUserPositionsResponse extends CosmosMessage { OsmosisConcentratedLiquidityUserPositionsResponse( {required List positions, this.pagination}) - : positions = positions.mutable; + : positions = positions.immutable; factory OsmosisConcentratedLiquidityUserPositionsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_unbonding_positions_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_unbonding_positions_response.dart index 04be5ec..594e78d 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_unbonding_positions_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/query/user_unbonding_positions_response.dart @@ -10,7 +10,7 @@ class OsmosisConcentratedLiquidityUserUnbondingPositionsResponse OsmosisConcentratedLiquidityUserUnbondingPositionsResponse( {required List positions}) - : positions = positions.mutable; + : positions = positions.immutable; factory OsmosisConcentratedLiquidityUserUnbondingPositionsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_incentives_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_incentives_response.dart index b08ddb1..0c11f3c 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_incentives_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_incentives_response.dart @@ -11,8 +11,8 @@ class OsmosisConcentratedLiquidityMsgCollectIncentivesResponse OsmosisConcentratedLiquidityMsgCollectIncentivesResponse( {required List collectedIncentives, required List forfeitedIncentives}) - : collectedIncentives = collectedIncentives.mutable, - forfeitedIncentives = forfeitedIncentives.mutable; + : collectedIncentives = collectedIncentives.immutable, + forfeitedIncentives = forfeitedIncentives.immutable; factory OsmosisConcentratedLiquidityMsgCollectIncentivesResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_spread_rewards_response.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_spread_rewards_response.dart index 6fed5b5..d79791d 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_spread_rewards_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_collect_spread_rewards_response.dart @@ -10,7 +10,7 @@ class OsmosisConcentratedLiquidityMsgCollectSpreadRewardsResponse OsmosisConcentratedLiquidityMsgCollectSpreadRewardsResponse( List collectedSpreadRewards) - : collectedSpreadRewards = collectedSpreadRewards.mutable; + : collectedSpreadRewards = collectedSpreadRewards.immutable; factory OsmosisConcentratedLiquidityMsgCollectSpreadRewardsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_create_position.dart b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_create_position.dart index 6d99cb1..7b0f473 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_create_position.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentrated_liquidity_v1beta1/services/msg_create_position.dart @@ -27,7 +27,7 @@ class OsmosisConcentratedLiquidityMsgCreatePosition extends CosmosMessage required List tokensProvided, required this.tokenMinAmount0, required this.tokenMinAmount1}) - : tokensProvided = tokensProvided.mutable; + : tokensProvided = tokensProvided.immutable; factory OsmosisConcentratedLiquidityMsgCreatePosition.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_concentratedliquidity/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_concentratedliquidity/messages/params.dart index 1538e97..fa5b5fd 100644 --- a/lib/src/models/networks/osmosis/osmosis_concentratedliquidity/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_concentratedliquidity/messages/params.dart @@ -52,9 +52,9 @@ class OsmosisConcentratedLiquidityParams extends CosmosMessage { List? unrestrictedPoolCreatorWhitelist, this.hookGasLimit}) : authorizedTickSpacing = authorizedTickSpacing?.nullOnEmpy, - authorizedSpreadFactors = authorizedSpreadFactors.mutable, + authorizedSpreadFactors = authorizedSpreadFactors.immutable, authorizedQuoteDenoms = authorizedQuoteDenoms?.nullOnEmpy, - authorizedUptimes = authorizedUptimes.mutable, + authorizedUptimes = authorizedUptimes.immutable, unrestrictedPoolCreatorWhitelist = unrestrictedPoolCreatorWhitelist?.nullOnEmpy; factory OsmosisConcentratedLiquidityParams.deserialize(List bytes) { diff --git a/lib/src/models/networks/osmosis/osmosis_downtimedetector_v1beta1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_downtimedetector_v1beta1/messages/genesis_state.dart index c2a74f6..6fd087a 100644 --- a/lib/src/models/networks/osmosis/osmosis_downtimedetector_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_downtimedetector_v1beta1/messages/genesis_state.dart @@ -10,7 +10,7 @@ class OsmosisDowntimeDetectorGenesisState extends CosmosMessage { OsmosisDowntimeDetectorGenesisState( {required List downtimes, required this.lastBlockTime}) - : downtimes = downtimes.mutable; + : downtimes = downtimes.immutable; factory OsmosisDowntimeDetectorGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisDowntimeDetectorGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_epochs_v1beta1/messages/senesis_state.dart b/lib/src/models/networks/osmosis/osmosis_epochs_v1beta1/messages/senesis_state.dart index 4959579..c027956 100644 --- a/lib/src/models/networks/osmosis/osmosis_epochs_v1beta1/messages/senesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_epochs_v1beta1/messages/senesis_state.dart @@ -8,7 +8,7 @@ import 'epoch_info.dart'; class OmosisEpochsGenesisState extends CosmosMessage { final List epochs; OmosisEpochsGenesisState(List epochs) - : epochs = epochs.mutable; + : epochs = epochs.immutable; factory OmosisEpochsGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OmosisEpochsGenesisState(decode diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_pool_models_balancer_v1beta1/service/msg_create_balancer_pool.dart b/lib/src/models/networks/osmosis/osmosis_gamm_pool_models_balancer_v1beta1/service/msg_create_balancer_pool.dart index 20051e6..7dda7b3 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_pool_models_balancer_v1beta1/service/msg_create_balancer_pool.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_pool_models_balancer_v1beta1/service/msg_create_balancer_pool.dart @@ -18,7 +18,7 @@ class OsmosisGammPoolmodelsBalancerMsgCreateBalancerPool extends CosmosMessage this.poolParams, required List poolAssets, this.futurePoolGovernor, - }) : poolAssets = poolAssets.mutable; + }) : poolAssets = poolAssets.immutable; factory OsmosisGammPoolmodelsBalancerMsgCreateBalancerPool.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/messages/pool.dart b/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/messages/pool.dart index 29d5033..40463e9 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/messages/pool.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/messages/pool.dart @@ -43,8 +43,8 @@ class OsmosisGammPoolmodelsStableSwapPool extends CosmosMessage { required List poolLiquidity, required List scalingFactor, this.scalingFactorController}) - : poolLiquidity = poolLiquidity.mutable, - scalingFactor = scalingFactor.mutable; + : poolLiquidity = poolLiquidity.immutable, + scalingFactor = scalingFactor.immutable; factory OsmosisGammPoolmodelsStableSwapPool.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammPoolmodelsStableSwapPool( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/services/msg_create_stable_swap_pool.dart b/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/services/msg_create_stable_swap_pool.dart index 06d0aba..4f49670 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/services/msg_create_stable_swap_pool.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_poolmodels_stableswap_v1beta1/services/msg_create_stable_swap_pool.dart @@ -26,7 +26,7 @@ class OsmosisGammPoolmodelsStableSwapMsgCreateStableswapPool List? scalingFactors, this.futurePoolGovernor, this.scalingFactorController, - }) : initialPoolLiquidity = initialPoolLiquidity.mutable, + }) : initialPoolLiquidity = initialPoolLiquidity.immutable, scalingFactors = scalingFactors?.nullOnEmpy; factory OsmosisGammPoolmodelsStableSwapMsgCreateStableswapPool.deserialize( List bytes) { diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/genesis_state.dart index e0f7d48..ef10605 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/genesis_state.dart @@ -16,7 +16,7 @@ class OsmosisGammGenesisState extends CosmosMessage { {required List pools, required this.nextPoolNumber, required this.params}) - : pools = pools.mutable; + : pools = pools.immutable; factory OsmosisGammGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/params.dart index 73d7757..a69c737 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/params.dart @@ -8,7 +8,7 @@ class OsmosisGammParams extends CosmosMessage { final List poolCreationFee; OsmosisGammParams(List poolCreationFee) - : poolCreationFee = poolCreationFee.mutable; + : poolCreationFee = poolCreationFee.immutable; factory OsmosisGammParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammParams( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/pool.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/pool.dart index 758b8c3..2397f54 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/pool.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/pool.dart @@ -39,7 +39,7 @@ class OsmosisGammPool extends CosmosMessage { required this.totalShares, required List poolAssets, required this.totalWeight}) - : poolAssets = poolAssets.mutable; + : poolAssets = poolAssets.immutable; factory OsmosisGammPool.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammPool( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/smooth_weight_change_params.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/smooth_weight_change_params.dart index 9c76e39..d93ca43 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/smooth_weight_change_params.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/messages/smooth_weight_change_params.dart @@ -37,8 +37,8 @@ class OsmosisGammSmoothWeightChangeParams extends CosmosMessage { required this.duration, required List initialPoolWeights, required List targetPoolWeights}) - : initialPoolWeights = initialPoolWeights.mutable, - targetPoolWeights = targetPoolWeights.mutable; + : initialPoolWeights = initialPoolWeights.immutable, + targetPoolWeights = targetPoolWeights.immutable; factory OsmosisGammSmoothWeightChangeParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammSmoothWeightChangeParams( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_in_request.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_in_request.dart index 2737084..dfa51a9 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_in_request.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_in_request.dart @@ -19,7 +19,7 @@ class OsmosisGammQuerySwapExactAmountInRequest extends CosmosMessage this.poolId, this.tokenIn, required List routes}) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisGammQuerySwapExactAmountInRequest.deserialize( List bytes) { diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_out_request.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_out_request.dart index 9d7ed2e..1760146 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_out_request.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_swap_exact_amount_out_request.dart @@ -20,7 +20,7 @@ class OsmosisGammQuerySwapExactAmountOutRequest extends CosmosMessage this.poolId, this.tokenOut, required List routes}) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisGammQuerySwapExactAmountOutRequest.deserialize( List bytes) { diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_liquidity_response.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_liquidity_response.dart index 3213b98..83121ea 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_liquidity_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_liquidity_response.dart @@ -7,7 +7,7 @@ class OsmosisGammQueryTotalLiquidityResponse extends CosmosMessage { final List liquidity; OsmosisGammQueryTotalLiquidityResponse({required List liquidity}) - : liquidity = liquidity.mutable; + : liquidity = liquidity.immutable; factory OsmosisGammQueryTotalLiquidityResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammQueryTotalLiquidityResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_pool_liquidity_response.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_pool_liquidity_response.dart index 32578d7..ee086d7 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_pool_liquidity_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/query/query_total_pool_liquidity_response.dart @@ -7,7 +7,7 @@ class OsmosisGammQueryTotalPoolLiquidityResponse extends CosmosMessage { final List liquidity; OsmosisGammQueryTotalPoolLiquidityResponse({required List liquidity}) - : liquidity = liquidity.mutable; + : liquidity = liquidity.immutable; factory OsmosisGammQueryTotalPoolLiquidityResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool.dart index b595c33..9cf9768 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool.dart @@ -15,7 +15,7 @@ class OsmosisGammMsgExitPool extends CosmosMessage this.poolId, required this.shareInAmount, required List tokenOutMins}) - : tokenOutMins = tokenOutMins.mutable; + : tokenOutMins = tokenOutMins.immutable; factory OsmosisGammMsgExitPool.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammMsgExitPool( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool_response.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool_response.dart index 201c4a7..656af06 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/exit_pool_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisGammMsgExitPoolResponse extends CosmosMessage { final List tokenOut; OsmosisGammMsgExitPoolResponse({required List tokenOut}) - : tokenOut = tokenOut.mutable; + : tokenOut = tokenOut.immutable; factory OsmosisGammMsgExitPoolResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammMsgExitPoolResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool.dart index c2d12fc..080eba9 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool.dart @@ -16,7 +16,7 @@ class OsmosisGammMsgJoinPool extends CosmosMessage this.poolId, required this.shareOutAmount, required List tokenInMaxs}) - : tokenInMaxs = tokenInMaxs.mutable; + : tokenInMaxs = tokenInMaxs.immutable; factory OsmosisGammMsgJoinPool.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammMsgJoinPool( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool_response.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool_response.dart index 57636c2..01708c6 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/join_pool_response.dart @@ -8,7 +8,7 @@ class OsmosisGammMsgJoinPoolResponse extends CosmosMessage { final List tokenInMaxs; OsmosisGammMsgJoinPoolResponse( {required this.shareOutAmount, required List tokenInMaxs}) - : tokenInMaxs = tokenInMaxs.mutable; + : tokenInMaxs = tokenInMaxs.immutable; factory OsmosisGammMsgJoinPoolResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammMsgJoinPoolResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_in.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_in.dart index bfbbe0d..909e2d3 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_in.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_in.dart @@ -16,7 +16,7 @@ class OsmosisGammMsgSwapExactAmountIn extends CosmosMessage required List routes, required this.tokenIn, required this.tokenOutMinAmount}) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisGammMsgSwapExactAmountIn.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammMsgSwapExactAmountIn( diff --git a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_out.dart b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_out.dart index 5ea2778..9a37734 100644 --- a/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_out.dart +++ b/lib/src/models/networks/osmosis/osmosis_gamm_v1beta1/services/swap_exact_amount_out.dart @@ -17,7 +17,7 @@ class OsmosisGammMsgSwapExactAmountOut extends CosmosMessage required List routes, required this.tokenOut, required this.tokenInMaxAmount}) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisGammMsgSwapExactAmountOut.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisGammMsgSwapExactAmountOut( diff --git a/lib/src/models/networks/osmosis/osmosis_ibchooks/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_ibchooks/messages/params.dart index 912b222..d5ea3ee 100644 --- a/lib/src/models/networks/osmosis/osmosis_ibchooks/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_ibchooks/messages/params.dart @@ -5,7 +5,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisIbchooksParams extends CosmosMessage { final List allowedSsyncAckContracts; OsmosisIbchooksParams(List allowedSsyncAckContracts) - : allowedSsyncAckContracts = allowedSsyncAckContracts.mutable; + : allowedSsyncAckContracts = allowedSsyncAckContracts.immutable; factory OsmosisIbchooksParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIbchooksParams(decode.getFields(1)); diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/messages/gauge.dart b/lib/src/models/networks/osmosis/osmosis_incentives/messages/gauge.dart index 413f9d9..e725db4 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/messages/gauge.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/messages/gauge.dart @@ -48,8 +48,8 @@ class OsmosisIncentivesGauge extends CosmosMessage { this.numEpochsPaidOver, this.filledEpochs, required List distributedCoins}) - : coins = coins.mutable, - distributedCoins = distributedCoins.mutable; + : coins = coins.immutable, + distributedCoins = distributedCoins.immutable; factory OsmosisIncentivesGauge.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentivesGauge( diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_per_denom_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_per_denom_response.dart index 6e95d9b..3e54eba 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_per_denom_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_per_denom_response.dart @@ -13,7 +13,7 @@ class OsmosisIncentiveActiveGaugesPerDenomResponse extends CosmosMessage { OsmosisIncentiveActiveGaugesPerDenomResponse({ required List data, this.pagination, - }) : data = data.mutable; + }) : data = data.immutable; factory OsmosisIncentiveActiveGaugesPerDenomResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_response.dart index 6906b0a..74c4fc5 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/active_gauges_response.dart @@ -13,7 +13,7 @@ class OsmosisIncentiveActiveGaugesResponse extends CosmosMessage { OsmosisIncentiveActiveGaugesResponse({ required List data, this.pagination, - }) : data = data.mutable; + }) : data = data.immutable; factory OsmosisIncentiveActiveGaugesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentiveActiveGaugesResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/gauges_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/gauges_response.dart index 792d336..2f3910d 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/gauges_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/gauges_response.dart @@ -13,7 +13,7 @@ class OsmosisIncentiveGaugesResponse extends CosmosMessage { OsmosisIncentiveGaugesResponse({ required List data, this.pagination, - }) : data = data.mutable; + }) : data = data.immutable; factory OsmosisIncentiveGaugesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentiveGaugesResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/module_to_distribute_coins_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/module_to_distribute_coins_response.dart index 1417e7b..b88a126 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/module_to_distribute_coins_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/module_to_distribute_coins_response.dart @@ -7,7 +7,7 @@ class OsmosisIncentiveModuleToDistributeCoinsResponse extends CosmosMessage { /// Coins that have yet to be distributed final List coins; OsmosisIncentiveModuleToDistributeCoinsResponse(List coins) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisIncentiveModuleToDistributeCoinsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/query_lockable_durations_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/query_lockable_durations_response.dart index 387404c..e3700e8 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/query_lockable_durations_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/query_lockable_durations_response.dart @@ -7,7 +7,7 @@ class OsmosisIncentiveQueryLockableDurationsResponse extends CosmosMessage { final List lockableDurations; OsmosisIncentiveQueryLockableDurationsResponse( List lockableDurations) - : lockableDurations = lockableDurations.mutable; + : lockableDurations = lockableDurations.immutable; factory OsmosisIncentiveQueryLockableDurationsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/rewards_est_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/rewards_est_response.dart index 0eedc17..7114f32 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/rewards_est_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/rewards_est_response.dart @@ -7,7 +7,8 @@ class OsmosisIncentiveRewardsEstResponse extends CosmosMessage { /// Estimated coin rewards that will be recieved at provided address /// from specified locks between current time and end epoch final List coins; - OsmosisIncentiveRewardsEstResponse(List coins) : coins = coins.mutable; + OsmosisIncentiveRewardsEstResponse(List coins) + : coins = coins.immutable; factory OsmosisIncentiveRewardsEstResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentiveRewardsEstResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_per_denom_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_per_denom_response.dart index 257fe15..0dc6084 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_per_denom_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_per_denom_response.dart @@ -13,7 +13,7 @@ class OsmosisIncentiveUpcomingGaugesPerDenomResponse extends CosmosMessage { OsmosisIncentiveUpcomingGaugesPerDenomResponse({ required List upcomingGauges, this.pagination, - }) : upcomingGauges = upcomingGauges.mutable; + }) : upcomingGauges = upcomingGauges.immutable; factory OsmosisIncentiveUpcomingGaugesPerDenomResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_response.dart b/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_response.dart index e6d2961..c8e9fca 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/query/upcoming_gauges_response.dart @@ -13,7 +13,7 @@ class OsmosisIncentiveUpcomingGaugesResponse extends CosmosMessage { OsmosisIncentiveUpcomingGaugesResponse({ required List data, this.pagination, - }) : data = data.mutable; + }) : data = data.immutable; factory OsmosisIncentiveUpcomingGaugesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentiveUpcomingGaugesResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_add_to_gauge.dart b/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_add_to_gauge.dart index ba4827b..5d3315f 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_add_to_gauge.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_add_to_gauge.dart @@ -18,7 +18,7 @@ class OsmosisIncentiveMsgAddToGauge extends CosmosMessage OsmosisIncentiveMsgAddToGauge( {this.gaugeId, this.owner, required List rewards}) - : rewards = rewards.mutable; + : rewards = rewards.immutable; factory OsmosisIncentiveMsgAddToGauge.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentiveMsgAddToGauge( diff --git a/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_create_gauge.dart b/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_create_gauge.dart index 0d5ba25..e6346a4 100644 --- a/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_create_gauge.dart +++ b/lib/src/models/networks/osmosis/osmosis_incentives/services/msg_create_gauge.dart @@ -38,7 +38,7 @@ class OsmosisIncentiveMsgCreateGauge extends CosmosMessage required List coins, required this.startTime, this.numEpochsPaidOver}) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisIncentiveMsgCreateGauge.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisIncentiveMsgCreateGauge( diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_lockup/messages/genesis_state.dart index 0cfefd4..506b4ca 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/messages/genesis_state.dart @@ -13,8 +13,8 @@ class OsmosisLockupGenesisState extends CosmosMessage { this.lastLockId, required List locks, required List syntheticLocks, - }) : locks = locks.mutable, - syntheticLocks = syntheticLocks.mutable; + }) : locks = locks.immutable, + syntheticLocks = syntheticLocks.immutable; factory OsmosisLockupGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/messages/period_lock.dart b/lib/src/models/networks/osmosis/osmosis_lockup/messages/period_lock.dart index 4b6c464..dc74f79 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/messages/period_lock.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/messages/period_lock.dart @@ -36,7 +36,7 @@ class OsmosisLockupPeriodLock extends CosmosMessage { required this.duration, required this.endTime, required List coins}) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupPeriodLock.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_coins_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_coins_response.dart index 26cef70..11c22e9 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_coins_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_coins_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisLockupAccountLockedCoinsResponse extends CosmosMessage { final List coins; OsmosisLockupAccountLockedCoinsResponse(List coins) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupAccountLockedCoinsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisLockupAccountLockedCoinsResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_duration_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_duration_response.dart index e930551..f418b7c 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_duration_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_duration_response.dart @@ -7,7 +7,7 @@ class OsmosisLockupAccountLockedDurationResponse extends CosmosMessage { final List locks; OsmosisLockupAccountLockedDurationResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedDurationResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_denom_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_denom_response.dart index 16d136f..2aa98fc 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_denom_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_denom_response.dart @@ -8,7 +8,7 @@ class OsmosisLockupAccountLockedLongerDurationDenomResponse final List locks; OsmosisLockupAccountLockedLongerDurationDenomResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedLongerDurationDenomResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_not_unlocking_only_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_not_unlocking_only_response.dart index a52a8fb..a98ce17 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_not_unlocking_only_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_not_unlocking_only_response.dart @@ -8,7 +8,7 @@ class OsmosisLockupAccountLockedLongerDurationNotUnlockingOnlyResponse final List locks; OsmosisLockupAccountLockedLongerDurationNotUnlockingOnlyResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedLongerDurationNotUnlockingOnlyResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_response.dart index 1648e5f..e3ea462 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_longer_duration_response.dart @@ -7,7 +7,7 @@ class OsmosisLockupAccountLockedLongerDurationResponse extends CosmosMessage { final List locks; OsmosisLockupAccountLockedLongerDurationResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedLongerDurationResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_denom_reesponse.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_denom_reesponse.dart index 274b455..565f493 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_denom_reesponse.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_denom_reesponse.dart @@ -7,7 +7,7 @@ class OsmosisLockupAccountLockedPastTimeDenomResponse extends CosmosMessage { final List locks; OsmosisLockupAccountLockedPastTimeDenomResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedPastTimeDenomResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_not_unlocking_only_fesponse.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_not_unlocking_only_fesponse.dart index 100267e..c891e14 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_not_unlocking_only_fesponse.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_not_unlocking_only_fesponse.dart @@ -8,7 +8,7 @@ class OsmosisLockupAccountLockedPastTimeNotUnlockingOnlyResponse final List locks; OsmosisLockupAccountLockedPastTimeNotUnlockingOnlyResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedPastTimeNotUnlockingOnlyResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_response.dart index 296dece..a17ace3 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_locked_past_time_response.dart @@ -7,7 +7,7 @@ class OsmosisLockupAccountLockedPastTimeResponse extends CosmosMessage { final List locks; OsmosisLockupAccountLockedPastTimeResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountLockedPastTimeResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlockable_coins_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlockable_coins_response.dart index 3d9f206..db277c9 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlockable_coins_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlockable_coins_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisLockupAccountUnlockableCoinsResponse extends CosmosMessage { final List coins; OsmosisLockupAccountUnlockableCoinsResponse(List coins) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupAccountUnlockableCoinsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocked_before_time_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocked_before_time_response.dart index ceffa43..ae1fb99 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocked_before_time_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocked_before_time_response.dart @@ -7,7 +7,7 @@ class OsmosisLockupAccountUnlockedBeforeTimeResponse extends CosmosMessage { final List locks; OsmosisLockupAccountUnlockedBeforeTimeResponse( List locks) - : locks = locks.mutable; + : locks = locks.immutable; factory OsmosisLockupAccountUnlockedBeforeTimeResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocking_coins_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocking_coins_response.dart index abb5ed8..4c2fd73 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocking_coins_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/account_unlocking_coins_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisLockupAccountUnlockingCoinsResponse extends CosmosMessage { final List coins; OsmosisLockupAccountUnlockingCoinsResponse(List coins) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupAccountUnlockingCoinsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/module_balance_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/module_balance_response.dart index 79d943e..fda5e9c 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/module_balance_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/module_balance_response.dart @@ -5,7 +5,8 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisLockupModuleBalanceResponse extends CosmosMessage { final List coins; - OsmosisLockupModuleBalanceResponse(List coins) : coins = coins.mutable; + OsmosisLockupModuleBalanceResponse(List coins) + : coins = coins.immutable; factory OsmosisLockupModuleBalanceResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisLockupModuleBalanceResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/module_locked_amount_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/module_locked_amount_response.dart index 27a36bb..530b427 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/module_locked_amount_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/module_locked_amount_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisLockupModuleLockedAmountResponse extends CosmosMessage { final List coins; OsmosisLockupModuleLockedAmountResponse(List coins) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupModuleLockedAmountResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisLockupModuleLockedAmountResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/query/synthetic_lockups_by_lockup_id_response.dart b/lib/src/models/networks/osmosis/osmosis_lockup/query/synthetic_lockups_by_lockup_id_response.dart index d5c1264..50e2bba 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/query/synthetic_lockups_by_lockup_id_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/query/synthetic_lockups_by_lockup_id_response.dart @@ -8,7 +8,7 @@ class OsmosisLockupSyntheticLockupsByLockupIDResponse extends CosmosMessage { OsmosisLockupSyntheticLockupsByLockupIDResponse( List syntheticLocks) - : syntheticLocks = syntheticLocks.mutable; + : syntheticLocks = syntheticLocks.immutable; factory OsmosisLockupSyntheticLockupsByLockupIDResponse.deserialize( List bytes) { diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/services/begin_unlocking.dart b/lib/src/models/networks/osmosis/osmosis_lockup/services/begin_unlocking.dart index 3ce994a..17d811f 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/services/begin_unlocking.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/services/begin_unlocking.dart @@ -11,7 +11,7 @@ class OsmosisLockupMsgBeginUnlocking extends CosmosMessage final List coins; OsmosisLockupMsgBeginUnlocking( {this.owner, this.id, required List coins}) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupMsgBeginUnlocking.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisLockupMsgBeginUnlocking( diff --git a/lib/src/models/networks/osmosis/osmosis_lockup/services/lock_tokens.dart b/lib/src/models/networks/osmosis/osmosis_lockup/services/lock_tokens.dart index 599bbb2..3b833f7 100644 --- a/lib/src/models/networks/osmosis/osmosis_lockup/services/lock_tokens.dart +++ b/lib/src/models/networks/osmosis/osmosis_lockup/services/lock_tokens.dart @@ -12,7 +12,7 @@ class OsmosisLockupMsgLockTokens extends CosmosMessage final List coins; OsmosisLockupMsgLockTokens( {this.owner, required this.duration, required List coins}) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisLockupMsgLockTokens.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisLockupMsgLockTokens( diff --git a/lib/src/models/networks/osmosis/osmosis_mint_v1beta1/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_mint_v1beta1/messages/params.dart index e4ab176..b43e92c 100644 --- a/lib/src/models/networks/osmosis/osmosis_mint_v1beta1/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_mint_v1beta1/messages/params.dart @@ -50,7 +50,7 @@ class OsmosisMintParams extends CosmosMessage { weightedDeveloperRewardsReceivers, this.mintingRewardsDistributionStartEpoch}) : weightedDeveloperRewardsReceivers = - weightedDeveloperRewardsReceivers.mutable; + weightedDeveloperRewardsReceivers.immutable; factory OsmosisMintParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisMintParams( diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/distr_info.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/distr_info.dart index da02a65..acb3e21 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/distr_info.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/distr_info.dart @@ -10,7 +10,7 @@ class OsmosisPoolincentivesDistrInfo extends CosmosMessage { OsmosisPoolincentivesDistrInfo( {required this.totalWeight, required List records}) - : records = records.mutable; + : records = records.immutable; factory OsmosisPoolincentivesDistrInfo.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolincentivesDistrInfo( diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/genesis_state.dart index 2fa494d..2d68110 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/genesis_state.dart @@ -18,7 +18,7 @@ class OsmosisPoolincentivesGenesisState extends CosmosMessage { required List lockableDurations, this.distrInfo, this.poolToGauges}) - : lockableDurations = lockableDurations.mutable; + : lockableDurations = lockableDurations.immutable; factory OsmosisPoolincentivesGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolincentivesGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/lockable_durations_info.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/lockable_durations_info.dart index 2b5fbfe..9880923 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/lockable_durations_info.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/lockable_durations_info.dart @@ -6,7 +6,7 @@ class OsmosisPoolincentivesLockableDurationsInfo extends CosmosMessage { final List lockableDurations; OsmosisPoolincentivesLockableDurationsInfo( List lockableDurations) - : lockableDurations = lockableDurations.mutable; + : lockableDurations = lockableDurations.immutable; factory OsmosisPoolincentivesLockableDurationsInfo.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/pool_to_gauges.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/pool_to_gauges.dart index 54e5ded..7a40ab4 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/pool_to_gauges.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/pool_to_gauges.dart @@ -8,7 +8,7 @@ class OsmosisPoolincentivesPoolToGauges extends CosmosMessage { final List poolToGauge; OsmosisPoolincentivesPoolToGauges( List poolToGauge) - : poolToGauge = poolToGauge.mutable; + : poolToGauge = poolToGauge.immutable; factory OsmosisPoolincentivesPoolToGauges.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolincentivesPoolToGauges(decode diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/replace_pool_incentives_proposal.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/replace_pool_incentives_proposal.dart index 6f2ca1e..d53bddc 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/replace_pool_incentives_proposal.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/replace_pool_incentives_proposal.dart @@ -17,7 +17,7 @@ class OsmosisPoolincentivesReplacePoolIncentivesProposal extends CosmosMessage { {this.title, required this.description, required List records}) - : records = records.mutable; + : records = records.immutable; factory OsmosisPoolincentivesReplacePoolIncentivesProposal.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/update_pool_incentives_proposal.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/update_pool_incentives_proposal.dart index f51daa4..48cb9c4 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/update_pool_incentives_proposal.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/messages/update_pool_incentives_proposal.dart @@ -14,7 +14,7 @@ class OsmosisPoolincentivesUpdatePoolIncentivesProposal extends CosmosMessage { {this.title, required this.description, required List records}) - : records = records.mutable; + : records = records.immutable; factory OsmosisPoolincentivesUpdatePoolIncentivesProposal.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_external_incentive_gauges_response.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_external_incentive_gauges_response.dart index 0d4024a..e1822c7 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_external_incentive_gauges_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_external_incentive_gauges_response.dart @@ -9,7 +9,7 @@ class OsmosisPoolincentivesQueryExternalIncentiveGaugesResponse OsmosisPoolincentivesQueryExternalIncentiveGaugesResponse( List data) - : data = data.mutable; + : data = data.immutable; factory OsmosisPoolincentivesQueryExternalIncentiveGaugesResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_incentivized_pools_response.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_incentivized_pools_response.dart index 13431a7..d00903c 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_incentivized_pools_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_incentivized_pools_response.dart @@ -9,7 +9,7 @@ class OsmosisPoolincentivesQueryIncentivizedPoolsResponse OsmosisPoolincentivesQueryIncentivizedPoolsResponse( List incentivizedPools) - : incentivizedPools = incentivizedPools.mutable; + : incentivizedPools = incentivizedPools.immutable; factory OsmosisPoolincentivesQueryIncentivizedPoolsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_lockable_durations_response.dart b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_lockable_durations_response.dart index bd0d261..779c702 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_lockable_durations_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolincentives_v1beta1/query/query_lockable_durations_response.dart @@ -8,7 +8,7 @@ class OsmosisPoolincentivesQueryLockableDurationsResponse OsmosisPoolincentivesQueryLockableDurationsResponse( List lockableDurations) - : lockableDurations = lockableDurations.mutable; + : lockableDurations = lockableDurations.immutable; factory OsmosisPoolincentivesQueryLockableDurationsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/denom_pair_taker_fee_proposal.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/denom_pair_taker_fee_proposal.dart index 942e029..378c567 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/denom_pair_taker_fee_proposal.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/denom_pair_taker_fee_proposal.dart @@ -14,7 +14,7 @@ class OsmosisPoolManagerDenomPairTakerFeeProposal extends CosmosMessage { this.title, this.description, required List denomPairTakerFee, - }) : denomPairTakerFee = denomPairTakerFee.mutable; + }) : denomPairTakerFee = denomPairTakerFee.immutable; factory OsmosisPoolManagerDenomPairTakerFeeProposal.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/genesis_state.dart index 47f9882..ee806b6 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/genesis_state.dart @@ -30,9 +30,9 @@ class OsmosisPoolGenesisState extends CosmosMessage { required List poolVolumes, required List denomPairTakerFeeStore}) - : poolRoutes = poolRoutes.mutable, - poolVolumes = poolVolumes.mutable, - denomPairTakerFeeStore = denomPairTakerFeeStore.mutable; + : poolRoutes = poolRoutes.immutable, + poolVolumes = poolVolumes.immutable, + denomPairTakerFeeStore = denomPairTakerFeeStore.immutable; factory OsmosisPoolGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/params.dart index 5c1f091..2bfc5b1 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/params.dart @@ -25,7 +25,7 @@ class OsmosisPoolManagerParams extends CosmosMessage { required List poolCreationFee, required this.takerFeeParams, List? authorizedQuoteDenoms, - }) : poolCreationFee = poolCreationFee.mutable, + }) : poolCreationFee = poolCreationFee.immutable, authorizedQuoteDenoms = authorizedQuoteDenoms?.nullOnEmpy; factory OsmosisPoolManagerParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/pool_volume.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/pool_volume.dart index 288a06d..7184d97 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/pool_volume.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/pool_volume.dart @@ -13,7 +13,7 @@ class OsmosisPoolManagerPoolVolume extends CosmosMessage { OsmosisPoolManagerPoolVolume( {required this.poolId, required List poolVolume}) - : poolVolume = poolVolume.mutable; + : poolVolume = poolVolume.immutable; factory OsmosisPoolManagerPoolVolume.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolManagerPoolVolume( diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/taker_fees_tracker.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/taker_fees_tracker.dart index 57d9d45..59ed342 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/taker_fees_tracker.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/taker_fees_tracker.dart @@ -12,8 +12,8 @@ class OsmosisPoolManagerTakerFeesTracker extends CosmosMessage { {required List takerFeesToStakers, required List takerFeesToCommunityPool, this.heightAccountingStartsFrom}) - : takerFeesToStakers = takerFeesToStakers.mutable, - takerFeesToCommunityPool = takerFeesToCommunityPool.mutable; + : takerFeesToStakers = takerFeesToStakers.immutable, + takerFeesToCommunityPool = takerFeesToCommunityPool.immutable; factory OsmosisPoolManagerTakerFeesTracker.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolManagerTakerFeesTracker( diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/tracked_volume.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/tracked_volume.dart index b3a8b2f..dadea77 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/tracked_volume.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/messages/tracked_volume.dart @@ -5,7 +5,8 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisPoolManagerTrackedVolume extends CosmosMessage { final List amount; - OsmosisPoolManagerTrackedVolume(List amount) : amount = amount.mutable; + OsmosisPoolManagerTrackedVolume(List amount) + : amount = amount.immutable; factory OsmosisPoolManagerTrackedVolume.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolManagerTrackedVolume( diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_in_request.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_in_request.dart index 913d452..6fae4c7 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_in_request.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_in_request.dart @@ -16,7 +16,7 @@ class OsmosisPoolManagerEstimateSwapExactAmountInRequest extends CosmosMessage {this.poolId, this.tokenIn, required List routes}) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisPoolManagerEstimateSwapExactAmountInRequest.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_out_request.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_out_request.dart index abb87fe..8b2a847 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_out_request.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/estimate_swap_exact_amount_out_request.dart @@ -16,7 +16,7 @@ class OsmosisPoolManagerEstimateSwapExactAmountOutRequest extends CosmosMessage {this.poolId, required List routes, this.tokenOut}) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisPoolManagerEstimateSwapExactAmountOutRequest.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_liquidity_response.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_liquidity_response.dart index bf14932..0abd263 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_liquidity_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_liquidity_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisPoolManagerTotalLiquidityResponse extends CosmosMessage { final List liquidity; OsmosisPoolManagerTotalLiquidityResponse(List liquidity) - : liquidity = liquidity.mutable; + : liquidity = liquidity.immutable; factory OsmosisPoolManagerTotalLiquidityResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_pool_liquidity_response.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_pool_liquidity_response.dart index 8a143a4..72442a8 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_pool_liquidity_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_pool_liquidity_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisPoolManagerTotalPoolLiquidityResponse extends CosmosMessage { final List liquidity; OsmosisPoolManagerTotalPoolLiquidityResponse(List liquidity) - : liquidity = liquidity.mutable; + : liquidity = liquidity.immutable; factory OsmosisPoolManagerTotalPoolLiquidityResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_volume_for_pool_response.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_volume_for_pool_response.dart index cdf5c2b..b044b90 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_volume_for_pool_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/query/total_volume_for_pool_response.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisPoolManagerTotalVolumeForPoolResponse extends CosmosMessage { final List volume; OsmosisPoolManagerTotalVolumeForPoolResponse(List volume) - : volume = volume.mutable; + : volume = volume.immutable; factory OsmosisPoolManagerTotalVolumeForPoolResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_set_denom_pair_taker_fee.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_set_denom_pair_taker_fee.dart index 65bdd55..8e6c3bf 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_set_denom_pair_taker_fee.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_set_denom_pair_taker_fee.dart @@ -12,7 +12,7 @@ class OsmosisPoolManagerMsgSetDenomPairTakerFee extends CosmosMessage OsmosisPoolManagerMsgSetDenomPairTakerFee({ this.sender, required List denomPairTakerFee, - }) : denomPairTakerFee = denomPairTakerFee.mutable; + }) : denomPairTakerFee = denomPairTakerFee.immutable; factory OsmosisPoolManagerMsgSetDenomPairTakerFee.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_in.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_in.dart index 6cce99c..c10f517 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_in.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_in.dart @@ -18,7 +18,7 @@ class OsmosisPoolManagerMsgSplitRouteSwapExactAmountIn extends CosmosMessage required List routes, this.tokenInDenom, required this.tokenOutMinAmount, - }) : routes = routes.mutable; + }) : routes = routes.immutable; factory OsmosisPoolManagerMsgSplitRouteSwapExactAmountIn.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_out.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_out.dart index 4dac49b..6c0e6b5 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_out.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_split_route_swap_exact_amount_out.dart @@ -18,7 +18,7 @@ class OsmosisPoolManagerMsgSplitRouteSwapExactAmountOut extends CosmosMessage required List routes, required this.tokenInMaxAmount, this.tokenOutDenom, - }) : routes = routes.mutable; + }) : routes = routes.immutable; factory OsmosisPoolManagerMsgSplitRouteSwapExactAmountOut.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_in.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_in.dart index 014c8ce..ec8cb90 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_in.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_in.dart @@ -18,7 +18,7 @@ class OsmosisPoolManagerMsgSwapExactAmountIn extends CosmosMessage required List routes, required this.tokenIn, required this.tokenOutMinAmount, - }) : routes = routes.mutable; + }) : routes = routes.immutable; factory OsmosisPoolManagerMsgSwapExactAmountIn.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolManagerMsgSwapExactAmountIn( diff --git a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_out.dart b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_out.dart index ebbb6c8..7ac01b2 100644 --- a/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_out.dart +++ b/lib/src/models/networks/osmosis/osmosis_poolmanager_v1beta1/services/msg_swap_exact_amount_out.dart @@ -17,7 +17,7 @@ class OsmosisPoolManagerMsgSwapExactAmountOut extends CosmosMessage required List routes, required this.tokenInMaxAmount, required this.tokenOut, - }) : routes = routes.mutable; + }) : routes = routes.immutable; factory OsmosisPoolManagerMsgSwapExactAmountOut.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisPoolManagerMsgSwapExactAmountOut( diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cosmwasm_pool_info.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cosmwasm_pool_info.dart index 4f524b6..2b7f27f 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cosmwasm_pool_info.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cosmwasm_pool_info.dart @@ -11,7 +11,7 @@ class OsmosisProtorevCosmwasmPoolInfo extends CosmosMessage { OsmosisProtorevCosmwasmPoolInfo( {required List weightMaps}) - : weightMaps = weightMaps.mutable; + : weightMaps = weightMaps.immutable; factory OsmosisProtorevCosmwasmPoolInfo.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cyclic_arb_tracker.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cyclic_arb_tracker.dart index b4963b8..233781d 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cyclic_arb_tracker.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/cyclic_arb_tracker.dart @@ -12,7 +12,7 @@ class OsmosisProtorevRouteCyclicArbTracker extends CosmosMessage { OsmosisProtorevRouteCyclicArbTracker( {required List cyclicArb, this.heightAccountingStartsFrom}) - : cyclicArb = cyclicArb.mutable; + : cyclicArb = cyclicArb.immutable; factory OsmosisProtorevRouteCyclicArbTracker.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route.dart index 9b85cb6..b4eeeed 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route.dart @@ -16,7 +16,7 @@ class OsmosisProtorevRoute extends CosmosMessage { OsmosisProtorevRoute( {required List trades, this.stepSize}) - : trades = trades.mutable; + : trades = trades.immutable; factory OsmosisProtorevRoute.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route_statistics.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route_statistics.dart index 9897ba5..4061054 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route_statistics.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/route_statistics.dart @@ -22,7 +22,7 @@ class OsmosisProtorevRouteStatistics extends CosmosMessage { required this.numberOfTrades, List? route}) : route = route?.nullOnEmpy, - profits = profits.mutable; + profits = profits.immutable; factory OsmosisProtorevRouteStatistics.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/token_pair_arb_routes.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/token_pair_arb_routes.dart index 00f2b87..d8ca5f1 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/token_pair_arb_routes.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/messages/token_pair_arb_routes.dart @@ -18,7 +18,7 @@ class OsmosisProtorevTokenPairArbRoutes extends CosmosMessage { {required List arbRsoutes, this.tokenIn, this.tokenOut}) - : arbRsoutes = arbRsoutes.mutable; + : arbRsoutes = arbRsoutes.immutable; factory OsmosisProtorevTokenPairArbRoutes.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_profits_response.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_profits_response.dart index 1b5cb26..3eca69d 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_profits_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_profits_response.dart @@ -7,7 +7,7 @@ class OsmosisProtorevQueryGetProtoRevAllProfitsResponse extends CosmosMessage { /// pprofits is a list of all of the profits from the module final List profits; OsmosisProtorevQueryGetProtoRevAllProfitsResponse(List profits) - : profits = profits.mutable; + : profits = profits.immutable; factory OsmosisProtorevQueryGetProtoRevAllProfitsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_route_statistics_response.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_route_statistics_response.dart index f158704..3480e85 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_route_statistics_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_all_route_statistics_response.dart @@ -12,7 +12,7 @@ class OsmosisProtorevQueryGetProtoRevAllRouteStatisticsResponse final List statistics; OsmosisProtorevQueryGetProtoRevAllRouteStatisticsResponse( List statistics) - : statistics = statistics.mutable; + : statistics = statistics.immutable; factory OsmosisProtorevQueryGetProtoRevAllRouteStatisticsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_base_denoms_response.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_base_denoms_response.dart index b824016..b70a9ef 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_base_denoms_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_base_denoms_response.dart @@ -9,7 +9,7 @@ class OsmosisProtorevQueryGetProtoRevBaseDenomsResponse extends CosmosMessage { final List baseDenoms; OsmosisProtorevQueryGetProtoRevBaseDenomsResponse( List baseDenoms) - : baseDenoms = baseDenoms.mutable; + : baseDenoms = baseDenoms.immutable; factory OsmosisProtorevQueryGetProtoRevBaseDenomsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_token_pair_arb_routes_response.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_token_pair_arb_routes_response.dart index 9928b38..a2eaef2 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_token_pair_arb_routes_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/query/query_get_proto_rev_token_pair_arb_routes_response.dart @@ -11,7 +11,7 @@ class OsmosisProtorevQueryGetProtoRevTokenPairArbRoutesResponse final List routes; OsmosisProtorevQueryGetProtoRevTokenPairArbRoutesResponse( List routes) - : routes = routes.mutable; + : routes = routes.immutable; factory OsmosisProtorevQueryGetProtoRevTokenPairArbRoutesResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_base_denoms.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_base_denoms.dart index bacd65d..ae1b5e1 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_base_denoms.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_base_denoms.dart @@ -16,7 +16,7 @@ class OsmosisProtorevMsgSetBaseDenoms extends CosmosMessage OsmosisProtorevMsgSetBaseDenoms( {this.admin, required List baseDenoms}) - : baseDenoms = baseDenoms.mutable; + : baseDenoms = baseDenoms.immutable; factory OsmosisProtorevMsgSetBaseDenoms.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_hot_routes.dart b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_hot_routes.dart index 062d448..f51becb 100644 --- a/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_hot_routes.dart +++ b/lib/src/models/networks/osmosis/osmosis_protorev_v1beta1/services/msg_set_hot_routes.dart @@ -16,7 +16,7 @@ class OsmosisProtorevMsgSetHotRoutes extends CosmosMessage OsmosisProtorevMsgSetHotRoutes( {this.admin, required List hotRoutes}) - : hotRoutes = hotRoutes.mutable; + : hotRoutes = hotRoutes.immutable; factory OsmosisProtorevMsgSetHotRoutes.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/genesis_state.dart index 6f7d704..3a4e7f7 100644 --- a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/genesis_state.dart @@ -16,8 +16,8 @@ class OsmosisStreamSwapGenesisState extends CosmosMessage { required List userPositions, this.nextSaleId, required this.params}) - : sales = sales.mutable, - userPositions = userPositions.mutable; + : sales = sales.immutable, + userPositions = userPositions.immutable; factory OsmosisStreamSwapGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisStreamSwapGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/params.dart index 813a2d3..93fc1ce 100644 --- a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/messages/params.dart @@ -23,7 +23,7 @@ class OsmosisStreamSwapParams extends CosmosMessage { this.saleCreationFeeRecipient, required this.minDurationUntilStartTime, required this.minSaleDuration}) - : saleCreationFee = saleCreationFee.mutable; + : saleCreationFee = saleCreationFee.immutable; factory OsmosisStreamSwapParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisStreamSwapParams( diff --git a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/query/query_sales_response.dart b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/query/query_sales_response.dart index f19b1ef..9a85435 100644 --- a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/query/query_sales_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/query/query_sales_response.dart @@ -11,7 +11,7 @@ class OsmosisStreamSwapQuerySalesResponse extends CosmosMessage { OsmosisStreamSwapQuerySalesResponse( {required List sales, this.pagination}) - : sales = sales.mutable; + : sales = sales.immutable; factory OsmosisStreamSwapQuerySalesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisStreamSwapQuerySalesResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/services/msg_create_sale.dart b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/services/msg_create_sale.dart index ca425ca..24b9ecd 100644 --- a/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/services/msg_create_sale.dart +++ b/lib/src/models/networks/osmosis/osmosis_stream_swap_v1/services/msg_create_sale.dart @@ -55,7 +55,7 @@ class OsmosisStreamSwapMsgCreateSale extends CosmosMessage this.recipient, this.name, this.url}) - : maxFee = maxFee.mutable; + : maxFee = maxFee.immutable; factory OsmosisStreamSwapMsgCreateSale.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisStreamSwapMsgCreateSale( diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/messages/genesis_state.dart index 11c6fb7..e055af5 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/messages/genesis_state.dart @@ -36,10 +36,10 @@ class OsmosisSuperfluidGenesisState extends CosmosMessage { intermediaryAccounts, required List intemediaryAccountConnections, - }) : superfluidAssets = superfluidAssets.mutable, - osmoEquivalentMultipliers = osmoEquivalentMultipliers.mutable, - intermediaryAccounts = intermediaryAccounts.mutable, - intemediaryAccountConnections = intemediaryAccountConnections.mutable; + }) : superfluidAssets = superfluidAssets.immutable, + osmoEquivalentMultipliers = osmoEquivalentMultipliers.immutable, + intermediaryAccounts = intermediaryAccounts.immutable, + intemediaryAccountConnections = intemediaryAccountConnections.immutable; factory OsmosisSuperfluidGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisSuperfluidGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_assets_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_assets_response.dart index d4a1392..0f87849 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_assets_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_assets_response.dart @@ -7,7 +7,7 @@ class OsmosisSuperfluidAllAssetsResponse extends CosmosMessage { final List assets; OsmosisSuperfluidAllAssetsResponse( {required List assets}) - : assets = assets.mutable; + : assets = assets.immutable; factory OsmosisSuperfluidAllAssetsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisSuperfluidAllAssetsResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_intermediary_accounts_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_intermediary_accounts_response.dart index 183c576..8bf6832 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_intermediary_accounts_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/all_intermediary_accounts_response.dart @@ -11,7 +11,7 @@ class OsmosisSuperfluidAllIntermediaryAccountsResponse extends CosmosMessage { {required List accounts, this.pagination}) - : accounts = accounts.mutable; + : accounts = accounts.immutable; factory OsmosisSuperfluidAllIntermediaryAccountsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/estimate_super_fluid_delegated_amount_by_validator_denom_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/estimate_super_fluid_delegated_amount_by_validator_denom_response.dart index 39c47ca..5f26ad6 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/estimate_super_fluid_delegated_amount_by_validator_denom_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/estimate_super_fluid_delegated_amount_by_validator_denom_response.dart @@ -8,7 +8,7 @@ class OsmosisSuperfluidEstimateSuperfluidDelegatedAmountByValidatorDenomResponse final List totalDelegatedCoins; OsmosisSuperfluidEstimateSuperfluidDelegatedAmountByValidatorDenomResponse( List totalDelegatedCoins) - : totalDelegatedCoins = totalDelegatedCoins.mutable; + : totalDelegatedCoins = totalDelegatedCoins.immutable; factory OsmosisSuperfluidEstimateSuperfluidDelegatedAmountByValidatorDenomResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/query_total_delegation_by_delegator_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/query_total_delegation_by_delegator_response.dart index d86aa8f..1c9d270 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/query_total_delegation_by_delegator_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/query_total_delegation_by_delegator_response.dart @@ -18,9 +18,9 @@ class OsmosisSuperfluidQueryTotalDelegationByDelegatorResponse required List delegationResponse, required List totalDelegatedCoins, required this.totalEquivalentStakedAmount}) - : superfluidDelegationRecords = superfluidDelegationRecords.mutable, - delegationResponse = delegationResponse.mutable, - totalDelegatedCoins = totalDelegatedCoins.mutable; + : superfluidDelegationRecords = superfluidDelegationRecords.immutable, + delegationResponse = delegationResponse.immutable, + totalDelegatedCoins = totalDelegatedCoins.immutable; factory OsmosisSuperfluidQueryTotalDelegationByDelegatorResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegation_amount_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegation_amount_response.dart index e7e6a2b..a70be8f 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegation_amount_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegation_amount_response.dart @@ -7,7 +7,7 @@ class OsmosisSuperfluidSuperfluidDelegationAmountResponse extends CosmosMessage { final List amount; OsmosisSuperfluidSuperfluidDelegationAmountResponse(List amount) - : amount = amount.mutable; + : amount = amount.immutable; factory OsmosisSuperfluidSuperfluidDelegationAmountResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_delegator_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_delegator_response.dart index 40e3f61..7524d78 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_delegator_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_delegator_response.dart @@ -16,8 +16,8 @@ class OsmosisSuperfluidSuperfluidDelegationsByDelegatorResponse superfluidDelegationRecords, required List totalDelegatedCoins, required this.totalEquivalentStakedAmount}) - : superfluidDelegationRecords = superfluidDelegationRecords.mutable, - totalDelegatedCoins = totalDelegatedCoins.mutable; + : superfluidDelegationRecords = superfluidDelegationRecords.immutable, + totalDelegatedCoins = totalDelegatedCoins.immutable; factory OsmosisSuperfluidSuperfluidDelegationsByDelegatorResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_validator_denom_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_validator_denom_response.dart index c6fb8de..6e5a04c 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_validator_denom_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_delegations_by_validator_denom_response.dart @@ -11,7 +11,7 @@ class OsmosisSuperfluidSuperfluidDelegationsByValidatorDenomResponse OsmosisSuperfluidSuperfluidDelegationsByValidatorDenomResponse( {required List superfluidDelegationRecords}) - : superfluidDelegationRecords = superfluidDelegationRecords.mutable; + : superfluidDelegationRecords = superfluidDelegationRecords.immutable; factory OsmosisSuperfluidSuperfluidDelegationsByValidatorDenomResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_undelegations_by_delegator_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_undelegations_by_delegator_response.dart index e6ad257..d68532f 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_undelegations_by_delegator_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/super_fluid_undelegations_by_delegator_response.dart @@ -16,9 +16,9 @@ class OsmosisSuperfluidSuperfluidUndelegationsByDelegatorResponse superfluidDelegationRecords, required List totalUnDelegatedCoins, required List syntheticLocks}) - : superfluidDelegationRecords = superfluidDelegationRecords.mutable, - totalUnDelegatedCoins = totalUnDelegatedCoins.mutable, - syntheticLocks = syntheticLocks.mutable; + : superfluidDelegationRecords = superfluidDelegationRecords.immutable, + totalUnDelegatedCoins = totalUnDelegatedCoins.immutable, + syntheticLocks = syntheticLocks.immutable; factory OsmosisSuperfluidSuperfluidUndelegationsByDelegatorResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_delegated_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_delegated_response.dart index 6a26ddf..c8ecd87 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_delegated_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_delegated_response.dart @@ -10,7 +10,7 @@ class OsmosisSuperfluidUserConcentratedSuperfluidPositionsDelegatedResponse OsmosisSuperfluidUserConcentratedSuperfluidPositionsDelegatedResponse( List clPoolUserPositionRecords) - : clPoolUserPositionRecords = clPoolUserPositionRecords.mutable; + : clPoolUserPositionRecords = clPoolUserPositionRecords.immutable; factory OsmosisSuperfluidUserConcentratedSuperfluidPositionsDelegatedResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_undelegating_response.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_undelegating_response.dart index 1f783df..0867e46 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_undelegating_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/query/user_concentrated_super_fluid_positions_undelegating_response.dart @@ -10,7 +10,7 @@ class OsmosisSuperfluidUserConcentratedSuperfluidPositionsUndelegatingResponse OsmosisSuperfluidUserConcentratedSuperfluidPositionsUndelegatingResponse( List clPoolUserPositionRecords) - : clPoolUserPositionRecords = clPoolUserPositionRecords.mutable; + : clPoolUserPositionRecords = clPoolUserPositionRecords.immutable; factory OsmosisSuperfluidUserConcentratedSuperfluidPositionsUndelegatingResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/services/create_full_range_position_and_super_fluid_delegate.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/services/create_full_range_position_and_super_fluid_delegate.dart index 633a572..769efb6 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/services/create_full_range_position_and_super_fluid_delegate.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/services/create_full_range_position_and_super_fluid_delegate.dart @@ -18,7 +18,7 @@ class OsmosisSuperfluidMsgCreateFullRangePositionAndSuperfluidDelegate OsmosisSuperfluidMsgCreateFullRangePositionAndSuperfluidDelegate( {this.sender, required List coins, this.valAddr, this.poolId}) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisSuperfluidMsgCreateFullRangePositionAndSuperfluidDelegate.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/services/lock_and_super_fluid_delegate.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/services/lock_and_super_fluid_delegate.dart index 465d12e..7d1c358 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/services/lock_and_super_fluid_delegate.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/services/lock_and_super_fluid_delegate.dart @@ -14,7 +14,7 @@ class OsmosisSuperfluidMsgLockAndSuperfluidDelegate extends CosmosMessage OsmosisSuperfluidMsgLockAndSuperfluidDelegate( {this.sender, required List coins, this.valAddr}) - : coins = coins.mutable; + : coins = coins.immutable; factory OsmosisSuperfluidMsgLockAndSuperfluidDelegate.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid/services/unlock_and_migrate_shares_to_full_range_concentrated_position.dart b/lib/src/models/networks/osmosis/osmosis_superfluid/services/unlock_and_migrate_shares_to_full_range_concentrated_position.dart index 76a28a6..19697cf 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid/services/unlock_and_migrate_shares_to_full_range_concentrated_position.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid/services/unlock_and_migrate_shares_to_full_range_concentrated_position.dart @@ -20,7 +20,7 @@ class OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPosition this.lockId, required this.sharesToMigrate, required List tokenOutMins, - }) : tokenOutMins = tokenOutMins.mutable; + }) : tokenOutMins = tokenOutMins.immutable; factory OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPosition.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_superfluid_v1beta1/messages/set_super_fluid_assets_proposal.dart b/lib/src/models/networks/osmosis/osmosis_superfluid_v1beta1/messages/set_super_fluid_assets_proposal.dart index 2c2bc9c..da56e56 100644 --- a/lib/src/models/networks/osmosis/osmosis_superfluid_v1beta1/messages/set_super_fluid_assets_proposal.dart +++ b/lib/src/models/networks/osmosis/osmosis_superfluid_v1beta1/messages/set_super_fluid_assets_proposal.dart @@ -12,7 +12,7 @@ class OsmosisSuperfluidSetSuperfluidAssetsProposal extends CosmosMessage { {this.title, this.description, required List assets}) - : assets = assets.mutable; + : assets = assets.immutable; factory OsmosisSuperfluidSetSuperfluidAssetsProposal.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/genesis_state.dart index d973682..66f9cf2 100644 --- a/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/genesis_state.dart @@ -12,7 +12,7 @@ class OsmosisTokenFactoryGenesisState extends CosmosMessage { OsmosisTokenFactoryGenesisState( {required this.params, required List factoryDenoms}) - : factoryDenoms = factoryDenoms.mutable; + : factoryDenoms = factoryDenoms.immutable; factory OsmosisTokenFactoryGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisTokenFactoryGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/params.dart b/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/params.dart index 98e0670..fb223da 100644 --- a/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/params.dart +++ b/lib/src/models/networks/osmosis/osmosis_tokenfactory_v1beta1/messages/params.dart @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class OsmosisTokenFactoryParams extends CosmosMessage { final List denomCreationFee; OsmosisTokenFactoryParams(List denomCreationFee) - : denomCreationFee = denomCreationFee.mutable; + : denomCreationFee = denomCreationFee.immutable; factory OsmosisTokenFactoryParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisTokenFactoryParams( diff --git a/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/genesis_state.dart b/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/genesis_state.dart index f91de86..904c108 100644 --- a/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/genesis_state.dart @@ -10,7 +10,7 @@ class OsmosisTxfeesGenesisState extends CosmosMessage { OsmosisTxfeesGenesisState({ this.basedenom, required List feetokens, - }) : feetokens = feetokens.mutable; + }) : feetokens = feetokens.immutable; factory OsmosisTxfeesGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisTxfeesGenesisState( diff --git a/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/tx_fees_tracker.dart b/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/tx_fees_tracker.dart index 37c6003..dd9371c 100644 --- a/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/tx_fees_tracker.dart +++ b/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/messages/tx_fees_tracker.dart @@ -9,7 +9,7 @@ class OsmosisTxfeesTxFeesTracker extends CosmosMessage { final BigInt? heightAccountingStartsFrom; OsmosisTxfeesTxFeesTracker( {required List txFees, this.heightAccountingStartsFrom}) - : txFees = txFees.mutable; + : txFees = txFees.immutable; factory OsmosisTxfeesTxFeesTracker.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisTxfeesTxFeesTracker( diff --git a/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/query/query_fee_tokens_response.dart b/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/query/query_fee_tokens_response.dart index 58e2143..244da60 100644 --- a/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/query/query_fee_tokens_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_txfees_v1beta1/query/query_fee_tokens_response.dart @@ -8,7 +8,7 @@ class OsmosisTxfeesQueryFeeTokensResponse extends CosmosMessage { final List feetokens; OsmosisTxfeesQueryFeeTokensResponse({ required List feetokens, - }) : feetokens = feetokens.mutable; + }) : feetokens = feetokens.immutable; factory OsmosisTxfeesQueryFeeTokensResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return OsmosisTxfeesQueryFeeTokensResponse( diff --git a/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/messages/validator_set_preferences.dart b/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/messages/validator_set_preferences.dart index 0a62abc..e8f89f6 100644 --- a/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/messages/validator_set_preferences.dart +++ b/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/messages/validator_set_preferences.dart @@ -12,7 +12,7 @@ class OsmosisValidatorPreferenceValidatorSetPreferences extends CosmosMessage { OsmosisValidatorPreferenceValidatorSetPreferences( List preferences) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValidatorPreferenceValidatorSetPreferences.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/query/query_user_validator_preference_response.dart b/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/query/query_user_validator_preference_response.dart index 1157ba8..19303f6 100644 --- a/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/query/query_user_validator_preference_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/query/query_user_validator_preference_response.dart @@ -9,7 +9,7 @@ class OsmosisValidatorPreferenceQueryUserValidatorPreferenceResponse OsmosisValidatorPreferenceQueryUserValidatorPreferenceResponse( List preferences) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValidatorPreferenceQueryUserValidatorPreferenceResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/services/msg_set_validator_set_preference.dart b/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/services/msg_set_validator_set_preference.dart index 5ee789a..4dfd009 100644 --- a/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/services/msg_set_validator_set_preference.dart +++ b/lib/src/models/networks/osmosis/osmosis_validator_preference_v1beta1/services/msg_set_validator_set_preference.dart @@ -16,7 +16,7 @@ class OsmosisValidatorPreferenceMsgSetValidatorSetPreference OsmosisValidatorPreferenceMsgSetValidatorSetPreference( {this.delegator, required List preferences}) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValidatorPreferenceMsgSetValidatorSetPreference.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/messages/validator_set_preferences.dart b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/messages/validator_set_preferences.dart index 6dbd202..1886901 100644 --- a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/messages/validator_set_preferences.dart +++ b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/messages/validator_set_preferences.dart @@ -11,7 +11,7 @@ class OsmosisValSetprefValidatorSetPreferences extends CosmosMessage { final List preferences; OsmosisValSetprefValidatorSetPreferences( List preferences) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValSetprefValidatorSetPreferences.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/query/user_validator_preferences_response.dart b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/query/user_validator_preferences_response.dart index 45c17b1..fe62971 100644 --- a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/query/user_validator_preferences_response.dart +++ b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/query/user_validator_preferences_response.dart @@ -9,7 +9,7 @@ class OsmosisValSetprefUserValidatorPreferencesResponse extends CosmosMessage { final List preferences; OsmosisValSetprefUserValidatorPreferencesResponse( List preferences) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValSetprefUserValidatorPreferencesResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/redelegate_validator_set.dart b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/redelegate_validator_set.dart index b39c432..586342f 100644 --- a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/redelegate_validator_set.dart +++ b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/redelegate_validator_set.dart @@ -15,7 +15,7 @@ class OsmosisValSetprefMsgRedelegateValidatorSet extends CosmosMessage OsmosisValSetprefMsgRedelegateValidatorSet( {this.delegator, required List preferences}) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValSetprefMsgRedelegateValidatorSet.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/set_validator_set_preference.dart b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/set_validator_set_preference.dart index fb64c8e..5ccc457 100644 --- a/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/set_validator_set_preference.dart +++ b/lib/src/models/networks/osmosis/osmosis_valsetpref_v1beta1/services/set_validator_set_preference.dart @@ -16,7 +16,7 @@ class OsmosisValSetprefMsgSetValidatorSetPreference extends CosmosMessage OsmosisValSetprefMsgSetValidatorSetPreference( {this.delegator, required List preferences}) - : preferences = preferences.mutable; + : preferences = preferences.immutable; factory OsmosisValSetprefMsgSetValidatorSetPreference.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/common/fee.dart b/lib/src/models/networks/thorchain/v1/common/fee.dart index 70604e6..fe20574 100644 --- a/lib/src/models/networks/thorchain/v1/common/fee.dart +++ b/lib/src/models/networks/thorchain/v1/common/fee.dart @@ -6,7 +6,7 @@ class ThorchainFee extends CosmosMessage { final List coins; final String poolDeduct; ThorchainFee({required List coins, required this.poolDeduct}) - : coins = coins.mutable; + : coins = coins.immutable; factory ThorchainFee.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainFee( diff --git a/lib/src/models/networks/thorchain/v1/common/tx.dart b/lib/src/models/networks/thorchain/v1/common/tx.dart index a7565b9..32a1f0c 100644 --- a/lib/src/models/networks/thorchain/v1/common/tx.dart +++ b/lib/src/models/networks/thorchain/v1/common/tx.dart @@ -18,8 +18,8 @@ class ThorchainTx extends CosmosMessage { required List coins, required List gas, this.memo}) - : coins = coins.mutable, - gas = gas.mutable; + : coins = coins.immutable, + gas = gas.immutable; factory ThorchainTx.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainTx( diff --git a/lib/src/models/networks/thorchain/v1/events/event_errata.dart b/lib/src/models/networks/thorchain/v1/events/event_errata.dart index 9ffb52a..7e7e32e 100644 --- a/lib/src/models/networks/thorchain/v1/events/event_errata.dart +++ b/lib/src/models/networks/thorchain/v1/events/event_errata.dart @@ -6,7 +6,7 @@ class ThorchainEventErrata extends CosmosMessage { final String? txId; final List pools; ThorchainEventErrata({this.txId, required List pools}) - : pools = pools.mutable; + : pools = pools.immutable; factory ThorchainEventErrata.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainEventErrata( diff --git a/lib/src/models/networks/thorchain/v1/events/event_gas.dart b/lib/src/models/networks/thorchain/v1/events/event_gas.dart index d9b20b6..0dbfe4f 100644 --- a/lib/src/models/networks/thorchain/v1/events/event_gas.dart +++ b/lib/src/models/networks/thorchain/v1/events/event_gas.dart @@ -4,7 +4,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class ThorchainEventGas extends CosmosMessage { final List pools; - ThorchainEventGas(List pools) : pools = pools.mutable; + ThorchainEventGas(List pools) : pools = pools.immutable; factory ThorchainEventGas.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainEventGas(decode diff --git a/lib/src/models/networks/thorchain/v1/events/event_rewards.dart b/lib/src/models/networks/thorchain/v1/events/event_rewards.dart index 4af9f65..5e1efe7 100644 --- a/lib/src/models/networks/thorchain/v1/events/event_rewards.dart +++ b/lib/src/models/networks/thorchain/v1/events/event_rewards.dart @@ -7,7 +7,7 @@ class ThorchainEventRewards extends CosmosMessage { final List poolRewards; ThorchainEventRewards( {required this.bondReward, required List poolRewards}) - : poolRewards = poolRewards.mutable; + : poolRewards = poolRewards.immutable; factory ThorchainEventRewards.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainEventRewards( diff --git a/lib/src/models/networks/thorchain/v1/events/event_slash.dart b/lib/src/models/networks/thorchain/v1/events/event_slash.dart index 536576b..8f0fdf9 100644 --- a/lib/src/models/networks/thorchain/v1/events/event_slash.dart +++ b/lib/src/models/networks/thorchain/v1/events/event_slash.dart @@ -7,7 +7,7 @@ class ThorchainEventSlash extends CosmosMessage { final List slashAmount; ThorchainEventSlash( {required this.pool, required List slashAmount}) - : slashAmount = slashAmount.mutable; + : slashAmount = slashAmount.immutable; factory ThorchainEventSlash.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainEventSlash( diff --git a/lib/src/models/networks/thorchain/v1/events/node_mimirs.dart b/lib/src/models/networks/thorchain/v1/events/node_mimirs.dart index 925c42e..6284f18 100644 --- a/lib/src/models/networks/thorchain/v1/events/node_mimirs.dart +++ b/lib/src/models/networks/thorchain/v1/events/node_mimirs.dart @@ -5,7 +5,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class ThorchainNodeMimirs extends CosmosMessage { final List mimirs; ThorchainNodeMimirs(List mimirs) - : mimirs = mimirs.mutable; + : mimirs = mimirs.immutable; factory ThorchainNodeMimirs.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainNodeMimirs(decode diff --git a/lib/src/models/networks/thorchain/v1/messages/ban_voter.dart b/lib/src/models/networks/thorchain/v1/messages/ban_voter.dart index 6d00b05..a5fd797 100644 --- a/lib/src/models/networks/thorchain/v1/messages/ban_voter.dart +++ b/lib/src/models/networks/thorchain/v1/messages/ban_voter.dart @@ -9,7 +9,7 @@ class ThorchainBanVoter extends CosmosMessage { final List? signers; ThorchainBanVoter( {List? nodeAddress, this.blockHeight, List? signers}) - : signers = signers?.mutable, + : signers = signers?.immutable, nodeAddress = BytesUtils.tryToBytes(nodeAddress, unmodifiable: true); factory ThorchainBanVoter.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/messages/blame.dart b/lib/src/models/networks/thorchain/v1/messages/blame.dart index e1ce800..98b4d2d 100644 --- a/lib/src/models/networks/thorchain/v1/messages/blame.dart +++ b/lib/src/models/networks/thorchain/v1/messages/blame.dart @@ -12,7 +12,7 @@ class ThorchainBlame extends CosmosMessage { this.isUnicast, required List blameNodes, this.round}) - : blameNodes = blameNodes.mutable; + : blameNodes = blameNodes.immutable; factory ThorchainBlame.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainBlame( diff --git a/lib/src/models/networks/thorchain/v1/messages/bond_providers.dart b/lib/src/models/networks/thorchain/v1/messages/bond_providers.dart index bebccb6..4b2f4e7 100644 --- a/lib/src/models/networks/thorchain/v1/messages/bond_providers.dart +++ b/lib/src/models/networks/thorchain/v1/messages/bond_providers.dart @@ -12,7 +12,7 @@ class ThorchainBondProviders extends CosmosMessage { required this.nodeOperatorFee, required List providers, }) : nodeAddress = BytesUtils.tryToBytes(nodeAddress, unmodifiable: true), - providers = providers.mutable; + providers = providers.immutable; factory ThorchainBondProviders.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainBondProviders( diff --git a/lib/src/models/networks/thorchain/v1/messages/keygen_block.dart b/lib/src/models/networks/thorchain/v1/messages/keygen_block.dart index 32c770b..2ecf44f 100644 --- a/lib/src/models/networks/thorchain/v1/messages/keygen_block.dart +++ b/lib/src/models/networks/thorchain/v1/messages/keygen_block.dart @@ -6,7 +6,7 @@ class ThorchainKeygenBlock extends CosmosMessage { final BigInt? height; final List keygens; ThorchainKeygenBlock({this.height, required List keygens}) - : keygens = keygens.mutable; + : keygens = keygens.immutable; factory ThorchainKeygenBlock.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainKeygenBlock( diff --git a/lib/src/models/networks/thorchain/v1/messages/observed_tx_voter.dart b/lib/src/models/networks/thorchain/v1/messages/observed_tx_voter.dart index 12fcc28..b3271cd 100644 --- a/lib/src/models/networks/thorchain/v1/messages/observed_tx_voter.dart +++ b/lib/src/models/networks/thorchain/v1/messages/observed_tx_voter.dart @@ -24,9 +24,9 @@ class ThorchainObservedTxVoter extends CosmosMessage { this.updatedVault, this.reverted, this.outboundHeight}) - : txs = txs.mutable, - actions = actions.mutable, - outTxs = outTxs.mutable; + : txs = txs.immutable, + actions = actions.immutable, + outTxs = outTxs.immutable; factory ThorchainObservedTxVoter.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainObservedTxVoter( diff --git a/lib/src/models/networks/thorchain/v1/messages/solvency_voter.dart b/lib/src/models/networks/thorchain/v1/messages/solvency_voter.dart index 3a1a2d3..279890e 100644 --- a/lib/src/models/networks/thorchain/v1/messages/solvency_voter.dart +++ b/lib/src/models/networks/thorchain/v1/messages/solvency_voter.dart @@ -18,7 +18,7 @@ class ThorchainSolvencyVoter extends CosmosMessage { this.height, this.consensusBlockHeight, List? signers}) - : coins = coins.mutable, + : coins = coins.immutable, signers = signers?.nullOnEmpy; factory ThorchainSolvencyVoter.deserialized(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/messages/thor_name.dart b/lib/src/models/networks/thorchain/v1/messages/thor_name.dart index d7d0f2e..e260f2d 100644 --- a/lib/src/models/networks/thorchain/v1/messages/thor_name.dart +++ b/lib/src/models/networks/thorchain/v1/messages/thor_name.dart @@ -15,7 +15,7 @@ class ThorchainTHORName extends CosmosMessage { List? owner, required this.preferredAsset, required List aliases}) - : aliases = aliases.mutable, + : aliases = aliases.immutable, owner = BytesUtils.tryToBytes(owner, unmodifiable: true); factory ThorchainTHORName.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/messages/tss_key_sign_metric.dart b/lib/src/models/networks/thorchain/v1/messages/tss_key_sign_metric.dart index 2b7214d..9bbc878 100644 --- a/lib/src/models/networks/thorchain/v1/messages/tss_key_sign_metric.dart +++ b/lib/src/models/networks/thorchain/v1/messages/tss_key_sign_metric.dart @@ -7,7 +7,7 @@ class ThorchainTssKeysignMetric extends CosmosMessage { final List nodeTssTimes; ThorchainTssKeysignMetric( {this.txId, required List nodeTssTimes}) - : nodeTssTimes = nodeTssTimes.mutable; + : nodeTssTimes = nodeTssTimes.immutable; factory ThorchainTssKeysignMetric.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainTssKeysignMetric( diff --git a/lib/src/models/networks/thorchain/v1/messages/tss_keygen_metric.dart b/lib/src/models/networks/thorchain/v1/messages/tss_keygen_metric.dart index 4c7eb55..45b70f7 100644 --- a/lib/src/models/networks/thorchain/v1/messages/tss_keygen_metric.dart +++ b/lib/src/models/networks/thorchain/v1/messages/tss_keygen_metric.dart @@ -7,7 +7,7 @@ class ThorchainTssKeygenMetric extends CosmosMessage { final List nodeTssTimes; ThorchainTssKeygenMetric( {this.pubKey, required List nodeTssTimes}) - : nodeTssTimes = nodeTssTimes.mutable; + : nodeTssTimes = nodeTssTimes.immutable; factory ThorchainTssKeygenMetric.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainTssKeygenMetric( diff --git a/lib/src/models/networks/thorchain/v1/messages/tx_out.dart b/lib/src/models/networks/thorchain/v1/messages/tx_out.dart index d72ce6f..51c5383 100644 --- a/lib/src/models/networks/thorchain/v1/messages/tx_out.dart +++ b/lib/src/models/networks/thorchain/v1/messages/tx_out.dart @@ -6,7 +6,7 @@ class ThorchainTxOut extends CosmosMessage { final BigInt? height; final List txArray; ThorchainTxOut({this.height, required List txArray}) - : txArray = txArray.mutable; + : txArray = txArray.immutable; factory ThorchainTxOut.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainTxOut( diff --git a/lib/src/models/networks/thorchain/v1/messages/tx_out_item.dart b/lib/src/models/networks/thorchain/v1/messages/tx_out_item.dart index 13f57fc..629cdde 100644 --- a/lib/src/models/networks/thorchain/v1/messages/tx_out_item.dart +++ b/lib/src/models/networks/thorchain/v1/messages/tx_out_item.dart @@ -32,7 +32,7 @@ class ThorchainTxOutItem extends CosmosMessage { this.aggregatorTargetAsset, required this.aggregatorTargetLimit, required this.cloutSpent}) - : maxGas = maxGas.mutable; + : maxGas = maxGas.immutable; factory ThorchainTxOutItem.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainTxOutItem( diff --git a/lib/src/models/networks/thorchain/v1/messages/vault.dart b/lib/src/models/networks/thorchain/v1/messages/vault.dart index f11eb88..c44989e 100644 --- a/lib/src/models/networks/thorchain/v1/messages/vault.dart +++ b/lib/src/models/networks/thorchain/v1/messages/vault.dart @@ -31,11 +31,11 @@ class ThorchainVault extends CosmosMessage { List? pendingTxBlockHeights, required List routers, List? frozen}) - : coins = coins.mutable, + : coins = coins.immutable, membership = membership?.nullOnEmpy, chains = chains?.nullOnEmpy, pendingTxBlockHeights = pendingTxBlockHeights?.nullOnEmpy, - routers = routers.mutable, + routers = routers.immutable, frozen = frozen?.nullOnEmpy; factory ThorchainVault.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/service/msg_deposit.dart b/lib/src/models/networks/thorchain/v1/service/msg_deposit.dart index 9f2cbf9..18a257f 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_deposit.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_deposit.dart @@ -13,7 +13,7 @@ class ThorchainMsgDeposit extends CosmosMessage with ServiceMessage { {required List coins, required this.memo, required this.signer}) - : coins = coins.mutable; + : coins = coins.immutable; factory ThorchainMsgDeposit.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainMsgDeposit( diff --git a/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_in.dart b/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_in.dart index a7eda80..034c9e6 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_in.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_in.dart @@ -8,7 +8,7 @@ class ThorchainMsgObservedTxIn extends CosmosMessage { final List? signer; ThorchainMsgObservedTxIn( {required List txs, List? signer}) - : txs = txs.mutable, + : txs = txs.immutable, signer = BytesUtils.tryToBytes(signer, unmodifiable: true); factory ThorchainMsgObservedTxIn.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_out.dart b/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_out.dart index a25465b..1f754ee 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_out.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_observed_tx_out.dart @@ -8,7 +8,7 @@ class ThorchainMsgObservedTxOut extends CosmosMessage { final List? signer; ThorchainMsgObservedTxOut( {required List txs, List? signer}) - : txs = txs.mutable, + : txs = txs.immutable, signer = BytesUtils.tryToBytes(signer, unmodifiable: true); factory ThorchainMsgObservedTxOut.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/service/msg_send.dart b/lib/src/models/networks/thorchain/v1/service/msg_send.dart index 6c28286..308d393 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_send.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_send.dart @@ -12,7 +12,7 @@ class ThorchainMsgSend extends CosmosMessage required this.fromAddress, required this.toAddress, required List amount, - }) : amount = amount.mutable; + }) : amount = amount.immutable; factory ThorchainMsgSend.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainMsgSend( diff --git a/lib/src/models/networks/thorchain/v1/service/msg_solvency.dart b/lib/src/models/networks/thorchain/v1/service/msg_solvency.dart index 8f48518..6407ef5 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_solvency.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_solvency.dart @@ -18,7 +18,7 @@ class ThorchainMsgSolvency extends CosmosMessage { required List coins, this.height, List? signer, - }) : coins = coins.mutable, + }) : coins = coins.immutable, signer = BytesUtils.tryToBytes(signer, unmodifiable: true); factory ThorchainMsgSolvency.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/networks/thorchain/v1/service/msg_tss_key_sign_fail.dart b/lib/src/models/networks/thorchain/v1/service/msg_tss_key_sign_fail.dart index 5650a29..be99e3a 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_tss_key_sign_fail.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_tss_key_sign_fail.dart @@ -20,7 +20,7 @@ class ThorchainMsgTssKeysignFail extends CosmosMessage { this.pubKey, List? signer}) : signer = BytesUtils.tryToBytes(signer, unmodifiable: true), - coins = coins.mutable; + coins = coins.immutable; factory ThorchainMsgTssKeysignFail.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ThorchainMsgTssKeysignFail( diff --git a/lib/src/models/networks/thorchain/v1/service/msg_tss_pool.dart b/lib/src/models/networks/thorchain/v1/service/msg_tss_pool.dart index e172ba9..e1e62ad 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_tss_pool.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_tss_pool.dart @@ -25,8 +25,8 @@ class ThorchainMsgTssPool extends CosmosMessage { List? signer, this.keygenTime, List? keysharesBackup}) - : pubKeys = pubKeys?.mutable, - chains = chains?.mutable, + : pubKeys = pubKeys?.immutable, + chains = chains?.immutable, signer = BytesUtils.tryToBytes(signer, unmodifiable: true), keysharesBackup = BytesUtils.tryToBytes(keysharesBackup, unmodifiable: true); diff --git a/lib/src/models/networks/thorchain/v1/service/msg_yggdrasil.dart b/lib/src/models/networks/thorchain/v1/service/msg_yggdrasil.dart index 553b3f4..1c0e0e5 100644 --- a/lib/src/models/networks/thorchain/v1/service/msg_yggdrasil.dart +++ b/lib/src/models/networks/thorchain/v1/service/msg_yggdrasil.dart @@ -17,7 +17,7 @@ class ThorchainMsgYggdrasil extends CosmosMessage { required List coins, this.blockHeight, List? signer}) - : coins = coins.mutable, + : coins = coins.immutable, signer = BytesUtils.tryToBytes(signer, unmodifiable: true); factory ThorchainMsgYggdrasil.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/messages/genesis_state.dart b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/messages/genesis_state.dart index 50d7322..8fd43c5 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/messages/genesis_state.dart @@ -8,7 +8,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class AuthzGenesisState extends CosmosMessage { final List authorization; AuthzGenesisState({required List authorization}) - : authorization = authorization.mutable; + : authorization = authorization.immutable; factory AuthzGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return AuthzGenesisState( diff --git a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grantee_grants_response.dart b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grantee_grants_response.dart index 1bdca24..9f0d60e 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grantee_grants_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grantee_grants_response.dart @@ -14,7 +14,7 @@ class AuthzQueryGranteeGrantsResponse extends CosmosMessage { final PageResponse? pagination; AuthzQueryGranteeGrantsResponse( {required List grants, this.pagination}) - : grants = grants.mutable; + : grants = grants.immutable; factory AuthzQueryGranteeGrantsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return AuthzQueryGranteeGrantsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_granter_grants_response.dart b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_granter_grants_response.dart index 4483039..a127e00 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_granter_grants_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_granter_grants_response.dart @@ -14,7 +14,7 @@ class AuthzQueryGranterGrantsResponse extends CosmosMessage { final PageResponse? pagination; AuthzQueryGranterGrantsResponse( {required List grants, this.pagination}) - : grants = grants.mutable; + : grants = grants.immutable; factory AuthzQueryGranterGrantsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return AuthzQueryGranterGrantsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grants_response.dart b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grants_response.dart index a34ed54..585c8fc 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grants_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/query/query_grants_response.dart @@ -13,7 +13,7 @@ class AuthzQueryGrantsResponse extends CosmosMessage { /// pagination defines an pagination for the response. final PageResponse? pagination; AuthzQueryGrantsResponse({required List grants, this.pagination}) - : grants = grants.mutable; + : grants = grants.immutable; factory AuthzQueryGrantsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return AuthzQueryGrantsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/service/msg_exec.dart b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/service/msg_exec.dart index d88801e..6fb174c 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/service/msg_exec.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_authz_v1beta1/service/msg_exec.dart @@ -15,7 +15,7 @@ class AuthzExec extends CosmosMessage /// The x/authz will try to find a grant matching (msg.signers, grantee, MsgTypeURL(msg)) /// triple and validate it. final List msgs; - AuthzExec({this.grantee, required List msgs}) : msgs = msgs.mutable; + AuthzExec({this.grantee, required List msgs}) : msgs = msgs.immutable; factory AuthzExec.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return AuthzExec( diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/abci_message_log.dart b/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/abci_message_log.dart index 3162c70..0799764 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/abci_message_log.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/abci_message_log.dart @@ -12,7 +12,7 @@ class ABCIMessageLog extends CosmosMessage { // execution. final List events; ABCIMessageLog({this.msgIndex, this.log, required List events}) - : events = events.mutable; + : events = events.immutable; factory ABCIMessageLog.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/string_event.dart b/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/string_event.dart index d1c9f63..f221093 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/string_event.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/string_event.dart @@ -10,7 +10,7 @@ class StringEvent extends CosmosMessage { final String? type; final List attributes; StringEvent({this.type, required List attributes}) - : attributes = attributes.mutable; + : attributes = attributes.immutable; factory StringEvent.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return StringEvent( diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/tx_response.dart b/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/tx_response.dart index 3422378..972cfb7 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/tx_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_abci_v1beta1/messages/tx_response.dart @@ -63,8 +63,8 @@ class TxResponse extends CosmosMessage { required this.tx, required this.timestamp, required List events, - }) : logs = logs.mutable, - events = events.mutable; + }) : logs = logs.immutable, + events = events.immutable; factory TxResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_all_interfaces_response.dart b/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_all_interfaces_response.dart index a59593d..eb7ac5c 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_all_interfaces_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_all_interfaces_response.dart @@ -7,7 +7,7 @@ class ListAllInterfacesResponse extends CosmosMessage { /// interface_names is an array of all the registered interfaces. final List interfaceNames; ListAllInterfacesResponse({required List interfaceNames}) - : interfaceNames = interfaceNames.mutable; + : interfaceNames = interfaceNames.immutable; factory ListAllInterfacesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ListAllInterfacesResponse(interfaceNames: decode.getFields(1)); diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_implementations_response.dart b/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_implementations_response.dart index e157d66..6c14396 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_implementations_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_reflection_v1beta1/query/list_implementations_response.dart @@ -8,7 +8,7 @@ class ListImplementationsResponse extends CosmosMessage { final List implementationMessageNames; ListImplementationsResponse( {required List implementationMessageNames}) - : implementationMessageNames = implementationMessageNames.mutable; + : implementationMessageNames = implementationMessageNames.immutable; factory ListImplementationsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ListImplementationsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/proof_ops.dart b/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/proof_ops.dart index 065caed..3c54cdd 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/proof_ops.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/proof_ops.dart @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; /// Note: This type is a duplicate of the ProofOps proto type defined in Tendermint. class CosmosProofOps extends CosmosMessage { final List ops; - CosmosProofOps({required List ops}) : ops = ops.mutable; + CosmosProofOps({required List ops}) : ops = ops.immutable; factory CosmosProofOps.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return CosmosProofOps( diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/version_info.dart b/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/version_info.dart index a1e82b5..c80cb73 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/version_info.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/messages/version_info.dart @@ -25,7 +25,7 @@ class VersionInfo extends CosmosMessage { this.goVersion, List? buildDeps, this.cosmosSdkVersion}) - : buildDeps = buildDeps?.mutable; + : buildDeps = buildDeps?.immutable; factory VersionInfo.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/query/get_validator_set_by_height_response.dart b/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/query/get_validator_set_by_height_response.dart index 93abb3e..9ab04e1 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/query/get_validator_set_by_height_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_base_tendermint_v1beta1/query/get_validator_set_by_height_response.dart @@ -16,7 +16,7 @@ class GetValidatorSetByHeightResponse extends CosmosMessage { {this.blockHeight, required List validator, this.pagination}) - : validator = validator.mutable; + : validator = validator.immutable; factory GetValidatorSetByHeightResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GetValidatorSetByHeightResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/delegation_delegator_reward.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/delegation_delegator_reward.dart index 422c3ae..5c09336 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/delegation_delegator_reward.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/delegation_delegator_reward.dart @@ -11,7 +11,7 @@ class DistributionDelegationDelegatorReward extends CosmosMessage { final List reward; DistributionDelegationDelegatorReward( {this.validatorddress, required List reward}) - : reward = reward.mutable; + : reward = reward.immutable; factory DistributionDelegationDelegatorReward.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return DistributionDelegationDelegatorReward( diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_accumulated_commission.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_accumulated_commission.dart index 11662ec..d4ff6f9 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_accumulated_commission.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_accumulated_commission.dart @@ -9,7 +9,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class DistributionValidatorAccumulatedCommission extends CosmosMessage { final List commission; DistributionValidatorAccumulatedCommission(List commission) - : commission = commission.mutable; + : commission = commission.immutable; factory DistributionValidatorAccumulatedCommission.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards.dart index 24899db..65bd452 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards.dart @@ -12,7 +12,7 @@ class DistributionValidatorCurrentRewards extends CosmosMessage { final BigInt? period; DistributionValidatorCurrentRewards( {required List rewards, this.period}) - : rewards = rewards.mutable; + : rewards = rewards.immutable; factory DistributionValidatorCurrentRewards.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards_record.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards_record.dart index f83193a..bec8570 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards_record.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_current_rewards_record.dart @@ -15,7 +15,7 @@ class DistributionValidatorCurrentRewardsRecord extends CosmosMessage { DistributionValidatorCurrentRewardsRecord( {this.validatorAddress, required List rewards}) - : rewards = rewards.mutable; + : rewards = rewards.immutable; factory DistributionValidatorCurrentRewardsRecord.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_historical_rewards.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_historical_rewards.dart index 611ed2b..d4b04ac 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_historical_rewards.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_historical_rewards.dart @@ -18,7 +18,7 @@ class DistributionValidatorHistoricalRewards extends CosmosMessage { final int? referenceCount; DistributionValidatorHistoricalRewards( {required List cumulativeRewardRatio, this.referenceCount}) - : cumulativeRewardRatio = cumulativeRewardRatio.mutable; + : cumulativeRewardRatio = cumulativeRewardRatio.immutable; factory DistributionValidatorHistoricalRewards.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return DistributionValidatorHistoricalRewards( diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards.dart index 069f7ca..bd12406 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards.dart @@ -9,7 +9,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class DistributionValidatorOutstandingRewards extends CosmosMessage { final List rewards; DistributionValidatorOutstandingRewards(List rewards) - : rewards = rewards.mutable; + : rewards = rewards.immutable; factory DistributionValidatorOutstandingRewards.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return DistributionValidatorOutstandingRewards( diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards_record.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards_record.dart index cc7d7d2..5fc63b4 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards_record.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_outstanding_rewards_record.dart @@ -14,7 +14,7 @@ class DistributionValidatorOutstandingRewardsRecord extends CosmosMessage { final List outstandingRewards; DistributionValidatorOutstandingRewardsRecord( {this.validatorAddress, required List outstandingRewards}) - : outstandingRewards = outstandingRewards.mutable; + : outstandingRewards = outstandingRewards.immutable; factory DistributionValidatorOutstandingRewardsRecord.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_slash_events.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_slash_events.dart index bb6b866..b9fb677 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_slash_events.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/messages/validator_slash_events.dart @@ -9,7 +9,7 @@ class DistributionValidatorSlashEvents extends CosmosMessage { final List validatorSlashEvents; DistributionValidatorSlashEvents( List validatorSlashEvents) - : validatorSlashEvents = validatorSlashEvents.mutable; + : validatorSlashEvents = validatorSlashEvents.immutable; factory DistributionValidatorSlashEvents.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return DistributionValidatorSlashEvents(decode diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_rewards_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_rewards_response.dart index fa9988e..0f9dfc8 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_rewards_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_rewards_response.dart @@ -9,7 +9,7 @@ class DistributionQueryDelegationRewardsResponse extends CosmosMessage { /// rewards defines the rewards accrued by a delegation. final List rewards; DistributionQueryDelegationRewardsResponse(List rewards) - : rewards = rewards.mutable; + : rewards = rewards.immutable; factory DistributionQueryDelegationRewardsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_total_rewards_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_total_rewards_response.dart index 8034b8c..d0b2b44 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_total_rewards_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegation_total_rewards_response.dart @@ -15,8 +15,8 @@ class DistributionQueryDelegationTotalRewardsResponse extends CosmosMessage { DistributionQueryDelegationTotalRewardsResponse( {required List rewards, required List total}) - : rewards = rewards.mutable, - total = total.mutable; + : rewards = rewards.immutable, + total = total.immutable; factory DistributionQueryDelegationTotalRewardsResponse.deserialize( List bytes) { final deocde = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegator_validators_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegator_validators_response.dart index e136030..b52fd7a 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegator_validators_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_delegator_validators_response.dart @@ -8,7 +8,7 @@ class DistributionQueryDelegatorValidatorsResponse extends CosmosMessage { /// validators defines the validators a delegator is delegating for. final List validators; DistributionQueryDelegatorValidatorsResponse(List validators) - : validators = validators.mutable; + : validators = validators.immutable; factory DistributionQueryDelegatorValidatorsResponse.deserialize( List bytes) { diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_distribution_info_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_distribution_info_response.dart index 12ed560..da3f090 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_distribution_info_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_distribution_info_response.dart @@ -19,8 +19,8 @@ class DistributionQueryValidatorDistributionInfoResponse extends CosmosMessage { {this.operatorAddress, required List selfBondRewards, required List commission}) - : selfBondRewards = selfBondRewards.mutable, - commission = commission.mutable; + : selfBondRewards = selfBondRewards.immutable, + commission = commission.immutable; factory DistributionQueryValidatorDistributionInfoResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_slashes_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_slashes_response.dart index a81ab86..7d72b89 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_slashes_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/query/query_validator_slashes_response.dart @@ -14,7 +14,7 @@ class DistributionQueryValidatorSlashesResponse extends CosmosMessage { final PageResponse? pagination; DistributionQueryValidatorSlashesResponse( {required List slashes, this.pagination}) - : slashes = slashes.mutable; + : slashes = slashes.immutable; factory DistributionQueryValidatorSlashesResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_deposit_validator_rewards_pool.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_deposit_validator_rewards_pool.dart index 0557f4a..8432090 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_deposit_validator_rewards_pool.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_deposit_validator_rewards_pool.dart @@ -15,7 +15,7 @@ class DistributionMsgDepositValidatorRewardsPool extends CosmosMessage final List amount; DistributionMsgDepositValidatorRewardsPool( {this.depositor, this.validatorAddress, required List amount}) - : amount = amount.mutable; + : amount = amount.immutable; @override List get fieldIds => [1, 2, 3]; diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_delegator_reward_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_delegator_reward_response.dart index ccf003a..be94cd5 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_delegator_reward_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_delegator_reward_response.dart @@ -9,7 +9,7 @@ class DistributionMsgWithdrawDelegatorRewardResponse extends CosmosMessage { /// Since: cosmos-sdk 0.46 final List amount; DistributionMsgWithdrawDelegatorRewardResponse(List amount) - : amount = amount.mutable; + : amount = amount.immutable; factory DistributionMsgWithdrawDelegatorRewardResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_validator_commission_response.dart b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_validator_commission_response.dart index 8bcdad4..9e3a4ce 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_validator_commission_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_distribution_v1beta1/service/msg_withdraw_validator_commission_response.dart @@ -9,7 +9,7 @@ class DistributionMsgWithdrawValidatorCommissionResponse extends CosmosMessage { /// Since: cosmos-sdk 0.46 final List amount; DistributionMsgWithdrawValidatorCommissionResponse(List amount) - : amount = amount.mutable; + : amount = amount.immutable; factory DistributionMsgWithdrawValidatorCommissionResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/basic_allowance.dart b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/basic_allowance.dart index 6e055ae..e9550de 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/basic_allowance.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/basic_allowance.dart @@ -15,7 +15,7 @@ class BasicAllowance extends CosmosMessage { /// expiration specifies an optional time when this allowance expires final ProtobufTimestamp? expiration; BasicAllowance({required List spendLimit, this.expiration}) - : spendLimit = spendLimit.mutable; + : spendLimit = spendLimit.immutable; factory BasicAllowance.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return BasicAllowance( diff --git a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/genesis_state.dart b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/genesis_state.dart index fd3cdb6..2382801 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/genesis_state.dart @@ -8,7 +8,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class FeeGrantGenesisState extends CosmosMessage { final List allowances; FeeGrantGenesisState(List allowances) - : allowances = allowances.mutable; + : allowances = allowances.immutable; factory FeeGrantGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return FeeGrantGenesisState( diff --git a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/periodic_allowance.dart b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/periodic_allowance.dart index a1aef9d..c7f9f9d 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/periodic_allowance.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/messages/periodic_allowance.dart @@ -31,8 +31,8 @@ class PeriodicAllowance extends CosmosMessage { required List periodSpendLimit, required List periodCanSpend, required this.periodReset}) - : periodSpendLimit = periodSpendLimit.mutable, - periodCanSpend = periodCanSpend.mutable; + : periodSpendLimit = periodSpendLimit.immutable, + periodCanSpend = periodCanSpend.immutable; factory PeriodicAllowance.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return PeriodicAllowance( diff --git a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_by_granter_response.dart b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_by_granter_response.dart index 5d207fd..b76be69 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_by_granter_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_by_granter_response.dart @@ -15,7 +15,7 @@ class QueryAllowancesByGranterResponse extends CosmosMessage { final PageResponse? pagination; QueryAllowancesByGranterResponse( {required List allowances, this.pagination}) - : allowances = allowances.mutable; + : allowances = allowances.immutable; factory QueryAllowancesByGranterResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_response.dart b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_response.dart index 12f4190..83c630d 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_feegrant_v1beta1/query/query_allowances_response.dart @@ -13,7 +13,7 @@ class QueryAllowancesResponse extends CosmosMessage { /// pagination defines an pagination for the response. final PageResponse? pagination; QueryAllowancesResponse({required List allowances, this.pagination}) - : allowances = allowances.mutable; + : allowances = allowances.immutable; factory QueryAllowancesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit.dart index 675eccd..e95beb4 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit.dart @@ -16,7 +16,7 @@ class GovDeposit extends CosmosMessage { /// amount to be deposited by depositor. final List amount; GovDeposit({this.proposalId, this.depositor, required List amount}) - : amount = amount.mutable; + : amount = amount.immutable; factory GovDeposit.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovDeposit( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit_params.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit_params.dart index e8c2f3c..a854768 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit_params.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/deposit_params.dart @@ -14,7 +14,7 @@ class GovDepositParams extends CosmosMessage { final ProtobufDuration maxDepositPeriod; GovDepositParams( {required List minDeposit, required this.maxDepositPeriod}) - : minDeposit = minDeposit.mutable; + : minDeposit = minDeposit.immutable; factory GovDepositParams.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovDepositParams( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/genesis_state.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/genesis_state.dart index 3de02de..2659b51 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/genesis_state.dart @@ -39,12 +39,12 @@ class GovGenesisState extends CosmosMessage { required List depositParams, required List votingParams, required List tallyParams}) - : deposits = deposits.mutable, - votes = votes.mutable, - proposals = proposals.mutable, - depositParams = depositParams.mutable, - votingParams = votingParams.mutable, - tallyParams = tallyParams.mutable; + : deposits = deposits.immutable, + votes = votes.immutable, + proposals = proposals.immutable, + depositParams = depositParams.immutable, + votingParams = votingParams.immutable, + tallyParams = tallyParams.immutable; factory GovGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovGenesisState( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/vote.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/vote.dart index a1dc804..e341ba2 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/vote.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/messages/vote.dart @@ -28,7 +28,7 @@ class GovVote extends CosmosMessage { this.voter, this.option, required List options}) - : options = options.mutable; + : options = options.immutable; factory GovVote.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_deposits_response.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_deposits_response.dart index 7140749..ccdf1e9 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_deposits_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_deposits_response.dart @@ -14,7 +14,7 @@ class GovQueryDepositsResponse extends CosmosMessage { final PageResponse? pagination; GovQueryDepositsResponse( {required List deposits, this.pagination}) - : deposits = deposits.mutable; + : deposits = deposits.immutable; factory GovQueryDepositsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovQueryDepositsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_proposals_response.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_proposals_response.dart index 5e28e90..4f370cc 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_proposals_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_proposals_response.dart @@ -14,7 +14,7 @@ class GovQueryProposalsResponse extends CosmosMessage { final PageResponse? pagination; GovQueryProposalsResponse( {required List proposals, this.pagination}) - : proposals = proposals.mutable; + : proposals = proposals.immutable; factory GovQueryProposalsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovQueryProposalsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_votes_response.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_votes_response.dart index 6a9c298..1260028 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_votes_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/query/query_votes_response.dart @@ -13,7 +13,7 @@ class GovQueryVotesResponse extends CosmosMessage { /// pagination defines the pagination in the response. final PageResponse? pagination; GovQueryVotesResponse({required List votes, this.pagination}) - : votes = votes.mutable; + : votes = votes.immutable; factory GovQueryVotesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovQueryVotesResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_submit_proposal.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_submit_proposal.dart index 430a057..66d61c2 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_submit_proposal.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_submit_proposal.dart @@ -20,7 +20,7 @@ class GovMsgSubmitProposal extends CosmosMessage final CosmosBaseAddress? proposer; GovMsgSubmitProposal( {this.content, required List initialDeposit, this.proposer}) - : initialDeposit = initialDeposit.mutable; + : initialDeposit = initialDeposit.immutable; factory GovMsgSubmitProposal.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovMsgSubmitProposal( diff --git a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_vote_weighted.dart b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_vote_weighted.dart index c0dee2e..bfe8b7b 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_vote_weighted.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_gov_v1beta1/service/msg_vote_weighted.dart @@ -18,7 +18,7 @@ class GovMsgVoteWeighted extends CosmosMessage {required this.propoosalId, this.voter, required List options}) - : options = options.mutable; + : options = options.immutable; factory GovMsgVoteWeighted.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GovMsgVoteWeighted( diff --git a/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/entry.dart b/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/entry.dart index 2a163a7..90c16fa 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/entry.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/entry.dart @@ -12,7 +12,7 @@ class Entry extends CosmosMessage { final List nfts; /// Constructs a new instance of [Entry]. - Entry({this.owner, required List nfts}) : nfts = nfts.mutable; + Entry({this.owner, required List nfts}) : nfts = nfts.immutable; factory Entry.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/genesis_state.dart b/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/genesis_state.dart index feb8668..a979942 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_nft_v1beta1/messages/genesis_state.dart @@ -14,8 +14,8 @@ class NFTGenesisState extends CosmosMessage { NFTGenesisState( {required List classes, required List entries}) - : classes = classes.mutable, - entries = entries.mutable; + : classes = classes.immutable, + entries = entries.immutable; factory NFTGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return NFTGenesisState( diff --git a/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/parameter_change_proposal.dart b/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/parameter_change_proposal.dart index 22ce143..b419c93 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/parameter_change_proposal.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/parameter_change_proposal.dart @@ -10,7 +10,7 @@ class ParameterChangeProposal extends CosmosMessage { final List changes; ParameterChangeProposal( {this.title, this.description, required List changes}) - : changes = changes.mutable; + : changes = changes.immutable; factory ParameterChangeProposal.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ParameterChangeProposal( diff --git a/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/subspace.dart b/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/subspace.dart index 463ee0d..67f5adb 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/subspace.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/messages/subspace.dart @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class ParamsSubspace extends CosmosMessage { final String? subspace; final List? keys; - ParamsSubspace({this.subspace, List? keys}) : keys = keys?.mutable; + ParamsSubspace({this.subspace, List? keys}) : keys = keys?.immutable; factory ParamsSubspace.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ParamsSubspace( diff --git a/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/query/query_subspaces_response.dart b/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/query/query_subspaces_response.dart index a5f711e..d47c8ab 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/query/query_subspaces_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_params_v1beta1/query/query_subspaces_response.dart @@ -9,7 +9,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class ParamsQuerySubspacesResponse extends CosmosMessage { final List subspaces; ParamsQuerySubspacesResponse(List subspaces) - : subspaces = subspaces.mutable; + : subspaces = subspaces.immutable; factory ParamsQuerySubspacesResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ParamsQuerySubspacesResponse(decode diff --git a/lib/src/models/sdk_v1beta1/cosmos_slashing_v1beta1/query/query_signing_infos_response.dart b/lib/src/models/sdk_v1beta1/cosmos_slashing_v1beta1/query/query_signing_infos_response.dart index 94287ca..2ac3eb9 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_slashing_v1beta1/query/query_signing_infos_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_slashing_v1beta1/query/query_signing_infos_response.dart @@ -11,7 +11,7 @@ class SlashingQuerySigningInfosResponse extends CosmosMessage { final PageResponse? pagination; SlashingQuerySigningInfosResponse( {required List info, this.pagination}) - : info = info.mutable; + : info = info.immutable; factory SlashingQuerySigningInfosResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return SlashingQuerySigningInfosResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/genesis_state.dart b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/genesis_state.dart index 425e5d8..4eb5724 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/genesis_state.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/genesis_state.dart @@ -46,11 +46,11 @@ class StakingGenesisState extends CosmosMessage { required List unbondingDelegations, required List redelegations, required this.exported, - }) : lastValidatorPowers = lastValidatorPowers.mutable, - validators = validators.mutable, - delegations = delegations.mutable, - unbondingDelegations = unbondingDelegations.mutable, - redelegations = redelegations.mutable, + }) : lastValidatorPowers = lastValidatorPowers.immutable, + validators = validators.immutable, + delegations = delegations.immutable, + unbondingDelegations = unbondingDelegations.immutable, + redelegations = redelegations.immutable, lastTotalPower = BytesUtils.toBytes(lastTotalPower, unmodifiable: true); factory StakingGenesisState.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/unbonding_delegation.dart b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/unbonding_delegation.dart index 729593e..a0d1873 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/unbonding_delegation.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/unbonding_delegation.dart @@ -20,7 +20,7 @@ class UnbondingDelegation extends CosmosMessage { required this.delegatorAddress, required this.validatorAddress, required List entries, - }) : entries = entries.mutable; + }) : entries = entries.immutable; factory UnbondingDelegation.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return UnbondingDelegation( diff --git a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/validator.dart b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/validator.dart index 6427c63..5444a55 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/validator.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/messages/validator.dart @@ -71,7 +71,7 @@ class StakingValidator extends CosmosMessage { required this.minSelfDelegation, this.unbondingOnHoldRefCount, List? unbondingIds, - }) : unbondingIds = unbondingIds?.mutable; + }) : unbondingIds = unbondingIds?.immutable; factory StakingValidator.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_unbonding_delegations_response.dart b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_unbonding_delegations_response.dart index f99107f..af70902 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_unbonding_delegations_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_unbonding_delegations_response.dart @@ -12,7 +12,7 @@ class QueryDelegatorUnbondingDelegationsResponse extends CosmosMessage { final PageResponse? pagination; QueryDelegatorUnbondingDelegationsResponse( {required List unbondingResponses, this.pagination}) - : unbondingResponses = unbondingResponses.mutable; + : unbondingResponses = unbondingResponses.immutable; factory QueryDelegatorUnbondingDelegationsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_validators_response.dart b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_validators_response.dart index 2176337..9110754 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_validators_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_delegator_validators_response.dart @@ -13,7 +13,7 @@ class QueryDelegatorValidatorsResponse extends CosmosMessage { final PageResponse? pagination; QueryDelegatorValidatorsResponse( {required List validators, this.pagination}) - : validators = validators.mutable; + : validators = validators.immutable; factory QueryDelegatorValidatorsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryDelegatorValidatorsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_validator_unbonding_delegations_response.dart b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_validator_unbonding_delegations_response.dart index e5873b3..fc436a5 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_validator_unbonding_delegations_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_staking_v1beta1/query/query_validator_unbonding_delegations_response.dart @@ -12,7 +12,7 @@ class QueryValidatorUnbondingDelegationsResponse extends CosmosMessage { final PageResponse? pagination; QueryValidatorUnbondingDelegationsResponse( {required List unbondingResponses, this.pagination}) - : unbondingResponses = unbondingResponses.mutable; + : unbondingResponses = unbondingResponses.immutable; factory QueryValidatorUnbondingDelegationsResponse.deserialize( List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_block_with_txs_response.dart b/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_block_with_txs_response.dart index 7119f61..977b590 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_block_with_txs_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_block_with_txs_response.dart @@ -18,7 +18,7 @@ class GetBlockWithTxsResponse extends CosmosMessage { final PageResponse? pagination; GetBlockWithTxsResponse( {required List txs, this.block, this.blockID, this.pagination}) - : txs = txs.mutable; + : txs = txs.immutable; factory GetBlockWithTxsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GetBlockWithTxsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_request.dart b/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_request.dart index 11fc928..431e335 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_request.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_request.dart @@ -40,7 +40,7 @@ class GetTxsEventRequest extends CosmosMessage this.page, this.limit, this.query}) - : events = events?.mutable; + : events = events?.immutable; factory GetTxsEventRequest.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GetTxsEventRequest( diff --git a/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_response.dart b/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_response.dart index 3957da2..28d2d68 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_tx_v1beta1/query/get_txs_event_response.dart @@ -24,8 +24,8 @@ class GetTxsEventResponse extends CosmosMessage { required List txResponses, this.pagination, this.total}) - : txs = txs.mutable, - txResponses = txResponses.mutable; + : txs = txs.immutable, + txResponses = txResponses.immutable; factory GetTxsEventResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return GetTxsEventResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_upgrade_v1beta1/query/query_module_versions_response.dart b/lib/src/models/sdk_v1beta1/cosmos_upgrade_v1beta1/query/query_module_versions_response.dart index 5d92cf9..ef7135a 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_upgrade_v1beta1/query/query_module_versions_response.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_upgrade_v1beta1/query/query_module_versions_response.dart @@ -10,7 +10,7 @@ class QueryModuleVersionsResponse extends CosmosMessage { /// module_versions is a list of module names with their consensus versions. final List moduleVersions; QueryModuleVersionsResponse({required List moduleVersions}) - : moduleVersions = moduleVersions.mutable; + : moduleVersions = moduleVersions.immutable; factory QueryModuleVersionsResponse.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return QueryModuleVersionsResponse( diff --git a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/base_vesting_account.dart b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/base_vesting_account.dart index 8ee7485..b9d26a2 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/base_vesting_account.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/base_vesting_account.dart @@ -29,9 +29,9 @@ class BaseVestingAccount extends CosmosMessage { required List delegatedFree, required List delegatedVesting, this.endTime, - }) : originalVesting = originalVesting.mutable, - delegatedFree = delegatedFree.mutable, - delegatedVesting = delegatedVesting.mutable; + }) : originalVesting = originalVesting.immutable, + delegatedFree = delegatedFree.immutable, + delegatedVesting = delegatedVesting.immutable; factory BaseVestingAccount.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return BaseVestingAccount( diff --git a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/period.dart b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/period.dart index ac41bda..b438b5d 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/period.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/period.dart @@ -14,7 +14,7 @@ class Period extends CosmosMessage { Period({ this.length, required List amount, - }) : amount = amount.mutable; + }) : amount = amount.immutable; factory Period.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/periodic_vesting_account.dart b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/periodic_vesting_account.dart index f9def7f..1a766af 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/periodic_vesting_account.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/messages/periodic_vesting_account.dart @@ -17,7 +17,7 @@ class PeriodicVestingAccount extends CosmosMessage { this.baseVestingAccount, this.startTime, required List vestingPeriods, - }) : vestingPeriods = vestingPeriods.mutable; + }) : vestingPeriods = vestingPeriods.immutable; factory PeriodicVestingAccount.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_periodic_vesting_account.dart b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_periodic_vesting_account.dart index 0d27904..bf85f15 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_periodic_vesting_account.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_periodic_vesting_account.dart @@ -24,7 +24,7 @@ class MsgCreatePeriodicVestingAccount extends CosmosMessage this.toAddress, this.startTime, required List vestingPeriods, - }) : vestingPeriods = vestingPeriods.mutable; + }) : vestingPeriods = vestingPeriods.immutable; /// Converts this instance of [MsgCreatePeriodicVestingAccount] to a JSON object. @override diff --git a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_permanent_locked_account.dart b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_permanent_locked_account.dart index 65b9bab..e589bfa 100755 --- a/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_permanent_locked_account.dart +++ b/lib/src/models/sdk_v1beta1/cosmos_vesting_v1beta1/service/create_permanent_locked_account.dart @@ -20,7 +20,7 @@ class MsgCreatePermanentLockedAccount extends CosmosMessage this.fromAddress, this.toAddress, required List amount, - }) : amount = amount.mutable; + }) : amount = amount.immutable; factory MsgCreatePermanentLockedAccount.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); diff --git a/lib/src/models/tendermint/tendermint_crypto/messages/proof_ops.dart b/lib/src/models/tendermint/tendermint_crypto/messages/proof_ops.dart index c0fc29c..3238cbf 100755 --- a/lib/src/models/tendermint/tendermint_crypto/messages/proof_ops.dart +++ b/lib/src/models/tendermint/tendermint_crypto/messages/proof_ops.dart @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; /// ProofOps is Merkle proof defined by the list of ProofOps class ProofOps extends CosmosMessage { final List ops; - ProofOps({required List ops}) : ops = ops.mutable; + ProofOps({required List ops}) : ops = ops.immutable; factory ProofOps.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ProofOps( diff --git a/lib/src/models/tendermint/tendermint_p2p/messages/message/pex_addrs.dart b/lib/src/models/tendermint/tendermint_p2p/messages/message/pex_addrs.dart index fdd2f55..779829e 100755 --- a/lib/src/models/tendermint/tendermint_p2p/messages/message/pex_addrs.dart +++ b/lib/src/models/tendermint/tendermint_p2p/messages/message/pex_addrs.dart @@ -8,7 +8,7 @@ import 'p2p_message.dart'; class PexAddrs extends P2pMessage { final List addrs; - PexAddrs({required List addrs}) : addrs = addrs.mutable; + PexAddrs({required List addrs}) : addrs = addrs.immutable; factory PexAddrs.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return PexAddrs( diff --git a/lib/src/models/tendermint/tendermint_types/messages/commit.dart b/lib/src/models/tendermint/tendermint_types/messages/commit.dart index 8ff8182..847c3b0 100755 --- a/lib/src/models/tendermint/tendermint_types/messages/commit.dart +++ b/lib/src/models/tendermint/tendermint_types/messages/commit.dart @@ -15,7 +15,7 @@ class Commit extends CosmosMessage { this.round, required this.blockID, required List signatures}) - : signatures = signatures.mutable; + : signatures = signatures.immutable; factory Commit.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return Commit( diff --git a/lib/src/models/tendermint/tendermint_types/messages/evidence/evidence_list.dart b/lib/src/models/tendermint/tendermint_types/messages/evidence/evidence_list.dart index df19ad8..abe495e 100755 --- a/lib/src/models/tendermint/tendermint_types/messages/evidence/evidence_list.dart +++ b/lib/src/models/tendermint/tendermint_types/messages/evidence/evidence_list.dart @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart'; class EvidenceList extends CosmosMessage { final List evidence; EvidenceList({required List evidence}) - : evidence = evidence.mutable; + : evidence = evidence.immutable; factory EvidenceList.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return EvidenceList( diff --git a/lib/src/models/tendermint/tendermint_types/messages/evidence/light_client_attack_evidence.dart b/lib/src/models/tendermint/tendermint_types/messages/evidence/light_client_attack_evidence.dart index de866f2..53697ce 100755 --- a/lib/src/models/tendermint/tendermint_types/messages/evidence/light_client_attack_evidence.dart +++ b/lib/src/models/tendermint/tendermint_types/messages/evidence/light_client_attack_evidence.dart @@ -19,7 +19,7 @@ class LightClientAttackEvidence extends BaseEvidence { required List byzantineValidators, this.totalVotingPower, required this.timestamp}) - : byzantineValidators = byzantineValidators.mutable; + : byzantineValidators = byzantineValidators.immutable; factory LightClientAttackEvidence.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return LightClientAttackEvidence( diff --git a/lib/src/models/tendermint/tendermint_types/messages/extended_commit.dart b/lib/src/models/tendermint/tendermint_types/messages/extended_commit.dart index 03dfeaa..4c125a5 100755 --- a/lib/src/models/tendermint/tendermint_types/messages/extended_commit.dart +++ b/lib/src/models/tendermint/tendermint_types/messages/extended_commit.dart @@ -15,7 +15,7 @@ class ExtendedCommit extends CosmosMessage { this.round, required this.blockID, required List extendedSignatures}) - : extendedSignatures = extendedSignatures.mutable; + : extendedSignatures = extendedSignatures.immutable; factory ExtendedCommit.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ExtendedCommit( diff --git a/lib/src/models/tendermint/tendermint_types/messages/validator_set.dart b/lib/src/models/tendermint/tendermint_types/messages/validator_set.dart index 077b6e7..4df27e7 100755 --- a/lib/src/models/tendermint/tendermint_types/messages/validator_set.dart +++ b/lib/src/models/tendermint/tendermint_types/messages/validator_set.dart @@ -11,7 +11,7 @@ class ValidatorSet extends CosmosMessage { {required List validators, this.proposer, this.totalVotingPower}) - : validators = validators.mutable; + : validators = validators.immutable; factory ValidatorSet.deserialize(List bytes) { final decode = CosmosProtocolBuffer.decode(bytes); return ValidatorSet( diff --git a/lib/src/provider/tendermint/methods/tx/broadcast_tx_commit.dart b/lib/src/provider/tendermint/methods/tx/broadcast_tx_commit.dart index b804822..0ccee27 100755 --- a/lib/src/provider/tendermint/methods/tx/broadcast_tx_commit.dart +++ b/lib/src/provider/tendermint/methods/tx/broadcast_tx_commit.dart @@ -23,7 +23,6 @@ class TendermintRequestBroadcastTxCommit @override BrodcastTxResponse onResonse(Map result) { - final r = BrodcastTxResponse.fromJson(result); - return r; + return BrodcastTxResponse.fromJson(result); } } diff --git a/lib/src/provider/tendermint/models/models/check_tx.dart b/lib/src/provider/tendermint/models/models/check_tx.dart index 49dc1ae..7ae5288 100644 --- a/lib/src/provider/tendermint/models/models/check_tx.dart +++ b/lib/src/provider/tendermint/models/models/check_tx.dart @@ -27,7 +27,7 @@ class CheckTxResponse { this.mempoolError, this.priority, this.sender, - }) : events = events.mutable, + }) : events = events.immutable, data = BytesUtils.tryToBytes(data, unmodifiable: true); factory CheckTxResponse.fromJson(Map json) { diff --git a/lib/src/provider/tendermint/models/models/deliver_tx_response.dart b/lib/src/provider/tendermint/models/models/deliver_tx_response.dart index 7c70556..fda2a28 100644 --- a/lib/src/provider/tendermint/models/models/deliver_tx_response.dart +++ b/lib/src/provider/tendermint/models/models/deliver_tx_response.dart @@ -18,10 +18,10 @@ class DeliverTxResponse { this.info, this.gasWanted, this.gasUsed, - List events = const [], + List? events, this.codespace}) : data = BytesUtils.tryToBytes(data, unmodifiable: true), - events = events.mutable; + events = events?.immutable; factory DeliverTxResponse.fromJson(Map json) { return DeliverTxResponse( code: json["code"], @@ -30,8 +30,8 @@ class DeliverTxResponse { info: json["info"], gasWanted: BigintUtils.tryParse(json["gas_wanted"]), gasUsed: BigintUtils.tryParse(json["gas_used"]), - events: (json["events"] as List) - .map((e) => EventResponse.fromJson(e)) + events: (json["events"] as List?) + ?.map((e) => EventResponse.fromJson(e)) .toList(), codespace: json["codespace"]); } diff --git a/lib/src/provider/tendermint/models/models/tx_response.dart b/lib/src/provider/tendermint/models/models/tx_response.dart index b354d23..c18b278 100644 --- a/lib/src/provider/tendermint/models/models/tx_response.dart +++ b/lib/src/provider/tendermint/models/models/tx_response.dart @@ -17,7 +17,8 @@ class BrodcastTxResponse { checkTx: CheckTxResponse.fromJson(json["check_tx"]), hash: json["hash"], height: BigintUtils.parse(json["height"]), - deliverTx: DeliverTxResponse.fromJson(json["deliver_tx"])); + deliverTx: DeliverTxResponse.fromJson( + Map.from(json["deliver_tx"] ?? {}))); } Map toJson() { return { @@ -28,8 +29,7 @@ class BrodcastTxResponse { }; } - bool get isSuccess => - height > BigInt.zero && checkTx.code == 0 && deliverTx.code == 0; + bool get isSuccess => height > BigInt.zero && checkTx.code == 0; String? get error { if (isSuccess) return null; diff --git a/lib/src/provider/thornode/models/models/ban_status_response.dart b/lib/src/provider/thornode/models/models/ban_status_response.dart index 092c404..6d19d38 100644 --- a/lib/src/provider/thornode/models/models/ban_status_response.dart +++ b/lib/src/provider/thornode/models/models/ban_status_response.dart @@ -9,7 +9,7 @@ class ThorBanStatusResponse { required this.nodeAddress, required this.blockHeight, required List signers, - }) : signers = signers.mutable; + }) : signers = signers.immutable; factory ThorBanStatusResponse.fromJson(Map json) { return ThorBanStatusResponse( diff --git a/lib/src/provider/thornode/models/models/streaming_swap_state.dart b/lib/src/provider/thornode/models/models/streaming_swap_state.dart index 10efd07..9f61b55 100644 --- a/lib/src/provider/thornode/models/models/streaming_swap_state.dart +++ b/lib/src/provider/thornode/models/models/streaming_swap_state.dart @@ -31,8 +31,8 @@ class StreamingSwapStateResponse { required this.outAmount, required List failedSwaps, required List failedSwapReasons, - }) : failedSwaps = failedSwaps.mutable, - failedSwapReasons = failedSwapReasons.mutable; + }) : failedSwaps = failedSwaps.immutable, + failedSwapReasons = failedSwapReasons.immutable; factory StreamingSwapStateResponse.fromJson(Map json) { return StreamingSwapStateResponse( diff --git a/lib/src/provider/thornode/models/models/vault_info.dart b/lib/src/provider/thornode/models/models/vault_info.dart index 2fa9952..d420bd1 100644 --- a/lib/src/provider/thornode/models/models/vault_info.dart +++ b/lib/src/provider/thornode/models/models/vault_info.dart @@ -33,13 +33,13 @@ class ThorVaultInfoResponse { required List routers, required List addresses, required List frozen, - }) : coins = coins.mutable, - membership = membership.mutable, - chains = chains.mutable, - routers = routers.mutable, - addresses = addresses.mutable, - frozen = frozen.mutable, - pendingTxBlockHeights = pendingTxBlockHeights.mutable; + }) : coins = coins.immutable, + membership = membership.immutable, + chains = chains.immutable, + routers = routers.immutable, + addresses = addresses.immutable, + frozen = frozen.immutable, + pendingTxBlockHeights = pendingTxBlockHeights.immutable; factory ThorVaultInfoResponse.fromJson(Map json) { return ThorVaultInfoResponse( diff --git a/lib/src/provider/thornode/models/models/vault_pubkey_info.dart b/lib/src/provider/thornode/models/models/vault_pubkey_info.dart index c3d51e4..7da2774 100644 --- a/lib/src/provider/thornode/models/models/vault_pubkey_info.dart +++ b/lib/src/provider/thornode/models/models/vault_pubkey_info.dart @@ -8,7 +8,7 @@ class VaultPubKeyInfo { VaultPubKeyInfo({ required this.pubKey, required List routers, - }) : routers = routers.mutable; + }) : routers = routers.immutable; factory VaultPubKeyInfo.fromJson(Map json) { return VaultPubKeyInfo( diff --git a/lib/src/provider/thornode/models/models/vault_pubkeys_info.dart b/lib/src/provider/thornode/models/models/vault_pubkeys_info.dart index 554fc56..0d2cf5c 100644 --- a/lib/src/provider/thornode/models/models/vault_pubkeys_info.dart +++ b/lib/src/provider/thornode/models/models/vault_pubkeys_info.dart @@ -10,9 +10,9 @@ class ThorVaultPubkeysInfoResponse { required List asgard, required List yggdrasil, required List inactive, - }) : asgard = asgard.mutable, - yggdrasil = yggdrasil.mutable, - inactive = inactive.mutable; + }) : asgard = asgard.immutable, + yggdrasil = yggdrasil.immutable, + inactive = inactive.immutable; factory ThorVaultPubkeysInfoResponse.fromJson(Map json) { return ThorVaultPubkeysInfoResponse( diff --git a/lib/src/utils/quick_extensions.dart b/lib/src/utils/quick_extensions.dart index 6d8120d..ecd0952 100755 --- a/lib/src/utils/quick_extensions.dart +++ b/lib/src/utils/quick_extensions.dart @@ -1,4 +1,4 @@ extension QuickExtention on List { - List get mutable => List.unmodifiable(this); - List? get nullOnEmpy => isEmpty ? null : mutable; + List get immutable => List.unmodifiable(this); + List? get nullOnEmpy => isEmpty ? null : immutable; } diff --git a/pubspec.yaml b/pubspec.yaml index 036b28b..e05a8ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: cosmos_sdk description: Engage seamlessly with a Cosmos SDK-based network (cosmos hub, osmosis, thor, kujira and etc ... ), enabling the creation, signing, and transmission of transactions. (Beta version) -version: 1.0.0 +version: 1.1.0 homepage: "https://github.com/mrtnetwork/cosmos_sdk" repository: "https://github.com/mrtnetwork/cosmos_sdk" Author: mrhaydari.t@gmail.com