@iconlake/client 0.1.8 → 0.1.10

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.8",
3
+ "version": "0.1.10",
4
4
  "description": "iconLake Typescript Client",
5
5
  "author": "iconLake",
6
6
  "license": "Apache-2.0",
@@ -15,18 +15,14 @@
15
15
  "./types",
16
16
  "./types.d.ts"
17
17
  ],
18
- "main": "./dist/client.umd.js",
19
- "module": "./dist/client.mjs",
18
+ "main": "./dist/index.umd.js",
19
+ "module": "./dist/index.mjs",
20
20
  "types": "./types/index.d.ts",
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
24
  "packageManager": "pnpm@8.6.7",
25
25
  "dependencies": {
26
- "@cosmjs/launchpad": "0.27.1",
27
- "@cosmjs/proto-signing": "0.31.0",
28
- "@cosmjs/stargate": "0.31.0",
29
- "@keplr-wallet/types": "^0.11.3",
30
26
  "axios": "^0.21.4",
31
27
  "buffer": "^6.0.3",
32
28
  "events": "^3.3.0",
@@ -39,18 +35,23 @@
39
35
  "@cosmjs/stargate": "0.31.0"
40
36
  },
41
37
  "devDependencies": {
38
+ "@keplr-wallet/types": "^0.11.3",
42
39
  "@types/events": "^3.0.0",
43
40
  "typescript": "^5.1.6",
44
41
  "vite": "^4.4.6"
45
42
  },
46
43
  "exports": {
47
44
  ".": {
48
- "import": "./dist/client.mjs",
49
- "require": "./dist/client.umd.js"
50
- }
45
+ "import": "./dist/index.mjs",
46
+ "require": "./dist/index.umd.js"
47
+ },
48
+ "./mjs": "./dist/index.mjs",
49
+ "./umd": "./dist/index.umd.js",
50
+ "./cjs": "./dist/index.js",
51
+ "./iife": "./dist/index.iife.js"
51
52
  },
52
53
  "scripts": {
53
- "build-ts": "export NODE_OPTIONS=--max-old-space-size=8192 && tsc",
54
+ "build-ts": "rm -rf ./types && export NODE_OPTIONS=--max-old-space-size=8192 && tsc",
54
55
  "build-js": "vite build",
55
56
  "build": "pnpm run build-ts && pnpm run build-js"
56
57
  }
@@ -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/drop/tx";
7
- export { MsgMint };
7
+ import { MsgInit } from "./types/iconlake/drop/tx";
8
+ export { MsgMint, MsgInit };
8
9
  type sendMsgMintParams = {
9
10
  value: MsgMint;
10
11
  fee?: StdFee;
11
12
  memo?: string;
12
13
  };
14
+ type sendMsgInitParams = {
15
+ value: MsgInit;
16
+ fee?: StdFee;
17
+ memo?: string;
18
+ };
13
19
  type msgMintParams = {
14
20
  value: MsgMint;
15
21
  };
22
+ type msgInitParams = {
23
+ value: MsgInit;
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
+ sendMsgInit({ value, fee, memo }: sendMsgInitParams): Promise<DeliverTxResponse>;
24
34
  msgMint({ value }: msgMintParams): EncodeObject;
35
+ msgInit({ value }: msgInitParams): EncodeObject;
25
36
  };
26
37
  interface QueryClientOptions {
27
38
  addr: string;
@@ -9,6 +9,10 @@ export interface MsgMintResponse {
9
9
  amount: Coin | undefined;
10
10
  lastMintTime: number;
11
11
  }
12
+ export interface MsgInit {
13
+ creator: string;
14
+ address: string;
15
+ }
12
16
  export declare const MsgMint: {
13
17
  encode(message: MsgMint, writer?: _m0.Writer): _m0.Writer;
14
18
  decode(input: _m0.Reader | Uint8Array, length?: number): MsgMint;
@@ -53,14 +57,29 @@ export declare const MsgMintResponse: {
53
57
  lastMintTime?: number;
54
58
  } & { [K_1 in Exclude<keyof I, keyof MsgMintResponse>]: never; }>(object: I): MsgMintResponse;
55
59
  };
60
+ export declare const MsgInit: {
61
+ encode(message: MsgInit, writer?: _m0.Writer): _m0.Writer;
62
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInit;
63
+ fromJSON(object: any): MsgInit;
64
+ toJSON(message: MsgInit): unknown;
65
+ fromPartial<I extends {
66
+ creator?: string;
67
+ address?: string;
68
+ } & {
69
+ creator?: string;
70
+ address?: string;
71
+ } & { [K in Exclude<keyof I, keyof MsgInit>]: never; }>(object: I): MsgInit;
72
+ };
56
73
  /** Msg defines the Msg service. */
57
74
  export interface Msg {
58
75
  Mint(request: MsgMint): Promise<MsgMintResponse>;
76
+ Init(request: MsgInit): Promise<MsgMintResponse>;
59
77
  }
60
78
  export declare class MsgClientImpl implements Msg {
61
79
  private readonly rpc;
62
80
  constructor(rpc: Rpc);
63
81
  Mint(request: MsgMint): Promise<MsgMintResponse>;
82
+ Init(request: MsgInit): Promise<MsgMintResponse>;
64
83
  }
65
84
  interface Rpc {
66
85
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
package/types/index.d.ts CHANGED
@@ -656,9 +656,17 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
656
656
  fee?: import("@cosmjs/launchpad").StdFee;
657
657
  memo?: string;
658
658
  }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
659
+ sendMsgInit({ value, fee, memo }: {
660
+ value: import("./iconlake.drop/module").MsgInit;
661
+ fee?: import("@cosmjs/launchpad").StdFee;
662
+ memo?: string;
663
+ }): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
659
664
  msgMint({ value }: {
660
665
  value: import("./iconlake.drop/module").MsgMint;
661
666
  }): import("@cosmjs/proto-signing").EncodeObject;
667
+ msgInit({ value }: {
668
+ value: import("./iconlake.drop/module").MsgInit;
669
+ }): import("@cosmjs/proto-signing").EncodeObject;
662
670
  };
663
671
  structure: Record<string, unknown>;
664
672
  registry: [string, import("@cosmjs/proto-signing").GeneratedType][];