juno-network 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/package.json +2 -2
  2. package/types/codegen/JunoSwap.client.d.ts +122 -0
  3. package/types/codegen/JunoSwap.types.d.ts +142 -0
  4. package/types/codegen/confio/proofs.d.ts +495 -0
  5. package/types/codegen/contracts.d.ts +12 -0
  6. package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
  7. package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
  8. package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
  9. package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
  10. package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
  11. package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +32 -0
  12. package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
  13. package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +30 -0
  14. package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
  15. package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
  16. package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
  17. package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
  18. package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
  19. package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +57 -0
  20. package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
  21. package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
  22. package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
  23. package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +15 -0
  24. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
  25. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
  26. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
  27. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
  28. package/types/codegen/cosmos/bundle.d.ts +25545 -0
  29. package/types/codegen/cosmos/client.d.ts +473 -0
  30. package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
  31. package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
  32. package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
  33. package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
  34. package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
  35. package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
  36. package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
  37. package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
  38. package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
  39. package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
  40. package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
  41. package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +51 -0
  42. package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
  43. package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
  44. package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
  45. package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +33 -0
  46. package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
  47. package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
  48. package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
  49. package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
  50. package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +44 -0
  51. package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
  52. package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
  53. package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
  54. package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +27 -0
  55. package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
  56. package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
  57. package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
  58. package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
  59. package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +44 -0
  60. package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
  61. package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
  62. package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
  63. package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +25 -0
  64. package/types/codegen/cosmos/lcd.d.ts +28 -0
  65. package/types/codegen/cosmos/rpc.query.d.ts +97 -0
  66. package/types/codegen/cosmos/rpc.tx.d.ts +26 -0
  67. package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
  68. package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
  69. package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
  70. package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
  71. package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +80 -0
  72. package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
  73. package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
  74. package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
  75. package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
  76. package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +33 -0
  77. package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
  78. package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
  79. package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
  80. package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +36 -0
  81. package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
  82. package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
  83. package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
  84. package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +43 -0
  85. package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
  86. package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
  87. package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
  88. package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +24 -0
  89. package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
  90. package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
  91. package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
  92. package/types/codegen/cosmwasm/bundle.d.ts +5227 -0
  93. package/types/codegen/cosmwasm/client.d.ts +120 -0
  94. package/types/codegen/cosmwasm/lcd.d.ts +33 -0
  95. package/types/codegen/cosmwasm/rpc.query.d.ts +112 -0
  96. package/types/codegen/cosmwasm/rpc.tx.d.ts +31 -0
  97. package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
  98. package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
  99. package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
  100. package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
  101. package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
  102. package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +48 -0
  103. package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
  104. package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
  105. package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
  106. package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +27 -0
  107. package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
  108. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  109. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  110. package/types/codegen/google/bundle.d.ts +8939 -0
  111. package/types/codegen/google/protobuf/any.d.ts +237 -0
  112. package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
  113. package/types/codegen/google/protobuf/duration.d.ts +161 -0
  114. package/types/codegen/google/protobuf/empty.d.ts +33 -0
  115. package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
  116. package/types/codegen/helpers.d.ts +82 -0
  117. package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
  118. package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
  119. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
  120. package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +24 -0
  121. package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
  122. package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
  123. package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
  124. package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  125. package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
  126. package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
  127. package/types/codegen/ibc/bundle.d.ts +21744 -0
  128. package/types/codegen/ibc/client.d.ts +559 -0
  129. package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
  130. package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
  131. package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
  132. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
  133. package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +88 -0
  134. package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
  135. package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
  136. package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
  137. package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +42 -0
  138. package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
  139. package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
  140. package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
  141. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
  142. package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +50 -0
  143. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  144. package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
  145. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
  146. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +21 -0
  147. package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
  148. package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
  149. package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
  150. package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
  151. package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
  152. package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +41 -0
  153. package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
  154. package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
  155. package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
  156. package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +24 -0
  157. package/types/codegen/ibc/lcd.d.ts +46 -0
  158. package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
  159. package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
  160. package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
  161. package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
  162. package/types/codegen/ibc/rpc.query.d.ts +148 -0
  163. package/types/codegen/ibc/rpc.tx.d.ts +44 -0
  164. package/types/codegen/ics23/bundle.d.ts +545 -0
  165. package/types/codegen/index.d.ts +18 -0
  166. package/types/codegen/juno/bundle.d.ts +723 -0
  167. package/types/codegen/juno/lcd.d.ts +31 -0
  168. package/types/codegen/juno/mint/genesis.d.ts +22 -0
  169. package/types/codegen/juno/mint/mint.d.ts +44 -0
  170. package/types/codegen/juno/mint/query.d.ts +99 -0
  171. package/types/codegen/juno/mint/query.lcd.d.ts +11 -0
  172. package/types/codegen/juno/mint/query.rpc.query.d.ts +24 -0
  173. package/types/codegen/juno/rpc.query.d.ts +104 -0
  174. package/types/codegen/tendermint/abci/types.d.ts +902 -0
  175. package/types/codegen/tendermint/bundle.d.ts +19673 -0
  176. package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
  177. package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
  178. package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
  179. package/types/codegen/tendermint/p2p/types.d.ts +87 -0
  180. package/types/codegen/tendermint/types/block.d.ts +21 -0
  181. package/types/codegen/tendermint/types/evidence.d.ts +70 -0
  182. package/types/codegen/tendermint/types/params.d.ts +181 -0
  183. package/types/codegen/tendermint/types/types.d.ts +326 -0
  184. package/types/codegen/tendermint/types/validator.d.ts +48 -0
  185. package/types/codegen/tendermint/version/types.d.ts +48 -0
  186. package/types/index.d.ts +1 -0
@@ -0,0 +1,106 @@
1
+ import { AminoMsg } from "@cosmjs/amino";
2
+ import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate } from "./tx";
3
+ export interface AminoMsgCreateValidator extends AminoMsg {
4
+ type: "cosmos-sdk/MsgCreateValidator";
5
+ value: {
6
+ description: {
7
+ moniker: string;
8
+ identity: string;
9
+ website: string;
10
+ security_contact: string;
11
+ details: string;
12
+ };
13
+ commission: {
14
+ rate: string;
15
+ max_rate: string;
16
+ max_change_rate: string;
17
+ };
18
+ min_self_delegation: string;
19
+ delegator_address: string;
20
+ validator_address: string;
21
+ pubkey: {
22
+ type_url: string;
23
+ value: Uint8Array;
24
+ };
25
+ value: {
26
+ denom: string;
27
+ amount: string;
28
+ };
29
+ };
30
+ }
31
+ export interface AminoMsgEditValidator extends AminoMsg {
32
+ type: "cosmos-sdk/MsgEditValidator";
33
+ value: {
34
+ description: {
35
+ moniker: string;
36
+ identity: string;
37
+ website: string;
38
+ security_contact: string;
39
+ details: string;
40
+ };
41
+ validator_address: string;
42
+ commission_rate: string;
43
+ min_self_delegation: string;
44
+ };
45
+ }
46
+ export interface AminoMsgDelegate extends AminoMsg {
47
+ type: "cosmos-sdk/MsgDelegate";
48
+ value: {
49
+ delegator_address: string;
50
+ validator_address: string;
51
+ amount: {
52
+ denom: string;
53
+ amount: string;
54
+ };
55
+ };
56
+ }
57
+ export interface AminoMsgBeginRedelegate extends AminoMsg {
58
+ type: "cosmos-sdk/MsgBeginRedelegate";
59
+ value: {
60
+ delegator_address: string;
61
+ validator_src_address: string;
62
+ validator_dst_address: string;
63
+ amount: {
64
+ denom: string;
65
+ amount: string;
66
+ };
67
+ };
68
+ }
69
+ export interface AminoMsgUndelegate extends AminoMsg {
70
+ type: "cosmos-sdk/MsgUndelegate";
71
+ value: {
72
+ delegator_address: string;
73
+ validator_address: string;
74
+ amount: {
75
+ denom: string;
76
+ amount: string;
77
+ };
78
+ };
79
+ }
80
+ export declare const AminoConverter: {
81
+ "/cosmos.staking.v1beta1.MsgCreateValidator": {
82
+ aminoType: string;
83
+ toAmino: ({ description, commission, minSelfDelegation, delegatorAddress, validatorAddress, pubkey, value }: MsgCreateValidator) => AminoMsgCreateValidator["value"];
84
+ fromAmino: ({ description, commission, min_self_delegation, delegator_address, validator_address, pubkey, value }: AminoMsgCreateValidator["value"]) => MsgCreateValidator;
85
+ };
86
+ "/cosmos.staking.v1beta1.MsgEditValidator": {
87
+ aminoType: string;
88
+ toAmino: ({ description, validatorAddress, commissionRate, minSelfDelegation }: MsgEditValidator) => AminoMsgEditValidator["value"];
89
+ fromAmino: ({ description, validator_address, commission_rate, min_self_delegation }: AminoMsgEditValidator["value"]) => MsgEditValidator;
90
+ };
91
+ "/cosmos.staking.v1beta1.MsgDelegate": {
92
+ aminoType: string;
93
+ toAmino: ({ delegatorAddress, validatorAddress, amount }: MsgDelegate) => AminoMsgDelegate["value"];
94
+ fromAmino: ({ delegator_address, validator_address, amount }: AminoMsgDelegate["value"]) => MsgDelegate;
95
+ };
96
+ "/cosmos.staking.v1beta1.MsgBeginRedelegate": {
97
+ aminoType: string;
98
+ toAmino: ({ delegatorAddress, validatorSrcAddress, validatorDstAddress, amount }: MsgBeginRedelegate) => AminoMsgBeginRedelegate["value"];
99
+ fromAmino: ({ delegator_address, validator_src_address, validator_dst_address, amount }: AminoMsgBeginRedelegate["value"]) => MsgBeginRedelegate;
100
+ };
101
+ "/cosmos.staking.v1beta1.MsgUndelegate": {
102
+ aminoType: string;
103
+ toAmino: ({ delegatorAddress, validatorAddress, amount }: MsgUndelegate) => AminoMsgUndelegate["value"];
104
+ fromAmino: ({ delegator_address, validator_address, amount }: AminoMsgUndelegate["value"]) => MsgUndelegate;
105
+ };
106
+ };
@@ -0,0 +1,191 @@
1
+ import { Description, DescriptionSDKType, CommissionRates, CommissionRatesSDKType } from "./staking";
2
+ import { Any, AnySDKType } from "../../../google/protobuf/any";
3
+ import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
4
+ import * as _m0 from "protobufjs/minimal";
5
+ import { DeepPartial } from "../../../helpers";
6
+ /** MsgCreateValidator defines a SDK message for creating a new validator. */
7
+ export interface MsgCreateValidator {
8
+ description?: Description;
9
+ commission?: CommissionRates;
10
+ minSelfDelegation: string;
11
+ delegatorAddress: string;
12
+ validatorAddress: string;
13
+ pubkey?: Any;
14
+ value?: Coin;
15
+ }
16
+ /** MsgCreateValidator defines a SDK message for creating a new validator. */
17
+ export interface MsgCreateValidatorSDKType {
18
+ description?: DescriptionSDKType;
19
+ commission?: CommissionRatesSDKType;
20
+ min_self_delegation: string;
21
+ delegator_address: string;
22
+ validator_address: string;
23
+ pubkey?: AnySDKType;
24
+ value?: CoinSDKType;
25
+ }
26
+ /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
27
+ export interface MsgCreateValidatorResponse {
28
+ }
29
+ /** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */
30
+ export interface MsgCreateValidatorResponseSDKType {
31
+ }
32
+ /** MsgEditValidator defines a SDK message for editing an existing validator. */
33
+ export interface MsgEditValidator {
34
+ description?: Description;
35
+ validatorAddress: string;
36
+ /**
37
+ * We pass a reference to the new commission rate and min self delegation as
38
+ * it's not mandatory to update. If not updated, the deserialized rate will be
39
+ * zero with no way to distinguish if an update was intended.
40
+ * REF: #2373
41
+ */
42
+ commissionRate: string;
43
+ minSelfDelegation: string;
44
+ }
45
+ /** MsgEditValidator defines a SDK message for editing an existing validator. */
46
+ export interface MsgEditValidatorSDKType {
47
+ description?: DescriptionSDKType;
48
+ validator_address: string;
49
+ /**
50
+ * We pass a reference to the new commission rate and min self delegation as
51
+ * it's not mandatory to update. If not updated, the deserialized rate will be
52
+ * zero with no way to distinguish if an update was intended.
53
+ * REF: #2373
54
+ */
55
+ commission_rate: string;
56
+ min_self_delegation: string;
57
+ }
58
+ /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
59
+ export interface MsgEditValidatorResponse {
60
+ }
61
+ /** MsgEditValidatorResponse defines the Msg/EditValidator response type. */
62
+ export interface MsgEditValidatorResponseSDKType {
63
+ }
64
+ /**
65
+ * MsgDelegate defines a SDK message for performing a delegation of coins
66
+ * from a delegator to a validator.
67
+ */
68
+ export interface MsgDelegate {
69
+ delegatorAddress: string;
70
+ validatorAddress: string;
71
+ amount?: Coin;
72
+ }
73
+ /**
74
+ * MsgDelegate defines a SDK message for performing a delegation of coins
75
+ * from a delegator to a validator.
76
+ */
77
+ export interface MsgDelegateSDKType {
78
+ delegator_address: string;
79
+ validator_address: string;
80
+ amount?: CoinSDKType;
81
+ }
82
+ /** MsgDelegateResponse defines the Msg/Delegate response type. */
83
+ export interface MsgDelegateResponse {
84
+ }
85
+ /** MsgDelegateResponse defines the Msg/Delegate response type. */
86
+ export interface MsgDelegateResponseSDKType {
87
+ }
88
+ /**
89
+ * MsgBeginRedelegate defines a SDK message for performing a redelegation
90
+ * of coins from a delegator and source validator to a destination validator.
91
+ */
92
+ export interface MsgBeginRedelegate {
93
+ delegatorAddress: string;
94
+ validatorSrcAddress: string;
95
+ validatorDstAddress: string;
96
+ amount?: Coin;
97
+ }
98
+ /**
99
+ * MsgBeginRedelegate defines a SDK message for performing a redelegation
100
+ * of coins from a delegator and source validator to a destination validator.
101
+ */
102
+ export interface MsgBeginRedelegateSDKType {
103
+ delegator_address: string;
104
+ validator_src_address: string;
105
+ validator_dst_address: string;
106
+ amount?: CoinSDKType;
107
+ }
108
+ /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
109
+ export interface MsgBeginRedelegateResponse {
110
+ completionTime?: Date;
111
+ }
112
+ /** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */
113
+ export interface MsgBeginRedelegateResponseSDKType {
114
+ completion_time?: Date;
115
+ }
116
+ /**
117
+ * MsgUndelegate defines a SDK message for performing an undelegation from a
118
+ * delegate and a validator.
119
+ */
120
+ export interface MsgUndelegate {
121
+ delegatorAddress: string;
122
+ validatorAddress: string;
123
+ amount?: Coin;
124
+ }
125
+ /**
126
+ * MsgUndelegate defines a SDK message for performing an undelegation from a
127
+ * delegate and a validator.
128
+ */
129
+ export interface MsgUndelegateSDKType {
130
+ delegator_address: string;
131
+ validator_address: string;
132
+ amount?: CoinSDKType;
133
+ }
134
+ /** MsgUndelegateResponse defines the Msg/Undelegate response type. */
135
+ export interface MsgUndelegateResponse {
136
+ completionTime?: Date;
137
+ }
138
+ /** MsgUndelegateResponse defines the Msg/Undelegate response type. */
139
+ export interface MsgUndelegateResponseSDKType {
140
+ completion_time?: Date;
141
+ }
142
+ export declare const MsgCreateValidator: {
143
+ encode(message: MsgCreateValidator, writer?: _m0.Writer): _m0.Writer;
144
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidator;
145
+ fromPartial(object: DeepPartial<MsgCreateValidator>): MsgCreateValidator;
146
+ };
147
+ export declare const MsgCreateValidatorResponse: {
148
+ encode(_: MsgCreateValidatorResponse, writer?: _m0.Writer): _m0.Writer;
149
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateValidatorResponse;
150
+ fromPartial(_: DeepPartial<MsgCreateValidatorResponse>): MsgCreateValidatorResponse;
151
+ };
152
+ export declare const MsgEditValidator: {
153
+ encode(message: MsgEditValidator, writer?: _m0.Writer): _m0.Writer;
154
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidator;
155
+ fromPartial(object: DeepPartial<MsgEditValidator>): MsgEditValidator;
156
+ };
157
+ export declare const MsgEditValidatorResponse: {
158
+ encode(_: MsgEditValidatorResponse, writer?: _m0.Writer): _m0.Writer;
159
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditValidatorResponse;
160
+ fromPartial(_: DeepPartial<MsgEditValidatorResponse>): MsgEditValidatorResponse;
161
+ };
162
+ export declare const MsgDelegate: {
163
+ encode(message: MsgDelegate, writer?: _m0.Writer): _m0.Writer;
164
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegate;
165
+ fromPartial(object: DeepPartial<MsgDelegate>): MsgDelegate;
166
+ };
167
+ export declare const MsgDelegateResponse: {
168
+ encode(_: MsgDelegateResponse, writer?: _m0.Writer): _m0.Writer;
169
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateResponse;
170
+ fromPartial(_: DeepPartial<MsgDelegateResponse>): MsgDelegateResponse;
171
+ };
172
+ export declare const MsgBeginRedelegate: {
173
+ encode(message: MsgBeginRedelegate, writer?: _m0.Writer): _m0.Writer;
174
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegate;
175
+ fromPartial(object: DeepPartial<MsgBeginRedelegate>): MsgBeginRedelegate;
176
+ };
177
+ export declare const MsgBeginRedelegateResponse: {
178
+ encode(message: MsgBeginRedelegateResponse, writer?: _m0.Writer): _m0.Writer;
179
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgBeginRedelegateResponse;
180
+ fromPartial(object: DeepPartial<MsgBeginRedelegateResponse>): MsgBeginRedelegateResponse;
181
+ };
182
+ export declare const MsgUndelegate: {
183
+ encode(message: MsgUndelegate, writer?: _m0.Writer): _m0.Writer;
184
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegate;
185
+ fromPartial(object: DeepPartial<MsgUndelegate>): MsgUndelegate;
186
+ };
187
+ export declare const MsgUndelegateResponse: {
188
+ encode(message: MsgUndelegateResponse, writer?: _m0.Writer): _m0.Writer;
189
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUndelegateResponse;
190
+ fromPartial(object: DeepPartial<MsgUndelegateResponse>): MsgUndelegateResponse;
191
+ };
@@ -0,0 +1,72 @@
1
+ import { GeneratedType, Registry } from "@cosmjs/proto-signing";
2
+ import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate } from "./tx";
3
+ export declare const registry: ReadonlyArray<[string, GeneratedType]>;
4
+ export declare const load: (protoRegistry: Registry) => void;
5
+ export declare const MessageComposer: {
6
+ encoded: {
7
+ createValidator(value: MsgCreateValidator): {
8
+ typeUrl: string;
9
+ value: Uint8Array;
10
+ };
11
+ editValidator(value: MsgEditValidator): {
12
+ typeUrl: string;
13
+ value: Uint8Array;
14
+ };
15
+ delegate(value: MsgDelegate): {
16
+ typeUrl: string;
17
+ value: Uint8Array;
18
+ };
19
+ beginRedelegate(value: MsgBeginRedelegate): {
20
+ typeUrl: string;
21
+ value: Uint8Array;
22
+ };
23
+ undelegate(value: MsgUndelegate): {
24
+ typeUrl: string;
25
+ value: Uint8Array;
26
+ };
27
+ };
28
+ withTypeUrl: {
29
+ createValidator(value: MsgCreateValidator): {
30
+ typeUrl: string;
31
+ value: MsgCreateValidator;
32
+ };
33
+ editValidator(value: MsgEditValidator): {
34
+ typeUrl: string;
35
+ value: MsgEditValidator;
36
+ };
37
+ delegate(value: MsgDelegate): {
38
+ typeUrl: string;
39
+ value: MsgDelegate;
40
+ };
41
+ beginRedelegate(value: MsgBeginRedelegate): {
42
+ typeUrl: string;
43
+ value: MsgBeginRedelegate;
44
+ };
45
+ undelegate(value: MsgUndelegate): {
46
+ typeUrl: string;
47
+ value: MsgUndelegate;
48
+ };
49
+ };
50
+ fromPartial: {
51
+ createValidator(value: MsgCreateValidator): {
52
+ typeUrl: string;
53
+ value: MsgCreateValidator;
54
+ };
55
+ editValidator(value: MsgEditValidator): {
56
+ typeUrl: string;
57
+ value: MsgEditValidator;
58
+ };
59
+ delegate(value: MsgDelegate): {
60
+ typeUrl: string;
61
+ value: MsgDelegate;
62
+ };
63
+ beginRedelegate(value: MsgBeginRedelegate): {
64
+ typeUrl: string;
65
+ value: MsgBeginRedelegate;
66
+ };
67
+ undelegate(value: MsgUndelegate): {
68
+ typeUrl: string;
69
+ value: MsgUndelegate;
70
+ };
71
+ };
72
+ };
@@ -0,0 +1,33 @@
1
+ import { Rpc } from "../../../helpers";
2
+ import { MsgCreateValidator, MsgCreateValidatorResponse, MsgEditValidator, MsgEditValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgUndelegate, MsgUndelegateResponse } from "./tx";
3
+ /** Msg defines the staking Msg service. */
4
+ export interface Msg {
5
+ /** CreateValidator defines a method for creating a new validator. */
6
+ createValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
7
+ /** EditValidator defines a method for editing an existing validator. */
8
+ editValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
9
+ /**
10
+ * Delegate defines a method for performing a delegation of coins
11
+ * from a delegator to a validator.
12
+ */
13
+ delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
14
+ /**
15
+ * BeginRedelegate defines a method for performing a redelegation
16
+ * of coins from a delegator and source validator to a destination validator.
17
+ */
18
+ beginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
19
+ /**
20
+ * Undelegate defines a method for performing an undelegation from a
21
+ * delegate and a validator.
22
+ */
23
+ undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
24
+ }
25
+ export declare class MsgClientImpl implements Msg {
26
+ private readonly rpc;
27
+ constructor(rpc: Rpc);
28
+ createValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
29
+ editValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
30
+ delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
31
+ beginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
32
+ undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
33
+ }
@@ -0,0 +1,203 @@
1
+ import { CompactBitArray, CompactBitArraySDKType } from "../../../crypto/multisig/v1beta1/multisig";
2
+ import { Any, AnySDKType } from "../../../../google/protobuf/any";
3
+ import * as _m0 from "protobufjs/minimal";
4
+ import { DeepPartial, Long } from "../../../../helpers";
5
+ /**
6
+ * SignMode represents a signing mode with its own security guarantees.
7
+ *
8
+ * This enum should be considered a registry of all known sign modes
9
+ * in the Cosmos ecosystem. Apps are not expected to support all known
10
+ * sign modes. Apps that would like to support custom sign modes are
11
+ * encouraged to open a small PR against this file to add a new case
12
+ * to this SignMode enum describing their sign mode so that different
13
+ * apps have a consistent version of this enum.
14
+ */
15
+ export declare enum SignMode {
16
+ /**
17
+ * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
18
+ * rejected.
19
+ */
20
+ SIGN_MODE_UNSPECIFIED = 0,
21
+ /**
22
+ * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
23
+ * verified with raw bytes from Tx.
24
+ */
25
+ SIGN_MODE_DIRECT = 1,
26
+ /**
27
+ * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some
28
+ * human-readable textual representation on top of the binary representation
29
+ * from SIGN_MODE_DIRECT. It is currently not supported.
30
+ */
31
+ SIGN_MODE_TEXTUAL = 2,
32
+ /**
33
+ * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
34
+ * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
35
+ * require signers signing over other signers' `signer_info`. It also allows
36
+ * for adding Tips in transactions.
37
+ *
38
+ * Since: cosmos-sdk 0.46
39
+ */
40
+ SIGN_MODE_DIRECT_AUX = 3,
41
+ /**
42
+ * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
43
+ * Amino JSON and will be removed in the future.
44
+ */
45
+ SIGN_MODE_LEGACY_AMINO_JSON = 127,
46
+ UNRECOGNIZED = -1
47
+ }
48
+ /**
49
+ * SignMode represents a signing mode with its own security guarantees.
50
+ *
51
+ * This enum should be considered a registry of all known sign modes
52
+ * in the Cosmos ecosystem. Apps are not expected to support all known
53
+ * sign modes. Apps that would like to support custom sign modes are
54
+ * encouraged to open a small PR against this file to add a new case
55
+ * to this SignMode enum describing their sign mode so that different
56
+ * apps have a consistent version of this enum.
57
+ */
58
+ export declare enum SignModeSDKType {
59
+ /**
60
+ * SIGN_MODE_UNSPECIFIED - SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be
61
+ * rejected.
62
+ */
63
+ SIGN_MODE_UNSPECIFIED = 0,
64
+ /**
65
+ * SIGN_MODE_DIRECT - SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is
66
+ * verified with raw bytes from Tx.
67
+ */
68
+ SIGN_MODE_DIRECT = 1,
69
+ /**
70
+ * SIGN_MODE_TEXTUAL - SIGN_MODE_TEXTUAL is a future signing mode that will verify some
71
+ * human-readable textual representation on top of the binary representation
72
+ * from SIGN_MODE_DIRECT. It is currently not supported.
73
+ */
74
+ SIGN_MODE_TEXTUAL = 2,
75
+ /**
76
+ * SIGN_MODE_DIRECT_AUX - SIGN_MODE_DIRECT_AUX specifies a signing mode which uses
77
+ * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not
78
+ * require signers signing over other signers' `signer_info`. It also allows
79
+ * for adding Tips in transactions.
80
+ *
81
+ * Since: cosmos-sdk 0.46
82
+ */
83
+ SIGN_MODE_DIRECT_AUX = 3,
84
+ /**
85
+ * SIGN_MODE_LEGACY_AMINO_JSON - SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses
86
+ * Amino JSON and will be removed in the future.
87
+ */
88
+ SIGN_MODE_LEGACY_AMINO_JSON = 127,
89
+ UNRECOGNIZED = -1
90
+ }
91
+ export declare function signModeFromJSON(object: any): SignMode;
92
+ export declare function signModeToJSON(object: SignMode): string;
93
+ /** SignatureDescriptors wraps multiple SignatureDescriptor's. */
94
+ export interface SignatureDescriptors {
95
+ /** signatures are the signature descriptors */
96
+ signatures: SignatureDescriptor[];
97
+ }
98
+ /** SignatureDescriptors wraps multiple SignatureDescriptor's. */
99
+ export interface SignatureDescriptorsSDKType {
100
+ /** signatures are the signature descriptors */
101
+ signatures: SignatureDescriptorSDKType[];
102
+ }
103
+ /**
104
+ * SignatureDescriptor is a convenience type which represents the full data for
105
+ * a signature including the public key of the signer, signing modes and the
106
+ * signature itself. It is primarily used for coordinating signatures between
107
+ * clients.
108
+ */
109
+ export interface SignatureDescriptor {
110
+ /** public_key is the public key of the signer */
111
+ publicKey?: Any;
112
+ data?: SignatureDescriptor_Data;
113
+ /**
114
+ * sequence is the sequence of the account, which describes the
115
+ * number of committed transactions signed by a given address. It is used to prevent
116
+ * replay attacks.
117
+ */
118
+ sequence: Long;
119
+ }
120
+ /**
121
+ * SignatureDescriptor is a convenience type which represents the full data for
122
+ * a signature including the public key of the signer, signing modes and the
123
+ * signature itself. It is primarily used for coordinating signatures between
124
+ * clients.
125
+ */
126
+ export interface SignatureDescriptorSDKType {
127
+ /** public_key is the public key of the signer */
128
+ public_key?: AnySDKType;
129
+ data?: SignatureDescriptor_DataSDKType;
130
+ /**
131
+ * sequence is the sequence of the account, which describes the
132
+ * number of committed transactions signed by a given address. It is used to prevent
133
+ * replay attacks.
134
+ */
135
+ sequence: Long;
136
+ }
137
+ /** Data represents signature data */
138
+ export interface SignatureDescriptor_Data {
139
+ /** single represents a single signer */
140
+ single?: SignatureDescriptor_Data_Single;
141
+ /** multi represents a multisig signer */
142
+ multi?: SignatureDescriptor_Data_Multi;
143
+ }
144
+ /** Data represents signature data */
145
+ export interface SignatureDescriptor_DataSDKType {
146
+ /** single represents a single signer */
147
+ single?: SignatureDescriptor_Data_SingleSDKType;
148
+ /** multi represents a multisig signer */
149
+ multi?: SignatureDescriptor_Data_MultiSDKType;
150
+ }
151
+ /** Single is the signature data for a single signer */
152
+ export interface SignatureDescriptor_Data_Single {
153
+ /** mode is the signing mode of the single signer */
154
+ mode: SignMode;
155
+ /** signature is the raw signature bytes */
156
+ signature: Uint8Array;
157
+ }
158
+ /** Single is the signature data for a single signer */
159
+ export interface SignatureDescriptor_Data_SingleSDKType {
160
+ /** mode is the signing mode of the single signer */
161
+ mode: SignModeSDKType;
162
+ /** signature is the raw signature bytes */
163
+ signature: Uint8Array;
164
+ }
165
+ /** Multi is the signature data for a multisig public key */
166
+ export interface SignatureDescriptor_Data_Multi {
167
+ /** bitarray specifies which keys within the multisig are signing */
168
+ bitarray?: CompactBitArray;
169
+ /** signatures is the signatures of the multi-signature */
170
+ signatures: SignatureDescriptor_Data[];
171
+ }
172
+ /** Multi is the signature data for a multisig public key */
173
+ export interface SignatureDescriptor_Data_MultiSDKType {
174
+ /** bitarray specifies which keys within the multisig are signing */
175
+ bitarray?: CompactBitArraySDKType;
176
+ /** signatures is the signatures of the multi-signature */
177
+ signatures: SignatureDescriptor_DataSDKType[];
178
+ }
179
+ export declare const SignatureDescriptors: {
180
+ encode(message: SignatureDescriptors, writer?: _m0.Writer): _m0.Writer;
181
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptors;
182
+ fromPartial(object: DeepPartial<SignatureDescriptors>): SignatureDescriptors;
183
+ };
184
+ export declare const SignatureDescriptor: {
185
+ encode(message: SignatureDescriptor, writer?: _m0.Writer): _m0.Writer;
186
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor;
187
+ fromPartial(object: DeepPartial<SignatureDescriptor>): SignatureDescriptor;
188
+ };
189
+ export declare const SignatureDescriptor_Data: {
190
+ encode(message: SignatureDescriptor_Data, writer?: _m0.Writer): _m0.Writer;
191
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data;
192
+ fromPartial(object: DeepPartial<SignatureDescriptor_Data>): SignatureDescriptor_Data;
193
+ };
194
+ export declare const SignatureDescriptor_Data_Single: {
195
+ encode(message: SignatureDescriptor_Data_Single, writer?: _m0.Writer): _m0.Writer;
196
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Single;
197
+ fromPartial(object: DeepPartial<SignatureDescriptor_Data_Single>): SignatureDescriptor_Data_Single;
198
+ };
199
+ export declare const SignatureDescriptor_Data_Multi: {
200
+ encode(message: SignatureDescriptor_Data_Multi, writer?: _m0.Writer): _m0.Writer;
201
+ decode(input: _m0.Reader | Uint8Array, length?: number): SignatureDescriptor_Data_Multi;
202
+ fromPartial(object: DeepPartial<SignatureDescriptor_Data_Multi>): SignatureDescriptor_Data_Multi;
203
+ };