coreum-js 2.10.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 +9 -9
  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,450 +0,0 @@
1
- /* eslint-disable */
2
- import _m0 from "protobufjs/minimal";
3
- import { PageRequest, PageResponse } from "./pagination";
4
- import { Grant } from "./feegrant";
5
- export const protobufPackage = "cosmos.feegrant.v1beta1";
6
- function createBaseQueryAllowanceRequest() {
7
- return { granter: "", grantee: "" };
8
- }
9
- export const QueryAllowanceRequest = {
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
- return writer;
18
- },
19
- decode(input, length) {
20
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
21
- let end = length === undefined ? reader.len : reader.pos + length;
22
- const message = createBaseQueryAllowanceRequest();
23
- while (reader.pos < end) {
24
- const tag = reader.uint32();
25
- switch (tag >>> 3) {
26
- case 1:
27
- if (tag !== 10) {
28
- break;
29
- }
30
- message.granter = reader.string();
31
- continue;
32
- case 2:
33
- if (tag !== 18) {
34
- break;
35
- }
36
- message.grantee = reader.string();
37
- continue;
38
- }
39
- if ((tag & 7) === 4 || tag === 0) {
40
- break;
41
- }
42
- reader.skipType(tag & 7);
43
- }
44
- return message;
45
- },
46
- fromJSON(object) {
47
- return {
48
- granter: isSet(object.granter) ? String(object.granter) : "",
49
- grantee: isSet(object.grantee) ? String(object.grantee) : "",
50
- };
51
- },
52
- toJSON(message) {
53
- const obj = {};
54
- message.granter !== undefined && (obj.granter = message.granter);
55
- message.grantee !== undefined && (obj.grantee = message.grantee);
56
- return obj;
57
- },
58
- create(base) {
59
- return QueryAllowanceRequest.fromPartial(base ?? {});
60
- },
61
- fromPartial(object) {
62
- const message = createBaseQueryAllowanceRequest();
63
- message.granter = object.granter ?? "";
64
- message.grantee = object.grantee ?? "";
65
- return message;
66
- },
67
- };
68
- function createBaseQueryAllowanceResponse() {
69
- return { allowance: undefined };
70
- }
71
- export const QueryAllowanceResponse = {
72
- encode(message, writer = _m0.Writer.create()) {
73
- if (message.allowance !== undefined) {
74
- Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim();
75
- }
76
- return writer;
77
- },
78
- decode(input, length) {
79
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
80
- let end = length === undefined ? reader.len : reader.pos + length;
81
- const message = createBaseQueryAllowanceResponse();
82
- while (reader.pos < end) {
83
- const tag = reader.uint32();
84
- switch (tag >>> 3) {
85
- case 1:
86
- if (tag !== 10) {
87
- break;
88
- }
89
- message.allowance = Grant.decode(reader, reader.uint32());
90
- continue;
91
- }
92
- if ((tag & 7) === 4 || tag === 0) {
93
- break;
94
- }
95
- reader.skipType(tag & 7);
96
- }
97
- return message;
98
- },
99
- fromJSON(object) {
100
- return {
101
- allowance: isSet(object.allowance)
102
- ? Grant.fromJSON(object.allowance)
103
- : undefined,
104
- };
105
- },
106
- toJSON(message) {
107
- const obj = {};
108
- message.allowance !== undefined &&
109
- (obj.allowance = message.allowance
110
- ? Grant.toJSON(message.allowance)
111
- : undefined);
112
- return obj;
113
- },
114
- create(base) {
115
- return QueryAllowanceResponse.fromPartial(base ?? {});
116
- },
117
- fromPartial(object) {
118
- const message = createBaseQueryAllowanceResponse();
119
- message.allowance =
120
- object.allowance !== undefined && object.allowance !== null
121
- ? Grant.fromPartial(object.allowance)
122
- : undefined;
123
- return message;
124
- },
125
- };
126
- function createBaseQueryAllowancesRequest() {
127
- return { grantee: "", pagination: undefined };
128
- }
129
- export const QueryAllowancesRequest = {
130
- encode(message, writer = _m0.Writer.create()) {
131
- if (message.grantee !== "") {
132
- writer.uint32(10).string(message.grantee);
133
- }
134
- if (message.pagination !== undefined) {
135
- PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
136
- }
137
- return writer;
138
- },
139
- decode(input, length) {
140
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
141
- let end = length === undefined ? reader.len : reader.pos + length;
142
- const message = createBaseQueryAllowancesRequest();
143
- while (reader.pos < end) {
144
- const tag = reader.uint32();
145
- switch (tag >>> 3) {
146
- case 1:
147
- if (tag !== 10) {
148
- break;
149
- }
150
- message.grantee = reader.string();
151
- continue;
152
- case 2:
153
- if (tag !== 18) {
154
- break;
155
- }
156
- message.pagination = PageRequest.decode(reader, reader.uint32());
157
- continue;
158
- }
159
- if ((tag & 7) === 4 || tag === 0) {
160
- break;
161
- }
162
- reader.skipType(tag & 7);
163
- }
164
- return message;
165
- },
166
- fromJSON(object) {
167
- return {
168
- grantee: isSet(object.grantee) ? String(object.grantee) : "",
169
- pagination: isSet(object.pagination)
170
- ? PageRequest.fromJSON(object.pagination)
171
- : undefined,
172
- };
173
- },
174
- toJSON(message) {
175
- const obj = {};
176
- message.grantee !== undefined && (obj.grantee = message.grantee);
177
- message.pagination !== undefined &&
178
- (obj.pagination = message.pagination
179
- ? PageRequest.toJSON(message.pagination)
180
- : undefined);
181
- return obj;
182
- },
183
- create(base) {
184
- return QueryAllowancesRequest.fromPartial(base ?? {});
185
- },
186
- fromPartial(object) {
187
- const message = createBaseQueryAllowancesRequest();
188
- message.grantee = object.grantee ?? "";
189
- message.pagination =
190
- object.pagination !== undefined && object.pagination !== null
191
- ? PageRequest.fromPartial(object.pagination)
192
- : undefined;
193
- return message;
194
- },
195
- };
196
- function createBaseQueryAllowancesResponse() {
197
- return { allowances: [], pagination: undefined };
198
- }
199
- export const QueryAllowancesResponse = {
200
- encode(message, writer = _m0.Writer.create()) {
201
- for (const v of message.allowances) {
202
- Grant.encode(v, writer.uint32(10).fork()).ldelim();
203
- }
204
- if (message.pagination !== undefined) {
205
- PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
206
- }
207
- return writer;
208
- },
209
- decode(input, length) {
210
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
211
- let end = length === undefined ? reader.len : reader.pos + length;
212
- const message = createBaseQueryAllowancesResponse();
213
- while (reader.pos < end) {
214
- const tag = reader.uint32();
215
- switch (tag >>> 3) {
216
- case 1:
217
- if (tag !== 10) {
218
- break;
219
- }
220
- message.allowances.push(Grant.decode(reader, reader.uint32()));
221
- continue;
222
- case 2:
223
- if (tag !== 18) {
224
- break;
225
- }
226
- message.pagination = PageResponse.decode(reader, reader.uint32());
227
- continue;
228
- }
229
- if ((tag & 7) === 4 || tag === 0) {
230
- break;
231
- }
232
- reader.skipType(tag & 7);
233
- }
234
- return message;
235
- },
236
- fromJSON(object) {
237
- return {
238
- allowances: Array.isArray(object?.allowances)
239
- ? object.allowances.map((e) => Grant.fromJSON(e))
240
- : [],
241
- pagination: isSet(object.pagination)
242
- ? PageResponse.fromJSON(object.pagination)
243
- : undefined,
244
- };
245
- },
246
- toJSON(message) {
247
- const obj = {};
248
- if (message.allowances) {
249
- obj.allowances = message.allowances.map((e) => e ? Grant.toJSON(e) : undefined);
250
- }
251
- else {
252
- obj.allowances = [];
253
- }
254
- message.pagination !== undefined &&
255
- (obj.pagination = message.pagination
256
- ? PageResponse.toJSON(message.pagination)
257
- : undefined);
258
- return obj;
259
- },
260
- create(base) {
261
- return QueryAllowancesResponse.fromPartial(base ?? {});
262
- },
263
- fromPartial(object) {
264
- const message = createBaseQueryAllowancesResponse();
265
- message.allowances =
266
- object.allowances?.map((e) => Grant.fromPartial(e)) || [];
267
- message.pagination =
268
- object.pagination !== undefined && object.pagination !== null
269
- ? PageResponse.fromPartial(object.pagination)
270
- : undefined;
271
- return message;
272
- },
273
- };
274
- function createBaseQueryAllowancesByGranterRequest() {
275
- return { granter: "", pagination: undefined };
276
- }
277
- export const QueryAllowancesByGranterRequest = {
278
- encode(message, writer = _m0.Writer.create()) {
279
- if (message.granter !== "") {
280
- writer.uint32(10).string(message.granter);
281
- }
282
- if (message.pagination !== undefined) {
283
- PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
284
- }
285
- return writer;
286
- },
287
- decode(input, length) {
288
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
289
- let end = length === undefined ? reader.len : reader.pos + length;
290
- const message = createBaseQueryAllowancesByGranterRequest();
291
- while (reader.pos < end) {
292
- const tag = reader.uint32();
293
- switch (tag >>> 3) {
294
- case 1:
295
- if (tag !== 10) {
296
- break;
297
- }
298
- message.granter = reader.string();
299
- continue;
300
- case 2:
301
- if (tag !== 18) {
302
- break;
303
- }
304
- message.pagination = PageRequest.decode(reader, reader.uint32());
305
- continue;
306
- }
307
- if ((tag & 7) === 4 || tag === 0) {
308
- break;
309
- }
310
- reader.skipType(tag & 7);
311
- }
312
- return message;
313
- },
314
- fromJSON(object) {
315
- return {
316
- granter: isSet(object.granter) ? String(object.granter) : "",
317
- pagination: isSet(object.pagination)
318
- ? PageRequest.fromJSON(object.pagination)
319
- : undefined,
320
- };
321
- },
322
- toJSON(message) {
323
- const obj = {};
324
- message.granter !== undefined && (obj.granter = message.granter);
325
- message.pagination !== undefined &&
326
- (obj.pagination = message.pagination
327
- ? PageRequest.toJSON(message.pagination)
328
- : undefined);
329
- return obj;
330
- },
331
- create(base) {
332
- return QueryAllowancesByGranterRequest.fromPartial(base ?? {});
333
- },
334
- fromPartial(object) {
335
- const message = createBaseQueryAllowancesByGranterRequest();
336
- message.granter = object.granter ?? "";
337
- message.pagination =
338
- object.pagination !== undefined && object.pagination !== null
339
- ? PageRequest.fromPartial(object.pagination)
340
- : undefined;
341
- return message;
342
- },
343
- };
344
- function createBaseQueryAllowancesByGranterResponse() {
345
- return { allowances: [], pagination: undefined };
346
- }
347
- export const QueryAllowancesByGranterResponse = {
348
- encode(message, writer = _m0.Writer.create()) {
349
- for (const v of message.allowances) {
350
- Grant.encode(v, writer.uint32(10).fork()).ldelim();
351
- }
352
- if (message.pagination !== undefined) {
353
- PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
354
- }
355
- return writer;
356
- },
357
- decode(input, length) {
358
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
359
- let end = length === undefined ? reader.len : reader.pos + length;
360
- const message = createBaseQueryAllowancesByGranterResponse();
361
- while (reader.pos < end) {
362
- const tag = reader.uint32();
363
- switch (tag >>> 3) {
364
- case 1:
365
- if (tag !== 10) {
366
- break;
367
- }
368
- message.allowances.push(Grant.decode(reader, reader.uint32()));
369
- continue;
370
- case 2:
371
- if (tag !== 18) {
372
- break;
373
- }
374
- message.pagination = PageResponse.decode(reader, reader.uint32());
375
- continue;
376
- }
377
- if ((tag & 7) === 4 || tag === 0) {
378
- break;
379
- }
380
- reader.skipType(tag & 7);
381
- }
382
- return message;
383
- },
384
- fromJSON(object) {
385
- return {
386
- allowances: Array.isArray(object?.allowances)
387
- ? object.allowances.map((e) => Grant.fromJSON(e))
388
- : [],
389
- pagination: isSet(object.pagination)
390
- ? PageResponse.fromJSON(object.pagination)
391
- : undefined,
392
- };
393
- },
394
- toJSON(message) {
395
- const obj = {};
396
- if (message.allowances) {
397
- obj.allowances = message.allowances.map((e) => e ? Grant.toJSON(e) : undefined);
398
- }
399
- else {
400
- obj.allowances = [];
401
- }
402
- message.pagination !== undefined &&
403
- (obj.pagination = message.pagination
404
- ? PageResponse.toJSON(message.pagination)
405
- : undefined);
406
- return obj;
407
- },
408
- create(base) {
409
- return QueryAllowancesByGranterResponse.fromPartial(base ?? {});
410
- },
411
- fromPartial(object) {
412
- const message = createBaseQueryAllowancesByGranterResponse();
413
- message.allowances =
414
- object.allowances?.map((e) => Grant.fromPartial(e)) || [];
415
- message.pagination =
416
- object.pagination !== undefined && object.pagination !== null
417
- ? PageResponse.fromPartial(object.pagination)
418
- : undefined;
419
- return message;
420
- },
421
- };
422
- export class QueryClientImpl {
423
- rpc;
424
- service;
425
- constructor(rpc, opts) {
426
- this.service = opts?.service || "cosmos.feegrant.v1beta1.Query";
427
- this.rpc = rpc;
428
- this.Allowance = this.Allowance.bind(this);
429
- this.Allowances = this.Allowances.bind(this);
430
- this.AllowancesByGranter = this.AllowancesByGranter.bind(this);
431
- }
432
- Allowance(request) {
433
- const data = QueryAllowanceRequest.encode(request).finish();
434
- const promise = this.rpc.request(this.service, "Allowance", data);
435
- return promise.then((data) => QueryAllowanceResponse.decode(_m0.Reader.create(data)));
436
- }
437
- Allowances(request) {
438
- const data = QueryAllowancesRequest.encode(request).finish();
439
- const promise = this.rpc.request(this.service, "Allowances", data);
440
- return promise.then((data) => QueryAllowancesResponse.decode(_m0.Reader.create(data)));
441
- }
442
- AllowancesByGranter(request) {
443
- const data = QueryAllowancesByGranterRequest.encode(request).finish();
444
- const promise = this.rpc.request(this.service, "AllowancesByGranter", data);
445
- return promise.then((data) => QueryAllowancesByGranterResponse.decode(_m0.Reader.create(data)));
446
- }
447
- }
448
- function isSet(value) {
449
- return value !== null && value !== undefined;
450
- }
@@ -1,143 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- import { Any } from "../../../google/protobuf/any";
3
- export declare const protobufPackage = "cosmos.feegrant.v1beta1";
4
- /** Since: cosmos-sdk 0.43 */
5
- /**
6
- * MsgGrantAllowance adds permission for Grantee to spend up to Allowance
7
- * of fees from the account of Granter.
8
- */
9
- export interface MsgGrantAllowance {
10
- /** granter is the address of the user granting an allowance of their funds. */
11
- granter: string;
12
- /** grantee is the address of the user being granted an allowance of another user's funds. */
13
- grantee: string;
14
- /** allowance can be any of basic, periodic, allowed fee allowance. */
15
- allowance: Any | undefined;
16
- }
17
- /** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */
18
- export interface MsgGrantAllowanceResponse {
19
- }
20
- /** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */
21
- export interface MsgRevokeAllowance {
22
- /** granter is the address of the user granting an allowance of their funds. */
23
- granter: string;
24
- /** grantee is the address of the user being granted an allowance of another user's funds. */
25
- grantee: string;
26
- }
27
- /** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */
28
- export interface MsgRevokeAllowanceResponse {
29
- }
30
- export declare const MsgGrantAllowance: {
31
- encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer;
32
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance;
33
- fromJSON(object: any): MsgGrantAllowance;
34
- toJSON(message: MsgGrantAllowance): unknown;
35
- create<I extends {
36
- granter?: string;
37
- grantee?: string;
38
- allowance?: {
39
- typeUrl?: string;
40
- value?: Uint8Array;
41
- };
42
- } & {
43
- granter?: string;
44
- grantee?: string;
45
- allowance?: {
46
- typeUrl?: string;
47
- value?: Uint8Array;
48
- } & {
49
- typeUrl?: string;
50
- value?: Uint8Array;
51
- } & { [K in Exclude<keyof I["allowance"], keyof Any>]: never; };
52
- } & { [K_1 in Exclude<keyof I, keyof MsgGrantAllowance>]: never; }>(base?: I): MsgGrantAllowance;
53
- fromPartial<I_1 extends {
54
- granter?: string;
55
- grantee?: string;
56
- allowance?: {
57
- typeUrl?: string;
58
- value?: Uint8Array;
59
- };
60
- } & {
61
- granter?: string;
62
- grantee?: string;
63
- allowance?: {
64
- typeUrl?: string;
65
- value?: Uint8Array;
66
- } & {
67
- typeUrl?: string;
68
- value?: Uint8Array;
69
- } & { [K_2 in Exclude<keyof I_1["allowance"], keyof Any>]: never; };
70
- } & { [K_3 in Exclude<keyof I_1, keyof MsgGrantAllowance>]: never; }>(object: I_1): MsgGrantAllowance;
71
- };
72
- export declare const MsgGrantAllowanceResponse: {
73
- encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
74
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse;
75
- fromJSON(_: any): MsgGrantAllowanceResponse;
76
- toJSON(_: MsgGrantAllowanceResponse): unknown;
77
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgGrantAllowanceResponse;
78
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgGrantAllowanceResponse;
79
- };
80
- export declare const MsgRevokeAllowance: {
81
- encode(message: MsgRevokeAllowance, writer?: _m0.Writer): _m0.Writer;
82
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance;
83
- fromJSON(object: any): MsgRevokeAllowance;
84
- toJSON(message: MsgRevokeAllowance): unknown;
85
- create<I extends {
86
- granter?: string;
87
- grantee?: string;
88
- } & {
89
- granter?: string;
90
- grantee?: string;
91
- } & { [K in Exclude<keyof I, keyof MsgRevokeAllowance>]: never; }>(base?: I): MsgRevokeAllowance;
92
- fromPartial<I_1 extends {
93
- granter?: string;
94
- grantee?: string;
95
- } & {
96
- granter?: string;
97
- grantee?: string;
98
- } & { [K_1 in Exclude<keyof I_1, keyof MsgRevokeAllowance>]: never; }>(object: I_1): MsgRevokeAllowance;
99
- };
100
- export declare const MsgRevokeAllowanceResponse: {
101
- encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
102
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse;
103
- fromJSON(_: any): MsgRevokeAllowanceResponse;
104
- toJSON(_: MsgRevokeAllowanceResponse): unknown;
105
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgRevokeAllowanceResponse;
106
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgRevokeAllowanceResponse;
107
- };
108
- /** Msg defines the feegrant msg service. */
109
- export interface Msg {
110
- /**
111
- * GrantAllowance grants fee allowance to the grantee on the granter's
112
- * account with the provided expiration time.
113
- */
114
- GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
115
- /**
116
- * RevokeAllowance revokes any fee allowance of granter's account that
117
- * has been granted to the grantee.
118
- */
119
- RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
120
- }
121
- export declare class MsgClientImpl implements Msg {
122
- private readonly rpc;
123
- private readonly service;
124
- constructor(rpc: Rpc, opts?: {
125
- service?: string;
126
- });
127
- GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
128
- RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
129
- }
130
- interface Rpc {
131
- request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
132
- }
133
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
134
- 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 {} ? {
135
- [K in keyof T]?: DeepPartial<T[K]>;
136
- } : Partial<T>;
137
- type KeysOfUnion<T> = T extends T ? keyof T : never;
138
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
139
- [K in keyof P]: Exact<P[K], I[K]>;
140
- } & {
141
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
142
- };
143
- export {};