carbon-js-sdk 0.9.0 → 0.9.1-beta.1

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 (150) hide show
  1. package/lib/CarbonSDK.js +1 -1
  2. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +4 -1
  3. package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +8 -2
  4. package/lib/codec/Switcheo/carbon/cdp/params.d.ts +15 -5
  5. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1 -1
  6. package/lib/codec/Switcheo/carbon/cdp/tx.js +9 -9
  7. package/lib/codec/Switcheo/carbon/coin/group.d.ts +6 -3
  8. package/lib/codec/Switcheo/carbon/coin/tx.d.ts +3 -2
  9. package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +4 -1
  10. package/lib/codec/Switcheo/carbon/erc20/events.d.ts +8 -2
  11. package/lib/codec/Switcheo/carbon/erc20/params.d.ts +7 -3
  12. package/lib/codec/Switcheo/carbon/erc20/query.d.ts +4 -1
  13. package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +33 -11
  14. package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +4 -1
  15. package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +16 -4
  16. package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +8 -2
  17. package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +8 -2
  18. package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +4 -1
  19. package/lib/codec/Switcheo/carbon/insurance/event.d.ts +1 -1
  20. package/lib/codec/Switcheo/carbon/market/fee.d.ts +11 -5
  21. package/lib/codec/Switcheo/carbon/market/query.d.ts +8 -2
  22. package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +19 -6
  23. package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +4 -1
  24. package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +8 -2
  25. package/lib/codec/alliance/alliance/export.d.ts +1 -1
  26. package/lib/codec/alliance/alliance/export.js +6 -5
  27. package/lib/codec/alliance/alliance/gov.d.ts +2 -0
  28. package/lib/codec/alliance/alliance/gov.js +20 -0
  29. package/lib/codec/alliance/alliance/params.d.ts +1 -0
  30. package/lib/codec/alliance/alliance/params.js +14 -2
  31. package/lib/codec/alliance/alliance/query.d.ts +61 -73
  32. package/lib/codec/alliance/alliance/query.js +262 -250
  33. package/lib/codec/alliance/alliance/tx.d.ts +2 -0
  34. package/lib/codec/alliance/alliance/tx.js +20 -0
  35. package/lib/codec/alliance/alliance/unbonding.d.ts +2 -0
  36. package/lib/codec/alliance/alliance/unbonding.js +18 -2
  37. package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +18 -0
  38. package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +50 -2
  39. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +1 -1
  40. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +1 -1
  41. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +17 -17
  42. package/lib/codec/cosmos/authz/v1beta1/tx.js +36 -36
  43. package/lib/codec/cosmos/autocli/v1/options.d.ts +2 -4
  44. package/lib/codec/cosmos/autocli/v1/options.js +4 -19
  45. package/lib/codec/cosmos/bank/module/v1/module.d.ts +2 -2
  46. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -1
  47. package/lib/codec/cosmos/bank/v1beta1/export.js +5 -1
  48. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +86 -1
  49. package/lib/codec/cosmos/bank/v1beta1/query.js +257 -3
  50. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +1 -0
  51. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +23 -0
  52. package/lib/codec/cosmos/base/abci/v1beta1/abci.js +137 -1
  53. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +36 -0
  54. package/lib/codec/cosmos/base/node/v1beta1/query.js +257 -3
  55. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +8 -2
  56. package/lib/codec/cosmos/consensus/v1/query.d.ts +1 -1
  57. package/lib/codec/cosmos/consensus/v1/tx.d.ts +5 -3
  58. package/lib/codec/cosmos/consensus/v1/tx.js +16 -0
  59. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +1 -1
  60. package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +1 -1
  61. package/lib/codec/cosmos/distribution/v1beta1/export.js +3 -1
  62. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +1 -1
  63. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +41 -0
  64. package/lib/codec/cosmos/distribution/v1beta1/tx.js +117 -1
  65. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  66. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +37 -0
  67. package/lib/codec/cosmos/feegrant/v1beta1/tx.js +84 -1
  68. package/lib/codec/cosmos/gov/v1/genesis.d.ts +9 -0
  69. package/lib/codec/cosmos/gov/v1/genesis.js +18 -2
  70. package/lib/codec/cosmos/gov/v1/gov.d.ts +72 -6
  71. package/lib/codec/cosmos/gov/v1/gov.js +127 -6
  72. package/lib/codec/cosmos/gov/v1/query.d.ts +25 -1
  73. package/lib/codec/cosmos/gov/v1/query.js +85 -1
  74. package/lib/codec/cosmos/gov/v1/tx.d.ts +52 -0
  75. package/lib/codec/cosmos/gov/v1/tx.js +188 -2
  76. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  77. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +1 -1
  78. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +1 -1
  79. package/lib/codec/cosmos/group/v1/types.d.ts +9 -3
  80. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +2 -2
  81. package/lib/codec/cosmos/orm/v1/orm.d.ts +5 -2
  82. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +2 -22
  83. package/lib/codec/cosmos/orm/v1alpha1/schema.js +2 -32
  84. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +9 -8
  85. package/lib/codec/cosmos/staking/module/v1/module.d.ts +4 -0
  86. package/lib/codec/cosmos/staking/module/v1/module.js +35 -2
  87. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +2 -0
  88. package/lib/codec/cosmos/staking/v1beta1/authz.js +7 -0
  89. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +2 -1
  90. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +4 -4
  91. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +13 -0
  92. package/lib/codec/cosmos/staking/v1beta1/tx.js +16 -0
  93. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +4 -3
  94. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +4 -3
  95. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +32 -9
  96. package/lib/codec/cosmos/tx/v1beta1/service.js +26 -7
  97. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +6 -5
  98. package/lib/codec/google/protobuf/any.d.ts +5 -4
  99. package/lib/codec/google/protobuf/descriptor.d.ts +266 -11
  100. package/lib/codec/google/protobuf/descriptor.js +1060 -41
  101. package/lib/codec/google/protobuf/timestamp.d.ts +1 -1
  102. package/lib/codec/ibc/applications/fee/v1/query.d.ts +7 -1
  103. package/lib/codec/ibc/applications/fee/v1/query.js +54 -0
  104. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -1
  105. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +3 -1
  106. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +32 -0
  107. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +101 -1
  108. package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +1 -0
  109. package/lib/codec/ibc/applications/interchain_accounts/host/export.js +4 -1
  110. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
  111. package/lib/codec/ibc/applications/transfer/v1/export.js +3 -1
  112. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +3 -3
  113. package/lib/codec/ibc/applications/transfer/v1/query.js +6 -6
  114. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +35 -0
  115. package/lib/codec/ibc/applications/transfer/v1/tx.js +101 -1
  116. package/lib/codec/ibc/core/channel/v1/channel.d.ts +18 -0
  117. package/lib/codec/ibc/core/channel/v1/channel.js +65 -1
  118. package/lib/codec/ibc/core/channel/v1/export.d.ts +2 -2
  119. package/lib/codec/ibc/core/channel/v1/export.js +5 -2
  120. package/lib/codec/ibc/core/channel/v1/query.d.ts +39 -0
  121. package/lib/codec/ibc/core/channel/v1/query.js +147 -1
  122. package/lib/codec/ibc/core/client/v1/client.d.ts +50 -42
  123. package/lib/codec/ibc/core/client/v1/client.js +117 -117
  124. package/lib/codec/ibc/core/client/v1/export.d.ts +2 -2
  125. package/lib/codec/ibc/core/client/v1/export.js +9 -3
  126. package/lib/codec/ibc/core/client/v1/genesis.d.ts +6 -1
  127. package/lib/codec/ibc/core/client/v1/tx.d.ts +108 -16
  128. package/lib/codec/ibc/core/client/v1/tx.js +335 -1
  129. package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
  130. package/lib/codec/ibc/core/connection/v1/export.js +3 -1
  131. package/lib/codec/ibc/core/connection/v1/tx.d.ts +35 -1
  132. package/lib/codec/ibc/core/connection/v1/tx.js +100 -1
  133. package/lib/codec/index.d.ts +30 -4
  134. package/lib/codec/index.js +1622 -838
  135. package/lib/codec/tendermint/abci/types.d.ts +171 -107
  136. package/lib/codec/tendermint/abci/types.js +1100 -798
  137. package/lib/codec/tendermint/types/params.d.ts +23 -0
  138. package/lib/codec/tendermint/types/params.js +67 -1
  139. package/lib/codec/tendermint/types/types.d.ts +52 -12
  140. package/lib/codec/tendermint/types/types.js +250 -49
  141. package/lib/codec/tendermint/types/validator.d.ts +14 -0
  142. package/lib/codec/tendermint/types/validator.js +50 -1
  143. package/lib/constant/network.d.ts +0 -1
  144. package/lib/constant/network.js +0 -4
  145. package/lib/constant/node.js +0 -3
  146. package/lib/insights/node.d.ts +0 -1
  147. package/lib/modules/cdp.js +3 -3
  148. package/lib/util/tx.d.ts +28 -2
  149. package/lib/wallet/CarbonWallet.js +2 -2
  150. package/package.json +1 -1
package/lib/CarbonSDK.js CHANGED
@@ -81,7 +81,7 @@ class CarbonSDK {
81
81
  let grpcClient;
82
82
  if (opts.useTmAbciQuery !== true && this.networkConfig.grpcUrl) {
83
83
  const transport = typeof window === "undefined" ? grpc_web_node_http_transport_1.NodeHttpTransport() : undefined;
84
- grpcClient = (_j = opts.grpcQueryClient) !== null && _j !== void 0 ? _j : new GrpcQueryClient_1.default(this.networkConfig.grpcWebUrl, {
84
+ grpcClient = (_j = opts.grpcQueryClient) !== null && _j !== void 0 ? _j : new GrpcQueryClient_1.default(this.networkConfig.restUrl, {
85
85
  transport,
86
86
  });
87
87
  }
@@ -22,7 +22,10 @@ export interface PerpsAmm {
22
22
  markets: PerpsMarketAmm[];
23
23
  lastQuotedAt?: Date;
24
24
  }
25
- /** PerpsMarketAmm exists when it is active or when there's orders or open position */
25
+ /**
26
+ * PerpsMarketAmm exists when it is active or when there's orders or open
27
+ * position
28
+ */
26
29
  export interface PerpsMarketAmm {
27
30
  marketId: string;
28
31
  /**
@@ -4,13 +4,19 @@ import { Params } from "./params";
4
4
  export declare const protobufPackage = "Switcheo.carbon.ccm";
5
5
  /** GenesisState defines the ccm module's genesis state. */
6
6
  export interface GenesisState {
7
- /** An auto-incrementing count of x-chain txs generated by this chain. Used as a nonce / ID unique to this chain. */
7
+ /**
8
+ * An auto-incrementing count of x-chain txs generated by this chain. Used as
9
+ * a nonce / ID unique to this chain.
10
+ */
8
11
  createdTxCount: string;
9
12
  /** Details of cross chain tx generated by this chain. */
10
13
  createdTxDetails: {
11
14
  [key: string]: Uint8Array;
12
15
  };
13
- /** The cross chain tx IDs (issued by a sending chain) that has been processed by this chain. */
16
+ /**
17
+ * The cross chain tx IDs (issued by a sending chain) that has been processed
18
+ * by this chain.
19
+ */
14
20
  receivedTxIds: {
15
21
  [key: string]: Uint8Array;
16
22
  };
@@ -43,15 +43,25 @@ export interface Params {
43
43
  */
44
44
  smallLiquidationSize: string;
45
45
  /**
46
- * stale_price_grace_period determines the grace period before an oracle price is regarded as stale.
47
- * This would cause certain actions like borrowing to be paused
46
+ * stale_price_grace_period determines the grace period before an oracle price
47
+ * is regarded as stale. This would cause certain actions like borrowing to be
48
+ * paused
48
49
  */
49
50
  stalePriceGracePeriod?: Duration;
50
- /** cdp_paused if true, causes all supply, locking, lending, borrowing and liquidations to be paused */
51
+ /**
52
+ * cdp_paused if true, causes all supply, locking, lending, borrowing and
53
+ * liquidations to be paused
54
+ */
51
55
  cdpPaused: boolean;
52
- /** time interval in between each adjustment of stablecoin interest rate to help stablecoin price stability */
56
+ /**
57
+ * time interval in between each adjustment of stablecoin interest rate to
58
+ * help stablecoin price stability
59
+ */
53
60
  stablecoinInterestRateEpoch?: Duration;
54
- /** used in formula to calculate stablecoin interest rate to help stablecoin price stability */
61
+ /**
62
+ * used in formula to calculate stablecoin interest rate to help stablecoin
63
+ * price stability
64
+ */
55
65
  stablecoinInterestRateAdjusterCoefficient: string;
56
66
  }
57
67
  /** ParamsToUpdate allows optional fields for Params. */
@@ -229,7 +229,7 @@ export interface MsgCreateRewardScheme {
229
229
  export interface MsgCreateRewardSchemeResponse {
230
230
  }
231
231
  export interface MsgUpdateRewardScheme {
232
- updator: string;
232
+ updater: string;
233
233
  updateRewardSchemeParams?: UpdateRewardSchemeParams;
234
234
  }
235
235
  export interface MsgUpdateRewardSchemeResponse {
@@ -3353,11 +3353,11 @@ exports.MsgCreateRewardSchemeResponse = {
3353
3353
  return message;
3354
3354
  },
3355
3355
  };
3356
- const baseMsgUpdateRewardScheme = { updator: "" };
3356
+ const baseMsgUpdateRewardScheme = { updater: "" };
3357
3357
  exports.MsgUpdateRewardScheme = {
3358
3358
  encode(message, writer = minimal_1.default.Writer.create()) {
3359
- if (message.updator !== "") {
3360
- writer.uint32(10).string(message.updator);
3359
+ if (message.updater !== "") {
3360
+ writer.uint32(10).string(message.updater);
3361
3361
  }
3362
3362
  if (message.updateRewardSchemeParams !== undefined) {
3363
3363
  reward_scheme_1.UpdateRewardSchemeParams.encode(message.updateRewardSchemeParams, writer.uint32(18).fork()).ldelim();
@@ -3372,7 +3372,7 @@ exports.MsgUpdateRewardScheme = {
3372
3372
  const tag = reader.uint32();
3373
3373
  switch (tag >>> 3) {
3374
3374
  case 1:
3375
- message.updator = reader.string();
3375
+ message.updater = reader.string();
3376
3376
  break;
3377
3377
  case 2:
3378
3378
  message.updateRewardSchemeParams = reward_scheme_1.UpdateRewardSchemeParams.decode(reader, reader.uint32());
@@ -3386,9 +3386,9 @@ exports.MsgUpdateRewardScheme = {
3386
3386
  },
3387
3387
  fromJSON(object) {
3388
3388
  const message = Object.assign({}, baseMsgUpdateRewardScheme);
3389
- message.updator =
3390
- object.updator !== undefined && object.updator !== null
3391
- ? String(object.updator)
3389
+ message.updater =
3390
+ object.updater !== undefined && object.updater !== null
3391
+ ? String(object.updater)
3392
3392
  : "";
3393
3393
  message.updateRewardSchemeParams =
3394
3394
  object.updateRewardSchemeParams !== undefined &&
@@ -3399,7 +3399,7 @@ exports.MsgUpdateRewardScheme = {
3399
3399
  },
3400
3400
  toJSON(message) {
3401
3401
  const obj = {};
3402
- message.updator !== undefined && (obj.updator = message.updator);
3402
+ message.updater !== undefined && (obj.updater = message.updater);
3403
3403
  message.updateRewardSchemeParams !== undefined &&
3404
3404
  (obj.updateRewardSchemeParams = message.updateRewardSchemeParams
3405
3405
  ? reward_scheme_1.UpdateRewardSchemeParams.toJSON(message.updateRewardSchemeParams)
@@ -3409,7 +3409,7 @@ exports.MsgUpdateRewardScheme = {
3409
3409
  fromPartial(object) {
3410
3410
  var _a;
3411
3411
  const message = Object.assign({}, baseMsgUpdateRewardScheme);
3412
- message.updator = (_a = object.updator) !== null && _a !== void 0 ? _a : "";
3412
+ message.updater = (_a = object.updater) !== null && _a !== void 0 ? _a : "";
3413
3413
  message.updateRewardSchemeParams =
3414
3414
  object.updateRewardSchemeParams !== undefined &&
3415
3415
  object.updateRewardSchemeParams !== null
@@ -7,12 +7,15 @@ export interface TokenGroup {
7
7
  id: Long;
8
8
  /** admin/govt determined name */
9
9
  name: string;
10
- /** denom for the cheque token that represents a token that can be swap 1-to-1 with any underlying tokens in the vault */
10
+ /** denom for the cheque token that represents a token that can be swap */
11
11
  chequeDenom: string;
12
- /** address of the vault that stores the tokens */
12
+ /** 1-to-1 with any underlying tokens in the vault */
13
13
  vaultAddress: string;
14
14
  }
15
- /** TokenGroupDetails used for for querying. same as TokenGroup but appended with registered_denoms */
15
+ /**
16
+ * TokenGroupDetails used for for querying. same as TokenGroup but appended with
17
+ * registered_denoms
18
+ */
16
19
  export interface TokenGroupDetails {
17
20
  tokenGroup?: TokenGroup;
18
21
  registeredTokens: GroupedTokenConfig[];
@@ -110,6 +110,7 @@ export interface MsgUpdateToken {
110
110
  }
111
111
  export interface UpdateTokenParams {
112
112
  isActive?: boolean;
113
+ /** struct */
113
114
  name?: string;
114
115
  symbol?: string;
115
116
  decimals?: Long;
@@ -140,9 +141,9 @@ export interface MsgCreateGroup {
140
141
  creator: string;
141
142
  /** name of group */
142
143
  name: string;
143
- /** symbol of the cheque token that represents any tokens in the group 1-to-1 */
144
+ /** symbol of the cheque token that represents */
144
145
  chequeTokenSymbol: string;
145
- /** oracle_id that helps to get the reference price for this group */
146
+ /** any tokens in the group 1-to-1 */
146
147
  oracleId: string;
147
148
  }
148
149
  export interface MsgCreateGroupResponse {
@@ -24,7 +24,10 @@ export interface TokenPair {
24
24
  denom: string;
25
25
  /** enabled defines the token mapping enable status */
26
26
  enabled: boolean;
27
- /** contract_owner is the an ENUM specifying the type of ERC20 owner (0 invalid, 1 ModuleAccount, 2 external address) */
27
+ /**
28
+ * contract_owner is the an ENUM specifying the type of ERC20 owner (0
29
+ * invalid, 1 ModuleAccount, 2 external address)
30
+ */
28
31
  contractOwner: Owner;
29
32
  }
30
33
  export declare const TokenPair: {
@@ -8,7 +8,10 @@ export interface EventRegisterPair {
8
8
  /** erc20_address is the ERC20 contract address. */
9
9
  erc20Address: string;
10
10
  }
11
- /** EventToggleTokenConversion is an event emitted when a coin's token conversion is toggled. */
11
+ /**
12
+ * EventToggleTokenConversion is an event emitted when a coin's token conversion
13
+ * is toggled.
14
+ */
12
15
  export interface EventToggleTokenConversion {
13
16
  /** denom is the coin's denomination. */
14
17
  denom: string;
@@ -38,7 +41,10 @@ export interface EventConvertERC20 {
38
41
  amount: string;
39
42
  /** denom is the coin's denomination. */
40
43
  denom: string;
41
- /** contract_address of an ERC20 token contract, that is registered in a token pair */
44
+ /**
45
+ * contract_address of an ERC20 token contract, that is registered in a token
46
+ * pair
47
+ */
42
48
  contractAddress: string;
43
49
  }
44
50
  export declare const EventRegisterPair: {
@@ -3,11 +3,15 @@ import _m0 from "protobufjs/minimal";
3
3
  export declare const protobufPackage = "Switcheo.carbon.erc20";
4
4
  /** Params defines the erc20 module params */
5
5
  export interface Params {
6
- /** enable_erc20 is the parameter to enable the conversion of Cosmos coins <--> ERC20 tokens. */
6
+ /**
7
+ * enable_erc20 is the parameter to enable the conversion of Cosmos coins <-->
8
+ * ERC20 tokens.
9
+ */
7
10
  enableErc20: boolean;
8
11
  /**
9
- * enable_evm_hook is the parameter to enable the EVM hook that converts an ERC20 token to a Cosmos
10
- * Coin by transferring the Tokens through a MsgEthereumTx to the ModuleAddress Ethereum address.
12
+ * enable_evm_hook is the parameter to enable the EVM hook that converts an
13
+ * ERC20 token to a Cosmos Coin by transferring the Tokens through a
14
+ * MsgEthereumTx to the ModuleAddress Ethereum address.
11
15
  */
12
16
  enableEvmHook: boolean;
13
17
  }
@@ -35,7 +35,10 @@ export interface QueryTokenPairRequest {
35
35
  * method.
36
36
  */
37
37
  export interface QueryTokenPairResponse {
38
- /** token_pairs returns the info about a registered token pair for the erc20 module */
38
+ /**
39
+ * token_pairs returns the info about a registered token pair for the erc20
40
+ * module
41
+ */
39
42
  tokenPair?: TokenPair;
40
43
  }
41
44
  /** QueryParamsRequest is the request type for the Query/Params RPC method. */
@@ -6,13 +6,16 @@ export declare const protobufPackage = "Switcheo.carbon.erc20";
6
6
  /** MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token */
7
7
  export interface MsgConvertCoin {
8
8
  /**
9
- * coin is a Cosmos coin whose denomination is registered in a token pair. The coin
10
- * amount defines the amount of coins to convert.
9
+ * coin is a Cosmos coin whose denomination is registered in a token pair. The
10
+ * coin amount defines the amount of coins to convert.
11
11
  */
12
12
  coin?: Coin;
13
13
  /** receiver is the hex address to receive ERC20 token */
14
14
  receiver: string;
15
- /** sender is the cosmos bech32 address from the owner of the given Cosmos coins */
15
+ /**
16
+ * sender is the cosmos bech32 address from the owner of the given Cosmos
17
+ * coins
18
+ */
16
19
  sender: string;
17
20
  }
18
21
  /** MsgConvertCoinResponse returns no fields */
@@ -23,13 +26,19 @@ export interface MsgConvertCoinResponse {
23
26
  * coin.
24
27
  */
25
28
  export interface MsgConvertERC20 {
26
- /** contract_address of an ERC20 token contract, that is registered in a token pair */
29
+ /**
30
+ * contract_address of an ERC20 token contract, that is registered in a token
31
+ * pair
32
+ */
27
33
  contractAddress: string;
28
34
  /** amount of ERC20 tokens to convert */
29
35
  amount: string;
30
36
  /** receiver is the bech32 address to receive native Cosmos coins */
31
37
  receiver: string;
32
- /** sender is the merged address (in bech32) of the erc20 account that contains the tokens to convert */
38
+ /**
39
+ * sender is the merged address (in bech32) of the erc20 account that contains
40
+ * the tokens to convert
41
+ */
33
42
  sender: string;
34
43
  }
35
44
  /** MsgConvertERC20Response returns no fields */
@@ -52,7 +61,10 @@ export interface MsgUpdateParams {
52
61
  */
53
62
  export interface MsgUpdateParamsResponse {
54
63
  }
55
- /** MsgRegisterToken defines a Msg to register an existing token on the token mapping and deploys a new ERC20 contract for it */
64
+ /**
65
+ * MsgRegisterToken defines a Msg to register an existing token on the token
66
+ * mapping and deploys a new ERC20 contract for it
67
+ */
56
68
  export interface MsgRegisterToken {
57
69
  creator: string;
58
70
  denom: string;
@@ -61,7 +73,10 @@ export interface MsgRegisterTokenResponse {
61
73
  /** deployed contract */
62
74
  contractAddress: string;
63
75
  }
64
- /** MsgRegisterERC20 defines a Msg to register an existing erc20 contract on the token mapping and creates a new cosmos token for it */
76
+ /**
77
+ * MsgRegisterERC20 defines a Msg to register an existing erc20 contract on the
78
+ * token mapping and creates a new cosmos token for it
79
+ */
65
80
  export interface MsgRegisterERC20 {
66
81
  creator: string;
67
82
  contractAddress: string;
@@ -184,9 +199,15 @@ export declare const MsgUpdateEVMHookEnabledResponse: {
184
199
  };
185
200
  /** Msg defines the erc20 Msg service. */
186
201
  export interface Msg {
187
- /** RegisterToken registers an existing token on the token mapping and deploys a new ERC20 contract for it */
202
+ /**
203
+ * RegisterToken registers an existing token on the token mapping and deploys
204
+ * a new ERC20 contract for it
205
+ */
188
206
  RegisterToken(request: MsgRegisterToken): Promise<MsgRegisterTokenResponse>;
189
- /** RegisterERC20 registers an existing erc20 contract on the token mapping and creates a new cosmos token for it */
207
+ /**
208
+ * RegisterERC20 registers an existing erc20 contract on the token mapping and
209
+ * creates a new cosmos token for it
210
+ */
190
211
  RegisterERC20(request: MsgRegisterERC20): Promise<MsgRegisterERC20Response>;
191
212
  /**
192
213
  * ConvertCoin mints a ERC20 representation of the native Cosmos coin denom
@@ -203,8 +224,9 @@ export interface Msg {
203
224
  /** UpdateEVMHookEnabled updates whether erc20 module functions are enabled */
204
225
  UpdateEVMHookEnabled(request: MsgUpdateEVMHookEnabled): Promise<MsgUpdateEVMHookEnabledResponse>;
205
226
  /**
206
- * UpdateParams defined a governance operation for updating the x/erc20 module parameters.
207
- * The authority is hard-coded to the Cosmos SDK x/gov module account
227
+ * UpdateParams defined a governance operation for updating the x/erc20 module
228
+ * parameters. The authority is hard-coded to the Cosmos SDK x/gov module
229
+ * account
208
230
  */
209
231
  UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
210
232
  }
@@ -5,7 +5,10 @@ export declare const protobufPackage = "Switcheo.carbon.evmmerge";
5
5
  export interface MsgSignData {
6
6
  /** signer is the sdk.AccAddress of the message signer */
7
7
  signer: Uint8Array;
8
- /** data represents the raw bytes of the content that is signed (text, json, etc) */
8
+ /**
9
+ * data represents the raw bytes of the content that is signed (text, json,
10
+ * etc)
11
+ */
9
12
  data: Uint8Array;
10
13
  }
11
14
  export declare const MsgSignData: {
@@ -3,11 +3,17 @@ import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
4
4
  import { EthCosmosAddressWrapper } from "./address";
5
5
  export declare const protobufPackage = "Switcheo.carbon.evmmerge";
6
- /** QueryMappedAddressRequest is the request type for the Query/MappedAddress RPC method. */
6
+ /**
7
+ * QueryMappedAddressRequest is the request type for the Query/MappedAddress RPC
8
+ * method.
9
+ */
7
10
  export interface QueryMappedAddressRequest {
8
11
  address: string;
9
12
  }
10
- /** QueryMappedAddressResponse is the response type for the Query/MappedAddress RPC method. */
13
+ /**
14
+ * QueryMappedAddressResponse is the response type for the Query/MappedAddress
15
+ * RPC method.
16
+ */
11
17
  export interface QueryMappedAddressResponse {
12
18
  mappedAddress: string;
13
19
  }
@@ -52,9 +58,15 @@ export interface Query {
52
58
  MappedAddress(request: QueryMappedAddressRequest): Promise<QueryMappedAddressResponse>;
53
59
  /** MappedAddressAll queries all address mappings. */
54
60
  MappedAddressAll(request: QueryAllMappedAddressRequest): Promise<QueryAllMappedAddressResponse>;
55
- /** MappedEvmAddress queries mapped evm address mappings for a given cosmos address. */
61
+ /**
62
+ * MappedEvmAddress queries mapped evm address mappings for a given cosmos
63
+ * address.
64
+ */
56
65
  MappedEvmAddress(request: QueryMappedAddressRequest): Promise<QueryMappedAddressResponse>;
57
- /** MappedCosmosAddress queries mapped cosmos address mappings for a given eth address. */
66
+ /**
67
+ * MappedCosmosAddress queries mapped cosmos address mappings for a given eth
68
+ * address.
69
+ */
58
70
  MappedCosmosAddress(request: QueryMappedAddressRequest): Promise<QueryMappedAddressResponse>;
59
71
  }
60
72
  export declare class QueryClientImpl implements Query {
@@ -2,9 +2,15 @@ import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  export declare const protobufPackage = "Switcheo.carbon.evmmerge";
4
4
  export interface MsgMergeAccount {
5
- /** bech32 ETH address if coming from EIP-712, bech32 cosmos address if coming from typical cosmos tx */
5
+ /**
6
+ * bech32 ETH address if coming from EIP-712, bech32 cosmos address if coming
7
+ * from typical cosmos tx
8
+ */
6
9
  creator: string;
7
- /** Compressed Public key in hex eg 034a1e1f95ebb49bc59b3c2d60afbb4c2fb2b77cd1f1e2322123fdacaa3d12f7a9 */
10
+ /**
11
+ * Compressed Public key in hex eg
12
+ * 034a1e1f95ebb49bc59b3c2d60afbb4c2fb2b77cd1f1e2322123fdacaa3d12f7a9
13
+ */
8
14
  pubKey: string;
9
15
  /** hex representation of the pub key signature */
10
16
  pubKeySig?: string;
@@ -8,7 +8,10 @@ export interface GenesisState {
8
8
  consensusPeers: {
9
9
  [key: string]: ConsensusPeers;
10
10
  };
11
- /** Header hash for blocks where consensus public keys is updated for PoS chain by chain ID. */
11
+ /**
12
+ * Header hash for blocks where consensus public keys is updated for PoS chain
13
+ * by chain ID.
14
+ */
12
15
  checkpointHashes: {
13
16
  [key: string]: Uint8Array;
14
17
  };
@@ -16,7 +19,10 @@ export interface GenesisState {
16
19
  zionConsensusPeers: {
17
20
  [key: string]: ZionConsensusPeers;
18
21
  };
19
- /** Header Hash for Zion blocks where consensus public keys is updated for PoS chain by chain ID. */
22
+ /**
23
+ * Header Hash for Zion blocks where consensus public keys is updated for PoS
24
+ * chain by chain ID.
25
+ */
20
26
  zionCheckpointHashes: {
21
27
  [key: string]: Uint8Array;
22
28
  };
@@ -1,7 +1,10 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  export declare const protobufPackage = "Switcheo.carbon.inflation";
4
- /** MintData represents the parameters by the inflation module. */
4
+ /**
5
+ * MintData represents the parameters by the inflation module.
6
+ * TODO: CLEAN UP IN SEPARATE PR
7
+ */
5
8
  export interface MintData {
6
9
  /** TODO: deprecated, set to reserved after migration */
7
10
  legacyFirstBlockTime: Long;
@@ -2,7 +2,7 @@ import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  export declare const protobufPackage = "Switcheo.carbon.insurance";
4
4
  /**
5
- * TODO: ADD CORRECT THINGS
5
+ * TODO: CLEAN UP IN SEPARATE PR
6
6
  * BlockHeight int64 `json:"block_height"`
7
7
  * BlockCreatedAt time.Time `json:"block_created_at"`
8
8
  * Amount sdkmath.Int `json:"amount"`
@@ -7,8 +7,9 @@ export declare const protobufPackage = "Switcheo.carbon.market";
7
7
  * the greatest required stake which is fulfilled by the user is used.
8
8
  *
9
9
  * There must always be at least one fee tier for the `spot` and `futures`
10
- * `market_type` fee category that has 0 `required_stake` and no `whitelisted_address` so
11
- * that it can act as the base fee for that market type.
10
+ * `market_type` fee category that has 0 `required_stake` and no
11
+ * `whitelisted_address` so that it can act as the base fee for that market
12
+ * type.
12
13
  */
13
14
  export interface FeeStructure {
14
15
  feeCategory?: FeeCategory;
@@ -29,17 +30,22 @@ export interface FeeCategory {
29
30
  * Can be used to override the `market_type` based fee to give
30
31
  * specific markets a certain fee discount.
31
32
  * Note that if there is already a fee tier for the user's stake that
32
- * results in a lower fee for a given trade, that fee structure will be used instead.
33
+ * results in a lower fee for a given trade, that fee structure will be used
34
+ * instead.
33
35
  */
34
36
  marketId: string;
35
37
  /**
36
38
  * Optional parameter that can be used to give certain addresses
37
39
  * additional fee tier(s) for the given `market_type` or `market_id`.
38
- * Can only be used to reduce fees, not increase them. Can be used with module accounts.
40
+ * Can only be used to reduce fees, not increase them. Can be used with module
41
+ * accounts.
39
42
  */
40
43
  whitelistedAddress: string;
41
44
  }
42
- /** A fee tier represents the trading fee for a user that meets the required stake. */
45
+ /**
46
+ * A fee tier represents the trading fee for a user that meets the required
47
+ * stake.
48
+ */
43
49
  export interface FeeTier {
44
50
  /** The required stake for a user for the fee tier to apply. */
45
51
  requiredStake: string;
@@ -58,10 +58,16 @@ export interface QueryParamsResponse {
58
58
  /** params holds all the parameters of this module. */
59
59
  params?: Params;
60
60
  }
61
- /** QueryControlledParamsRequest is request type for the Query/ControlledParams RPC method. */
61
+ /**
62
+ * QueryControlledParamsRequest is request type for the Query/ControlledParams
63
+ * RPC method.
64
+ */
62
65
  export interface QueryControlledParamsRequest {
63
66
  }
64
- /** QueryControlledParamsResponse is response type for the Query/ControlledParams RPC method. */
67
+ /**
68
+ * QueryControlledParamsResponse is response type for the Query/ControlledParams
69
+ * RPC method.
70
+ */
65
71
  export interface QueryControlledParamsResponse {
66
72
  /** params holds all the parameters of this module. */
67
73
  controlledParams?: ControlledParams;
@@ -15,16 +15,23 @@ export interface MarketConfig {
15
15
  * ratio where 0 < max_liquidity_ratio <= 1
16
16
  */
17
17
  maxLiquidityRatio: string;
18
- /** borrow_fee_multiplier controls the multiplier for the base borrow fee charged on the pool. riskier markets should have a higher multiplier */
18
+ /**
19
+ * borrow_fee_multiplier controls the multiplier for the base borrow fee
20
+ * charged on the pool. riskier markets should have a higher multiplier
21
+ */
19
22
  borrowFeeMultiplier: string;
20
23
  /**
21
24
  * Available modes:
22
25
  * active - market is active for quoting
23
- * paused - open quotes are cancelled, current positions are held, no new quotes
24
- * close_only - quotes will be open only on the closing side. borrow fees are increased?
26
+ * paused - open quotes are cancelled, current positions are held, no new
27
+ * quotes close_only - quotes will be open only on the closing side. borrow
28
+ * fees are increased?
25
29
  */
26
30
  mode: string;
27
- /** represents the shape of quoting for each side against [0] index price, [1+] prev quotes */
31
+ /**
32
+ * represents the shape of quoting for each side against [0] index price, [1+]
33
+ * prev quotes
34
+ */
28
35
  quoteShape: Quote[];
29
36
  }
30
37
  export interface UpdateMarketConfigParams {
@@ -33,12 +40,18 @@ export interface UpdateMarketConfigParams {
33
40
  mode?: string;
34
41
  quoteShape: Quote[];
35
42
  }
36
- /** MarketUtilizationRateSnapshot represents the utilization rate of a market at a given timestamp */
43
+ /**
44
+ * MarketUtilizationRateSnapshot represents the utilization rate of a market at
45
+ * a given timestamp
46
+ */
37
47
  export interface MarketUtilizationRateSnapshot {
38
48
  timestamp?: Date;
39
49
  utilizationRate: string;
40
50
  }
41
- /** TWAMarketUtilizationRate represents the calculated TWA utilization rate of a market */
51
+ /**
52
+ * TWAMarketUtilizationRate represents the calculated TWA utilization rate of a
53
+ * market
54
+ */
42
55
  export interface TWAMarketUtilizationRate {
43
56
  lastUpdatedAt?: Date;
44
57
  twaUtilizationRate: string;
@@ -10,7 +10,10 @@ export interface Params {
10
10
  quoteExpiryDuration?: Duration;
11
11
  /** interval to take market utilization snapshot, e.g. every 60 seconds */
12
12
  marketUtilizationSnapshotInterval?: Duration;
13
- /** time duration window used to calculate the TWA market utilization e.g. last 24 hours */
13
+ /**
14
+ * time duration window used to calculate the TWA market utilization e.g. last
15
+ * 24 hours
16
+ */
14
17
  maxMarketUtilizationSnapshotWindow?: Duration;
15
18
  navPerShareSnapshots: Long;
16
19
  navPerShareSnapshotInterval?: Duration;
@@ -10,7 +10,10 @@ export interface Pool {
10
10
  name: string;
11
11
  /** deposit_denom for nav token that will be used to provide liquidity */
12
12
  depositDenom: string;
13
- /** auto-generated denom for the share token that can be used to redeem deposited token */
13
+ /**
14
+ * auto-generated denom for the share token that can be used to redeem
15
+ * deposited token
16
+ */
14
17
  shareDenom: string;
15
18
  /** auto-created address of the vault that stores the tokens */
16
19
  vaultAddress: string;
@@ -30,7 +33,10 @@ export interface UpdatePoolParams {
30
33
  withdrawalFee: string;
31
34
  baseBorrowFeePerFundingInterval: string;
32
35
  }
33
- /** PoolDetails used for for querying. same as Pool but appended with registered_markets */
36
+ /**
37
+ * PoolDetails used for for querying. same as Pool but appended with
38
+ * registered_markets
39
+ */
34
40
  export interface PoolDetails {
35
41
  pool?: Pool;
36
42
  registeredMarkets: MarketConfig[];
@@ -4,7 +4,7 @@ export { DelegateAllianceEvent, UndelegateAllianceEvent, RedelegateAllianceEvent
4
4
  export { ValidatorInfoState, RedelegationState, UndelegationState, RewardWeightChangeSnapshotState } from "./genesis";
5
5
  export { MsgCreateAllianceProposal, MsgUpdateAllianceProposal, MsgDeleteAllianceProposal } from "./gov";
6
6
  export { Params, RewardHistory } from "./params";
7
- export { QueryParamsRequest, QueryParamsResponse, QueryAlliancesRequest, QueryAlliancesResponse, QueryAllianceRequest, QueryAllianceResponse, QueryIBCAllianceRequest, QueryAllianceValidatorRequest, QueryAllAllianceValidatorsRequest, QueryAllAlliancesDelegationsRequest, QueryAlliancesDelegationsRequest, QueryAlliancesDelegationByValidatorRequest, DelegationResponse, QueryAlliancesDelegationsResponse, QueryAllianceDelegationRequest, QueryIBCAllianceDelegationRequest, QueryAllianceDelegationResponse, QueryAllianceDelegationRewardsRequest, QueryIBCAllianceDelegationRewardsRequest, QueryAllianceDelegationRewardsResponse, QueryAllianceValidatorResponse, QueryAllianceValidatorsResponse, QueryAllianceUnbondingsByDenomAndDelegatorRequest, QueryAllianceUnbondingsByDenomAndDelegatorResponse, QueryAllianceUnbondingsRequest, QueryAllianceUnbondingsResponse, QueryAllianceRedelegationsRequest, QueryAllianceRedelegationsResponse } from "./query";
7
+ export { QueryParamsRequest, QueryParamsResponse, QueryAlliancesRequest, QueryAlliancesResponse, QueryAllianceRequest, QueryAllianceResponse, QueryAllianceValidatorRequest, QueryAllAllianceValidatorsRequest, QueryAllAlliancesDelegationsRequest, QueryAlliancesDelegationsRequest, QueryAlliancesDelegationByValidatorRequest, DelegationResponse, QueryAlliancesDelegationsResponse, QueryAllianceDelegationRequest, QueryAllianceDelegationResponse, QueryAllianceDelegationRewardsRequest, QueryAllianceDelegationRewardsResponse, QueryAllianceValidatorResponse, QueryAllianceValidatorsResponse, QueryAllianceUnbondingsByDelegatorRequest, QueryAllianceUnbondingsByDelegatorResponse, QueryAllianceUnbondingsByDenomAndDelegatorRequest, QueryAllianceUnbondingsByDenomAndDelegatorResponse, QueryAllianceUnbondingsRequest, QueryAllianceUnbondingsResponse, QueryAllianceRedelegationsRequest, QueryAllianceRedelegationsResponse, QueryAllianceRedelegationsByDelegatorRequest, QueryAllianceRedelegationsByDelegatorResponse } from "./query";
8
8
  export { QueuedRedelegation, Redelegation, RedelegationEntry } from "./redelegations";
9
9
  export { MsgDelegate, MsgDelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgRedelegate, MsgRedelegateResponse, MsgClaimDelegationRewards, MsgClaimDelegationRewardsResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgCreateAlliance, MsgCreateAllianceResponse, MsgUpdateAlliance, MsgUpdateAllianceResponse, MsgDeleteAlliance, MsgDeleteAllianceResponse } from "./tx";
10
10
  export { UnbondingDelegation } from "./unbonding";