@cheqd/sdk-esm 5.3.4-develop.2
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.
- package/build/index.d.ts +140 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +182 -0
- package/build/index.js.map +1 -0
- package/build/modules/_.d.ts +62 -0
- package/build/modules/_.d.ts.map +1 -0
- package/build/modules/_.js +75 -0
- package/build/modules/_.js.map +1 -0
- package/build/modules/did.d.ts +386 -0
- package/build/modules/did.d.ts.map +1 -0
- package/build/modules/did.js +1013 -0
- package/build/modules/did.js.map +1 -0
- package/build/modules/feeabstraction.d.ts +409 -0
- package/build/modules/feeabstraction.d.ts.map +1 -0
- package/build/modules/feeabstraction.js +462 -0
- package/build/modules/feeabstraction.js.map +1 -0
- package/build/modules/feemarket.d.ts +242 -0
- package/build/modules/feemarket.d.ts.map +1 -0
- package/build/modules/feemarket.js +296 -0
- package/build/modules/feemarket.js.map +1 -0
- package/build/modules/resource.d.ts +204 -0
- package/build/modules/resource.d.ts.map +1 -0
- package/build/modules/resource.js +297 -0
- package/build/modules/resource.js.map +1 -0
- package/build/package.json +64 -0
- package/build/querier.d.ts +62 -0
- package/build/querier.d.ts.map +1 -0
- package/build/querier.js +86 -0
- package/build/querier.js.map +1 -0
- package/build/registry.d.ts +18 -0
- package/build/registry.d.ts.map +1 -0
- package/build/registry.js +23 -0
- package/build/registry.js.map +1 -0
- package/build/signer.d.ts +190 -0
- package/build/signer.d.ts.map +1 -0
- package/build/signer.js +547 -0
- package/build/signer.js.map +1 -0
- package/build/types/index.d.ts +140 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/modules/_.d.ts +62 -0
- package/build/types/modules/_.d.ts.map +1 -0
- package/build/types/modules/did.d.ts +386 -0
- package/build/types/modules/did.d.ts.map +1 -0
- package/build/types/modules/feeabstraction.d.ts +409 -0
- package/build/types/modules/feeabstraction.d.ts.map +1 -0
- package/build/types/modules/feemarket.d.ts +242 -0
- package/build/types/modules/feemarket.d.ts.map +1 -0
- package/build/types/modules/resource.d.ts +204 -0
- package/build/types/modules/resource.d.ts.map +1 -0
- package/build/types/querier.d.ts +62 -0
- package/build/types/querier.d.ts.map +1 -0
- package/build/types/registry.d.ts +18 -0
- package/build/types/registry.d.ts.map +1 -0
- package/build/types/signer.d.ts +190 -0
- package/build/types/signer.d.ts.map +1 -0
- package/build/types/types.d.ts +196 -0
- package/build/types/types.d.ts.map +1 -0
- package/build/types/utils.d.ts +223 -0
- package/build/types/utils.d.ts.map +1 -0
- package/build/types.d.ts +196 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +43 -0
- package/build/types.js.map +1 -0
- package/build/utils.d.ts +223 -0
- package/build/utils.d.ts.map +1 -0
- package/build/utils.js +541 -0
- package/build/utils.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { MsgAddHostZone, MsgAddHostZoneResponse, MsgFundFeeAbsModuleAccount, MsgFundFeeAbsModuleAccountResponse, MsgRemoveHostZone, MsgRemoveHostZoneResponse, MsgSendQueryIbcDenomTWAP, MsgSendQueryIbcDenomTWAPResponse, MsgSwapCrossChain, MsgSwapCrossChainResponse, MsgUpdateHostZone, MsgUpdateHostZoneResponse, MsgUpdateParams, MsgUpdateParamsResponse, QueryHostChainConfigRequest, QueryHostChainConfigResponse, QueryOsmosisArithmeticTwapRequest, QueryOsmosisArithmeticTwapResponse, QueryFeeabsModuleBalacesRequest, QueryFeeabsModuleBalacesResponse } from '@cheqd/ts-proto/feeabstraction/feeabs/v1beta1/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 fee abstraction-related query operations */
|
|
10
|
+
export declare const defaultFeeabstractionExtensionKey: "feeabs";
|
|
11
|
+
/**
|
|
12
|
+
* Protobuf message type literals for fee abstraction operations.
|
|
13
|
+
* Used for consistent message type identification across the module.
|
|
14
|
+
*/
|
|
15
|
+
export declare const protobufLiterals: {
|
|
16
|
+
/** Add host zone message type */
|
|
17
|
+
readonly MsgAddHostZone: "MsgAddHostZone";
|
|
18
|
+
/** Add host zone response message type */
|
|
19
|
+
readonly MsgAddHostZoneResponse: "MsgAddHostZoneResponse";
|
|
20
|
+
/** Fund fee abstraction module account message type */
|
|
21
|
+
readonly MsgFundFeeAbsModuleAccount: "MsgFundFeeAbsModuleAccount";
|
|
22
|
+
/** Fund fee abstraction module account response message type */
|
|
23
|
+
readonly MsgFundFeeAbsModuleAccountResponse: "MsgFundFeeAbsModuleAccountResponse";
|
|
24
|
+
/** Remove host zone message type */
|
|
25
|
+
readonly MsgRemoveHostZone: "MsgRemoveHostZone";
|
|
26
|
+
/** Remove host zone response message type */
|
|
27
|
+
readonly MsgRemoveHostZoneResponse: "MsgRemoveHostZoneResponse";
|
|
28
|
+
/** Send query IBC denomination TWAP message type */
|
|
29
|
+
readonly MsgSendQueryIbcDenomTWAP: "MsgSendQueryIbcDenomTWAP";
|
|
30
|
+
/** Send query IBC denomination TWAP response message type */
|
|
31
|
+
readonly MsgSendQueryIbcDenomTWAPResponse: "MsgSendQueryIbcDenomTWAPResponse";
|
|
32
|
+
/** Swap cross-chain message type */
|
|
33
|
+
readonly MsgSwapCrossChain: "MsgSwapCrossChain";
|
|
34
|
+
/** Swap cross-chain response message type */
|
|
35
|
+
readonly MsgSwapCrossChainResponse: "MsgSwapCrossChainResponse";
|
|
36
|
+
/** Update host zone message type */
|
|
37
|
+
readonly MsgUpdateHostZone: "MsgUpdateHostZone";
|
|
38
|
+
/** Update host zone response message type */
|
|
39
|
+
readonly MsgUpdateHostZoneResponse: "MsgUpdateHostZoneResponse";
|
|
40
|
+
/** Update parameters message type */
|
|
41
|
+
readonly MsgUpdateParams: "MsgUpdateParams";
|
|
42
|
+
/** Update parameters response message type */
|
|
43
|
+
readonly MsgUpdateParamsResponse: "MsgUpdateParamsResponse";
|
|
44
|
+
};
|
|
45
|
+
/** Type URL for MsgAddHostZone messages */
|
|
46
|
+
export declare const typeUrlMsgAddHostZone: "/feeabstraction.feeabs.v1beta1.MsgAddHostZone";
|
|
47
|
+
/** Type URL for MsgAddHostZoneResponse messages */
|
|
48
|
+
export declare const typeUrlMsgAddHostZoneResponse: "/feeabstraction.feeabs.v1beta1.MsgAddHostZoneResponse";
|
|
49
|
+
/** Type URL for MsgFundFeeAbsModuleAccount messages */
|
|
50
|
+
export declare const typeUrlMsgFundFeeAbsModuleAccount: "/feeabstraction.feeabs.v1beta1.MsgFundFeeAbsModuleAccount";
|
|
51
|
+
/** Type URL for MsgFundFeeAbsModuleAccountResponse messages */
|
|
52
|
+
export declare const typeUrlMsgFundFeeAbsModuleAccountResponse: "/feeabstraction.feeabs.v1beta1.MsgFundFeeAbsModuleAccountResponse";
|
|
53
|
+
/** Type URL for MsgRemoveHostZone messages */
|
|
54
|
+
export declare const typeUrlMsgRemoveHostZone: "/feeabstraction.feeabs.v1beta1.MsgRemoveHostZone";
|
|
55
|
+
/** Type URL for MsgRemoveHostZoneResponse messages */
|
|
56
|
+
export declare const typeUrlMsgRemoveHostZoneResponse: "/feeabstraction.feeabs.v1beta1.MsgRemoveHostZoneResponse";
|
|
57
|
+
/** Type URL for MsgSendQueryIbcDenomTWAP messages */
|
|
58
|
+
export declare const typeUrlMsgSendQueryIbcDenomTWAP: "/feeabstraction.feeabs.v1beta1.MsgSendQueryIbcDenomTWAP";
|
|
59
|
+
/** Type URL for MsgSendQueryIbcDenomTWAPResponse messages */
|
|
60
|
+
export declare const typeUrlMsgSendQueryIbcDenomTWAPResponse: "/feeabstraction.feeabs.v1beta1.MsgSendQueryIbcDenomTWAPResponse";
|
|
61
|
+
/** Type URL for MsgSwapCrossChain messages */
|
|
62
|
+
export declare const typeUrlMsgSwapCrossChain: "/feeabstraction.feeabs.v1beta1.MsgSwapCrossChain";
|
|
63
|
+
/** Type URL for MsgSwapCrossChainResponse messages */
|
|
64
|
+
export declare const typeUrlMsgSwapCrossChainResponse: "/feeabstraction.feeabs.v1beta1.MsgSwapCrossChainResponse";
|
|
65
|
+
/** Type URL for MsgUpdateHostZone messages */
|
|
66
|
+
export declare const typeUrlMsgUpdateHostZone: "/feeabstraction.feeabs.v1beta1.MsgUpdateHostZone";
|
|
67
|
+
/** Type URL for MsgUpdateHostZoneResponse messages */
|
|
68
|
+
export declare const typeUrlMsgUpdateHostZoneResponse: "/feeabstraction.feeabs.v1beta1.MsgUpdateHostZoneResponse";
|
|
69
|
+
/** Type URL for MsgUpdateParams messages */
|
|
70
|
+
export declare const typeUrlMsgUpdateParams: "/feeabstraction.feeabs.v1beta1.MsgUpdateParams";
|
|
71
|
+
/** Type URL for MsgUpdateParamsResponse messages */
|
|
72
|
+
export declare const typeUrlMsgUpdateParamsResponse: "/feeabstraction.feeabs.v1beta1.MsgUpdateParamsResponse";
|
|
73
|
+
/**
|
|
74
|
+
* Encode object interface for MsgAddHostZone messages.
|
|
75
|
+
* Used for type-safe message encoding in fee abstraction transactions.
|
|
76
|
+
*/
|
|
77
|
+
export interface MsgAddHostZoneEncodeObject extends EncodeObject {
|
|
78
|
+
readonly typeUrl: typeof typeUrlMsgAddHostZone;
|
|
79
|
+
readonly value: Partial<MsgAddHostZone>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Type guard function to check if an object is a MsgAddHostZoneEncodeObject.
|
|
83
|
+
*
|
|
84
|
+
* @param obj - EncodeObject to check
|
|
85
|
+
* @returns True if the object is a MsgAddHostZoneEncodeObject
|
|
86
|
+
*/
|
|
87
|
+
export declare function isMsgAddHostZoneEncodeObject(obj: EncodeObject): obj is MsgAddHostZoneEncodeObject;
|
|
88
|
+
export interface MsgAddHostZoneResponseEncodeObject extends EncodeObject {
|
|
89
|
+
readonly typeUrl: typeof typeUrlMsgAddHostZoneResponse;
|
|
90
|
+
readonly value: Partial<MsgAddHostZoneResponse>;
|
|
91
|
+
}
|
|
92
|
+
export declare function isMsgAddHostZoneResponseEncodeObject(obj: EncodeObject): obj is MsgAddHostZoneResponseEncodeObject;
|
|
93
|
+
export interface MsgFundFeeAbsModuleAccountEncodeObject extends EncodeObject {
|
|
94
|
+
readonly typeUrl: typeof typeUrlMsgFundFeeAbsModuleAccount;
|
|
95
|
+
readonly value: Partial<MsgFundFeeAbsModuleAccount>;
|
|
96
|
+
}
|
|
97
|
+
export declare function isMsgFundFeeAbsModuleAccountEncodeObject(obj: EncodeObject): obj is MsgFundFeeAbsModuleAccountEncodeObject;
|
|
98
|
+
/**
|
|
99
|
+
* Encode object interface for MsgFundFeeAbsModuleAccountResponse messages.
|
|
100
|
+
* Used for type-safe response message handling in fee abstraction module funding operations.
|
|
101
|
+
*/
|
|
102
|
+
export interface MsgFundFeeAbsModuleAccountResponseEncodeObject extends EncodeObject {
|
|
103
|
+
readonly typeUrl: typeof typeUrlMsgFundFeeAbsModuleAccountResponse;
|
|
104
|
+
readonly value: Partial<MsgFundFeeAbsModuleAccountResponse>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Type guard function to check if an object is a MsgFundFeeAbsModuleAccountResponseEncodeObject.
|
|
108
|
+
*
|
|
109
|
+
* @param obj - EncodeObject to check
|
|
110
|
+
* @returns True if the object is a MsgFundFeeAbsModuleAccountResponseEncodeObject
|
|
111
|
+
*/
|
|
112
|
+
export declare function isMsgFundFeeAbsModuleAccountResponseEncodeObject(obj: EncodeObject): obj is MsgFundFeeAbsModuleAccountResponseEncodeObject;
|
|
113
|
+
/**
|
|
114
|
+
* Encode object interface for MsgRemoveHostZone messages.
|
|
115
|
+
* Used for type-safe message encoding in host zone removal transactions.
|
|
116
|
+
*/
|
|
117
|
+
export interface MsgRemoveHostZoneEncodeObject extends EncodeObject {
|
|
118
|
+
readonly typeUrl: typeof typeUrlMsgRemoveHostZone;
|
|
119
|
+
readonly value: Partial<MsgRemoveHostZone>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Type guard function to check if an object is a MsgRemoveHostZoneEncodeObject.
|
|
123
|
+
*
|
|
124
|
+
* @param obj - EncodeObject to check
|
|
125
|
+
* @returns True if the object is a MsgRemoveHostZoneEncodeObject
|
|
126
|
+
*/
|
|
127
|
+
export declare function isMsgRemoveHostZoneEncodeObject(obj: EncodeObject): obj is MsgRemoveHostZoneEncodeObject;
|
|
128
|
+
/**
|
|
129
|
+
* Encode object interface for MsgRemoveHostZoneResponse messages.
|
|
130
|
+
* Used for type-safe response message handling in host zone removal operations.
|
|
131
|
+
*/
|
|
132
|
+
export interface MsgRemoveHostZoneResponseEncodeObject extends EncodeObject {
|
|
133
|
+
readonly typeUrl: typeof typeUrlMsgRemoveHostZoneResponse;
|
|
134
|
+
readonly value: Partial<MsgRemoveHostZoneResponse>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Type guard function to check if an object is a MsgRemoveHostZoneResponseEncodeObject.
|
|
138
|
+
*
|
|
139
|
+
* @param obj - EncodeObject to check
|
|
140
|
+
* @returns True if the object is a MsgRemoveHostZoneResponseEncodeObject
|
|
141
|
+
*/
|
|
142
|
+
export declare function isMsgRemoveHostZoneResponseEncodeObject(obj: EncodeObject): obj is MsgRemoveHostZoneResponseEncodeObject;
|
|
143
|
+
/**
|
|
144
|
+
* Encode object interface for MsgSendQueryIbcDenomTWAP messages.
|
|
145
|
+
* Used for type-safe message encoding in IBC denomination TWAP query transactions.
|
|
146
|
+
*/
|
|
147
|
+
export interface MsgSendQueryIbcDenomTWAPEncodeObject extends EncodeObject {
|
|
148
|
+
readonly typeUrl: typeof typeUrlMsgSendQueryIbcDenomTWAP;
|
|
149
|
+
readonly value: Partial<MsgSendQueryIbcDenomTWAP>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Type guard function to check if an object is a MsgSendQueryIbcDenomTWAPEncodeObject.
|
|
153
|
+
*
|
|
154
|
+
* @param obj - EncodeObject to check
|
|
155
|
+
* @returns True if the object is a MsgSendQueryIbcDenomTWAPEncodeObject
|
|
156
|
+
*/
|
|
157
|
+
export declare function isMsgSendQueryIbcDenomTWAPEncodeObject(obj: EncodeObject): obj is MsgSendQueryIbcDenomTWAPEncodeObject;
|
|
158
|
+
/**
|
|
159
|
+
* Encode object interface for MsgSendQueryIbcDenomTWAPResponse messages.
|
|
160
|
+
* Used for type-safe response message handling in IBC denomination TWAP query operations.
|
|
161
|
+
*/
|
|
162
|
+
export interface MsgSendQueryIbcDenomTWAPResponseEncodeObject extends EncodeObject {
|
|
163
|
+
readonly typeUrl: typeof typeUrlMsgSendQueryIbcDenomTWAPResponse;
|
|
164
|
+
readonly value: Partial<MsgSendQueryIbcDenomTWAPResponse>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Type guard function to check if an object is a MsgSendQueryIbcDenomTWAPResponseEncodeObject.
|
|
168
|
+
*
|
|
169
|
+
* @param obj - EncodeObject to check
|
|
170
|
+
* @returns True if the object is a MsgSendQueryIbcDenomTWAPResponseEncodeObject
|
|
171
|
+
*/
|
|
172
|
+
export declare function isMsgSendQueryIbcDenomTWAPResponseEncodeObject(obj: EncodeObject): obj is MsgSendQueryIbcDenomTWAPResponseEncodeObject;
|
|
173
|
+
/**
|
|
174
|
+
* Encode object interface for MsgSwapCrossChain messages.
|
|
175
|
+
* Used for type-safe message encoding in cross-chain swap transactions.
|
|
176
|
+
*/
|
|
177
|
+
export interface MsgSwapCrossChainEncodeObject extends EncodeObject {
|
|
178
|
+
readonly typeUrl: typeof typeUrlMsgSwapCrossChain;
|
|
179
|
+
readonly value: Partial<MsgSwapCrossChain>;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Type guard function to check if an object is a MsgSwapCrossChainEncodeObject.
|
|
183
|
+
*
|
|
184
|
+
* @param obj - EncodeObject to check
|
|
185
|
+
* @returns True if the object is a MsgSwapCrossChainEncodeObject
|
|
186
|
+
*/
|
|
187
|
+
export declare function isMsgSwapCrossChainEncodeObject(obj: EncodeObject): obj is MsgSwapCrossChainEncodeObject;
|
|
188
|
+
/**
|
|
189
|
+
* Encode object interface for MsgSwapCrossChainResponse messages.
|
|
190
|
+
* Used for type-safe response message handling in cross-chain swap operations.
|
|
191
|
+
*/
|
|
192
|
+
export interface MsgSwapCrossChainResponseEncodeObject extends EncodeObject {
|
|
193
|
+
readonly typeUrl: typeof typeUrlMsgSwapCrossChainResponse;
|
|
194
|
+
readonly value: Partial<MsgSwapCrossChainResponse>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Type guard function to check if an object is a MsgSwapCrossChainResponseEncodeObject.
|
|
198
|
+
*
|
|
199
|
+
* @param obj - EncodeObject to check
|
|
200
|
+
* @returns True if the object is a MsgSwapCrossChainResponseEncodeObject
|
|
201
|
+
*/
|
|
202
|
+
export declare function isMsgSwapCrossChainResponseEncodeObject(obj: EncodeObject): obj is MsgSwapCrossChainResponseEncodeObject;
|
|
203
|
+
/**
|
|
204
|
+
* Encode object interface for MsgUpdateHostZone messages.
|
|
205
|
+
* Used for type-safe message encoding in host zone update transactions.
|
|
206
|
+
*/
|
|
207
|
+
export interface MsgUpdateHostZoneEncodeObject extends EncodeObject {
|
|
208
|
+
readonly typeUrl: typeof typeUrlMsgUpdateHostZone;
|
|
209
|
+
readonly value: Partial<MsgUpdateHostZone>;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Type guard function to check if an object is a MsgUpdateHostZoneEncodeObject.
|
|
213
|
+
*
|
|
214
|
+
* @param obj - EncodeObject to check
|
|
215
|
+
* @returns True if the object is a MsgUpdateHostZoneEncodeObject
|
|
216
|
+
*/
|
|
217
|
+
export declare function isMsgUpdateHostZoneEncodeObject(obj: EncodeObject): obj is MsgUpdateHostZoneEncodeObject;
|
|
218
|
+
/**
|
|
219
|
+
* Encode object interface for MsgUpdateHostZoneResponse messages.
|
|
220
|
+
* Used for type-safe response message handling in host zone update operations.
|
|
221
|
+
*/
|
|
222
|
+
export interface MsgUpdateHostZoneResponseEncodeObject extends EncodeObject {
|
|
223
|
+
readonly typeUrl: typeof typeUrlMsgUpdateHostZoneResponse;
|
|
224
|
+
readonly value: Partial<MsgUpdateHostZoneResponse>;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Type guard function to check if an object is a MsgUpdateHostZoneResponseEncodeObject.
|
|
228
|
+
*
|
|
229
|
+
* @param obj - EncodeObject to check
|
|
230
|
+
* @returns True if the object is a MsgUpdateHostZoneResponseEncodeObject
|
|
231
|
+
*/
|
|
232
|
+
export declare function isMsgUpdateHostZoneResponseEncodeObject(obj: EncodeObject): obj is MsgUpdateHostZoneResponseEncodeObject;
|
|
233
|
+
/**
|
|
234
|
+
* Encode object interface for MsgUpdateParams messages.
|
|
235
|
+
* Used for type-safe message encoding in parameter update transactions.
|
|
236
|
+
*/
|
|
237
|
+
export interface MsgUpdateParamsEncodeObject extends EncodeObject {
|
|
238
|
+
readonly typeUrl: typeof typeUrlMsgUpdateParams;
|
|
239
|
+
readonly value: Partial<MsgUpdateParams>;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Type guard function to check if an object is a MsgUpdateParamsEncodeObject.
|
|
243
|
+
*
|
|
244
|
+
* @param obj - EncodeObject to check
|
|
245
|
+
* @returns True if the object is a MsgUpdateParamsEncodeObject
|
|
246
|
+
*/
|
|
247
|
+
export declare function isMsgUpdateParamsEncodeObject(obj: EncodeObject): obj is MsgUpdateParamsEncodeObject;
|
|
248
|
+
/**
|
|
249
|
+
* Encode object interface for MsgUpdateParamsResponse messages.
|
|
250
|
+
* Used for type-safe response message handling in parameter update operations.
|
|
251
|
+
*/
|
|
252
|
+
export interface MsgUpdateParamsResponseEncodeObject extends EncodeObject {
|
|
253
|
+
readonly typeUrl: typeof typeUrlMsgUpdateParamsResponse;
|
|
254
|
+
readonly value: Partial<MsgUpdateParamsResponse>;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Type guard function to check if an object is a MsgUpdateParamsResponseEncodeObject.
|
|
258
|
+
*
|
|
259
|
+
* @param obj - EncodeObject to check
|
|
260
|
+
* @returns True if the object is a MsgUpdateParamsResponseEncodeObject
|
|
261
|
+
*/
|
|
262
|
+
export declare function isMsgUpdateParamsResponseEncodeObject(obj: EncodeObject): obj is MsgUpdateParamsResponseEncodeObject;
|
|
263
|
+
/** Minimal importable version of the fee abstraction module for clean external interfaces */
|
|
264
|
+
export type MinimalImportableFeeabstractionModule = MinimalImportableCheqdSDKModule<FeeabstractionModule>;
|
|
265
|
+
/**
|
|
266
|
+
* Fee abstraction extension interface for querier functionality.
|
|
267
|
+
* Provides methods for querying fee abstraction-related data.
|
|
268
|
+
*/
|
|
269
|
+
export type FeeabstractionExtension = {
|
|
270
|
+
readonly [defaultFeeabstractionExtensionKey]: {
|
|
271
|
+
/** Query host chain configuration */
|
|
272
|
+
readonly hostChainConfig: (request: QueryHostChainConfigRequest) => Promise<QueryHostChainConfigResponse>;
|
|
273
|
+
/** Query Osmosis arithmetic TWAP data */
|
|
274
|
+
readonly osmosisArithmeticTwap: (request: QueryOsmosisArithmeticTwapRequest) => Promise<QueryOsmosisArithmeticTwapResponse>;
|
|
275
|
+
/** Query fee abstraction module account balances */
|
|
276
|
+
readonly feeabsModuleBalances: (request: QueryFeeabsModuleBalacesRequest) => Promise<QueryFeeabsModuleBalacesResponse>;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Sets up the fee abstraction extension for the querier client.
|
|
281
|
+
* Creates and configures the fee abstraction-specific query methods.
|
|
282
|
+
*
|
|
283
|
+
* @param base - Base QueryClient to extend
|
|
284
|
+
* @returns Configured fee abstraction extension with query methods
|
|
285
|
+
*/
|
|
286
|
+
export declare const setupFeeabstractionExtension: (base: QueryClient) => FeeabstractionExtension;
|
|
287
|
+
/**
|
|
288
|
+
* Fee Abstraction Module class providing comprehensive fee abstraction functionality.
|
|
289
|
+
* Handles host zone management, cross-chain swaps, and fee abstraction operations on the Cheqd blockchain.
|
|
290
|
+
*/
|
|
291
|
+
export declare class FeeabstractionModule extends AbstractCheqdSDKModule {
|
|
292
|
+
static readonly registryTypes: Iterable<[string, GeneratedType]>;
|
|
293
|
+
/** Querier extension setup function for fee abstraction operations */
|
|
294
|
+
static readonly querierExtensionSetup: QueryExtensionSetup<FeeabstractionExtension>;
|
|
295
|
+
/** Querier instance with fee abstraction extension capabilities */
|
|
296
|
+
querier: CheqdQuerier & FeeabstractionExtension;
|
|
297
|
+
/**
|
|
298
|
+
* Constructs a new fee abstraction module instance.
|
|
299
|
+
*
|
|
300
|
+
* @param signer - Signing client for blockchain transactions
|
|
301
|
+
* @param querier - Querier client with fee abstraction extension for data retrieval
|
|
302
|
+
*/
|
|
303
|
+
constructor(signer: CheqdSigningStargateClient, querier: CheqdQuerier & FeeabstractionExtension);
|
|
304
|
+
/**
|
|
305
|
+
* Gets the registry types for fee abstraction message encoding/decoding.
|
|
306
|
+
*
|
|
307
|
+
* @returns Iterable of [typeUrl, GeneratedType] pairs for the registry
|
|
308
|
+
*/
|
|
309
|
+
getRegistryTypes(): Iterable<[string, GeneratedType]>;
|
|
310
|
+
/**
|
|
311
|
+
* Gets the querier extension setup for fee abstraction operations.
|
|
312
|
+
*
|
|
313
|
+
* @returns Query extension setup function for fee abstraction functionality
|
|
314
|
+
*/
|
|
315
|
+
getQuerierExtensionSetup(): QueryExtensionSetup<FeeabstractionExtension>;
|
|
316
|
+
/**
|
|
317
|
+
* Creates a governance proposal to add a new host zone for fee abstraction.
|
|
318
|
+
* Submits the proposal through the governance module for community voting.
|
|
319
|
+
*
|
|
320
|
+
* @param data - Host zone data to add
|
|
321
|
+
* @param title - Proposal title
|
|
322
|
+
* @param deposit - Initial deposit for the proposal
|
|
323
|
+
* @param proposer - Address of the proposal submitter
|
|
324
|
+
* @param fee - Transaction fee configuration
|
|
325
|
+
* @param memo - Optional transaction memo
|
|
326
|
+
* @param context - Optional SDK context for accessing clients
|
|
327
|
+
* @returns Promise resolving to the transaction response
|
|
328
|
+
*/
|
|
329
|
+
addHostZoneProposal(data: MsgAddHostZone, title: string, deposit: Coin[], proposer: string, fee: DidStdFee, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
330
|
+
/**
|
|
331
|
+
* Funds the fee abstraction module account with tokens.
|
|
332
|
+
* Allows users to provide liquidity for fee abstraction functionality.
|
|
333
|
+
*
|
|
334
|
+
* @param sender - Address of the account sending funds
|
|
335
|
+
* @param amount - Array of coins to send to the module account
|
|
336
|
+
* @param fee - Transaction fee configuration
|
|
337
|
+
* @param memo - Optional transaction memo
|
|
338
|
+
* @param context - Optional SDK context for accessing clients
|
|
339
|
+
* @returns Promise resolving to the transaction response
|
|
340
|
+
*/
|
|
341
|
+
fundFeeAbsModuleAccount(sender: string, amount: Coin[], fee: DidStdFee, memo?: string, context?: IContext): Promise<MsgFundFeeAbsModuleAccountResponse>;
|
|
342
|
+
/**
|
|
343
|
+
* Creates a governance proposal to remove an existing host zone from fee abstraction.
|
|
344
|
+
* Submits the proposal through the governance module for community voting.
|
|
345
|
+
*
|
|
346
|
+
* @param data - Host zone data to remove
|
|
347
|
+
* @param title - Proposal title
|
|
348
|
+
* @param deposit - Initial deposit for the proposal
|
|
349
|
+
* @param proposer - Address of the proposal submitter
|
|
350
|
+
* @param fee - Transaction fee configuration
|
|
351
|
+
* @param memo - Optional transaction memo
|
|
352
|
+
* @param context - Optional SDK context for accessing clients
|
|
353
|
+
* @returns Promise resolving to the transaction response
|
|
354
|
+
*/
|
|
355
|
+
removeHostZoneProposal(data: MsgRemoveHostZone, title: string, deposit: Coin[], proposer: string, fee: DidStdFee, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
356
|
+
/**
|
|
357
|
+
* Sends a query for IBC denomination Time-Weighted Average Price (TWAP) data.
|
|
358
|
+
* Initiates a cross-chain query to retrieve pricing information for fee calculation.
|
|
359
|
+
*
|
|
360
|
+
* @param sender - Address of the account sending the query
|
|
361
|
+
* @param data - TWAP query data containing denomination and parameters
|
|
362
|
+
* @param fee - Transaction fee configuration
|
|
363
|
+
* @param memo - Optional transaction memo
|
|
364
|
+
* @param context - Optional SDK context for accessing clients
|
|
365
|
+
* @returns Promise resolving to the TWAP query response
|
|
366
|
+
*/
|
|
367
|
+
sendQueryIbcDenomTWAP(sender: string, data: MsgSendQueryIbcDenomTWAP, fee: DidStdFee, memo?: string, context?: IContext): Promise<MsgSendQueryIbcDenomTWAPResponse>;
|
|
368
|
+
/**
|
|
369
|
+
* Performs a cross-chain token swap using fee abstraction.
|
|
370
|
+
* Enables users to swap IBC tokens across different chains.
|
|
371
|
+
*
|
|
372
|
+
* @param sender - Address of the account initiating the swap
|
|
373
|
+
* @param ibcDenom - IBC denomination to swap
|
|
374
|
+
* @param fee - Transaction fee configuration
|
|
375
|
+
* @param memo - Optional transaction memo
|
|
376
|
+
* @param context - Optional SDK context for accessing clients
|
|
377
|
+
* @returns Promise resolving to the swap response
|
|
378
|
+
*/
|
|
379
|
+
swapCrossChain(sender: string, ibcDenom: string, fee: DidStdFee, memo?: string, context?: IContext): Promise<MsgSwapCrossChainResponse>;
|
|
380
|
+
/**
|
|
381
|
+
* Creates a governance proposal to update an existing host zone configuration.
|
|
382
|
+
* Submits the proposal through the governance module for community voting.
|
|
383
|
+
*
|
|
384
|
+
* @param data - Updated host zone configuration data
|
|
385
|
+
* @param title - Proposal title
|
|
386
|
+
* @param deposit - Initial deposit for the proposal
|
|
387
|
+
* @param proposer - Address of the proposal submitter
|
|
388
|
+
* @param fee - Transaction fee configuration
|
|
389
|
+
* @param memo - Optional transaction memo
|
|
390
|
+
* @param context - Optional SDK context for accessing clients
|
|
391
|
+
* @returns Promise resolving to the transaction response
|
|
392
|
+
*/
|
|
393
|
+
updateHostZoneProposal(data: MsgUpdateHostZone, title: string, deposit: Coin[], proposer: string, fee: DidStdFee, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
394
|
+
/**
|
|
395
|
+
* Creates a governance proposal to update fee abstraction module parameters.
|
|
396
|
+
* Submits the proposal through the governance module for community voting.
|
|
397
|
+
*
|
|
398
|
+
* @param data - Updated module parameters
|
|
399
|
+
* @param title - Proposal title
|
|
400
|
+
* @param deposit - Initial deposit for the proposal
|
|
401
|
+
* @param proposer - Address of the proposal submitter
|
|
402
|
+
* @param fee - Transaction fee configuration
|
|
403
|
+
* @param memo - Optional transaction memo
|
|
404
|
+
* @param context - Optional SDK context for accessing clients
|
|
405
|
+
* @returns Promise resolving to the transaction response
|
|
406
|
+
*/
|
|
407
|
+
updateParamsProposal(data: MsgUpdateParams, title: string, deposit: Coin[], proposer: string, fee: DidStdFee, memo?: string, context?: IContext): Promise<DeliverTxResponse>;
|
|
408
|
+
}
|
|
409
|
+
//# sourceMappingURL=feeabstraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feeabstraction.d.ts","sourceRoot":"","sources":["../../../src/modules/feeabstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,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,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,+BAA+B,EAC/B,gCAAgC,EAEhC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EA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AAO,CAAC,EAAE,QAAQ,GAChB,OAAO,CAAC,yBAAyB,CAAC;IAarC;;;;;;;;;;;;OAYG;IACG,sBAAsB,CAC3B,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,IAAI,EAAE,EACf,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,SAAS,EACd,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,QAAQ,GAChB,OAAO,CAAC,iBAAiB,CAAC;IAqB7B;;;;;;;;;;;;OAYG;IACG,oBAAoB,CACzB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,IAAI,EAAE,EACf,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,SAAS,EACd,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,QAAQ,GAChB,OAAO,CAAC,iBAAiB,CAAC;CAoB7B"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { GasPriceResponse, GasPricesResponse, ParamsResponse } from '@cheqd/ts-proto/feemarket/feemarket/v1/index.js';
|
|
2
|
+
import { EncodeObject, GeneratedType } from '@cosmjs/proto-signing';
|
|
3
|
+
import { GasPrice, QueryClient } from '@cosmjs/stargate';
|
|
4
|
+
import { AbstractCheqdSDKModule, MinimalImportableCheqdSDKModule } from './_.js';
|
|
5
|
+
import { DidStdFee, IContext, QueryExtensionSetup } from '../types.js';
|
|
6
|
+
import { CheqdQuerier } from '../querier.js';
|
|
7
|
+
import { CheqdSigningStargateClient } from '../signer.js';
|
|
8
|
+
/** Default extension key for fee market-related query operations */
|
|
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
|
+
*/
|
|
14
|
+
export declare const protobufLiterals: {
|
|
15
|
+
/** Gas price response message type */
|
|
16
|
+
readonly GasPriceResponse: "GasPriceResponse";
|
|
17
|
+
/** Gas prices response message type */
|
|
18
|
+
readonly GasPricesResponse: "GasPricesResponse";
|
|
19
|
+
/** Parameters response message type */
|
|
20
|
+
readonly ParamsResponse: "ParamsResponse";
|
|
21
|
+
};
|
|
22
|
+
/** Type URL for GasPriceResponse messages */
|
|
23
|
+
export declare const typeUrlGasPriceResponse: "/feemarket.feemarket.v1.GasPriceResponse";
|
|
24
|
+
/** Type URL for GasPricesResponse messages */
|
|
25
|
+
export declare const typeUrlGasPricesResponse: "/feemarket.feemarket.v1.GasPricesResponse";
|
|
26
|
+
/** Type URL for ParamsResponse messages */
|
|
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
|
+
*/
|
|
32
|
+
export declare const defaultGasPriceTiers: {
|
|
33
|
+
/** Low priority tier with lowest gas prices */
|
|
34
|
+
readonly Low: "DefaultLowTier";
|
|
35
|
+
/** Average priority tier with moderate gas prices */
|
|
36
|
+
readonly Avg: "DefaultAvgTier";
|
|
37
|
+
/** High priority tier with highest gas prices */
|
|
38
|
+
readonly High: "DefaultHighTier";
|
|
39
|
+
};
|
|
40
|
+
/** Type representing the available default gas price tiers */
|
|
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
|
+
*/
|
|
46
|
+
export interface GasPriceEncodeObject extends EncodeObject {
|
|
47
|
+
readonly typeUrl: typeof typeUrlGasPriceResponse;
|
|
48
|
+
readonly value: Partial<GasPriceResponse>;
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
61
|
+
export interface GasPricesEncodeObject extends EncodeObject {
|
|
62
|
+
readonly typeUrl: typeof typeUrlGasPricesResponse;
|
|
63
|
+
readonly value: Partial<GasPricesResponse>;
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
76
|
+
export interface ParamsEncodeObject extends EncodeObject {
|
|
77
|
+
readonly typeUrl: typeof typeUrlParamsResponse;
|
|
78
|
+
readonly value: Partial<ParamsResponse>;
|
|
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
|
+
*/
|
|
86
|
+
export declare function isParamsEncodeObject(obj: EncodeObject): obj is ParamsEncodeObject;
|
|
87
|
+
/** Minimal importable version of the fee market module for clean external interfaces */
|
|
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
|
+
*/
|
|
93
|
+
export type FeemarketExtension = {
|
|
94
|
+
readonly [defaultFeemarketExtensionKey]: {
|
|
95
|
+
/** Query gas price for a specific denomination */
|
|
96
|
+
readonly gasPrice: (denom: string) => Promise<GasPriceResponse>;
|
|
97
|
+
/** Query all available gas prices */
|
|
98
|
+
readonly gasPrices: () => Promise<GasPricesResponse>;
|
|
99
|
+
/** Query fee market module parameters */
|
|
100
|
+
readonly params: () => Promise<ParamsResponse>;
|
|
101
|
+
};
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
115
|
+
export declare class FeemarketModule extends AbstractCheqdSDKModule {
|
|
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
|
+
*/
|
|
121
|
+
static readonly defaultGasPrices: {
|
|
122
|
+
readonly DefaultLowTier: {
|
|
123
|
+
readonly amount: "5000";
|
|
124
|
+
readonly denom: "ncheq";
|
|
125
|
+
};
|
|
126
|
+
readonly DefaultAvgTier: {
|
|
127
|
+
readonly amount: "7500";
|
|
128
|
+
readonly denom: "ncheq";
|
|
129
|
+
};
|
|
130
|
+
readonly DefaultHighTier: {
|
|
131
|
+
readonly amount: "10000";
|
|
132
|
+
readonly denom: "ncheq";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
/** Gas offset factor used for adjusting live gas prices */
|
|
136
|
+
static readonly gasOffsetFactor: number;
|
|
137
|
+
/** Address of the fee collector account that receives transaction fees */
|
|
138
|
+
static readonly feeCollectorAddress: "cheqd13pxn9n3qw79e03844rdadagmg0nshmwfszqu0g";
|
|
139
|
+
/** Address of the fee market module account */
|
|
140
|
+
static readonly moduleAccountAddress: "cheqd1el68mjnzv87uurqks8u29tec0cj3297047g2dl";
|
|
141
|
+
/** Querier extension setup function for fee market operations */
|
|
142
|
+
static readonly querierExtensionSetup: QueryExtensionSetup<FeemarketExtension>;
|
|
143
|
+
/** Querier instance with fee market extension capabilities */
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
188
|
+
queryParams(context?: IContext): Promise<ParamsResponse>;
|
|
189
|
+
/**
|
|
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
|
|
198
|
+
*/
|
|
199
|
+
generateGasPrice(denom: string, context?: IContext): Promise<GasPrice>;
|
|
200
|
+
/**
|
|
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
|
|
208
|
+
*/
|
|
209
|
+
generateOfflineGasPrice(denom: string, tier?: DefaultGasPriceTiers): Promise<GasPrice>;
|
|
210
|
+
/**
|
|
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)
|
|
218
|
+
*/
|
|
219
|
+
generateSafeGasPrice(denom: string, tier?: DefaultGasPriceTiers, context?: IContext): Promise<GasPrice>;
|
|
220
|
+
/**
|
|
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)
|
|
229
|
+
*/
|
|
230
|
+
generateSafeGasPriceWithExponentialBackoff(denom: string, tier?: DefaultGasPriceTiers, backoffOptions?: Partial<import("exponential-backoff").IBackOffOptions>, context?: IContext): Promise<GasPrice>;
|
|
231
|
+
/**
|
|
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
|
|
239
|
+
*/
|
|
240
|
+
static generateFeesFromGasPrice(gasPrice: GasPrice, payer: string, gas?: string): DidStdFee;
|
|
241
|
+
}
|
|
242
|
+
//# sourceMappingURL=feemarket.d.ts.map
|