@bitgo/abstract-cosmos 11.16.0 → 11.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resources/ProposalCompiled.d.ts +314 -0
- package/dist/resources/ProposalCompiled.js +1090 -0
- package/dist/src/lib/ContractCallBuilder.d.ts +2 -2
- package/dist/src/lib/ContractCallBuilder.d.ts.map +1 -1
- package/dist/src/lib/ContractCallBuilder.js +21 -6
- package/dist/src/lib/constants.d.ts +2 -0
- package/dist/src/lib/constants.d.ts.map +1 -1
- package/dist/src/lib/constants.js +4 -2
- package/dist/src/lib/iface.d.ts +2 -1
- package/dist/src/lib/iface.d.ts.map +1 -1
- package/dist/src/lib/iface.js +1 -1
- package/dist/src/lib/protobuf-init.d.ts +9 -0
- package/dist/src/lib/protobuf-init.d.ts.map +1 -0
- package/dist/src/lib/protobuf-init.js +25 -0
- package/dist/src/lib/transaction.d.ts.map +1 -1
- package/dist/src/lib/transaction.js +22 -1
- package/dist/src/lib/transactionBuilder.d.ts +9 -2
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +24 -4
- package/dist/src/lib/utils.d.ts +22 -0
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +157 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,314 @@
|
|
|
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
|
+
/** VoteOption enum. */
|
|
152
|
+
enum VoteOption {
|
|
153
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
|
154
|
+
VOTE_OPTION_YES = 1,
|
|
155
|
+
VOTE_OPTION_ABSTAIN = 2,
|
|
156
|
+
VOTE_OPTION_NO = 3,
|
|
157
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Properties of a MsgVote. */
|
|
161
|
+
interface IMsgVote {
|
|
162
|
+
/** MsgVote proposalId */
|
|
163
|
+
proposalId?: number | Long | null;
|
|
164
|
+
|
|
165
|
+
/** MsgVote voter */
|
|
166
|
+
voter?: string | null;
|
|
167
|
+
|
|
168
|
+
/** MsgVote option */
|
|
169
|
+
option?: cosmos.group.v1.VoteOption | null;
|
|
170
|
+
|
|
171
|
+
/** MsgVote metadata */
|
|
172
|
+
metadata?: string | null;
|
|
173
|
+
|
|
174
|
+
/** MsgVote exec */
|
|
175
|
+
exec?: cosmos.group.v1.Exec | null;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** Represents a MsgVote. */
|
|
179
|
+
class MsgVote implements IMsgVote {
|
|
180
|
+
constructor(properties?: cosmos.group.v1.IMsgVote);
|
|
181
|
+
|
|
182
|
+
public proposalId: number | Long;
|
|
183
|
+
public voter: string;
|
|
184
|
+
public option: cosmos.group.v1.VoteOption;
|
|
185
|
+
public metadata: string;
|
|
186
|
+
public exec: cosmos.group.v1.Exec;
|
|
187
|
+
|
|
188
|
+
public static create(properties?: cosmos.group.v1.IMsgVote): cosmos.group.v1.MsgVote;
|
|
189
|
+
public static encode(message: cosmos.group.v1.IMsgVote, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
190
|
+
public static encodeDelimited(message: cosmos.group.v1.IMsgVote, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
191
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos.group.v1.MsgVote;
|
|
192
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos.group.v1.MsgVote;
|
|
193
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
194
|
+
public static fromObject(object: { [k: string]: any }): cosmos.group.v1.MsgVote;
|
|
195
|
+
public static toObject(
|
|
196
|
+
message: cosmos.group.v1.MsgVote,
|
|
197
|
+
options?: $protobuf.IConversionOptions
|
|
198
|
+
): { [k: string]: any };
|
|
199
|
+
public toJSON(): { [k: string]: any };
|
|
200
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/** Namespace google. */
|
|
207
|
+
export namespace google {
|
|
208
|
+
/** Namespace protobuf. */
|
|
209
|
+
namespace protobuf {
|
|
210
|
+
/** Properties of an Any. */
|
|
211
|
+
interface IAny {
|
|
212
|
+
/** Any type_url */
|
|
213
|
+
type_url?: string | null;
|
|
214
|
+
|
|
215
|
+
/** Any value */
|
|
216
|
+
value?: Uint8Array | null;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** Represents an Any. */
|
|
220
|
+
class Any implements IAny {
|
|
221
|
+
/**
|
|
222
|
+
* Constructs a new Any.
|
|
223
|
+
* @param [properties] Properties to set
|
|
224
|
+
*/
|
|
225
|
+
constructor(properties?: google.protobuf.IAny);
|
|
226
|
+
|
|
227
|
+
/** Any type_url. */
|
|
228
|
+
public type_url: string;
|
|
229
|
+
|
|
230
|
+
/** Any value. */
|
|
231
|
+
public value: Uint8Array;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Creates a new Any instance using the specified properties.
|
|
235
|
+
* @param [properties] Properties to set
|
|
236
|
+
* @returns Any instance
|
|
237
|
+
*/
|
|
238
|
+
public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
242
|
+
* @param message Any message or plain object to encode
|
|
243
|
+
* @param [writer] Writer to encode to
|
|
244
|
+
* @returns Writer
|
|
245
|
+
*/
|
|
246
|
+
public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
250
|
+
* @param message Any message or plain object to encode
|
|
251
|
+
* @param [writer] Writer to encode to
|
|
252
|
+
* @returns Writer
|
|
253
|
+
*/
|
|
254
|
+
public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Decodes an Any message from the specified reader or buffer.
|
|
258
|
+
* @param reader Reader or buffer to decode from
|
|
259
|
+
* @param [length] Message length if known beforehand
|
|
260
|
+
* @returns Any
|
|
261
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
262
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
263
|
+
*/
|
|
264
|
+
public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): google.protobuf.Any;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Decodes an Any message from the specified reader or buffer, length delimited.
|
|
268
|
+
* @param reader Reader or buffer to decode from
|
|
269
|
+
* @returns Any
|
|
270
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
271
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
272
|
+
*/
|
|
273
|
+
public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Any;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Verifies an Any message.
|
|
277
|
+
* @param message Plain object to verify
|
|
278
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
279
|
+
*/
|
|
280
|
+
public static verify(message: { [k: string]: any }): string | null;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Creates an Any message from a plain object. Also converts values to their respective internal types.
|
|
284
|
+
* @param object Plain object
|
|
285
|
+
* @returns Any
|
|
286
|
+
*/
|
|
287
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Creates a plain object from an Any message. Also converts values to other types if specified.
|
|
291
|
+
* @param message Any
|
|
292
|
+
* @param [options] Conversion options
|
|
293
|
+
* @returns Plain object
|
|
294
|
+
*/
|
|
295
|
+
public static toObject(
|
|
296
|
+
message: google.protobuf.Any,
|
|
297
|
+
options?: $protobuf.IConversionOptions
|
|
298
|
+
): { [k: string]: any };
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Converts this Any to JSON.
|
|
302
|
+
* @returns JSON object
|
|
303
|
+
*/
|
|
304
|
+
public toJSON(): { [k: string]: any };
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Gets the default type url for Any
|
|
308
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
309
|
+
* @returns The default type url
|
|
310
|
+
*/
|
|
311
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|