decentralcardgame-cardchain-client-ts 0.0.25 → 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,80 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Grant gives permissions to execute
|
|
14
|
+
the provide method with expiration time.
|
|
15
|
+
*/
|
|
16
|
+
export interface Authzv1Beta1Grant {
|
|
17
|
+
/**
|
|
18
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
19
|
+
* URL that describes the type of the serialized message.
|
|
20
|
+
*
|
|
21
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
22
|
+
* of utility functions or additional generated methods of the Any type.
|
|
23
|
+
* Example 1: Pack and unpack a message in C++.
|
|
24
|
+
* Foo foo = ...;
|
|
25
|
+
* Any any;
|
|
26
|
+
* any.PackFrom(foo);
|
|
27
|
+
* ...
|
|
28
|
+
* if (any.UnpackTo(&foo)) {
|
|
29
|
+
* ...
|
|
30
|
+
* }
|
|
31
|
+
* Example 2: Pack and unpack a message in Java.
|
|
32
|
+
* Any any = Any.pack(foo);
|
|
33
|
+
* if (any.is(Foo.class)) {
|
|
34
|
+
* foo = any.unpack(Foo.class);
|
|
35
|
+
* Example 3: Pack and unpack a message in Python.
|
|
36
|
+
* foo = Foo(...)
|
|
37
|
+
* any = Any()
|
|
38
|
+
* any.Pack(foo)
|
|
39
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
40
|
+
* any.Unpack(foo)
|
|
41
|
+
* Example 4: Pack and unpack a message in Go
|
|
42
|
+
* foo := &pb.Foo{...}
|
|
43
|
+
* any, err := anypb.New(foo)
|
|
44
|
+
* if err != nil {
|
|
45
|
+
* ...
|
|
46
|
+
* }
|
|
47
|
+
* ...
|
|
48
|
+
* foo := &pb.Foo{}
|
|
49
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
50
|
+
* The pack methods provided by protobuf library will by default use
|
|
51
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
52
|
+
* methods only use the fully qualified type name after the last '/'
|
|
53
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
54
|
+
* name "y.z".
|
|
55
|
+
* JSON
|
|
56
|
+
* ====
|
|
57
|
+
* The JSON representation of an `Any` value uses the regular
|
|
58
|
+
* representation of the deserialized, embedded message, with an
|
|
59
|
+
* additional field `@type` which contains the type URL. Example:
|
|
60
|
+
* package google.profile;
|
|
61
|
+
* message Person {
|
|
62
|
+
* string first_name = 1;
|
|
63
|
+
* string last_name = 2;
|
|
64
|
+
* {
|
|
65
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
66
|
+
* "firstName": <string>,
|
|
67
|
+
* "lastName": <string>
|
|
68
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
69
|
+
* representation, that representation will be embedded adding a field
|
|
70
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
71
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
72
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
73
|
+
* "value": "1.212s"
|
|
74
|
+
*/
|
|
75
|
+
authorization?: ProtobufAny;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* time when the grant will expire and will be pruned. If null, then the grant
|
|
79
|
+
* doesn't have a time expiration (other conditions in `authorization`
|
|
80
|
+
* may apply to invalidate the grant)
|
|
81
|
+
* @format date-time
|
|
82
|
+
*/
|
|
83
|
+
expiration?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
12
86
|
/**
|
|
13
87
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
14
88
|
URL that describes the type of the serialized message.
|
|
@@ -130,80 +204,6 @@ export interface RpcStatus {
|
|
|
130
204
|
details?: ProtobufAny[];
|
|
131
205
|
}
|
|
132
206
|
|
|
133
|
-
/**
|
|
134
|
-
* Grant gives permissions to execute
|
|
135
|
-
the provide method with expiration time.
|
|
136
|
-
*/
|
|
137
|
-
export interface V1Beta1Grant {
|
|
138
|
-
/**
|
|
139
|
-
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
140
|
-
* URL that describes the type of the serialized message.
|
|
141
|
-
*
|
|
142
|
-
* Protobuf library provides support to pack/unpack Any values in the form
|
|
143
|
-
* of utility functions or additional generated methods of the Any type.
|
|
144
|
-
* Example 1: Pack and unpack a message in C++.
|
|
145
|
-
* Foo foo = ...;
|
|
146
|
-
* Any any;
|
|
147
|
-
* any.PackFrom(foo);
|
|
148
|
-
* ...
|
|
149
|
-
* if (any.UnpackTo(&foo)) {
|
|
150
|
-
* ...
|
|
151
|
-
* }
|
|
152
|
-
* Example 2: Pack and unpack a message in Java.
|
|
153
|
-
* Any any = Any.pack(foo);
|
|
154
|
-
* if (any.is(Foo.class)) {
|
|
155
|
-
* foo = any.unpack(Foo.class);
|
|
156
|
-
* Example 3: Pack and unpack a message in Python.
|
|
157
|
-
* foo = Foo(...)
|
|
158
|
-
* any = Any()
|
|
159
|
-
* any.Pack(foo)
|
|
160
|
-
* if any.Is(Foo.DESCRIPTOR):
|
|
161
|
-
* any.Unpack(foo)
|
|
162
|
-
* Example 4: Pack and unpack a message in Go
|
|
163
|
-
* foo := &pb.Foo{...}
|
|
164
|
-
* any, err := anypb.New(foo)
|
|
165
|
-
* if err != nil {
|
|
166
|
-
* ...
|
|
167
|
-
* }
|
|
168
|
-
* ...
|
|
169
|
-
* foo := &pb.Foo{}
|
|
170
|
-
* if err := any.UnmarshalTo(foo); err != nil {
|
|
171
|
-
* The pack methods provided by protobuf library will by default use
|
|
172
|
-
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
173
|
-
* methods only use the fully qualified type name after the last '/'
|
|
174
|
-
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
175
|
-
* name "y.z".
|
|
176
|
-
* JSON
|
|
177
|
-
* ====
|
|
178
|
-
* The JSON representation of an `Any` value uses the regular
|
|
179
|
-
* representation of the deserialized, embedded message, with an
|
|
180
|
-
* additional field `@type` which contains the type URL. Example:
|
|
181
|
-
* package google.profile;
|
|
182
|
-
* message Person {
|
|
183
|
-
* string first_name = 1;
|
|
184
|
-
* string last_name = 2;
|
|
185
|
-
* {
|
|
186
|
-
* "@type": "type.googleapis.com/google.profile.Person",
|
|
187
|
-
* "firstName": <string>,
|
|
188
|
-
* "lastName": <string>
|
|
189
|
-
* If the embedded message type is well-known and has a custom JSON
|
|
190
|
-
* representation, that representation will be embedded adding a field
|
|
191
|
-
* `value` which holds the custom JSON in addition to the `@type`
|
|
192
|
-
* field. Example (for message [google.protobuf.Duration][]):
|
|
193
|
-
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
194
|
-
* "value": "1.212s"
|
|
195
|
-
*/
|
|
196
|
-
authorization?: ProtobufAny;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* time when the grant will expire and will be pruned. If null, then the grant
|
|
200
|
-
* doesn't have a time expiration (other conditions in `authorization`
|
|
201
|
-
* may apply to invalidate the grant)
|
|
202
|
-
* @format date-time
|
|
203
|
-
*/
|
|
204
|
-
expiration?: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
207
|
export interface V1Beta1GrantAuthorization {
|
|
208
208
|
granter?: string;
|
|
209
209
|
grantee?: string;
|
|
@@ -388,7 +388,7 @@ export interface V1Beta1QueryGranterGrantsResponse {
|
|
|
388
388
|
*/
|
|
389
389
|
export interface V1Beta1QueryGrantsResponse {
|
|
390
390
|
/** authorizations is a list of grants granted for grantee by granter. */
|
|
391
|
-
grants?:
|
|
391
|
+
grants?: Authzv1Beta1Grant[];
|
|
392
392
|
|
|
393
393
|
/** pagination defines an pagination for the response. */
|
|
394
394
|
pagination?: V1Beta1PageResponse;
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Params defines the parameters for the bank module.
|
|
14
|
+
*/
|
|
15
|
+
export interface Bankv1Beta1Params {
|
|
16
|
+
send_enabled?: V1Beta1SendEnabled[];
|
|
17
|
+
default_send_enabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
export interface ProtobufAny {
|
|
13
21
|
"@type"?: string;
|
|
14
22
|
}
|
|
@@ -215,14 +223,6 @@ export interface V1Beta1PageResponse {
|
|
|
215
223
|
total?: string;
|
|
216
224
|
}
|
|
217
225
|
|
|
218
|
-
/**
|
|
219
|
-
* Params defines the parameters for the bank module.
|
|
220
|
-
*/
|
|
221
|
-
export interface V1Beta1Params {
|
|
222
|
-
send_enabled?: V1Beta1SendEnabled[];
|
|
223
|
-
default_send_enabled?: boolean;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
226
|
/**
|
|
227
227
|
* QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
|
|
228
228
|
method.
|
|
@@ -281,7 +281,7 @@ export interface V1Beta1QueryDenomsMetadataResponse {
|
|
|
281
281
|
*/
|
|
282
282
|
export interface V1Beta1QueryParamsResponse {
|
|
283
283
|
/** Params defines the parameters for the bank module. */
|
|
284
|
-
params?:
|
|
284
|
+
params?: Bankv1Beta1Params;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -3,10 +3,10 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
7
6
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
8
|
-
import {
|
|
7
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
9
8
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
9
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
10
10
|
import { Params as typeParams } from "./types";
|
|
11
11
|
import { ValidatorHistoricalRewards as typeValidatorHistoricalRewards } from "./types";
|
|
12
12
|
import { ValidatorCurrentRewards as typeValidatorCurrentRewards } from "./types";
|
|
@@ -26,7 +26,7 @@ import { ValidatorHistoricalRewardsRecord as typeValidatorHistoricalRewardsRecor
|
|
|
26
26
|
import { ValidatorCurrentRewardsRecord as typeValidatorCurrentRewardsRecord } from "./types";
|
|
27
27
|
import { DelegatorStartingInfoRecord as typeDelegatorStartingInfoRecord } from "./types";
|
|
28
28
|
import { ValidatorSlashEventRecord as typeValidatorSlashEventRecord } from "./types";
|
|
29
|
-
export { MsgWithdrawValidatorCommission,
|
|
29
|
+
export { MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool, MsgSetWithdrawAddress };
|
|
30
30
|
export const registry = new Registry(msgTypes);
|
|
31
31
|
function getStructure(template) {
|
|
32
32
|
const structure = { fields: [] };
|
|
@@ -42,20 +42,6 @@ const defaultFee = {
|
|
|
42
42
|
};
|
|
43
43
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
44
44
|
return {
|
|
45
|
-
async sendMsgWithdrawValidatorCommission({ value, fee, memo }) {
|
|
46
|
-
if (!signer) {
|
|
47
|
-
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.');
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
const { address } = (await signer.getAccounts())[0];
|
|
51
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
52
|
-
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) });
|
|
53
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
54
|
-
}
|
|
55
|
-
catch (e) {
|
|
56
|
-
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: ' + e.message);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
45
|
async sendMsgWithdrawDelegatorReward({ value, fee, memo }) {
|
|
60
46
|
if (!signer) {
|
|
61
47
|
throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Unable to sign Tx. Signer is not present.');
|
|
@@ -70,18 +56,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
70
56
|
throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: ' + e.message);
|
|
71
57
|
}
|
|
72
58
|
},
|
|
73
|
-
async
|
|
59
|
+
async sendMsgWithdrawValidatorCommission({ value, fee, memo }) {
|
|
74
60
|
if (!signer) {
|
|
75
|
-
throw new Error('TxClient:
|
|
61
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.');
|
|
76
62
|
}
|
|
77
63
|
try {
|
|
78
64
|
const { address } = (await signer.getAccounts())[0];
|
|
79
65
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
80
|
-
let msg = this.
|
|
66
|
+
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) });
|
|
81
67
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
82
68
|
}
|
|
83
69
|
catch (e) {
|
|
84
|
-
throw new Error('TxClient:
|
|
70
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: ' + e.message);
|
|
85
71
|
}
|
|
86
72
|
},
|
|
87
73
|
async sendMsgFundCommunityPool({ value, fee, memo }) {
|
|
@@ -98,12 +84,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
98
84
|
throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: ' + e.message);
|
|
99
85
|
}
|
|
100
86
|
},
|
|
101
|
-
|
|
87
|
+
async sendMsgSetWithdrawAddress({ value, fee, memo }) {
|
|
88
|
+
if (!signer) {
|
|
89
|
+
throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.');
|
|
90
|
+
}
|
|
102
91
|
try {
|
|
103
|
-
|
|
92
|
+
const { address } = (await signer.getAccounts())[0];
|
|
93
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
94
|
+
let msg = this.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) });
|
|
95
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
104
96
|
}
|
|
105
97
|
catch (e) {
|
|
106
|
-
throw new Error('TxClient:
|
|
98
|
+
throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: ' + e.message);
|
|
107
99
|
}
|
|
108
100
|
},
|
|
109
101
|
msgWithdrawDelegatorReward({ value }) {
|
|
@@ -114,12 +106,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
114
106
|
throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message);
|
|
115
107
|
}
|
|
116
108
|
},
|
|
117
|
-
|
|
109
|
+
msgWithdrawValidatorCommission({ value }) {
|
|
118
110
|
try {
|
|
119
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
111
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial(value) };
|
|
120
112
|
}
|
|
121
113
|
catch (e) {
|
|
122
|
-
throw new Error('TxClient:
|
|
114
|
+
throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message);
|
|
123
115
|
}
|
|
124
116
|
},
|
|
125
117
|
msgFundCommunityPool({ value }) {
|
|
@@ -130,6 +122,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
130
122
|
throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message);
|
|
131
123
|
}
|
|
132
124
|
},
|
|
125
|
+
msgSetWithdrawAddress({ value }) {
|
|
126
|
+
try {
|
|
127
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial(value) };
|
|
128
|
+
}
|
|
129
|
+
catch (e) {
|
|
130
|
+
throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message);
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
135
|
export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
|
|
@@ -7,10 +7,10 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
11
10
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
12
|
-
import {
|
|
11
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
13
12
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
13
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
14
14
|
|
|
15
15
|
import { Params as typeParams} from "./types"
|
|
16
16
|
import { ValidatorHistoricalRewards as typeValidatorHistoricalRewards} from "./types"
|
|
@@ -32,13 +32,7 @@ import { ValidatorCurrentRewardsRecord as typeValidatorCurrentRewardsRecord} fro
|
|
|
32
32
|
import { DelegatorStartingInfoRecord as typeDelegatorStartingInfoRecord} from "./types"
|
|
33
33
|
import { ValidatorSlashEventRecord as typeValidatorSlashEventRecord} from "./types"
|
|
34
34
|
|
|
35
|
-
export { MsgWithdrawValidatorCommission,
|
|
36
|
-
|
|
37
|
-
type sendMsgWithdrawValidatorCommissionParams = {
|
|
38
|
-
value: MsgWithdrawValidatorCommission,
|
|
39
|
-
fee?: StdFee,
|
|
40
|
-
memo?: string
|
|
41
|
-
};
|
|
35
|
+
export { MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool, MsgSetWithdrawAddress };
|
|
42
36
|
|
|
43
37
|
type sendMsgWithdrawDelegatorRewardParams = {
|
|
44
38
|
value: MsgWithdrawDelegatorReward,
|
|
@@ -46,8 +40,8 @@ type sendMsgWithdrawDelegatorRewardParams = {
|
|
|
46
40
|
memo?: string
|
|
47
41
|
};
|
|
48
42
|
|
|
49
|
-
type
|
|
50
|
-
value:
|
|
43
|
+
type sendMsgWithdrawValidatorCommissionParams = {
|
|
44
|
+
value: MsgWithdrawValidatorCommission,
|
|
51
45
|
fee?: StdFee,
|
|
52
46
|
memo?: string
|
|
53
47
|
};
|
|
@@ -58,23 +52,29 @@ type sendMsgFundCommunityPoolParams = {
|
|
|
58
52
|
memo?: string
|
|
59
53
|
};
|
|
60
54
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
type sendMsgSetWithdrawAddressParams = {
|
|
56
|
+
value: MsgSetWithdrawAddress,
|
|
57
|
+
fee?: StdFee,
|
|
58
|
+
memo?: string
|
|
64
59
|
};
|
|
65
60
|
|
|
61
|
+
|
|
66
62
|
type msgWithdrawDelegatorRewardParams = {
|
|
67
63
|
value: MsgWithdrawDelegatorReward,
|
|
68
64
|
};
|
|
69
65
|
|
|
70
|
-
type
|
|
71
|
-
value:
|
|
66
|
+
type msgWithdrawValidatorCommissionParams = {
|
|
67
|
+
value: MsgWithdrawValidatorCommission,
|
|
72
68
|
};
|
|
73
69
|
|
|
74
70
|
type msgFundCommunityPoolParams = {
|
|
75
71
|
value: MsgFundCommunityPool,
|
|
76
72
|
};
|
|
77
73
|
|
|
74
|
+
type msgSetWithdrawAddressParams = {
|
|
75
|
+
value: MsgSetWithdrawAddress,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
78
|
|
|
79
79
|
export const registry = new Registry(msgTypes);
|
|
80
80
|
|
|
@@ -105,20 +105,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
105
105
|
|
|
106
106
|
return {
|
|
107
107
|
|
|
108
|
-
async sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse> {
|
|
109
|
-
if (!signer) {
|
|
110
|
-
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.')
|
|
111
|
-
}
|
|
112
|
-
try {
|
|
113
|
-
const { address } = (await signer.getAccounts())[0];
|
|
114
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
115
|
-
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) })
|
|
116
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
117
|
-
} catch (e: any) {
|
|
118
|
-
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: '+ e.message)
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
|
|
122
108
|
async sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise<DeliverTxResponse> {
|
|
123
109
|
if (!signer) {
|
|
124
110
|
throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Unable to sign Tx. Signer is not present.')
|
|
@@ -133,17 +119,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
133
119
|
}
|
|
134
120
|
},
|
|
135
121
|
|
|
136
|
-
async
|
|
122
|
+
async sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse> {
|
|
137
123
|
if (!signer) {
|
|
138
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.')
|
|
139
125
|
}
|
|
140
126
|
try {
|
|
141
127
|
const { address } = (await signer.getAccounts())[0];
|
|
142
128
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
143
|
-
let msg = this.
|
|
129
|
+
let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) })
|
|
144
130
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
145
131
|
} catch (e: any) {
|
|
146
|
-
throw new Error('TxClient:
|
|
132
|
+
throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: '+ e.message)
|
|
147
133
|
}
|
|
148
134
|
},
|
|
149
135
|
|
|
@@ -161,15 +147,21 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
161
147
|
}
|
|
162
148
|
},
|
|
163
149
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
150
|
+
async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse> {
|
|
151
|
+
if (!signer) {
|
|
152
|
+
throw new Error('TxClient:sendMsgSetWithdrawAddress: Unable to sign Tx. Signer is not present.')
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
const { address } = (await signer.getAccounts())[0];
|
|
156
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
157
|
+
let msg = this.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) })
|
|
158
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
168
159
|
} catch (e: any) {
|
|
169
|
-
throw new Error('TxClient:
|
|
160
|
+
throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: '+ e.message)
|
|
170
161
|
}
|
|
171
162
|
},
|
|
172
163
|
|
|
164
|
+
|
|
173
165
|
msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject {
|
|
174
166
|
try {
|
|
175
167
|
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial( value ) }
|
|
@@ -178,11 +170,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
178
170
|
}
|
|
179
171
|
},
|
|
180
172
|
|
|
181
|
-
|
|
173
|
+
msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject {
|
|
182
174
|
try {
|
|
183
|
-
return { typeUrl: "/cosmos.distribution.v1beta1.
|
|
175
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) }
|
|
184
176
|
} catch (e: any) {
|
|
185
|
-
throw new Error('TxClient:
|
|
177
|
+
throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message)
|
|
186
178
|
}
|
|
187
179
|
},
|
|
188
180
|
|
|
@@ -194,6 +186,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
194
186
|
}
|
|
195
187
|
},
|
|
196
188
|
|
|
189
|
+
msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject {
|
|
190
|
+
try {
|
|
191
|
+
return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) }
|
|
192
|
+
} catch (e: any) {
|
|
193
|
+
throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message)
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
2
1
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
3
|
-
import {
|
|
2
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
3
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
5
|
const msgTypes = [
|
|
6
|
-
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
7
6
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
8
|
-
["/cosmos.distribution.v1beta1.
|
|
7
|
+
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
9
8
|
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
9
|
+
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
|
|
10
10
|
];
|
|
11
11
|
export { msgTypes };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
3
2
|
import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
|
|
4
|
-
import {
|
|
3
|
+
import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
4
|
import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
|
|
5
|
+
import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
|
|
6
6
|
|
|
7
7
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
8
|
-
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
9
8
|
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
|
|
10
|
-
["/cosmos.distribution.v1beta1.
|
|
9
|
+
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
|
|
11
10
|
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
|
|
11
|
+
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
|
|
12
12
|
|
|
13
13
|
];
|
|
14
14
|
|
|
@@ -9,6 +9,24 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Params defines the set of params for the distribution module.
|
|
14
|
+
*/
|
|
15
|
+
export interface Distributionv1Beta1Params {
|
|
16
|
+
community_tax?: string;
|
|
17
|
+
base_proposer_reward?: string;
|
|
18
|
+
bonus_proposer_reward?: string;
|
|
19
|
+
withdraw_addr_enabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
24
|
+
for a validator inexpensive to track, allows simple sanity checks.
|
|
25
|
+
*/
|
|
26
|
+
export interface Distributionv1Beta1ValidatorOutstandingRewards {
|
|
27
|
+
rewards?: V1Beta1DecCoin[];
|
|
28
|
+
}
|
|
29
|
+
|
|
12
30
|
export interface ProtobufAny {
|
|
13
31
|
"@type"?: string;
|
|
14
32
|
}
|
|
@@ -149,16 +167,6 @@ export interface V1Beta1PageResponse {
|
|
|
149
167
|
total?: string;
|
|
150
168
|
}
|
|
151
169
|
|
|
152
|
-
/**
|
|
153
|
-
* Params defines the set of params for the distribution module.
|
|
154
|
-
*/
|
|
155
|
-
export interface V1Beta1Params {
|
|
156
|
-
community_tax?: string;
|
|
157
|
-
base_proposer_reward?: string;
|
|
158
|
-
bonus_proposer_reward?: string;
|
|
159
|
-
withdraw_addr_enabled?: boolean;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
170
|
/**
|
|
163
171
|
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
|
164
172
|
RPC method.
|
|
@@ -212,7 +220,7 @@ export interface V1Beta1QueryDelegatorWithdrawAddressResponse {
|
|
|
212
220
|
*/
|
|
213
221
|
export interface V1Beta1QueryParamsResponse {
|
|
214
222
|
/** params defines the parameters of the module. */
|
|
215
|
-
params?:
|
|
223
|
+
params?: Distributionv1Beta1Params;
|
|
216
224
|
}
|
|
217
225
|
|
|
218
226
|
export interface V1Beta1QueryValidatorCommissionResponse {
|
|
@@ -229,7 +237,7 @@ export interface V1Beta1QueryValidatorOutstandingRewardsResponse {
|
|
|
229
237
|
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
230
238
|
* for a validator inexpensive to track, allows simple sanity checks.
|
|
231
239
|
*/
|
|
232
|
-
rewards?:
|
|
240
|
+
rewards?: Distributionv1Beta1ValidatorOutstandingRewards;
|
|
233
241
|
}
|
|
234
242
|
|
|
235
243
|
/**
|
|
@@ -252,14 +260,6 @@ export interface V1Beta1ValidatorAccumulatedCommission {
|
|
|
252
260
|
commission?: V1Beta1DecCoin[];
|
|
253
261
|
}
|
|
254
262
|
|
|
255
|
-
/**
|
|
256
|
-
* ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
|
|
257
|
-
for a validator inexpensive to track, allows simple sanity checks.
|
|
258
|
-
*/
|
|
259
|
-
export interface V1Beta1ValidatorOutstandingRewards {
|
|
260
|
-
rewards?: V1Beta1DecCoin[];
|
|
261
|
-
}
|
|
262
|
-
|
|
263
263
|
/**
|
|
264
264
|
* ValidatorSlashEvent represents a validator slash event.
|
|
265
265
|
Height is implicit within the store key.
|