@iconlake/client 0.1.13 → 0.2.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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +28 -26
- 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/types/iconlake/drop/info.d.ts +3 -3
- package/types/iconlake.icon/rest.d.ts +9 -4
- package/types/index.d.ts +7 -7
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 { MsgMint } from "./types/iconlake/drop/tx";
|
|
7
6
|
import { MsgInit } from "./types/iconlake/drop/tx";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
value: MsgMint;
|
|
11
|
-
fee?: StdFee;
|
|
12
|
-
memo?: string;
|
|
13
|
-
};
|
|
7
|
+
import { MsgMint } from "./types/iconlake/drop/tx";
|
|
8
|
+
export { MsgInit, MsgMint };
|
|
14
9
|
type sendMsgInitParams = {
|
|
15
10
|
value: MsgInit;
|
|
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 msgInitParams = {
|
|
23
20
|
value: MsgInit;
|
|
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
|
sendMsgInit({ value, fee, memo }: sendMsgInitParams): Promise<DeliverTxResponse>;
|
|
34
|
-
|
|
33
|
+
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
35
34
|
msgInit({ value }: msgInitParams): EncodeObject;
|
|
35
|
+
msgMint({ value }: msgMintParams): EncodeObject;
|
|
36
36
|
};
|
|
37
37
|
interface QueryClientOptions {
|
|
38
38
|
addr: string;
|
|
@@ -5,7 +5,7 @@ export interface Info {
|
|
|
5
5
|
lastMintTime: number;
|
|
6
6
|
}
|
|
7
7
|
export interface InfoRaw {
|
|
8
|
-
|
|
8
|
+
address: Uint8Array;
|
|
9
9
|
lastMintTime: number;
|
|
10
10
|
}
|
|
11
11
|
export declare const Info: {
|
|
@@ -27,10 +27,10 @@ export declare const InfoRaw: {
|
|
|
27
27
|
fromJSON(object: any): InfoRaw;
|
|
28
28
|
toJSON(message: InfoRaw): unknown;
|
|
29
29
|
fromPartial<I extends {
|
|
30
|
-
|
|
30
|
+
address?: Uint8Array;
|
|
31
31
|
lastMintTime?: number;
|
|
32
32
|
} & {
|
|
33
|
-
|
|
33
|
+
address?: Uint8Array;
|
|
34
34
|
lastMintTime?: number;
|
|
35
35
|
} & { [K in Exclude<keyof I, keyof InfoRaw>]: never; }>(object: I): InfoRaw;
|
|
36
36
|
};
|
|
@@ -313,9 +313,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
313
313
|
* @tags Query
|
|
314
314
|
* @name QueryClass
|
|
315
315
|
* @summary Queries a class info.
|
|
316
|
-
* @request GET:/iconlake/icon/class
|
|
316
|
+
* @request GET:/iconlake/icon/class
|
|
317
317
|
*/
|
|
318
|
-
queryClass: (
|
|
318
|
+
queryClass: (query?: {
|
|
319
|
+
id?: string;
|
|
320
|
+
}, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryClassResponse>>;
|
|
319
321
|
/**
|
|
320
322
|
* No description
|
|
321
323
|
*
|
|
@@ -346,9 +348,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
346
348
|
* @tags Query
|
|
347
349
|
* @name QueryNft
|
|
348
350
|
* @summary Queries a NFT info.
|
|
349
|
-
* @request GET:/iconlake/icon/nft
|
|
351
|
+
* @request GET:/iconlake/icon/nft
|
|
350
352
|
*/
|
|
351
|
-
queryNFT: (
|
|
353
|
+
queryNFT: (query?: {
|
|
354
|
+
classId?: string;
|
|
355
|
+
id?: string;
|
|
356
|
+
}, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryNFTResponse>>;
|
|
352
357
|
/**
|
|
353
358
|
* No description
|
|
354
359
|
*
|
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
|
-
sendMsgMint({ value, fee, memo }: {
|
|
655
|
-
value: import("./iconlake.drop/module").MsgMint;
|
|
656
|
-
fee?: import("@cosmjs/launchpad").StdFee;
|
|
657
|
-
memo?: string;
|
|
658
|
-
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
659
654
|
sendMsgInit({ value, fee, memo }: {
|
|
660
655
|
value: import("./iconlake.drop/module").MsgInit;
|
|
661
656
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
662
657
|
memo?: string;
|
|
663
658
|
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
664
|
-
|
|
659
|
+
sendMsgMint({ value, fee, memo }: {
|
|
665
660
|
value: import("./iconlake.drop/module").MsgMint;
|
|
666
|
-
|
|
661
|
+
fee?: import("@cosmjs/launchpad").StdFee;
|
|
662
|
+
memo?: string;
|
|
663
|
+
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
667
664
|
msgInit({ value }: {
|
|
668
665
|
value: import("./iconlake.drop/module").MsgInit;
|
|
669
666
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
667
|
+
msgMint({ value }: {
|
|
668
|
+
value: import("./iconlake.drop/module").MsgMint;
|
|
669
|
+
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
670
670
|
};
|
|
671
671
|
structure: Record<string, unknown>;
|
|
672
672
|
registry: [string, import("@cosmjs/proto-signing").GeneratedType][];
|