@iconlake/client 0.2.1 → 0.3.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/dist/index.iife.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +34 -34
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/types/iconlake.drop/module.d.ts +10 -10
- package/types/iconlake.drop/rest.d.ts +4 -3
- package/types/iconlake.drop/types/iconlake/drop/query.d.ts +2 -1
- package/types/iconlake.icon/module.d.ts +10 -10
- package/types/iconlake.icon/rest.d.ts +9 -9
- package/types/index.d.ts +14 -14
package/package.json
CHANGED
|
@@ -3,25 +3,25 @@ import { DeliverTxResponse } from "@cosmjs/stargate";
|
|
|
3
3
|
import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { IgniteClient } from "../client";
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import { MsgInit } from "./types/iconlake/drop/tx";
|
|
7
6
|
import { MsgMint } from "./types/iconlake/drop/tx";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
value: MsgInit;
|
|
11
|
-
fee?: StdFee;
|
|
12
|
-
memo?: string;
|
|
13
|
-
};
|
|
7
|
+
import { MsgInit } from "./types/iconlake/drop/tx";
|
|
8
|
+
export { MsgMint, MsgInit };
|
|
14
9
|
type sendMsgMintParams = {
|
|
15
10
|
value: MsgMint;
|
|
16
11
|
fee?: StdFee;
|
|
17
12
|
memo?: string;
|
|
18
13
|
};
|
|
19
|
-
type
|
|
14
|
+
type sendMsgInitParams = {
|
|
20
15
|
value: MsgInit;
|
|
16
|
+
fee?: StdFee;
|
|
17
|
+
memo?: string;
|
|
21
18
|
};
|
|
22
19
|
type msgMintParams = {
|
|
23
20
|
value: MsgMint;
|
|
24
21
|
};
|
|
22
|
+
type msgInitParams = {
|
|
23
|
+
value: MsgInit;
|
|
24
|
+
};
|
|
25
25
|
export declare const registry: Registry;
|
|
26
26
|
interface TxClientOptions {
|
|
27
27
|
addr: string;
|
|
@@ -29,10 +29,10 @@ interface TxClientOptions {
|
|
|
29
29
|
signer?: OfflineSigner;
|
|
30
30
|
}
|
|
31
31
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
32
|
-
sendMsgInit({ value, fee, memo }: sendMsgInitParams): Promise<DeliverTxResponse>;
|
|
33
32
|
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
34
|
-
|
|
33
|
+
sendMsgInit({ value, fee, memo }: sendMsgInitParams): Promise<DeliverTxResponse>;
|
|
35
34
|
msgMint({ value }: msgMintParams): EncodeObject;
|
|
35
|
+
msgInit({ value }: msgInitParams): EncodeObject;
|
|
36
36
|
};
|
|
37
37
|
interface QueryClientOptions {
|
|
38
38
|
addr: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface DropInfo {
|
|
2
2
|
address?: string;
|
|
3
3
|
/** @format int64 */
|
|
4
|
-
|
|
4
|
+
last_mint_time?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface DropMsgMintResponse {
|
|
7
7
|
/**
|
|
@@ -12,7 +12,7 @@ export interface DropMsgMintResponse {
|
|
|
12
12
|
*/
|
|
13
13
|
amount?: V1Beta1Coin;
|
|
14
14
|
/** @format int64 */
|
|
15
|
-
|
|
15
|
+
last_mint_time?: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Params defines the parameters for the module.
|
|
@@ -174,6 +174,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
174
174
|
*
|
|
175
175
|
* @tags Query
|
|
176
176
|
* @name QueryInfoAll
|
|
177
|
+
* @summary Queries a list of all Info items.
|
|
177
178
|
* @request GET:/iconlake/drop/info
|
|
178
179
|
*/
|
|
179
180
|
queryInfoAll: (query?: {
|
|
@@ -188,7 +189,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
188
189
|
*
|
|
189
190
|
* @tags Query
|
|
190
191
|
* @name QueryInfo
|
|
191
|
-
* @summary Queries a
|
|
192
|
+
* @summary Queries a Info item by address.
|
|
192
193
|
* @request GET:/iconlake/drop/info/{address}
|
|
193
194
|
*/
|
|
194
195
|
queryInfo: (address: string, params?: RequestParams) => Promise<AxiosResponse<DropQueryGetInfoResponse>>;
|
|
@@ -143,8 +143,9 @@ export declare const QueryAllInfoResponse: {
|
|
|
143
143
|
export interface Query {
|
|
144
144
|
/** Parameters queries the parameters of the module. */
|
|
145
145
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
146
|
-
/** Queries a
|
|
146
|
+
/** Queries a Info item by address. */
|
|
147
147
|
Info(request: QueryGetInfoRequest): Promise<QueryGetInfoResponse>;
|
|
148
|
+
/** Queries a list of all Info items. */
|
|
148
149
|
InfoAll(request: QueryAllInfoRequest): Promise<QueryAllInfoResponse>;
|
|
149
150
|
}
|
|
150
151
|
export declare class QueryClientImpl implements Query {
|
|
@@ -3,25 +3,25 @@ import { DeliverTxResponse } from "@cosmjs/stargate";
|
|
|
3
3
|
import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { IgniteClient } from "../client";
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import { MsgMint } from "./types/iconlake/icon/tx";
|
|
7
6
|
import { MsgUpdateClass } from "./types/iconlake/icon/tx";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
value: MsgMint;
|
|
11
|
-
fee?: StdFee;
|
|
12
|
-
memo?: string;
|
|
13
|
-
};
|
|
7
|
+
import { MsgMint } from "./types/iconlake/icon/tx";
|
|
8
|
+
export { MsgUpdateClass, MsgMint };
|
|
14
9
|
type sendMsgUpdateClassParams = {
|
|
15
10
|
value: MsgUpdateClass;
|
|
16
11
|
fee?: StdFee;
|
|
17
12
|
memo?: string;
|
|
18
13
|
};
|
|
19
|
-
type
|
|
14
|
+
type sendMsgMintParams = {
|
|
20
15
|
value: MsgMint;
|
|
16
|
+
fee?: StdFee;
|
|
17
|
+
memo?: string;
|
|
21
18
|
};
|
|
22
19
|
type msgUpdateClassParams = {
|
|
23
20
|
value: MsgUpdateClass;
|
|
24
21
|
};
|
|
22
|
+
type msgMintParams = {
|
|
23
|
+
value: MsgMint;
|
|
24
|
+
};
|
|
25
25
|
export declare const registry: Registry;
|
|
26
26
|
interface TxClientOptions {
|
|
27
27
|
addr: string;
|
|
@@ -29,10 +29,10 @@ interface TxClientOptions {
|
|
|
29
29
|
signer?: OfflineSigner;
|
|
30
30
|
}
|
|
31
31
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
32
|
-
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
33
32
|
sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
|
|
34
|
-
|
|
33
|
+
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
35
34
|
msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
|
|
35
|
+
msgMint({ value }: msgMintParams): EncodeObject;
|
|
36
36
|
};
|
|
37
37
|
interface QueryClientOptions {
|
|
38
38
|
addr: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface IconClassData {
|
|
2
2
|
author?: string;
|
|
3
3
|
/** @format int64 */
|
|
4
|
-
|
|
4
|
+
create_time?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface IconIconData {
|
|
7
7
|
author?: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
/** @format int64 */
|
|
11
|
-
|
|
11
|
+
create_time?: string;
|
|
12
12
|
}
|
|
13
13
|
export type IconMsgMintResponse = object;
|
|
14
14
|
export type IconMsgUpdateClassResponse = object;
|
|
@@ -17,12 +17,12 @@ export type IconMsgUpdateClassResponse = object;
|
|
|
17
17
|
*/
|
|
18
18
|
export type IconParams = object;
|
|
19
19
|
export interface IconQueryHashRequest {
|
|
20
|
-
|
|
20
|
+
hash_type?: string;
|
|
21
21
|
uri?: string;
|
|
22
22
|
}
|
|
23
23
|
export interface IconQueryHashResponse {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
graph_hash?: string;
|
|
25
|
+
file_hash?: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* QueryParamsResponse is response type for the Query/Params RPC method.
|
|
@@ -37,14 +37,14 @@ export interface IconlakeiconClass {
|
|
|
37
37
|
symbol?: string;
|
|
38
38
|
description?: string;
|
|
39
39
|
uri?: string;
|
|
40
|
-
|
|
40
|
+
uri_hash?: string;
|
|
41
41
|
data?: IconClassData;
|
|
42
42
|
}
|
|
43
43
|
export interface IconlakeiconNFT {
|
|
44
|
-
|
|
44
|
+
class_id?: string;
|
|
45
45
|
id?: string;
|
|
46
46
|
uri?: string;
|
|
47
|
-
|
|
47
|
+
uri_hash?: string;
|
|
48
48
|
data?: IconIconData;
|
|
49
49
|
}
|
|
50
50
|
export interface IconlakeiconQueryClassResponse {
|
|
@@ -351,7 +351,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
351
351
|
* @request GET:/iconlake/icon/nft
|
|
352
352
|
*/
|
|
353
353
|
queryNFT: (query?: {
|
|
354
|
-
|
|
354
|
+
class_id?: string;
|
|
355
355
|
id?: string;
|
|
356
356
|
}, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryNFTResponse>>;
|
|
357
357
|
/**
|
package/types/index.d.ts
CHANGED
|
@@ -651,22 +651,22 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
651
651
|
IconlakeDrop: {
|
|
652
652
|
query: import("./iconlake.drop/rest").Api<unknown>;
|
|
653
653
|
tx: {
|
|
654
|
-
sendMsgInit({ value, fee, memo }: {
|
|
655
|
-
value: import("./iconlake.drop/module").MsgInit;
|
|
656
|
-
fee?: import("@cosmjs/launchpad").StdFee;
|
|
657
|
-
memo?: string;
|
|
658
|
-
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
659
654
|
sendMsgMint({ value, fee, memo }: {
|
|
660
655
|
value: import("./iconlake.drop/module").MsgMint;
|
|
661
656
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
662
657
|
memo?: string;
|
|
663
658
|
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
664
|
-
|
|
659
|
+
sendMsgInit({ value, fee, memo }: {
|
|
665
660
|
value: import("./iconlake.drop/module").MsgInit;
|
|
666
|
-
|
|
661
|
+
fee?: import("@cosmjs/launchpad").StdFee;
|
|
662
|
+
memo?: string;
|
|
663
|
+
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
667
664
|
msgMint({ value }: {
|
|
668
665
|
value: import("./iconlake.drop/module").MsgMint;
|
|
669
666
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
667
|
+
msgInit({ value }: {
|
|
668
|
+
value: import("./iconlake.drop/module").MsgInit;
|
|
669
|
+
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
670
670
|
};
|
|
671
671
|
structure: Record<string, unknown>;
|
|
672
672
|
registry: [string, import("@cosmjs/proto-signing").GeneratedType][];
|
|
@@ -676,22 +676,22 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
676
676
|
IconlakeIcon: {
|
|
677
677
|
query: import("./iconlake.icon/rest").Api<unknown>;
|
|
678
678
|
tx: {
|
|
679
|
-
sendMsgMint({ value, fee, memo }: {
|
|
680
|
-
value: import("./iconlake.icon/module").MsgMint;
|
|
681
|
-
fee?: import("@cosmjs/launchpad").StdFee;
|
|
682
|
-
memo?: string;
|
|
683
|
-
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
684
679
|
sendMsgUpdateClass({ value, fee, memo }: {
|
|
685
680
|
value: import("./iconlake.icon/module").MsgUpdateClass;
|
|
686
681
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
687
682
|
memo?: string;
|
|
688
683
|
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
689
|
-
|
|
684
|
+
sendMsgMint({ value, fee, memo }: {
|
|
690
685
|
value: import("./iconlake.icon/module").MsgMint;
|
|
691
|
-
|
|
686
|
+
fee?: import("@cosmjs/launchpad").StdFee;
|
|
687
|
+
memo?: string;
|
|
688
|
+
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
692
689
|
msgUpdateClass({ value }: {
|
|
693
690
|
value: import("./iconlake.icon/module").MsgUpdateClass;
|
|
694
691
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
692
|
+
msgMint({ value }: {
|
|
693
|
+
value: import("./iconlake.icon/module").MsgMint;
|
|
694
|
+
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
695
695
|
};
|
|
696
696
|
structure: Record<string, unknown>;
|
|
697
697
|
registry: [string, import("@cosmjs/proto-signing").GeneratedType][];
|