@iconlake/client 0.1.13 → 0.2.0
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 +38 -38
- 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/module.d.ts +10 -10
- package/types/index.d.ts +14 -14
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
|
};
|
|
@@ -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/icon/tx";
|
|
7
6
|
import { MsgUpdateClass } from "./types/iconlake/icon/tx";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
value: MsgMint;
|
|
11
|
-
fee?: StdFee;
|
|
12
|
-
memo?: string;
|
|
13
|
-
};
|
|
7
|
+
import { MsgMint } from "./types/iconlake/icon/tx";
|
|
8
|
+
export { MsgUpdateClass, MsgMint };
|
|
14
9
|
type sendMsgUpdateClassParams = {
|
|
15
10
|
value: MsgUpdateClass;
|
|
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 msgUpdateClassParams = {
|
|
23
20
|
value: MsgUpdateClass;
|
|
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
|
sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
|
|
34
|
-
|
|
33
|
+
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
35
34
|
msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
|
|
35
|
+
msgMint({ value }: msgMintParams): EncodeObject;
|
|
36
36
|
};
|
|
37
37
|
interface QueryClientOptions {
|
|
38
38
|
addr: string;
|
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][];
|
|
@@ -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
|
-
sendMsgMint({ value, fee, memo }: {
|
|
680
|
-
value: import("./iconlake.icon/module").MsgMint;
|
|
681
|
-
fee?: import("@cosmjs/launchpad").StdFee;
|
|
682
|
-
memo?: string;
|
|
683
|
-
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
684
679
|
sendMsgUpdateClass({ value, fee, memo }: {
|
|
685
680
|
value: import("./iconlake.icon/module").MsgUpdateClass;
|
|
686
681
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
687
682
|
memo?: string;
|
|
688
683
|
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
689
|
-
|
|
684
|
+
sendMsgMint({ value, fee, memo }: {
|
|
690
685
|
value: import("./iconlake.icon/module").MsgMint;
|
|
691
|
-
|
|
686
|
+
fee?: import("@cosmjs/launchpad").StdFee;
|
|
687
|
+
memo?: string;
|
|
688
|
+
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
692
689
|
msgUpdateClass({ value }: {
|
|
693
690
|
value: import("./iconlake.icon/module").MsgUpdateClass;
|
|
694
691
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
692
|
+
msgMint({ value }: {
|
|
693
|
+
value: import("./iconlake.icon/module").MsgMint;
|
|
694
|
+
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
695
695
|
};
|
|
696
696
|
structure: Record<string, unknown>;
|
|
697
697
|
registry: [string, import("@cosmjs/proto-signing").GeneratedType][];
|