ault-sdk-ts 0.0.2-alpha.5
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/LICENSE +21 -0
- package/README.md +932 -0
- package/dist/agent/create-agent-client.d.ts +3 -0
- package/dist/agent/sign-and-broadcast.d.ts +38 -0
- package/dist/agent/tx/clob.d.ts +7 -0
- package/dist/agent/tx-executor.d.ts +17 -0
- package/dist/client.d.ts +61 -0
- package/dist/core/address.d.ts +14 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/clob-msgs.d.ts +33 -0
- package/dist/core/errors.d.ts +17 -0
- package/dist/core/http.d.ts +14 -0
- package/dist/core/network.d.ts +59 -0
- package/dist/core/pagination.d.ts +14 -0
- package/dist/core/query.d.ts +5 -0
- package/dist/core/with-status-fallback.d.ts +5 -0
- package/dist/eip712/builder.d.ts +45 -0
- package/dist/eip712/field-order.d.ts +2 -0
- package/dist/eip712/msg-encoders.generated.d.ts +1 -0
- package/dist/eip712/msg.generated.d.ts +109 -0
- package/dist/eip712/registry.d.ts +36 -0
- package/dist/eip712/registry.generated.d.ts +2 -0
- package/dist/eip712/sign-and-broadcast.d.ts +55 -0
- package/dist/eip712/signers.d.ts +83 -0
- package/dist/eip712/types.d.ts +58 -0
- package/dist/high-level/address-utils.d.ts +2 -0
- package/dist/high-level/create-client.d.ts +26 -0
- package/dist/high-level/query-helpers.d.ts +3 -0
- package/dist/high-level/signer.d.ts +6 -0
- package/dist/high-level/tx/agent.d.ts +3 -0
- package/dist/high-level/tx/authority.d.ts +3 -0
- package/dist/high-level/tx/clob.d.ts +3 -0
- package/dist/high-level/tx/context.d.ts +5 -0
- package/dist/high-level/tx/license.d.ts +3 -0
- package/dist/high-level/tx/market.d.ts +3 -0
- package/dist/high-level/tx/miner.d.ts +3 -0
- package/dist/high-level/tx/ratelimit.d.ts +3 -0
- package/dist/high-level/tx/reward.d.ts +3 -0
- package/dist/high-level/tx/staking.d.ts +3 -0
- package/dist/high-level/tx/tokenregistry.d.ts +3 -0
- package/dist/high-level/tx-executor.d.ts +18 -0
- package/dist/high-level/types.d.ts +477 -0
- package/dist/high-level-client.d.ts +2 -0
- package/dist/index.cjs +18434 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +18162 -0
- package/dist/index.js.map +1 -0
- package/dist/proto/duration-json.d.ts +6 -0
- package/dist/proto/gen/amino/amino.d.ts +1 -0
- package/dist/proto/gen/ault/agent/v1/agent.d.ts +63 -0
- package/dist/proto/gen/ault/agent/v1/genesis.d.ts +44 -0
- package/dist/proto/gen/ault/agent/v1/params.d.ts +42 -0
- package/dist/proto/gen/ault/agent/v1/query.d.ts +73 -0
- package/dist/proto/gen/ault/agent/v1/tx.d.ts +91 -0
- package/dist/proto/gen/ault/authority/v1/authority.d.ts +15 -0
- package/dist/proto/gen/ault/authority/v1/genesis.d.ts +36 -0
- package/dist/proto/gen/ault/authority/v1/query.d.ts +53 -0
- package/dist/proto/gen/ault/authority/v1/tx.d.ts +50 -0
- package/dist/proto/gen/ault/clob/v1/fee.d.ts +37 -0
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +56 -0
- package/dist/proto/gen/ault/clob/v1/order_book.d.ts +32 -0
- package/dist/proto/gen/ault/clob/v1/params.d.ts +29 -0
- package/dist/proto/gen/ault/clob/v1/query.d.ts +56 -0
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +116 -0
- package/dist/proto/gen/ault/license/v1/genesis.d.ts +140 -0
- package/dist/proto/gen/ault/license/v1/license.d.ts +151 -0
- package/dist/proto/gen/ault/license/v1/query.d.ts +273 -0
- package/dist/proto/gen/ault/license/v1/tx.d.ts +227 -0
- package/dist/proto/gen/ault/market/v1/genesis.d.ts +28 -0
- package/dist/proto/gen/ault/market/v1/market.d.ts +66 -0
- package/dist/proto/gen/ault/market/v1/params.d.ts +34 -0
- package/dist/proto/gen/ault/market/v1/query.d.ts +48 -0
- package/dist/proto/gen/ault/market/v1/tx.d.ts +87 -0
- package/dist/proto/gen/ault/miner/v1/genesis.d.ts +166 -0
- package/dist/proto/gen/ault/miner/v1/miner.d.ts +232 -0
- package/dist/proto/gen/ault/miner/v1/query.d.ts +254 -0
- package/dist/proto/gen/ault/miner/v1/tx.d.ts +207 -0
- package/dist/proto/gen/ault/ratelimit/v1/genesis.d.ts +27 -0
- package/dist/proto/gen/ault/ratelimit/v1/params.d.ts +35 -0
- package/dist/proto/gen/ault/ratelimit/v1/query.d.ts +42 -0
- package/dist/proto/gen/ault/ratelimit/v1/tx.d.ts +32 -0
- package/dist/proto/gen/ault/reward/v1/genesis.d.ts +67 -0
- package/dist/proto/gen/ault/reward/v1/query.d.ts +93 -0
- package/dist/proto/gen/ault/reward/v1/reward.d.ts +53 -0
- package/dist/proto/gen/ault/reward/v1/tx.d.ts +120 -0
- package/dist/proto/gen/ault/spot/v1/genesis.d.ts +26 -0
- package/dist/proto/gen/ault/spot/v1/order.d.ts +66 -0
- package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +34 -0
- package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +77 -0
- package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +118 -0
- package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +132 -0
- package/dist/proto/gen/cosmos/base/query/v1beta1/pagination.d.ts +82 -0
- package/dist/proto/gen/cosmos/base/v1beta1/coin.d.ts +59 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/distribution.d.ts +162 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/tx.d.ts +140 -0
- package/dist/proto/gen/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/staking.d.ts +310 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/tx.d.ts +144 -0
- package/dist/proto/gen/cosmos_proto/cosmos.d.ts +80 -0
- package/dist/proto/gen/gogoproto/gogo.d.ts +1 -0
- package/dist/proto/gen/google/api/annotations.d.ts +1 -0
- package/dist/proto/gen/google/api/http.d.ts +379 -0
- package/dist/proto/gen/google/protobuf/any.d.ts +144 -0
- package/dist/proto/gen/google/protobuf/descriptor.d.ts +1285 -0
- package/dist/proto/gen/google/protobuf/duration.d.ts +99 -0
- package/dist/proto/gen/google/protobuf/timestamp.d.ts +128 -0
- package/dist/proto/gen/tendermint/abci/types.d.ts +507 -0
- package/dist/proto/gen/tendermint/crypto/keys.d.ts +27 -0
- package/dist/proto/gen/tendermint/crypto/proof.d.ts +57 -0
- package/dist/proto/gen/tendermint/types/params.d.ts +112 -0
- package/dist/proto/gen/tendermint/types/types.d.ts +197 -0
- package/dist/proto/gen/tendermint/types/validator.d.ts +54 -0
- package/dist/proto/gen/tendermint/version/types.d.ts +41 -0
- package/dist/proto/tx-encode.d.ts +78 -0
- package/dist/rest/agent.d.ts +12 -0
- package/dist/rest/authority.d.ts +12 -0
- package/dist/rest/clob.d.ts +11 -0
- package/dist/rest/context.d.ts +22 -0
- package/dist/rest/dex-fetcher.d.ts +10 -0
- package/dist/rest/dex-types.generated.d.ts +780 -0
- package/dist/rest/dex.d.ts +34 -0
- package/dist/rest/dex.generated.d.ts +1381 -0
- package/dist/rest/license.d.ts +79 -0
- package/dist/rest/market.d.ts +11 -0
- package/dist/rest/miner.d.ts +59 -0
- package/dist/rest/ratelimit.d.ts +7 -0
- package/dist/rest/reward.d.ts +25 -0
- package/dist/rest/staking.d.ts +38 -0
- package/dist/rest/tokenregistry.d.ts +11 -0
- package/dist/rest/types.d.ts +871 -0
- package/dist/utils/address.d.ts +6 -0
- package/dist/utils/chain-id.d.ts +1 -0
- package/dist/utils/cosmos-dec.d.ts +2 -0
- package/dist/ws/client.d.ts +37 -0
- package/dist/ws/index.d.ts +5 -0
- package/dist/ws/types.d.ts +66 -0
- package/package.json +103 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { License, LicenseStatus, Params } from "./license";
|
|
4
|
+
export declare const protobufPackage = "ault.license.v1";
|
|
5
|
+
/** QueryLicenseRequest is the request for the License RPC method */
|
|
6
|
+
export interface QueryLicenseRequest {
|
|
7
|
+
/** id is the unique identifier of the license */
|
|
8
|
+
id: bigint;
|
|
9
|
+
}
|
|
10
|
+
/** QueryLicenseResponse is the response for the License RPC method */
|
|
11
|
+
export interface QueryLicenseResponse {
|
|
12
|
+
/** license is the queried license */
|
|
13
|
+
license: License | undefined;
|
|
14
|
+
}
|
|
15
|
+
/** QueryLicensesRequest is the request for the Licenses RPC method */
|
|
16
|
+
export interface QueryLicensesRequest {
|
|
17
|
+
/** status filters licenses by status (optional) */
|
|
18
|
+
status: LicenseStatus;
|
|
19
|
+
/** pagination defines the pagination in the request */
|
|
20
|
+
pagination: PageRequest | undefined;
|
|
21
|
+
}
|
|
22
|
+
/** QueryLicensesResponse is the response for the Licenses RPC method */
|
|
23
|
+
export interface QueryLicensesResponse {
|
|
24
|
+
/** licenses is the list of licenses */
|
|
25
|
+
licenses: License[];
|
|
26
|
+
/** pagination defines the pagination in the response */
|
|
27
|
+
pagination: PageResponse | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** QueryLicensesByOwnerRequest is the request for the LicensesByOwner RPC method */
|
|
30
|
+
export interface QueryLicensesByOwnerRequest {
|
|
31
|
+
/** owner is the address to query licenses for */
|
|
32
|
+
owner: string;
|
|
33
|
+
/** pagination defines the pagination in the request */
|
|
34
|
+
pagination: PageRequest | undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* QueryLicensesByOwnerResponse is the response for the LicensesByOwner RPC
|
|
38
|
+
* method
|
|
39
|
+
*/
|
|
40
|
+
export interface QueryLicensesByOwnerResponse {
|
|
41
|
+
/** licenses is the list of licenses owned by the address */
|
|
42
|
+
licenses: License[];
|
|
43
|
+
/** pagination defines the pagination in the response */
|
|
44
|
+
pagination: PageResponse | undefined;
|
|
45
|
+
}
|
|
46
|
+
/** QueryBalanceRequest is the request for the BalanceOf RPC method */
|
|
47
|
+
export interface QueryBalanceRequest {
|
|
48
|
+
/** owner is the address to query the balance for */
|
|
49
|
+
owner: string;
|
|
50
|
+
}
|
|
51
|
+
/** QueryBalanceResponse is the response for the BalanceOf RPC method */
|
|
52
|
+
export interface QueryBalanceResponse {
|
|
53
|
+
/** balance is the number of licenses owned */
|
|
54
|
+
balance: bigint;
|
|
55
|
+
}
|
|
56
|
+
/** QueryOwnerRequest is the request for the OwnerOf RPC method */
|
|
57
|
+
export interface QueryOwnerRequest {
|
|
58
|
+
/** id is the unique identifier of the license */
|
|
59
|
+
id: bigint;
|
|
60
|
+
}
|
|
61
|
+
/** QueryOwnerResponse is the response for the OwnerOf RPC method */
|
|
62
|
+
export interface QueryOwnerResponse {
|
|
63
|
+
/** owner is the address that owns the license */
|
|
64
|
+
owner: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* QueryTokenByOwnerIndexRequest is the request for the TokenOfOwnerByIndex
|
|
68
|
+
* RPC method
|
|
69
|
+
*/
|
|
70
|
+
export interface QueryTokenByOwnerIndexRequest {
|
|
71
|
+
/** owner is the address that owns the licenses */
|
|
72
|
+
owner: string;
|
|
73
|
+
/** index is the index in the owner's token list */
|
|
74
|
+
index: bigint;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* QueryTokenByOwnerIndexResponse is the response for the TokenOfOwnerByIndex
|
|
78
|
+
* RPC method
|
|
79
|
+
*/
|
|
80
|
+
export interface QueryTokenByOwnerIndexResponse {
|
|
81
|
+
/** id is the license ID at the given index */
|
|
82
|
+
id: bigint;
|
|
83
|
+
}
|
|
84
|
+
/** QueryOwnedByRequest is the request for the OwnedBy RPC method */
|
|
85
|
+
export interface QueryOwnedByRequest {
|
|
86
|
+
/** owner is the address to query licenses for */
|
|
87
|
+
owner: string;
|
|
88
|
+
/** pagination defines the pagination in the request */
|
|
89
|
+
pagination: PageRequest | undefined;
|
|
90
|
+
}
|
|
91
|
+
/** QueryOwnedByResponse is the response for the OwnedBy RPC method */
|
|
92
|
+
export interface QueryOwnedByResponse {
|
|
93
|
+
/** license_ids is the list of license IDs owned by the address */
|
|
94
|
+
licenseIds: bigint[];
|
|
95
|
+
/** pagination defines the pagination in the response */
|
|
96
|
+
pagination: PageResponse | undefined;
|
|
97
|
+
}
|
|
98
|
+
/** QueryTotalSupplyRequest is the request for the TotalSupply RPC method */
|
|
99
|
+
export interface QueryTotalSupplyRequest {
|
|
100
|
+
}
|
|
101
|
+
/** QueryTotalSupplyResponse is the response for the TotalSupply RPC method */
|
|
102
|
+
export interface QueryTotalSupplyResponse {
|
|
103
|
+
/** total_supply is the total number of active licenses */
|
|
104
|
+
totalSupply: bigint;
|
|
105
|
+
}
|
|
106
|
+
/** QueryIsActiveRequest is the request for the IsActive RPC method */
|
|
107
|
+
export interface QueryIsActiveRequest {
|
|
108
|
+
/** id is the unique identifier of the license */
|
|
109
|
+
id: bigint;
|
|
110
|
+
}
|
|
111
|
+
/** QueryIsActiveResponse is the response for the IsActive RPC method */
|
|
112
|
+
export interface QueryIsActiveResponse {
|
|
113
|
+
/** is_active indicates whether the license is active */
|
|
114
|
+
isActive: boolean;
|
|
115
|
+
}
|
|
116
|
+
/** QueryParamsRequest is the request for the Params RPC method */
|
|
117
|
+
export interface QueryParamsRequest {
|
|
118
|
+
}
|
|
119
|
+
/** QueryParamsResponse is the response for the Params RPC method */
|
|
120
|
+
export interface QueryParamsResponse {
|
|
121
|
+
/** params are the module parameters */
|
|
122
|
+
params: Params | undefined;
|
|
123
|
+
}
|
|
124
|
+
/** QueryMintersRequest is the request for the Minters RPC method */
|
|
125
|
+
export interface QueryMintersRequest {
|
|
126
|
+
/** pagination defines the pagination in the request */
|
|
127
|
+
pagination: PageRequest | undefined;
|
|
128
|
+
}
|
|
129
|
+
/** QueryMintersResponse is the response for the Minters RPC method */
|
|
130
|
+
export interface QueryMintersResponse {
|
|
131
|
+
/** minters is the list of authorized minter addresses */
|
|
132
|
+
minters: string[];
|
|
133
|
+
/** pagination defines the pagination in the response */
|
|
134
|
+
pagination: PageResponse | undefined;
|
|
135
|
+
}
|
|
136
|
+
/** QueryKYCApproversRequest is the request for the KYCApprovers RPC method */
|
|
137
|
+
export interface QueryKYCApproversRequest {
|
|
138
|
+
/** pagination defines the pagination in the request */
|
|
139
|
+
pagination: PageRequest | undefined;
|
|
140
|
+
}
|
|
141
|
+
/** QueryKYCApproversResponse is the response for the KYCApprovers RPC method */
|
|
142
|
+
export interface QueryKYCApproversResponse {
|
|
143
|
+
/** approvers is the list of authorized KYC approver addresses */
|
|
144
|
+
approvers: string[];
|
|
145
|
+
/** pagination defines the pagination in the response */
|
|
146
|
+
pagination: PageResponse | undefined;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* QueryTransferUnlockTimeRequest is the request for the TransferUnlockTime RPC
|
|
150
|
+
* method
|
|
151
|
+
*/
|
|
152
|
+
export interface QueryTransferUnlockTimeRequest {
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* QueryTransferUnlockTimeResponse is the response for the TransferUnlockTime
|
|
156
|
+
* RPC method
|
|
157
|
+
*/
|
|
158
|
+
export interface QueryTransferUnlockTimeResponse {
|
|
159
|
+
/** unlock_time is the global time when all licenses become transferable */
|
|
160
|
+
unlockTime: Date | undefined;
|
|
161
|
+
}
|
|
162
|
+
/** QueryApprovedMembersRequest is the request for the ApprovedMembers RPC method */
|
|
163
|
+
export interface QueryApprovedMembersRequest {
|
|
164
|
+
/** pagination defines the pagination in the request */
|
|
165
|
+
pagination: PageRequest | undefined;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* QueryApprovedMembersResponse is the response for the ApprovedMembers RPC
|
|
169
|
+
* method
|
|
170
|
+
*/
|
|
171
|
+
export interface QueryApprovedMembersResponse {
|
|
172
|
+
/** members is the list of approved DAO member addresses */
|
|
173
|
+
members: string[];
|
|
174
|
+
/** pagination defines the pagination in the response */
|
|
175
|
+
pagination: PageResponse | undefined;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* QueryIsApprovedMemberRequest is the request for the IsApprovedMember RPC
|
|
179
|
+
* method
|
|
180
|
+
*/
|
|
181
|
+
export interface QueryIsApprovedMemberRequest {
|
|
182
|
+
/** address is the address to check */
|
|
183
|
+
address: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* QueryIsApprovedMemberResponse is the response for the IsApprovedMember RPC
|
|
187
|
+
* method
|
|
188
|
+
*/
|
|
189
|
+
export interface QueryIsApprovedMemberResponse {
|
|
190
|
+
/** is_approved indicates whether the address is an approved member */
|
|
191
|
+
isApproved: boolean;
|
|
192
|
+
}
|
|
193
|
+
/** QueryIsKYCApproverRequest is the request for the IsKYCApprover RPC method */
|
|
194
|
+
export interface QueryIsKYCApproverRequest {
|
|
195
|
+
/** address is the address to check */
|
|
196
|
+
address: string;
|
|
197
|
+
}
|
|
198
|
+
/** QueryIsKYCApproverResponse is the response for the IsKYCApprover RPC method */
|
|
199
|
+
export interface QueryIsKYCApproverResponse {
|
|
200
|
+
/** is_approver indicates whether the address is a KYC approver */
|
|
201
|
+
isApprover: boolean;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* QueryActiveLicenseCountAtRequest is the request for the ActiveLicenseCountAt
|
|
205
|
+
* RPC method
|
|
206
|
+
*/
|
|
207
|
+
export interface QueryActiveLicenseCountAtRequest {
|
|
208
|
+
/** owner is the address to query license count for */
|
|
209
|
+
owner: string;
|
|
210
|
+
/** snapshot_time is the time to query at */
|
|
211
|
+
snapshotTime: Date | undefined;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* QueryActiveLicenseCountAtResponse is the response for the
|
|
215
|
+
* ActiveLicenseCountAt RPC method
|
|
216
|
+
*/
|
|
217
|
+
export interface QueryActiveLicenseCountAtResponse {
|
|
218
|
+
/** count is the number of active licenses owned at the snapshot time */
|
|
219
|
+
count: bigint;
|
|
220
|
+
}
|
|
221
|
+
export declare const QueryLicenseRequest: MessageFns<QueryLicenseRequest>;
|
|
222
|
+
export declare const QueryLicenseResponse: MessageFns<QueryLicenseResponse>;
|
|
223
|
+
export declare const QueryLicensesRequest: MessageFns<QueryLicensesRequest>;
|
|
224
|
+
export declare const QueryLicensesResponse: MessageFns<QueryLicensesResponse>;
|
|
225
|
+
export declare const QueryLicensesByOwnerRequest: MessageFns<QueryLicensesByOwnerRequest>;
|
|
226
|
+
export declare const QueryLicensesByOwnerResponse: MessageFns<QueryLicensesByOwnerResponse>;
|
|
227
|
+
export declare const QueryBalanceRequest: MessageFns<QueryBalanceRequest>;
|
|
228
|
+
export declare const QueryBalanceResponse: MessageFns<QueryBalanceResponse>;
|
|
229
|
+
export declare const QueryOwnerRequest: MessageFns<QueryOwnerRequest>;
|
|
230
|
+
export declare const QueryOwnerResponse: MessageFns<QueryOwnerResponse>;
|
|
231
|
+
export declare const QueryTokenByOwnerIndexRequest: MessageFns<QueryTokenByOwnerIndexRequest>;
|
|
232
|
+
export declare const QueryTokenByOwnerIndexResponse: MessageFns<QueryTokenByOwnerIndexResponse>;
|
|
233
|
+
export declare const QueryOwnedByRequest: MessageFns<QueryOwnedByRequest>;
|
|
234
|
+
export declare const QueryOwnedByResponse: MessageFns<QueryOwnedByResponse>;
|
|
235
|
+
export declare const QueryTotalSupplyRequest: MessageFns<QueryTotalSupplyRequest>;
|
|
236
|
+
export declare const QueryTotalSupplyResponse: MessageFns<QueryTotalSupplyResponse>;
|
|
237
|
+
export declare const QueryIsActiveRequest: MessageFns<QueryIsActiveRequest>;
|
|
238
|
+
export declare const QueryIsActiveResponse: MessageFns<QueryIsActiveResponse>;
|
|
239
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
240
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
241
|
+
export declare const QueryMintersRequest: MessageFns<QueryMintersRequest>;
|
|
242
|
+
export declare const QueryMintersResponse: MessageFns<QueryMintersResponse>;
|
|
243
|
+
export declare const QueryKYCApproversRequest: MessageFns<QueryKYCApproversRequest>;
|
|
244
|
+
export declare const QueryKYCApproversResponse: MessageFns<QueryKYCApproversResponse>;
|
|
245
|
+
export declare const QueryTransferUnlockTimeRequest: MessageFns<QueryTransferUnlockTimeRequest>;
|
|
246
|
+
export declare const QueryTransferUnlockTimeResponse: MessageFns<QueryTransferUnlockTimeResponse>;
|
|
247
|
+
export declare const QueryApprovedMembersRequest: MessageFns<QueryApprovedMembersRequest>;
|
|
248
|
+
export declare const QueryApprovedMembersResponse: MessageFns<QueryApprovedMembersResponse>;
|
|
249
|
+
export declare const QueryIsApprovedMemberRequest: MessageFns<QueryIsApprovedMemberRequest>;
|
|
250
|
+
export declare const QueryIsApprovedMemberResponse: MessageFns<QueryIsApprovedMemberResponse>;
|
|
251
|
+
export declare const QueryIsKYCApproverRequest: MessageFns<QueryIsKYCApproverRequest>;
|
|
252
|
+
export declare const QueryIsKYCApproverResponse: MessageFns<QueryIsKYCApproverResponse>;
|
|
253
|
+
export declare const QueryActiveLicenseCountAtRequest: MessageFns<QueryActiveLicenseCountAtRequest>;
|
|
254
|
+
export declare const QueryActiveLicenseCountAtResponse: MessageFns<QueryActiveLicenseCountAtResponse>;
|
|
255
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
256
|
+
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 {} ? {
|
|
257
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
258
|
+
} : Partial<T>;
|
|
259
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
260
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
261
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
262
|
+
} & {
|
|
263
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
264
|
+
};
|
|
265
|
+
export interface MessageFns<T> {
|
|
266
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
267
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
268
|
+
fromJSON(object: any): T;
|
|
269
|
+
toJSON(message: T): unknown;
|
|
270
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
271
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
272
|
+
}
|
|
273
|
+
export {};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Params } from "./license";
|
|
3
|
+
export declare const protobufPackage = "ault.license.v1";
|
|
4
|
+
/** MsgMintLicense defines a message to mint a new license */
|
|
5
|
+
export interface MsgMintLicense {
|
|
6
|
+
/** minter is the address of the authorized minter */
|
|
7
|
+
minter: string;
|
|
8
|
+
/** to is the address that will receive the license */
|
|
9
|
+
to: string;
|
|
10
|
+
/** uri is the metadata URI for the license */
|
|
11
|
+
uri: string;
|
|
12
|
+
/** reason is the reason for minting (for audit trail) */
|
|
13
|
+
reason: string;
|
|
14
|
+
}
|
|
15
|
+
/** MsgMintLicenseResponse defines the response for MsgMintLicense */
|
|
16
|
+
export interface MsgMintLicenseResponse {
|
|
17
|
+
/** id is the unique identifier of the newly minted license */
|
|
18
|
+
id: bigint;
|
|
19
|
+
}
|
|
20
|
+
/** MsgBatchMintLicense defines a message to mint multiple licenses */
|
|
21
|
+
export interface MsgBatchMintLicense {
|
|
22
|
+
/** minter is the address of the authorized minter */
|
|
23
|
+
minter: string;
|
|
24
|
+
/** to is the list of addresses that will receive licenses */
|
|
25
|
+
to: string[];
|
|
26
|
+
/** uri is the list of metadata URIs for the licenses */
|
|
27
|
+
uri: string[];
|
|
28
|
+
/** reason is the reason for minting (for audit trail) */
|
|
29
|
+
reason: string;
|
|
30
|
+
}
|
|
31
|
+
/** MsgBatchMintLicenseResponse defines the response for MsgBatchMintLicense */
|
|
32
|
+
export interface MsgBatchMintLicenseResponse {
|
|
33
|
+
/** ids is the list of unique identifiers of the newly minted licenses */
|
|
34
|
+
ids: bigint[];
|
|
35
|
+
}
|
|
36
|
+
/** MsgRevokeLicense defines a message to revoke a license */
|
|
37
|
+
export interface MsgRevokeLicense {
|
|
38
|
+
/** authority is the address of the module authority */
|
|
39
|
+
authority: string;
|
|
40
|
+
/** id is the unique identifier of the license to revoke */
|
|
41
|
+
id: bigint;
|
|
42
|
+
/** reason is the reason for revoking (for audit trail) */
|
|
43
|
+
reason: string;
|
|
44
|
+
}
|
|
45
|
+
/** MsgRevokeLicenseResponse defines the response for MsgRevokeLicense */
|
|
46
|
+
export interface MsgRevokeLicenseResponse {
|
|
47
|
+
}
|
|
48
|
+
/** MsgBurnLicense defines a message to burn a license */
|
|
49
|
+
export interface MsgBurnLicense {
|
|
50
|
+
/** authority is the address of the module authority */
|
|
51
|
+
authority: string;
|
|
52
|
+
/** id is the unique identifier of the license to burn */
|
|
53
|
+
id: bigint;
|
|
54
|
+
/** reason is the reason for burning (for audit trail) */
|
|
55
|
+
reason: string;
|
|
56
|
+
}
|
|
57
|
+
/** MsgBurnLicenseResponse defines the response for MsgBurnLicense */
|
|
58
|
+
export interface MsgBurnLicenseResponse {
|
|
59
|
+
}
|
|
60
|
+
/** MsgSetTokenURI defines a message to update a license's metadata URI */
|
|
61
|
+
export interface MsgSetTokenURI {
|
|
62
|
+
/** minter can be either module authority (governance) or an authorized minter */
|
|
63
|
+
minter: string;
|
|
64
|
+
/** id is the unique identifier of the license */
|
|
65
|
+
id: bigint;
|
|
66
|
+
/** uri is the new metadata URI */
|
|
67
|
+
uri: string;
|
|
68
|
+
}
|
|
69
|
+
/** MsgSetTokenURIResponse defines the response for MsgSetTokenURI */
|
|
70
|
+
export interface MsgSetTokenURIResponse {
|
|
71
|
+
}
|
|
72
|
+
/** MsgSetMinters defines a message to update the set of authorized minters */
|
|
73
|
+
export interface MsgSetMinters {
|
|
74
|
+
/** authority is the address of the module authority */
|
|
75
|
+
authority: string;
|
|
76
|
+
/** add is the list of addresses to add as minters */
|
|
77
|
+
add: string[];
|
|
78
|
+
/** remove is the list of addresses to remove from minters */
|
|
79
|
+
remove: string[];
|
|
80
|
+
}
|
|
81
|
+
/** MsgSetMintersResponse defines the response for MsgSetMinters */
|
|
82
|
+
export interface MsgSetMintersResponse {
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* MsgUpdateParams defines a message to update the module parameters via
|
|
86
|
+
* governance
|
|
87
|
+
*/
|
|
88
|
+
export interface MsgUpdateParams {
|
|
89
|
+
/**
|
|
90
|
+
* authority is the address that controls the module (defaults to x/gov unless
|
|
91
|
+
* overwritten)
|
|
92
|
+
*/
|
|
93
|
+
authority: string;
|
|
94
|
+
/** params are the new parameters */
|
|
95
|
+
params: Params | undefined;
|
|
96
|
+
}
|
|
97
|
+
/** MsgUpdateParamsResponse defines the response for MsgUpdateParams */
|
|
98
|
+
export interface MsgUpdateParamsResponse {
|
|
99
|
+
}
|
|
100
|
+
/** MsgApproveMember defines a message to approve an address as a DAO member */
|
|
101
|
+
export interface MsgApproveMember {
|
|
102
|
+
/** authority is the address of the module authority or authorized KYC approver */
|
|
103
|
+
authority: string;
|
|
104
|
+
/** member is the address to approve as a DAO member */
|
|
105
|
+
member: string;
|
|
106
|
+
}
|
|
107
|
+
/** MsgApproveMemberResponse defines the response for MsgApproveMember */
|
|
108
|
+
export interface MsgApproveMemberResponse {
|
|
109
|
+
}
|
|
110
|
+
/** MsgRevokeMember defines a message to revoke DAO member status */
|
|
111
|
+
export interface MsgRevokeMember {
|
|
112
|
+
/** authority is the address of the module authority or authorized KYC approver */
|
|
113
|
+
authority: string;
|
|
114
|
+
/** member is the address to revoke DAO member status from */
|
|
115
|
+
member: string;
|
|
116
|
+
}
|
|
117
|
+
/** MsgRevokeMemberResponse defines the response for MsgRevokeMember */
|
|
118
|
+
export interface MsgRevokeMemberResponse {
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* MsgBatchApproveMember defines a message to approve multiple addresses as DAO
|
|
122
|
+
* members
|
|
123
|
+
*/
|
|
124
|
+
export interface MsgBatchApproveMember {
|
|
125
|
+
/** authority is the address of the module authority or authorized KYC approver */
|
|
126
|
+
authority: string;
|
|
127
|
+
/** members is the list of addresses to approve as DAO members */
|
|
128
|
+
members: string[];
|
|
129
|
+
}
|
|
130
|
+
/** MsgBatchApproveMemberResponse defines the response for MsgBatchApproveMember */
|
|
131
|
+
export interface MsgBatchApproveMemberResponse {
|
|
132
|
+
/** successful_members contains the addresses that were successfully approved */
|
|
133
|
+
successfulMembers: string[];
|
|
134
|
+
/** failed_members contains the addresses that failed to be approved */
|
|
135
|
+
failedMembers: string[];
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* MsgBatchRevokeMember defines a message to revoke DAO member status from
|
|
139
|
+
* multiple addresses
|
|
140
|
+
*/
|
|
141
|
+
export interface MsgBatchRevokeMember {
|
|
142
|
+
/** authority is the address of the module authority or authorized KYC approver */
|
|
143
|
+
authority: string;
|
|
144
|
+
/** members is the list of addresses to revoke DAO member status from */
|
|
145
|
+
members: string[];
|
|
146
|
+
}
|
|
147
|
+
/** MsgBatchRevokeMemberResponse defines the response for MsgBatchRevokeMember */
|
|
148
|
+
export interface MsgBatchRevokeMemberResponse {
|
|
149
|
+
/** successful_members contains the addresses that were successfully revoked */
|
|
150
|
+
successfulMembers: string[];
|
|
151
|
+
/** failed_members contains the addresses that failed to be revoked */
|
|
152
|
+
failedMembers: string[];
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* MsgSetKYCApprovers defines a message to update the set of authorized KYC
|
|
156
|
+
* approvers
|
|
157
|
+
*/
|
|
158
|
+
export interface MsgSetKYCApprovers {
|
|
159
|
+
/** authority is the address of the module authority */
|
|
160
|
+
authority: string;
|
|
161
|
+
/** add is the list of addresses to add as KYC approvers */
|
|
162
|
+
add: string[];
|
|
163
|
+
/** remove is the list of addresses to remove from KYC approvers */
|
|
164
|
+
remove: string[];
|
|
165
|
+
}
|
|
166
|
+
/** MsgSetKYCApproversResponse defines the response for MsgSetKYCApprovers */
|
|
167
|
+
export interface MsgSetKYCApproversResponse {
|
|
168
|
+
}
|
|
169
|
+
/** MsgTransferLicense transfers a license from the owner to a new address */
|
|
170
|
+
export interface MsgTransferLicense {
|
|
171
|
+
/** from is the current owner of the license */
|
|
172
|
+
from: string;
|
|
173
|
+
/** to is the address that will receive the license */
|
|
174
|
+
to: string;
|
|
175
|
+
/** license_id is the ID of the license to transfer */
|
|
176
|
+
licenseId: bigint;
|
|
177
|
+
/** reason is an optional reason for the transfer (audit trail) */
|
|
178
|
+
reason: string;
|
|
179
|
+
}
|
|
180
|
+
/** MsgTransferLicenseResponse defines the response for MsgTransferLicense */
|
|
181
|
+
export interface MsgTransferLicenseResponse {
|
|
182
|
+
}
|
|
183
|
+
export declare const MsgMintLicense: MessageFns<MsgMintLicense>;
|
|
184
|
+
export declare const MsgMintLicenseResponse: MessageFns<MsgMintLicenseResponse>;
|
|
185
|
+
export declare const MsgBatchMintLicense: MessageFns<MsgBatchMintLicense>;
|
|
186
|
+
export declare const MsgBatchMintLicenseResponse: MessageFns<MsgBatchMintLicenseResponse>;
|
|
187
|
+
export declare const MsgRevokeLicense: MessageFns<MsgRevokeLicense>;
|
|
188
|
+
export declare const MsgRevokeLicenseResponse: MessageFns<MsgRevokeLicenseResponse>;
|
|
189
|
+
export declare const MsgBurnLicense: MessageFns<MsgBurnLicense>;
|
|
190
|
+
export declare const MsgBurnLicenseResponse: MessageFns<MsgBurnLicenseResponse>;
|
|
191
|
+
export declare const MsgSetTokenURI: MessageFns<MsgSetTokenURI>;
|
|
192
|
+
export declare const MsgSetTokenURIResponse: MessageFns<MsgSetTokenURIResponse>;
|
|
193
|
+
export declare const MsgSetMinters: MessageFns<MsgSetMinters>;
|
|
194
|
+
export declare const MsgSetMintersResponse: MessageFns<MsgSetMintersResponse>;
|
|
195
|
+
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
|
|
196
|
+
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
|
|
197
|
+
export declare const MsgApproveMember: MessageFns<MsgApproveMember>;
|
|
198
|
+
export declare const MsgApproveMemberResponse: MessageFns<MsgApproveMemberResponse>;
|
|
199
|
+
export declare const MsgRevokeMember: MessageFns<MsgRevokeMember>;
|
|
200
|
+
export declare const MsgRevokeMemberResponse: MessageFns<MsgRevokeMemberResponse>;
|
|
201
|
+
export declare const MsgBatchApproveMember: MessageFns<MsgBatchApproveMember>;
|
|
202
|
+
export declare const MsgBatchApproveMemberResponse: MessageFns<MsgBatchApproveMemberResponse>;
|
|
203
|
+
export declare const MsgBatchRevokeMember: MessageFns<MsgBatchRevokeMember>;
|
|
204
|
+
export declare const MsgBatchRevokeMemberResponse: MessageFns<MsgBatchRevokeMemberResponse>;
|
|
205
|
+
export declare const MsgSetKYCApprovers: MessageFns<MsgSetKYCApprovers>;
|
|
206
|
+
export declare const MsgSetKYCApproversResponse: MessageFns<MsgSetKYCApproversResponse>;
|
|
207
|
+
export declare const MsgTransferLicense: MessageFns<MsgTransferLicense>;
|
|
208
|
+
export declare const MsgTransferLicenseResponse: MessageFns<MsgTransferLicenseResponse>;
|
|
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 {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { MarketRecord } from "./market";
|
|
3
|
+
import { Params } from "./params";
|
|
4
|
+
export declare const protobufPackage = "ault.market.v1";
|
|
5
|
+
export interface GenesisState {
|
|
6
|
+
params: Params | undefined;
|
|
7
|
+
marketRecords: MarketRecord[];
|
|
8
|
+
}
|
|
9
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
10
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
11
|
+
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 {} ? {
|
|
12
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
13
|
+
} : Partial<T>;
|
|
14
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
15
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
16
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
17
|
+
} & {
|
|
18
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
19
|
+
};
|
|
20
|
+
export interface MessageFns<T> {
|
|
21
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
22
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
23
|
+
fromJSON(object: any): T;
|
|
24
|
+
toJSON(message: T): unknown;
|
|
25
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "ault.market.v1";
|
|
3
|
+
/** MarketType defines the type of market. */
|
|
4
|
+
export declare enum MarketType {
|
|
5
|
+
/** MARKET_TYPE_UNSPECIFIED - MARKET_TYPE_UNSPECIFIED is an invalid value. */
|
|
6
|
+
MARKET_TYPE_UNSPECIFIED = 0,
|
|
7
|
+
/** MARKET_TYPE_SPOT - MARKET_TYPE_SPOT is a spot market. */
|
|
8
|
+
MARKET_TYPE_SPOT = 1,
|
|
9
|
+
UNRECOGNIZED = -1
|
|
10
|
+
}
|
|
11
|
+
export declare function marketTypeFromJSON(object: any): MarketType;
|
|
12
|
+
export declare function marketTypeToJSON(object: MarketType): string;
|
|
13
|
+
export interface Market {
|
|
14
|
+
/** markettype + base denom + quote denom */
|
|
15
|
+
id: Uint8Array;
|
|
16
|
+
escrowAddress: Uint8Array;
|
|
17
|
+
makerFeeRate: string;
|
|
18
|
+
takerFeeRate: string;
|
|
19
|
+
tickPrecision: number;
|
|
20
|
+
deployer: string;
|
|
21
|
+
}
|
|
22
|
+
export interface MarketState {
|
|
23
|
+
lastPrice: string;
|
|
24
|
+
lastMatchingHeight: bigint;
|
|
25
|
+
halted: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface MarketRecord {
|
|
28
|
+
market: Market | undefined;
|
|
29
|
+
state: MarketState | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface MarketResponse {
|
|
32
|
+
id: Uint8Array;
|
|
33
|
+
marketType: MarketType;
|
|
34
|
+
baseDenom: string;
|
|
35
|
+
quoteDenom: string;
|
|
36
|
+
escrowAddress: string;
|
|
37
|
+
makerFeeRate: string;
|
|
38
|
+
takerFeeRate: string;
|
|
39
|
+
tickPrecision: number;
|
|
40
|
+
lastPrice: string;
|
|
41
|
+
lastMatchingHeight: bigint;
|
|
42
|
+
halted: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare const Market: MessageFns<Market>;
|
|
45
|
+
export declare const MarketState: MessageFns<MarketState>;
|
|
46
|
+
export declare const MarketRecord: MessageFns<MarketRecord>;
|
|
47
|
+
export declare const MarketResponse: MessageFns<MarketResponse>;
|
|
48
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
49
|
+
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 {} ? {
|
|
50
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
51
|
+
} : Partial<T>;
|
|
52
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
53
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
54
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
55
|
+
} & {
|
|
56
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
57
|
+
};
|
|
58
|
+
export interface MessageFns<T> {
|
|
59
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
60
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
61
|
+
fromJSON(object: any): T;
|
|
62
|
+
toJSON(message: T): unknown;
|
|
63
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
64
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "ault.market.v1";
|
|
3
|
+
export interface Params {
|
|
4
|
+
fees: Fees | undefined;
|
|
5
|
+
allowPermissionlessMarketCreation: boolean;
|
|
6
|
+
allowedQuoteDenoms: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface Fees {
|
|
9
|
+
maxMakerFeeRate: string;
|
|
10
|
+
maxTakerFeeRate: string;
|
|
11
|
+
defaultMakerFeeRate: string;
|
|
12
|
+
defaultTakerFeeRate: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Params: MessageFns<Params>;
|
|
15
|
+
export declare const Fees: MessageFns<Fees>;
|
|
16
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
17
|
+
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 {} ? {
|
|
18
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
19
|
+
} : Partial<T>;
|
|
20
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
21
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
22
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
23
|
+
} & {
|
|
24
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
25
|
+
};
|
|
26
|
+
export interface MessageFns<T> {
|
|
27
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
28
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
29
|
+
fromJSON(object: any): T;
|
|
30
|
+
toJSON(message: T): unknown;
|
|
31
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
32
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { MarketResponse } from "./market";
|
|
4
|
+
import { Params } from "./params";
|
|
5
|
+
export declare const protobufPackage = "ault.market.v1";
|
|
6
|
+
export interface QueryParamsRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface QueryParamsResponse {
|
|
9
|
+
params: Params | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface QueryMarketsRequest {
|
|
12
|
+
pagination: PageRequest | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface QueryMarketsResponse {
|
|
15
|
+
markets: MarketResponse[];
|
|
16
|
+
pagination: PageResponse | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface QueryMarketRequest {
|
|
19
|
+
marketId: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
export interface QueryMarketResponse {
|
|
22
|
+
market: MarketResponse | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
25
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
26
|
+
export declare const QueryMarketsRequest: MessageFns<QueryMarketsRequest>;
|
|
27
|
+
export declare const QueryMarketsResponse: MessageFns<QueryMarketsResponse>;
|
|
28
|
+
export declare const QueryMarketRequest: MessageFns<QueryMarketRequest>;
|
|
29
|
+
export declare const QueryMarketResponse: MessageFns<QueryMarketResponse>;
|
|
30
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
31
|
+
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 {} ? {
|
|
32
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
|
+
} : Partial<T>;
|
|
34
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
35
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
36
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
37
|
+
} & {
|
|
38
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
39
|
+
};
|
|
40
|
+
export interface MessageFns<T> {
|
|
41
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
42
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
43
|
+
fromJSON(object: any): T;
|
|
44
|
+
toJSON(message: T): unknown;
|
|
45
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
46
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
47
|
+
}
|
|
48
|
+
export {};
|