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,264 +0,0 @@
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 {};
@@ -1,426 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
- import { Any } from "../../../google/protobuf/any";
4
- import { Grant } from "./authz";
5
- export const protobufPackage = "cosmos.authz.v1beta1";
6
- function createBaseMsgGrant() {
7
- return { granter: "", grantee: "", grant: undefined };
8
- }
9
- export const MsgGrant = {
10
- encode(message, writer = _m0.Writer.create()) {
11
- if (message.granter !== "") {
12
- writer.uint32(10).string(message.granter);
13
- }
14
- if (message.grantee !== "") {
15
- writer.uint32(18).string(message.grantee);
16
- }
17
- if (message.grant !== undefined) {
18
- Grant.encode(message.grant, writer.uint32(26).fork()).ldelim();
19
- }
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBaseMsgGrant();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- case 1:
30
- if (tag !== 10) {
31
- break;
32
- }
33
- message.granter = reader.string();
34
- continue;
35
- case 2:
36
- if (tag !== 18) {
37
- break;
38
- }
39
- message.grantee = reader.string();
40
- continue;
41
- case 3:
42
- if (tag !== 26) {
43
- break;
44
- }
45
- message.grant = Grant.decode(reader, reader.uint32());
46
- continue;
47
- }
48
- if ((tag & 7) === 4 || tag === 0) {
49
- break;
50
- }
51
- reader.skipType(tag & 7);
52
- }
53
- return message;
54
- },
55
- fromJSON(object) {
56
- return {
57
- granter: isSet(object.granter) ? String(object.granter) : "",
58
- grantee: isSet(object.grantee) ? String(object.grantee) : "",
59
- grant: isSet(object.grant) ? Grant.fromJSON(object.grant) : undefined,
60
- };
61
- },
62
- toJSON(message) {
63
- const obj = {};
64
- message.granter !== undefined && (obj.granter = message.granter);
65
- message.grantee !== undefined && (obj.grantee = message.grantee);
66
- message.grant !== undefined &&
67
- (obj.grant = message.grant ? Grant.toJSON(message.grant) : undefined);
68
- return obj;
69
- },
70
- create(base) {
71
- return MsgGrant.fromPartial(base ?? {});
72
- },
73
- fromPartial(object) {
74
- const message = createBaseMsgGrant();
75
- message.granter = object.granter ?? "";
76
- message.grantee = object.grantee ?? "";
77
- message.grant =
78
- object.grant !== undefined && object.grant !== null
79
- ? Grant.fromPartial(object.grant)
80
- : undefined;
81
- return message;
82
- },
83
- };
84
- function createBaseMsgExecResponse() {
85
- return { results: [] };
86
- }
87
- export const MsgExecResponse = {
88
- encode(message, writer = _m0.Writer.create()) {
89
- for (const v of message.results) {
90
- writer.uint32(10).bytes(v);
91
- }
92
- return writer;
93
- },
94
- decode(input, length) {
95
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
96
- let end = length === undefined ? reader.len : reader.pos + length;
97
- const message = createBaseMsgExecResponse();
98
- while (reader.pos < end) {
99
- const tag = reader.uint32();
100
- switch (tag >>> 3) {
101
- case 1:
102
- if (tag !== 10) {
103
- break;
104
- }
105
- message.results.push(reader.bytes());
106
- continue;
107
- }
108
- if ((tag & 7) === 4 || tag === 0) {
109
- break;
110
- }
111
- reader.skipType(tag & 7);
112
- }
113
- return message;
114
- },
115
- fromJSON(object) {
116
- return {
117
- results: Array.isArray(object?.results)
118
- ? object.results.map((e) => bytesFromBase64(e))
119
- : [],
120
- };
121
- },
122
- toJSON(message) {
123
- const obj = {};
124
- if (message.results) {
125
- obj.results = message.results.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
126
- }
127
- else {
128
- obj.results = [];
129
- }
130
- return obj;
131
- },
132
- create(base) {
133
- return MsgExecResponse.fromPartial(base ?? {});
134
- },
135
- fromPartial(object) {
136
- const message = createBaseMsgExecResponse();
137
- message.results = object.results?.map((e) => e) || [];
138
- return message;
139
- },
140
- };
141
- function createBaseMsgExec() {
142
- return { grantee: "", msgs: [] };
143
- }
144
- export const MsgExec = {
145
- encode(message, writer = _m0.Writer.create()) {
146
- if (message.grantee !== "") {
147
- writer.uint32(10).string(message.grantee);
148
- }
149
- for (const v of message.msgs) {
150
- Any.encode(v, writer.uint32(18).fork()).ldelim();
151
- }
152
- return writer;
153
- },
154
- decode(input, length) {
155
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
156
- let end = length === undefined ? reader.len : reader.pos + length;
157
- const message = createBaseMsgExec();
158
- while (reader.pos < end) {
159
- const tag = reader.uint32();
160
- switch (tag >>> 3) {
161
- case 1:
162
- if (tag !== 10) {
163
- break;
164
- }
165
- message.grantee = reader.string();
166
- continue;
167
- case 2:
168
- if (tag !== 18) {
169
- break;
170
- }
171
- message.msgs.push(Any.decode(reader, reader.uint32()));
172
- continue;
173
- }
174
- if ((tag & 7) === 4 || tag === 0) {
175
- break;
176
- }
177
- reader.skipType(tag & 7);
178
- }
179
- return message;
180
- },
181
- fromJSON(object) {
182
- return {
183
- grantee: isSet(object.grantee) ? String(object.grantee) : "",
184
- msgs: Array.isArray(object?.msgs)
185
- ? object.msgs.map((e) => Any.fromJSON(e))
186
- : [],
187
- };
188
- },
189
- toJSON(message) {
190
- const obj = {};
191
- message.grantee !== undefined && (obj.grantee = message.grantee);
192
- if (message.msgs) {
193
- obj.msgs = message.msgs.map((e) => (e ? Any.toJSON(e) : undefined));
194
- }
195
- else {
196
- obj.msgs = [];
197
- }
198
- return obj;
199
- },
200
- create(base) {
201
- return MsgExec.fromPartial(base ?? {});
202
- },
203
- fromPartial(object) {
204
- const message = createBaseMsgExec();
205
- message.grantee = object.grantee ?? "";
206
- message.msgs = object.msgs?.map((e) => Any.fromPartial(e)) || [];
207
- return message;
208
- },
209
- };
210
- function createBaseMsgGrantResponse() {
211
- return {};
212
- }
213
- export const MsgGrantResponse = {
214
- encode(_, writer = _m0.Writer.create()) {
215
- return writer;
216
- },
217
- decode(input, length) {
218
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
219
- let end = length === undefined ? reader.len : reader.pos + length;
220
- const message = createBaseMsgGrantResponse();
221
- while (reader.pos < end) {
222
- const tag = reader.uint32();
223
- switch (tag >>> 3) {
224
- }
225
- if ((tag & 7) === 4 || tag === 0) {
226
- break;
227
- }
228
- reader.skipType(tag & 7);
229
- }
230
- return message;
231
- },
232
- fromJSON(_) {
233
- return {};
234
- },
235
- toJSON(_) {
236
- const obj = {};
237
- return obj;
238
- },
239
- create(base) {
240
- return MsgGrantResponse.fromPartial(base ?? {});
241
- },
242
- fromPartial(_) {
243
- const message = createBaseMsgGrantResponse();
244
- return message;
245
- },
246
- };
247
- function createBaseMsgRevoke() {
248
- return { granter: "", grantee: "", msgTypeUrl: "" };
249
- }
250
- export const MsgRevoke = {
251
- encode(message, writer = _m0.Writer.create()) {
252
- if (message.granter !== "") {
253
- writer.uint32(10).string(message.granter);
254
- }
255
- if (message.grantee !== "") {
256
- writer.uint32(18).string(message.grantee);
257
- }
258
- if (message.msgTypeUrl !== "") {
259
- writer.uint32(26).string(message.msgTypeUrl);
260
- }
261
- return writer;
262
- },
263
- decode(input, length) {
264
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
265
- let end = length === undefined ? reader.len : reader.pos + length;
266
- const message = createBaseMsgRevoke();
267
- while (reader.pos < end) {
268
- const tag = reader.uint32();
269
- switch (tag >>> 3) {
270
- case 1:
271
- if (tag !== 10) {
272
- break;
273
- }
274
- message.granter = reader.string();
275
- continue;
276
- case 2:
277
- if (tag !== 18) {
278
- break;
279
- }
280
- message.grantee = reader.string();
281
- continue;
282
- case 3:
283
- if (tag !== 26) {
284
- break;
285
- }
286
- message.msgTypeUrl = reader.string();
287
- continue;
288
- }
289
- if ((tag & 7) === 4 || tag === 0) {
290
- break;
291
- }
292
- reader.skipType(tag & 7);
293
- }
294
- return message;
295
- },
296
- fromJSON(object) {
297
- return {
298
- granter: isSet(object.granter) ? String(object.granter) : "",
299
- grantee: isSet(object.grantee) ? String(object.grantee) : "",
300
- msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
301
- };
302
- },
303
- toJSON(message) {
304
- const obj = {};
305
- message.granter !== undefined && (obj.granter = message.granter);
306
- message.grantee !== undefined && (obj.grantee = message.grantee);
307
- message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
308
- return obj;
309
- },
310
- create(base) {
311
- return MsgRevoke.fromPartial(base ?? {});
312
- },
313
- fromPartial(object) {
314
- const message = createBaseMsgRevoke();
315
- message.granter = object.granter ?? "";
316
- message.grantee = object.grantee ?? "";
317
- message.msgTypeUrl = object.msgTypeUrl ?? "";
318
- return message;
319
- },
320
- };
321
- function createBaseMsgRevokeResponse() {
322
- return {};
323
- }
324
- export const MsgRevokeResponse = {
325
- encode(_, writer = _m0.Writer.create()) {
326
- return writer;
327
- },
328
- decode(input, length) {
329
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
330
- let end = length === undefined ? reader.len : reader.pos + length;
331
- const message = createBaseMsgRevokeResponse();
332
- while (reader.pos < end) {
333
- const tag = reader.uint32();
334
- switch (tag >>> 3) {
335
- }
336
- if ((tag & 7) === 4 || tag === 0) {
337
- break;
338
- }
339
- reader.skipType(tag & 7);
340
- }
341
- return message;
342
- },
343
- fromJSON(_) {
344
- return {};
345
- },
346
- toJSON(_) {
347
- const obj = {};
348
- return obj;
349
- },
350
- create(base) {
351
- return MsgRevokeResponse.fromPartial(base ?? {});
352
- },
353
- fromPartial(_) {
354
- const message = createBaseMsgRevokeResponse();
355
- return message;
356
- },
357
- };
358
- export class MsgClientImpl {
359
- rpc;
360
- service;
361
- constructor(rpc, opts) {
362
- this.service = opts?.service || "cosmos.authz.v1beta1.Msg";
363
- this.rpc = rpc;
364
- this.Grant = this.Grant.bind(this);
365
- this.Exec = this.Exec.bind(this);
366
- this.Revoke = this.Revoke.bind(this);
367
- }
368
- Grant(request) {
369
- const data = MsgGrant.encode(request).finish();
370
- const promise = this.rpc.request(this.service, "Grant", data);
371
- return promise.then((data) => MsgGrantResponse.decode(_m0.Reader.create(data)));
372
- }
373
- Exec(request) {
374
- const data = MsgExec.encode(request).finish();
375
- const promise = this.rpc.request(this.service, "Exec", data);
376
- return promise.then((data) => MsgExecResponse.decode(_m0.Reader.create(data)));
377
- }
378
- Revoke(request) {
379
- const data = MsgRevoke.encode(request).finish();
380
- const promise = this.rpc.request(this.service, "Revoke", data);
381
- return promise.then((data) => MsgRevokeResponse.decode(_m0.Reader.create(data)));
382
- }
383
- }
384
- var tsProtoGlobalThis = (() => {
385
- if (typeof globalThis !== "undefined") {
386
- return globalThis;
387
- }
388
- if (typeof self !== "undefined") {
389
- return self;
390
- }
391
- if (typeof window !== "undefined") {
392
- return window;
393
- }
394
- if (typeof global !== "undefined") {
395
- return global;
396
- }
397
- throw "Unable to locate global object";
398
- })();
399
- function bytesFromBase64(b64) {
400
- if (tsProtoGlobalThis.Buffer) {
401
- return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
402
- }
403
- else {
404
- const bin = tsProtoGlobalThis.atob(b64);
405
- const arr = new Uint8Array(bin.length);
406
- for (let i = 0; i < bin.length; ++i) {
407
- arr[i] = bin.charCodeAt(i);
408
- }
409
- return arr;
410
- }
411
- }
412
- function base64FromBytes(arr) {
413
- if (tsProtoGlobalThis.Buffer) {
414
- return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
415
- }
416
- else {
417
- const bin = [];
418
- arr.forEach((byte) => {
419
- bin.push(String.fromCharCode(byte));
420
- });
421
- return tsProtoGlobalThis.btoa(bin.join(""));
422
- }
423
- }
424
- function isSet(value) {
425
- return value !== null && value !== undefined;
426
- }