Skip to content

Commit 8783926

Browse files
nayandas190sreerajs
authored andcommitted
Merge pull request #8045 from BitGo/win-8847
feat(sdk-coin-tempo): add memoId support for address validation
2 parents e3ca2e2 + cf86dcc commit 8783926

12 files changed

Lines changed: 1403 additions & 24 deletions

File tree

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
import * as $protobuf from 'protobufjs';
2+
/** Namespace cosmos. */
3+
export namespace cosmos {
4+
/** Namespace group. */
5+
namespace group {
6+
/** Namespace v1. */
7+
namespace v1 {
8+
/** Properties of a MsgSubmitProposal. */
9+
interface IMsgSubmitProposal {
10+
/** MsgSubmitProposal groupPolicyAddress */
11+
groupPolicyAddress?: string | null;
12+
13+
/** MsgSubmitProposal proposers */
14+
proposers?: string[] | null;
15+
16+
/** MsgSubmitProposal metadata */
17+
metadata?: string | null;
18+
19+
/** MsgSubmitProposal messages */
20+
messages?: google.protobuf.IAny[] | null;
21+
22+
/** MsgSubmitProposal exec */
23+
exec?: cosmos.group.v1.Exec | null;
24+
25+
/** MsgSubmitProposal title */
26+
title?: string | null;
27+
28+
/** MsgSubmitProposal summary */
29+
summary?: string | null;
30+
}
31+
32+
/** Represents a MsgSubmitProposal. */
33+
class MsgSubmitProposal implements IMsgSubmitProposal {
34+
/**
35+
* Constructs a new MsgSubmitProposal.
36+
* @param [properties] Properties to set
37+
*/
38+
constructor(properties?: cosmos.group.v1.IMsgSubmitProposal);
39+
40+
/** MsgSubmitProposal groupPolicyAddress. */
41+
public groupPolicyAddress: string;
42+
43+
/** MsgSubmitProposal proposers. */
44+
public proposers: string[];
45+
46+
/** MsgSubmitProposal metadata. */
47+
public metadata: string;
48+
49+
/** MsgSubmitProposal messages. */
50+
public messages: google.protobuf.IAny[];
51+
52+
/** MsgSubmitProposal exec. */
53+
public exec: cosmos.group.v1.Exec;
54+
55+
/** MsgSubmitProposal title. */
56+
public title: string;
57+
58+
/** MsgSubmitProposal summary. */
59+
public summary: string;
60+
61+
/**
62+
* Creates a new MsgSubmitProposal instance using the specified properties.
63+
* @param [properties] Properties to set
64+
* @returns MsgSubmitProposal instance
65+
*/
66+
public static create(properties?: cosmos.group.v1.IMsgSubmitProposal): cosmos.group.v1.MsgSubmitProposal;
67+
68+
/**
69+
* Encodes the specified MsgSubmitProposal message. Does not implicitly {@link cosmos.group.v1.MsgSubmitProposal.verify|verify} messages.
70+
* @param message MsgSubmitProposal message or plain object to encode
71+
* @param [writer] Writer to encode to
72+
* @returns Writer
73+
*/
74+
public static encode(message: cosmos.group.v1.IMsgSubmitProposal, writer?: $protobuf.Writer): $protobuf.Writer;
75+
76+
/**
77+
* Encodes the specified MsgSubmitProposal message, length delimited. Does not implicitly {@link cosmos.group.v1.MsgSubmitProposal.verify|verify} messages.
78+
* @param message MsgSubmitProposal message or plain object to encode
79+
* @param [writer] Writer to encode to
80+
* @returns Writer
81+
*/
82+
public static encodeDelimited(
83+
message: cosmos.group.v1.IMsgSubmitProposal,
84+
writer?: $protobuf.Writer
85+
): $protobuf.Writer;
86+
87+
/**
88+
* Decodes a MsgSubmitProposal message from the specified reader or buffer.
89+
* @param reader Reader or buffer to decode from
90+
* @param [length] Message length if known beforehand
91+
* @returns MsgSubmitProposal
92+
* @throws {Error} If the payload is not a reader or valid buffer
93+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
94+
*/
95+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos.group.v1.MsgSubmitProposal;
96+
97+
/**
98+
* Decodes a MsgSubmitProposal message from the specified reader or buffer, length delimited.
99+
* @param reader Reader or buffer to decode from
100+
* @returns MsgSubmitProposal
101+
* @throws {Error} If the payload is not a reader or valid buffer
102+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
103+
*/
104+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos.group.v1.MsgSubmitProposal;
105+
106+
/**
107+
* Verifies a MsgSubmitProposal message.
108+
* @param message Plain object to verify
109+
* @returns `null` if valid, otherwise the reason why it is not
110+
*/
111+
public static verify(message: { [k: string]: any }): string | null;
112+
113+
/**
114+
* Creates a MsgSubmitProposal message from a plain object. Also converts values to their respective internal types.
115+
* @param object Plain object
116+
* @returns MsgSubmitProposal
117+
*/
118+
public static fromObject(object: { [k: string]: any }): cosmos.group.v1.MsgSubmitProposal;
119+
120+
/**
121+
* Creates a plain object from a MsgSubmitProposal message. Also converts values to other types if specified.
122+
* @param message MsgSubmitProposal
123+
* @param [options] Conversion options
124+
* @returns Plain object
125+
*/
126+
public static toObject(
127+
message: cosmos.group.v1.MsgSubmitProposal,
128+
options?: $protobuf.IConversionOptions
129+
): { [k: string]: any };
130+
131+
/**
132+
* Converts this MsgSubmitProposal to JSON.
133+
* @returns JSON object
134+
*/
135+
public toJSON(): { [k: string]: any };
136+
137+
/**
138+
* Gets the default type url for MsgSubmitProposal
139+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
140+
* @returns The default type url
141+
*/
142+
public static getTypeUrl(typeUrlPrefix?: string): string;
143+
}
144+
145+
/** Exec enum. */
146+
enum Exec {
147+
EXEC_UNSPECIFIED = 0,
148+
EXEC_TRY = 1,
149+
}
150+
}
151+
}
152+
}
153+
154+
/** Namespace google. */
155+
export namespace google {
156+
/** Namespace protobuf. */
157+
namespace protobuf {
158+
/** Properties of an Any. */
159+
interface IAny {
160+
/** Any type_url */
161+
type_url?: string | null;
162+
163+
/** Any value */
164+
value?: Uint8Array | null;
165+
}
166+
167+
/** Represents an Any. */
168+
class Any implements IAny {
169+
/**
170+
* Constructs a new Any.
171+
* @param [properties] Properties to set
172+
*/
173+
constructor(properties?: google.protobuf.IAny);
174+
175+
/** Any type_url. */
176+
public type_url: string;
177+
178+
/** Any value. */
179+
public value: Uint8Array;
180+
181+
/**
182+
* Creates a new Any instance using the specified properties.
183+
* @param [properties] Properties to set
184+
* @returns Any instance
185+
*/
186+
public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
187+
188+
/**
189+
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
190+
* @param message Any message or plain object to encode
191+
* @param [writer] Writer to encode to
192+
* @returns Writer
193+
*/
194+
public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
195+
196+
/**
197+
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
198+
* @param message Any message or plain object to encode
199+
* @param [writer] Writer to encode to
200+
* @returns Writer
201+
*/
202+
public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
203+
204+
/**
205+
* Decodes an Any message from the specified reader or buffer.
206+
* @param reader Reader or buffer to decode from
207+
* @param [length] Message length if known beforehand
208+
* @returns Any
209+
* @throws {Error} If the payload is not a reader or valid buffer
210+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
211+
*/
212+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): google.protobuf.Any;
213+
214+
/**
215+
* Decodes an Any message from the specified reader or buffer, length delimited.
216+
* @param reader Reader or buffer to decode from
217+
* @returns Any
218+
* @throws {Error} If the payload is not a reader or valid buffer
219+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
220+
*/
221+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Any;
222+
223+
/**
224+
* Verifies an Any message.
225+
* @param message Plain object to verify
226+
* @returns `null` if valid, otherwise the reason why it is not
227+
*/
228+
public static verify(message: { [k: string]: any }): string | null;
229+
230+
/**
231+
* Creates an Any message from a plain object. Also converts values to their respective internal types.
232+
* @param object Plain object
233+
* @returns Any
234+
*/
235+
public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
236+
237+
/**
238+
* Creates a plain object from an Any message. Also converts values to other types if specified.
239+
* @param message Any
240+
* @param [options] Conversion options
241+
* @returns Plain object
242+
*/
243+
public static toObject(
244+
message: google.protobuf.Any,
245+
options?: $protobuf.IConversionOptions
246+
): { [k: string]: any };
247+
248+
/**
249+
* Converts this Any to JSON.
250+
* @returns JSON object
251+
*/
252+
public toJSON(): { [k: string]: any };
253+
254+
/**
255+
* Gets the default type url for Any
256+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
257+
* @returns The default type url
258+
*/
259+
public static getTypeUrl(typeUrlPrefix?: string): string;
260+
}
261+
}
262+
}

0 commit comments

Comments
 (0)