@iconlake/client 0.1.7 → 0.1.9
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/client.mjs +60767 -64394
- package/dist/client.umd.js +5 -18
- package/package.json +7 -7
- package/types/iconlake.drop/module.d.ts +12 -1
- package/types/iconlake.drop/types/iconlake/drop/tx.d.ts +19 -0
- package/types/index.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iconlake/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "iconLake Typescript Client",
|
|
5
5
|
"author": "iconLake",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"packageManager": "pnpm@8.6.7",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cosmjs/launchpad": "0.27.
|
|
27
|
-
"@cosmjs/proto-signing": "0.
|
|
28
|
-
"@cosmjs/stargate": "0.
|
|
26
|
+
"@cosmjs/launchpad": "0.27.1",
|
|
27
|
+
"@cosmjs/proto-signing": "0.31.0",
|
|
28
|
+
"@cosmjs/stargate": "0.31.0",
|
|
29
29
|
"@keplr-wallet/types": "^0.11.3",
|
|
30
30
|
"axios": "^0.21.4",
|
|
31
31
|
"buffer": "^6.0.3",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"protobufjs": "^7.2.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@cosmjs/launchpad": "0.27.
|
|
38
|
-
"@cosmjs/proto-signing": "0.
|
|
39
|
-
"@cosmjs/stargate": "0.
|
|
37
|
+
"@cosmjs/launchpad": "0.27.1",
|
|
38
|
+
"@cosmjs/proto-signing": "0.31.0",
|
|
39
|
+
"@cosmjs/stargate": "0.31.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/events": "^3.0.0",
|
|
@@ -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
|
-
|
|
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][];
|