forked from DA0-DA0/dao-dao-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatches.diff
204 lines (204 loc) · 12.1 KB
/
patches.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
diff --git b/packages/types/protobuf/codegen/cosmos/authz/v1beta1/tx.ts a/packages/types/protobuf/codegen/cosmos/authz/v1beta1/tx.ts
index c04740c22..63b9a7cb8 100644
--- b/packages/types/protobuf/codegen/cosmos/authz/v1beta1/tx.ts
+++ a/packages/types/protobuf/codegen/cosmos/authz/v1beta1/tx.ts
@@ -1,4 +1,5 @@
//@ts-nocheck
+import { aminoToRawProtobufMsg, rawProtobufMsgToAmino } from '../../../../utils'
import { Grant, GrantAmino, GrantSDKType } from "./authz";
import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
import { BinaryReader, BinaryWriter } from "../../../binary";
@@ -371,14 +372,14 @@ export const MsgExec = {
if (object.grantee !== undefined && object.grantee !== null) {
message.grantee = object.grantee;
}
- message.msgs = object.msgs?.map(e => Cosmos_basev1beta1Msg_FromAmino(e)) || [];
+ message.msgs = object.msgs?.map(e => aminoToRawProtobufMsg(e)) || [];
return message;
},
toAmino(message: MsgExec, useInterfaces: boolean = false): MsgExecAmino {
const obj: any = {};
obj.grantee = message.grantee;
if (message.msgs) {
- obj.msgs = message.msgs.map(e => e ? Cosmos_basev1beta1Msg_ToAmino((e as Any), useInterfaces) : undefined);
+ obj.msgs = message.msgs.map(e => e ? rawProtobufMsgToAmino((e as Any), useInterfaces) : undefined);
} else {
obj.msgs = [];
}
diff --git b/packages/types/protobuf/codegen/cosmos/bank/v1beta1/bank.ts a/packages/types/protobuf/codegen/cosmos/bank/v1beta1/bank.ts
index 9eb780900..70b01f2fc 100644
--- b/packages/types/protobuf/codegen/cosmos/bank/v1beta1/bank.ts
+++ a/packages/types/protobuf/codegen/cosmos/bank/v1beta1/bank.ts
@@ -930,7 +930,9 @@ export const Metadata = {
},
toAmino(message: Metadata, useInterfaces: boolean = false): MetadataAmino {
const obj: any = {};
- obj.description = message.description;
+ if (message.description) {
+ obj.description = message.description;
+ }
if (message.denomUnits) {
obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e, useInterfaces) : undefined);
} else {
@@ -940,8 +942,12 @@ export const Metadata = {
obj.display = message.display;
obj.name = message.name;
obj.symbol = message.symbol;
- obj.uri = message.uri;
- obj.uri_hash = message.uriHash;
+ if (message.uri) {
+ obj.uri = message.uri;
+ }
+ if (message.uriHash) {
+ obj.uri_hash = message.uriHash;
+ }
return obj;
},
fromAminoMsg(object: MetadataAminoMsg): Metadata {
diff --git b/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts a/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts
index d46b64a0f..fd09961b2 100644
--- b/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts
+++ a/packages/types/protobuf/codegen/cosmos/gov/v1/tx.ts
@@ -1,7 +1,8 @@
-//@ts-nocheck
+// @ts-nocheck
+import { aminoToRawProtobufMsg, rawProtobufMsgToAmino } from "../../../../utils";
import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
-import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, Params, ParamsAmino, ParamsSDKType, voteOptionFromJSON } from "./gov";
+import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, Params, ParamsAmino, ParamsSDKType } from "./gov";
import { Timestamp } from "../../../google/protobuf/timestamp";
import { MsgCreateAllianceProposal, MsgCreateAllianceProposalProtoMsg, MsgCreateAllianceProposalSDKType, MsgUpdateAllianceProposal, MsgUpdateAllianceProposalProtoMsg, MsgUpdateAllianceProposalSDKType, MsgDeleteAllianceProposal, MsgDeleteAllianceProposalProtoMsg, MsgDeleteAllianceProposalSDKType } from "../../../alliance/alliance/gov";
import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg, CommunityPoolSpendProposalWithDepositSDKType } from "../../distribution/v1beta1/distribution";
@@ -578,7 +579,7 @@ export const MsgSubmitProposal = {
},
fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal {
const message = createBaseMsgSubmitProposal();
- message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
+ message.messages = object.messages?.map(e => aminoToRawProtobufMsg(e)) || [];
message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || [];
if (object.proposer !== undefined && object.proposer !== null) {
message.proposer = object.proposer;
@@ -599,10 +600,8 @@ export const MsgSubmitProposal = {
},
toAmino(message: MsgSubmitProposal, useInterfaces: boolean = false): MsgSubmitProposalAmino {
const obj: any = {};
- if (message.messages) {
- obj.messages = message.messages.map(e => e ? Any.toAmino(e, useInterfaces) : undefined);
- } else {
- obj.messages = [];
+ if (message.messages.length) {
+ obj.messages = message.messages.map(e => e ? rawProtobufMsgToAmino(e, false) : undefined);
}
if (message.initialDeposit) {
obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e, useInterfaces) : undefined);
@@ -613,7 +612,9 @@ export const MsgSubmitProposal = {
obj.metadata = message.metadata;
obj.title = message.title;
obj.summary = message.summary;
- obj.expedited = message.expedited;
+ if (message.expedited) {
+ obj.expedited = message.expedited;
+ }
return obj;
},
fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal {
@@ -912,7 +913,7 @@ export const MsgVote = {
message.voter = object.voter;
}
if (object.option !== undefined && object.option !== null) {
- message.option = voteOptionFromJSON(object.option);
+ message.option = object.option;
}
if (object.metadata !== undefined && object.metadata !== null) {
message.metadata = object.metadata;
diff --git b/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts a/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts
index 3a2a34091..cced669c2 100644
--- b/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts
+++ a/packages/types/protobuf/codegen/cosmos/gov/v1beta1/tx.ts
@@ -1,7 +1,7 @@
//@ts-nocheck
import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin";
-import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType, voteOptionFromJSON } from "./gov";
+import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov";
import { MsgCreateAllianceProposal, MsgCreateAllianceProposalProtoMsg, MsgCreateAllianceProposalSDKType, MsgUpdateAllianceProposal, MsgUpdateAllianceProposalProtoMsg, MsgUpdateAllianceProposalSDKType, MsgDeleteAllianceProposal, MsgDeleteAllianceProposalProtoMsg, MsgDeleteAllianceProposalSDKType } from "../../../alliance/alliance/gov";
import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg, CommunityPoolSpendProposalWithDepositSDKType } from "../../distribution/v1beta1/distribution";
import { ParameterChangeProposal, ParameterChangeProposalProtoMsg, ParameterChangeProposalSDKType } from "../../params/v1beta1/params";
@@ -472,7 +472,7 @@ export const MsgVote = {
message.voter = object.voter;
}
if (object.option !== undefined && object.option !== null) {
- message.option = voteOptionFromJSON(object.option);
+ message.option = object.option;
}
return message;
},
diff --git b/packages/types/protobuf/codegen/cosmwasm/wasm/v1/tx.ts a/packages/types/protobuf/codegen/cosmwasm/wasm/v1/tx.ts
index 11d5dba92..e5ef23ea1 100644
--- b/packages/types/protobuf/codegen/cosmwasm/wasm/v1/tx.ts
+++ a/packages/types/protobuf/codegen/cosmwasm/wasm/v1/tx.ts
@@ -1770,7 +1770,9 @@ export const MsgInstantiateContract2 = {
obj.funds = [];
}
obj.salt = message.salt ? base64FromBytes(message.salt) : undefined;
- obj.fix_msg = message.fixMsg;
+ if (message.fixMsg) {
+ obj.fix_msg = message.fixMsg;
+ }
return obj;
},
fromAminoMsg(object: MsgInstantiateContract2AminoMsg): MsgInstantiateContract2 {
diff --git b/packages/types/protobuf/codegen/neutron/client.ts a/packages/types/protobuf/codegen/neutron/client.ts
index 1caf8781d..9d864d753 100644
--- b/packages/types/protobuf/codegen/neutron/client.ts
+++ a/packages/types/protobuf/codegen/neutron/client.ts
@@ -7,21 +7,24 @@ import * as neutronFeeburnerTxRegistry from "./feeburner/tx.registry";
import * as neutronFeerefunderTxRegistry from "./feerefunder/tx.registry";
import * as neutronInterchainqueriesTxRegistry from "./interchainqueries/tx.registry";
import * as neutronInterchaintxsV1TxRegistry from "./interchaintxs/v1/tx.registry";
+import * as neutronTransferV1TxRegistry from "./transfer/v1/tx.registry";
import * as neutronCronTxAmino from "./cron/tx.amino";
import * as neutronDexTxAmino from "./dex/tx.amino";
import * as neutronFeeburnerTxAmino from "./feeburner/tx.amino";
import * as neutronFeerefunderTxAmino from "./feerefunder/tx.amino";
import * as neutronInterchainqueriesTxAmino from "./interchainqueries/tx.amino";
import * as neutronInterchaintxsV1TxAmino from "./interchaintxs/v1/tx.amino";
+import * as neutronTransferV1TxAmino from "./transfer/v1/tx.amino";
export const neutronAminoConverters = {
...neutronCronTxAmino.AminoConverter,
...neutronDexTxAmino.AminoConverter,
...neutronFeeburnerTxAmino.AminoConverter,
...neutronFeerefunderTxAmino.AminoConverter,
...neutronInterchainqueriesTxAmino.AminoConverter,
- ...neutronInterchaintxsV1TxAmino.AminoConverter
+ ...neutronInterchaintxsV1TxAmino.AminoConverter,
+ ...neutronTransferV1TxAmino.AminoConverter,
};
-export const neutronProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...neutronCronTxRegistry.registry, ...neutronDexTxRegistry.registry, ...neutronFeeburnerTxRegistry.registry, ...neutronFeerefunderTxRegistry.registry, ...neutronInterchainqueriesTxRegistry.registry, ...neutronInterchaintxsV1TxRegistry.registry];
+export const neutronProtoRegistry: ReadonlyArray<[string, GeneratedType]> = [...neutronCronTxRegistry.registry, ...neutronDexTxRegistry.registry, ...neutronFeeburnerTxRegistry.registry, ...neutronFeerefunderTxRegistry.registry, ...neutronInterchainqueriesTxRegistry.registry, ...neutronInterchaintxsV1TxRegistry.registry, ...neutronTransferV1TxRegistry.registry];
export const getSigningNeutronClientOptions = ({
defaultTypes = defaultRegistryTypes
}: {
diff --git b/packages/types/protobuf/codegen/regen/data/v1/tx.ts a/packages/types/protobuf/codegen/regen/data/v1/tx.ts
index 640c2bcef..5bd95374c 100644
--- b/packages/types/protobuf/codegen/regen/data/v1/tx.ts
+++ a/packages/types/protobuf/codegen/regen/data/v1/tx.ts
@@ -1,5 +1,5 @@
//@ts-nocheck
-import { ContentHash, ContentHashAmino, ContentHashSDKType, ContentHash_Graph } from "./types";
+import { ContentHash, ContentHashAmino, ContentHashSDKType, ContentHash_Graph, ContentHash_GraphAmino, ContentHash_GraphSDKType } from "./types";
import { Timestamp } from "../../../google/protobuf/timestamp";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { toTimestamp, fromTimestamp } from "../../../helpers";
diff --git b/packages/types/protobuf/codegen/regen/data/v2/tx.ts a/packages/types/protobuf/codegen/regen/data/v2/tx.ts
index fe58afb74..f0e94453b 100644
--- b/packages/types/protobuf/codegen/regen/data/v2/tx.ts
+++ a/packages/types/protobuf/codegen/regen/data/v2/tx.ts
@@ -1,5 +1,5 @@
//@ts-nocheck
-import { ContentHash, ContentHashAmino, ContentHashSDKType, ContentHash_Graph } from "./types";
+import { ContentHash, ContentHashAmino, ContentHashSDKType, ContentHash_Graph, ContentHash_GraphAmino, ContentHash_GraphSDKType } from "./types";
import { Timestamp } from "../../../google/protobuf/timestamp";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { toTimestamp, fromTimestamp } from "../../../helpers";