@iconlake/client 1.2.0 → 1.3.1
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/dist/index.iife.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +9852 -9398
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
- package/types/amino.d.ts +10 -0
- package/types/iconlake.icon/module.d.ts +23 -1
- package/types/iconlake.icon/rest.d.ts +56 -0
- package/types/iconlake.icon/types/iconlake/icon/creator.d.ts +120 -0
- package/types/iconlake.icon/types/iconlake/icon/genesis.d.ts +79 -1
- package/types/iconlake.icon/types/iconlake/icon/media.d.ts +30 -0
- package/types/iconlake.icon/types/iconlake/icon/query.d.ts +215 -1
- package/types/iconlake.icon/types/iconlake/icon/tx.d.ts +100 -0
- package/types/iconlake.icon/types.d.ts +4 -1
- package/types/index.d.ts +16 -0
package/package.json
CHANGED
package/types/amino.d.ts
CHANGED
|
@@ -29,4 +29,14 @@ export declare function createIconlakeAminoConverters(): {
|
|
|
29
29
|
fromAmino(object: any): import("./iconlake.icon/types/iconlake/icon/tx").MsgUpdateClass;
|
|
30
30
|
toAmino(message: import("./iconlake.icon/types/iconlake/icon/tx").MsgUpdateClass): unknown;
|
|
31
31
|
};
|
|
32
|
+
'/iconlake.icon.MsgUpdateCreator': {
|
|
33
|
+
aminoType: string;
|
|
34
|
+
fromAmino(object: any): import("./iconlake.icon/types/iconlake/icon/tx").MsgUpdateCreator;
|
|
35
|
+
toAmino(message: import("./iconlake.icon/types/iconlake/icon/tx").MsgUpdateCreator): unknown;
|
|
36
|
+
};
|
|
37
|
+
'/iconlake.icon.MsgDeleteCreator': {
|
|
38
|
+
aminoType: string;
|
|
39
|
+
fromAmino(object: any): import("./iconlake.icon/types/iconlake/icon/tx").MsgDeleteCreator;
|
|
40
|
+
toAmino(message: import("./iconlake.icon/types/iconlake/icon/tx").MsgDeleteCreator): unknown;
|
|
41
|
+
};
|
|
32
42
|
};
|
|
@@ -4,14 +4,26 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr
|
|
|
4
4
|
import { IgniteClient } from "../client";
|
|
5
5
|
import { Api } from "./rest";
|
|
6
6
|
import { MsgUpdateClass } from "./types/iconlake/icon/tx";
|
|
7
|
+
import { MsgUpdateCreator } from "./types/iconlake/icon/tx";
|
|
8
|
+
import { MsgDeleteCreator } from "./types/iconlake/icon/tx";
|
|
7
9
|
import { MsgBurn } from "./types/iconlake/icon/tx";
|
|
8
10
|
import { MsgMint } from "./types/iconlake/icon/tx";
|
|
9
|
-
export { MsgUpdateClass, MsgBurn, MsgMint };
|
|
11
|
+
export { MsgUpdateClass, MsgUpdateCreator, MsgDeleteCreator, MsgBurn, MsgMint };
|
|
10
12
|
type sendMsgUpdateClassParams = {
|
|
11
13
|
value: MsgUpdateClass;
|
|
12
14
|
fee?: StdFee;
|
|
13
15
|
memo?: string;
|
|
14
16
|
};
|
|
17
|
+
type sendMsgUpdateCreatorParams = {
|
|
18
|
+
value: MsgUpdateCreator;
|
|
19
|
+
fee?: StdFee;
|
|
20
|
+
memo?: string;
|
|
21
|
+
};
|
|
22
|
+
type sendMsgDeleteCreatorParams = {
|
|
23
|
+
value: MsgDeleteCreator;
|
|
24
|
+
fee?: StdFee;
|
|
25
|
+
memo?: string;
|
|
26
|
+
};
|
|
15
27
|
type sendMsgBurnParams = {
|
|
16
28
|
value: MsgBurn;
|
|
17
29
|
fee?: StdFee;
|
|
@@ -25,6 +37,12 @@ type sendMsgMintParams = {
|
|
|
25
37
|
type msgUpdateClassParams = {
|
|
26
38
|
value: MsgUpdateClass;
|
|
27
39
|
};
|
|
40
|
+
type msgUpdateCreatorParams = {
|
|
41
|
+
value: MsgUpdateCreator;
|
|
42
|
+
};
|
|
43
|
+
type msgDeleteCreatorParams = {
|
|
44
|
+
value: MsgDeleteCreator;
|
|
45
|
+
};
|
|
28
46
|
type msgBurnParams = {
|
|
29
47
|
value: MsgBurn;
|
|
30
48
|
};
|
|
@@ -39,9 +57,13 @@ interface TxClientOptions {
|
|
|
39
57
|
}
|
|
40
58
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
41
59
|
sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
|
|
60
|
+
sendMsgUpdateCreator({ value, fee, memo }: sendMsgUpdateCreatorParams): Promise<DeliverTxResponse>;
|
|
61
|
+
sendMsgDeleteCreator({ value, fee, memo }: sendMsgDeleteCreatorParams): Promise<DeliverTxResponse>;
|
|
42
62
|
sendMsgBurn({ value, fee, memo }: sendMsgBurnParams): Promise<DeliverTxResponse>;
|
|
43
63
|
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
44
64
|
msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
|
|
65
|
+
msgUpdateCreator({ value }: msgUpdateCreatorParams): EncodeObject;
|
|
66
|
+
msgDeleteCreator({ value }: msgDeleteCreatorParams): EncodeObject;
|
|
45
67
|
msgBurn({ value }: msgBurnParams): EncodeObject;
|
|
46
68
|
msgMint({ value }: msgMintParams): EncodeObject;
|
|
47
69
|
};
|
|
@@ -3,6 +3,17 @@ export interface IconClassData {
|
|
|
3
3
|
/** @format int64 */
|
|
4
4
|
create_time?: string;
|
|
5
5
|
}
|
|
6
|
+
export interface IconCreator {
|
|
7
|
+
address?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
avatarHash?: string;
|
|
12
|
+
medias?: IconMedia[];
|
|
13
|
+
sex?: string;
|
|
14
|
+
birthday?: string;
|
|
15
|
+
location?: string;
|
|
16
|
+
}
|
|
6
17
|
export interface IconIconData {
|
|
7
18
|
author?: string;
|
|
8
19
|
name?: string;
|
|
@@ -10,13 +21,35 @@ export interface IconIconData {
|
|
|
10
21
|
/** @format int64 */
|
|
11
22
|
create_time?: string;
|
|
12
23
|
}
|
|
24
|
+
export interface IconMedia {
|
|
25
|
+
name?: string;
|
|
26
|
+
content?: string;
|
|
27
|
+
}
|
|
13
28
|
export type IconMsgBurnResponse = object;
|
|
29
|
+
export type IconMsgDeleteCreatorResponse = object;
|
|
14
30
|
export type IconMsgMintResponse = object;
|
|
15
31
|
export type IconMsgUpdateClassResponse = object;
|
|
32
|
+
export type IconMsgUpdateCreatorResponse = object;
|
|
16
33
|
/**
|
|
17
34
|
* Params defines the parameters for the module.
|
|
18
35
|
*/
|
|
19
36
|
export type IconParams = object;
|
|
37
|
+
export interface IconQueryCreatorsResponse {
|
|
38
|
+
creators?: IconCreator[];
|
|
39
|
+
/**
|
|
40
|
+
* PageResponse is to be embedded in gRPC response messages where the
|
|
41
|
+
* corresponding request message has used PageRequest.
|
|
42
|
+
*
|
|
43
|
+
* message SomeResponse {
|
|
44
|
+
* repeated Bar results = 1;
|
|
45
|
+
* PageResponse page = 2;
|
|
46
|
+
* }
|
|
47
|
+
*/
|
|
48
|
+
pagination?: V1Beta1PageResponse;
|
|
49
|
+
}
|
|
50
|
+
export interface IconQueryGetCreatorResponse {
|
|
51
|
+
creator?: IconCreator;
|
|
52
|
+
}
|
|
20
53
|
/**
|
|
21
54
|
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
22
55
|
*/
|
|
@@ -326,6 +359,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
326
359
|
"pagination.count_total"?: boolean;
|
|
327
360
|
"pagination.reverse"?: boolean;
|
|
328
361
|
}, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryClassesResponse>>;
|
|
362
|
+
/**
|
|
363
|
+
* No description
|
|
364
|
+
*
|
|
365
|
+
* @tags Query
|
|
366
|
+
* @name QueryCreator
|
|
367
|
+
* @summary Queries a list of Creator items.
|
|
368
|
+
* @request GET:/iconlake/icon/creator/{address}
|
|
369
|
+
*/
|
|
370
|
+
queryCreator: (address: string, params?: RequestParams) => Promise<AxiosResponse<IconQueryGetCreatorResponse>>;
|
|
371
|
+
/**
|
|
372
|
+
* No description
|
|
373
|
+
*
|
|
374
|
+
* @tags Query
|
|
375
|
+
* @name QueryCreators
|
|
376
|
+
* @request GET:/iconlake/icon/creators
|
|
377
|
+
*/
|
|
378
|
+
queryCreators: (query?: {
|
|
379
|
+
"pagination.key"?: string;
|
|
380
|
+
"pagination.offset"?: string;
|
|
381
|
+
"pagination.limit"?: string;
|
|
382
|
+
"pagination.count_total"?: boolean;
|
|
383
|
+
"pagination.reverse"?: boolean;
|
|
384
|
+
}, params?: RequestParams) => Promise<AxiosResponse<IconQueryCreatorsResponse>>;
|
|
329
385
|
/**
|
|
330
386
|
* No description
|
|
331
387
|
*
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Media } from "./media";
|
|
3
|
+
export declare const protobufPackage = "iconlake.icon";
|
|
4
|
+
export interface CreatorRaw {
|
|
5
|
+
address: Uint8Array;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
avatar: string;
|
|
9
|
+
avatarHash: string;
|
|
10
|
+
medias: Media[];
|
|
11
|
+
sex: string;
|
|
12
|
+
birthday: string;
|
|
13
|
+
location: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Creator {
|
|
16
|
+
address: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
avatar: string;
|
|
20
|
+
avatarHash: string;
|
|
21
|
+
medias: Media[];
|
|
22
|
+
sex: string;
|
|
23
|
+
birthday: string;
|
|
24
|
+
location: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const CreatorRaw: {
|
|
27
|
+
encode(message: CreatorRaw, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CreatorRaw;
|
|
29
|
+
fromJSON(object: any): CreatorRaw;
|
|
30
|
+
toJSON(message: CreatorRaw): unknown;
|
|
31
|
+
fromPartial<I extends {
|
|
32
|
+
address?: Uint8Array;
|
|
33
|
+
name?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
avatar?: string;
|
|
36
|
+
avatarHash?: string;
|
|
37
|
+
medias?: {
|
|
38
|
+
name?: string;
|
|
39
|
+
content?: string;
|
|
40
|
+
}[];
|
|
41
|
+
sex?: string;
|
|
42
|
+
birthday?: string;
|
|
43
|
+
location?: string;
|
|
44
|
+
} & {
|
|
45
|
+
address?: Uint8Array;
|
|
46
|
+
name?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
avatar?: string;
|
|
49
|
+
avatarHash?: string;
|
|
50
|
+
medias?: {
|
|
51
|
+
name?: string;
|
|
52
|
+
content?: string;
|
|
53
|
+
}[] & ({
|
|
54
|
+
name?: string;
|
|
55
|
+
content?: string;
|
|
56
|
+
} & {
|
|
57
|
+
name?: string;
|
|
58
|
+
content?: string;
|
|
59
|
+
} & { [K in Exclude<keyof I["medias"][number], keyof Media>]: never; })[] & { [K_1 in Exclude<keyof I["medias"], keyof {
|
|
60
|
+
name?: string;
|
|
61
|
+
content?: string;
|
|
62
|
+
}[]>]: never; };
|
|
63
|
+
sex?: string;
|
|
64
|
+
birthday?: string;
|
|
65
|
+
location?: string;
|
|
66
|
+
} & { [K_2 in Exclude<keyof I, keyof CreatorRaw>]: never; }>(object: I): CreatorRaw;
|
|
67
|
+
};
|
|
68
|
+
export declare const Creator: {
|
|
69
|
+
encode(message: Creator, writer?: _m0.Writer): _m0.Writer;
|
|
70
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Creator;
|
|
71
|
+
fromJSON(object: any): Creator;
|
|
72
|
+
toJSON(message: Creator): unknown;
|
|
73
|
+
fromPartial<I extends {
|
|
74
|
+
address?: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
description?: string;
|
|
77
|
+
avatar?: string;
|
|
78
|
+
avatarHash?: string;
|
|
79
|
+
medias?: {
|
|
80
|
+
name?: string;
|
|
81
|
+
content?: string;
|
|
82
|
+
}[];
|
|
83
|
+
sex?: string;
|
|
84
|
+
birthday?: string;
|
|
85
|
+
location?: string;
|
|
86
|
+
} & {
|
|
87
|
+
address?: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
description?: string;
|
|
90
|
+
avatar?: string;
|
|
91
|
+
avatarHash?: string;
|
|
92
|
+
medias?: {
|
|
93
|
+
name?: string;
|
|
94
|
+
content?: string;
|
|
95
|
+
}[] & ({
|
|
96
|
+
name?: string;
|
|
97
|
+
content?: string;
|
|
98
|
+
} & {
|
|
99
|
+
name?: string;
|
|
100
|
+
content?: string;
|
|
101
|
+
} & { [K in Exclude<keyof I["medias"][number], keyof Media>]: never; })[] & { [K_1 in Exclude<keyof I["medias"], keyof {
|
|
102
|
+
name?: string;
|
|
103
|
+
content?: string;
|
|
104
|
+
}[]>]: never; };
|
|
105
|
+
sex?: string;
|
|
106
|
+
birthday?: string;
|
|
107
|
+
location?: string;
|
|
108
|
+
} & { [K_2 in Exclude<keyof I, keyof Creator>]: never; }>(object: I): Creator;
|
|
109
|
+
};
|
|
110
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
111
|
+
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 {} ? {
|
|
112
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
113
|
+
} : Partial<T>;
|
|
114
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
115
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
116
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
117
|
+
} & {
|
|
118
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
119
|
+
};
|
|
120
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Creator } from "./creator";
|
|
2
3
|
import { Params } from "./params";
|
|
3
4
|
export declare const protobufPackage = "iconlake.icon";
|
|
4
5
|
/** GenesisState defines the icon module's genesis state. */
|
|
5
6
|
export interface GenesisState {
|
|
6
7
|
params: Params | undefined;
|
|
8
|
+
creatorList: Creator[];
|
|
7
9
|
}
|
|
8
10
|
export declare const GenesisState: {
|
|
9
11
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -12,9 +14,85 @@ export declare const GenesisState: {
|
|
|
12
14
|
toJSON(message: GenesisState): unknown;
|
|
13
15
|
fromPartial<I extends {
|
|
14
16
|
params?: {};
|
|
17
|
+
creatorList?: {
|
|
18
|
+
address?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
avatar?: string;
|
|
22
|
+
avatarHash?: string;
|
|
23
|
+
medias?: {
|
|
24
|
+
name?: string;
|
|
25
|
+
content?: string;
|
|
26
|
+
}[];
|
|
27
|
+
sex?: string;
|
|
28
|
+
birthday?: string;
|
|
29
|
+
location?: string;
|
|
30
|
+
}[];
|
|
15
31
|
} & {
|
|
16
32
|
params?: {} & {} & { [K in Exclude<keyof I["params"], never>]: never; };
|
|
17
|
-
|
|
33
|
+
creatorList?: {
|
|
34
|
+
address?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
avatar?: string;
|
|
38
|
+
avatarHash?: string;
|
|
39
|
+
medias?: {
|
|
40
|
+
name?: string;
|
|
41
|
+
content?: string;
|
|
42
|
+
}[];
|
|
43
|
+
sex?: string;
|
|
44
|
+
birthday?: string;
|
|
45
|
+
location?: string;
|
|
46
|
+
}[] & ({
|
|
47
|
+
address?: string;
|
|
48
|
+
name?: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
avatar?: string;
|
|
51
|
+
avatarHash?: string;
|
|
52
|
+
medias?: {
|
|
53
|
+
name?: string;
|
|
54
|
+
content?: string;
|
|
55
|
+
}[];
|
|
56
|
+
sex?: string;
|
|
57
|
+
birthday?: string;
|
|
58
|
+
location?: string;
|
|
59
|
+
} & {
|
|
60
|
+
address?: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
avatar?: string;
|
|
64
|
+
avatarHash?: string;
|
|
65
|
+
medias?: {
|
|
66
|
+
name?: string;
|
|
67
|
+
content?: string;
|
|
68
|
+
}[] & ({
|
|
69
|
+
name?: string;
|
|
70
|
+
content?: string;
|
|
71
|
+
} & {
|
|
72
|
+
name?: string;
|
|
73
|
+
content?: string;
|
|
74
|
+
} & { [K_1 in Exclude<keyof I["creatorList"][number]["medias"][number], keyof import("./media").Media>]: never; })[] & { [K_2 in Exclude<keyof I["creatorList"][number]["medias"], keyof {
|
|
75
|
+
name?: string;
|
|
76
|
+
content?: string;
|
|
77
|
+
}[]>]: never; };
|
|
78
|
+
sex?: string;
|
|
79
|
+
birthday?: string;
|
|
80
|
+
location?: string;
|
|
81
|
+
} & { [K_3 in Exclude<keyof I["creatorList"][number], keyof Creator>]: never; })[] & { [K_4 in Exclude<keyof I["creatorList"], keyof {
|
|
82
|
+
address?: string;
|
|
83
|
+
name?: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
avatar?: string;
|
|
86
|
+
avatarHash?: string;
|
|
87
|
+
medias?: {
|
|
88
|
+
name?: string;
|
|
89
|
+
content?: string;
|
|
90
|
+
}[];
|
|
91
|
+
sex?: string;
|
|
92
|
+
birthday?: string;
|
|
93
|
+
location?: string;
|
|
94
|
+
}[]>]: never; };
|
|
95
|
+
} & { [K_5 in Exclude<keyof I, keyof GenesisState>]: never; }>(object: I): GenesisState;
|
|
18
96
|
};
|
|
19
97
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
20
98
|
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 {} ? {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "iconlake.icon";
|
|
3
|
+
export interface Media {
|
|
4
|
+
name: string;
|
|
5
|
+
content: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Media: {
|
|
8
|
+
encode(message: Media, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Media;
|
|
10
|
+
fromJSON(object: any): Media;
|
|
11
|
+
toJSON(message: Media): unknown;
|
|
12
|
+
fromPartial<I extends {
|
|
13
|
+
name?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
} & {
|
|
16
|
+
name?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
} & { [K in Exclude<keyof I, keyof Media>]: never; }>(object: I): Media;
|
|
19
|
+
};
|
|
20
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
21
|
+
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 {} ? {
|
|
22
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
23
|
+
} : Partial<T>;
|
|
24
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
25
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
26
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
27
|
+
} & {
|
|
28
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { PageResponse } from "../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination";
|
|
3
3
|
import { QueryClassesRequest, QueryNFTsRequest } from "../../cosmos/nft/v1beta1/query";
|
|
4
4
|
import { ClassData } from "./class_data";
|
|
5
|
+
import { Creator } from "./creator";
|
|
5
6
|
import { IconData } from "./icon_data";
|
|
6
7
|
import { Params } from "./params";
|
|
7
8
|
export declare const protobufPackage = "iconlake.icon";
|
|
@@ -50,6 +51,19 @@ export interface QueryClassesResponse {
|
|
|
50
51
|
classes: Class[];
|
|
51
52
|
pagination: PageResponse | undefined;
|
|
52
53
|
}
|
|
54
|
+
export interface QueryGetCreatorRequest {
|
|
55
|
+
address: string;
|
|
56
|
+
}
|
|
57
|
+
export interface QueryGetCreatorResponse {
|
|
58
|
+
creator: Creator | undefined;
|
|
59
|
+
}
|
|
60
|
+
export interface QueryCreatorsRequest {
|
|
61
|
+
pagination: PageRequest | undefined;
|
|
62
|
+
}
|
|
63
|
+
export interface QueryCreatorsResponse {
|
|
64
|
+
creators: Creator[];
|
|
65
|
+
pagination: PageResponse | undefined;
|
|
66
|
+
}
|
|
53
67
|
export declare const QueryParamsRequest: {
|
|
54
68
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
55
69
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
@@ -416,6 +430,201 @@ export declare const QueryClassesResponse: {
|
|
|
416
430
|
} & { [K_3 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
|
|
417
431
|
} & { [K_4 in Exclude<keyof I, keyof QueryClassesResponse>]: never; }>(object: I): QueryClassesResponse;
|
|
418
432
|
};
|
|
433
|
+
export declare const QueryGetCreatorRequest: {
|
|
434
|
+
encode(message: QueryGetCreatorRequest, writer?: _m0.Writer): _m0.Writer;
|
|
435
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetCreatorRequest;
|
|
436
|
+
fromJSON(object: any): QueryGetCreatorRequest;
|
|
437
|
+
toJSON(message: QueryGetCreatorRequest): unknown;
|
|
438
|
+
fromPartial<I extends {
|
|
439
|
+
address?: string;
|
|
440
|
+
} & {
|
|
441
|
+
address?: string;
|
|
442
|
+
} & { [K in Exclude<keyof I, "address">]: never; }>(object: I): QueryGetCreatorRequest;
|
|
443
|
+
};
|
|
444
|
+
export declare const QueryGetCreatorResponse: {
|
|
445
|
+
encode(message: QueryGetCreatorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
446
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetCreatorResponse;
|
|
447
|
+
fromJSON(object: any): QueryGetCreatorResponse;
|
|
448
|
+
toJSON(message: QueryGetCreatorResponse): unknown;
|
|
449
|
+
fromPartial<I extends {
|
|
450
|
+
creator?: {
|
|
451
|
+
address?: string;
|
|
452
|
+
name?: string;
|
|
453
|
+
description?: string;
|
|
454
|
+
avatar?: string;
|
|
455
|
+
avatarHash?: string;
|
|
456
|
+
medias?: {
|
|
457
|
+
name?: string;
|
|
458
|
+
content?: string;
|
|
459
|
+
}[];
|
|
460
|
+
sex?: string;
|
|
461
|
+
birthday?: string;
|
|
462
|
+
location?: string;
|
|
463
|
+
};
|
|
464
|
+
} & {
|
|
465
|
+
creator?: {
|
|
466
|
+
address?: string;
|
|
467
|
+
name?: string;
|
|
468
|
+
description?: string;
|
|
469
|
+
avatar?: string;
|
|
470
|
+
avatarHash?: string;
|
|
471
|
+
medias?: {
|
|
472
|
+
name?: string;
|
|
473
|
+
content?: string;
|
|
474
|
+
}[];
|
|
475
|
+
sex?: string;
|
|
476
|
+
birthday?: string;
|
|
477
|
+
location?: string;
|
|
478
|
+
} & {
|
|
479
|
+
address?: string;
|
|
480
|
+
name?: string;
|
|
481
|
+
description?: string;
|
|
482
|
+
avatar?: string;
|
|
483
|
+
avatarHash?: string;
|
|
484
|
+
medias?: {
|
|
485
|
+
name?: string;
|
|
486
|
+
content?: string;
|
|
487
|
+
}[] & ({
|
|
488
|
+
name?: string;
|
|
489
|
+
content?: string;
|
|
490
|
+
} & {
|
|
491
|
+
name?: string;
|
|
492
|
+
content?: string;
|
|
493
|
+
} & { [K in Exclude<keyof I["creator"]["medias"][number], keyof import("./media").Media>]: never; })[] & { [K_1 in Exclude<keyof I["creator"]["medias"], keyof {
|
|
494
|
+
name?: string;
|
|
495
|
+
content?: string;
|
|
496
|
+
}[]>]: never; };
|
|
497
|
+
sex?: string;
|
|
498
|
+
birthday?: string;
|
|
499
|
+
location?: string;
|
|
500
|
+
} & { [K_2 in Exclude<keyof I["creator"], keyof Creator>]: never; };
|
|
501
|
+
} & { [K_3 in Exclude<keyof I, "creator">]: never; }>(object: I): QueryGetCreatorResponse;
|
|
502
|
+
};
|
|
503
|
+
export declare const QueryCreatorsRequest: {
|
|
504
|
+
encode(message: QueryCreatorsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
505
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreatorsRequest;
|
|
506
|
+
fromJSON(object: any): QueryCreatorsRequest;
|
|
507
|
+
toJSON(message: QueryCreatorsRequest): unknown;
|
|
508
|
+
fromPartial<I extends {
|
|
509
|
+
pagination?: {
|
|
510
|
+
key?: Uint8Array;
|
|
511
|
+
offset?: number;
|
|
512
|
+
limit?: number;
|
|
513
|
+
countTotal?: boolean;
|
|
514
|
+
reverse?: boolean;
|
|
515
|
+
};
|
|
516
|
+
} & {
|
|
517
|
+
pagination?: {
|
|
518
|
+
key?: Uint8Array;
|
|
519
|
+
offset?: number;
|
|
520
|
+
limit?: number;
|
|
521
|
+
countTotal?: boolean;
|
|
522
|
+
reverse?: boolean;
|
|
523
|
+
} & {
|
|
524
|
+
key?: Uint8Array;
|
|
525
|
+
offset?: number;
|
|
526
|
+
limit?: number;
|
|
527
|
+
countTotal?: boolean;
|
|
528
|
+
reverse?: boolean;
|
|
529
|
+
} & { [K in Exclude<keyof I["pagination"], keyof PageRequest>]: never; };
|
|
530
|
+
} & { [K_1 in Exclude<keyof I, "pagination">]: never; }>(object: I): QueryCreatorsRequest;
|
|
531
|
+
};
|
|
532
|
+
export declare const QueryCreatorsResponse: {
|
|
533
|
+
encode(message: QueryCreatorsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
534
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCreatorsResponse;
|
|
535
|
+
fromJSON(object: any): QueryCreatorsResponse;
|
|
536
|
+
toJSON(message: QueryCreatorsResponse): unknown;
|
|
537
|
+
fromPartial<I extends {
|
|
538
|
+
creators?: {
|
|
539
|
+
address?: string;
|
|
540
|
+
name?: string;
|
|
541
|
+
description?: string;
|
|
542
|
+
avatar?: string;
|
|
543
|
+
avatarHash?: string;
|
|
544
|
+
medias?: {
|
|
545
|
+
name?: string;
|
|
546
|
+
content?: string;
|
|
547
|
+
}[];
|
|
548
|
+
sex?: string;
|
|
549
|
+
birthday?: string;
|
|
550
|
+
location?: string;
|
|
551
|
+
}[];
|
|
552
|
+
pagination?: {
|
|
553
|
+
nextKey?: Uint8Array;
|
|
554
|
+
total?: number;
|
|
555
|
+
};
|
|
556
|
+
} & {
|
|
557
|
+
creators?: {
|
|
558
|
+
address?: string;
|
|
559
|
+
name?: string;
|
|
560
|
+
description?: string;
|
|
561
|
+
avatar?: string;
|
|
562
|
+
avatarHash?: string;
|
|
563
|
+
medias?: {
|
|
564
|
+
name?: string;
|
|
565
|
+
content?: string;
|
|
566
|
+
}[];
|
|
567
|
+
sex?: string;
|
|
568
|
+
birthday?: string;
|
|
569
|
+
location?: string;
|
|
570
|
+
}[] & ({
|
|
571
|
+
address?: string;
|
|
572
|
+
name?: string;
|
|
573
|
+
description?: string;
|
|
574
|
+
avatar?: string;
|
|
575
|
+
avatarHash?: string;
|
|
576
|
+
medias?: {
|
|
577
|
+
name?: string;
|
|
578
|
+
content?: string;
|
|
579
|
+
}[];
|
|
580
|
+
sex?: string;
|
|
581
|
+
birthday?: string;
|
|
582
|
+
location?: string;
|
|
583
|
+
} & {
|
|
584
|
+
address?: string;
|
|
585
|
+
name?: string;
|
|
586
|
+
description?: string;
|
|
587
|
+
avatar?: string;
|
|
588
|
+
avatarHash?: string;
|
|
589
|
+
medias?: {
|
|
590
|
+
name?: string;
|
|
591
|
+
content?: string;
|
|
592
|
+
}[] & ({
|
|
593
|
+
name?: string;
|
|
594
|
+
content?: string;
|
|
595
|
+
} & {
|
|
596
|
+
name?: string;
|
|
597
|
+
content?: string;
|
|
598
|
+
} & { [K in Exclude<keyof I["creators"][number]["medias"][number], keyof import("./media").Media>]: never; })[] & { [K_1 in Exclude<keyof I["creators"][number]["medias"], keyof {
|
|
599
|
+
name?: string;
|
|
600
|
+
content?: string;
|
|
601
|
+
}[]>]: never; };
|
|
602
|
+
sex?: string;
|
|
603
|
+
birthday?: string;
|
|
604
|
+
location?: string;
|
|
605
|
+
} & { [K_2 in Exclude<keyof I["creators"][number], keyof Creator>]: never; })[] & { [K_3 in Exclude<keyof I["creators"], keyof {
|
|
606
|
+
address?: string;
|
|
607
|
+
name?: string;
|
|
608
|
+
description?: string;
|
|
609
|
+
avatar?: string;
|
|
610
|
+
avatarHash?: string;
|
|
611
|
+
medias?: {
|
|
612
|
+
name?: string;
|
|
613
|
+
content?: string;
|
|
614
|
+
}[];
|
|
615
|
+
sex?: string;
|
|
616
|
+
birthday?: string;
|
|
617
|
+
location?: string;
|
|
618
|
+
}[]>]: never; };
|
|
619
|
+
pagination?: {
|
|
620
|
+
nextKey?: Uint8Array;
|
|
621
|
+
total?: number;
|
|
622
|
+
} & {
|
|
623
|
+
nextKey?: Uint8Array;
|
|
624
|
+
total?: number;
|
|
625
|
+
} & { [K_4 in Exclude<keyof I["pagination"], keyof PageResponse>]: never; };
|
|
626
|
+
} & { [K_5 in Exclude<keyof I, keyof QueryCreatorsResponse>]: never; }>(object: I): QueryCreatorsResponse;
|
|
627
|
+
};
|
|
419
628
|
/** Query defines the gRPC querier service. */
|
|
420
629
|
export interface Query {
|
|
421
630
|
/** Parameters queries the parameters of the module. */
|
|
@@ -428,6 +637,9 @@ export interface Query {
|
|
|
428
637
|
Class(request: QueryClassRequest): Promise<QueryClassResponse>;
|
|
429
638
|
/** Queries a list of Class items. */
|
|
430
639
|
Classes(request: QueryClassesRequest): Promise<QueryClassesResponse>;
|
|
640
|
+
/** Queries a list of Creator items. */
|
|
641
|
+
Creator(request: QueryGetCreatorRequest): Promise<QueryGetCreatorResponse>;
|
|
642
|
+
Creators(request: QueryCreatorsRequest): Promise<QueryCreatorsResponse>;
|
|
431
643
|
}
|
|
432
644
|
export declare class QueryClientImpl implements Query {
|
|
433
645
|
private readonly rpc;
|
|
@@ -437,6 +649,8 @@ export declare class QueryClientImpl implements Query {
|
|
|
437
649
|
NFTs(request: QueryNFTsRequest): Promise<QueryNFTsResponse>;
|
|
438
650
|
Class(request: QueryClassRequest): Promise<QueryClassResponse>;
|
|
439
651
|
Classes(request: QueryClassesRequest): Promise<QueryClassesResponse>;
|
|
652
|
+
Creator(request: QueryGetCreatorRequest): Promise<QueryGetCreatorResponse>;
|
|
653
|
+
Creators(request: QueryCreatorsRequest): Promise<QueryCreatorsResponse>;
|
|
440
654
|
}
|
|
441
655
|
interface Rpc {
|
|
442
656
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|