@cheqd/sdk-esm 5.3.7-develop.1 → 5.4.0-develop.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 (179) hide show
  1. package/build/cjs/src/index.d.ts +142 -0
  2. package/build/cjs/src/index.d.ts.map +1 -0
  3. package/build/cjs/src/index.js +184 -0
  4. package/build/cjs/src/index.js.map +1 -0
  5. package/build/cjs/src/modules/_.d.ts +81 -0
  6. package/build/cjs/src/modules/_.d.ts.map +1 -0
  7. package/build/cjs/src/modules/_.js +93 -0
  8. package/build/cjs/src/modules/_.js.map +1 -0
  9. package/build/cjs/src/modules/did.d.ts +488 -0
  10. package/build/cjs/src/modules/did.d.ts.map +1 -0
  11. package/build/cjs/src/modules/did.js +1249 -0
  12. package/build/cjs/src/modules/did.js.map +1 -0
  13. package/build/cjs/src/modules/feeabstraction.d.ts +429 -0
  14. package/build/cjs/src/modules/feeabstraction.d.ts.map +1 -0
  15. package/build/cjs/src/modules/feeabstraction.js +474 -0
  16. package/build/cjs/src/modules/feeabstraction.js.map +1 -0
  17. package/build/cjs/src/modules/feemarket.d.ts +244 -0
  18. package/build/cjs/src/modules/feemarket.d.ts.map +1 -0
  19. package/build/cjs/src/modules/feemarket.js +297 -0
  20. package/build/cjs/src/modules/feemarket.js.map +1 -0
  21. package/build/cjs/src/modules/oracle.d.ts +563 -0
  22. package/build/cjs/src/modules/oracle.d.ts.map +1 -0
  23. package/build/cjs/src/modules/oracle.js +784 -0
  24. package/build/cjs/src/modules/oracle.js.map +1 -0
  25. package/build/cjs/src/modules/resource.d.ts +330 -0
  26. package/build/cjs/src/modules/resource.d.ts.map +1 -0
  27. package/build/cjs/src/modules/resource.js +556 -0
  28. package/build/cjs/src/modules/resource.js.map +1 -0
  29. package/build/cjs/src/querier.d.ts +62 -0
  30. package/build/cjs/src/querier.d.ts.map +1 -0
  31. package/build/cjs/src/querier.js +87 -0
  32. package/build/cjs/src/querier.js.map +1 -0
  33. package/build/cjs/src/registry.d.ts +18 -0
  34. package/build/cjs/src/registry.d.ts.map +1 -0
  35. package/build/cjs/src/registry.js +23 -0
  36. package/build/cjs/src/registry.js.map +1 -0
  37. package/build/cjs/src/signer.d.ts +250 -0
  38. package/build/cjs/src/signer.d.ts.map +1 -0
  39. package/build/cjs/src/signer.js +617 -0
  40. package/build/cjs/src/signer.js.map +1 -0
  41. package/build/cjs/src/types.d.ts +221 -0
  42. package/build/cjs/src/types.d.ts.map +1 -0
  43. package/build/cjs/src/types.js.map +1 -0
  44. package/build/cjs/src/utils.d.ts +233 -0
  45. package/build/cjs/src/utils.d.ts.map +1 -0
  46. package/build/cjs/src/utils.js +571 -0
  47. package/build/cjs/src/utils.js.map +1 -0
  48. package/build/{index.d.ts → esm/src/index.d.ts} +7 -3
  49. package/build/esm/src/index.d.ts.map +1 -0
  50. package/build/{index.js → esm/src/index.js} +3 -1
  51. package/build/esm/src/index.js.map +1 -0
  52. package/build/esm/src/modules/_.d.ts.map +1 -0
  53. package/build/esm/src/modules/_.js.map +1 -0
  54. package/build/{modules → esm/src/modules}/did.d.ts +109 -7
  55. package/build/esm/src/modules/did.d.ts.map +1 -0
  56. package/build/{modules → esm/src/modules}/did.js +212 -6
  57. package/build/esm/src/modules/did.js.map +1 -0
  58. package/build/esm/src/modules/feeabstraction.d.ts.map +1 -0
  59. package/build/esm/src/modules/feeabstraction.js.map +1 -0
  60. package/build/esm/src/modules/feemarket.d.ts.map +1 -0
  61. package/build/esm/src/modules/feemarket.js.map +1 -0
  62. package/build/esm/src/modules/oracle.d.ts +563 -0
  63. package/build/esm/src/modules/oracle.d.ts.map +1 -0
  64. package/build/esm/src/modules/oracle.js +784 -0
  65. package/build/esm/src/modules/oracle.js.map +1 -0
  66. package/build/{modules → esm/src/modules}/resource.d.ts +132 -6
  67. package/build/esm/src/modules/resource.d.ts.map +1 -0
  68. package/build/esm/src/modules/resource.js +556 -0
  69. package/build/esm/src/modules/resource.js.map +1 -0
  70. package/build/esm/src/querier.d.ts.map +1 -0
  71. package/build/esm/src/querier.js.map +1 -0
  72. package/build/esm/src/registry.d.ts.map +1 -0
  73. package/build/esm/src/registry.js.map +1 -0
  74. package/build/esm/src/signer.d.ts.map +1 -0
  75. package/build/esm/src/signer.js.map +1 -0
  76. package/build/{types → esm/src}/types.d.ts +27 -1
  77. package/build/esm/src/types.d.ts.map +1 -0
  78. package/build/esm/src/types.js +43 -0
  79. package/build/esm/src/types.js.map +1 -0
  80. package/build/esm/src/utils.d.ts.map +1 -0
  81. package/build/esm/src/utils.js.map +1 -0
  82. package/build/types/cjs/src/index.d.ts +142 -0
  83. package/build/types/cjs/src/index.d.ts.map +1 -0
  84. package/build/types/cjs/src/modules/_.d.ts +81 -0
  85. package/build/types/cjs/src/modules/_.d.ts.map +1 -0
  86. package/build/types/cjs/src/modules/did.d.ts +488 -0
  87. package/build/types/cjs/src/modules/did.d.ts.map +1 -0
  88. package/build/types/cjs/src/modules/feeabstraction.d.ts +429 -0
  89. package/build/types/cjs/src/modules/feeabstraction.d.ts.map +1 -0
  90. package/build/types/cjs/src/modules/feemarket.d.ts +244 -0
  91. package/build/types/cjs/src/modules/feemarket.d.ts.map +1 -0
  92. package/build/types/cjs/src/modules/oracle.d.ts +563 -0
  93. package/build/types/cjs/src/modules/oracle.d.ts.map +1 -0
  94. package/build/types/cjs/src/modules/resource.d.ts +330 -0
  95. package/build/types/cjs/src/modules/resource.d.ts.map +1 -0
  96. package/build/types/cjs/src/querier.d.ts +62 -0
  97. package/build/types/cjs/src/querier.d.ts.map +1 -0
  98. package/build/types/cjs/src/registry.d.ts +18 -0
  99. package/build/types/cjs/src/registry.d.ts.map +1 -0
  100. package/build/types/cjs/src/signer.d.ts +250 -0
  101. package/build/types/cjs/src/signer.d.ts.map +1 -0
  102. package/build/types/cjs/src/types.d.ts +221 -0
  103. package/build/types/cjs/src/types.d.ts.map +1 -0
  104. package/build/types/cjs/src/utils.d.ts +233 -0
  105. package/build/types/cjs/src/utils.d.ts.map +1 -0
  106. package/build/types/{index.d.ts → esm/src/index.d.ts} +7 -3
  107. package/build/types/esm/src/index.d.ts.map +1 -0
  108. package/build/types/esm/src/modules/_.d.ts.map +1 -0
  109. package/build/types/{modules → esm/src/modules}/did.d.ts +109 -7
  110. package/build/types/esm/src/modules/did.d.ts.map +1 -0
  111. package/build/types/esm/src/modules/feeabstraction.d.ts.map +1 -0
  112. package/build/types/esm/src/modules/feemarket.d.ts.map +1 -0
  113. package/build/types/esm/src/modules/oracle.d.ts +563 -0
  114. package/build/types/esm/src/modules/oracle.d.ts.map +1 -0
  115. package/build/types/{modules → esm/src/modules}/resource.d.ts +132 -6
  116. package/build/types/esm/src/modules/resource.d.ts.map +1 -0
  117. package/build/types/esm/src/querier.d.ts.map +1 -0
  118. package/build/types/esm/src/registry.d.ts.map +1 -0
  119. package/build/types/esm/src/signer.d.ts.map +1 -0
  120. package/build/{types.d.ts → types/esm/src/types.d.ts} +27 -1
  121. package/build/types/esm/src/types.d.ts.map +1 -0
  122. package/build/types/esm/src/utils.d.ts.map +1 -0
  123. package/package.json +2 -2
  124. package/build/index.d.ts.map +0 -1
  125. package/build/index.js.map +0 -1
  126. package/build/modules/_.d.ts.map +0 -1
  127. package/build/modules/_.js.map +0 -1
  128. package/build/modules/did.d.ts.map +0 -1
  129. package/build/modules/did.js.map +0 -1
  130. package/build/modules/feeabstraction.d.ts.map +0 -1
  131. package/build/modules/feeabstraction.js.map +0 -1
  132. package/build/modules/feemarket.d.ts.map +0 -1
  133. package/build/modules/feemarket.js.map +0 -1
  134. package/build/modules/resource.d.ts.map +0 -1
  135. package/build/modules/resource.js +0 -297
  136. package/build/modules/resource.js.map +0 -1
  137. package/build/querier.d.ts.map +0 -1
  138. package/build/querier.js.map +0 -1
  139. package/build/registry.d.ts.map +0 -1
  140. package/build/registry.js.map +0 -1
  141. package/build/signer.d.ts.map +0 -1
  142. package/build/signer.js.map +0 -1
  143. package/build/types/index.d.ts.map +0 -1
  144. package/build/types/modules/_.d.ts.map +0 -1
  145. package/build/types/modules/did.d.ts.map +0 -1
  146. package/build/types/modules/feeabstraction.d.ts.map +0 -1
  147. package/build/types/modules/feemarket.d.ts.map +0 -1
  148. package/build/types/modules/resource.d.ts.map +0 -1
  149. package/build/types/querier.d.ts.map +0 -1
  150. package/build/types/registry.d.ts.map +0 -1
  151. package/build/types/signer.d.ts.map +0 -1
  152. package/build/types/types.d.ts.map +0 -1
  153. package/build/types/utils.d.ts.map +0 -1
  154. package/build/types.d.ts.map +0 -1
  155. package/build/types.js.map +0 -1
  156. package/build/utils.d.ts.map +0 -1
  157. package/build/utils.js.map +0 -1
  158. /package/build/{types.js → cjs/src/types.js} +0 -0
  159. /package/build/{modules → esm/src/modules}/_.d.ts +0 -0
  160. /package/build/{modules → esm/src/modules}/_.js +0 -0
  161. /package/build/{modules → esm/src/modules}/feeabstraction.d.ts +0 -0
  162. /package/build/{modules → esm/src/modules}/feeabstraction.js +0 -0
  163. /package/build/{modules → esm/src/modules}/feemarket.d.ts +0 -0
  164. /package/build/{modules → esm/src/modules}/feemarket.js +0 -0
  165. /package/build/{querier.d.ts → esm/src/querier.d.ts} +0 -0
  166. /package/build/{querier.js → esm/src/querier.js} +0 -0
  167. /package/build/{registry.d.ts → esm/src/registry.d.ts} +0 -0
  168. /package/build/{registry.js → esm/src/registry.js} +0 -0
  169. /package/build/{signer.d.ts → esm/src/signer.d.ts} +0 -0
  170. /package/build/{signer.js → esm/src/signer.js} +0 -0
  171. /package/build/{types → esm/src}/utils.d.ts +0 -0
  172. /package/build/{utils.js → esm/src/utils.js} +0 -0
  173. /package/build/types/{modules → esm/src/modules}/_.d.ts +0 -0
  174. /package/build/types/{modules → esm/src/modules}/feeabstraction.d.ts +0 -0
  175. /package/build/types/{modules → esm/src/modules}/feemarket.d.ts +0 -0
  176. /package/build/types/{querier.d.ts → esm/src/querier.d.ts} +0 -0
  177. /package/build/types/{registry.d.ts → esm/src/registry.d.ts} +0 -0
  178. /package/build/types/{signer.d.ts → esm/src/signer.d.ts} +0 -0
  179. /package/build/{utils.d.ts → types/esm/src/utils.d.ts} +0 -0
@@ -0,0 +1,563 @@
1
+ import { QueryActiveExchangeRatesResponse, QueryAggregatePrevoteResponse, QueryAggregatePrevotesResponse, QueryAggregateVotesResponse, QueryEMAResponse, QueryExchangeRatesResponse, QueryFeederDelegationResponse, QueryMedianDeviationsResponse, QueryMediansResponse, QueryMissCounterResponse, QueryParamsResponse, QuerySlashWindowResponse, QuerySMAResponse, QueryValidatorRewardSetResponse, QueryWMAResponse, QueryAggregateVoteResponse, MsgAggregateExchangeRatePrevote, MsgAggregateExchangeRateVote, MsgDelegateFeedConsent, MsgLegacyGovUpdateParams, MsgGovUpdateParams, MsgGovAddDenoms, MsgGovRemoveCurrencyPairProviders, MsgGovRemoveCurrencyDeviationThresholds, MsgGovCancelUpdateParamPlan, ConvertUSDCtoCHEQResponse } from '@cheqd/ts-proto/cheqd/oracle/v2/index.js';
2
+ import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
3
+ import { AbstractCheqdSDKModule, MinimalImportableCheqdSDKModule } from './_.js';
4
+ import { DeliverTxResponse, QueryClient } from '@cosmjs/stargate';
5
+ import { DidStdFee, IContext, QueryExtensionSetup } from '../types.js';
6
+ import { CheqdQuerier } from '../querier.js';
7
+ import { CheqdSigningStargateClient } from '../signer.js';
8
+ import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin.js';
9
+ /** Default extension key for Oracle-related query operations */
10
+ export declare const defaultOracleExtensionKey: "oracle";
11
+ /**
12
+ * Protobuf message type for Oracle operations.
13
+ * Used for consistent message type identification across the module.
14
+ */
15
+ export declare const protobufLiterals: {
16
+ /** Request to fetch exchange rates for specific denoms. */
17
+ readonly QueryExchangeRates: "QueryExchangeRates";
18
+ /** Response containing the exchange rates payload. */
19
+ readonly QueryExchangeRatesResponse: "QueryExchangeRatesResponse";
20
+ /** Request to list all active exchange rate denoms. */
21
+ readonly QueryActiveExchangeRates: "QueryActiveExchangeRates";
22
+ /** Response providing the currently active exchange rate denoms. */
23
+ readonly QueryActiveExchangeRatesResponse: "QueryActiveExchangeRatesResponse";
24
+ /** Request to retrieve the feeder delegation for a validator. */
25
+ readonly QueryFeederDelegation: "QueryFeederDelegation";
26
+ /** Response with feeder delegation details. */
27
+ readonly QueryFeederDelegationResponse: "QueryFeederDelegationResponse";
28
+ /** Request to obtain a validator's miss counter. */
29
+ readonly QueryMissCounter: "QueryMissCounter";
30
+ /** Response returning the miss counter value. */
31
+ readonly QueryMissCounterResponse: "QueryMissCounterResponse";
32
+ /** Request to inspect the current slash window information. */
33
+ readonly QuerySlashWindow: "QuerySlashWindow";
34
+ /** Response detailing the slash window configuration. */
35
+ readonly QuerySlashWindowResponse: "QuerySlashWindowResponse";
36
+ /** Request for a validator's aggregate prevote. */
37
+ readonly QueryAggregatePrevote: "QueryAggregatePrevote";
38
+ /** Response containing the aggregate prevote. */
39
+ readonly QueryAggregatePrevoteResponse: "QueryAggregatePrevoteResponse";
40
+ /** Request for all aggregate prevotes on the network. */
41
+ readonly QueryAggregatePrevotes: "QueryAggregatePrevotes";
42
+ /** Response listing all aggregate prevotes. */
43
+ readonly QueryAggregatePrevotesResponse: "QueryAggregatePrevotesResponse";
44
+ /** Request for aggregate votes from a validator. */
45
+ readonly QueryAggregateVotes: "QueryAggregateVotes";
46
+ /** Response carrying aggregate votes. */
47
+ readonly QueryAggregateVotesResponse: "QueryAggregateVotesResponse";
48
+ /** Request to fetch the oracle module parameters. */
49
+ readonly QueryParams: "QueryParams";
50
+ /** Response returning the oracle module parameters. */
51
+ readonly QueryParamsResponse: "QueryParamsResponse";
52
+ /** Request for price medians across denoms. */
53
+ readonly QueryMedians: "QueryMedians";
54
+ /** Response containing price medians. */
55
+ readonly QueryMediansResponse: "QueryMediansResponse";
56
+ /** Request for median deviations to assess volatility. */
57
+ readonly QueryMedianDeviations: "QueryMedianDeviations";
58
+ /** Response returning median deviation values. */
59
+ readonly QueryMedianDeviationsResponse: "QueryMedianDeviationsResponse";
60
+ /** Request to fetch the validator reward set. */
61
+ readonly QueryValidatorRewardSet: "QueryValidatorRewardSet";
62
+ /** Response with validator reward set data. */
63
+ readonly QueryValidatorRewardSetResponse: "QueryValidatorRewardSetResponse";
64
+ /** Request for an exponential moving average price. */
65
+ readonly QueryEMARequest: "QueryEMARequest";
66
+ /** Response containing exponential moving average data. */
67
+ readonly QueryEMAResponse: "QueryEMAResponse";
68
+ /** Request for a weighted moving average price. */
69
+ readonly QueryWMARequest: "QueryWMARequest";
70
+ /** Response containing weighted moving average data. */
71
+ readonly QueryWMAResponse: "QueryWMAResponse";
72
+ /** Request for a simple moving average price. */
73
+ readonly QuerySMARequest: "QuerySMARequest";
74
+ /** Response containing simple moving average data. */
75
+ readonly QuerySMAResponse: "QuerySMAResponse";
76
+ /** Request to convert a USDC amount into CHEQ. */
77
+ readonly ConvertUSDCtoCHEQRequest: "ConvertUSDCtoCHEQRequest";
78
+ /** Response returning the converted CHEQ amount. */
79
+ readonly ConvertUSDCtoCHEQResponse: "ConvertUSDCtoCHEQResponse";
80
+ /** Message to submit an aggregate exchange rate prevote. */
81
+ readonly MsgAggregateExchangeRatePrevote: "MsgAggregateExchangeRatePrevote";
82
+ /** Message that defines the MsgAggregateExchangeRatePrevote response type. */
83
+ readonly MsgAggregateExchangeRatePrevoteResponse: "MsgAggregateExchangeRatePrevoteResponse";
84
+ /** Message to submit an aggregate exchange rate vote. */
85
+ readonly MsgAggregateExchangeRateVote: "MsgAggregateExchangeRateVote";
86
+ /** Message that defines the MsgAggregateExchangeRateVote response type. */
87
+ readonly MsgAggregateExchangeRateVoteResponse: "MsgAggregateExchangeRateVoteResponse";
88
+ /** Message to delegate oracle voting rights to another address. */
89
+ readonly MsgDelegateFeedConsent: "MsgDelegateFeedConsent";
90
+ /** Message that defines the MsgDelegateFeedConsent response type. */
91
+ readonly MsgDelegateFeedConsentResponse: "MsgDelegateFeedConsentResponse";
92
+ /** Message that defines the MsgLegacyGovUpdateParams request type. */
93
+ readonly MsgLegacyGovUpdateParams: "MsgLegacyGovUpdateParams";
94
+ /** Message that defines the MsgLegacyGovUpdateParams response type. */
95
+ readonly MsgLegacyGovUpdateParamsResponse: "MsgLegacyGovUpdateParamsResponse";
96
+ /** Message that defines the MsgGovUpdateParams request type. */
97
+ readonly MsgGovUpdateParams: "MsgGovUpdateParams";
98
+ /** Message that defines the MsgGovUpdateParams response type. */
99
+ readonly MsgGovUpdateParamsResponse: "MsgGovUpdateParamsResponse";
100
+ /** Message that defines the MsgGovAddDenoms request type. */
101
+ readonly MsgGovAddDenoms: "MsgGovAddDenoms";
102
+ /** Message that defines the MsgGovAddDenoms response type. */
103
+ readonly MsgGovAddDenomsResponse: "MsgGovAddDenomsResponse";
104
+ /** Message that defines the MsgGovRemoveCurrencyPairProviders request type. */
105
+ readonly MsgGovRemoveCurrencyPairProviders: "MsgGovRemoveCurrencyPairProviders";
106
+ /** Message that defines the MsgGovRemoveCurrencyPairProviders response type. */
107
+ readonly MsgGovRemoveCurrencyPairProvidersResponse: "MsgGovRemoveCurrencyPairProvidersResponse";
108
+ /** Message that defines the MsgGovRemoveCurrencyDeviationThresholds request type. */
109
+ readonly MsgGovRemoveCurrencyDeviationThresholds: "MsgGovRemoveCurrencyDeviationThresholds";
110
+ /** Message that defines the MsgGovRemoveCurrencyDeviationThresholds response type. */
111
+ readonly MsgGovRemoveCurrencyDeviationThresholdsResponse: "MsgGovRemoveCurrencyDeviationThresholdsResponse";
112
+ /** Message that defines the MsgGovCancelUpdateParamPlan request type. */
113
+ readonly MsgGovCancelUpdateParamPlan: "MsgGovCancelUpdateParamPlan";
114
+ /** Message that defines the MsgGovCancelUpdateParamPlan response type. */
115
+ readonly MsgGovCancelUpdateParamPlanResponse: "MsgGovCancelUpdateParamPlanResponse";
116
+ };
117
+ /** Type URL for MsgAggregateExchangeRatePrevote messages */
118
+ export declare const typeUrlMsgAggregateExchangeRatePrevote = "/cheqd.oracle.v2.MsgAggregateExchangeRatePrevote";
119
+ /** Type URL for MsgAggregateExchangeRatePrevoteResponse messages */
120
+ export declare const typeUrlMsgAggregateExchangeRatePrevoteResponse = "/cheqd.oracle.v2.MsgAggregateExchangeRatePrevoteResponse";
121
+ /** Type URL for MsgAggregateExchangeRateVote messages */
122
+ export declare const typeUrlMsgAggregateExchangeRateVote = "/cheqd.oracle.v2.MsgAggregateExchangeRateVote";
123
+ /** Type URL for MsgAggregateExchangeRateVoteResponse messages */
124
+ export declare const typeUrlMsgAggregateExchangeRateVoteResponse = "/cheqd.oracle.v2.MsgAggregateExchangeRateVoteResponse";
125
+ /** Type URL for MsgDelegateFeedConsent messages */
126
+ export declare const typeUrlMsgDelegateFeedConsent = "/cheqd.oracle.v2.MsgDelegateFeedConsent";
127
+ /** Type URL for MsgDelegateFeedConsentResponse messages */
128
+ export declare const typeUrlMsgDelegateFeedConsentResponse = "/cheqd.oracle.v2.MsgDelegateFeedConsentResponse";
129
+ /** Type URL for MsgLegacyGovUpdateParams messages */
130
+ export declare const typeUrlMsgLegacyGovUpdateParams = "/cheqd.oracle.v2.MsgLegacyGovUpdateParams";
131
+ /** Type URL for MsgLegacyGovUpdateParamsResponse messages */
132
+ export declare const typeUrlMsgLegacyGovUpdateParamsResponse = "/cheqd.oracle.v2.MsgLegacyGovUpdateParamsResponse";
133
+ /** Type URL for MsgGovUpdateParams messages */
134
+ export declare const typeUrlMsgGovUpdateParams = "/cheqd.oracle.v2.MsgGovUpdateParams";
135
+ /** Type URL for MsgGovUpdateParamsResponse messages */
136
+ export declare const typeUrlMsgGovUpdateParamsResponse = "/cheqd.oracle.v2.MsgGovUpdateParamsResponse";
137
+ /** Type URL for MsgGovAddDenoms messages */
138
+ export declare const typeUrlMsgGovAddDenoms = "/cheqd.oracle.v2.MsgGovAddDenoms";
139
+ /** Type URL for MsgGovAddDenomsResponse messages */
140
+ export declare const typeUrlMsgGovAddDenomsResponse = "/cheqd.oracle.v2.MsgGovAddDenomsResponse";
141
+ /** Type URL for MsgGovRemoveCurrencyPairProviders messages */
142
+ export declare const typeUrlMsgGovRemoveCurrencyPairProviders = "/cheqd.oracle.v2.MsgGovRemoveCurrencyPairProviders";
143
+ /** Type URL for MsgGovRemoveCurrencyPairProvidersResponse messages */
144
+ export declare const typeUrlMsgGovRemoveCurrencyPairProvidersResponse = "/cheqd.oracle.v2.MsgGovRemoveCurrencyPairProvidersResponse";
145
+ /** Type URL for MsgGovRemoveCurrencyDeviationThresholds messages */
146
+ export declare const typeUrlMsgGovRemoveCurrencyDeviationThresholds = "/cheqd.oracle.v2.MsgGovRemoveCurrencyDeviationThresholds";
147
+ /** Type URL for MsgGovRemoveCurrencyDeviationThresholdsResponse messages */
148
+ export declare const typeUrlMsgGovRemoveCurrencyDeviationThresholdsResponse = "/cheqd.oracle.v2.MsgGovRemoveCurrencyDeviationThresholdsResponse";
149
+ /** Type URL for MsgGovCancelUpdateParamPlan messages */
150
+ export declare const typeUrlMsgGovCancelUpdateParamPlan = "/cheqd.oracle.v2.MsgGovCancelUpdateParamPlan";
151
+ /** Type URL for MsgGovCancelUpdateParamPlanResponse messages */
152
+ export declare const typeUrlMsgGovCancelUpdateParamPlanResponse = "/cheqd.oracle.v2.MsgGovCancelUpdateParamPlanResponse";
153
+ /**
154
+ * Encode object interface for MsgAggregateExchangeRatePrevote
155
+ */
156
+ export interface MsgAggregateExchangeRatePrevoteEncodeObject extends EncodeObject {
157
+ typeUrl: typeof typeUrlMsgAggregateExchangeRatePrevote;
158
+ value: Uint8Array;
159
+ }
160
+ /**
161
+ * Encode object interface for MsgAggregateExchangeRateVote
162
+ */
163
+ export interface MsgAggregateExchangeRateVoteEncodeObject extends EncodeObject {
164
+ typeUrl: typeof typeUrlMsgAggregateExchangeRateVote;
165
+ value: Uint8Array;
166
+ }
167
+ /**
168
+ * Encode object interface for MsgDelegateFeedConsent
169
+ */
170
+ export interface MsgDelegateFeedConsentEncodeObject extends EncodeObject {
171
+ typeUrl: typeof typeUrlMsgDelegateFeedConsent;
172
+ value: Uint8Array;
173
+ }
174
+ /**
175
+ * Encode object interface for MsgLegacyGovUpdateParams
176
+ */
177
+ export interface MsgLegacyGovUpdateParamsEncodeObject extends EncodeObject {
178
+ typeUrl: typeof typeUrlMsgLegacyGovUpdateParams;
179
+ value: Uint8Array;
180
+ }
181
+ /**
182
+ * Encode object interface for MsgGovUpdateParams
183
+ */
184
+ export interface MsgGovUpdateParamsEncodeObject extends EncodeObject {
185
+ typeUrl: typeof typeUrlMsgGovUpdateParams;
186
+ value: Uint8Array;
187
+ }
188
+ /**
189
+ * Encode object interface for MsgGovAddDenoms
190
+ */
191
+ export interface MsgGovAddDenomsEncodeObject extends EncodeObject {
192
+ typeUrl: typeof typeUrlMsgGovAddDenoms;
193
+ value: Uint8Array;
194
+ }
195
+ /**
196
+ * Encode object interface for MsgGovRemoveCurrencyPairProviders
197
+ */
198
+ export interface MsgGovRemoveCurrencyPairProvidersEncodeObject extends EncodeObject {
199
+ typeUrl: typeof typeUrlMsgGovRemoveCurrencyPairProviders;
200
+ value: Uint8Array;
201
+ }
202
+ /**
203
+ * Encode object interface for MsgGovRemoveCurrencyDeviationThresholds
204
+ */
205
+ export interface MsgGovRemoveCurrencyDeviationThresholdsEncodeObject extends EncodeObject {
206
+ typeUrl: typeof typeUrlMsgGovRemoveCurrencyDeviationThresholds;
207
+ value: Uint8Array;
208
+ }
209
+ /**
210
+ * Encode object interface for MsgGovCancelUpdateParamPlan
211
+ */
212
+ export interface MsgGovCancelUpdateParamPlanEncodeObject extends EncodeObject {
213
+ typeUrl: typeof typeUrlMsgGovCancelUpdateParamPlan;
214
+ value: Uint8Array;
215
+ }
216
+ /**
217
+ * Type guard function to check if an object is a MsgAggregateExchangeRatePrevoteEncodeObject
218
+ * @param obj - EncodeObject to check
219
+ * @returns True if the object is a MsgAggregateExchangeRatePrevoteEncodeObject, false otherwise
220
+ */
221
+ export declare function isMsgAggregateExchangeRatePrevoteEncodeObject(obj: EncodeObject): obj is MsgAggregateExchangeRatePrevoteEncodeObject;
222
+ /**
223
+ * Type guard function to check if an object is a MsgAggregateExchangeRateVoteEncodeObject
224
+ * @param obj - EncodeObject to check
225
+ * @returns True if the object is a MsgAggregateExchangeRateVoteEncodeObject, false otherwise
226
+ */
227
+ export declare function isMsgAggregateExchangeRateVoteEncodeObject(obj: EncodeObject): obj is MsgAggregateExchangeRateVoteEncodeObject;
228
+ /**
229
+ * Type guard function to check if an object is a MsgDelegateFeedConsentEncodeObject
230
+ * @param obj - EncodeObject to check
231
+ * @returns True if the object is a MsgDelegateFeedConsentEncodeObject, false otherwise
232
+ */
233
+ export declare function isMsgDelegateFeedConsentEncodeObject(obj: EncodeObject): obj is MsgDelegateFeedConsentEncodeObject;
234
+ /**
235
+ * Type guard function to check if an object is a MsgLegacyGovUpdateParamsEncodeObject
236
+ * @param obj - EncodeObject to check
237
+ * @returns True if the object is a MsgLegacyGovUpdateParamsEncodeObject, false otherwise
238
+ */
239
+ export declare function isMsgLegacyGovUpdateParamsEncodeObject(obj: EncodeObject): obj is MsgLegacyGovUpdateParamsEncodeObject;
240
+ /**
241
+ * Type guard function to check if an object is a MsgGovUpdateParamsEncodeObject
242
+ * @param obj - EncodeObject to check
243
+ * @returns True if the object is a MsgGovUpdateParamsEncodeObject, false otherwise
244
+ */
245
+ export declare function isMsgGovUpdateParamsEncodeObject(obj: EncodeObject): obj is MsgGovUpdateParamsEncodeObject;
246
+ /**
247
+ * Type guard function to check if an object is a MsgGovAddDenomsEncodeObject
248
+ * @param obj - EncodeObject to check
249
+ * @returns True if the object is a MsgGovAddDenomsEncodeObject, false otherwise
250
+ */
251
+ export declare function isMsgGovAddDenomsEncodeObject(obj: EncodeObject): obj is MsgGovAddDenomsEncodeObject;
252
+ /**
253
+ * Type guard function to check if an object is a MsgGovRemoveCurrencyPairProvidersEncodeObject
254
+ * @param obj - EncodeObject to check
255
+ * @returns True if the object is a MsgGovRemoveCurrencyPairProvidersEncodeObject, false otherwise
256
+ */
257
+ export declare function isMsgGovRemoveCurrencyPairProvidersEncodeObject(obj: EncodeObject): obj is MsgGovRemoveCurrencyPairProvidersEncodeObject;
258
+ /**
259
+ * Type guard function to check if an object is a MsgGovRemoveCurrencyDeviationThresholdsEncodeObject
260
+ * @param obj - EncodeObject to check
261
+ * @returns True if the object is a MsgGovRemoveCurrencyDeviationThresholdsEncodeObject, false otherwise
262
+ */
263
+ export declare function isMsgGovRemoveCurrencyDeviationThresholdsEncodeObject(obj: EncodeObject): obj is MsgGovRemoveCurrencyDeviationThresholdsEncodeObject;
264
+ /**
265
+ * Type guard function to check if an object is a MsgGovCancelUpdateParamPlanEncodeObject
266
+ * @param obj - EncodeObject to check
267
+ * @returns True if the object is a MsgGovCancelUpdateParamPlanEncodeObject, false otherwise
268
+ */
269
+ export declare function isMsgGovCancelUpdateParamPlanEncodeObject(obj: EncodeObject): obj is MsgGovCancelUpdateParamPlanEncodeObject;
270
+ /** Enumeration of WMA strategies */
271
+ export declare const WMAStrategies: {
272
+ /** Balanced (linear) strategy */
273
+ readonly BALANCED: "BALANCED";
274
+ /** Recent (weighted) strategy */
275
+ readonly RECENT: "RECENT";
276
+ /** Oldest (weighted) strategy */
277
+ readonly OLDEST: "OLDEST";
278
+ /** Custom weights strategy */
279
+ readonly CUSTOM: "CUSTOM";
280
+ };
281
+ /** Enumeration of moving averages */
282
+ export declare const MovingAverages: {
283
+ /** Exponential Moving Average */
284
+ readonly EMA: "ema";
285
+ /** Weighted Moving Average */
286
+ readonly WMA: "wma";
287
+ /** Simple Moving Average */
288
+ readonly SMA: "sma";
289
+ };
290
+ /** Type representing WMA strategies */
291
+ export type WMAStrategy = (typeof WMAStrategies)[keyof typeof WMAStrategies];
292
+ /** Type representing moving averages */
293
+ export type MovingAverage = (typeof MovingAverages)[keyof typeof MovingAverages];
294
+ /** Minimal importable version of the Oracle module for clean external interfaces */
295
+ export type MinimalImportableOracleModule = MinimalImportableCheqdSDKModule<OracleModule>;
296
+ /**
297
+ * Oracle extension interface for querier functionality.
298
+ * Provides methods for querying oracle exchange rates, moving averages and other oracle-related data.
299
+ */
300
+ export type OracleExtension = {
301
+ readonly [defaultOracleExtensionKey]: {
302
+ /** Queries the exchange rate for a given denom */
303
+ readonly queryExchangeRates: (denom: string) => Promise<QueryExchangeRatesResponse>;
304
+ /** Query all active exchange rate denoms */
305
+ readonly queryActiveExchangeRates: () => Promise<QueryActiveExchangeRatesResponse>;
306
+ /** Query feeder delegation for a validator */
307
+ readonly queryFeederDelegation: (validatorAddr: string) => Promise<QueryFeederDelegationResponse>;
308
+ /** Query miss counter for a validator */
309
+ readonly queryMissCounter: (validatorAddr: string) => Promise<QueryMissCounterResponse>;
310
+ /** Query current slash window information */
311
+ readonly querySlashWindow: () => Promise<QuerySlashWindowResponse>;
312
+ /** Query aggregate prevote for a validator */
313
+ readonly queryAggregatePrevote: (validatorAddr: string) => Promise<QueryAggregatePrevoteResponse>;
314
+ /** Query aggregate prevotes */
315
+ readonly queryAggregatePrevotes: () => Promise<QueryAggregatePrevotesResponse>;
316
+ /** Query aggregate vote for a validator */
317
+ readonly queryAggregateVote: (validatorAddr: string) => Promise<QueryAggregateVoteResponse>;
318
+ /** Query aggregate votes for a validator */
319
+ readonly queryAggregateVotes: (validatorAddr: string) => Promise<QueryAggregateVotesResponse>;
320
+ /** Query oracle module parameters */
321
+ readonly queryParams: () => Promise<QueryParamsResponse>;
322
+ /** Query price medians */
323
+ readonly queryMedians: (denom: string, numStamps: number) => Promise<QueryMediansResponse>;
324
+ /** Query price median deviations */
325
+ readonly queryMedianDeviations: (denom: string) => Promise<QueryMedianDeviationsResponse>;
326
+ /** Query validator reward set */
327
+ readonly queryValidatorRewardSet: () => Promise<QueryValidatorRewardSetResponse>;
328
+ /** Query exponential moving average price */
329
+ readonly queryEMA: (denom: string) => Promise<QueryEMAResponse>;
330
+ /** Query weighted moving average price */
331
+ readonly queryWMA: (denom: string, strategy?: WMAStrategy, weights?: bigint[]) => Promise<QueryWMAResponse>;
332
+ /** Query simple moving average price */
333
+ readonly querySMA: (denom: string) => Promise<QuerySMAResponse>;
334
+ /** Convert USD values to CHEQ */
335
+ readonly convertUSDtoCHEQ: (usdAmount: string, movingAverage: MovingAverage, wmaStrategy?: WMAStrategy, weights?: bigint[]) => Promise<ConvertUSDCtoCHEQResponse>;
336
+ };
337
+ };
338
+ /** Options to control how oracle governance messages are wrapped in MsgSubmitProposal. */
339
+ export interface OracleGovProposalOptions {
340
+ readonly deposit?: Coin[];
341
+ readonly metadata?: string;
342
+ readonly summary?: string;
343
+ readonly expedited?: boolean;
344
+ }
345
+ /** Sets up the Oracle extension for the querier client.
346
+ * Creates and configures the Oracle-specific query methods.
347
+ * @param base - Base QueryClient to extend
348
+ * @returns Configured Oracle extension with query methods
349
+ */
350
+ export declare const setupOracleExtension: (base: QueryClient) => OracleExtension;
351
+ /**
352
+ * Oracle Module class providing comprehensive access to Oracle functionalities.
353
+ * Handles both querying and transaction operations related to the Oracle module.
354
+ */
355
+ export declare class OracleModule extends AbstractCheqdSDKModule {
356
+ static readonly registryTypes: Iterable<[string, GeneratedType]>;
357
+ /** Base denomination tickers for Cheqd network Oracle */
358
+ static readonly baseDenomTickers: {
359
+ readonly CHEQ: "CHEQ";
360
+ readonly USDC: "USDC";
361
+ readonly USDT: "USDT";
362
+ };
363
+ /** Querier extension setup function for Oracle operations */
364
+ static readonly querierExtensionSetup: QueryExtensionSetup<OracleExtension>;
365
+ /** Querier instance with Oracle extension capabilities */
366
+ querier: CheqdQuerier & OracleExtension;
367
+ /**
368
+ * Constructs a new Oracle module instance.
369
+ *
370
+ * @param signer - Signing client for blockchain transactions
371
+ * @param querier - Querier client with Oracle extension for data retrieval
372
+ */
373
+ constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier & OracleExtension);
374
+ /**
375
+ * Gets the registry types for Oracle message encoding/decoding.
376
+ *
377
+ * @returns Iterable of [typeUrl, GeneratedType] pairs for the registry
378
+ */
379
+ getRegistryTypes(): Iterable<[string, GeneratedType]>;
380
+ /**
381
+ * Gets the querier extension setup for Oracle operations.
382
+ *
383
+ * @returns Query extension setup function for Oracle functionality
384
+ */
385
+ getQuerierExtensionSetup(): QueryExtensionSetup<OracleExtension>;
386
+ /**
387
+ * Queries the module parameters from the blockchain.
388
+ *
389
+ * @returns Promise resolving to the QueryParamsResponse containing module parameters
390
+ */
391
+ queryParams(): Promise<QueryParamsResponse>;
392
+ /**
393
+ * Queries the exchange rate for a specific denom.
394
+ * @param denom - The denomination to query the exchange rate for
395
+ * @returns Promise resolving to the QueryExchangeRatesResponse containing the exchange rate
396
+ */
397
+ queryExchangeRate(denom: string): Promise<QueryExchangeRatesResponse>;
398
+ /**
399
+ * Queries all active exchange rate denoms.
400
+ * @returns Promise resolving to the QueryActiveExchangeRatesResponse containing active denoms
401
+ */
402
+ queryActiveExchangeRates(): Promise<QueryActiveExchangeRatesResponse>;
403
+ /**
404
+ * Queries the Exponential Moving Average (EMA) for a given denom.
405
+ * @param denom - The denomination to query the EMA for
406
+ * @returns Promise resolving to the QueryEMAResponse containing the EMA price in string Decimal format
407
+ */
408
+ queryEMA(denom: string): Promise<QueryEMAResponse>;
409
+ /**
410
+ * Queries the Weighted Moving Average (WMA) for a given denom.
411
+ * @param denom - The denomination to query the WMA for
412
+ * @param strategy - Optional WMA strategy, defaults to 'BALANCED'
413
+ * @param weights - Optional custom weights for the WMA calculation
414
+ * @returns Promise resolving to the QueryWMAResponse containing the WMA price in string Decimal format
415
+ */
416
+ queryWMA(denom: string, strategy?: WMAStrategy, weights?: number[]): Promise<QueryWMAResponse>;
417
+ /**
418
+ * Queries the Simple Moving Average (SMA) for a given denom.
419
+ * @param denom - The denomination to query the SMA for
420
+ * @returns Promise resolving to the QuerySMAResponse containing the SMA price in string Decimal format
421
+ */
422
+ querySMA(denom: string): Promise<QuerySMAResponse>;
423
+ /**
424
+ * Converts a USD amount to CHEQ using the specified moving average type.
425
+ * @param usdAmount - The USD amount to convert
426
+ * @param movingAverage - The type of moving average to use for conversion
427
+ * @param wmaStrategy - Optional WMA strategy, defaults to 'BALANCED'
428
+ * @param weights - Optional custom weights for WMA calculation
429
+ * @returns Promise resolving to the ConvertUSDCtoCHEQResponse containing the converted CHEQ amount
430
+ */
431
+ convertUSDtoCHEQ(usdAmount: string, movingAverage: MovingAverage, wmaStrategy?: WMAStrategy, weights?: number[]): Promise<ConvertUSDCtoCHEQResponse>;
432
+ /**
433
+ * Broadcasts an aggregate exchange rate prevote transaction.
434
+ *
435
+ * @param payload - Message payload describing the prevote
436
+ * @param address - Address responsible for paying the transaction fees
437
+ * @param fee - Optional fee configuration, defaults to automatic calculation
438
+ * @param memo - Optional transaction memo
439
+ * @param context - Optional SDK context to lazily resolve signer or wallet
440
+ * @returns Promise resolving to the DeliverTxResponse
441
+ */
442
+ aggregateExchangeRatePrevoteTx(payload: MsgAggregateExchangeRatePrevote, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
443
+ /**
444
+ * Broadcasts an aggregate exchange rate vote transaction.
445
+ *
446
+ * @param payload - Message payload describing the vote
447
+ * @param address - Address responsible for paying the transaction fees
448
+ * @param fee - Optional fee configuration, defaults to automatic calculation
449
+ * @param memo - Optional transaction memo
450
+ * @param context - Optional SDK context to lazily resolve signer or wallet
451
+ * @returns Promise resolving to the DeliverTxResponse
452
+ */
453
+ aggregateExchangeRateVoteTx(payload: MsgAggregateExchangeRateVote, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
454
+ /**
455
+ * Delegates feed consent between operator and delegate.
456
+ *
457
+ * @param payload - Message payload describing the delegation
458
+ * @param address - Address responsible for paying the transaction fees
459
+ * @param fee - Optional fee configuration, defaults to automatic calculation
460
+ * @param memo - Optional transaction memo
461
+ * @param context - Optional SDK context to lazily resolve signer or wallet
462
+ * @returns Promise resolving to the DeliverTxResponse
463
+ */
464
+ delegateFeedConsentTx(payload: MsgDelegateFeedConsent, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
465
+ /**
466
+ * Submits a legacy governance update params transaction via MsgSubmitProposal.
467
+ *
468
+ * @param payload - Legacy governance update parameters payload
469
+ * @param address - Address responsible for paying the transaction fees
470
+ * @param fee - Optional fee configuration, defaults to automatic calculation
471
+ * @param memo - Optional transaction memo
472
+ * @param context - Optional SDK context to lazily resolve signer or wallet
473
+ * @param proposalOptions - Optional MsgSubmitProposal configuration such as deposit or metadata
474
+ * @returns Promise resolving to the DeliverTxResponse
475
+ */
476
+ legacyGovUpdateParamsTx(payload: MsgLegacyGovUpdateParams, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext, proposalOptions?: OracleGovProposalOptions): Promise<DeliverTxResponse>;
477
+ /**
478
+ * Submits a governance update params transaction via MsgSubmitProposal.
479
+ *
480
+ * @param payload - Governance update parameters payload
481
+ * @param address - Address responsible for paying the transaction fees
482
+ * @param fee - Optional fee configuration, defaults to automatic calculation
483
+ * @param memo - Optional transaction memo
484
+ * @param context - Optional SDK context to lazily resolve signer or wallet
485
+ * @param proposalOptions - Optional MsgSubmitProposal configuration such as deposit or metadata
486
+ * @returns Promise resolving to the DeliverTxResponse
487
+ */
488
+ govUpdateParamsTx(payload: MsgGovUpdateParams, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext, proposalOptions?: OracleGovProposalOptions): Promise<DeliverTxResponse>;
489
+ /**
490
+ * Adds new denoms to the oracle registry via MsgSubmitProposal.
491
+ *
492
+ * @param payload - Governance proposal payload that describes the new denoms
493
+ * @param address - Address responsible for paying the transaction fees
494
+ * @param fee - Optional fee configuration, defaults to automatic calculation
495
+ * @param memo - Optional transaction memo
496
+ * @param context - Optional SDK context to lazily resolve signer or wallet
497
+ * @param proposalOptions - Optional MsgSubmitProposal configuration such as deposit or metadata
498
+ * @returns Promise resolving to the DeliverTxResponse
499
+ */
500
+ govAddDenomsTx(payload: MsgGovAddDenoms, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext, proposalOptions?: OracleGovProposalOptions): Promise<DeliverTxResponse>;
501
+ /**
502
+ * Removes currency pair providers from the oracle configuration via MsgSubmitProposal.
503
+ *
504
+ * @param payload - Governance proposal payload describing providers to remove
505
+ * @param address - Address responsible for paying the transaction fees
506
+ * @param fee - Optional fee configuration, defaults to automatic calculation
507
+ * @param memo - Optional transaction memo
508
+ * @param context - Optional SDK context to lazily resolve signer or wallet
509
+ * @param proposalOptions - Optional MsgSubmitProposal configuration such as deposit or metadata
510
+ * @returns Promise resolving to the DeliverTxResponse
511
+ */
512
+ govRemoveCurrencyPairProvidersTx(payload: MsgGovRemoveCurrencyPairProviders, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext, proposalOptions?: OracleGovProposalOptions): Promise<DeliverTxResponse>;
513
+ /**
514
+ * Removes currency deviation thresholds via MsgSubmitProposal.
515
+ *
516
+ * @param payload - Governance payload describing currencies to remove
517
+ * @param address - Address responsible for paying the transaction fees
518
+ * @param fee - Optional fee configuration, defaults to automatic calculation
519
+ * @param memo - Optional transaction memo
520
+ * @param context - Optional SDK context to lazily resolve signer or wallet
521
+ * @param proposalOptions - Optional MsgSubmitProposal configuration such as deposit or metadata
522
+ * @returns Promise resolving to the DeliverTxResponse
523
+ */
524
+ govRemoveCurrencyDeviationThresholdsTx(payload: MsgGovRemoveCurrencyDeviationThresholds, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext, proposalOptions?: OracleGovProposalOptions): Promise<DeliverTxResponse>;
525
+ /**
526
+ * Cancels a pending parameter update plan via MsgSubmitProposal.
527
+ *
528
+ * @param payload - Governance payload containing cancellation details
529
+ * @param address - Address responsible for paying the transaction fees
530
+ * @param fee - Optional fee configuration, defaults to automatic calculation
531
+ * @param memo - Optional transaction memo
532
+ * @param context - Optional SDK context to lazily resolve signer or wallet
533
+ * @param proposalOptions - Optional MsgSubmitProposal configuration such as deposit or metadata
534
+ * @returns Promise resolving to the DeliverTxResponse
535
+ */
536
+ govCancelUpdateParamPlanTx(payload: MsgGovCancelUpdateParamPlan, address: string, fee?: DidStdFee | 'auto' | number, memo?: string, context?: IContext, proposalOptions?: OracleGovProposalOptions): Promise<DeliverTxResponse>;
537
+ /**
538
+ * Ensures a signer client exists and resolves the address to use for broadcasting.
539
+ *
540
+ * @param address - Address provided by the caller (optional)
541
+ * @param context - Optional SDK context used to resolve signer or wallet
542
+ * @returns Resolved signer address
543
+ */
544
+ private ensureSignerAddress;
545
+ /**
546
+ * Signs and broadcasts the provided oracle transaction.
547
+ *
548
+ * @param message - EncodeObject representing the oracle message
549
+ * @param address - Address responsible for the transaction fees
550
+ * @param fee - Optional fee configuration, defaults to automatic calculation
551
+ * @param memo - Optional transaction memo
552
+ * @param context - Optional SDK context used to resolve signer or wallet
553
+ * @returns Promise resolving to the DeliverTxResponse
554
+ */
555
+ private broadcastOracleTx;
556
+ /**
557
+ * Parses a decimal price string back into its atomic representation.
558
+ * @param price - Price in decimal string format
559
+ * @returns Promise resolving to the atomic string representation of the price
560
+ */
561
+ static parseFromDecimalPrice(price: string): Promise<string>;
562
+ }
563
+ //# sourceMappingURL=oracle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["../../../../src/modules/oracle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,gCAAgC,EAChC,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,gBAAgB,EAChB,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,+BAA+B,EAC/B,gBAAgB,EAEhB,0BAA0B,EAC1B,+BAA+B,EAE/B,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EACf,iCAAiC,EACjC,uCAAuC,EACvC,2BAA2B,EAC3B,yBAAyB,EACzB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE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