decentralcardgame-cardchain-client-ts 0.0.26-rc1 → 0.0.26
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/DecentralCardGame.cardchain.cardchain/module.js +364 -338
- package/DecentralCardGame.cardchain.cardchain/module.ts +530 -495
- package/DecentralCardGame.cardchain.cardchain/registry.js +66 -64
- package/DecentralCardGame.cardchain.cardchain/registry.ts +66 -64
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -17
- package/DecentralCardGame.cardchain.cardchain/rest.ts +138 -94
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.js +287 -106
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/card.ts +326 -107
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.js +38 -14
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/copyright_proposal.ts +45 -17
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.js +104 -47
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/council.ts +122 -50
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.js +92 -74
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/genesis.ts +109 -66
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.js +25 -17
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/image.ts +29 -20
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.js +107 -51
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match.ts +130 -50
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.js +29 -10
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/match_reporter_proposal.ts +32 -10
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.js +17 -8
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/num.ts +21 -11
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.js +178 -57
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/params.ts +205 -60
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.js +666 -446
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/query.ts +764 -459
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.js +17 -14
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/running_average.ts +24 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.js +45 -16
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/sell_offer.ts +53 -19
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.js +31 -12
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/server.ts +37 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.js +138 -62
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set.ts +173 -67
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.js +31 -12
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/set_proposal.ts +37 -15
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.js +1609 -1024
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/tx.ts +1821 -1153
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.js +207 -98
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/user.ts +261 -96
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.js +178 -108
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting.ts +200 -123
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +1 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +86 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +90 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +219 -114
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +265 -120
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +186 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +210 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +91 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +113 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +3 -1
- package/DecentralCardGame.cardchain.cardchain/types.ts +4 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +6 -6
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.js +86 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/flag.ts +114 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.js +164 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/genesis.ts +205 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.js +40 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/params.ts +62 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.js +100 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/proposal.ts +130 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.js +325 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/query.ts +424 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.js +9 -0
- package/DecentralCardGame.cardchain.featureflag/types/DecentralCardGame/cardchain/featureflag/tx.ts +21 -0
- package/client.js +3 -9
- package/client.ts +154 -167
- package/cosmos.auth.v1beta1/rest.ts +21 -21
- package/cosmos.authz.v1beta1/module.js +17 -17
- package/cosmos.authz.v1beta1/module.ts +25 -25
- package/cosmos.authz.v1beta1/registry.js +4 -4
- package/cosmos.authz.v1beta1/registry.ts +4 -4
- package/cosmos.authz.v1beta1/rest.ts +75 -75
- package/cosmos.bank.v1beta1/rest.ts +9 -9
- package/cosmos.distribution.v1beta1/module.js +27 -27
- package/cosmos.distribution.v1beta1/module.ts +42 -42
- package/cosmos.distribution.v1beta1/registry.js +4 -4
- package/cosmos.distribution.v1beta1/registry.ts +4 -4
- package/cosmos.distribution.v1beta1/rest.ts +20 -20
- package/cosmos.gov.v1/module.js +24 -24
- package/cosmos.gov.v1/module.ts +36 -36
- package/cosmos.gov.v1/registry.js +4 -4
- package/cosmos.gov.v1/registry.ts +4 -4
- package/cosmos.gov.v1/rest.ts +90 -90
- package/cosmos.gov.v1beta1/module.js +27 -27
- package/cosmos.gov.v1beta1/module.ts +42 -42
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +152 -152
- package/cosmos.group.v1/module.js +108 -108
- package/cosmos.group.v1/module.ts +164 -164
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +5 -5
- package/cosmos.group.v1/rest.ts +214 -214
- package/cosmos.mint.v1beta1/rest.ts +13 -13
- package/cosmos.nft.v1beta1/rest.ts +132 -132
- package/cosmos.slashing.v1beta1/rest.ts +19 -19
- package/cosmos.staking.v1beta1/module.js +39 -39
- package/cosmos.staking.v1beta1/module.ts +59 -59
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.ts +95 -95
- package/cosmos.upgrade.v1beta1/module.js +16 -16
- package/cosmos.upgrade.v1beta1/module.ts +24 -24
- package/cosmos.upgrade.v1beta1/registry.js +2 -2
- package/cosmos.upgrade.v1beta1/registry.ts +2 -2
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +10 -10
- package/ibc.applications.interchain_accounts.host.v1/rest.ts +13 -13
- package/ibc.applications.transfer.v1/rest.ts +3 -3
- package/ibc.core.channel.v1/rest.ts +44 -44
- package/package.json +1 -1
|
@@ -9,6 +9,151 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Deposit defines an amount deposited by an account address to an active
|
|
14
|
+
proposal.
|
|
15
|
+
*/
|
|
16
|
+
export interface Govv1Beta1Deposit {
|
|
17
|
+
/** @format uint64 */
|
|
18
|
+
proposal_id?: string;
|
|
19
|
+
depositor?: string;
|
|
20
|
+
amount?: V1Beta1Coin[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Proposal defines the core field members of a governance proposal.
|
|
25
|
+
*/
|
|
26
|
+
export interface Govv1Beta1Proposal {
|
|
27
|
+
/** @format uint64 */
|
|
28
|
+
proposal_id?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
32
|
+
* URL that describes the type of the serialized message.
|
|
33
|
+
*
|
|
34
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
35
|
+
* of utility functions or additional generated methods of the Any type.
|
|
36
|
+
* Example 1: Pack and unpack a message in C++.
|
|
37
|
+
* Foo foo = ...;
|
|
38
|
+
* Any any;
|
|
39
|
+
* any.PackFrom(foo);
|
|
40
|
+
* ...
|
|
41
|
+
* if (any.UnpackTo(&foo)) {
|
|
42
|
+
* ...
|
|
43
|
+
* }
|
|
44
|
+
* Example 2: Pack and unpack a message in Java.
|
|
45
|
+
* Any any = Any.pack(foo);
|
|
46
|
+
* if (any.is(Foo.class)) {
|
|
47
|
+
* foo = any.unpack(Foo.class);
|
|
48
|
+
* Example 3: Pack and unpack a message in Python.
|
|
49
|
+
* foo = Foo(...)
|
|
50
|
+
* any = Any()
|
|
51
|
+
* any.Pack(foo)
|
|
52
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
53
|
+
* any.Unpack(foo)
|
|
54
|
+
* Example 4: Pack and unpack a message in Go
|
|
55
|
+
* foo := &pb.Foo{...}
|
|
56
|
+
* any, err := anypb.New(foo)
|
|
57
|
+
* if err != nil {
|
|
58
|
+
* ...
|
|
59
|
+
* }
|
|
60
|
+
* ...
|
|
61
|
+
* foo := &pb.Foo{}
|
|
62
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
63
|
+
* The pack methods provided by protobuf library will by default use
|
|
64
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
65
|
+
* methods only use the fully qualified type name after the last '/'
|
|
66
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
67
|
+
* name "y.z".
|
|
68
|
+
* JSON
|
|
69
|
+
* ====
|
|
70
|
+
* The JSON representation of an `Any` value uses the regular
|
|
71
|
+
* representation of the deserialized, embedded message, with an
|
|
72
|
+
* additional field `@type` which contains the type URL. Example:
|
|
73
|
+
* package google.profile;
|
|
74
|
+
* message Person {
|
|
75
|
+
* string first_name = 1;
|
|
76
|
+
* string last_name = 2;
|
|
77
|
+
* {
|
|
78
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
79
|
+
* "firstName": <string>,
|
|
80
|
+
* "lastName": <string>
|
|
81
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
82
|
+
* representation, that representation will be embedded adding a field
|
|
83
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
84
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
85
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
86
|
+
* "value": "1.212s"
|
|
87
|
+
*/
|
|
88
|
+
content?: ProtobufAny;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* ProposalStatus enumerates the valid statuses of a proposal.
|
|
92
|
+
*
|
|
93
|
+
* - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
|
|
94
|
+
* - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
95
|
+
* period.
|
|
96
|
+
* - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
97
|
+
* - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
98
|
+
* passed.
|
|
99
|
+
* - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
100
|
+
* been rejected.
|
|
101
|
+
* - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
102
|
+
* failed.
|
|
103
|
+
*/
|
|
104
|
+
status?: V1Beta1ProposalStatus;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* final_tally_result is the final tally result of the proposal. When
|
|
108
|
+
* querying a proposal via gRPC, this field is not populated until the
|
|
109
|
+
* proposal's voting period has ended.
|
|
110
|
+
*/
|
|
111
|
+
final_tally_result?: Govv1Beta1TallyResult;
|
|
112
|
+
|
|
113
|
+
/** @format date-time */
|
|
114
|
+
submit_time?: string;
|
|
115
|
+
|
|
116
|
+
/** @format date-time */
|
|
117
|
+
deposit_end_time?: string;
|
|
118
|
+
total_deposit?: V1Beta1Coin[];
|
|
119
|
+
|
|
120
|
+
/** @format date-time */
|
|
121
|
+
voting_start_time?: string;
|
|
122
|
+
|
|
123
|
+
/** @format date-time */
|
|
124
|
+
voting_end_time?: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* TallyResult defines a standard tally for a governance proposal.
|
|
129
|
+
*/
|
|
130
|
+
export interface Govv1Beta1TallyResult {
|
|
131
|
+
yes?: string;
|
|
132
|
+
abstain?: string;
|
|
133
|
+
no?: string;
|
|
134
|
+
no_with_veto?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Vote defines a vote on a governance proposal.
|
|
139
|
+
A Vote consists of a proposal ID, the voter, and the vote option.
|
|
140
|
+
*/
|
|
141
|
+
export interface Govv1Beta1Vote {
|
|
142
|
+
/** @format uint64 */
|
|
143
|
+
proposal_id?: string;
|
|
144
|
+
voter?: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
|
148
|
+
* if and only if `len(options) == 1` and that option has weight 1. In all
|
|
149
|
+
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
|
150
|
+
*/
|
|
151
|
+
option?: V1Beta1VoteOption;
|
|
152
|
+
|
|
153
|
+
/** Since: cosmos-sdk 0.43 */
|
|
154
|
+
options?: V1Beta1WeightedVoteOption[];
|
|
155
|
+
}
|
|
156
|
+
|
|
12
157
|
/**
|
|
13
158
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
14
159
|
URL that describes the type of the serialized message.
|
|
@@ -141,17 +286,6 @@ export interface V1Beta1Coin {
|
|
|
141
286
|
amount?: string;
|
|
142
287
|
}
|
|
143
288
|
|
|
144
|
-
/**
|
|
145
|
-
* Deposit defines an amount deposited by an account address to an active
|
|
146
|
-
proposal.
|
|
147
|
-
*/
|
|
148
|
-
export interface V1Beta1Deposit {
|
|
149
|
-
/** @format uint64 */
|
|
150
|
-
proposal_id?: string;
|
|
151
|
-
depositor?: string;
|
|
152
|
-
amount?: V1Beta1Coin[];
|
|
153
|
-
}
|
|
154
|
-
|
|
155
289
|
/**
|
|
156
290
|
* DepositParams defines the params for deposits on governance proposals.
|
|
157
291
|
*/
|
|
@@ -263,110 +397,6 @@ export interface V1Beta1PageResponse {
|
|
|
263
397
|
total?: string;
|
|
264
398
|
}
|
|
265
399
|
|
|
266
|
-
/**
|
|
267
|
-
* Proposal defines the core field members of a governance proposal.
|
|
268
|
-
*/
|
|
269
|
-
export interface V1Beta1Proposal {
|
|
270
|
-
/** @format uint64 */
|
|
271
|
-
proposal_id?: string;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
275
|
-
* URL that describes the type of the serialized message.
|
|
276
|
-
*
|
|
277
|
-
* Protobuf library provides support to pack/unpack Any values in the form
|
|
278
|
-
* of utility functions or additional generated methods of the Any type.
|
|
279
|
-
* Example 1: Pack and unpack a message in C++.
|
|
280
|
-
* Foo foo = ...;
|
|
281
|
-
* Any any;
|
|
282
|
-
* any.PackFrom(foo);
|
|
283
|
-
* ...
|
|
284
|
-
* if (any.UnpackTo(&foo)) {
|
|
285
|
-
* ...
|
|
286
|
-
* }
|
|
287
|
-
* Example 2: Pack and unpack a message in Java.
|
|
288
|
-
* Any any = Any.pack(foo);
|
|
289
|
-
* if (any.is(Foo.class)) {
|
|
290
|
-
* foo = any.unpack(Foo.class);
|
|
291
|
-
* Example 3: Pack and unpack a message in Python.
|
|
292
|
-
* foo = Foo(...)
|
|
293
|
-
* any = Any()
|
|
294
|
-
* any.Pack(foo)
|
|
295
|
-
* if any.Is(Foo.DESCRIPTOR):
|
|
296
|
-
* any.Unpack(foo)
|
|
297
|
-
* Example 4: Pack and unpack a message in Go
|
|
298
|
-
* foo := &pb.Foo{...}
|
|
299
|
-
* any, err := anypb.New(foo)
|
|
300
|
-
* if err != nil {
|
|
301
|
-
* ...
|
|
302
|
-
* }
|
|
303
|
-
* ...
|
|
304
|
-
* foo := &pb.Foo{}
|
|
305
|
-
* if err := any.UnmarshalTo(foo); err != nil {
|
|
306
|
-
* The pack methods provided by protobuf library will by default use
|
|
307
|
-
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
308
|
-
* methods only use the fully qualified type name after the last '/'
|
|
309
|
-
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
310
|
-
* name "y.z".
|
|
311
|
-
* JSON
|
|
312
|
-
* ====
|
|
313
|
-
* The JSON representation of an `Any` value uses the regular
|
|
314
|
-
* representation of the deserialized, embedded message, with an
|
|
315
|
-
* additional field `@type` which contains the type URL. Example:
|
|
316
|
-
* package google.profile;
|
|
317
|
-
* message Person {
|
|
318
|
-
* string first_name = 1;
|
|
319
|
-
* string last_name = 2;
|
|
320
|
-
* {
|
|
321
|
-
* "@type": "type.googleapis.com/google.profile.Person",
|
|
322
|
-
* "firstName": <string>,
|
|
323
|
-
* "lastName": <string>
|
|
324
|
-
* If the embedded message type is well-known and has a custom JSON
|
|
325
|
-
* representation, that representation will be embedded adding a field
|
|
326
|
-
* `value` which holds the custom JSON in addition to the `@type`
|
|
327
|
-
* field. Example (for message [google.protobuf.Duration][]):
|
|
328
|
-
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
329
|
-
* "value": "1.212s"
|
|
330
|
-
*/
|
|
331
|
-
content?: ProtobufAny;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* ProposalStatus enumerates the valid statuses of a proposal.
|
|
335
|
-
*
|
|
336
|
-
* - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status.
|
|
337
|
-
* - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
|
338
|
-
* period.
|
|
339
|
-
* - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
|
340
|
-
* - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
|
341
|
-
* passed.
|
|
342
|
-
* - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
|
343
|
-
* been rejected.
|
|
344
|
-
* - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
|
345
|
-
* failed.
|
|
346
|
-
*/
|
|
347
|
-
status?: V1Beta1ProposalStatus;
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* final_tally_result is the final tally result of the proposal. When
|
|
351
|
-
* querying a proposal via gRPC, this field is not populated until the
|
|
352
|
-
* proposal's voting period has ended.
|
|
353
|
-
*/
|
|
354
|
-
final_tally_result?: V1Beta1TallyResult;
|
|
355
|
-
|
|
356
|
-
/** @format date-time */
|
|
357
|
-
submit_time?: string;
|
|
358
|
-
|
|
359
|
-
/** @format date-time */
|
|
360
|
-
deposit_end_time?: string;
|
|
361
|
-
total_deposit?: V1Beta1Coin[];
|
|
362
|
-
|
|
363
|
-
/** @format date-time */
|
|
364
|
-
voting_start_time?: string;
|
|
365
|
-
|
|
366
|
-
/** @format date-time */
|
|
367
|
-
voting_end_time?: string;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
400
|
/**
|
|
371
401
|
* ProposalStatus enumerates the valid statuses of a proposal.
|
|
372
402
|
|
|
@@ -396,14 +426,14 @@ export enum V1Beta1ProposalStatus {
|
|
|
396
426
|
*/
|
|
397
427
|
export interface V1Beta1QueryDepositResponse {
|
|
398
428
|
/** deposit defines the requested deposit. */
|
|
399
|
-
deposit?:
|
|
429
|
+
deposit?: Govv1Beta1Deposit;
|
|
400
430
|
}
|
|
401
431
|
|
|
402
432
|
/**
|
|
403
433
|
* QueryDepositsResponse is the response type for the Query/Deposits RPC method.
|
|
404
434
|
*/
|
|
405
435
|
export interface V1Beta1QueryDepositsResponse {
|
|
406
|
-
deposits?:
|
|
436
|
+
deposits?: Govv1Beta1Deposit[];
|
|
407
437
|
|
|
408
438
|
/** pagination defines the pagination in the response. */
|
|
409
439
|
pagination?: V1Beta1PageResponse;
|
|
@@ -428,7 +458,7 @@ export interface V1Beta1QueryParamsResponse {
|
|
|
428
458
|
*/
|
|
429
459
|
export interface V1Beta1QueryProposalResponse {
|
|
430
460
|
/** Proposal defines the core field members of a governance proposal. */
|
|
431
|
-
proposal?:
|
|
461
|
+
proposal?: Govv1Beta1Proposal;
|
|
432
462
|
}
|
|
433
463
|
|
|
434
464
|
/**
|
|
@@ -436,7 +466,7 @@ export interface V1Beta1QueryProposalResponse {
|
|
|
436
466
|
method.
|
|
437
467
|
*/
|
|
438
468
|
export interface V1Beta1QueryProposalsResponse {
|
|
439
|
-
proposals?:
|
|
469
|
+
proposals?: Govv1Beta1Proposal[];
|
|
440
470
|
|
|
441
471
|
/** pagination defines the pagination in the response. */
|
|
442
472
|
pagination?: V1Beta1PageResponse;
|
|
@@ -447,7 +477,7 @@ export interface V1Beta1QueryProposalsResponse {
|
|
|
447
477
|
*/
|
|
448
478
|
export interface V1Beta1QueryTallyResultResponse {
|
|
449
479
|
/** tally defines the requested tally. */
|
|
450
|
-
tally?:
|
|
480
|
+
tally?: Govv1Beta1TallyResult;
|
|
451
481
|
}
|
|
452
482
|
|
|
453
483
|
/**
|
|
@@ -455,7 +485,7 @@ export interface V1Beta1QueryTallyResultResponse {
|
|
|
455
485
|
*/
|
|
456
486
|
export interface V1Beta1QueryVoteResponse {
|
|
457
487
|
/** vote defined the queried vote. */
|
|
458
|
-
vote?:
|
|
488
|
+
vote?: Govv1Beta1Vote;
|
|
459
489
|
}
|
|
460
490
|
|
|
461
491
|
/**
|
|
@@ -463,7 +493,7 @@ export interface V1Beta1QueryVoteResponse {
|
|
|
463
493
|
*/
|
|
464
494
|
export interface V1Beta1QueryVotesResponse {
|
|
465
495
|
/** votes defined the queried votes. */
|
|
466
|
-
votes?:
|
|
496
|
+
votes?: Govv1Beta1Vote[];
|
|
467
497
|
|
|
468
498
|
/** pagination defines the pagination in the response. */
|
|
469
499
|
pagination?: V1Beta1PageResponse;
|
|
@@ -494,36 +524,6 @@ export interface V1Beta1TallyParams {
|
|
|
494
524
|
veto_threshold?: string;
|
|
495
525
|
}
|
|
496
526
|
|
|
497
|
-
/**
|
|
498
|
-
* TallyResult defines a standard tally for a governance proposal.
|
|
499
|
-
*/
|
|
500
|
-
export interface V1Beta1TallyResult {
|
|
501
|
-
yes?: string;
|
|
502
|
-
abstain?: string;
|
|
503
|
-
no?: string;
|
|
504
|
-
no_with_veto?: string;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Vote defines a vote on a governance proposal.
|
|
509
|
-
A Vote consists of a proposal ID, the voter, and the vote option.
|
|
510
|
-
*/
|
|
511
|
-
export interface V1Beta1Vote {
|
|
512
|
-
/** @format uint64 */
|
|
513
|
-
proposal_id?: string;
|
|
514
|
-
voter?: string;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
|
518
|
-
* if and only if `len(options) == 1` and that option has weight 1. In all
|
|
519
|
-
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
|
520
|
-
*/
|
|
521
|
-
option?: V1Beta1VoteOption;
|
|
522
|
-
|
|
523
|
-
/** Since: cosmos-sdk 0.43 */
|
|
524
|
-
options?: V1Beta1WeightedVoteOption[];
|
|
525
|
-
}
|
|
526
|
-
|
|
527
527
|
/**
|
|
528
528
|
* VoteOption enumerates the valid vote options for a given governance proposal.
|
|
529
529
|
|