@iconlake/client 0.1.11 → 0.1.12

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.1.11",
3
+ "version": "0.1.12",
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 { MsgInit } from "./types/iconlake/drop/tx";
7
6
  import { MsgMint } from "./types/iconlake/drop/tx";
8
- export { MsgInit, MsgMint };
9
- type sendMsgInitParams = {
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 msgInitParams = {
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
- msgInit({ value }: msgInitParams): EncodeObject;
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;
@@ -4,15 +4,24 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
6
  import { MsgMint } from "./types/iconlake/icon/tx";
7
- export { MsgMint };
7
+ import { MsgUpdateClass } from "./types/iconlake/icon/tx";
8
+ export { MsgMint, MsgUpdateClass };
8
9
  type sendMsgMintParams = {
9
10
  value: MsgMint;
10
11
  fee?: StdFee;
11
12
  memo?: string;
12
13
  };
14
+ type sendMsgUpdateClassParams = {
15
+ value: MsgUpdateClass;
16
+ fee?: StdFee;
17
+ memo?: string;
18
+ };
13
19
  type msgMintParams = {
14
20
  value: MsgMint;
15
21
  };
22
+ type msgUpdateClassParams = {
23
+ value: MsgUpdateClass;
24
+ };
16
25
  export declare const registry: Registry;
17
26
  interface TxClientOptions {
18
27
  addr: string;
@@ -21,7 +30,9 @@ interface TxClientOptions {
21
30
  }
22
31
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
23
32
  sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
33
+ sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
24
34
  msgMint({ value }: msgMintParams): EncodeObject;
35
+ msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
25
36
  };
26
37
  interface QueryClientOptions {
27
38
  addr: string;
@@ -5,6 +5,7 @@ export interface IconIconData {
5
5
  createTime?: string;
6
6
  }
7
7
  export type IconMsgMintResponse = object;
8
+ export type IconMsgUpdateClassResponse = object;
8
9
  /**
9
10
  * Params defines the parameters for the module.
10
11
  */
@@ -12,6 +12,17 @@ export interface MsgMint {
12
12
  }
13
13
  export interface MsgMintResponse {
14
14
  }
15
+ export interface MsgUpdateClass {
16
+ creator: string;
17
+ id: string;
18
+ name: string;
19
+ symbol: string;
20
+ description: string;
21
+ uri: string;
22
+ uriHash: string;
23
+ }
24
+ export interface MsgUpdateClassResponse {
25
+ }
15
26
  export declare const MsgMint: {
16
27
  encode(message: MsgMint, writer?: _m0.Writer): _m0.Writer;
17
28
  decode(input: _m0.Reader | Uint8Array, length?: number): MsgMint;
@@ -57,14 +68,46 @@ export declare const MsgMintResponse: {
57
68
  toJSON(_: MsgMintResponse): unknown;
58
69
  fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgMintResponse;
59
70
  };
71
+ export declare const MsgUpdateClass: {
72
+ encode(message: MsgUpdateClass, writer?: _m0.Writer): _m0.Writer;
73
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClass;
74
+ fromJSON(object: any): MsgUpdateClass;
75
+ toJSON(message: MsgUpdateClass): unknown;
76
+ fromPartial<I extends {
77
+ creator?: string;
78
+ id?: string;
79
+ name?: string;
80
+ symbol?: string;
81
+ description?: string;
82
+ uri?: string;
83
+ uriHash?: string;
84
+ } & {
85
+ creator?: string;
86
+ id?: string;
87
+ name?: string;
88
+ symbol?: string;
89
+ description?: string;
90
+ uri?: string;
91
+ uriHash?: string;
92
+ } & { [K in Exclude<keyof I, keyof MsgUpdateClass>]: never; }>(object: I): MsgUpdateClass;
93
+ };
94
+ export declare const MsgUpdateClassResponse: {
95
+ encode(_: MsgUpdateClassResponse, writer?: _m0.Writer): _m0.Writer;
96
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateClassResponse;
97
+ fromJSON(_: any): MsgUpdateClassResponse;
98
+ toJSON(_: MsgUpdateClassResponse): unknown;
99
+ fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgUpdateClassResponse;
100
+ };
60
101
  /** Msg defines the Msg service. */
61
102
  export interface Msg {
62
103
  Mint(request: MsgMint): Promise<MsgMintResponse>;
104
+ UpdateClass(request: MsgUpdateClass): Promise<MsgUpdateClassResponse>;
63
105
  }
64
106
  export declare class MsgClientImpl implements Msg {
65
107
  private readonly rpc;
66
108
  constructor(rpc: Rpc);
67
109
  Mint(request: MsgMint): Promise<MsgMintResponse>;
110
+ UpdateClass(request: MsgUpdateClass): Promise<MsgUpdateClassResponse>;
68
111
  }
69
112
  interface Rpc {
70
113
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
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
- msgInit({ value }: {
659
+ sendMsgInit({ value, fee, memo }: {
665
660
  value: import("./iconlake.drop/module").MsgInit;
666
- }): import("@cosmjs/proto-signing").EncodeObject;
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][];
@@ -681,9 +681,17 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
681
681
  fee?: import("@cosmjs/launchpad").StdFee;
682
682
  memo?: string;
683
683
  }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
684
+ sendMsgUpdateClass({ value, fee, memo }: {
685
+ value: import("./iconlake.icon/module").MsgUpdateClass;
686
+ fee?: import("@cosmjs/launchpad").StdFee;
687
+ memo?: string;
688
+ }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
684
689
  msgMint({ value }: {
685
690
  value: import("./iconlake.icon/module").MsgMint;
686
691
  }): import("@cosmjs/proto-signing").EncodeObject;
692
+ msgUpdateClass({ value }: {
693
+ value: import("./iconlake.icon/module").MsgUpdateClass;
694
+ }): import("@cosmjs/proto-signing").EncodeObject;
687
695
  };
688
696
  structure: Record<string, unknown>;
689
697
  registry: [string, import("@cosmjs/proto-signing").GeneratedType][];