ault-sdk-ts 0.8.0 → 0.10.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.
- package/README.md +267 -51
- package/dist/agent/attach.d.ts +10 -1
- package/dist/agent/sign-and-broadcast.d.ts +2 -2
- package/dist/agent/tx/perpetual.d.ts +10 -0
- package/dist/agent/tx/vault.d.ts +11 -0
- package/dist/client.d.ts +10 -0
- package/dist/core/address.d.ts +6 -0
- package/dist/core/clob-msgs.d.ts +21 -3
- package/dist/core/lending-gas.d.ts +5 -0
- package/dist/core/lending-msgs.d.ts +52 -0
- package/dist/core/manifest-types.d.ts +60 -0
- package/dist/core/margin-account.d.ts +18 -0
- package/dist/core/margin-gas.d.ts +7 -0
- package/dist/core/margin-msgs.d.ts +52 -0
- package/dist/core/network.d.ts +37 -7
- package/dist/core/perpetual-gas.d.ts +12 -0
- package/dist/core/perpetual-msgs.d.ts +44 -0
- package/dist/core/vault-gas.d.ts +8 -0
- package/dist/core/vault-msgs.d.ts +150 -0
- package/dist/eip712/msg-encoders.generated.d.ts +8 -0
- package/dist/eip712/msg.generated.d.ts +51 -68
- package/dist/eip712/registry.d.ts +17 -0
- package/dist/eip712/types.d.ts +5 -0
- package/dist/high-level/tx/lending.d.ts +3 -0
- package/dist/high-level/tx/license.d.ts +1 -1
- package/dist/high-level/tx/margin.d.ts +3 -0
- package/dist/high-level/tx/perpetual.d.ts +3 -0
- package/dist/high-level/tx/vault.d.ts +3 -0
- package/dist/high-level/types.d.ts +280 -152
- package/dist/index.cjs +23569 -12952
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +23364 -13023
- package/dist/index.js.map +1 -1
- package/dist/perp/decimal.d.ts +39 -0
- package/dist/perp/funding.d.ts +18 -0
- package/dist/perp/index.d.ts +5 -0
- package/dist/perp/margin.d.ts +33 -0
- package/dist/perp/orders.d.ts +27 -0
- package/dist/perp/position.d.ts +29 -0
- package/dist/proto/gen/ault/accountx/v1/query.d.ts +10 -1
- package/dist/proto/gen/ault/authority/v1/authority.d.ts +2 -0
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +7 -0
- package/dist/proto/gen/ault/clob/v1/twap.d.ts +11 -8
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +11 -1
- package/dist/proto/gen/ault/common/v1/system.d.ts +31 -0
- package/dist/proto/gen/ault/lending/v1/genesis.d.ts +34 -0
- package/dist/proto/gen/ault/lending/v1/lending.d.ts +152 -0
- package/dist/proto/gen/ault/lending/v1/params.d.ts +42 -0
- package/dist/proto/gen/ault/lending/v1/query.d.ts +157 -0
- package/dist/proto/gen/ault/lending/v1/tx.d.ts +236 -0
- package/dist/proto/gen/ault/margin/v1/genesis.d.ts +102 -0
- package/dist/proto/gen/ault/margin/v1/margin.d.ts +130 -0
- package/dist/proto/gen/ault/margin/v1/params.d.ts +31 -0
- package/dist/proto/gen/ault/margin/v1/query.d.ts +127 -0
- package/dist/proto/gen/ault/margin/v1/tx.d.ts +181 -0
- package/dist/proto/gen/ault/market/v1/market.d.ts +9 -0
- package/dist/proto/gen/ault/market/v1/tx.d.ts +16 -0
- package/dist/proto/gen/ault/oracle/v1/genesis.d.ts +69 -0
- package/dist/proto/gen/ault/oracle/v1/oracle.d.ts +154 -0
- package/dist/proto/gen/ault/oracle/v1/query.d.ts +93 -0
- package/dist/proto/gen/ault/oracle/v1/tx.d.ts +151 -0
- package/dist/proto/gen/ault/perpetual/v1/genesis.d.ts +119 -0
- package/dist/proto/gen/ault/perpetual/v1/order.d.ts +46 -0
- package/dist/proto/gen/ault/perpetual/v1/params.d.ts +30 -0
- package/dist/proto/gen/ault/perpetual/v1/perpetual.d.ts +192 -0
- package/dist/proto/gen/ault/perpetual/v1/query.d.ts +150 -0
- package/dist/proto/gen/ault/perpetual/v1/tx.d.ts +97 -0
- package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +37 -0
- package/dist/proto/gen/ault/vault/v1/genesis.d.ts +90 -0
- package/dist/proto/gen/ault/vault/v1/params.d.ts +55 -0
- package/dist/proto/gen/ault/vault/v1/query.d.ts +152 -0
- package/dist/proto/gen/ault/vault/v1/tx.d.ts +194 -0
- package/dist/proto/gen/ault/vault/v1/vault.d.ts +227 -0
- package/dist/rest/dex-types.generated.d.ts +2045 -27
- package/dist/rest/dex.d.ts +52 -2
- package/dist/rest/dex.generated.d.ts +5097 -1276
- package/dist/rest/lending.d.ts +46 -0
- package/dist/rest/margin.d.ts +33 -0
- package/dist/rest/oracle.d.ts +19 -0
- package/dist/rest/pagination.d.ts +6 -2
- package/dist/rest/perpetual.d.ts +46 -0
- package/dist/rest/portfolio.d.ts +32 -0
- package/dist/rest/tokenregistry.d.ts +7 -0
- package/dist/rest/vault.d.ts +26 -0
- package/dist/utils/cosmos-dec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/high-level/tx/authority.d.ts +0 -3
- package/dist/high-level/tx/market.d.ts +0 -3
- package/dist/high-level/tx/ratelimit.d.ts +0 -3
- package/dist/high-level/tx/tokenregistry.d.ts +0 -3
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
4
|
+
import { Asset, AssetEntry, AssetState, AssetStateEntry, DeficitEntry, Health, PendingAssetUpdateEntry, Pool, PoolEntry, Shares } from "./lending";
|
|
5
|
+
import { Params } from "./params";
|
|
6
|
+
export declare const protobufPackage = "ault.lending.v1";
|
|
7
|
+
export interface QueryParamsRequest {
|
|
8
|
+
}
|
|
9
|
+
export interface QueryParamsResponse {
|
|
10
|
+
params: Params | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface QueryPoolsRequest {
|
|
13
|
+
pagination: PageRequest | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface QueryPoolsResponse {
|
|
16
|
+
pools: PoolEntry[];
|
|
17
|
+
pagination: PageResponse | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface QueryPoolRequest {
|
|
20
|
+
poolId: bigint;
|
|
21
|
+
}
|
|
22
|
+
export interface QueryPoolResponse {
|
|
23
|
+
pool: Pool | undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface QueryAssetRequest {
|
|
26
|
+
poolId: bigint;
|
|
27
|
+
denom: string;
|
|
28
|
+
}
|
|
29
|
+
export interface QueryAssetResponse {
|
|
30
|
+
asset: Asset | undefined;
|
|
31
|
+
state: AssetState | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface QueryAssetsRequest {
|
|
34
|
+
poolId: bigint;
|
|
35
|
+
pagination: PageRequest | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface QueryAssetsResponse {
|
|
38
|
+
assets: AssetEntry[];
|
|
39
|
+
states: AssetStateEntry[];
|
|
40
|
+
pagination: PageResponse | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface QuerySharesRequest {
|
|
43
|
+
poolId: bigint;
|
|
44
|
+
owner: string;
|
|
45
|
+
denom: string;
|
|
46
|
+
}
|
|
47
|
+
export interface QuerySharesResponse {
|
|
48
|
+
shares: Shares | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface QueryHealthRequest {
|
|
51
|
+
poolId: bigint;
|
|
52
|
+
owner: string;
|
|
53
|
+
}
|
|
54
|
+
export interface QueryHealthResponse {
|
|
55
|
+
health: Health | undefined;
|
|
56
|
+
}
|
|
57
|
+
export interface QueryBorrowRateRequest {
|
|
58
|
+
poolId: bigint;
|
|
59
|
+
denom: string;
|
|
60
|
+
}
|
|
61
|
+
export interface QueryBorrowRateResponse {
|
|
62
|
+
/** Annualized borrow interest rate. */
|
|
63
|
+
borrowRate: string;
|
|
64
|
+
/** Current borrowed share of available pool assets. */
|
|
65
|
+
utilization: string;
|
|
66
|
+
}
|
|
67
|
+
export interface QuerySupplyRateRequest {
|
|
68
|
+
poolId: bigint;
|
|
69
|
+
denom: string;
|
|
70
|
+
}
|
|
71
|
+
export interface QuerySupplyRateResponse {
|
|
72
|
+
/** Annualized supply interest rate after protocol fees. */
|
|
73
|
+
supplyRate: string;
|
|
74
|
+
/** Current borrowed share of available pool assets. */
|
|
75
|
+
utilization: string;
|
|
76
|
+
}
|
|
77
|
+
export interface QueryInsuranceFundBalanceRequest {
|
|
78
|
+
denom: string;
|
|
79
|
+
}
|
|
80
|
+
export interface QueryInsuranceFundBalanceResponse {
|
|
81
|
+
balance: Coin | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface QueryProtocolRevenueBalanceRequest {
|
|
84
|
+
denom: string;
|
|
85
|
+
}
|
|
86
|
+
export interface QueryProtocolRevenueBalanceResponse {
|
|
87
|
+
balance: Coin | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface QueryDeficitRequest {
|
|
90
|
+
poolId: bigint;
|
|
91
|
+
denom: string;
|
|
92
|
+
}
|
|
93
|
+
export interface QueryDeficitResponse {
|
|
94
|
+
deficit: string;
|
|
95
|
+
}
|
|
96
|
+
export interface QueryDeficitsRequest {
|
|
97
|
+
pagination: PageRequest | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface QueryDeficitsResponse {
|
|
100
|
+
deficits: DeficitEntry[];
|
|
101
|
+
pagination: PageResponse | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface QueryPendingAssetUpdatesRequest {
|
|
104
|
+
poolId: bigint;
|
|
105
|
+
pagination: PageRequest | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface QueryPendingAssetUpdatesResponse {
|
|
108
|
+
updates: PendingAssetUpdateEntry[];
|
|
109
|
+
pagination: PageResponse | undefined;
|
|
110
|
+
}
|
|
111
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
112
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
113
|
+
export declare const QueryPoolsRequest: MessageFns<QueryPoolsRequest>;
|
|
114
|
+
export declare const QueryPoolsResponse: MessageFns<QueryPoolsResponse>;
|
|
115
|
+
export declare const QueryPoolRequest: MessageFns<QueryPoolRequest>;
|
|
116
|
+
export declare const QueryPoolResponse: MessageFns<QueryPoolResponse>;
|
|
117
|
+
export declare const QueryAssetRequest: MessageFns<QueryAssetRequest>;
|
|
118
|
+
export declare const QueryAssetResponse: MessageFns<QueryAssetResponse>;
|
|
119
|
+
export declare const QueryAssetsRequest: MessageFns<QueryAssetsRequest>;
|
|
120
|
+
export declare const QueryAssetsResponse: MessageFns<QueryAssetsResponse>;
|
|
121
|
+
export declare const QuerySharesRequest: MessageFns<QuerySharesRequest>;
|
|
122
|
+
export declare const QuerySharesResponse: MessageFns<QuerySharesResponse>;
|
|
123
|
+
export declare const QueryHealthRequest: MessageFns<QueryHealthRequest>;
|
|
124
|
+
export declare const QueryHealthResponse: MessageFns<QueryHealthResponse>;
|
|
125
|
+
export declare const QueryBorrowRateRequest: MessageFns<QueryBorrowRateRequest>;
|
|
126
|
+
export declare const QueryBorrowRateResponse: MessageFns<QueryBorrowRateResponse>;
|
|
127
|
+
export declare const QuerySupplyRateRequest: MessageFns<QuerySupplyRateRequest>;
|
|
128
|
+
export declare const QuerySupplyRateResponse: MessageFns<QuerySupplyRateResponse>;
|
|
129
|
+
export declare const QueryInsuranceFundBalanceRequest: MessageFns<QueryInsuranceFundBalanceRequest>;
|
|
130
|
+
export declare const QueryInsuranceFundBalanceResponse: MessageFns<QueryInsuranceFundBalanceResponse>;
|
|
131
|
+
export declare const QueryProtocolRevenueBalanceRequest: MessageFns<QueryProtocolRevenueBalanceRequest>;
|
|
132
|
+
export declare const QueryProtocolRevenueBalanceResponse: MessageFns<QueryProtocolRevenueBalanceResponse>;
|
|
133
|
+
export declare const QueryDeficitRequest: MessageFns<QueryDeficitRequest>;
|
|
134
|
+
export declare const QueryDeficitResponse: MessageFns<QueryDeficitResponse>;
|
|
135
|
+
export declare const QueryDeficitsRequest: MessageFns<QueryDeficitsRequest>;
|
|
136
|
+
export declare const QueryDeficitsResponse: MessageFns<QueryDeficitsResponse>;
|
|
137
|
+
export declare const QueryPendingAssetUpdatesRequest: MessageFns<QueryPendingAssetUpdatesRequest>;
|
|
138
|
+
export declare const QueryPendingAssetUpdatesResponse: MessageFns<QueryPendingAssetUpdatesResponse>;
|
|
139
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
140
|
+
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 {} ? {
|
|
141
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
142
|
+
} : Partial<T>;
|
|
143
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
144
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
145
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
146
|
+
} & {
|
|
147
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
148
|
+
};
|
|
149
|
+
export interface MessageFns<T> {
|
|
150
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
151
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
152
|
+
fromJSON(object: any): T;
|
|
153
|
+
toJSON(message: T): unknown;
|
|
154
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
155
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
156
|
+
}
|
|
157
|
+
export {};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { AssetConfig, AssetRiskConfig, AssetTermsConfig, PoolAction } from "./lending";
|
|
4
|
+
import { Params } from "./params";
|
|
5
|
+
export declare const protobufPackage = "ault.lending.v1";
|
|
6
|
+
export interface MsgCreatePool {
|
|
7
|
+
owner: string;
|
|
8
|
+
allowSocialize: boolean;
|
|
9
|
+
targetHealthFactor: string;
|
|
10
|
+
minBonus: string;
|
|
11
|
+
maxBonusHf: string;
|
|
12
|
+
protocolFeeRate: string;
|
|
13
|
+
liquidationFeeRate: string;
|
|
14
|
+
/** Maximum oracle age in microseconds. */
|
|
15
|
+
maxOracleStaleness: bigint;
|
|
16
|
+
maxOracleDeviationRatio: string;
|
|
17
|
+
}
|
|
18
|
+
export interface MsgCreatePoolResponse {
|
|
19
|
+
poolId: bigint;
|
|
20
|
+
}
|
|
21
|
+
export interface MsgUpdatePool {
|
|
22
|
+
owner: string;
|
|
23
|
+
poolId: bigint;
|
|
24
|
+
allowSocialize: boolean;
|
|
25
|
+
targetHealthFactor: string;
|
|
26
|
+
minBonus: string;
|
|
27
|
+
maxBonusHf: string;
|
|
28
|
+
protocolFeeRate: string;
|
|
29
|
+
liquidationFeeRate: string;
|
|
30
|
+
/** Maximum oracle age in microseconds. */
|
|
31
|
+
maxOracleStaleness: bigint;
|
|
32
|
+
maxOracleDeviationRatio: string;
|
|
33
|
+
}
|
|
34
|
+
export interface MsgUpdatePoolResponse {
|
|
35
|
+
}
|
|
36
|
+
export interface MsgUpdatePoolOwner {
|
|
37
|
+
authority: string;
|
|
38
|
+
poolId: bigint;
|
|
39
|
+
newOwner: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MsgUpdatePoolOwnerResponse {
|
|
42
|
+
}
|
|
43
|
+
export interface MsgDisablePoolActions {
|
|
44
|
+
authority: string;
|
|
45
|
+
pools: PoolAction[];
|
|
46
|
+
}
|
|
47
|
+
export interface MsgDisablePoolActionsResponse {
|
|
48
|
+
}
|
|
49
|
+
export interface MsgEnablePoolActions {
|
|
50
|
+
authority: string;
|
|
51
|
+
pools: PoolAction[];
|
|
52
|
+
}
|
|
53
|
+
export interface MsgEnablePoolActionsResponse {
|
|
54
|
+
}
|
|
55
|
+
export interface MsgUpdateParams {
|
|
56
|
+
authority: string;
|
|
57
|
+
params: Params | undefined;
|
|
58
|
+
}
|
|
59
|
+
export interface MsgUpdateParamsResponse {
|
|
60
|
+
}
|
|
61
|
+
export interface MsgRegisterAssets {
|
|
62
|
+
authority: string;
|
|
63
|
+
poolId: bigint;
|
|
64
|
+
assets: AssetConfig[];
|
|
65
|
+
}
|
|
66
|
+
export interface MsgRegisterAssetsResponse {
|
|
67
|
+
}
|
|
68
|
+
export interface MsgUpdateAssets {
|
|
69
|
+
authority: string;
|
|
70
|
+
poolId: bigint;
|
|
71
|
+
assets: AssetTermsConfig[];
|
|
72
|
+
}
|
|
73
|
+
export interface MsgUpdateAssetsResponse {
|
|
74
|
+
}
|
|
75
|
+
export interface MsgUpdateAssetsRisk {
|
|
76
|
+
authority: string;
|
|
77
|
+
poolId: bigint;
|
|
78
|
+
assets: AssetRiskConfig[];
|
|
79
|
+
}
|
|
80
|
+
export interface MsgUpdateAssetsRiskResponse {
|
|
81
|
+
effectiveAt: bigint;
|
|
82
|
+
}
|
|
83
|
+
export interface MsgCancelAssetUpdates {
|
|
84
|
+
authority: string;
|
|
85
|
+
poolId: bigint;
|
|
86
|
+
denoms: string[];
|
|
87
|
+
}
|
|
88
|
+
export interface MsgCancelAssetUpdatesResponse {
|
|
89
|
+
}
|
|
90
|
+
export interface MsgSupply {
|
|
91
|
+
supplier: string;
|
|
92
|
+
poolId: bigint;
|
|
93
|
+
coin: Coin | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface MsgSupplyResponse {
|
|
96
|
+
mintedShares: string;
|
|
97
|
+
}
|
|
98
|
+
export interface MsgWithdraw {
|
|
99
|
+
supplier: string;
|
|
100
|
+
poolId: bigint;
|
|
101
|
+
coin: Coin | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface MsgWithdrawResponse {
|
|
104
|
+
burnedShares: string;
|
|
105
|
+
}
|
|
106
|
+
export interface MsgSupplyCollateral {
|
|
107
|
+
supplier: string;
|
|
108
|
+
poolId: bigint;
|
|
109
|
+
coin: Coin | undefined;
|
|
110
|
+
}
|
|
111
|
+
export interface MsgSupplyCollateralResponse {
|
|
112
|
+
}
|
|
113
|
+
export interface MsgWithdrawCollateral {
|
|
114
|
+
supplier: string;
|
|
115
|
+
poolId: bigint;
|
|
116
|
+
coin: Coin | undefined;
|
|
117
|
+
}
|
|
118
|
+
export interface MsgWithdrawCollateralResponse {
|
|
119
|
+
}
|
|
120
|
+
export interface MsgBorrow {
|
|
121
|
+
borrower: string;
|
|
122
|
+
poolId: bigint;
|
|
123
|
+
coin: Coin | undefined;
|
|
124
|
+
}
|
|
125
|
+
export interface MsgBorrowResponse {
|
|
126
|
+
mintedShares: string;
|
|
127
|
+
}
|
|
128
|
+
export interface MsgRepay {
|
|
129
|
+
payer: string;
|
|
130
|
+
borrower: string;
|
|
131
|
+
poolId: bigint;
|
|
132
|
+
coin: Coin | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface MsgRepayResponse {
|
|
135
|
+
repaid: Coin | undefined;
|
|
136
|
+
}
|
|
137
|
+
export interface MsgLiquidate {
|
|
138
|
+
liquidator: string;
|
|
139
|
+
borrower: string;
|
|
140
|
+
poolId: bigint;
|
|
141
|
+
repay: Coin | undefined;
|
|
142
|
+
seizeDenom: string;
|
|
143
|
+
}
|
|
144
|
+
export interface MsgLiquidateResponse {
|
|
145
|
+
repaid: Coin | undefined;
|
|
146
|
+
seized: Coin | undefined;
|
|
147
|
+
liquidationFee: Coin | undefined;
|
|
148
|
+
}
|
|
149
|
+
export interface MsgSettleDeficit {
|
|
150
|
+
authority: string;
|
|
151
|
+
poolId: bigint;
|
|
152
|
+
denom: string;
|
|
153
|
+
}
|
|
154
|
+
export interface MsgSettleDeficitResponse {
|
|
155
|
+
}
|
|
156
|
+
export interface MsgFundInsuranceFund {
|
|
157
|
+
funder: string;
|
|
158
|
+
coin: Coin | undefined;
|
|
159
|
+
}
|
|
160
|
+
export interface MsgFundInsuranceFundResponse {
|
|
161
|
+
}
|
|
162
|
+
export interface MsgWithdrawInsuranceFund {
|
|
163
|
+
authority: string;
|
|
164
|
+
recipient: string;
|
|
165
|
+
coin: Coin | undefined;
|
|
166
|
+
}
|
|
167
|
+
export interface MsgWithdrawInsuranceFundResponse {
|
|
168
|
+
}
|
|
169
|
+
export interface MsgWithdrawProtocolRevenue {
|
|
170
|
+
authority: string;
|
|
171
|
+
recipient: string;
|
|
172
|
+
coin: Coin | undefined;
|
|
173
|
+
}
|
|
174
|
+
export interface MsgWithdrawProtocolRevenueResponse {
|
|
175
|
+
}
|
|
176
|
+
export declare const MsgCreatePool: MessageFns<MsgCreatePool>;
|
|
177
|
+
export declare const MsgCreatePoolResponse: MessageFns<MsgCreatePoolResponse>;
|
|
178
|
+
export declare const MsgUpdatePool: MessageFns<MsgUpdatePool>;
|
|
179
|
+
export declare const MsgUpdatePoolResponse: MessageFns<MsgUpdatePoolResponse>;
|
|
180
|
+
export declare const MsgUpdatePoolOwner: MessageFns<MsgUpdatePoolOwner>;
|
|
181
|
+
export declare const MsgUpdatePoolOwnerResponse: MessageFns<MsgUpdatePoolOwnerResponse>;
|
|
182
|
+
export declare const MsgDisablePoolActions: MessageFns<MsgDisablePoolActions>;
|
|
183
|
+
export declare const MsgDisablePoolActionsResponse: MessageFns<MsgDisablePoolActionsResponse>;
|
|
184
|
+
export declare const MsgEnablePoolActions: MessageFns<MsgEnablePoolActions>;
|
|
185
|
+
export declare const MsgEnablePoolActionsResponse: MessageFns<MsgEnablePoolActionsResponse>;
|
|
186
|
+
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
|
|
187
|
+
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
|
|
188
|
+
export declare const MsgRegisterAssets: MessageFns<MsgRegisterAssets>;
|
|
189
|
+
export declare const MsgRegisterAssetsResponse: MessageFns<MsgRegisterAssetsResponse>;
|
|
190
|
+
export declare const MsgUpdateAssets: MessageFns<MsgUpdateAssets>;
|
|
191
|
+
export declare const MsgUpdateAssetsResponse: MessageFns<MsgUpdateAssetsResponse>;
|
|
192
|
+
export declare const MsgUpdateAssetsRisk: MessageFns<MsgUpdateAssetsRisk>;
|
|
193
|
+
export declare const MsgUpdateAssetsRiskResponse: MessageFns<MsgUpdateAssetsRiskResponse>;
|
|
194
|
+
export declare const MsgCancelAssetUpdates: MessageFns<MsgCancelAssetUpdates>;
|
|
195
|
+
export declare const MsgCancelAssetUpdatesResponse: MessageFns<MsgCancelAssetUpdatesResponse>;
|
|
196
|
+
export declare const MsgSupply: MessageFns<MsgSupply>;
|
|
197
|
+
export declare const MsgSupplyResponse: MessageFns<MsgSupplyResponse>;
|
|
198
|
+
export declare const MsgWithdraw: MessageFns<MsgWithdraw>;
|
|
199
|
+
export declare const MsgWithdrawResponse: MessageFns<MsgWithdrawResponse>;
|
|
200
|
+
export declare const MsgSupplyCollateral: MessageFns<MsgSupplyCollateral>;
|
|
201
|
+
export declare const MsgSupplyCollateralResponse: MessageFns<MsgSupplyCollateralResponse>;
|
|
202
|
+
export declare const MsgWithdrawCollateral: MessageFns<MsgWithdrawCollateral>;
|
|
203
|
+
export declare const MsgWithdrawCollateralResponse: MessageFns<MsgWithdrawCollateralResponse>;
|
|
204
|
+
export declare const MsgBorrow: MessageFns<MsgBorrow>;
|
|
205
|
+
export declare const MsgBorrowResponse: MessageFns<MsgBorrowResponse>;
|
|
206
|
+
export declare const MsgRepay: MessageFns<MsgRepay>;
|
|
207
|
+
export declare const MsgRepayResponse: MessageFns<MsgRepayResponse>;
|
|
208
|
+
export declare const MsgLiquidate: MessageFns<MsgLiquidate>;
|
|
209
|
+
export declare const MsgLiquidateResponse: MessageFns<MsgLiquidateResponse>;
|
|
210
|
+
export declare const MsgSettleDeficit: MessageFns<MsgSettleDeficit>;
|
|
211
|
+
export declare const MsgSettleDeficitResponse: MessageFns<MsgSettleDeficitResponse>;
|
|
212
|
+
export declare const MsgFundInsuranceFund: MessageFns<MsgFundInsuranceFund>;
|
|
213
|
+
export declare const MsgFundInsuranceFundResponse: MessageFns<MsgFundInsuranceFundResponse>;
|
|
214
|
+
export declare const MsgWithdrawInsuranceFund: MessageFns<MsgWithdrawInsuranceFund>;
|
|
215
|
+
export declare const MsgWithdrawInsuranceFundResponse: MessageFns<MsgWithdrawInsuranceFundResponse>;
|
|
216
|
+
export declare const MsgWithdrawProtocolRevenue: MessageFns<MsgWithdrawProtocolRevenue>;
|
|
217
|
+
export declare const MsgWithdrawProtocolRevenueResponse: MessageFns<MsgWithdrawProtocolRevenueResponse>;
|
|
218
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
219
|
+
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 {} ? {
|
|
220
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
221
|
+
} : Partial<T>;
|
|
222
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
223
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
224
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
225
|
+
} & {
|
|
226
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
227
|
+
};
|
|
228
|
+
export interface MessageFns<T> {
|
|
229
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
230
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
231
|
+
fromJSON(object: any): T;
|
|
232
|
+
toJSON(message: T): unknown;
|
|
233
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
234
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
235
|
+
}
|
|
236
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { MarginOrderState, PendingSettlement } from "./margin";
|
|
4
|
+
import { Params } from "./params";
|
|
5
|
+
export declare const protobufPackage = "ault.margin.v1";
|
|
6
|
+
/**
|
|
7
|
+
* GenesisState defines the margin module's genesis state. It carries every one
|
|
8
|
+
* of the module's six collections, because all of them are consensus state
|
|
9
|
+
* and an export that dropped any of them would restore a chain that has
|
|
10
|
+
* forgotten which collateral is reserved, what it still owes a filled order, or
|
|
11
|
+
* which lending pool backs it.
|
|
12
|
+
*/
|
|
13
|
+
export interface GenesisState {
|
|
14
|
+
/** params defines the module parameters at genesis. */
|
|
15
|
+
params: Params | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* margin_lending_pool_id is the x/lending pool that backs every margin
|
|
18
|
+
* account. It is set here rather than moved by MsgSetMarginLendingPool on the
|
|
19
|
+
* normal path, and cannot be validated at import: pool ids start at 0, so
|
|
20
|
+
* every value is syntactically legal, and existence is a question for
|
|
21
|
+
* x/lending, which need not be populated when this module's InitGenesis runs.
|
|
22
|
+
*/
|
|
23
|
+
marginLendingPoolId: bigint;
|
|
24
|
+
/**
|
|
25
|
+
* enabled_markets is the list of market ids enabled for margin trading. The
|
|
26
|
+
* collection is a key set, so the market id is the whole entry.
|
|
27
|
+
*/
|
|
28
|
+
enabledMarkets: Uint8Array[];
|
|
29
|
+
/**
|
|
30
|
+
* collaterals_in_order is the reservation ledger and the registration record:
|
|
31
|
+
* an entry with no coins carries the registration alone and must be exported.
|
|
32
|
+
*/
|
|
33
|
+
collateralsInOrder: CollateralsInOrderEntry[];
|
|
34
|
+
/**
|
|
35
|
+
* pending_settlements is the fill proceeds queue awaiting its EndBlocker
|
|
36
|
+
* credit. It is normally empty at an export taken between blocks, but an
|
|
37
|
+
* entry whose credit failed is retried rather than dropped, so it can survive
|
|
38
|
+
* to the export.
|
|
39
|
+
*/
|
|
40
|
+
pendingSettlements: PendingSettlementEntry[];
|
|
41
|
+
/**
|
|
42
|
+
* margin_order_states is the per-order funding record of every margin order
|
|
43
|
+
* that departs from the default, keyed by the account holding it and the
|
|
44
|
+
* order id. Dropping it would silently return every resting order to the
|
|
45
|
+
* default, so an order that asked to repay at cancel would not, and one that
|
|
46
|
+
* borrowed would look as though it had not.
|
|
47
|
+
*/
|
|
48
|
+
marginOrderStates: MarginOrderStateEntry[];
|
|
49
|
+
}
|
|
50
|
+
/** CollateralsInOrderEntry is one CollateralsInOrder record with its key. */
|
|
51
|
+
export interface CollateralsInOrderEntry {
|
|
52
|
+
/** address is the derived margin account address. */
|
|
53
|
+
address: string;
|
|
54
|
+
/** coins is the collateral the account has committed to resting orders. */
|
|
55
|
+
coins: Coin[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* PendingSettlementEntry is one PendingSettlements record with its key. The key
|
|
59
|
+
* is the order id the proceeds belong to, which the record does not carry.
|
|
60
|
+
*/
|
|
61
|
+
export interface PendingSettlementEntry {
|
|
62
|
+
/** order_id is the x/clob order the proceeds came from. */
|
|
63
|
+
orderId: Uint8Array;
|
|
64
|
+
/** settlement is the proceeds awaiting credit. */
|
|
65
|
+
settlement: PendingSettlement | undefined;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* MarginOrderStateEntry is one MarginOrderStates record with its key. The key
|
|
69
|
+
* is a pair, the holding account and the order id, and the record carries
|
|
70
|
+
* neither.
|
|
71
|
+
*/
|
|
72
|
+
export interface MarginOrderStateEntry {
|
|
73
|
+
/** address is the margin account holding the order. */
|
|
74
|
+
address: string;
|
|
75
|
+
/** order_id is the x/clob order the record belongs to. */
|
|
76
|
+
orderId: Uint8Array;
|
|
77
|
+
/** state is the order's funding record. */
|
|
78
|
+
state: MarginOrderState | undefined;
|
|
79
|
+
}
|
|
80
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
81
|
+
export declare const CollateralsInOrderEntry: MessageFns<CollateralsInOrderEntry>;
|
|
82
|
+
export declare const PendingSettlementEntry: MessageFns<PendingSettlementEntry>;
|
|
83
|
+
export declare const MarginOrderStateEntry: MessageFns<MarginOrderStateEntry>;
|
|
84
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
85
|
+
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 {} ? {
|
|
86
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
87
|
+
} : Partial<T>;
|
|
88
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
89
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
90
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
91
|
+
} & {
|
|
92
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
93
|
+
};
|
|
94
|
+
export interface MessageFns<T> {
|
|
95
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
96
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
97
|
+
fromJSON(object: any): T;
|
|
98
|
+
toJSON(message: T): unknown;
|
|
99
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
100
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
101
|
+
}
|
|
102
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
export declare const protobufPackage = "ault.margin.v1";
|
|
4
|
+
/**
|
|
5
|
+
* MarginOptions selects lending-backed funding for an otherwise ordinary spot
|
|
6
|
+
* order. It is packed into an x/clob place message's funding field; when that
|
|
7
|
+
* field is absent the order uses the normal bank-backed spot escrow path.
|
|
8
|
+
*
|
|
9
|
+
* The field set is flat scalars only, and the message carries an amino name, so
|
|
10
|
+
* that it renders as readable typed data when the carrying message is signed
|
|
11
|
+
* through EIP-712. A oneof, or a nullable message field forced to emit, would
|
|
12
|
+
* render as JSON null and be rejected before signing.
|
|
13
|
+
*/
|
|
14
|
+
export interface MarginOptions {
|
|
15
|
+
/**
|
|
16
|
+
* cross selects the owner's cross-margin account; when false the order is
|
|
17
|
+
* funded from the isolated-margin account of the order's market.
|
|
18
|
+
*/
|
|
19
|
+
cross: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* auto_borrow allows the shortfall between the order's escrow instruction and
|
|
22
|
+
* the account's uncommitted collateral to be borrowed from the lending pool.
|
|
23
|
+
*/
|
|
24
|
+
autoBorrow: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* AUTO_REPAY: apply this order's fill proceeds to same-denom debt. Leaving it
|
|
27
|
+
* unset keeps the liability, and so keeps the account's health lower and
|
|
28
|
+
* interest running on both sides, until something else repays it.
|
|
29
|
+
*/
|
|
30
|
+
autoRepay: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* autoRepayAtCancel: repay this order's borrow when its reservation is freed
|
|
33
|
+
* by a close, a shrink or a replace. The default is false where Binance's
|
|
34
|
+
* autoRepayAtCancel defaults to true, deliberately, so that a cancel does not
|
|
35
|
+
* silently unwind a borrow the user wanted to keep: frequent cancels and an
|
|
36
|
+
* oracle outage, during which borrowing is refused while repaying is not,
|
|
37
|
+
* both produce exactly that.
|
|
38
|
+
*
|
|
39
|
+
* A plain bool and not `optional bool`, whatever a future default may be:
|
|
40
|
+
* gogoproto compiles proto3 optional to a synthetic oneof, and the amino JSON
|
|
41
|
+
* encoder then refuses the whole message with "field auto_repay_at_cancel
|
|
42
|
+
* within a oneof must have the amino.oneof_type_name option set", which makes
|
|
43
|
+
* every margin order unsignable through EIP-712, not only one setting the
|
|
44
|
+
* flag.
|
|
45
|
+
*/
|
|
46
|
+
autoRepayAtCancel: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* CollateralsInOrder is the collateral a margin account has committed to
|
|
50
|
+
* resting orders.
|
|
51
|
+
*/
|
|
52
|
+
export interface CollateralsInOrder {
|
|
53
|
+
coins: Coin[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* MarginOrderState is the per-order bookkeeping a later block needs: the
|
|
57
|
+
* funding options the placement chose, which no longer exist by then, and how
|
|
58
|
+
* much the placement borrowed, which bounds what a cancel may repay. A missing
|
|
59
|
+
* row means {auto_repay: false, auto_repay_at_cancel: false, borrowed: 0}, so
|
|
60
|
+
* only an order departing from that default carries one.
|
|
61
|
+
*/
|
|
62
|
+
export interface MarginOrderState {
|
|
63
|
+
/** auto_repay applies the order's fill proceeds to same-denom debt. */
|
|
64
|
+
autoRepay: boolean;
|
|
65
|
+
/** auto_repay_at_cancel repays when the order's reservation is freed. */
|
|
66
|
+
autoRepayAtCancel: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* borrowed is what this order still owes on the borrow its placement opened,
|
|
69
|
+
* and the cap a cancel or a shrink is measured against. Each such repayment
|
|
70
|
+
* decrements it by what it actually cleared, so the same order cannot repay
|
|
71
|
+
* one borrow twice across successive shrinks.
|
|
72
|
+
*/
|
|
73
|
+
borrowed: Coin | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* PendingSettlement records a margin order's fill proceeds that must be
|
|
77
|
+
* credited back as collateral after matching completes. Crediting is deferred
|
|
78
|
+
* to the EndBlocker so that every order in the block has first delivered its
|
|
79
|
+
* consumed pay into the market escrow, otherwise a margin maker settling before
|
|
80
|
+
* its margin taker would try to draw proceeds the escrow does not yet hold.
|
|
81
|
+
*/
|
|
82
|
+
export interface PendingSettlement {
|
|
83
|
+
/** escrow_address is the market escrow the proceeds are drawn from. */
|
|
84
|
+
escrowAddress: Uint8Array;
|
|
85
|
+
/** orderer is the margin account that receives the proceeds. */
|
|
86
|
+
orderer: Uint8Array;
|
|
87
|
+
/** payout is the fill proceeds to credit as collateral. */
|
|
88
|
+
payout: Coin | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* pool_id is the lending pool the fill was funded from, recorded rather than
|
|
91
|
+
* re-read at drain time. The two always agree on a running chain, where
|
|
92
|
+
* SetMarginLendingPool refuses to move away from a pool that still has an
|
|
93
|
+
* entry queued against it. A genesis import can carry these rows anyway, so
|
|
94
|
+
* the two can differ; reading the configured pool at drain time would then
|
|
95
|
+
* credit the proceeds into a pool that never received the consumed pay and
|
|
96
|
+
* repay debt there against a borrow taken in the old pool.
|
|
97
|
+
*/
|
|
98
|
+
poolId: bigint;
|
|
99
|
+
/**
|
|
100
|
+
* auto_repay is the placing order's flag, copied here at fill time. The
|
|
101
|
+
* per-order row it comes from is deleted by ReleaseOnClose when x/clob closes
|
|
102
|
+
* a fully filled order, which happens inside x/clob's EndBlocker, before
|
|
103
|
+
* x/margin's drains this queue; reading the row at drain time would therefore
|
|
104
|
+
* find nothing for exactly the orders that filled completely.
|
|
105
|
+
*/
|
|
106
|
+
autoRepay: boolean;
|
|
107
|
+
}
|
|
108
|
+
export declare const MarginOptions: MessageFns<MarginOptions>;
|
|
109
|
+
export declare const CollateralsInOrder: MessageFns<CollateralsInOrder>;
|
|
110
|
+
export declare const MarginOrderState: MessageFns<MarginOrderState>;
|
|
111
|
+
export declare const PendingSettlement: MessageFns<PendingSettlement>;
|
|
112
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
113
|
+
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 {} ? {
|
|
114
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
115
|
+
} : Partial<T>;
|
|
116
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
117
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
118
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
119
|
+
} & {
|
|
120
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
121
|
+
};
|
|
122
|
+
export interface MessageFns<T> {
|
|
123
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
124
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
125
|
+
fromJSON(object: any): T;
|
|
126
|
+
toJSON(message: T): unknown;
|
|
127
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
128
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
129
|
+
}
|
|
130
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "ault.margin.v1";
|
|
3
|
+
/** Params defines the configurable parameters for the margin module. */
|
|
4
|
+
export interface Params {
|
|
5
|
+
/**
|
|
6
|
+
* enabled gates new margin exposure (order placement and its auto-borrow,
|
|
7
|
+
* growing a resting order). Unwinding (cancel, shrink, withdraw) and deposit
|
|
8
|
+
* are always permitted.
|
|
9
|
+
*/
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Params: MessageFns<Params>;
|
|
13
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
14
|
+
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 {} ? {
|
|
15
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
16
|
+
} : Partial<T>;
|
|
17
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
18
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
19
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
20
|
+
} & {
|
|
21
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
22
|
+
};
|
|
23
|
+
export interface MessageFns<T> {
|
|
24
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
25
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
26
|
+
fromJSON(object: any): T;
|
|
27
|
+
toJSON(message: T): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
30
|
+
}
|
|
31
|
+
export {};
|