@iconlake/client 0.2.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iconlake/client",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "iconLake Typescript Client",
5
5
  "author": "iconLake",
6
6
  "license": "Apache-2.0",
@@ -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 { MsgUpdateClass } from "./types/iconlake/icon/tx";
7
6
  import { MsgMint } from "./types/iconlake/icon/tx";
8
- export { MsgUpdateClass, MsgMint };
9
- type sendMsgUpdateClassParams = {
10
- value: MsgUpdateClass;
11
- fee?: StdFee;
12
- memo?: string;
13
- };
7
+ import { MsgUpdateClass } from "./types/iconlake/icon/tx";
8
+ export { MsgMint, MsgUpdateClass };
14
9
  type sendMsgMintParams = {
15
10
  value: MsgMint;
16
11
  fee?: StdFee;
17
12
  memo?: string;
18
13
  };
19
- type msgUpdateClassParams = {
14
+ type sendMsgUpdateClassParams = {
20
15
  value: MsgUpdateClass;
16
+ fee?: StdFee;
17
+ memo?: string;
21
18
  };
22
19
  type msgMintParams = {
23
20
  value: MsgMint;
24
21
  };
22
+ type msgUpdateClassParams = {
23
+ value: MsgUpdateClass;
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
- sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
33
32
  sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
34
- msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
33
+ sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
35
34
  msgMint({ value }: msgMintParams): EncodeObject;
35
+ msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
36
36
  };
37
37
  interface QueryClientOptions {
38
38
  addr: string;
@@ -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/{id}
316
+ * @request GET:/iconlake/icon/class
317
317
  */
318
- queryClass: (id: string, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryClassResponse>>;
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/{classId}/{id}
351
+ * @request GET:/iconlake/icon/nft
350
352
  */
351
- queryNFT: (classId: string, id: string, params?: RequestParams) => Promise<AxiosResponse<IconlakeiconQueryNFTResponse>>;
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
@@ -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
- sendMsgUpdateClass({ value, fee, memo }: {
680
- value: import("./iconlake.icon/module").MsgUpdateClass;
681
- fee?: import("@cosmjs/launchpad").StdFee;
682
- memo?: string;
683
- }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
684
679
  sendMsgMint({ value, fee, memo }: {
685
680
  value: import("./iconlake.icon/module").MsgMint;
686
681
  fee?: import("@cosmjs/launchpad").StdFee;
687
682
  memo?: string;
688
683
  }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
689
- msgUpdateClass({ value }: {
684
+ sendMsgUpdateClass({ value, fee, memo }: {
690
685
  value: import("./iconlake.icon/module").MsgUpdateClass;
691
- }): import("@cosmjs/proto-signing").EncodeObject;
686
+ fee?: import("@cosmjs/launchpad").StdFee;
687
+ memo?: string;
688
+ }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
692
689
  msgMint({ value }: {
693
690
  value: import("./iconlake.icon/module").MsgMint;
694
691
  }): import("@cosmjs/proto-signing").EncodeObject;
692
+ msgUpdateClass({ value }: {
693
+ value: import("./iconlake.icon/module").MsgUpdateClass;
694
+ }): import("@cosmjs/proto-signing").EncodeObject;
695
695
  };
696
696
  structure: Record<string, unknown>;
697
697
  registry: [string, import("@cosmjs/proto-signing").GeneratedType][];