@iconlake/client 1.1.0 → 1.2.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/package.json
CHANGED
|
@@ -17,14 +17,6 @@ export type IconMsgUpdateClassResponse = object;
|
|
|
17
17
|
* Params defines the parameters for the module.
|
|
18
18
|
*/
|
|
19
19
|
export type IconParams = object;
|
|
20
|
-
export interface IconQueryHashRequest {
|
|
21
|
-
hash_type?: string;
|
|
22
|
-
uri?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IconQueryHashResponse {
|
|
25
|
-
graph_hash?: string;
|
|
26
|
-
file_hash?: string;
|
|
27
|
-
}
|
|
28
20
|
/**
|
|
29
21
|
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
30
22
|
*/
|
|
@@ -334,15 +326,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
334
326
|
"pagination.count_total"?: boolean;
|
|
335
327
|
"pagination.reverse"?: boolean;
|
|
336
328
|
}, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryClassesResponse>>;
|
|
337
|
-
/**
|
|
338
|
-
* No description
|
|
339
|
-
*
|
|
340
|
-
* @tags Query
|
|
341
|
-
* @name QueryHash
|
|
342
|
-
* @summary Queries hash of a uri.
|
|
343
|
-
* @request POST:/iconlake/icon/hash
|
|
344
|
-
*/
|
|
345
|
-
queryHash: (body: IconQueryHashRequest, params?: RequestParams) => Promise<AxiosResponse<IconQueryHashResponse>>;
|
|
346
329
|
/**
|
|
347
330
|
* No description
|
|
348
331
|
*
|
|
@@ -13,14 +13,6 @@ export interface QueryParamsResponse {
|
|
|
13
13
|
/** params holds all the parameters of this module. */
|
|
14
14
|
params: Params | undefined;
|
|
15
15
|
}
|
|
16
|
-
export interface QueryHashRequest {
|
|
17
|
-
hashType: string;
|
|
18
|
-
uri: string;
|
|
19
|
-
}
|
|
20
|
-
export interface QueryHashResponse {
|
|
21
|
-
graphHash: string;
|
|
22
|
-
fileHash: string;
|
|
23
|
-
}
|
|
24
16
|
export interface NFT {
|
|
25
17
|
classId: string;
|
|
26
18
|
id: string;
|
|
@@ -76,32 +68,6 @@ export declare const QueryParamsResponse: {
|
|
|
76
68
|
params?: {} & {} & { [K in Exclude<keyof I["params"], never>]: never; };
|
|
77
69
|
} & { [K_1 in Exclude<keyof I, "params">]: never; }>(object: I): QueryParamsResponse;
|
|
78
70
|
};
|
|
79
|
-
export declare const QueryHashRequest: {
|
|
80
|
-
encode(message: QueryHashRequest, writer?: _m0.Writer): _m0.Writer;
|
|
81
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHashRequest;
|
|
82
|
-
fromJSON(object: any): QueryHashRequest;
|
|
83
|
-
toJSON(message: QueryHashRequest): unknown;
|
|
84
|
-
fromPartial<I extends {
|
|
85
|
-
hashType?: string;
|
|
86
|
-
uri?: string;
|
|
87
|
-
} & {
|
|
88
|
-
hashType?: string;
|
|
89
|
-
uri?: string;
|
|
90
|
-
} & { [K in Exclude<keyof I, keyof QueryHashRequest>]: never; }>(object: I): QueryHashRequest;
|
|
91
|
-
};
|
|
92
|
-
export declare const QueryHashResponse: {
|
|
93
|
-
encode(message: QueryHashResponse, writer?: _m0.Writer): _m0.Writer;
|
|
94
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHashResponse;
|
|
95
|
-
fromJSON(object: any): QueryHashResponse;
|
|
96
|
-
toJSON(message: QueryHashResponse): unknown;
|
|
97
|
-
fromPartial<I extends {
|
|
98
|
-
graphHash?: string;
|
|
99
|
-
fileHash?: string;
|
|
100
|
-
} & {
|
|
101
|
-
graphHash?: string;
|
|
102
|
-
fileHash?: string;
|
|
103
|
-
} & { [K in Exclude<keyof I, keyof QueryHashResponse>]: never; }>(object: I): QueryHashResponse;
|
|
104
|
-
};
|
|
105
71
|
export declare const NFT: {
|
|
106
72
|
encode(message: NFT, writer?: _m0.Writer): _m0.Writer;
|
|
107
73
|
decode(input: _m0.Reader | Uint8Array, length?: number): NFT;
|
|
@@ -454,8 +420,6 @@ export declare const QueryClassesResponse: {
|
|
|
454
420
|
export interface Query {
|
|
455
421
|
/** Parameters queries the parameters of the module. */
|
|
456
422
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
457
|
-
/** Queries hash of a uri. */
|
|
458
|
-
Hash(request: QueryHashRequest): Promise<QueryHashResponse>;
|
|
459
423
|
/** Queries a NFT info. */
|
|
460
424
|
NFT(request: QueryNFTRequest): Promise<QueryNFTResponse>;
|
|
461
425
|
/** Queries a list of NFTs of a class. */
|
|
@@ -469,7 +433,6 @@ export declare class QueryClientImpl implements Query {
|
|
|
469
433
|
private readonly rpc;
|
|
470
434
|
constructor(rpc: Rpc);
|
|
471
435
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
472
|
-
Hash(request: QueryHashRequest): Promise<QueryHashResponse>;
|
|
473
436
|
NFT(request: QueryNFTRequest): Promise<QueryNFTResponse>;
|
|
474
437
|
NFTs(request: QueryNFTsRequest): Promise<QueryNFTsResponse>;
|
|
475
438
|
Class(request: QueryClassRequest): Promise<QueryClassResponse>;
|