Skip to content

Commit

Permalink
V1.1.0
Browse files Browse the repository at this point in the history
- fix parsing transaction.
  • Loading branch information
mrtnetwork committed Aug 18, 2024
1 parent 50506aa commit 5598dea
Show file tree
Hide file tree
Showing 278 changed files with 358 additions and 352 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.0

* Fix parsing transaction.

## 1.0.0

* Update dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Owner> owners;
CapabilityOwners(List<Owner> owners) : owners = owners.mutable;
CapabilityOwners(List<Owner> owners) : owners = owners.immutable;
factory CapabilityOwners.deserialize(List<int> bytes) {
final deocde = CosmosProtocolBuffer.decode(bytes);
return CapabilityOwners(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class IbcFeeIdentifiedPacketFees extends CosmosMessage {
final List<IbcFeePacketFee> packetFees;
IbcFeeIdentifiedPacketFees(
{required this.packetId, required List<IbcFeePacketFee> packetFees})
: packetFees = packetFees.mutable;
: packetFees = packetFees.immutable;
factory IbcFeeIdentifiedPacketFees.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcFeeIdentifiedPacketFees(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PacketFees extends CosmosMessage {
/// list of packet fees
final List<IbcFeePacketFee> packetFees;
PacketFees(List<IbcFeePacketFee> packetFees)
: packetFees = packetFees.mutable;
: packetFees = packetFees.immutable;
factory PacketFees.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return PacketFees(decode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QueryFeeEnabledChannelsResponse extends CosmosMessage {
QueryFeeEnabledChannelsResponse(
{required List<IbcFeeFeeEnabledChannel> feeEnabledChannels,
this.pagination})
: feeEnabledChannels = feeEnabledChannels.mutable;
: feeEnabledChannels = feeEnabledChannels.immutable;
factory QueryFeeEnabledChannelsResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryFeeEnabledChannelsResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QueryIncentivizedPacketsForChannelResponse extends CosmosMessage {
QueryIncentivizedPacketsForChannelResponse(
{required List<IbcFeeIdentifiedPacketFees> incentivizedPackets,
this.pagination})
: incentivizedPackets = incentivizedPackets.mutable;
: incentivizedPackets = incentivizedPackets.immutable;

factory QueryIncentivizedPacketsForChannelResponse.deserialize(
List<int> bytes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QueryIncentivizedPacketsResponse extends CosmosMessage {
QueryIncentivizedPacketsResponse(
{required List<IbcFeeIdentifiedPacketFees> incentivizedPackets,
this.pagination})
: incentivizedPackets = incentivizedPackets.mutable;
: incentivizedPackets = incentivizedPackets.immutable;

factory QueryIncentivizedPacketsResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QueryTotalAckFeesResponse extends CosmosMessage {
/// the total packet acknowledgement fees
final List<Coin> recvFees;
QueryTotalAckFeesResponse({required List<Coin> recvFees})
: recvFees = recvFees.mutable;
: recvFees = recvFees.immutable;
factory QueryTotalAckFeesResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryTotalAckFeesResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QueryTotalRecvFeesResponse extends CosmosMessage {
/// the total packet receive fees
final List<Coin> recvFees;
QueryTotalRecvFeesResponse({required List<Coin> recvFees})
: recvFees = recvFees.mutable;
: recvFees = recvFees.immutable;
factory QueryTotalRecvFeesResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryTotalRecvFeesResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QueryTotalTimeoutFeesResponse extends CosmosMessage {
/// the total packet receive fees
final List<Coin> timeoutFees;
QueryTotalTimeoutFeesResponse({required List<Coin> timeoutFees})
: timeoutFees = timeoutFees.mutable;
: timeoutFees = timeoutFees.immutable;
factory QueryTotalTimeoutFeesResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryTotalTimeoutFeesResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ControllerGenesisState extends CosmosMessage {
required List<RegisteredInterchainAccount> interchainAccounts,
List<String>? ports,
required this.params})
: activeChannels = activeChannels.mutable,
interchainAccounts = interchainAccounts.mutable,
: activeChannels = activeChannels.immutable,
interchainAccounts = interchainAccounts.immutable,
ports = ports?.nullOnEmpy;
factory ControllerGenesisState.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class HostGenesisState extends CosmosMessage {
required List<RegisteredInterchainAccount> interchainAccounts,
this.port,
required this.params})
: activeChannels = activeChannels.mutable,
interchainAccounts = interchainAccounts.mutable;
: activeChannels = activeChannels.immutable,
interchainAccounts = interchainAccounts.immutable;
factory HostGenesisState.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return HostGenesisState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class QueryDenomTracesResponse extends CosmosMessage {
final PageResponse? pagination;
QueryDenomTracesResponse(
{required List<DenomTrace> denomTraces, this.pagination})
: denomTraces = denomTraces.mutable;
: denomTraces = denomTraces.immutable;
factory QueryDenomTracesResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryDenomTracesResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class IbcChannelGenesisState extends CosmosMessage {
required List<IbcChannelPacketSequence> 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<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcChannelGenesisState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IbcChannelIdentifiedChannel extends CosmosMessage {
this.portId,
this.channelId,
this.upgradeSequence})
: connectionHops = connectionHops?.mutable;
: connectionHops = connectionHops?.immutable;
factory IbcChannelIdentifiedChannel.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcChannelIdentifiedChannel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UpgradeFields extends CosmosMessage {
final List<String>? connectionHops;
final String? version;
UpgradeFields({this.ordering, List<String>? connectionHops, this.version})
: connectionHops = connectionHops?.mutable;
: connectionHops = connectionHops?.immutable;
factory UpgradeFields.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return UpgradeFields(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class IbcClientClientConsensusStates extends CosmosMessage {
final List<ConsensusStateWithHeight> consensusStates;
IbcClientClientConsensusStates(
{required List<ConsensusStateWithHeight> consensusStates, this.clientId})
: consensusStates = consensusStates.mutable;
: consensusStates = consensusStates.immutable;
factory IbcClientClientConsensusStates.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcClientClientConsensusStates(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcClientGenesisState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IbcClientIdentifiedGenesisMetadata extends CosmosMessage {
final List<IbcClientGenesisMetadata> clientMetadata;
IbcClientIdentifiedGenesisMetadata(
{this.clientId, required List<IbcClientGenesisMetadata> clientMetadata})
: clientMetadata = clientMetadata.mutable;
: clientMetadata = clientMetadata.immutable;
factory IbcClientIdentifiedGenesisMetadata.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcClientIdentifiedGenesisMetadata(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QueryClientStatesResponse extends CosmosMessage {
QueryClientStatesResponse(
{required List<IbcClientIdentifiedClientState> clinetStates,
this.pagination})
: clinetStates = clinetStates.mutable;
: clinetStates = clinetStates.immutable;
factory QueryClientStatesResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryClientStatesResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class QueryConsensusStateHeightsResponse extends CosmosMessage {
final PageResponse? pagination;
QueryConsensusStateHeightsResponse(
{required List<IbcClientHeight> consensusStateHeights, this.pagination})
: consensusStateHeights = consensusStateHeights.mutable;
: consensusStateHeights = consensusStateHeights.immutable;

factory QueryConsensusStateHeightsResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QueryConsensusStatesResponse extends CosmosMessage {
QueryConsensusStatesResponse(
{required List<ConsensusStateWithHeight> consensusStates,
this.pagination})
: consensusStates = consensusStates.mutable;
: consensusStates = consensusStates.immutable;
factory QueryConsensusStatesResponse.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return QueryConsensusStatesResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart';
class IbcConnectionClientPaths extends CosmosMessage {
/// list of connection paths
final List<String>? paths;
IbcConnectionClientPaths({List<String>? paths}) : paths = paths?.mutable;
IbcConnectionClientPaths({List<String>? paths}) : paths = paths?.immutable;
factory IbcConnectionClientPaths.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcConnectionClientPaths(paths: decode.getFields<String>(1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcConnectionConnectionEnd(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class IbcConnectionGenesisState extends CosmosMessage {
required List<IbcConnectConnectionPaths> clientConnectionPaths,
this.nextConnectionSequence,
required this.params})
: connections = connections.mutable,
clientConnectionPaths = clientConnectionPaths.mutable;
: connections = connections.immutable,
clientConnectionPaths = clientConnectionPaths.immutable;
factory IbcConnectionGenesisState.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcConnectionGenesisState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IbcConnectionVersion extends CosmosMessage {
/// list of features compatible with the specified identifier
final List<String>? features;
IbcConnectionVersion({this.identifier, List<String>? features})
: features = features?.mutable;
: features = features?.immutable;
factory IbcConnectionVersion.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcConnectionVersion(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class IbcConnectionMsgConnectionOpenTry extends CosmosMessage
required this.consensusHeight,
this.signer,
List<int>? hostConsensusStateProof,
}) : counterpartyVersions = counterpartyVersions?.mutable,
}) : counterpartyVersions = counterpartyVersions?.immutable,
proofInit = BytesUtils.tryToBytes(proofInit, unmodifiable: true),
proofClient = BytesUtils.tryToBytes(proofClient, unmodifiable: true),
proofConsensus =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class IbcLightClientsWasmGenesisState extends CosmosMessage {
/// uploaded light client wasm contracts
final List<IbcLightClientsWasmContract> contracts;
IbcLightClientsWasmGenesisState(List<IbcLightClientsWasmContract> contracts)
: contracts = contracts.mutable;
: contracts = contracts.immutable;
factory IbcLightClientsWasmGenesisState.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return IbcLightClientsWasmGenesisState(decode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class OsmosisAccumAccumulatorContent extends CosmosMessage {
final String totalShares;
OsmosisAccumAccumulatorContent(
{required List<DecCoin> accumValue, required this.totalShares})
: accumValue = accumValue.mutable;
: accumValue = accumValue.immutable;
factory OsmosisAccumAccumulatorContent.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return OsmosisAccumAccumulatorContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class OsmosisAccumRecord extends CosmosMessage {
required this.numShares,
required List<DecCoin> accumValuePerShare,
required List<DecCoin> unclaimedRewardsTotal,
}) : accumValuePerShare = accumValuePerShare.mutable,
unclaimedRewardsTotal = unclaimedRewardsTotal.mutable;
}) : accumValuePerShare = accumValuePerShare.immutable,
unclaimedRewardsTotal = unclaimedRewardsTotal.immutable;
factory OsmosisAccumRecord.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return OsmosisAccumRecord(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class FullPositionBreakdown extends CosmosMessage {
required List<Coin> claimableSpreadRewards,
required List<Coin> claimableIncentives,
required List<Coin> forfeitedIncentives})
: claimableSpreadRewards = claimableSpreadRewards.mutable,
claimableIncentives = claimableIncentives.mutable,
forfeitedIncentives = forfeitedIncentives.mutable;
: claimableSpreadRewards = claimableSpreadRewards.immutable,
claimableIncentives = claimableIncentives.immutable,
forfeitedIncentives = forfeitedIncentives.immutable;
factory FullPositionBreakdown.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return FullPositionBreakdown(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class OsmosisConcentratedLiquidityPoolData extends CosmosMessage {
incentivesAccumulators,
required List<OsmosisConcentratedLiquidityIncentiveRecord>
incentiveRecords})
: ticks = ticks.mutable,
incentivesAccumulators = incentivesAccumulators.mutable,
incentiveRecords = incentiveRecords.mutable;
: ticks = ticks.immutable,
incentivesAccumulators = incentivesAccumulators.immutable,
incentiveRecords = incentiveRecords.immutable;
factory OsmosisConcentratedLiquidityPoolData.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return OsmosisConcentratedLiquidityPoolData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class OsmosisConcentratedLiquidityPositionData extends CosmosMessage {
this.lockId,
required this.spreadRewardAccumRecord,
required List<OsmosisAccumRecord> uptimeAccumRecords,
}) : uptimeAccumRecords = uptimeAccumRecords.mutable;
}) : uptimeAccumRecords = uptimeAccumRecords.immutable;
factory OsmosisConcentratedLiquidityPositionData.deserialize(
List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class OsmosisConcentratedLiquidityTickInfo extends CosmosMessage {
spreadRewardGrowthOsppositeDirectionOfLastTraversal,
required this.uptimeTrackers})
: spreadRewardGrowthOsppositeDirectionOfLastTraversal =
spreadRewardGrowthOsppositeDirectionOfLastTraversal.mutable;
spreadRewardGrowthOsppositeDirectionOfLastTraversal.immutable;
factory OsmosisConcentratedLiquidityTickInfo.deserialize(List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
return OsmosisConcentratedLiquidityTickInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class OsmosisConcentratedLiquidityTickSpacingDecreaseProposal
this.description,
required List<OsmosisConcentratedLiquidityPoolIdToTickSpacingRecord>
poolIdToTickSpacingRecords,
}) : poolIdToTickSpacingRecords = poolIdToTickSpacingRecords.mutable;
}) : poolIdToTickSpacingRecords = poolIdToTickSpacingRecords.immutable;
factory OsmosisConcentratedLiquidityTickSpacingDecreaseProposal.deserialize(
List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class OsmosisConcentratedLiquidityUptimeTrackers extends CosmosMessage {
final List<OsmosisConcentratedLiquidityUptimeTracker> list;
OsmosisConcentratedLiquidityUptimeTrackers(
List<OsmosisConcentratedLiquidityUptimeTracker> list)
: list = list.mutable;
: list = list.immutable;
factory OsmosisConcentratedLiquidityUptimeTrackers.deserialize(
List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:cosmos_sdk/src/utils/quick_extensions.dart';
class OsmosisConcentratedLiquidityUptimeTracker extends CosmosMessage {
final List<DecCoin> uptimeGrowthOutside;
OsmosisConcentratedLiquidityUptimeTracker(List<DecCoin> uptimeGrowthOutside)
: uptimeGrowthOutside = uptimeGrowthOutside.mutable;
: uptimeGrowthOutside = uptimeGrowthOutside.immutable;
factory OsmosisConcentratedLiquidityUptimeTracker.deserialize(
List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class OsmosisConcentratedLiquidityClaimableIncentivesResponse
OsmosisConcentratedLiquidityClaimableIncentivesResponse({
required List<Coin> claimableIncentives,
required List<Coin> forfeitedIncentives,
}) : claimableIncentives = claimableIncentives.mutable,
forfeitedIncentives = forfeitedIncentives.mutable;
}) : claimableIncentives = claimableIncentives.immutable,
forfeitedIncentives = forfeitedIncentives.immutable;
factory OsmosisConcentratedLiquidityClaimableIncentivesResponse.deserialize(
List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class OsmosisConcentratedLiquidityClaimableSpreadRewardsResponse

OsmosisConcentratedLiquidityClaimableSpreadRewardsResponse(
List<Coin> claimableSpreadRewards)
: claimableSpreadRewards = claimableSpreadRewards.mutable;
: claimableSpreadRewards = claimableSpreadRewards.immutable;
factory OsmosisConcentratedLiquidityClaimableSpreadRewardsResponse.deserialize(
List<int> bytes) {
final decode = CosmosProtocolBuffer.decode(bytes);
Expand Down
Loading

0 comments on commit 5598dea

Please sign in to comment.