coreum-js 2.11.0 → 2.12.0

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 (239) hide show
  1. package/dist/main/client/index.d.ts +2 -1
  2. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
  3. package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
  4. package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
  5. package/dist/main/coreum/asset/ft/v1/params.js +14 -6
  6. package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
  7. package/dist/main/coreum/asset/ft/v1/query.js +116 -54
  8. package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
  9. package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
  10. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
  11. package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
  12. package/dist/main/coreum/asset/nft/v1/params.js +14 -6
  13. package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
  14. package/dist/main/coreum/asset/nft/v1/query.js +49 -22
  15. package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
  16. package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
  17. package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
  18. package/dist/main/coreum/feemodel/v1/query.js +22 -11
  19. package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
  20. package/dist/main/coreum/nft/v1beta1/query.js +83 -39
  21. package/dist/main/cosmos/extensions/bank.d.ts +8 -8
  22. package/dist/main/cosmos/extensions/bank.js +2 -2
  23. package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
  24. package/dist/main/cosmos/extensions/distribution.js +1 -1
  25. package/dist/main/cosmos/extensions/gov.d.ts +21 -21
  26. package/dist/main/cosmos/extensions/gov.js +1 -1
  27. package/dist/main/cosmos/index.d.ts +12 -21
  28. package/dist/main/cosmos/index.js +50 -42
  29. package/dist/main/types/msgs.d.ts +4 -4
  30. package/dist/main/wasm/v1/authz.d.ts +1 -1
  31. package/dist/main/wasm/v1/authz.js +1 -1
  32. package/dist/main/wasm/v1/proposal.d.ts +1 -1
  33. package/dist/main/wasm/v1/proposal.js +1 -1
  34. package/dist/main/wasm/v1/tx.d.ts +1 -1
  35. package/dist/main/wasm/v1/tx.js +1 -1
  36. package/dist/module/client/index.d.ts +2 -1
  37. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
  38. package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
  39. package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
  40. package/dist/module/coreum/asset/ft/v1/params.js +14 -6
  41. package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
  42. package/dist/module/coreum/asset/ft/v1/query.js +116 -54
  43. package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
  44. package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
  45. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
  46. package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
  47. package/dist/module/coreum/asset/nft/v1/params.js +14 -6
  48. package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
  49. package/dist/module/coreum/asset/nft/v1/query.js +49 -22
  50. package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
  51. package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
  52. package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
  53. package/dist/module/coreum/feemodel/v1/query.js +22 -11
  54. package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
  55. package/dist/module/coreum/nft/v1beta1/query.js +83 -39
  56. package/dist/module/cosmos/extensions/bank.d.ts +8 -8
  57. package/dist/module/cosmos/extensions/bank.js +2 -2
  58. package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
  59. package/dist/module/cosmos/extensions/distribution.js +1 -1
  60. package/dist/module/cosmos/extensions/gov.d.ts +21 -21
  61. package/dist/module/cosmos/extensions/gov.js +1 -1
  62. package/dist/module/cosmos/index.d.ts +12 -21
  63. package/dist/module/cosmos/index.js +29 -19
  64. package/dist/module/types/msgs.d.ts +4 -4
  65. package/dist/module/wasm/v1/authz.d.ts +1 -1
  66. package/dist/module/wasm/v1/authz.js +1 -1
  67. package/dist/module/wasm/v1/proposal.d.ts +1 -1
  68. package/dist/module/wasm/v1/proposal.js +1 -1
  69. package/dist/module/wasm/v1/tx.d.ts +1 -1
  70. package/dist/module/wasm/v1/tx.js +1 -1
  71. package/package.json +1 -1
  72. package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
  73. package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
  74. package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
  75. package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
  76. package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
  77. package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
  78. package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
  79. package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
  80. package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
  81. package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
  82. package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
  83. package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
  84. package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
  85. package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
  86. package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
  87. package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
  88. package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
  89. package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
  90. package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
  91. package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
  92. package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
  93. package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
  94. package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
  95. package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
  96. package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
  97. package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
  98. package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
  99. package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
  100. package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
  101. package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
  102. package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
  103. package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
  104. package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
  105. package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
  106. package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
  107. package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
  108. package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
  109. package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
  110. package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
  111. package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
  112. package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
  113. package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
  114. package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
  115. package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
  116. package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
  117. package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
  118. package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
  119. package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
  120. package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
  121. package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
  122. package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
  123. package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
  124. package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
  125. package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
  126. package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
  127. package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
  128. package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
  129. package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
  130. package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
  131. package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
  132. package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
  133. package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
  134. package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
  135. package/dist/main/cosmos/msg/v1/msg.js +0 -5
  136. package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
  137. package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
  138. package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
  139. package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
  140. package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
  141. package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
  142. package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
  143. package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
  144. package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
  145. package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
  146. package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
  147. package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
  148. package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
  149. package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
  150. package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
  151. package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
  152. package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
  153. package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
  154. package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
  155. package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
  156. package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
  157. package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
  158. package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
  159. package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
  160. package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
  161. package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
  162. package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
  163. package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
  164. package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
  165. package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
  166. package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
  167. package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
  168. package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
  169. package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
  170. package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
  171. package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
  172. package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
  173. package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
  174. package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
  175. package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
  176. package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
  177. package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
  178. package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
  179. package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
  180. package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
  181. package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
  182. package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
  183. package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
  184. package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
  185. package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
  186. package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
  187. package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
  188. package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
  189. package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
  190. package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
  191. package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
  192. package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
  193. package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
  194. package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
  195. package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
  196. package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
  197. package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
  198. package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
  199. package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
  200. package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
  201. package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
  202. package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
  203. package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
  204. package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
  205. package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
  206. package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
  207. package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
  208. package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
  209. package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
  210. package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
  211. package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
  212. package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
  213. package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
  214. package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
  215. package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
  216. package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
  217. package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
  218. package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
  219. package/dist/module/cosmos/msg/v1/msg.js +0 -2
  220. package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
  221. package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
  222. package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
  223. package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
  224. package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
  225. package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
  226. package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
  227. package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
  228. package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
  229. package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
  230. package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
  231. package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
  232. package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
  233. package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
  234. package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
  235. package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
  236. package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
  237. package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
  238. package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
  239. package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
@@ -1,167 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Any } from "../../../google/protobuf/any";
3
- export declare const protobufPackage = "cosmos.authz.v1beta1";
4
- /** Since: cosmos-sdk 0.43 */
5
- /**
6
- * GenericAuthorization gives the grantee unrestricted permissions to execute
7
- * the provided method on behalf of the granter's account.
8
- */
9
- export interface GenericAuthorization {
10
- /** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
11
- msg: string;
12
- }
13
- /**
14
- * Grant gives permissions to execute
15
- * the provide method with expiration time.
16
- */
17
- export interface Grant {
18
- authorization: Any | undefined;
19
- /**
20
- * time when the grant will expire and will be pruned. If null, then the grant
21
- * doesn't have a time expiration (other conditions in `authorization`
22
- * may apply to invalidate the grant)
23
- */
24
- expiration: Date | undefined;
25
- }
26
- /**
27
- * GrantAuthorization extends a grant with both the addresses of the grantee and granter.
28
- * It is used in genesis.proto and query.proto
29
- */
30
- export interface GrantAuthorization {
31
- granter: string;
32
- grantee: string;
33
- authorization: Any | undefined;
34
- expiration: Date | undefined;
35
- }
36
- /** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
37
- export interface GrantQueueItem {
38
- /** msg_type_urls contains the list of TypeURL of a sdk.Msg. */
39
- msgTypeUrls: string[];
40
- }
41
- export declare const GenericAuthorization: {
42
- encode(message: GenericAuthorization, writer?: _m0.Writer): _m0.Writer;
43
- decode(input: _m0.Reader | Uint8Array, length?: number): GenericAuthorization;
44
- fromJSON(object: any): GenericAuthorization;
45
- toJSON(message: GenericAuthorization): unknown;
46
- create<I extends {
47
- msg?: string;
48
- } & {
49
- msg?: string;
50
- } & { [K in Exclude<keyof I, "msg">]: never; }>(base?: I): GenericAuthorization;
51
- fromPartial<I_1 extends {
52
- msg?: string;
53
- } & {
54
- msg?: string;
55
- } & { [K_1 in Exclude<keyof I_1, "msg">]: never; }>(object: I_1): GenericAuthorization;
56
- };
57
- export declare const Grant: {
58
- encode(message: Grant, writer?: _m0.Writer): _m0.Writer;
59
- decode(input: _m0.Reader | Uint8Array, length?: number): Grant;
60
- fromJSON(object: any): Grant;
61
- toJSON(message: Grant): unknown;
62
- create<I extends {
63
- authorization?: {
64
- typeUrl?: string;
65
- value?: Uint8Array;
66
- };
67
- expiration?: Date | undefined;
68
- } & {
69
- authorization?: {
70
- typeUrl?: string;
71
- value?: Uint8Array;
72
- } & {
73
- typeUrl?: string;
74
- value?: Uint8Array;
75
- } & { [K in Exclude<keyof I["authorization"], keyof Any>]: never; };
76
- expiration?: Date | undefined;
77
- } & { [K_1 in Exclude<keyof I, keyof Grant>]: never; }>(base?: I): Grant;
78
- fromPartial<I_1 extends {
79
- authorization?: {
80
- typeUrl?: string;
81
- value?: Uint8Array;
82
- };
83
- expiration?: Date | undefined;
84
- } & {
85
- authorization?: {
86
- typeUrl?: string;
87
- value?: Uint8Array;
88
- } & {
89
- typeUrl?: string;
90
- value?: Uint8Array;
91
- } & { [K_2 in Exclude<keyof I_1["authorization"], keyof Any>]: never; };
92
- expiration?: Date | undefined;
93
- } & { [K_3 in Exclude<keyof I_1, keyof Grant>]: never; }>(object: I_1): Grant;
94
- };
95
- export declare const GrantAuthorization: {
96
- encode(message: GrantAuthorization, writer?: _m0.Writer): _m0.Writer;
97
- decode(input: _m0.Reader | Uint8Array, length?: number): GrantAuthorization;
98
- fromJSON(object: any): GrantAuthorization;
99
- toJSON(message: GrantAuthorization): unknown;
100
- create<I extends {
101
- granter?: string;
102
- grantee?: string;
103
- authorization?: {
104
- typeUrl?: string;
105
- value?: Uint8Array;
106
- };
107
- expiration?: Date | undefined;
108
- } & {
109
- granter?: string;
110
- grantee?: string;
111
- authorization?: {
112
- typeUrl?: string;
113
- value?: Uint8Array;
114
- } & {
115
- typeUrl?: string;
116
- value?: Uint8Array;
117
- } & { [K in Exclude<keyof I["authorization"], keyof Any>]: never; };
118
- expiration?: Date | undefined;
119
- } & { [K_1 in Exclude<keyof I, keyof GrantAuthorization>]: never; }>(base?: I): GrantAuthorization;
120
- fromPartial<I_1 extends {
121
- granter?: string;
122
- grantee?: string;
123
- authorization?: {
124
- typeUrl?: string;
125
- value?: Uint8Array;
126
- };
127
- expiration?: Date | undefined;
128
- } & {
129
- granter?: string;
130
- grantee?: string;
131
- authorization?: {
132
- typeUrl?: string;
133
- value?: Uint8Array;
134
- } & {
135
- typeUrl?: string;
136
- value?: Uint8Array;
137
- } & { [K_2 in Exclude<keyof I_1["authorization"], keyof Any>]: never; };
138
- expiration?: Date | undefined;
139
- } & { [K_3 in Exclude<keyof I_1, keyof GrantAuthorization>]: never; }>(object: I_1): GrantAuthorization;
140
- };
141
- export declare const GrantQueueItem: {
142
- encode(message: GrantQueueItem, writer?: _m0.Writer): _m0.Writer;
143
- decode(input: _m0.Reader | Uint8Array, length?: number): GrantQueueItem;
144
- fromJSON(object: any): GrantQueueItem;
145
- toJSON(message: GrantQueueItem): unknown;
146
- create<I extends {
147
- msgTypeUrls?: string[];
148
- } & {
149
- msgTypeUrls?: string[] & string[] & { [K in Exclude<keyof I["msgTypeUrls"], keyof string[]>]: never; };
150
- } & { [K_1 in Exclude<keyof I, "msgTypeUrls">]: never; }>(base?: I): GrantQueueItem;
151
- fromPartial<I_1 extends {
152
- msgTypeUrls?: string[];
153
- } & {
154
- msgTypeUrls?: string[] & string[] & { [K_2 in Exclude<keyof I_1["msgTypeUrls"], keyof string[]>]: never; };
155
- } & { [K_3 in Exclude<keyof I_1, "msgTypeUrls">]: never; }>(object: I_1): GrantQueueItem;
156
- };
157
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
158
- 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 {} ? {
159
- [K in keyof T]?: DeepPartial<T[K]>;
160
- } : Partial<T>;
161
- type KeysOfUnion<T> = T extends T ? keyof T : never;
162
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
163
- [K in keyof P]: Exact<P[K], I[K]>;
164
- } & {
165
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
166
- };
167
- export {};
@@ -1,309 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
- import { Any } from "../../../google/protobuf/any";
4
- import { Timestamp } from "../../../google/protobuf/timestamp";
5
- export const protobufPackage = "cosmos.authz.v1beta1";
6
- function createBaseGenericAuthorization() {
7
- return { msg: "" };
8
- }
9
- export const GenericAuthorization = {
10
- encode(message, writer = _m0.Writer.create()) {
11
- if (message.msg !== "") {
12
- writer.uint32(10).string(message.msg);
13
- }
14
- return writer;
15
- },
16
- decode(input, length) {
17
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18
- let end = length === undefined ? reader.len : reader.pos + length;
19
- const message = createBaseGenericAuthorization();
20
- while (reader.pos < end) {
21
- const tag = reader.uint32();
22
- switch (tag >>> 3) {
23
- case 1:
24
- if (tag !== 10) {
25
- break;
26
- }
27
- message.msg = reader.string();
28
- continue;
29
- }
30
- if ((tag & 7) === 4 || tag === 0) {
31
- break;
32
- }
33
- reader.skipType(tag & 7);
34
- }
35
- return message;
36
- },
37
- fromJSON(object) {
38
- return { msg: isSet(object.msg) ? String(object.msg) : "" };
39
- },
40
- toJSON(message) {
41
- const obj = {};
42
- message.msg !== undefined && (obj.msg = message.msg);
43
- return obj;
44
- },
45
- create(base) {
46
- return GenericAuthorization.fromPartial(base ?? {});
47
- },
48
- fromPartial(object) {
49
- const message = createBaseGenericAuthorization();
50
- message.msg = object.msg ?? "";
51
- return message;
52
- },
53
- };
54
- function createBaseGrant() {
55
- return { authorization: undefined, expiration: undefined };
56
- }
57
- export const Grant = {
58
- encode(message, writer = _m0.Writer.create()) {
59
- if (message.authorization !== undefined) {
60
- Any.encode(message.authorization, writer.uint32(10).fork()).ldelim();
61
- }
62
- if (message.expiration !== undefined) {
63
- Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim();
64
- }
65
- return writer;
66
- },
67
- decode(input, length) {
68
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
69
- let end = length === undefined ? reader.len : reader.pos + length;
70
- const message = createBaseGrant();
71
- while (reader.pos < end) {
72
- const tag = reader.uint32();
73
- switch (tag >>> 3) {
74
- case 1:
75
- if (tag !== 10) {
76
- break;
77
- }
78
- message.authorization = Any.decode(reader, reader.uint32());
79
- continue;
80
- case 2:
81
- if (tag !== 18) {
82
- break;
83
- }
84
- message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
85
- continue;
86
- }
87
- if ((tag & 7) === 4 || tag === 0) {
88
- break;
89
- }
90
- reader.skipType(tag & 7);
91
- }
92
- return message;
93
- },
94
- fromJSON(object) {
95
- return {
96
- authorization: isSet(object.authorization)
97
- ? Any.fromJSON(object.authorization)
98
- : undefined,
99
- expiration: isSet(object.expiration)
100
- ? fromJsonTimestamp(object.expiration)
101
- : undefined,
102
- };
103
- },
104
- toJSON(message) {
105
- const obj = {};
106
- message.authorization !== undefined &&
107
- (obj.authorization = message.authorization
108
- ? Any.toJSON(message.authorization)
109
- : undefined);
110
- message.expiration !== undefined &&
111
- (obj.expiration = message.expiration.toISOString());
112
- return obj;
113
- },
114
- create(base) {
115
- return Grant.fromPartial(base ?? {});
116
- },
117
- fromPartial(object) {
118
- const message = createBaseGrant();
119
- message.authorization =
120
- object.authorization !== undefined && object.authorization !== null
121
- ? Any.fromPartial(object.authorization)
122
- : undefined;
123
- message.expiration = object.expiration ?? undefined;
124
- return message;
125
- },
126
- };
127
- function createBaseGrantAuthorization() {
128
- return {
129
- granter: "",
130
- grantee: "",
131
- authorization: undefined,
132
- expiration: undefined,
133
- };
134
- }
135
- export const GrantAuthorization = {
136
- encode(message, writer = _m0.Writer.create()) {
137
- if (message.granter !== "") {
138
- writer.uint32(10).string(message.granter);
139
- }
140
- if (message.grantee !== "") {
141
- writer.uint32(18).string(message.grantee);
142
- }
143
- if (message.authorization !== undefined) {
144
- Any.encode(message.authorization, writer.uint32(26).fork()).ldelim();
145
- }
146
- if (message.expiration !== undefined) {
147
- Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim();
148
- }
149
- return writer;
150
- },
151
- decode(input, length) {
152
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
153
- let end = length === undefined ? reader.len : reader.pos + length;
154
- const message = createBaseGrantAuthorization();
155
- while (reader.pos < end) {
156
- const tag = reader.uint32();
157
- switch (tag >>> 3) {
158
- case 1:
159
- if (tag !== 10) {
160
- break;
161
- }
162
- message.granter = reader.string();
163
- continue;
164
- case 2:
165
- if (tag !== 18) {
166
- break;
167
- }
168
- message.grantee = reader.string();
169
- continue;
170
- case 3:
171
- if (tag !== 26) {
172
- break;
173
- }
174
- message.authorization = Any.decode(reader, reader.uint32());
175
- continue;
176
- case 4:
177
- if (tag !== 34) {
178
- break;
179
- }
180
- message.expiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
181
- continue;
182
- }
183
- if ((tag & 7) === 4 || tag === 0) {
184
- break;
185
- }
186
- reader.skipType(tag & 7);
187
- }
188
- return message;
189
- },
190
- fromJSON(object) {
191
- return {
192
- granter: isSet(object.granter) ? String(object.granter) : "",
193
- grantee: isSet(object.grantee) ? String(object.grantee) : "",
194
- authorization: isSet(object.authorization)
195
- ? Any.fromJSON(object.authorization)
196
- : undefined,
197
- expiration: isSet(object.expiration)
198
- ? fromJsonTimestamp(object.expiration)
199
- : undefined,
200
- };
201
- },
202
- toJSON(message) {
203
- const obj = {};
204
- message.granter !== undefined && (obj.granter = message.granter);
205
- message.grantee !== undefined && (obj.grantee = message.grantee);
206
- message.authorization !== undefined &&
207
- (obj.authorization = message.authorization
208
- ? Any.toJSON(message.authorization)
209
- : undefined);
210
- message.expiration !== undefined &&
211
- (obj.expiration = message.expiration.toISOString());
212
- return obj;
213
- },
214
- create(base) {
215
- return GrantAuthorization.fromPartial(base ?? {});
216
- },
217
- fromPartial(object) {
218
- const message = createBaseGrantAuthorization();
219
- message.granter = object.granter ?? "";
220
- message.grantee = object.grantee ?? "";
221
- message.authorization =
222
- object.authorization !== undefined && object.authorization !== null
223
- ? Any.fromPartial(object.authorization)
224
- : undefined;
225
- message.expiration = object.expiration ?? undefined;
226
- return message;
227
- },
228
- };
229
- function createBaseGrantQueueItem() {
230
- return { msgTypeUrls: [] };
231
- }
232
- export const GrantQueueItem = {
233
- encode(message, writer = _m0.Writer.create()) {
234
- for (const v of message.msgTypeUrls) {
235
- writer.uint32(10).string(v);
236
- }
237
- return writer;
238
- },
239
- decode(input, length) {
240
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
241
- let end = length === undefined ? reader.len : reader.pos + length;
242
- const message = createBaseGrantQueueItem();
243
- while (reader.pos < end) {
244
- const tag = reader.uint32();
245
- switch (tag >>> 3) {
246
- case 1:
247
- if (tag !== 10) {
248
- break;
249
- }
250
- message.msgTypeUrls.push(reader.string());
251
- continue;
252
- }
253
- if ((tag & 7) === 4 || tag === 0) {
254
- break;
255
- }
256
- reader.skipType(tag & 7);
257
- }
258
- return message;
259
- },
260
- fromJSON(object) {
261
- return {
262
- msgTypeUrls: Array.isArray(object?.msgTypeUrls)
263
- ? object.msgTypeUrls.map((e) => String(e))
264
- : [],
265
- };
266
- },
267
- toJSON(message) {
268
- const obj = {};
269
- if (message.msgTypeUrls) {
270
- obj.msgTypeUrls = message.msgTypeUrls.map((e) => e);
271
- }
272
- else {
273
- obj.msgTypeUrls = [];
274
- }
275
- return obj;
276
- },
277
- create(base) {
278
- return GrantQueueItem.fromPartial(base ?? {});
279
- },
280
- fromPartial(object) {
281
- const message = createBaseGrantQueueItem();
282
- message.msgTypeUrls = object.msgTypeUrls?.map((e) => e) || [];
283
- return message;
284
- },
285
- };
286
- function toTimestamp(date) {
287
- const seconds = date.getTime() / 1000;
288
- const nanos = (date.getTime() % 1000) * 1000000;
289
- return { seconds, nanos };
290
- }
291
- function fromTimestamp(t) {
292
- let millis = (t.seconds || 0) * 1000;
293
- millis += (t.nanos || 0) / 1000000;
294
- return new Date(millis);
295
- }
296
- function fromJsonTimestamp(o) {
297
- if (o instanceof Date) {
298
- return o;
299
- }
300
- else if (typeof o === "string") {
301
- return new Date(o);
302
- }
303
- else {
304
- return fromTimestamp(Timestamp.fromJSON(o));
305
- }
306
- }
307
- function isSet(value) {
308
- return value !== null && value !== undefined;
309
- }
@@ -1,80 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "cosmos.authz.v1beta1";
3
- /** Since: cosmos-sdk 0.43 */
4
- /** EventGrant is emitted on Msg/Grant */
5
- export interface EventGrant {
6
- /** Msg type URL for which an autorization is granted */
7
- msgTypeUrl: string;
8
- /** Granter account address */
9
- granter: string;
10
- /** Grantee account address */
11
- grantee: string;
12
- }
13
- /** EventRevoke is emitted on Msg/Revoke */
14
- export interface EventRevoke {
15
- /** Msg type URL for which an autorization is revoked */
16
- msgTypeUrl: string;
17
- /** Granter account address */
18
- granter: string;
19
- /** Grantee account address */
20
- grantee: string;
21
- }
22
- export declare const EventGrant: {
23
- encode(message: EventGrant, writer?: _m0.Writer): _m0.Writer;
24
- decode(input: _m0.Reader | Uint8Array, length?: number): EventGrant;
25
- fromJSON(object: any): EventGrant;
26
- toJSON(message: EventGrant): unknown;
27
- create<I extends {
28
- msgTypeUrl?: string;
29
- granter?: string;
30
- grantee?: string;
31
- } & {
32
- msgTypeUrl?: string;
33
- granter?: string;
34
- grantee?: string;
35
- } & { [K in Exclude<keyof I, keyof EventGrant>]: never; }>(base?: I): EventGrant;
36
- fromPartial<I_1 extends {
37
- msgTypeUrl?: string;
38
- granter?: string;
39
- grantee?: string;
40
- } & {
41
- msgTypeUrl?: string;
42
- granter?: string;
43
- grantee?: string;
44
- } & { [K_1 in Exclude<keyof I_1, keyof EventGrant>]: never; }>(object: I_1): EventGrant;
45
- };
46
- export declare const EventRevoke: {
47
- encode(message: EventRevoke, writer?: _m0.Writer): _m0.Writer;
48
- decode(input: _m0.Reader | Uint8Array, length?: number): EventRevoke;
49
- fromJSON(object: any): EventRevoke;
50
- toJSON(message: EventRevoke): unknown;
51
- create<I extends {
52
- msgTypeUrl?: string;
53
- granter?: string;
54
- grantee?: string;
55
- } & {
56
- msgTypeUrl?: string;
57
- granter?: string;
58
- grantee?: string;
59
- } & { [K in Exclude<keyof I, keyof EventRevoke>]: never; }>(base?: I): EventRevoke;
60
- fromPartial<I_1 extends {
61
- msgTypeUrl?: string;
62
- granter?: string;
63
- grantee?: string;
64
- } & {
65
- msgTypeUrl?: string;
66
- granter?: string;
67
- grantee?: string;
68
- } & { [K_1 in Exclude<keyof I_1, keyof EventRevoke>]: never; }>(object: I_1): EventRevoke;
69
- };
70
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
71
- 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 {} ? {
72
- [K in keyof T]?: DeepPartial<T[K]>;
73
- } : Partial<T>;
74
- type KeysOfUnion<T> = T extends T ? keyof T : never;
75
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
76
- [K in keyof P]: Exact<P[K], I[K]>;
77
- } & {
78
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
79
- };
80
- export {};