coreum-js 2.5.11 → 2.5.13

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.
Files changed (81) hide show
  1. package/dist/main/cosmos/authz/v1beta1/authz.d.ts +167 -0
  2. package/dist/main/cosmos/authz/v1beta1/authz.js +320 -0
  3. package/dist/main/cosmos/authz/v1beta1/event.d.ts +80 -0
  4. package/dist/main/cosmos/authz/v1beta1/event.js +163 -0
  5. package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +121 -0
  6. package/dist/main/cosmos/authz/v1beta1/genesis.js +69 -0
  7. package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +128 -0
  8. package/dist/main/cosmos/authz/v1beta1/pagination.js +228 -0
  9. package/dist/main/cosmos/authz/v1beta1/query.d.ts +616 -0
  10. package/dist/main/cosmos/authz/v1beta1/query.js +513 -0
  11. package/dist/main/cosmos/authz/v1beta1/tx.d.ts +264 -0
  12. package/dist/main/cosmos/authz/v1beta1/tx.js +436 -0
  13. package/dist/main/cosmos/index.d.ts +307 -0
  14. package/dist/main/cosmos/index.js +72 -2
  15. package/dist/main/cosmos/staking/v1beta1/authz.d.ts +145 -0
  16. package/dist/main/cosmos/staking/v1beta1/authz.js +225 -0
  17. package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +899 -0
  18. package/dist/main/cosmos/staking/v1beta1/genesis.js +306 -0
  19. package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +128 -0
  20. package/dist/main/cosmos/staking/v1beta1/pagination.js +228 -0
  21. package/dist/main/cosmos/staking/v1beta1/query.d.ts +4165 -0
  22. package/dist/main/cosmos/staking/v1beta1/query.js +2020 -0
  23. package/dist/main/cosmos/staking/v1beta1/staking.d.ts +2059 -0
  24. package/dist/main/cosmos/staking/v1beta1/staking.js +2128 -0
  25. package/dist/main/cosmos/staking/v1beta1/tx.d.ts +748 -0
  26. package/dist/main/cosmos/staking/v1beta1/tx.js +1142 -0
  27. package/dist/main/tendermint/abci/types.d.ts +7075 -0
  28. package/dist/main/tendermint/abci/types.js +4934 -0
  29. package/dist/main/tendermint/crypto/keys.d.ts +38 -0
  30. package/dist/main/tendermint/crypto/keys.js +118 -0
  31. package/dist/main/tendermint/crypto/proof.d.ts +226 -0
  32. package/dist/main/tendermint/crypto/proof.js +427 -0
  33. package/dist/main/tendermint/types/params.d.ts +313 -0
  34. package/dist/main/tendermint/types/params.js +488 -0
  35. package/dist/main/tendermint/types/types.d.ts +1970 -0
  36. package/dist/main/tendermint/types/types.js +1602 -0
  37. package/dist/main/tendermint/types/validator.d.ts +277 -0
  38. package/dist/main/tendermint/types/validator.js +303 -0
  39. package/dist/main/tendermint/version/types.d.ts +71 -0
  40. package/dist/main/tendermint/version/types.js +162 -0
  41. package/dist/module/cosmos/authz/v1beta1/authz.d.ts +167 -0
  42. package/dist/module/cosmos/authz/v1beta1/authz.js +310 -0
  43. package/dist/module/cosmos/authz/v1beta1/event.d.ts +80 -0
  44. package/dist/module/cosmos/authz/v1beta1/event.js +155 -0
  45. package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +121 -0
  46. package/dist/module/cosmos/authz/v1beta1/genesis.js +62 -0
  47. package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +128 -0
  48. package/dist/module/cosmos/authz/v1beta1/pagination.js +220 -0
  49. package/dist/module/cosmos/authz/v1beta1/query.d.ts +616 -0
  50. package/dist/module/cosmos/authz/v1beta1/query.js +502 -0
  51. package/dist/module/cosmos/authz/v1beta1/tx.d.ts +264 -0
  52. package/dist/module/cosmos/authz/v1beta1/tx.js +427 -0
  53. package/dist/module/cosmos/index.d.ts +307 -0
  54. package/dist/module/cosmos/index.js +71 -1
  55. package/dist/module/cosmos/staking/v1beta1/authz.d.ts +145 -0
  56. package/dist/module/cosmos/staking/v1beta1/authz.js +215 -0
  57. package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +899 -0
  58. package/dist/module/cosmos/staking/v1beta1/genesis.js +298 -0
  59. package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +128 -0
  60. package/dist/module/cosmos/staking/v1beta1/pagination.js +220 -0
  61. package/dist/module/cosmos/staking/v1beta1/query.d.ts +4165 -0
  62. package/dist/module/cosmos/staking/v1beta1/query.js +1996 -0
  63. package/dist/module/cosmos/staking/v1beta1/staking.d.ts +2059 -0
  64. package/dist/module/cosmos/staking/v1beta1/staking.js +2098 -0
  65. package/dist/module/cosmos/staking/v1beta1/tx.d.ts +748 -0
  66. package/dist/module/cosmos/staking/v1beta1/tx.js +1128 -0
  67. package/dist/module/tendermint/abci/types.d.ts +7075 -0
  68. package/dist/module/tendermint/abci/types.js +4878 -0
  69. package/dist/module/tendermint/crypto/keys.d.ts +38 -0
  70. package/dist/module/tendermint/crypto/keys.js +111 -0
  71. package/dist/module/tendermint/crypto/proof.d.ts +226 -0
  72. package/dist/module/tendermint/crypto/proof.js +416 -0
  73. package/dist/module/tendermint/types/params.d.ts +313 -0
  74. package/dist/module/tendermint/types/params.js +477 -0
  75. package/dist/module/tendermint/types/types.d.ts +1970 -0
  76. package/dist/module/tendermint/types/types.js +1581 -0
  77. package/dist/module/tendermint/types/validator.d.ts +277 -0
  78. package/dist/module/tendermint/types/validator.js +294 -0
  79. package/dist/module/tendermint/version/types.d.ts +71 -0
  80. package/dist/module/tendermint/version/types.js +154 -0
  81. package/package.json +2 -2
@@ -0,0 +1,264 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Any } from "../../../google/protobuf/any";
3
+ import { Grant } from "./authz";
4
+ export declare const protobufPackage = "cosmos.authz.v1beta1";
5
+ /** Since: cosmos-sdk 0.43 */
6
+ /**
7
+ * MsgGrant is a request type for Grant method. It declares authorization to the grantee
8
+ * on behalf of the granter with the provided expiration time.
9
+ */
10
+ export interface MsgGrant {
11
+ granter: string;
12
+ grantee: string;
13
+ grant: Grant | undefined;
14
+ }
15
+ /** MsgExecResponse defines the Msg/MsgExecResponse response type. */
16
+ export interface MsgExecResponse {
17
+ results: Uint8Array[];
18
+ }
19
+ /**
20
+ * MsgExec attempts to execute the provided messages using
21
+ * authorizations granted to the grantee. Each message should have only
22
+ * one signer corresponding to the granter of the authorization.
23
+ */
24
+ export interface MsgExec {
25
+ grantee: string;
26
+ /**
27
+ * Execute Msg.
28
+ * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
29
+ * triple and validate it.
30
+ */
31
+ msgs: Any[];
32
+ }
33
+ /** MsgGrantResponse defines the Msg/MsgGrant response type. */
34
+ export interface MsgGrantResponse {
35
+ }
36
+ /**
37
+ * MsgRevoke revokes any authorization with the provided sdk.Msg type on the
38
+ * granter's account with that has been granted to the grantee.
39
+ */
40
+ export interface MsgRevoke {
41
+ granter: string;
42
+ grantee: string;
43
+ msgTypeUrl: string;
44
+ }
45
+ /** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */
46
+ export interface MsgRevokeResponse {
47
+ }
48
+ export declare const MsgGrant: {
49
+ encode(message: MsgGrant, writer?: _m0.Writer): _m0.Writer;
50
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrant;
51
+ fromJSON(object: any): MsgGrant;
52
+ toJSON(message: MsgGrant): unknown;
53
+ create<I extends {
54
+ granter?: string;
55
+ grantee?: string;
56
+ grant?: {
57
+ authorization?: {
58
+ typeUrl?: string;
59
+ value?: Uint8Array;
60
+ };
61
+ expiration?: Date;
62
+ };
63
+ } & {
64
+ granter?: string;
65
+ grantee?: string;
66
+ grant?: {
67
+ authorization?: {
68
+ typeUrl?: string;
69
+ value?: Uint8Array;
70
+ };
71
+ expiration?: Date;
72
+ } & {
73
+ authorization?: {
74
+ typeUrl?: string;
75
+ value?: Uint8Array;
76
+ } & {
77
+ typeUrl?: string;
78
+ value?: Uint8Array;
79
+ } & { [K in Exclude<keyof I["grant"]["authorization"], keyof Any>]: never; };
80
+ expiration?: Date;
81
+ } & { [K_1 in Exclude<keyof I["grant"], keyof Grant>]: never; };
82
+ } & { [K_2 in Exclude<keyof I, keyof MsgGrant>]: never; }>(base?: I): MsgGrant;
83
+ fromPartial<I_1 extends {
84
+ granter?: string;
85
+ grantee?: string;
86
+ grant?: {
87
+ authorization?: {
88
+ typeUrl?: string;
89
+ value?: Uint8Array;
90
+ };
91
+ expiration?: Date;
92
+ };
93
+ } & {
94
+ granter?: string;
95
+ grantee?: string;
96
+ grant?: {
97
+ authorization?: {
98
+ typeUrl?: string;
99
+ value?: Uint8Array;
100
+ };
101
+ expiration?: Date;
102
+ } & {
103
+ authorization?: {
104
+ typeUrl?: string;
105
+ value?: Uint8Array;
106
+ } & {
107
+ typeUrl?: string;
108
+ value?: Uint8Array;
109
+ } & { [K_3 in Exclude<keyof I_1["grant"]["authorization"], keyof Any>]: never; };
110
+ expiration?: Date;
111
+ } & { [K_4 in Exclude<keyof I_1["grant"], keyof Grant>]: never; };
112
+ } & { [K_5 in Exclude<keyof I_1, keyof MsgGrant>]: never; }>(object: I_1): MsgGrant;
113
+ };
114
+ export declare const MsgExecResponse: {
115
+ encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer;
116
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse;
117
+ fromJSON(object: any): MsgExecResponse;
118
+ toJSON(message: MsgExecResponse): unknown;
119
+ create<I extends {
120
+ results?: Uint8Array[];
121
+ } & {
122
+ results?: Uint8Array[] & Uint8Array[] & { [K in Exclude<keyof I["results"], keyof Uint8Array[]>]: never; };
123
+ } & { [K_1 in Exclude<keyof I, "results">]: never; }>(base?: I): MsgExecResponse;
124
+ fromPartial<I_1 extends {
125
+ results?: Uint8Array[];
126
+ } & {
127
+ results?: Uint8Array[] & Uint8Array[] & { [K_2 in Exclude<keyof I_1["results"], keyof Uint8Array[]>]: never; };
128
+ } & { [K_3 in Exclude<keyof I_1, "results">]: never; }>(object: I_1): MsgExecResponse;
129
+ };
130
+ export declare const MsgExec: {
131
+ encode(message: MsgExec, writer?: _m0.Writer): _m0.Writer;
132
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgExec;
133
+ fromJSON(object: any): MsgExec;
134
+ toJSON(message: MsgExec): unknown;
135
+ create<I extends {
136
+ grantee?: string;
137
+ msgs?: {
138
+ typeUrl?: string;
139
+ value?: Uint8Array;
140
+ }[];
141
+ } & {
142
+ grantee?: string;
143
+ msgs?: {
144
+ typeUrl?: string;
145
+ value?: Uint8Array;
146
+ }[] & ({
147
+ typeUrl?: string;
148
+ value?: Uint8Array;
149
+ } & {
150
+ typeUrl?: string;
151
+ value?: Uint8Array;
152
+ } & { [K in Exclude<keyof I["msgs"][number], keyof Any>]: never; })[] & { [K_1 in Exclude<keyof I["msgs"], keyof {
153
+ typeUrl?: string;
154
+ value?: Uint8Array;
155
+ }[]>]: never; };
156
+ } & { [K_2 in Exclude<keyof I, keyof MsgExec>]: never; }>(base?: I): MsgExec;
157
+ fromPartial<I_1 extends {
158
+ grantee?: string;
159
+ msgs?: {
160
+ typeUrl?: string;
161
+ value?: Uint8Array;
162
+ }[];
163
+ } & {
164
+ grantee?: string;
165
+ msgs?: {
166
+ typeUrl?: string;
167
+ value?: Uint8Array;
168
+ }[] & ({
169
+ typeUrl?: string;
170
+ value?: Uint8Array;
171
+ } & {
172
+ typeUrl?: string;
173
+ value?: Uint8Array;
174
+ } & { [K_3 in Exclude<keyof I_1["msgs"][number], keyof Any>]: never; })[] & { [K_4 in Exclude<keyof I_1["msgs"], keyof {
175
+ typeUrl?: string;
176
+ value?: Uint8Array;
177
+ }[]>]: never; };
178
+ } & { [K_5 in Exclude<keyof I_1, keyof MsgExec>]: never; }>(object: I_1): MsgExec;
179
+ };
180
+ export declare const MsgGrantResponse: {
181
+ encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer;
182
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantResponse;
183
+ fromJSON(_: any): MsgGrantResponse;
184
+ toJSON(_: MsgGrantResponse): unknown;
185
+ create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgGrantResponse;
186
+ fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgGrantResponse;
187
+ };
188
+ export declare const MsgRevoke: {
189
+ encode(message: MsgRevoke, writer?: _m0.Writer): _m0.Writer;
190
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevoke;
191
+ fromJSON(object: any): MsgRevoke;
192
+ toJSON(message: MsgRevoke): unknown;
193
+ create<I extends {
194
+ granter?: string;
195
+ grantee?: string;
196
+ msgTypeUrl?: string;
197
+ } & {
198
+ granter?: string;
199
+ grantee?: string;
200
+ msgTypeUrl?: string;
201
+ } & { [K in Exclude<keyof I, keyof MsgRevoke>]: never; }>(base?: I): MsgRevoke;
202
+ fromPartial<I_1 extends {
203
+ granter?: string;
204
+ grantee?: string;
205
+ msgTypeUrl?: string;
206
+ } & {
207
+ granter?: string;
208
+ grantee?: string;
209
+ msgTypeUrl?: string;
210
+ } & { [K_1 in Exclude<keyof I_1, keyof MsgRevoke>]: never; }>(object: I_1): MsgRevoke;
211
+ };
212
+ export declare const MsgRevokeResponse: {
213
+ encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer;
214
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeResponse;
215
+ fromJSON(_: any): MsgRevokeResponse;
216
+ toJSON(_: MsgRevokeResponse): unknown;
217
+ create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgRevokeResponse;
218
+ fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgRevokeResponse;
219
+ };
220
+ /** Msg defines the authz Msg service. */
221
+ export interface Msg {
222
+ /**
223
+ * Grant grants the provided authorization to the grantee on the granter's
224
+ * account with the provided expiration time. If there is already a grant
225
+ * for the given (granter, grantee, Authorization) triple, then the grant
226
+ * will be overwritten.
227
+ */
228
+ Grant(request: MsgGrant): Promise<MsgGrantResponse>;
229
+ /**
230
+ * Exec attempts to execute the provided messages using
231
+ * authorizations granted to the grantee. Each message should have only
232
+ * one signer corresponding to the granter of the authorization.
233
+ */
234
+ Exec(request: MsgExec): Promise<MsgExecResponse>;
235
+ /**
236
+ * Revoke revokes any authorization corresponding to the provided method name on the
237
+ * granter's account that has been granted to the grantee.
238
+ */
239
+ Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
240
+ }
241
+ export declare class MsgClientImpl implements Msg {
242
+ private readonly rpc;
243
+ private readonly service;
244
+ constructor(rpc: Rpc, opts?: {
245
+ service?: string;
246
+ });
247
+ Grant(request: MsgGrant): Promise<MsgGrantResponse>;
248
+ Exec(request: MsgExec): Promise<MsgExecResponse>;
249
+ Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
250
+ }
251
+ interface Rpc {
252
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
253
+ }
254
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
255
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
256
+ [K in keyof T]?: DeepPartial<T[K]>;
257
+ } : Partial<T>;
258
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
259
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
260
+ [K in keyof P]: Exact<P[K], I[K]>;
261
+ } & {
262
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
263
+ };
264
+ export {};