@iconlake/client 1.3.1 → 1.5.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 (51) hide show
  1. package/dist/index.iife.js +4 -4
  2. package/dist/index.js +4 -4
  3. package/dist/index.mjs +35119 -30974
  4. package/dist/index.umd.js +4 -4
  5. package/package.json +2 -2
  6. package/types/amino.d.ts +90 -0
  7. package/types/client.d.ts +1 -0
  8. package/types/cosmos.authz.v1beta1/module.d.ts +15 -15
  9. package/types/cosmos.bank.v1beta1/module.d.ts +10 -10
  10. package/types/cosmos.distribution.v1beta1/module.d.ts +25 -25
  11. package/types/cosmos.feegrant.v1beta1/module.d.ts +10 -10
  12. package/types/cosmos.gov.v1/module.d.ts +21 -21
  13. package/types/cosmos.group.v1/module.d.ts +70 -70
  14. package/types/cosmos.staking.v1beta1/module.d.ts +29 -29
  15. package/types/cosmos.upgrade.v1beta1/module.d.ts +10 -10
  16. package/types/cosmos.vesting.v1beta1/module.d.ts +15 -15
  17. package/types/iconlake.drop/module.d.ts +11 -11
  18. package/types/iconlake.icon/module.d.ts +18 -18
  19. package/types/iconlake.icon/types/iconlake/icon/tx.d.ts +3 -3
  20. package/types/iconlake.lake/index.d.ts +5 -0
  21. package/types/iconlake.lake/module.d.ts +55 -0
  22. package/types/iconlake.lake/registry.d.ts +3 -0
  23. package/types/iconlake.lake/rest.d.ts +183 -0
  24. package/types/iconlake.lake/types/cosmos/base/query/v1beta1/pagination.d.ts +108 -0
  25. package/types/iconlake.lake/types/gogoproto/gogo.d.ts +1 -0
  26. package/types/iconlake.lake/types/google/api/annotations.d.ts +1 -0
  27. package/types/iconlake.lake/types/google/api/http.d.ts +1634 -0
  28. package/types/iconlake.lake/types/google/protobuf/descriptor.d.ts +50957 -0
  29. package/types/iconlake.lake/types/iconlake/lake/allowed_sender.d.ts +27 -0
  30. package/types/iconlake.lake/types/iconlake/lake/genesis.d.ts +43 -0
  31. package/types/iconlake.lake/types/iconlake/lake/params.d.ts +23 -0
  32. package/types/iconlake.lake/types/iconlake/lake/query.d.ts +162 -0
  33. package/types/iconlake.lake/types/iconlake/lake/tx.d.ts +103 -0
  34. package/types/iconlake.lake/types.d.ts +3 -0
  35. package/types/iconlake.license/index.d.ts +5 -0
  36. package/types/iconlake.license/module.d.ts +77 -0
  37. package/types/iconlake.license/registry.d.ts +3 -0
  38. package/types/iconlake.license/rest.d.ts +305 -0
  39. package/types/iconlake.license/types/cosmos/base/query/v1beta1/pagination.d.ts +108 -0
  40. package/types/iconlake.license/types/gogoproto/gogo.d.ts +1 -0
  41. package/types/iconlake.license/types/google/api/annotations.d.ts +1 -0
  42. package/types/iconlake.license/types/google/api/http.d.ts +1634 -0
  43. package/types/iconlake.license/types/google/protobuf/descriptor.d.ts +50957 -0
  44. package/types/iconlake.license/types/iconlake/license/genesis.d.ts +132 -0
  45. package/types/iconlake.license/types/iconlake/license/license_template.d.ts +48 -0
  46. package/types/iconlake.license/types/iconlake/license/params.d.ts +31 -0
  47. package/types/iconlake.license/types/iconlake/license/query.d.ts +581 -0
  48. package/types/iconlake.license/types/iconlake/license/tx.d.ts +246 -0
  49. package/types/iconlake.license/types/iconlake/license/user_license.d.ts +42 -0
  50. package/types/iconlake.license/types.d.ts +4 -0
  51. package/types/index.d.ts +215 -149
@@ -0,0 +1,305 @@
1
+ export interface LicenseLicenseTemplate {
2
+ /** @format uint64 */
3
+ id?: string;
4
+ name?: string;
5
+ description?: string;
6
+ licenseType?: string;
7
+ targetId?: string;
8
+ price?: string;
9
+ /** @format int64 */
10
+ duration?: string;
11
+ creator?: string;
12
+ }
13
+ export type LicenseMsgBuyLicenseResponse = object;
14
+ export interface LicenseMsgCreateLicenseTemplateResponse {
15
+ /** @format uint64 */
16
+ id?: string;
17
+ }
18
+ export type LicenseMsgDeleteLicenseTemplateResponse = object;
19
+ export type LicenseMsgUpdateLicenseTemplateResponse = object;
20
+ /**
21
+ * Params defines the parameters for the module.
22
+ */
23
+ export interface LicenseParams {
24
+ platform_fee_percent?: string;
25
+ platform_fee_address?: string;
26
+ }
27
+ export interface LicenseQueryAllLicenseTemplateResponse {
28
+ LicenseTemplate?: LicenseLicenseTemplate[];
29
+ /**
30
+ * PageResponse is to be embedded in gRPC response messages where the
31
+ * corresponding request message has used PageRequest.
32
+ *
33
+ * message SomeResponse {
34
+ * repeated Bar results = 1;
35
+ * PageResponse page = 2;
36
+ * }
37
+ */
38
+ pagination?: V1Beta1PageResponse;
39
+ }
40
+ export interface LicenseQueryAllUserLicenseResponse {
41
+ UserLicense?: LicenseUserLicense[];
42
+ /**
43
+ * PageResponse is to be embedded in gRPC response messages where the
44
+ * corresponding request message has used PageRequest.
45
+ *
46
+ * message SomeResponse {
47
+ * repeated Bar results = 1;
48
+ * PageResponse page = 2;
49
+ * }
50
+ */
51
+ pagination?: V1Beta1PageResponse;
52
+ }
53
+ export interface LicenseQueryGetLicenseTemplateResponse {
54
+ LicenseTemplate?: LicenseLicenseTemplate;
55
+ }
56
+ export interface LicenseQueryGetUserLicenseResponse {
57
+ UserLicense?: LicenseUserLicense;
58
+ }
59
+ export interface LicenseQueryLicenseTemplateByCreatorResponse {
60
+ licenseTemplate?: LicenseLicenseTemplate[];
61
+ /**
62
+ * PageResponse is to be embedded in gRPC response messages where the
63
+ * corresponding request message has used PageRequest.
64
+ *
65
+ * message SomeResponse {
66
+ * repeated Bar results = 1;
67
+ * PageResponse page = 2;
68
+ * }
69
+ */
70
+ pagination?: V1Beta1PageResponse;
71
+ }
72
+ /**
73
+ * QueryParamsResponse is response type for the Query/Params RPC method.
74
+ */
75
+ export interface LicenseQueryParamsResponse {
76
+ /** params holds all the parameters of this module. */
77
+ params?: LicenseParams;
78
+ }
79
+ export interface LicenseQueryUserLicenseByOwnerResponse {
80
+ userLicense?: LicenseUserLicense[];
81
+ /**
82
+ * PageResponse is to be embedded in gRPC response messages where the
83
+ * corresponding request message has used PageRequest.
84
+ *
85
+ * message SomeResponse {
86
+ * repeated Bar results = 1;
87
+ * PageResponse page = 2;
88
+ * }
89
+ */
90
+ pagination?: V1Beta1PageResponse;
91
+ }
92
+ export interface LicenseUserLicense {
93
+ /** @format uint64 */
94
+ id?: string;
95
+ /** @format uint64 */
96
+ templateId?: string;
97
+ owner?: string;
98
+ targetId?: string;
99
+ /** @format int64 */
100
+ startTime?: string;
101
+ /** @format int64 */
102
+ expirationTime?: string;
103
+ }
104
+ export interface ProtobufAny {
105
+ "@type"?: string;
106
+ }
107
+ export interface RpcStatus {
108
+ /** @format int32 */
109
+ code?: number;
110
+ message?: string;
111
+ details?: ProtobufAny[];
112
+ }
113
+ /**
114
+ * message SomeRequest {
115
+ Foo some_parameter = 1;
116
+ PageRequest pagination = 2;
117
+ }
118
+ */
119
+ export interface V1Beta1PageRequest {
120
+ /**
121
+ * key is a value returned in PageResponse.next_key to begin
122
+ * querying the next page most efficiently. Only one of offset or key
123
+ * should be set.
124
+ * @format byte
125
+ */
126
+ key?: string;
127
+ /**
128
+ * offset is a numeric offset that can be used when key is unavailable.
129
+ * It is less efficient than using key. Only one of offset or key should
130
+ * be set.
131
+ * @format uint64
132
+ */
133
+ offset?: string;
134
+ /**
135
+ * limit is the total number of results to be returned in the result page.
136
+ * If left empty it will default to a value to be set by each app.
137
+ * @format uint64
138
+ */
139
+ limit?: string;
140
+ /**
141
+ * count_total is set to true to indicate that the result set should include
142
+ * a count of the total number of items available for pagination in UIs.
143
+ * count_total is only respected when offset is used. It is ignored when key
144
+ * is set.
145
+ */
146
+ count_total?: boolean;
147
+ /**
148
+ * reverse is set to true if results are to be returned in the descending order.
149
+ *
150
+ * Since: cosmos-sdk 0.43
151
+ */
152
+ reverse?: boolean;
153
+ }
154
+ /**
155
+ * PageResponse is to be embedded in gRPC response messages where the
156
+ corresponding request message has used PageRequest.
157
+
158
+ message SomeResponse {
159
+ repeated Bar results = 1;
160
+ PageResponse page = 2;
161
+ }
162
+ */
163
+ export interface V1Beta1PageResponse {
164
+ /**
165
+ * next_key is the key to be passed to PageRequest.key to
166
+ * query the next page most efficiently. It will be empty if
167
+ * there are no more results.
168
+ * @format byte
169
+ */
170
+ next_key?: string;
171
+ /**
172
+ * total is total number of results available if PageRequest.count_total
173
+ * was set, its value is undefined otherwise
174
+ * @format uint64
175
+ */
176
+ total?: string;
177
+ }
178
+ import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
179
+ export type QueryParamsType = Record<string | number, any>;
180
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
181
+ /** set parameter to `true` for call `securityWorker` for this request */
182
+ secure?: boolean;
183
+ /** request path */
184
+ path: string;
185
+ /** content type of request body */
186
+ type?: ContentType;
187
+ /** query params */
188
+ query?: QueryParamsType;
189
+ /** format of response (i.e. response.json() -> format: "json") */
190
+ format?: ResponseType;
191
+ /** request body */
192
+ body?: unknown;
193
+ }
194
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
195
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
196
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
197
+ secure?: boolean;
198
+ format?: ResponseType;
199
+ }
200
+ export declare enum ContentType {
201
+ Json = "application/json",
202
+ FormData = "multipart/form-data",
203
+ UrlEncoded = "application/x-www-form-urlencoded"
204
+ }
205
+ export declare class HttpClient<SecurityDataType = unknown> {
206
+ instance: AxiosInstance;
207
+ private securityData;
208
+ private securityWorker?;
209
+ private secure?;
210
+ private format?;
211
+ constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
212
+ setSecurityData: (data: SecurityDataType | null) => void;
213
+ private mergeRequestParams;
214
+ private createFormData;
215
+ request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
216
+ }
217
+ /**
218
+ * @title iconlake/license/genesis.proto
219
+ * @version version not set
220
+ */
221
+ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
222
+ /**
223
+ * No description
224
+ *
225
+ * @tags Query
226
+ * @name QueryLicenseTemplateAll
227
+ * @request GET:/iconlake/license/license_template
228
+ */
229
+ queryLicenseTemplateAll: (query?: {
230
+ "pagination.key"?: string;
231
+ "pagination.offset"?: string;
232
+ "pagination.limit"?: string;
233
+ "pagination.count_total"?: boolean;
234
+ "pagination.reverse"?: boolean;
235
+ }, params?: RequestParams) => Promise<AxiosResponse<LicenseQueryAllLicenseTemplateResponse>>;
236
+ /**
237
+ * No description
238
+ *
239
+ * @tags Query
240
+ * @name QueryLicenseTemplateByCreator
241
+ * @request GET:/iconlake/license/license_template/creator/{creator}
242
+ */
243
+ queryLicenseTemplateByCreator: (creator: string, query?: {
244
+ "pagination.key"?: string;
245
+ "pagination.offset"?: string;
246
+ "pagination.limit"?: string;
247
+ "pagination.count_total"?: boolean;
248
+ "pagination.reverse"?: boolean;
249
+ }, params?: RequestParams) => Promise<AxiosResponse<LicenseQueryLicenseTemplateByCreatorResponse>>;
250
+ /**
251
+ * No description
252
+ *
253
+ * @tags Query
254
+ * @name QueryLicenseTemplate
255
+ * @summary Queries a list of LicenseTemplate items.
256
+ * @request GET:/iconlake/license/license_template/{id}
257
+ */
258
+ queryLicenseTemplate: (id: string, params?: RequestParams) => Promise<AxiosResponse<LicenseQueryGetLicenseTemplateResponse>>;
259
+ /**
260
+ * No description
261
+ *
262
+ * @tags Query
263
+ * @name QueryParams
264
+ * @summary Parameters queries the parameters of the module.
265
+ * @request GET:/iconlake/license/params
266
+ */
267
+ queryParams: (params?: RequestParams) => Promise<AxiosResponse<LicenseQueryParamsResponse>>;
268
+ /**
269
+ * No description
270
+ *
271
+ * @tags Query
272
+ * @name QueryUserLicenseAll
273
+ * @request GET:/iconlake/license/user_license
274
+ */
275
+ queryUserLicenseAll: (query?: {
276
+ "pagination.key"?: string;
277
+ "pagination.offset"?: string;
278
+ "pagination.limit"?: string;
279
+ "pagination.count_total"?: boolean;
280
+ "pagination.reverse"?: boolean;
281
+ }, params?: RequestParams) => Promise<AxiosResponse<LicenseQueryAllUserLicenseResponse>>;
282
+ /**
283
+ * No description
284
+ *
285
+ * @tags Query
286
+ * @name QueryUserLicenseByOwner
287
+ * @request GET:/iconlake/license/user_license/owner/{owner}
288
+ */
289
+ queryUserLicenseByOwner: (owner: string, query?: {
290
+ "pagination.key"?: string;
291
+ "pagination.offset"?: string;
292
+ "pagination.limit"?: string;
293
+ "pagination.count_total"?: boolean;
294
+ "pagination.reverse"?: boolean;
295
+ }, params?: RequestParams) => Promise<AxiosResponse<LicenseQueryUserLicenseByOwnerResponse>>;
296
+ /**
297
+ * No description
298
+ *
299
+ * @tags Query
300
+ * @name QueryUserLicense
301
+ * @summary Queries a list of UserLicense items.
302
+ * @request GET:/iconlake/license/user_license/{id}
303
+ */
304
+ queryUserLicense: (id: string, params?: RequestParams) => Promise<AxiosResponse<LicenseQueryGetUserLicenseResponse>>;
305
+ }
@@ -0,0 +1,108 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "cosmos.base.query.v1beta1";
3
+ /**
4
+ * PageRequest is to be embedded in gRPC request messages for efficient
5
+ * pagination. Ex:
6
+ *
7
+ * message SomeRequest {
8
+ * Foo some_parameter = 1;
9
+ * PageRequest pagination = 2;
10
+ * }
11
+ */
12
+ export interface PageRequest {
13
+ /**
14
+ * key is a value returned in PageResponse.next_key to begin
15
+ * querying the next page most efficiently. Only one of offset or key
16
+ * should be set.
17
+ */
18
+ key: Uint8Array;
19
+ /**
20
+ * offset is a numeric offset that can be used when key is unavailable.
21
+ * It is less efficient than using key. Only one of offset or key should
22
+ * be set.
23
+ */
24
+ offset: number;
25
+ /**
26
+ * limit is the total number of results to be returned in the result page.
27
+ * If left empty it will default to a value to be set by each app.
28
+ */
29
+ limit: number;
30
+ /**
31
+ * count_total is set to true to indicate that the result set should include
32
+ * a count of the total number of items available for pagination in UIs.
33
+ * count_total is only respected when offset is used. It is ignored when key
34
+ * is set.
35
+ */
36
+ countTotal: boolean;
37
+ /**
38
+ * reverse is set to true if results are to be returned in the descending order.
39
+ *
40
+ * Since: cosmos-sdk 0.43
41
+ */
42
+ reverse: boolean;
43
+ }
44
+ /**
45
+ * PageResponse is to be embedded in gRPC response messages where the
46
+ * corresponding request message has used PageRequest.
47
+ *
48
+ * message SomeResponse {
49
+ * repeated Bar results = 1;
50
+ * PageResponse page = 2;
51
+ * }
52
+ */
53
+ export interface PageResponse {
54
+ /**
55
+ * next_key is the key to be passed to PageRequest.key to
56
+ * query the next page most efficiently. It will be empty if
57
+ * there are no more results.
58
+ */
59
+ nextKey: Uint8Array;
60
+ /**
61
+ * total is total number of results available if PageRequest.count_total
62
+ * was set, its value is undefined otherwise
63
+ */
64
+ total: number;
65
+ }
66
+ export declare const PageRequest: {
67
+ encode(message: PageRequest, writer?: _m0.Writer): _m0.Writer;
68
+ decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
69
+ fromJSON(object: any): PageRequest;
70
+ toJSON(message: PageRequest): unknown;
71
+ fromPartial<I extends {
72
+ key?: Uint8Array;
73
+ offset?: number;
74
+ limit?: number;
75
+ countTotal?: boolean;
76
+ reverse?: boolean;
77
+ } & {
78
+ key?: Uint8Array;
79
+ offset?: number;
80
+ limit?: number;
81
+ countTotal?: boolean;
82
+ reverse?: boolean;
83
+ } & { [K in Exclude<keyof I, keyof PageRequest>]: never; }>(object: I): PageRequest;
84
+ };
85
+ export declare const PageResponse: {
86
+ encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
87
+ decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
88
+ fromJSON(object: any): PageResponse;
89
+ toJSON(message: PageResponse): unknown;
90
+ fromPartial<I extends {
91
+ nextKey?: Uint8Array;
92
+ total?: number;
93
+ } & {
94
+ nextKey?: Uint8Array;
95
+ total?: number;
96
+ } & { [K in Exclude<keyof I, keyof PageResponse>]: never; }>(object: I): PageResponse;
97
+ };
98
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
99
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
100
+ [K in keyof T]?: DeepPartial<T[K]>;
101
+ } : Partial<T>;
102
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
103
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
104
+ [K in keyof P]: Exact<P[K], I[K]>;
105
+ } & {
106
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
107
+ };
108
+ export {};
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "gogoproto";
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "google.api";