atlas.js-protos 0.1.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 (195) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/dist/filetree/index.d.ts +2 -0
  4. package/dist/filetree/index.js +8 -0
  5. package/dist/filetree/index.mjs +3 -0
  6. package/dist/filetree/query.d.ts +1 -0
  7. package/dist/filetree/query.js +13 -0
  8. package/dist/filetree/query.mjs +2 -0
  9. package/dist/filetree/tx.d.ts +1 -0
  10. package/dist/filetree/tx.js +11 -0
  11. package/dist/filetree/tx.mjs +2 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +17 -0
  14. package/dist/index.mjs +1 -0
  15. package/dist/storage/index.d.ts +5 -0
  16. package/dist/storage/index.js +16 -0
  17. package/dist/storage/index.mjs +6 -0
  18. package/dist/storage/query.d.ts +1 -0
  19. package/dist/storage/query.js +27 -0
  20. package/dist/storage/query.mjs +2 -0
  21. package/dist/storage/tx.d.ts +1 -0
  22. package/dist/storage/tx.js +21 -0
  23. package/dist/storage/tx.mjs +2 -0
  24. package/dist/types/amino/amino.d.ts +1 -0
  25. package/dist/types/amino/amino.js +2 -0
  26. package/dist/types/amino/amino.mjs +1 -0
  27. package/dist/types/amino/bundle.d.ts +1 -0
  28. package/dist/types/amino/bundle.js +41 -0
  29. package/dist/types/amino/bundle.mjs +5 -0
  30. package/dist/types/atlas/bundle.d.ts +905 -0
  31. package/dist/types/atlas/bundle.js +98 -0
  32. package/dist/types/atlas/bundle.mjs +62 -0
  33. package/dist/types/atlas/filetree/v1/genesis.d.ts +45 -0
  34. package/dist/types/atlas/filetree/v1/genesis.js +107 -0
  35. package/dist/types/atlas/filetree/v1/genesis.mjs +71 -0
  36. package/dist/types/atlas/filetree/v1/params.d.ts +40 -0
  37. package/dist/types/atlas/filetree/v1/params.js +94 -0
  38. package/dist/types/atlas/filetree/v1/params.mjs +58 -0
  39. package/dist/types/atlas/filetree/v1/query.d.ts +330 -0
  40. package/dist/types/atlas/filetree/v1/query.js +567 -0
  41. package/dist/types/atlas/filetree/v1/query.mjs +531 -0
  42. package/dist/types/atlas/filetree/v1/query.rpc.Query.d.ts +28 -0
  43. package/dist/types/atlas/filetree/v1/query.rpc.Query.js +89 -0
  44. package/dist/types/atlas/filetree/v1/query.rpc.Query.mjs +51 -0
  45. package/dist/types/atlas/filetree/v1/query.rpc.func.d.ts +29 -0
  46. package/dist/types/atlas/filetree/v1/query.rpc.func.js +58 -0
  47. package/dist/types/atlas/filetree/v1/query.rpc.func.mjs +55 -0
  48. package/dist/types/atlas/filetree/v1/tree.d.ts +44 -0
  49. package/dist/types/atlas/filetree/v1/tree.js +124 -0
  50. package/dist/types/atlas/filetree/v1/tree.mjs +88 -0
  51. package/dist/types/atlas/filetree/v1/tx.d.ts +260 -0
  52. package/dist/types/atlas/filetree/v1/tx.js +449 -0
  53. package/dist/types/atlas/filetree/v1/tx.mjs +413 -0
  54. package/dist/types/atlas/filetree/v1/tx.rpc.func.d.ts +23 -0
  55. package/dist/types/atlas/filetree/v1/tx.rpc.func.js +34 -0
  56. package/dist/types/atlas/filetree/v1/tx.rpc.func.mjs +31 -0
  57. package/dist/types/atlas/filetree/v1/tx.rpc.msg.d.ts +22 -0
  58. package/dist/types/atlas/filetree/v1/tx.rpc.msg.js +67 -0
  59. package/dist/types/atlas/filetree/v1/tx.rpc.msg.mjs +29 -0
  60. package/dist/types/atlas/rpc.query.d.ts +49 -0
  61. package/dist/types/atlas/rpc.query.js +59 -0
  62. package/dist/types/atlas/rpc.query.mjs +22 -0
  63. package/dist/types/atlas/rpc.tx.d.ts +18 -0
  64. package/dist/types/atlas/rpc.tx.js +52 -0
  65. package/dist/types/atlas/rpc.tx.mjs +15 -0
  66. package/dist/types/atlas/storage/v1/file.d.ts +59 -0
  67. package/dist/types/atlas/storage/v1/file.js +173 -0
  68. package/dist/types/atlas/storage/v1/file.mjs +137 -0
  69. package/dist/types/atlas/storage/v1/genesis.d.ts +45 -0
  70. package/dist/types/atlas/storage/v1/genesis.js +107 -0
  71. package/dist/types/atlas/storage/v1/genesis.mjs +71 -0
  72. package/dist/types/atlas/storage/v1/params.d.ts +48 -0
  73. package/dist/types/atlas/storage/v1/params.js +127 -0
  74. package/dist/types/atlas/storage/v1/params.mjs +91 -0
  75. package/dist/types/atlas/storage/v1/proof.d.ts +145 -0
  76. package/dist/types/atlas/storage/v1/proof.js +318 -0
  77. package/dist/types/atlas/storage/v1/proof.mjs +282 -0
  78. package/dist/types/atlas/storage/v1/provider.d.ts +51 -0
  79. package/dist/types/atlas/storage/v1/provider.js +141 -0
  80. package/dist/types/atlas/storage/v1/provider.mjs +105 -0
  81. package/dist/types/atlas/storage/v1/query.d.ts +914 -0
  82. package/dist/types/atlas/storage/v1/query.js +1570 -0
  83. package/dist/types/atlas/storage/v1/query.mjs +1534 -0
  84. package/dist/types/atlas/storage/v1/query.rpc.Query.d.ts +56 -0
  85. package/dist/types/atlas/storage/v1/query.rpc.Query.js +154 -0
  86. package/dist/types/atlas/storage/v1/query.rpc.Query.mjs +116 -0
  87. package/dist/types/atlas/storage/v1/query.rpc.func.d.ts +78 -0
  88. package/dist/types/atlas/storage/v1/query.rpc.func.js +149 -0
  89. package/dist/types/atlas/storage/v1/query.rpc.func.mjs +146 -0
  90. package/dist/types/atlas/storage/v1/subscription.d.ts +55 -0
  91. package/dist/types/atlas/storage/v1/subscription.js +159 -0
  92. package/dist/types/atlas/storage/v1/subscription.mjs +123 -0
  93. package/dist/types/atlas/storage/v1/tx.d.ts +694 -0
  94. package/dist/types/atlas/storage/v1/tx.js +1203 -0
  95. package/dist/types/atlas/storage/v1/tx.mjs +1167 -0
  96. package/dist/types/atlas/storage/v1/tx.rpc.func.d.ts +56 -0
  97. package/dist/types/atlas/storage/v1/tx.rpc.func.js +77 -0
  98. package/dist/types/atlas/storage/v1/tx.rpc.func.mjs +74 -0
  99. package/dist/types/atlas/storage/v1/tx.rpc.msg.d.ts +35 -0
  100. package/dist/types/atlas/storage/v1/tx.rpc.msg.js +97 -0
  101. package/dist/types/atlas/storage/v1/tx.rpc.msg.mjs +59 -0
  102. package/dist/types/cosmos/bank/v1beta1/authz.d.ts +62 -0
  103. package/dist/types/cosmos/bank/v1beta1/authz.js +123 -0
  104. package/dist/types/cosmos/bank/v1beta1/authz.mjs +87 -0
  105. package/dist/types/cosmos/bank/v1beta1/bank.d.ts +391 -0
  106. package/dist/types/cosmos/bank/v1beta1/bank.js +626 -0
  107. package/dist/types/cosmos/bank/v1beta1/bank.mjs +590 -0
  108. package/dist/types/cosmos/bank/v1beta1/genesis.d.ts +122 -0
  109. package/dist/types/cosmos/bank/v1beta1/genesis.js +224 -0
  110. package/dist/types/cosmos/bank/v1beta1/genesis.mjs +188 -0
  111. package/dist/types/cosmos/bank/v1beta1/query.d.ts +1377 -0
  112. package/dist/types/cosmos/bank/v1beta1/query.js +2038 -0
  113. package/dist/types/cosmos/bank/v1beta1/query.mjs +2002 -0
  114. package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.d.ts +119 -0
  115. package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.js +174 -0
  116. package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.mjs +136 -0
  117. package/dist/types/cosmos/bank/v1beta1/query.rpc.func.d.ts +129 -0
  118. package/dist/types/cosmos/bank/v1beta1/query.rpc.func.js +212 -0
  119. package/dist/types/cosmos/bank/v1beta1/query.rpc.func.mjs +209 -0
  120. package/dist/types/cosmos/bank/v1beta1/tx.d.ts +398 -0
  121. package/dist/types/cosmos/bank/v1beta1/tx.js +599 -0
  122. package/dist/types/cosmos/bank/v1beta1/tx.mjs +563 -0
  123. package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.d.ts +37 -0
  124. package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.js +50 -0
  125. package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.mjs +47 -0
  126. package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +34 -0
  127. package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.js +73 -0
  128. package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.mjs +35 -0
  129. package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +163 -0
  130. package/dist/types/cosmos/base/query/v1beta1/pagination.js +219 -0
  131. package/dist/types/cosmos/base/query/v1beta1/pagination.mjs +183 -0
  132. package/dist/types/cosmos/base/v1beta1/coin.d.ts +193 -0
  133. package/dist/types/cosmos/base/v1beta1/coin.js +320 -0
  134. package/dist/types/cosmos/base/v1beta1/coin.mjs +284 -0
  135. package/dist/types/cosmos/bundle.d.ts +761 -0
  136. package/dist/types/cosmos/bundle.js +97 -0
  137. package/dist/types/cosmos/bundle.mjs +61 -0
  138. package/dist/types/cosmos/msg/v1/msg.d.ts +1 -0
  139. package/dist/types/cosmos/msg/v1/msg.js +2 -0
  140. package/dist/types/cosmos/msg/v1/msg.mjs +1 -0
  141. package/dist/types/cosmos/query/v1/query.d.ts +1 -0
  142. package/dist/types/cosmos/query/v1/query.js +2 -0
  143. package/dist/types/cosmos/query/v1/query.mjs +1 -0
  144. package/dist/types/cosmos/rpc.query.d.ts +24 -0
  145. package/dist/types/cosmos/rpc.query.js +51 -0
  146. package/dist/types/cosmos/rpc.query.mjs +14 -0
  147. package/dist/types/cosmos/rpc.tx.d.ts +10 -0
  148. package/dist/types/cosmos/rpc.tx.js +44 -0
  149. package/dist/types/cosmos/rpc.tx.mjs +7 -0
  150. package/dist/types/cosmos_proto/bundle.d.ts +31 -0
  151. package/dist/types/cosmos_proto/bundle.js +41 -0
  152. package/dist/types/cosmos_proto/bundle.mjs +5 -0
  153. package/dist/types/cosmos_proto/cosmos.d.ts +144 -0
  154. package/dist/types/cosmos_proto/cosmos.js +244 -0
  155. package/dist/types/cosmos_proto/cosmos.mjs +206 -0
  156. package/dist/types/extern.d.ts +11 -0
  157. package/dist/types/extern.js +47 -0
  158. package/dist/types/extern.mjs +41 -0
  159. package/dist/types/gogoproto/bundle.d.ts +1 -0
  160. package/dist/types/gogoproto/bundle.js +41 -0
  161. package/dist/types/gogoproto/bundle.mjs +5 -0
  162. package/dist/types/gogoproto/gogo.d.ts +1 -0
  163. package/dist/types/gogoproto/gogo.js +2 -0
  164. package/dist/types/gogoproto/gogo.mjs +1 -0
  165. package/dist/types/google/api/annotations.d.ts +1 -0
  166. package/dist/types/google/api/annotations.js +2 -0
  167. package/dist/types/google/api/annotations.mjs +1 -0
  168. package/dist/types/google/api/http.d.ts +1006 -0
  169. package/dist/types/google/api/http.js +589 -0
  170. package/dist/types/google/api/http.mjs +553 -0
  171. package/dist/types/google/bundle.d.ts +545 -0
  172. package/dist/types/google/bundle.js +52 -0
  173. package/dist/types/google/bundle.mjs +16 -0
  174. package/dist/types/google/protobuf/descriptor.d.ts +2755 -0
  175. package/dist/types/google/protobuf/descriptor.js +4612 -0
  176. package/dist/types/google/protobuf/descriptor.mjs +4535 -0
  177. package/dist/types/google/protobuf/timestamp.d.ts +319 -0
  178. package/dist/types/google/protobuf/timestamp.js +197 -0
  179. package/dist/types/google/protobuf/timestamp.mjs +161 -0
  180. package/dist/types/helper-func-types.d.ts +40 -0
  181. package/dist/types/helper-func-types.js +57 -0
  182. package/dist/types/helper-func-types.mjs +53 -0
  183. package/dist/types/helpers.d.ts +56 -0
  184. package/dist/types/helpers.js +161 -0
  185. package/dist/types/helpers.mjs +110 -0
  186. package/dist/types/index.d.ts +15 -0
  187. package/dist/types/index.js +32 -0
  188. package/dist/types/index.mjs +16 -0
  189. package/dist/types/registry.d.ts +35 -0
  190. package/dist/types/registry.js +200 -0
  191. package/dist/types/registry.mjs +163 -0
  192. package/dist/types/types.d.ts +74 -0
  193. package/dist/types/types.js +8 -0
  194. package/dist/types/types.mjs +7 -0
  195. package/package.json +97 -0
@@ -0,0 +1,56 @@
1
+ import { MsgUpdateParams, MsgRegisterProvider, MsgPostFile, MsgBuyStorage, MsgProveFile, MsgDeleteFile, MsgExpandStorage, MsgUpdateProvider } from "./tx";
2
+ /**
3
+ * UpdateParams defines a (governance) operation for updating the module
4
+ * parameters. The authority defaults to the x/gov module account.
5
+ * @name updateParams
6
+ * @package atlas.storage.v1
7
+ * @see proto service: atlas.storage.v1.UpdateParams
8
+ */
9
+ export declare const updateParams: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
10
+ /**
11
+ * @name registerProvider
12
+ * @package atlas.storage.v1
13
+ * @see proto service: atlas.storage.v1.RegisterProvider
14
+ */
15
+ export declare const registerProvider: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgRegisterProvider | MsgRegisterProvider[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
16
+ /**
17
+ * @name postFile
18
+ * @package atlas.storage.v1
19
+ * @see proto service: atlas.storage.v1.PostFile
20
+ */
21
+ export declare const postFile: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgPostFile | MsgPostFile[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
22
+ /**
23
+ * BuyStorage defines the BuyStorage RPC.
24
+ * @name buyStorage
25
+ * @package atlas.storage.v1
26
+ * @see proto service: atlas.storage.v1.BuyStorage
27
+ */
28
+ export declare const buyStorage: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgBuyStorage | MsgBuyStorage[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
29
+ /**
30
+ * ProveFile defines the ProveFile RPC.
31
+ * @name proveFile
32
+ * @package atlas.storage.v1
33
+ * @see proto service: atlas.storage.v1.ProveFile
34
+ */
35
+ export declare const proveFile: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgProveFile | MsgProveFile[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
36
+ /**
37
+ * DeleteFile defines the DeleteFile RPC.
38
+ * @name deleteFile
39
+ * @package atlas.storage.v1
40
+ * @see proto service: atlas.storage.v1.DeleteFile
41
+ */
42
+ export declare const deleteFile: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgDeleteFile | MsgDeleteFile[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
43
+ /**
44
+ * ExpandStorage defines the ExpandStorage RPC.
45
+ * @name expandStorage
46
+ * @package atlas.storage.v1
47
+ * @see proto service: atlas.storage.v1.ExpandStorage
48
+ */
49
+ export declare const expandStorage: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgExpandStorage | MsgExpandStorage[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
50
+ /**
51
+ * UpdateProvider defines the UpdateProvider RPC.
52
+ * @name updateProvider
53
+ * @package atlas.storage.v1
54
+ * @see proto service: atlas.storage.v1.UpdateProvider
55
+ */
56
+ export declare const updateProvider: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateProvider | MsgUpdateProvider[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateProvider = exports.expandStorage = exports.deleteFile = exports.proveFile = exports.buyStorage = exports.postFile = exports.registerProvider = exports.updateParams = void 0;
4
+ //@ts-nocheck
5
+ const helper_func_types_1 = require("../../../helper-func-types");
6
+ const tx_1 = require("./tx");
7
+ /**
8
+ * UpdateParams defines a (governance) operation for updating the module
9
+ * parameters. The authority defaults to the x/gov module account.
10
+ * @name updateParams
11
+ * @package atlas.storage.v1
12
+ * @see proto service: atlas.storage.v1.UpdateParams
13
+ */
14
+ exports.updateParams = (0, helper_func_types_1.buildTx)({
15
+ msg: tx_1.MsgUpdateParams
16
+ });
17
+ /**
18
+ * @name registerProvider
19
+ * @package atlas.storage.v1
20
+ * @see proto service: atlas.storage.v1.RegisterProvider
21
+ */
22
+ exports.registerProvider = (0, helper_func_types_1.buildTx)({
23
+ msg: tx_1.MsgRegisterProvider
24
+ });
25
+ /**
26
+ * @name postFile
27
+ * @package atlas.storage.v1
28
+ * @see proto service: atlas.storage.v1.PostFile
29
+ */
30
+ exports.postFile = (0, helper_func_types_1.buildTx)({
31
+ msg: tx_1.MsgPostFile
32
+ });
33
+ /**
34
+ * BuyStorage defines the BuyStorage RPC.
35
+ * @name buyStorage
36
+ * @package atlas.storage.v1
37
+ * @see proto service: atlas.storage.v1.BuyStorage
38
+ */
39
+ exports.buyStorage = (0, helper_func_types_1.buildTx)({
40
+ msg: tx_1.MsgBuyStorage
41
+ });
42
+ /**
43
+ * ProveFile defines the ProveFile RPC.
44
+ * @name proveFile
45
+ * @package atlas.storage.v1
46
+ * @see proto service: atlas.storage.v1.ProveFile
47
+ */
48
+ exports.proveFile = (0, helper_func_types_1.buildTx)({
49
+ msg: tx_1.MsgProveFile
50
+ });
51
+ /**
52
+ * DeleteFile defines the DeleteFile RPC.
53
+ * @name deleteFile
54
+ * @package atlas.storage.v1
55
+ * @see proto service: atlas.storage.v1.DeleteFile
56
+ */
57
+ exports.deleteFile = (0, helper_func_types_1.buildTx)({
58
+ msg: tx_1.MsgDeleteFile
59
+ });
60
+ /**
61
+ * ExpandStorage defines the ExpandStorage RPC.
62
+ * @name expandStorage
63
+ * @package atlas.storage.v1
64
+ * @see proto service: atlas.storage.v1.ExpandStorage
65
+ */
66
+ exports.expandStorage = (0, helper_func_types_1.buildTx)({
67
+ msg: tx_1.MsgExpandStorage
68
+ });
69
+ /**
70
+ * UpdateProvider defines the UpdateProvider RPC.
71
+ * @name updateProvider
72
+ * @package atlas.storage.v1
73
+ * @see proto service: atlas.storage.v1.UpdateProvider
74
+ */
75
+ exports.updateProvider = (0, helper_func_types_1.buildTx)({
76
+ msg: tx_1.MsgUpdateProvider
77
+ });
@@ -0,0 +1,74 @@
1
+ //@ts-nocheck
2
+ import { buildTx } from "../../../helper-func-types";
3
+ import { MsgUpdateParams, MsgRegisterProvider, MsgPostFile, MsgBuyStorage, MsgProveFile, MsgDeleteFile, MsgExpandStorage, MsgUpdateProvider } from "./tx";
4
+ /**
5
+ * UpdateParams defines a (governance) operation for updating the module
6
+ * parameters. The authority defaults to the x/gov module account.
7
+ * @name updateParams
8
+ * @package atlas.storage.v1
9
+ * @see proto service: atlas.storage.v1.UpdateParams
10
+ */
11
+ export const updateParams = buildTx({
12
+ msg: MsgUpdateParams
13
+ });
14
+ /**
15
+ * @name registerProvider
16
+ * @package atlas.storage.v1
17
+ * @see proto service: atlas.storage.v1.RegisterProvider
18
+ */
19
+ export const registerProvider = buildTx({
20
+ msg: MsgRegisterProvider
21
+ });
22
+ /**
23
+ * @name postFile
24
+ * @package atlas.storage.v1
25
+ * @see proto service: atlas.storage.v1.PostFile
26
+ */
27
+ export const postFile = buildTx({
28
+ msg: MsgPostFile
29
+ });
30
+ /**
31
+ * BuyStorage defines the BuyStorage RPC.
32
+ * @name buyStorage
33
+ * @package atlas.storage.v1
34
+ * @see proto service: atlas.storage.v1.BuyStorage
35
+ */
36
+ export const buyStorage = buildTx({
37
+ msg: MsgBuyStorage
38
+ });
39
+ /**
40
+ * ProveFile defines the ProveFile RPC.
41
+ * @name proveFile
42
+ * @package atlas.storage.v1
43
+ * @see proto service: atlas.storage.v1.ProveFile
44
+ */
45
+ export const proveFile = buildTx({
46
+ msg: MsgProveFile
47
+ });
48
+ /**
49
+ * DeleteFile defines the DeleteFile RPC.
50
+ * @name deleteFile
51
+ * @package atlas.storage.v1
52
+ * @see proto service: atlas.storage.v1.DeleteFile
53
+ */
54
+ export const deleteFile = buildTx({
55
+ msg: MsgDeleteFile
56
+ });
57
+ /**
58
+ * ExpandStorage defines the ExpandStorage RPC.
59
+ * @name expandStorage
60
+ * @package atlas.storage.v1
61
+ * @see proto service: atlas.storage.v1.ExpandStorage
62
+ */
63
+ export const expandStorage = buildTx({
64
+ msg: MsgExpandStorage
65
+ });
66
+ /**
67
+ * UpdateProvider defines the UpdateProvider RPC.
68
+ * @name updateProvider
69
+ * @package atlas.storage.v1
70
+ * @see proto service: atlas.storage.v1.UpdateProvider
71
+ */
72
+ export const updateProvider = buildTx({
73
+ msg: MsgUpdateProvider
74
+ });
@@ -0,0 +1,35 @@
1
+ import { TxRpc } from "../../../types";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgRegisterProvider, MsgRegisterProviderResponse, MsgPostFile, MsgPostFileResponse, MsgBuyStorage, MsgBuyStorageResponse, MsgProveFile, MsgProveFileResponse, MsgDeleteFile, MsgDeleteFileResponse, MsgExpandStorage, MsgExpandStorageResponse, MsgUpdateProvider, MsgUpdateProviderResponse } from "./tx";
3
+ /** Msg defines the Msg service. */
4
+ export interface Msg {
5
+ /**
6
+ * UpdateParams defines a (governance) operation for updating the module
7
+ * parameters. The authority defaults to the x/gov module account.
8
+ */
9
+ updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
10
+ registerProvider(request: MsgRegisterProvider): Promise<MsgRegisterProviderResponse>;
11
+ postFile(request: MsgPostFile): Promise<MsgPostFileResponse>;
12
+ /** BuyStorage defines the BuyStorage RPC. */
13
+ buyStorage(request: MsgBuyStorage): Promise<MsgBuyStorageResponse>;
14
+ /** ProveFile defines the ProveFile RPC. */
15
+ proveFile(request: MsgProveFile): Promise<MsgProveFileResponse>;
16
+ /** DeleteFile defines the DeleteFile RPC. */
17
+ deleteFile(request: MsgDeleteFile): Promise<MsgDeleteFileResponse>;
18
+ /** ExpandStorage defines the ExpandStorage RPC. */
19
+ expandStorage(request: MsgExpandStorage): Promise<MsgExpandStorageResponse>;
20
+ /** UpdateProvider defines the UpdateProvider RPC. */
21
+ updateProvider(request: MsgUpdateProvider): Promise<MsgUpdateProviderResponse>;
22
+ }
23
+ export declare class MsgClientImpl implements Msg {
24
+ private readonly rpc;
25
+ constructor(rpc: TxRpc);
26
+ updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
27
+ registerProvider(request: MsgRegisterProvider): Promise<MsgRegisterProviderResponse>;
28
+ postFile(request: MsgPostFile): Promise<MsgPostFileResponse>;
29
+ buyStorage(request: MsgBuyStorage): Promise<MsgBuyStorageResponse>;
30
+ proveFile(request: MsgProveFile): Promise<MsgProveFileResponse>;
31
+ deleteFile(request: MsgDeleteFile): Promise<MsgDeleteFileResponse>;
32
+ expandStorage(request: MsgExpandStorage): Promise<MsgExpandStorageResponse>;
33
+ updateProvider(request: MsgUpdateProvider): Promise<MsgUpdateProviderResponse>;
34
+ }
35
+ export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.createClientImpl = exports.MsgClientImpl = void 0;
37
+ const _m0 = __importStar(require("protobufjs/minimal"));
38
+ const tx_1 = require("./tx");
39
+ class MsgClientImpl {
40
+ rpc;
41
+ constructor(rpc) {
42
+ this.rpc = rpc;
43
+ this.updateParams = this.updateParams.bind(this);
44
+ this.registerProvider = this.registerProvider.bind(this);
45
+ this.postFile = this.postFile.bind(this);
46
+ this.buyStorage = this.buyStorage.bind(this);
47
+ this.proveFile = this.proveFile.bind(this);
48
+ this.deleteFile = this.deleteFile.bind(this);
49
+ this.expandStorage = this.expandStorage.bind(this);
50
+ this.updateProvider = this.updateProvider.bind(this);
51
+ }
52
+ updateParams(request) {
53
+ const data = tx_1.MsgUpdateParams.encode(request).finish();
54
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "UpdateParams", data);
55
+ return promise.then(data => tx_1.MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
56
+ }
57
+ registerProvider(request) {
58
+ const data = tx_1.MsgRegisterProvider.encode(request).finish();
59
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "RegisterProvider", data);
60
+ return promise.then(data => tx_1.MsgRegisterProviderResponse.decode(new _m0.Reader(data)));
61
+ }
62
+ postFile(request) {
63
+ const data = tx_1.MsgPostFile.encode(request).finish();
64
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "PostFile", data);
65
+ return promise.then(data => tx_1.MsgPostFileResponse.decode(new _m0.Reader(data)));
66
+ }
67
+ buyStorage(request) {
68
+ const data = tx_1.MsgBuyStorage.encode(request).finish();
69
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "BuyStorage", data);
70
+ return promise.then(data => tx_1.MsgBuyStorageResponse.decode(new _m0.Reader(data)));
71
+ }
72
+ proveFile(request) {
73
+ const data = tx_1.MsgProveFile.encode(request).finish();
74
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "ProveFile", data);
75
+ return promise.then(data => tx_1.MsgProveFileResponse.decode(new _m0.Reader(data)));
76
+ }
77
+ deleteFile(request) {
78
+ const data = tx_1.MsgDeleteFile.encode(request).finish();
79
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "DeleteFile", data);
80
+ return promise.then(data => tx_1.MsgDeleteFileResponse.decode(new _m0.Reader(data)));
81
+ }
82
+ expandStorage(request) {
83
+ const data = tx_1.MsgExpandStorage.encode(request).finish();
84
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "ExpandStorage", data);
85
+ return promise.then(data => tx_1.MsgExpandStorageResponse.decode(new _m0.Reader(data)));
86
+ }
87
+ updateProvider(request) {
88
+ const data = tx_1.MsgUpdateProvider.encode(request).finish();
89
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "UpdateProvider", data);
90
+ return promise.then(data => tx_1.MsgUpdateProviderResponse.decode(new _m0.Reader(data)));
91
+ }
92
+ }
93
+ exports.MsgClientImpl = MsgClientImpl;
94
+ const createClientImpl = (rpc) => {
95
+ return new MsgClientImpl(rpc);
96
+ };
97
+ exports.createClientImpl = createClientImpl;
@@ -0,0 +1,59 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { MsgUpdateParams, MsgUpdateParamsResponse, MsgRegisterProvider, MsgRegisterProviderResponse, MsgPostFile, MsgPostFileResponse, MsgBuyStorage, MsgBuyStorageResponse, MsgProveFile, MsgProveFileResponse, MsgDeleteFile, MsgDeleteFileResponse, MsgExpandStorage, MsgExpandStorageResponse, MsgUpdateProvider, MsgUpdateProviderResponse } from "./tx";
3
+ export class MsgClientImpl {
4
+ rpc;
5
+ constructor(rpc) {
6
+ this.rpc = rpc;
7
+ this.updateParams = this.updateParams.bind(this);
8
+ this.registerProvider = this.registerProvider.bind(this);
9
+ this.postFile = this.postFile.bind(this);
10
+ this.buyStorage = this.buyStorage.bind(this);
11
+ this.proveFile = this.proveFile.bind(this);
12
+ this.deleteFile = this.deleteFile.bind(this);
13
+ this.expandStorage = this.expandStorage.bind(this);
14
+ this.updateProvider = this.updateProvider.bind(this);
15
+ }
16
+ updateParams(request) {
17
+ const data = MsgUpdateParams.encode(request).finish();
18
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "UpdateParams", data);
19
+ return promise.then(data => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
20
+ }
21
+ registerProvider(request) {
22
+ const data = MsgRegisterProvider.encode(request).finish();
23
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "RegisterProvider", data);
24
+ return promise.then(data => MsgRegisterProviderResponse.decode(new _m0.Reader(data)));
25
+ }
26
+ postFile(request) {
27
+ const data = MsgPostFile.encode(request).finish();
28
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "PostFile", data);
29
+ return promise.then(data => MsgPostFileResponse.decode(new _m0.Reader(data)));
30
+ }
31
+ buyStorage(request) {
32
+ const data = MsgBuyStorage.encode(request).finish();
33
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "BuyStorage", data);
34
+ return promise.then(data => MsgBuyStorageResponse.decode(new _m0.Reader(data)));
35
+ }
36
+ proveFile(request) {
37
+ const data = MsgProveFile.encode(request).finish();
38
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "ProveFile", data);
39
+ return promise.then(data => MsgProveFileResponse.decode(new _m0.Reader(data)));
40
+ }
41
+ deleteFile(request) {
42
+ const data = MsgDeleteFile.encode(request).finish();
43
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "DeleteFile", data);
44
+ return promise.then(data => MsgDeleteFileResponse.decode(new _m0.Reader(data)));
45
+ }
46
+ expandStorage(request) {
47
+ const data = MsgExpandStorage.encode(request).finish();
48
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "ExpandStorage", data);
49
+ return promise.then(data => MsgExpandStorageResponse.decode(new _m0.Reader(data)));
50
+ }
51
+ updateProvider(request) {
52
+ const data = MsgUpdateProvider.encode(request).finish();
53
+ const promise = this.rpc.request("atlas.storage.v1.Msg", "UpdateProvider", data);
54
+ return promise.then(data => MsgUpdateProviderResponse.decode(new _m0.Reader(data)));
55
+ }
56
+ }
57
+ export const createClientImpl = (rpc) => {
58
+ return new MsgClientImpl(rpc);
59
+ };
@@ -0,0 +1,62 @@
1
+ import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
2
+ import * as _m0 from "protobufjs/minimal";
3
+ /**
4
+ * SendAuthorization allows the grantee to spend up to spend_limit coins from
5
+ * the granter's account.
6
+ *
7
+ * Since: cosmos-sdk 0.43
8
+ * @name SendAuthorization
9
+ * @package cosmos.bank.v1beta1
10
+ * @see proto type: cosmos.bank.v1beta1.SendAuthorization
11
+ */
12
+ export interface SendAuthorization {
13
+ $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization";
14
+ spendLimit: Coin[];
15
+ /**
16
+ * allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
17
+ * granter. If omitted, any recipient is allowed.
18
+ *
19
+ * Since: cosmos-sdk 0.47
20
+ */
21
+ allowList: string[];
22
+ }
23
+ export interface SendAuthorizationProtoMsg {
24
+ typeUrl: "/cosmos.bank.v1beta1.SendAuthorization";
25
+ value: Uint8Array;
26
+ }
27
+ /**
28
+ * SendAuthorization allows the grantee to spend up to spend_limit coins from
29
+ * the granter's account.
30
+ *
31
+ * Since: cosmos-sdk 0.43
32
+ * @name SendAuthorizationSDKType
33
+ * @package cosmos.bank.v1beta1
34
+ * @see proto type: cosmos.bank.v1beta1.SendAuthorization
35
+ */
36
+ export interface SendAuthorizationSDKType {
37
+ $typeUrl?: "/cosmos.bank.v1beta1.SendAuthorization";
38
+ spend_limit: CoinSDKType[];
39
+ allow_list: string[];
40
+ }
41
+ /**
42
+ * SendAuthorization allows the grantee to spend up to spend_limit coins from
43
+ * the granter's account.
44
+ *
45
+ * Since: cosmos-sdk 0.43
46
+ * @name SendAuthorization
47
+ * @package cosmos.bank.v1beta1
48
+ * @see proto type: cosmos.bank.v1beta1.SendAuthorization
49
+ */
50
+ export declare const SendAuthorization: {
51
+ typeUrl: string;
52
+ aminoType: string;
53
+ is(o: any): o is SendAuthorization;
54
+ isSDK(o: any): o is SendAuthorizationSDKType;
55
+ encode(message: SendAuthorization, writer?: _m0.Writer): _m0.Writer;
56
+ decode(input: _m0.Reader | Uint8Array, length?: number): SendAuthorization;
57
+ fromPartial(object: Partial<SendAuthorization>): SendAuthorization;
58
+ fromProtoMsg(message: SendAuthorizationProtoMsg): SendAuthorization;
59
+ toProto(message: SendAuthorization): Uint8Array;
60
+ toProtoMsg(message: SendAuthorization): SendAuthorizationProtoMsg;
61
+ registerTypeUrl(): void;
62
+ };
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.SendAuthorization = void 0;
37
+ //@ts-nocheck
38
+ const coin_1 = require("../../base/v1beta1/coin");
39
+ const _m0 = __importStar(require("protobufjs/minimal"));
40
+ const registry_1 = require("../../../registry");
41
+ function createBaseSendAuthorization() {
42
+ return {
43
+ $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
44
+ spendLimit: [],
45
+ allowList: []
46
+ };
47
+ }
48
+ /**
49
+ * SendAuthorization allows the grantee to spend up to spend_limit coins from
50
+ * the granter's account.
51
+ *
52
+ * Since: cosmos-sdk 0.43
53
+ * @name SendAuthorization
54
+ * @package cosmos.bank.v1beta1
55
+ * @see proto type: cosmos.bank.v1beta1.SendAuthorization
56
+ */
57
+ exports.SendAuthorization = {
58
+ typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
59
+ aminoType: "cosmos-sdk/SendAuthorization",
60
+ is(o) {
61
+ return o && (o.$typeUrl === exports.SendAuthorization.typeUrl || Array.isArray(o.spendLimit) && (!o.spendLimit.length || coin_1.Coin.is(o.spendLimit[0])) && Array.isArray(o.allowList) && (!o.allowList.length || typeof o.allowList[0] === "string"));
62
+ },
63
+ isSDK(o) {
64
+ return o && (o.$typeUrl === exports.SendAuthorization.typeUrl || Array.isArray(o.spend_limit) && (!o.spend_limit.length || coin_1.Coin.isSDK(o.spend_limit[0])) && Array.isArray(o.allow_list) && (!o.allow_list.length || typeof o.allow_list[0] === "string"));
65
+ },
66
+ encode(message, writer = _m0.Writer.create()) {
67
+ for (const v of message.spendLimit) {
68
+ coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim();
69
+ }
70
+ for (const v of message.allowList) {
71
+ writer.uint32(18).string(v);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBaseSendAuthorization();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ message.spendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
84
+ break;
85
+ case 2:
86
+ message.allowList.push(reader.string());
87
+ break;
88
+ default:
89
+ reader.skipType(tag & 7);
90
+ break;
91
+ }
92
+ }
93
+ return message;
94
+ },
95
+ fromPartial(object) {
96
+ const message = createBaseSendAuthorization();
97
+ message.spendLimit = object.spendLimit?.map(e => coin_1.Coin.fromPartial(e)) || [];
98
+ message.allowList = object.allowList?.map(e => e) || [];
99
+ return message;
100
+ },
101
+ fromProtoMsg(message) {
102
+ return exports.SendAuthorization.decode(message.value);
103
+ },
104
+ toProto(message) {
105
+ return exports.SendAuthorization.encode(message).finish();
106
+ },
107
+ toProtoMsg(message) {
108
+ return {
109
+ typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
110
+ value: exports.SendAuthorization.encode(message).finish()
111
+ };
112
+ },
113
+ registerTypeUrl() {
114
+ if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.SendAuthorization.typeUrl)) {
115
+ return;
116
+ }
117
+ registry_1.GlobalDecoderRegistry.register(exports.SendAuthorization.typeUrl, exports.SendAuthorization);
118
+ registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.SendAuthorization.aminoType, exports.SendAuthorization.typeUrl);
119
+ coin_1.Coin.registerTypeUrl();
120
+ }
121
+ };
122
+ registry_1.GlobalDecoderRegistry.register(exports.SendAuthorization.typeUrl, exports.SendAuthorization);
123
+ registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.SendAuthorization.aminoType, exports.SendAuthorization.typeUrl);
@@ -0,0 +1,87 @@
1
+ //@ts-nocheck
2
+ import { Coin } from "../../base/v1beta1/coin";
3
+ import * as _m0 from "protobufjs/minimal";
4
+ import { GlobalDecoderRegistry } from "../../../registry";
5
+ function createBaseSendAuthorization() {
6
+ return {
7
+ $typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
8
+ spendLimit: [],
9
+ allowList: []
10
+ };
11
+ }
12
+ /**
13
+ * SendAuthorization allows the grantee to spend up to spend_limit coins from
14
+ * the granter's account.
15
+ *
16
+ * Since: cosmos-sdk 0.43
17
+ * @name SendAuthorization
18
+ * @package cosmos.bank.v1beta1
19
+ * @see proto type: cosmos.bank.v1beta1.SendAuthorization
20
+ */
21
+ export const SendAuthorization = {
22
+ typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
23
+ aminoType: "cosmos-sdk/SendAuthorization",
24
+ is(o) {
25
+ return o && (o.$typeUrl === SendAuthorization.typeUrl || Array.isArray(o.spendLimit) && (!o.spendLimit.length || Coin.is(o.spendLimit[0])) && Array.isArray(o.allowList) && (!o.allowList.length || typeof o.allowList[0] === "string"));
26
+ },
27
+ isSDK(o) {
28
+ return o && (o.$typeUrl === SendAuthorization.typeUrl || Array.isArray(o.spend_limit) && (!o.spend_limit.length || Coin.isSDK(o.spend_limit[0])) && Array.isArray(o.allow_list) && (!o.allow_list.length || typeof o.allow_list[0] === "string"));
29
+ },
30
+ encode(message, writer = _m0.Writer.create()) {
31
+ for (const v of message.spendLimit) {
32
+ Coin.encode(v, writer.uint32(10).fork()).ldelim();
33
+ }
34
+ for (const v of message.allowList) {
35
+ writer.uint32(18).string(v);
36
+ }
37
+ return writer;
38
+ },
39
+ decode(input, length) {
40
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
41
+ let end = length === undefined ? reader.len : reader.pos + length;
42
+ const message = createBaseSendAuthorization();
43
+ while (reader.pos < end) {
44
+ const tag = reader.uint32();
45
+ switch (tag >>> 3) {
46
+ case 1:
47
+ message.spendLimit.push(Coin.decode(reader, reader.uint32()));
48
+ break;
49
+ case 2:
50
+ message.allowList.push(reader.string());
51
+ break;
52
+ default:
53
+ reader.skipType(tag & 7);
54
+ break;
55
+ }
56
+ }
57
+ return message;
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseSendAuthorization();
61
+ message.spendLimit = object.spendLimit?.map(e => Coin.fromPartial(e)) || [];
62
+ message.allowList = object.allowList?.map(e => e) || [];
63
+ return message;
64
+ },
65
+ fromProtoMsg(message) {
66
+ return SendAuthorization.decode(message.value);
67
+ },
68
+ toProto(message) {
69
+ return SendAuthorization.encode(message).finish();
70
+ },
71
+ toProtoMsg(message) {
72
+ return {
73
+ typeUrl: "/cosmos.bank.v1beta1.SendAuthorization",
74
+ value: SendAuthorization.encode(message).finish()
75
+ };
76
+ },
77
+ registerTypeUrl() {
78
+ if (!GlobalDecoderRegistry.registerExistingTypeUrl(SendAuthorization.typeUrl)) {
79
+ return;
80
+ }
81
+ GlobalDecoderRegistry.register(SendAuthorization.typeUrl, SendAuthorization);
82
+ GlobalDecoderRegistry.registerAminoProtoMapping(SendAuthorization.aminoType, SendAuthorization.typeUrl);
83
+ Coin.registerTypeUrl();
84
+ }
85
+ };
86
+ GlobalDecoderRegistry.register(SendAuthorization.typeUrl, SendAuthorization);
87
+ GlobalDecoderRegistry.registerAminoProtoMapping(SendAuthorization.aminoType, SendAuthorization.typeUrl);