ault-sdk-ts 0.7.2 → 0.9.0

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 (67) hide show
  1. package/README.md +104 -1
  2. package/dist/agent/sign-and-broadcast.d.ts +1 -1
  3. package/dist/agent/tx/perpetual.d.ts +10 -0
  4. package/dist/client.d.ts +2 -0
  5. package/dist/core/clob-msgs.d.ts +12 -3
  6. package/dist/core/manifest-types.d.ts +8 -0
  7. package/dist/core/network.d.ts +11 -7
  8. package/dist/core/perpetual-gas.d.ts +12 -0
  9. package/dist/core/perpetual-msgs.d.ts +60 -0
  10. package/dist/eip712/msg-encoders.generated.d.ts +8 -0
  11. package/dist/eip712/msg.generated.d.ts +76 -6
  12. package/dist/eip712/registry.d.ts +11 -0
  13. package/dist/eip712/types.d.ts +5 -0
  14. package/dist/high-level/tx/perpetual.d.ts +3 -0
  15. package/dist/high-level/types.d.ts +83 -4
  16. package/dist/index.cjs +24916 -9691
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +3 -0
  19. package/dist/index.js +25243 -10290
  20. package/dist/index.js.map +1 -1
  21. package/dist/perp/decimal.d.ts +39 -0
  22. package/dist/perp/funding.d.ts +18 -0
  23. package/dist/perp/index.d.ts +5 -0
  24. package/dist/perp/margin.d.ts +33 -0
  25. package/dist/perp/orders.d.ts +27 -0
  26. package/dist/perp/position.d.ts +29 -0
  27. package/dist/proto/gen/ault/accountx/v1/query.d.ts +10 -1
  28. package/dist/proto/gen/ault/authority/v1/authority.d.ts +2 -0
  29. package/dist/proto/gen/ault/clob/v1/genesis.d.ts +7 -0
  30. package/dist/proto/gen/ault/clob/v1/twap.d.ts +11 -8
  31. package/dist/proto/gen/ault/clob/v1/tx.d.ts +11 -1
  32. package/dist/proto/gen/ault/common/v1/system.d.ts +31 -0
  33. package/dist/proto/gen/ault/lending/v1/genesis.d.ts +34 -0
  34. package/dist/proto/gen/ault/lending/v1/lending.d.ts +152 -0
  35. package/dist/proto/gen/ault/lending/v1/params.d.ts +42 -0
  36. package/dist/proto/gen/ault/lending/v1/query.d.ts +157 -0
  37. package/dist/proto/gen/ault/lending/v1/tx.d.ts +236 -0
  38. package/dist/proto/gen/ault/margin/v1/genesis.d.ts +102 -0
  39. package/dist/proto/gen/ault/margin/v1/margin.d.ts +130 -0
  40. package/dist/proto/gen/ault/margin/v1/params.d.ts +31 -0
  41. package/dist/proto/gen/ault/margin/v1/query.d.ts +127 -0
  42. package/dist/proto/gen/ault/margin/v1/tx.d.ts +181 -0
  43. package/dist/proto/gen/ault/market/v1/market.d.ts +9 -0
  44. package/dist/proto/gen/ault/market/v1/tx.d.ts +16 -0
  45. package/dist/proto/gen/ault/oracle/v1/genesis.d.ts +69 -0
  46. package/dist/proto/gen/ault/oracle/v1/oracle.d.ts +154 -0
  47. package/dist/proto/gen/ault/oracle/v1/query.d.ts +93 -0
  48. package/dist/proto/gen/ault/oracle/v1/tx.d.ts +151 -0
  49. package/dist/proto/gen/ault/perpetual/v1/genesis.d.ts +119 -0
  50. package/dist/proto/gen/ault/perpetual/v1/order.d.ts +46 -0
  51. package/dist/proto/gen/ault/perpetual/v1/params.d.ts +30 -0
  52. package/dist/proto/gen/ault/perpetual/v1/perpetual.d.ts +192 -0
  53. package/dist/proto/gen/ault/perpetual/v1/query.d.ts +150 -0
  54. package/dist/proto/gen/ault/perpetual/v1/tx.d.ts +97 -0
  55. package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +37 -0
  56. package/dist/proto/gen/ault/vault/v1/genesis.d.ts +90 -0
  57. package/dist/proto/gen/ault/vault/v1/params.d.ts +55 -0
  58. package/dist/proto/gen/ault/vault/v1/query.d.ts +152 -0
  59. package/dist/proto/gen/ault/vault/v1/tx.d.ts +194 -0
  60. package/dist/proto/gen/ault/vault/v1/vault.d.ts +227 -0
  61. package/dist/rest/dex-types.generated.d.ts +2104 -25
  62. package/dist/rest/dex.d.ts +18 -1
  63. package/dist/rest/dex.generated.d.ts +4336 -445
  64. package/dist/rest/perpetual.d.ts +46 -0
  65. package/dist/rest/tokenregistry.d.ts +7 -0
  66. package/dist/utils/cosmos-dec.d.ts +1 -0
  67. package/package.json +1 -1
@@ -0,0 +1,194 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
+ import { Params } from "./params";
4
+ import { FeePolicy, LendingVaultConfig, LockupPolicy, OracleFeed, TradingVaultConfig, VaultRelationship, VaultStatus, VaultType } from "./vault";
5
+ export declare const protobufPackage = "ault.vault.v1";
6
+ /** MsgCreateVault creates a vault. */
7
+ export interface MsgCreateVault {
8
+ owner: string;
9
+ /**
10
+ * manager must equal owner for normal, identifies the root manager for
11
+ * parent, and must be empty for child.
12
+ */
13
+ manager: string;
14
+ vaultType: VaultType;
15
+ relationship: VaultRelationship;
16
+ vaultDenom: string;
17
+ lockup: LockupPolicy | undefined;
18
+ fee: FeePolicy | undefined;
19
+ lending?: LendingVaultConfig | undefined;
20
+ trading?: TradingVaultConfig | undefined;
21
+ exitFeeBps: number;
22
+ /**
23
+ * initial_deposit is the vault-denomination amount supplied when creating a
24
+ * vault.
25
+ */
26
+ initialDeposit: Coin | undefined;
27
+ }
28
+ /** MsgCreateVaultResponse returns the created vault identity. */
29
+ export interface MsgCreateVaultResponse {
30
+ vaultAddress: string;
31
+ /**
32
+ * minted_shares is the number of shares minted at creation and is zero when
33
+ * creation mints no shares.
34
+ */
35
+ mintedShares: string;
36
+ }
37
+ /** MsgUpdateVaultManager updates a vault manager. */
38
+ export interface MsgUpdateVaultManager {
39
+ owner: string;
40
+ vaultAddress: string;
41
+ /**
42
+ * manager replaces the direct manager of a normal or parent vault. a child
43
+ * changes its effective manager through its parent.
44
+ */
45
+ manager: string;
46
+ }
47
+ /** MsgUpdateVaultManagerResponse is the response for MsgUpdateVaultManager. */
48
+ export interface MsgUpdateVaultManagerResponse {
49
+ }
50
+ /** MsgUpdateVaultConfig updates a vault configuration. */
51
+ export interface MsgUpdateVaultConfig {
52
+ owner: string;
53
+ vaultAddress: string;
54
+ lending?: LendingVaultConfig | undefined;
55
+ trading?: TradingVaultConfig | undefined;
56
+ }
57
+ /** MsgUpdateVaultConfigResponse returns the delayed execution time when present. */
58
+ export interface MsgUpdateVaultConfigResponse {
59
+ executeAfter: Date | undefined;
60
+ }
61
+ /** MsgCancelVaultConfigUpdate cancels a pending vault configuration update. */
62
+ export interface MsgCancelVaultConfigUpdate {
63
+ owner: string;
64
+ vaultAddress: string;
65
+ }
66
+ /**
67
+ * MsgCancelVaultConfigUpdateResponse is the response for
68
+ * MsgCancelVaultConfigUpdate.
69
+ */
70
+ export interface MsgCancelVaultConfigUpdateResponse {
71
+ }
72
+ /** MsgSetVaultStatus updates a vault status. */
73
+ export interface MsgSetVaultStatus {
74
+ sender: string;
75
+ vaultAddress: string;
76
+ status: VaultStatus;
77
+ }
78
+ /** MsgSetVaultStatusResponse is the response for MsgSetVaultStatus. */
79
+ export interface MsgSetVaultStatusResponse {
80
+ }
81
+ /** MsgDeposit deposits user funds into a vault. */
82
+ export interface MsgDeposit {
83
+ sender: string;
84
+ vaultAddress: string;
85
+ amount: Coin | undefined;
86
+ }
87
+ /** MsgDepositResponse returns minted vault shares. */
88
+ export interface MsgDepositResponse {
89
+ mintedShares: string;
90
+ }
91
+ /** MsgRedeem redeems user vault shares. */
92
+ export interface MsgRedeem {
93
+ sender: string;
94
+ vaultAddress: string;
95
+ shares: string;
96
+ }
97
+ /** VaultInstantRedemptionResult returns an immediately settled redemption. */
98
+ export interface VaultInstantRedemptionResult {
99
+ grossAmount: Coin | undefined;
100
+ managerFee: Coin | undefined;
101
+ exitFee: Coin | undefined;
102
+ netAmount: Coin | undefined;
103
+ }
104
+ /** VaultQueuedRedemptionResult returns a queued redemption identity. */
105
+ export interface VaultQueuedRedemptionResult {
106
+ requestId: bigint;
107
+ }
108
+ /** MsgRedeemResponse returns a redemption result. */
109
+ export interface MsgRedeemResponse {
110
+ instantRedemption?: VaultInstantRedemptionResult | undefined;
111
+ queuedRedemption?: VaultQueuedRedemptionResult | undefined;
112
+ }
113
+ /** MsgVaultTransfer transfers protocol vault capital between a parent and child. */
114
+ export interface MsgVaultTransfer {
115
+ /** sender is the parent vault and transaction account. */
116
+ sender: string;
117
+ /** vault_address is the child vault. */
118
+ vaultAddress: string;
119
+ amount: Coin | undefined;
120
+ /** is_deposit is true for parent to child and false for child to parent. */
121
+ isDeposit: boolean;
122
+ }
123
+ /** MsgVaultTransferResponse is the response for MsgVaultTransfer. */
124
+ export interface MsgVaultTransferResponse {
125
+ }
126
+ /** MsgReallocate moves lending vault capital between pools. */
127
+ export interface MsgReallocate {
128
+ vaultAddress: string;
129
+ sourcePoolId: bigint;
130
+ destinationPoolId: bigint;
131
+ amount: Coin | undefined;
132
+ }
133
+ /** MsgReallocateResponse is the response for MsgReallocate. */
134
+ export interface MsgReallocateResponse {
135
+ }
136
+ /** MsgUpdateParams updates the module parameters. */
137
+ export interface MsgUpdateParams {
138
+ authority: string;
139
+ params: Params | undefined;
140
+ }
141
+ /** MsgUpdateParamsResponse is the response for MsgUpdateParams. */
142
+ export interface MsgUpdateParamsResponse {
143
+ }
144
+ /** MsgSetOracleFeeds registers or replaces shared oracle feeds. */
145
+ export interface MsgSetOracleFeeds {
146
+ authority: string;
147
+ /** oracle_feeds contains one or more entries with distinct coin denominations. */
148
+ oracleFeeds: OracleFeed[];
149
+ }
150
+ export interface MsgSetOracleFeedsResponse {
151
+ }
152
+ export declare const MsgCreateVault: MessageFns<MsgCreateVault>;
153
+ export declare const MsgCreateVaultResponse: MessageFns<MsgCreateVaultResponse>;
154
+ export declare const MsgUpdateVaultManager: MessageFns<MsgUpdateVaultManager>;
155
+ export declare const MsgUpdateVaultManagerResponse: MessageFns<MsgUpdateVaultManagerResponse>;
156
+ export declare const MsgUpdateVaultConfig: MessageFns<MsgUpdateVaultConfig>;
157
+ export declare const MsgUpdateVaultConfigResponse: MessageFns<MsgUpdateVaultConfigResponse>;
158
+ export declare const MsgCancelVaultConfigUpdate: MessageFns<MsgCancelVaultConfigUpdate>;
159
+ export declare const MsgCancelVaultConfigUpdateResponse: MessageFns<MsgCancelVaultConfigUpdateResponse>;
160
+ export declare const MsgSetVaultStatus: MessageFns<MsgSetVaultStatus>;
161
+ export declare const MsgSetVaultStatusResponse: MessageFns<MsgSetVaultStatusResponse>;
162
+ export declare const MsgDeposit: MessageFns<MsgDeposit>;
163
+ export declare const MsgDepositResponse: MessageFns<MsgDepositResponse>;
164
+ export declare const MsgRedeem: MessageFns<MsgRedeem>;
165
+ export declare const VaultInstantRedemptionResult: MessageFns<VaultInstantRedemptionResult>;
166
+ export declare const VaultQueuedRedemptionResult: MessageFns<VaultQueuedRedemptionResult>;
167
+ export declare const MsgRedeemResponse: MessageFns<MsgRedeemResponse>;
168
+ export declare const MsgVaultTransfer: MessageFns<MsgVaultTransfer>;
169
+ export declare const MsgVaultTransferResponse: MessageFns<MsgVaultTransferResponse>;
170
+ export declare const MsgReallocate: MessageFns<MsgReallocate>;
171
+ export declare const MsgReallocateResponse: MessageFns<MsgReallocateResponse>;
172
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
173
+ export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
174
+ export declare const MsgSetOracleFeeds: MessageFns<MsgSetOracleFeeds>;
175
+ export declare const MsgSetOracleFeedsResponse: MessageFns<MsgSetOracleFeedsResponse>;
176
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
177
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
178
+ [K in keyof T]?: DeepPartial<T[K]>;
179
+ } : Partial<T>;
180
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
181
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
182
+ [K in keyof P]: Exact<P[K], I[K]>;
183
+ } & {
184
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
185
+ };
186
+ export interface MessageFns<T> {
187
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
188
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
189
+ fromJSON(object: any): T;
190
+ toJSON(message: T): unknown;
191
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
192
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
193
+ }
194
+ export {};
@@ -0,0 +1,227 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "ault.vault.v1";
3
+ /** vault type identifies the vault implementation. */
4
+ export declare enum VaultType {
5
+ /** VAULT_TYPE_UNSPECIFIED - unspecified is the invalid default vault type. */
6
+ VAULT_TYPE_UNSPECIFIED = 0,
7
+ /** VAULT_TYPE_LENDING - lending identifies a lending vault. */
8
+ VAULT_TYPE_LENDING = 1,
9
+ /** VAULT_TYPE_TRADING - trading identifies a trading vault. */
10
+ VAULT_TYPE_TRADING = 2,
11
+ UNRECOGNIZED = -1
12
+ }
13
+ export declare function vaultTypeFromJSON(object: any): VaultType;
14
+ export declare function vaultTypeToJSON(object: VaultType): string;
15
+ /** vault relationship identifies a vault hierarchy role. */
16
+ export declare enum VaultRelationship {
17
+ /** VAULT_RELATIONSHIP_UNSPECIFIED - unspecified is the invalid default relationship. */
18
+ VAULT_RELATIONSHIP_UNSPECIFIED = 0,
19
+ /** VAULT_RELATIONSHIP_NORMAL - normal identifies a standalone vault. */
20
+ VAULT_RELATIONSHIP_NORMAL = 1,
21
+ /** VAULT_RELATIONSHIP_PARENT - parent identifies a protocol vault parent. */
22
+ VAULT_RELATIONSHIP_PARENT = 2,
23
+ /** VAULT_RELATIONSHIP_CHILD - child identifies a protocol vault child. */
24
+ VAULT_RELATIONSHIP_CHILD = 3,
25
+ UNRECOGNIZED = -1
26
+ }
27
+ export declare function vaultRelationshipFromJSON(object: any): VaultRelationship;
28
+ export declare function vaultRelationshipToJSON(object: VaultRelationship): string;
29
+ /** vault status identifies the vault lifecycle state. */
30
+ export declare enum VaultStatus {
31
+ /** VAULT_STATUS_UNSPECIFIED - unspecified is the invalid default vault status. */
32
+ VAULT_STATUS_UNSPECIFIED = 0,
33
+ /** VAULT_STATUS_ACTIVE - active allows configured vault activity. */
34
+ VAULT_STATUS_ACTIVE = 1,
35
+ /** VAULT_STATUS_PAUSED - paused restricts activity to risk reduction and exits. */
36
+ VAULT_STATUS_PAUSED = 2,
37
+ /** VAULT_STATUS_CLOSED - closed restricts activity to final exits and cleanup. */
38
+ VAULT_STATUS_CLOSED = 3,
39
+ UNRECOGNIZED = -1
40
+ }
41
+ export declare function vaultStatusFromJSON(object: any): VaultStatus;
42
+ export declare function vaultStatusToJSON(object: VaultStatus): string;
43
+ /** fee type identifies the vault fee policy. */
44
+ export declare enum FeeType {
45
+ /** FEE_TYPE_UNSPECIFIED - unspecified is the invalid default fee type. */
46
+ FEE_TYPE_UNSPECIFIED = 0,
47
+ /** FEE_TYPE_NONE - none applies no vault fee. */
48
+ FEE_TYPE_NONE = 1,
49
+ /** FEE_TYPE_MANAGEMENT_DILUTION - management dilution mints manager shares over time. */
50
+ FEE_TYPE_MANAGEMENT_DILUTION = 2,
51
+ /** FEE_TYPE_PERFORMANCE_EXIT - performance exit charges realized redemption profit. */
52
+ FEE_TYPE_PERFORMANCE_EXIT = 3,
53
+ UNRECOGNIZED = -1
54
+ }
55
+ export declare function feeTypeFromJSON(object: any): FeeType;
56
+ export declare function feeTypeToJSON(object: FeeType): string;
57
+ /** trading action identifies a manager operation category. */
58
+ export declare enum TradingAction {
59
+ /** TRADING_ACTION_UNSPECIFIED - unspecified is the invalid default trading action. */
60
+ TRADING_ACTION_UNSPECIFIED = 0,
61
+ /** TRADING_ACTION_SPOT - spot allows spot trading. */
62
+ TRADING_ACTION_SPOT = 1,
63
+ /** TRADING_ACTION_LENDING_LIQUIDATION - lending liquidation allows lending liquidation. */
64
+ TRADING_ACTION_LENDING_LIQUIDATION = 2,
65
+ UNRECOGNIZED = -1
66
+ }
67
+ export declare function tradingActionFromJSON(object: any): TradingAction;
68
+ export declare function tradingActionToJSON(object: TradingAction): string;
69
+ /** Vault defines shared vault state. */
70
+ export interface Vault {
71
+ vaultAddress: Uint8Array;
72
+ vaultType: VaultType;
73
+ relationship: VaultRelationship;
74
+ owner: Uint8Array;
75
+ /**
76
+ * manager is stored directly for normal lending, normal trading, and parent
77
+ * trading vaults. child lending and trading vaults leave manager empty and
78
+ * use the current manager of their parent vault.
79
+ */
80
+ manager: Uint8Array;
81
+ vaultDenom: string;
82
+ lockup: LockupPolicy | undefined;
83
+ fee: FeePolicy | undefined;
84
+ status: VaultStatus;
85
+ exitFeeBps: number;
86
+ }
87
+ /** LockupPolicy defines a vault's depositor lockup policy. */
88
+ export interface LockupPolicy {
89
+ unrestricted?: Unrestricted | undefined;
90
+ fundWindow?: FundWindow | undefined;
91
+ }
92
+ /**
93
+ * Unrestricted defines a vault without deposit or redemption timing
94
+ * restrictions.
95
+ */
96
+ export interface Unrestricted {
97
+ }
98
+ /** FundWindow defines a fixed deposit period and redemption-open time. */
99
+ export interface FundWindow {
100
+ depositOpenTime: Date | undefined;
101
+ depositCloseTime: Date | undefined;
102
+ redemptionOpenTime: Date | undefined;
103
+ }
104
+ /** FeePolicy defines a vault's fee policy. */
105
+ export interface FeePolicy {
106
+ feeType: FeeType;
107
+ rateBps: number;
108
+ }
109
+ /** Position defines a depositor's available shares and deposit value. */
110
+ export interface Position {
111
+ shares: string;
112
+ /**
113
+ * deposit_value is in VaultDenom for Lending Vaults and in USD scaled by
114
+ * 10^18 for Trading Vaults.
115
+ */
116
+ depositValue: string;
117
+ }
118
+ /** RedemptionQueue defines a trading vault's redemption fifo state. */
119
+ export interface RedemptionQueue {
120
+ headRequestId: bigint;
121
+ nextRequestId: bigint;
122
+ nextProcessHeight: bigint;
123
+ }
124
+ /** RedemptionRequest defines shares awaiting trading vault settlement. */
125
+ export interface RedemptionRequest {
126
+ depositor: Uint8Array;
127
+ shares: string;
128
+ /**
129
+ * deposit_value is the remaining USD value of the depositor's deposits,
130
+ * scaled by 10^18.
131
+ */
132
+ depositValue: string;
133
+ /**
134
+ * tracks the pending one-time proportional close required by
135
+ * always_close_on_redemption. cleared after the attempt, regardless of fills;
136
+ * does not track forced close.
137
+ */
138
+ closeOnRedemption: boolean;
139
+ /**
140
+ * counts rounds that placed at least one forced-close order, regardless of
141
+ * fills.
142
+ */
143
+ forcedCloseRounds: number;
144
+ noProgressRounds: number;
145
+ /** last_available_amount is denominated in the vault's VaultDenom. */
146
+ lastAvailableAmount: string;
147
+ }
148
+ /** VaultConfig wraps type-specific vault configuration. */
149
+ export interface VaultConfig {
150
+ lending?: LendingVaultConfig | undefined;
151
+ trading?: TradingVaultConfig | undefined;
152
+ }
153
+ /** PendingVaultConfigUpdate defines a delayed vault configuration update. */
154
+ export interface PendingVaultConfigUpdate {
155
+ config: VaultConfig | undefined;
156
+ executeAfter: Date | undefined;
157
+ }
158
+ /** LendingVaultConfig defines lending pool allocation policy. */
159
+ export interface LendingVaultConfig {
160
+ pools: LendingPoolConfig[];
161
+ supplyQueue: bigint[];
162
+ withdrawalQueue: bigint[];
163
+ }
164
+ /** LendingPoolConfig defines a lending pool and vault supply cap. */
165
+ export interface LendingPoolConfig {
166
+ poolId: bigint;
167
+ supplyCap: string;
168
+ }
169
+ /** AllowedMarkets defines downstream market and pool allowlists. */
170
+ export interface AllowedMarkets {
171
+ spotMarketIds: Uint8Array[];
172
+ lendingPoolIds: bigint[];
173
+ }
174
+ /** TradingVaultConfig defines trading vault permissions and redemption policy. */
175
+ export interface TradingVaultConfig {
176
+ allowedActions: TradingAction[];
177
+ allowedMarkets: AllowedMarkets | undefined;
178
+ managerFractionBps: number;
179
+ alwaysCloseOnRedemption: boolean;
180
+ }
181
+ /** OracleFeed maps a Cosmos SDK coin denomination to an x/oracle feed. */
182
+ export interface OracleFeed {
183
+ /**
184
+ * denom is the Cosmos SDK coin denomination used by x/bank, e.g. "uusdc" or
185
+ * "erc20:0xcC4aFfdb9FE6e65048182c0C18b80366172C1D38".
186
+ */
187
+ denom: string;
188
+ /**
189
+ * feed_id is the internal feed identifier registered in x/oracle, e.g. "ETH"
190
+ * or "USDC.e"; x/oracle resolves its vendor source_id binding.
191
+ */
192
+ feedId: string;
193
+ }
194
+ export declare const Vault: MessageFns<Vault>;
195
+ export declare const LockupPolicy: MessageFns<LockupPolicy>;
196
+ export declare const Unrestricted: MessageFns<Unrestricted>;
197
+ export declare const FundWindow: MessageFns<FundWindow>;
198
+ export declare const FeePolicy: MessageFns<FeePolicy>;
199
+ export declare const Position: MessageFns<Position>;
200
+ export declare const RedemptionQueue: MessageFns<RedemptionQueue>;
201
+ export declare const RedemptionRequest: MessageFns<RedemptionRequest>;
202
+ export declare const VaultConfig: MessageFns<VaultConfig>;
203
+ export declare const PendingVaultConfigUpdate: MessageFns<PendingVaultConfigUpdate>;
204
+ export declare const LendingVaultConfig: MessageFns<LendingVaultConfig>;
205
+ export declare const LendingPoolConfig: MessageFns<LendingPoolConfig>;
206
+ export declare const AllowedMarkets: MessageFns<AllowedMarkets>;
207
+ export declare const TradingVaultConfig: MessageFns<TradingVaultConfig>;
208
+ export declare const OracleFeed: MessageFns<OracleFeed>;
209
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
210
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
211
+ [K in keyof T]?: DeepPartial<T[K]>;
212
+ } : Partial<T>;
213
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
214
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
215
+ [K in keyof P]: Exact<P[K], I[K]>;
216
+ } & {
217
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
218
+ };
219
+ export interface MessageFns<T> {
220
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
221
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
222
+ fromJSON(object: any): T;
223
+ toJSON(message: T): unknown;
224
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
225
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
226
+ }
227
+ export {};