@cheqd/sdk 5.3.2-develop.2 → 5.3.3-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 (112) hide show
  1. package/README.md +310 -0
  2. package/build/cjs/index.d.ts +92 -1
  3. package/build/cjs/index.d.ts.map +1 -1
  4. package/build/cjs/index.js +75 -2
  5. package/build/cjs/index.js.map +1 -1
  6. package/build/cjs/modules/_.d.ts +61 -0
  7. package/build/cjs/modules/_.d.ts.map +1 -1
  8. package/build/cjs/modules/_.js +50 -0
  9. package/build/cjs/modules/_.js.map +1 -1
  10. package/build/cjs/modules/did.d.ts +278 -0
  11. package/build/cjs/modules/did.d.ts.map +1 -1
  12. package/build/cjs/modules/did.js +242 -0
  13. package/build/cjs/modules/did.js.map +1 -1
  14. package/build/cjs/modules/feeabstraction.d.ts +297 -2
  15. package/build/cjs/modules/feeabstraction.d.ts.map +1 -1
  16. package/build/cjs/modules/feeabstraction.js +235 -4
  17. package/build/cjs/modules/feeabstraction.js.map +1 -1
  18. package/build/cjs/modules/feemarket.d.ts +154 -21
  19. package/build/cjs/modules/feemarket.d.ts.map +1 -1
  20. package/build/cjs/modules/feemarket.js +133 -22
  21. package/build/cjs/modules/feemarket.js.map +1 -1
  22. package/build/cjs/modules/resource.d.ts +143 -0
  23. package/build/cjs/modules/resource.d.ts.map +1 -1
  24. package/build/cjs/modules/resource.js +131 -0
  25. package/build/cjs/modules/resource.js.map +1 -1
  26. package/build/cjs/querier.d.ts +50 -0
  27. package/build/cjs/querier.d.ts.map +1 -1
  28. package/build/cjs/querier.js +50 -0
  29. package/build/cjs/querier.js.map +1 -1
  30. package/build/cjs/registry.d.ts +14 -0
  31. package/build/cjs/registry.d.ts.map +1 -1
  32. package/build/cjs/registry.js +14 -0
  33. package/build/cjs/registry.js.map +1 -1
  34. package/build/cjs/signer.d.ts +172 -1
  35. package/build/cjs/signer.d.ts.map +1 -1
  36. package/build/cjs/signer.js +172 -1
  37. package/build/cjs/signer.js.map +1 -1
  38. package/build/cjs/types.d.ts +91 -0
  39. package/build/cjs/types.d.ts.map +1 -1
  40. package/build/cjs/types.js +17 -0
  41. package/build/cjs/types.js.map +1 -1
  42. package/build/cjs/utils.d.ts +188 -0
  43. package/build/cjs/utils.d.ts.map +1 -1
  44. package/build/cjs/utils.js +195 -0
  45. package/build/cjs/utils.js.map +1 -1
  46. package/build/esm/index.d.ts +92 -1
  47. package/build/esm/index.d.ts.map +1 -1
  48. package/build/esm/index.js +74 -1
  49. package/build/esm/index.js.map +1 -1
  50. package/build/esm/modules/_.d.ts +42 -0
  51. package/build/esm/modules/_.d.ts.map +1 -1
  52. package/build/esm/modules/_.js +32 -0
  53. package/build/esm/modules/_.js.map +1 -1
  54. package/build/esm/modules/did.d.ts +274 -0
  55. package/build/esm/modules/did.d.ts.map +1 -1
  56. package/build/esm/modules/did.js +242 -0
  57. package/build/esm/modules/did.js.map +1 -1
  58. package/build/esm/modules/feeabstraction.d.ts +277 -2
  59. package/build/esm/modules/feeabstraction.d.ts.map +1 -1
  60. package/build/esm/modules/feeabstraction.js +221 -2
  61. package/build/esm/modules/feeabstraction.js.map +1 -1
  62. package/build/esm/modules/feemarket.d.ts +152 -21
  63. package/build/esm/modules/feemarket.d.ts.map +1 -1
  64. package/build/esm/modules/feemarket.js +131 -21
  65. package/build/esm/modules/feemarket.js.map +1 -1
  66. package/build/esm/modules/resource.d.ts +142 -0
  67. package/build/esm/modules/resource.d.ts.map +1 -1
  68. package/build/esm/modules/resource.js +130 -0
  69. package/build/esm/modules/resource.js.map +1 -1
  70. package/build/esm/querier.d.ts +50 -0
  71. package/build/esm/querier.d.ts.map +1 -1
  72. package/build/esm/querier.js +50 -0
  73. package/build/esm/querier.js.map +1 -1
  74. package/build/esm/registry.d.ts +14 -0
  75. package/build/esm/registry.d.ts.map +1 -1
  76. package/build/esm/registry.js +14 -0
  77. package/build/esm/registry.js.map +1 -1
  78. package/build/esm/signer.d.ts +122 -0
  79. package/build/esm/signer.d.ts.map +1 -1
  80. package/build/esm/signer.js +122 -0
  81. package/build/esm/signer.js.map +1 -1
  82. package/build/esm/types.d.ts +92 -0
  83. package/build/esm/types.d.ts.map +1 -1
  84. package/build/esm/types.js +17 -0
  85. package/build/esm/types.js.map +1 -1
  86. package/build/esm/utils.d.ts +178 -0
  87. package/build/esm/utils.d.ts.map +1 -1
  88. package/build/esm/utils.js +171 -0
  89. package/build/esm/utils.js.map +1 -1
  90. package/build/types/index.d.ts +92 -1
  91. package/build/types/index.d.ts.map +1 -1
  92. package/build/types/modules/_.d.ts +42 -0
  93. package/build/types/modules/_.d.ts.map +1 -1
  94. package/build/types/modules/did.d.ts +274 -0
  95. package/build/types/modules/did.d.ts.map +1 -1
  96. package/build/types/modules/feeabstraction.d.ts +277 -2
  97. package/build/types/modules/feeabstraction.d.ts.map +1 -1
  98. package/build/types/modules/feemarket.d.ts +152 -21
  99. package/build/types/modules/feemarket.d.ts.map +1 -1
  100. package/build/types/modules/resource.d.ts +142 -0
  101. package/build/types/modules/resource.d.ts.map +1 -1
  102. package/build/types/querier.d.ts +50 -0
  103. package/build/types/querier.d.ts.map +1 -1
  104. package/build/types/registry.d.ts +14 -0
  105. package/build/types/registry.d.ts.map +1 -1
  106. package/build/types/signer.d.ts +122 -0
  107. package/build/types/signer.d.ts.map +1 -1
  108. package/build/types/types.d.ts +92 -0
  109. package/build/types/types.d.ts.map +1 -1
  110. package/build/types/utils.d.ts +178 -0
  111. package/build/types/utils.d.ts.map +1 -1
  112. package/package.json +1 -1
@@ -2,37 +2,76 @@ import { protobufPackage, MsgAddHostZone, MsgAddHostZoneResponse, MsgFundFeeAbsM
2
2
  import { AbstractCheqdSDKModule } from './_.js';
3
3
  import { createProtobufRpcClient } from '@cosmjs/stargate';
4
4
  import { MsgSubmitProposal } from 'cosmjs-types/cosmos/gov/v1/tx.js';
5
- export const defaultExtensionKey = 'feeabs';
5
+ /** Default extension key for fee abstraction-related query operations */
6
+ export const defaultFeeabstractionExtensionKey = 'feeabs';
7
+ /**
8
+ * Protobuf message type literals for fee abstraction operations.
9
+ * Used for consistent message type identification across the module.
10
+ */
6
11
  export const protobufLiterals = {
12
+ /** Add host zone message type */
7
13
  MsgAddHostZone: 'MsgAddHostZone',
14
+ /** Add host zone response message type */
8
15
  MsgAddHostZoneResponse: 'MsgAddHostZoneResponse',
16
+ /** Fund fee abstraction module account message type */
9
17
  MsgFundFeeAbsModuleAccount: 'MsgFundFeeAbsModuleAccount',
18
+ /** Fund fee abstraction module account response message type */
10
19
  MsgFundFeeAbsModuleAccountResponse: 'MsgFundFeeAbsModuleAccountResponse',
20
+ /** Remove host zone message type */
11
21
  MsgRemoveHostZone: 'MsgRemoveHostZone',
22
+ /** Remove host zone response message type */
12
23
  MsgRemoveHostZoneResponse: 'MsgRemoveHostZoneResponse',
24
+ /** Send query IBC denomination TWAP message type */
13
25
  MsgSendQueryIbcDenomTWAP: 'MsgSendQueryIbcDenomTWAP',
26
+ /** Send query IBC denomination TWAP response message type */
14
27
  MsgSendQueryIbcDenomTWAPResponse: 'MsgSendQueryIbcDenomTWAPResponse',
28
+ /** Swap cross-chain message type */
15
29
  MsgSwapCrossChain: 'MsgSwapCrossChain',
30
+ /** Swap cross-chain response message type */
16
31
  MsgSwapCrossChainResponse: 'MsgSwapCrossChainResponse',
32
+ /** Update host zone message type */
17
33
  MsgUpdateHostZone: 'MsgUpdateHostZone',
34
+ /** Update host zone response message type */
18
35
  MsgUpdateHostZoneResponse: 'MsgUpdateHostZoneResponse',
36
+ /** Update parameters message type */
19
37
  MsgUpdateParams: 'MsgUpdateParams',
38
+ /** Update parameters response message type */
20
39
  MsgUpdateParamsResponse: 'MsgUpdateParamsResponse',
21
40
  };
41
+ /** Type URL for MsgAddHostZone messages */
22
42
  export const typeUrlMsgAddHostZone = `/${protobufPackage}.${protobufLiterals.MsgAddHostZone}`;
43
+ /** Type URL for MsgAddHostZoneResponse messages */
23
44
  export const typeUrlMsgAddHostZoneResponse = `/${protobufPackage}.${protobufLiterals.MsgAddHostZoneResponse}`;
45
+ /** Type URL for MsgFundFeeAbsModuleAccount messages */
24
46
  export const typeUrlMsgFundFeeAbsModuleAccount = `/${protobufPackage}.${protobufLiterals.MsgFundFeeAbsModuleAccount}`;
47
+ /** Type URL for MsgFundFeeAbsModuleAccountResponse messages */
25
48
  export const typeUrlMsgFundFeeAbsModuleAccountResponse = `/${protobufPackage}.${protobufLiterals.MsgFundFeeAbsModuleAccountResponse}`;
49
+ /** Type URL for MsgRemoveHostZone messages */
26
50
  export const typeUrlMsgRemoveHostZone = `/${protobufPackage}.${protobufLiterals.MsgRemoveHostZone}`;
51
+ /** Type URL for MsgRemoveHostZoneResponse messages */
27
52
  export const typeUrlMsgRemoveHostZoneResponse = `/${protobufPackage}.${protobufLiterals.MsgRemoveHostZoneResponse}`;
53
+ /** Type URL for MsgSendQueryIbcDenomTWAP messages */
28
54
  export const typeUrlMsgSendQueryIbcDenomTWAP = `/${protobufPackage}.${protobufLiterals.MsgSendQueryIbcDenomTWAP}`;
55
+ /** Type URL for MsgSendQueryIbcDenomTWAPResponse messages */
29
56
  export const typeUrlMsgSendQueryIbcDenomTWAPResponse = `/${protobufPackage}.${protobufLiterals.MsgSendQueryIbcDenomTWAPResponse}`;
57
+ /** Type URL for MsgSwapCrossChain messages */
30
58
  export const typeUrlMsgSwapCrossChain = `/${protobufPackage}.${protobufLiterals.MsgSwapCrossChain}`;
59
+ /** Type URL for MsgSwapCrossChainResponse messages */
31
60
  export const typeUrlMsgSwapCrossChainResponse = `/${protobufPackage}.${protobufLiterals.MsgSwapCrossChainResponse}`;
61
+ /** Type URL for MsgUpdateHostZone messages */
32
62
  export const typeUrlMsgUpdateHostZone = `/${protobufPackage}.${protobufLiterals.MsgUpdateHostZone}`;
63
+ /** Type URL for MsgUpdateHostZoneResponse messages */
33
64
  export const typeUrlMsgUpdateHostZoneResponse = `/${protobufPackage}.${protobufLiterals.MsgUpdateHostZoneResponse}`;
65
+ /** Type URL for MsgUpdateParams messages */
34
66
  export const typeUrlMsgUpdateParams = `/${protobufPackage}.${protobufLiterals.MsgUpdateParams}`;
67
+ /** Type URL for MsgUpdateParamsResponse messages */
35
68
  export const typeUrlMsgUpdateParamsResponse = `/${protobufPackage}.${protobufLiterals.MsgUpdateParamsResponse}`;
69
+ /**
70
+ * Type guard function to check if an object is a MsgAddHostZoneEncodeObject.
71
+ *
72
+ * @param obj - EncodeObject to check
73
+ * @returns True if the object is a MsgAddHostZoneEncodeObject
74
+ */
36
75
  export function isMsgAddHostZoneEncodeObject(obj) {
37
76
  return obj.typeUrl === typeUrlMsgAddHostZone;
38
77
  }
@@ -42,44 +81,117 @@ export function isMsgAddHostZoneResponseEncodeObject(obj) {
42
81
  export function isMsgFundFeeAbsModuleAccountEncodeObject(obj) {
43
82
  return obj.typeUrl === typeUrlMsgFundFeeAbsModuleAccount;
44
83
  }
84
+ /**
85
+ * Type guard function to check if an object is a MsgFundFeeAbsModuleAccountResponseEncodeObject.
86
+ *
87
+ * @param obj - EncodeObject to check
88
+ * @returns True if the object is a MsgFundFeeAbsModuleAccountResponseEncodeObject
89
+ */
45
90
  export function isMsgFundFeeAbsModuleAccountResponseEncodeObject(obj) {
46
91
  return obj.typeUrl === typeUrlMsgFundFeeAbsModuleAccountResponse;
47
92
  }
93
+ /**
94
+ * Type guard function to check if an object is a MsgRemoveHostZoneEncodeObject.
95
+ *
96
+ * @param obj - EncodeObject to check
97
+ * @returns True if the object is a MsgRemoveHostZoneEncodeObject
98
+ */
48
99
  export function isMsgRemoveHostZoneEncodeObject(obj) {
49
100
  return obj.typeUrl === typeUrlMsgRemoveHostZone;
50
101
  }
102
+ /**
103
+ * Type guard function to check if an object is a MsgRemoveHostZoneResponseEncodeObject.
104
+ *
105
+ * @param obj - EncodeObject to check
106
+ * @returns True if the object is a MsgRemoveHostZoneResponseEncodeObject
107
+ */
51
108
  export function isMsgRemoveHostZoneResponseEncodeObject(obj) {
52
109
  return obj.typeUrl === typeUrlMsgRemoveHostZoneResponse;
53
110
  }
111
+ /**
112
+ * Type guard function to check if an object is a MsgSendQueryIbcDenomTWAPEncodeObject.
113
+ *
114
+ * @param obj - EncodeObject to check
115
+ * @returns True if the object is a MsgSendQueryIbcDenomTWAPEncodeObject
116
+ */
54
117
  export function isMsgSendQueryIbcDenomTWAPEncodeObject(obj) {
55
118
  return obj.typeUrl === typeUrlMsgSendQueryIbcDenomTWAP;
56
119
  }
120
+ /**
121
+ * Type guard function to check if an object is a MsgSendQueryIbcDenomTWAPResponseEncodeObject.
122
+ *
123
+ * @param obj - EncodeObject to check
124
+ * @returns True if the object is a MsgSendQueryIbcDenomTWAPResponseEncodeObject
125
+ */
57
126
  export function isMsgSendQueryIbcDenomTWAPResponseEncodeObject(obj) {
58
127
  return obj.typeUrl === typeUrlMsgSendQueryIbcDenomTWAPResponse;
59
128
  }
129
+ /**
130
+ * Type guard function to check if an object is a MsgSwapCrossChainEncodeObject.
131
+ *
132
+ * @param obj - EncodeObject to check
133
+ * @returns True if the object is a MsgSwapCrossChainEncodeObject
134
+ */
60
135
  export function isMsgSwapCrossChainEncodeObject(obj) {
61
136
  return obj.typeUrl === typeUrlMsgSwapCrossChain;
62
137
  }
138
+ /**
139
+ * Type guard function to check if an object is a MsgSwapCrossChainResponseEncodeObject.
140
+ *
141
+ * @param obj - EncodeObject to check
142
+ * @returns True if the object is a MsgSwapCrossChainResponseEncodeObject
143
+ */
63
144
  export function isMsgSwapCrossChainResponseEncodeObject(obj) {
64
145
  return obj.typeUrl === typeUrlMsgSwapCrossChainResponse;
65
146
  }
147
+ /**
148
+ * Type guard function to check if an object is a MsgUpdateHostZoneEncodeObject.
149
+ *
150
+ * @param obj - EncodeObject to check
151
+ * @returns True if the object is a MsgUpdateHostZoneEncodeObject
152
+ */
66
153
  export function isMsgUpdateHostZoneEncodeObject(obj) {
67
154
  return obj.typeUrl === typeUrlMsgUpdateHostZone;
68
155
  }
156
+ /**
157
+ * Type guard function to check if an object is a MsgUpdateHostZoneResponseEncodeObject.
158
+ *
159
+ * @param obj - EncodeObject to check
160
+ * @returns True if the object is a MsgUpdateHostZoneResponseEncodeObject
161
+ */
69
162
  export function isMsgUpdateHostZoneResponseEncodeObject(obj) {
70
163
  return obj.typeUrl === typeUrlMsgUpdateHostZoneResponse;
71
164
  }
165
+ /**
166
+ * Type guard function to check if an object is a MsgUpdateParamsEncodeObject.
167
+ *
168
+ * @param obj - EncodeObject to check
169
+ * @returns True if the object is a MsgUpdateParamsEncodeObject
170
+ */
72
171
  export function isMsgUpdateParamsEncodeObject(obj) {
73
172
  return obj.typeUrl === typeUrlMsgUpdateParams;
74
173
  }
174
+ /**
175
+ * Type guard function to check if an object is a MsgUpdateParamsResponseEncodeObject.
176
+ *
177
+ * @param obj - EncodeObject to check
178
+ * @returns True if the object is a MsgUpdateParamsResponseEncodeObject
179
+ */
75
180
  export function isMsgUpdateParamsResponseEncodeObject(obj) {
76
181
  return obj.typeUrl === typeUrlMsgUpdateParamsResponse;
77
182
  }
183
+ /**
184
+ * Sets up the fee abstraction extension for the querier client.
185
+ * Creates and configures the fee abstraction-specific query methods.
186
+ *
187
+ * @param base - Base QueryClient to extend
188
+ * @returns Configured fee abstraction extension with query methods
189
+ */
78
190
  export const setupFeeabstractionExtension = (base) => {
79
191
  const rpc = createProtobufRpcClient(base);
80
192
  const queryService = new QueryClientImpl(rpc);
81
193
  return {
82
- [defaultExtensionKey]: {
194
+ [defaultFeeabstractionExtensionKey]: {
83
195
  hostChainConfig: async (request) => {
84
196
  return await queryService.HostChainConfig(request);
85
197
  },
@@ -92,6 +204,10 @@ export const setupFeeabstractionExtension = (base) => {
92
204
  },
93
205
  };
94
206
  };
207
+ /**
208
+ * Fee Abstraction Module class providing comprehensive fee abstraction functionality.
209
+ * Handles host zone management, cross-chain swaps, and fee abstraction operations on the Cheqd blockchain.
210
+ */
95
211
  export class FeeabstractionModule extends AbstractCheqdSDKModule {
96
212
  // @ts-expect-error underlying type `GeneratedType` is intentionally wider
97
213
  static registryTypes = [
@@ -110,8 +226,16 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
110
226
  [typeUrlMsgUpdateParams, MsgUpdateParams],
111
227
  [typeUrlMsgUpdateParamsResponse, MsgUpdateParamsResponse],
112
228
  ];
229
+ /** Querier extension setup function for fee abstraction operations */
113
230
  static querierExtensionSetup = setupFeeabstractionExtension;
231
+ /** Querier instance with fee abstraction extension capabilities */
114
232
  querier;
233
+ /**
234
+ * Constructs a new fee abstraction module instance.
235
+ *
236
+ * @param signer - Signing client for blockchain transactions
237
+ * @param querier - Querier client with fee abstraction extension for data retrieval
238
+ */
115
239
  constructor(signer, querier) {
116
240
  super(signer, querier);
117
241
  this.querier = querier;
@@ -125,12 +249,35 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
125
249
  updateParamsProposal: this.updateParamsProposal.bind(this),
126
250
  };
127
251
  }
252
+ /**
253
+ * Gets the registry types for fee abstraction message encoding/decoding.
254
+ *
255
+ * @returns Iterable of [typeUrl, GeneratedType] pairs for the registry
256
+ */
128
257
  getRegistryTypes() {
129
258
  return FeeabstractionModule.registryTypes;
130
259
  }
260
+ /**
261
+ * Gets the querier extension setup for fee abstraction operations.
262
+ *
263
+ * @returns Query extension setup function for fee abstraction functionality
264
+ */
131
265
  getQuerierExtensionSetup() {
132
266
  return FeeabstractionModule.querierExtensionSetup;
133
267
  }
268
+ /**
269
+ * Creates a governance proposal to add a new host zone for fee abstraction.
270
+ * Submits the proposal through the governance module for community voting.
271
+ *
272
+ * @param data - Host zone data to add
273
+ * @param title - Proposal title
274
+ * @param deposit - Initial deposit for the proposal
275
+ * @param proposer - Address of the proposal submitter
276
+ * @param fee - Transaction fee configuration
277
+ * @param memo - Optional transaction memo
278
+ * @param context - Optional SDK context for accessing clients
279
+ * @returns Promise resolving to the transaction response
280
+ */
134
281
  async addHostZoneProposal(data, title, deposit, proposer, fee, memo, context) {
135
282
  if (!this._signer)
136
283
  this._signer = context.sdk.signer;
@@ -150,6 +297,17 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
150
297
  };
151
298
  return await this._signer.signAndBroadcast(proposer, [proposalEncodeObject], fee, memo);
152
299
  }
300
+ /**
301
+ * Funds the fee abstraction module account with tokens.
302
+ * Allows users to provide liquidity for fee abstraction functionality.
303
+ *
304
+ * @param sender - Address of the account sending funds
305
+ * @param amount - Array of coins to send to the module account
306
+ * @param fee - Transaction fee configuration
307
+ * @param memo - Optional transaction memo
308
+ * @param context - Optional SDK context for accessing clients
309
+ * @returns Promise resolving to the transaction response
310
+ */
153
311
  async fundFeeAbsModuleAccount(sender, amount, fee, memo, context) {
154
312
  if (!this._signer)
155
313
  this._signer = context.sdk.signer;
@@ -162,6 +320,19 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
162
320
  };
163
321
  return await this._signer.signAndBroadcast(sender, [fundFeeAbsModuleAccountMsg], fee, memo);
164
322
  }
323
+ /**
324
+ * Creates a governance proposal to remove an existing host zone from fee abstraction.
325
+ * Submits the proposal through the governance module for community voting.
326
+ *
327
+ * @param data - Host zone data to remove
328
+ * @param title - Proposal title
329
+ * @param deposit - Initial deposit for the proposal
330
+ * @param proposer - Address of the proposal submitter
331
+ * @param fee - Transaction fee configuration
332
+ * @param memo - Optional transaction memo
333
+ * @param context - Optional SDK context for accessing clients
334
+ * @returns Promise resolving to the transaction response
335
+ */
165
336
  async removeHostZoneProposal(data, title, deposit, proposer, fee, memo, context) {
166
337
  if (!this._signer)
167
338
  this._signer = context.sdk.signer;
@@ -181,6 +352,17 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
181
352
  };
182
353
  return await this._signer.signAndBroadcast(proposer, [proposalEncodeObject], fee, memo);
183
354
  }
355
+ /**
356
+ * Sends a query for IBC denomination Time-Weighted Average Price (TWAP) data.
357
+ * Initiates a cross-chain query to retrieve pricing information for fee calculation.
358
+ *
359
+ * @param sender - Address of the account sending the query
360
+ * @param data - TWAP query data containing denomination and parameters
361
+ * @param fee - Transaction fee configuration
362
+ * @param memo - Optional transaction memo
363
+ * @param context - Optional SDK context for accessing clients
364
+ * @returns Promise resolving to the TWAP query response
365
+ */
184
366
  async sendQueryIbcDenomTWAP(sender, data, fee, memo, context) {
185
367
  if (!this._signer)
186
368
  this._signer = context.sdk.signer;
@@ -190,6 +372,17 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
190
372
  };
191
373
  return await this._signer.signAndBroadcast(sender, [sendQueryIbcDenomTwapMsg], fee, memo);
192
374
  }
375
+ /**
376
+ * Performs a cross-chain token swap using fee abstraction.
377
+ * Enables users to swap IBC tokens across different chains.
378
+ *
379
+ * @param sender - Address of the account initiating the swap
380
+ * @param ibcDenom - IBC denomination to swap
381
+ * @param fee - Transaction fee configuration
382
+ * @param memo - Optional transaction memo
383
+ * @param context - Optional SDK context for accessing clients
384
+ * @returns Promise resolving to the swap response
385
+ */
193
386
  async swapCrossChain(sender, ibcDenom, fee, memo, context) {
194
387
  if (!this._signer)
195
388
  this._signer = context.sdk.signer;
@@ -201,6 +394,19 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
201
394
  };
202
395
  return await this._signer.signAndBroadcast(sender, [swapCrossChainMsg], fee, memo);
203
396
  }
397
+ /**
398
+ * Creates a governance proposal to update an existing host zone configuration.
399
+ * Submits the proposal through the governance module for community voting.
400
+ *
401
+ * @param data - Updated host zone configuration data
402
+ * @param title - Proposal title
403
+ * @param deposit - Initial deposit for the proposal
404
+ * @param proposer - Address of the proposal submitter
405
+ * @param fee - Transaction fee configuration
406
+ * @param memo - Optional transaction memo
407
+ * @param context - Optional SDK context for accessing clients
408
+ * @returns Promise resolving to the transaction response
409
+ */
204
410
  async updateHostZoneProposal(data, title, deposit, proposer, fee, memo, context) {
205
411
  if (!this._signer)
206
412
  this._signer = context.sdk.signer;
@@ -220,6 +426,19 @@ export class FeeabstractionModule extends AbstractCheqdSDKModule {
220
426
  };
221
427
  return await this._signer.signAndBroadcast(proposer, [proposalEncodeObject], fee, memo);
222
428
  }
429
+ /**
430
+ * Creates a governance proposal to update fee abstraction module parameters.
431
+ * Submits the proposal through the governance module for community voting.
432
+ *
433
+ * @param data - Updated module parameters
434
+ * @param title - Proposal title
435
+ * @param deposit - Initial deposit for the proposal
436
+ * @param proposer - Address of the proposal submitter
437
+ * @param fee - Transaction fee configuration
438
+ * @param memo - Optional transaction memo
439
+ * @param context - Optional SDK context for accessing clients
440
+ * @returns Promise resolving to the transaction response
441
+ */
223
442
  async updateParamsProposal(data, title, deposit, proposer, fee, memo, context) {
224
443
  if (!this._signer)
225
444
  this._signer = context.sdk.signer;
@@ -1 +1 @@
1
- {"version":3,"file":"feeabstraction.js","sourceRoot":"","sources":["../../../esm/src/modules/feeabstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,0BAA0B,EAC1B,kCAAkC,EAClC,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,gCAAgC,EAChC,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EAOvB,eAAe,GACf,MAAM,wDAAwD,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAmC,MAAM,QAAQ,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAkC,MAAM,kBAAkB,CAAC;AAI3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAGrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAiB,CAAC;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,cAAc,EAAE,gBAAgB;IAChC,sBAAsB,EAAE,wBAAwB;IAChD,0BAA0B,EAAE,4BAA4B;IACxD,kCAAkC,EAAE,oCAAoC;IACxE,iBAAiB,EAAE,mBAAmB;IACtC,yBAAyB,EAAE,2BAA2B;IACtD,wBAAwB,EAAE,0BAA0B;IACpD,gCAAgC,EAAE,kCAAkC;IACpE,iBAAiB,EAAE,mBAAmB;IACtC,yBAAyB,EAAE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BACpC,QAAQ,EAAE;oBACT;wBACC,OAAO,EAAE,sBAAsB;wBAC/B,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;qBAC7D;iBACD;gBACD,KAAK;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ;aACR,CAAC;SACqB,CAAC;QAEzB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IACzF,CAAC"}
@@ -5,47 +5,119 @@ import { AbstractCheqdSDKModule, MinimalImportableCheqdSDKModule } from './_.js'
5
5
  import { DidStdFee, IContext, QueryExtensionSetup } from '../types.js';
6
6
  import { CheqdQuerier } from '../querier.js';
7
7
  import { CheqdSigningStargateClient } from '../signer.js';
8
+ /** Default extension key for fee market-related query operations */
8
9
  export declare const defaultFeemarketExtensionKey: "feemarket";
10
+ /**
11
+ * Protobuf message type literals for fee market operations.
12
+ * Used for consistent message type identification across the module.
13
+ */
9
14
  export declare const protobufLiterals: {
15
+ /** Gas price response message type */
10
16
  readonly GasPriceResponse: "GasPriceResponse";
17
+ /** Gas prices response message type */
11
18
  readonly GasPricesResponse: "GasPricesResponse";
19
+ /** Parameters response message type */
12
20
  readonly ParamsResponse: "ParamsResponse";
13
21
  };
22
+ /** Type URL for GasPriceResponse messages */
14
23
  export declare const typeUrlGasPriceResponse: "/feemarket.feemarket.v1.GasPriceResponse";
24
+ /** Type URL for GasPricesResponse messages */
15
25
  export declare const typeUrlGasPricesResponse: "/feemarket.feemarket.v1.GasPricesResponse";
26
+ /** Type URL for ParamsResponse messages */
16
27
  export declare const typeUrlParamsResponse: "/feemarket.feemarket.v1.ParamsResponse";
28
+ /**
29
+ * Default gas price tier names for fee calculation.
30
+ * Provides predefined tiers for different transaction priority levels.
31
+ */
17
32
  export declare const defaultGasPriceTiers: {
33
+ /** Low priority tier with lowest gas prices */
18
34
  readonly Low: "DefaultLowTier";
35
+ /** Average priority tier with moderate gas prices */
19
36
  readonly Avg: "DefaultAvgTier";
37
+ /** High priority tier with highest gas prices */
20
38
  readonly High: "DefaultHighTier";
21
39
  };
40
+ /** Type representing the available default gas price tiers */
22
41
  export type DefaultGasPriceTiers = (typeof defaultGasPriceTiers)[keyof typeof defaultGasPriceTiers];
42
+ /**
43
+ * Encode object interface for GasPriceResponse messages.
44
+ * Used for type-safe message encoding in gas price operations.
45
+ */
23
46
  export interface GasPriceEncodeObject extends EncodeObject {
24
47
  readonly typeUrl: typeof typeUrlGasPriceResponse;
25
48
  readonly value: Partial<GasPriceResponse>;
26
49
  }
50
+ /**
51
+ * Type guard function to check if an object is a GasPriceEncodeObject.
52
+ *
53
+ * @param obj - EncodeObject to check
54
+ * @returns True if the object is a GasPriceEncodeObject
55
+ */
27
56
  export declare function isGasPriceEncodeObject(obj: EncodeObject): obj is GasPriceEncodeObject;
57
+ /**
58
+ * Encode object interface for GasPricesResponse messages.
59
+ * Used for type-safe message encoding in gas prices query operations.
60
+ */
28
61
  export interface GasPricesEncodeObject extends EncodeObject {
29
62
  readonly typeUrl: typeof typeUrlGasPricesResponse;
30
63
  readonly value: Partial<GasPricesResponse>;
31
64
  }
65
+ /**
66
+ * Type guard function to check if an object is a GasPricesEncodeObject.
67
+ *
68
+ * @param obj - EncodeObject to check
69
+ * @returns True if the object is a GasPricesEncodeObject
70
+ */
32
71
  export declare function isGasPricesEncodeObject(obj: EncodeObject): obj is GasPricesEncodeObject;
72
+ /**
73
+ * Encode object interface for ParamsResponse messages.
74
+ * Used for type-safe message encoding in fee market parameters operations.
75
+ */
33
76
  export interface ParamsEncodeObject extends EncodeObject {
34
77
  readonly typeUrl: typeof typeUrlParamsResponse;
35
78
  readonly value: Partial<ParamsResponse>;
36
79
  }
80
+ /**
81
+ * Type guard function to check if an object is a ParamsEncodeObject.
82
+ *
83
+ * @param obj - EncodeObject to check
84
+ * @returns True if the object is a ParamsEncodeObject
85
+ */
37
86
  export declare function isParamsEncodeObject(obj: EncodeObject): obj is ParamsEncodeObject;
87
+ /** Minimal importable version of the fee market module for clean external interfaces */
38
88
  export type MinimalImportableFeemarketModule = MinimalImportableCheqdSDKModule<FeemarketModule>;
89
+ /**
90
+ * Fee market extension interface for querier functionality.
91
+ * Provides methods for querying gas prices and fee market parameters.
92
+ */
39
93
  export type FeemarketExtension = {
40
94
  readonly [defaultFeemarketExtensionKey]: {
95
+ /** Query gas price for a specific denomination */
41
96
  readonly gasPrice: (denom: string) => Promise<GasPriceResponse>;
97
+ /** Query all available gas prices */
42
98
  readonly gasPrices: () => Promise<GasPricesResponse>;
99
+ /** Query fee market module parameters */
43
100
  readonly params: () => Promise<ParamsResponse>;
44
101
  };
45
102
  };
103
+ /**
104
+ * Sets up the fee market extension for the querier client.
105
+ * Creates and configures the fee market-specific query methods.
106
+ *
107
+ * @param base - Base QueryClient to extend
108
+ * @returns Configured fee market extension with query methods
109
+ */
46
110
  export declare const setupFeemarketExtension: (base: QueryClient) => FeemarketExtension;
111
+ /**
112
+ * Fee Market Module class providing comprehensive fee market functionality.
113
+ * Handles gas price queries, dynamic fee calculation, and fee market parameter management.
114
+ */
47
115
  export declare class FeemarketModule extends AbstractCheqdSDKModule {
48
116
  static readonly registryTypes: Iterable<[string, GeneratedType]>;
117
+ /**
118
+ * Default gas prices for different priority tiers.
119
+ * Used as fallback when live gas price queries are unavailable.
120
+ */
49
121
  static readonly defaultGasPrices: {
50
122
  readonly DefaultLowTier: {
51
123
  readonly amount: "5000";
@@ -60,51 +132,110 @@ export declare class FeemarketModule extends AbstractCheqdSDKModule {
60
132
  readonly denom: "ncheq";
61
133
  };
62
134
  };
135
+ /** Gas offset factor used for adjusting live gas prices */
63
136
  static readonly gasOffsetFactor: number;
137
+ /** Address of the fee collector account that receives transaction fees */
64
138
  static readonly feeCollectorAddress: "cheqd13pxn9n3qw79e03844rdadagmg0nshmwfszqu0g";
139
+ /** Address of the fee market module account */
65
140
  static readonly moduleAccountAddress: "cheqd1el68mjnzv87uurqks8u29tec0cj3297047g2dl";
141
+ /** Querier extension setup function for fee market operations */
66
142
  static readonly querierExtensionSetup: QueryExtensionSetup<FeemarketExtension>;
143
+ /** Querier instance with fee market extension capabilities */
67
144
  querier: CheqdQuerier & FeemarketExtension;
145
+ /**
146
+ * Constructs a new fee market module instance.
147
+ *
148
+ * @param signer - Signing client for blockchain transactions
149
+ * @param querier - Querier client with fee market extension for data retrieval
150
+ */
68
151
  constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier & FeemarketExtension);
152
+ /**
153
+ * Gets the registry types for fee market message encoding/decoding.
154
+ *
155
+ * @returns Iterable of [typeUrl, GeneratedType] pairs for the registry
156
+ */
69
157
  getRegistryTypes(): Iterable<[string, GeneratedType]>;
158
+ /**
159
+ * Gets the querier extension setup for fee market operations.
160
+ *
161
+ * @returns Query extension setup function for fee market functionality
162
+ */
70
163
  getQuerierExtensionSetup(): QueryExtensionSetup<FeemarketExtension>;
164
+ /**
165
+ * Queries the current gas price for a specific denomination.
166
+ * Retrieves live gas price data from the fee market module.
167
+ *
168
+ * @param denom - Token denomination to query gas price for
169
+ * @param context - Optional SDK context for accessing clients
170
+ * @returns Promise resolving to the gas price response
171
+ */
71
172
  queryGasPrice(denom: string, context?: IContext): Promise<GasPriceResponse>;
173
+ /**
174
+ * Queries all available gas prices from the fee market.
175
+ * Retrieves comprehensive gas pricing information for all denominations.
176
+ *
177
+ * @param context - Optional SDK context for accessing clients
178
+ * @returns Promise resolving to the gas prices response
179
+ */
72
180
  queryGasPrices(context?: IContext): Promise<GasPricesResponse>;
181
+ /**
182
+ * Queries the fee market module parameters.
183
+ * Retrieves configuration settings for the fee market functionality.
184
+ *
185
+ * @param context - Optional SDK context for accessing clients
186
+ * @returns Promise resolving to the parameters response
187
+ */
73
188
  queryParams(context?: IContext): Promise<ParamsResponse>;
74
189
  /**
75
- * Generate gas price by denom by live polling. If live poll fails, the error is bubbled up.
76
- * @param denom
77
- * @returns GasPrice
190
+ * Generates gas price for a denomination by live polling the fee market.
191
+ * Queries current gas prices and adjusts them using the gas offset factor.
192
+ * Throws an error if live polling fails.
193
+ *
194
+ * @param denom - Token denomination to generate gas price for
195
+ * @param context - Optional SDK context for accessing clients
196
+ * @returns Promise resolving to the calculated gas price
197
+ * @throws Error if live poll for gas price fails or returns invalid data
78
198
  */
79
199
  generateGasPrice(denom: string, context?: IContext): Promise<GasPrice>;
80
200
  /**
81
- * Generate offline gas price by denom by static tier.
82
- * @param denom
83
- * @param tier
84
- * @returns GasPrice
201
+ * Generates offline gas price for a denomination using static tier pricing.
202
+ * Uses predefined gas prices as fallback when live polling is unavailable.
203
+ *
204
+ * @param denom - Token denomination to generate gas price for
205
+ * @param tier - Priority tier for gas price calculation (defaults to Low)
206
+ * @returns Promise resolving to the static gas price
207
+ * @throws Error if denomination or tier is invalid
85
208
  */
86
209
  generateOfflineGasPrice(denom: string, tier?: DefaultGasPriceTiers): Promise<GasPrice>;
87
210
  /**
88
- * Generate safe gas price by denom by live polling with fallback to offline gas price. If live poll fails, the error is caught and offline gas price is generated.
89
- * @param denom
90
- * @param tier
91
- * @returns GasPrice
211
+ * Generates safe gas price with automatic fallback to offline pricing.
212
+ * Attempts live polling first, falls back to static tier pricing if it fails.
213
+ *
214
+ * @param denom - Token denomination to generate gas price for
215
+ * @param tier - Priority tier for fallback gas price calculation (defaults to Low)
216
+ * @param context - Optional SDK context for accessing clients
217
+ * @returns Promise resolving to the gas price (live or fallback)
92
218
  */
93
219
  generateSafeGasPrice(denom: string, tier?: DefaultGasPriceTiers, context?: IContext): Promise<GasPrice>;
94
220
  /**
95
- * Generate safe gas price by denom by live polling with exponential backoff to offline gas price.
96
- * @param denom
97
- * @param tier
98
- * @param backoffOptions
99
- * @returns GasPrice
221
+ * Generates safe gas price with exponential backoff retry mechanism.
222
+ * Retries live polling with exponential backoff before falling back to offline pricing.
223
+ *
224
+ * @param denom - Token denomination to generate gas price for
225
+ * @param tier - Priority tier for fallback gas price calculation (defaults to Low)
226
+ * @param backoffOptions - Retry configuration options (defaults to DefaultBackoffOptions)
227
+ * @param context - Optional SDK context for accessing clients
228
+ * @returns Promise resolving to the gas price (live with retries or fallback)
100
229
  */
101
230
  generateSafeGasPriceWithExponentialBackoff(denom: string, tier?: DefaultGasPriceTiers, backoffOptions?: Partial<import("exponential-backoff").IBackOffOptions>, context?: IContext): Promise<GasPrice>;
102
231
  /**
103
- * Generate fees from gas price. Use with live polling for gas price.
104
- * @param gasPrice
105
- * @param payer
106
- * @param gas
107
- * @returns DidStdFee
232
+ * Generates transaction fees from a given gas price.
233
+ * Calculates the total fee amount based on gas price and gas limit.
234
+ *
235
+ * @param gasPrice - Gas price to use for fee calculation
236
+ * @param payer - Address of the account paying the transaction fees
237
+ * @param gas - Gas limit for the transaction (defaults to '200000')
238
+ * @returns Standard fee configuration for the transaction
108
239
  */
109
240
  static generateFeesFromGasPrice(gasPrice: GasPrice, payer: string, gas?: string): DidStdFee;
110
241
  }