@iconlake/client 0.5.0 → 0.6.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 +1024 -963
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/types/iconlake.drop/module.d.ts +12 -1
- package/types/iconlake.drop/rest.d.ts +1 -0
- package/types/iconlake.drop/types/iconlake/drop/tx.d.ts +41 -0
- package/types/iconlake.icon/module.d.ts +10 -10
- package/types/index.d.ts +15 -7
package/package.json
CHANGED
|
@@ -5,7 +5,8 @@ import { IgniteClient } from "../client";
|
|
|
5
5
|
import { Api } from "./rest";
|
|
6
6
|
import { MsgInit } from "./types/iconlake/drop/tx";
|
|
7
7
|
import { MsgMint } from "./types/iconlake/drop/tx";
|
|
8
|
-
|
|
8
|
+
import { MsgUpdateParams } from "./types/iconlake/drop/tx";
|
|
9
|
+
export { MsgInit, MsgMint, MsgUpdateParams };
|
|
9
10
|
type sendMsgInitParams = {
|
|
10
11
|
value: MsgInit;
|
|
11
12
|
fee?: StdFee;
|
|
@@ -16,12 +17,20 @@ type sendMsgMintParams = {
|
|
|
16
17
|
fee?: StdFee;
|
|
17
18
|
memo?: string;
|
|
18
19
|
};
|
|
20
|
+
type sendMsgUpdateParamsParams = {
|
|
21
|
+
value: MsgUpdateParams;
|
|
22
|
+
fee?: StdFee;
|
|
23
|
+
memo?: string;
|
|
24
|
+
};
|
|
19
25
|
type msgInitParams = {
|
|
20
26
|
value: MsgInit;
|
|
21
27
|
};
|
|
22
28
|
type msgMintParams = {
|
|
23
29
|
value: MsgMint;
|
|
24
30
|
};
|
|
31
|
+
type msgUpdateParamsParams = {
|
|
32
|
+
value: MsgUpdateParams;
|
|
33
|
+
};
|
|
25
34
|
export declare const registry: Registry;
|
|
26
35
|
interface TxClientOptions {
|
|
27
36
|
addr: string;
|
|
@@ -31,8 +40,10 @@ interface TxClientOptions {
|
|
|
31
40
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
32
41
|
sendMsgInit({ value, fee, memo }: sendMsgInitParams): Promise<DeliverTxResponse>;
|
|
33
42
|
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
43
|
+
sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
|
|
34
44
|
msgInit({ value }: msgInitParams): EncodeObject;
|
|
35
45
|
msgMint({ value }: msgMintParams): EncodeObject;
|
|
46
|
+
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
|
|
36
47
|
};
|
|
37
48
|
interface QueryClientOptions {
|
|
38
49
|
addr: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Coin } from "../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { Params } from "./params";
|
|
3
4
|
export declare const protobufPackage = "iconlake.drop";
|
|
4
5
|
export interface MsgMint {
|
|
5
6
|
creator: string;
|
|
@@ -13,6 +14,12 @@ export interface MsgInit {
|
|
|
13
14
|
creator: string;
|
|
14
15
|
address: string;
|
|
15
16
|
}
|
|
17
|
+
export interface MsgUpdateParams {
|
|
18
|
+
authority: string;
|
|
19
|
+
params: Params | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface MsgUpdateParamsResponse {
|
|
22
|
+
}
|
|
16
23
|
export declare const MsgMint: {
|
|
17
24
|
encode(message: MsgMint, writer?: _m0.Writer): _m0.Writer;
|
|
18
25
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMint;
|
|
@@ -70,16 +77,50 @@ export declare const MsgInit: {
|
|
|
70
77
|
address?: string;
|
|
71
78
|
} & { [K in Exclude<keyof I, keyof MsgInit>]: never; }>(object: I): MsgInit;
|
|
72
79
|
};
|
|
80
|
+
export declare const MsgUpdateParams: {
|
|
81
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
82
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
|
|
83
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
84
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
85
|
+
fromPartial<I extends {
|
|
86
|
+
authority?: string;
|
|
87
|
+
params?: {
|
|
88
|
+
initAmount?: number;
|
|
89
|
+
minAmountPerMint?: number;
|
|
90
|
+
maxAmountPerMint?: number;
|
|
91
|
+
};
|
|
92
|
+
} & {
|
|
93
|
+
authority?: string;
|
|
94
|
+
params?: {
|
|
95
|
+
initAmount?: number;
|
|
96
|
+
minAmountPerMint?: number;
|
|
97
|
+
maxAmountPerMint?: number;
|
|
98
|
+
} & {
|
|
99
|
+
initAmount?: number;
|
|
100
|
+
minAmountPerMint?: number;
|
|
101
|
+
maxAmountPerMint?: number;
|
|
102
|
+
} & { [K in Exclude<keyof I["params"], keyof Params>]: never; };
|
|
103
|
+
} & { [K_1 in Exclude<keyof I, keyof MsgUpdateParams>]: never; }>(object: I): MsgUpdateParams;
|
|
104
|
+
};
|
|
105
|
+
export declare const MsgUpdateParamsResponse: {
|
|
106
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
107
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
|
|
108
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
109
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
110
|
+
fromPartial<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(_: I): MsgUpdateParamsResponse;
|
|
111
|
+
};
|
|
73
112
|
/** Msg defines the Msg service. */
|
|
74
113
|
export interface Msg {
|
|
75
114
|
Mint(request: MsgMint): Promise<MsgMintResponse>;
|
|
76
115
|
Init(request: MsgInit): Promise<MsgMintResponse>;
|
|
116
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
77
117
|
}
|
|
78
118
|
export declare class MsgClientImpl implements Msg {
|
|
79
119
|
private readonly rpc;
|
|
80
120
|
constructor(rpc: Rpc);
|
|
81
121
|
Mint(request: MsgMint): Promise<MsgMintResponse>;
|
|
82
122
|
Init(request: MsgInit): Promise<MsgMintResponse>;
|
|
123
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
83
124
|
}
|
|
84
125
|
interface Rpc {
|
|
85
126
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,15 +3,10 @@ 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
7
|
import { MsgBurn } from "./types/iconlake/icon/tx";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
value: MsgMint;
|
|
12
|
-
fee?: StdFee;
|
|
13
|
-
memo?: string;
|
|
14
|
-
};
|
|
8
|
+
import { MsgMint } from "./types/iconlake/icon/tx";
|
|
9
|
+
export { MsgUpdateClass, MsgBurn, MsgMint };
|
|
15
10
|
type sendMsgUpdateClassParams = {
|
|
16
11
|
value: MsgUpdateClass;
|
|
17
12
|
fee?: StdFee;
|
|
@@ -22,8 +17,10 @@ type sendMsgBurnParams = {
|
|
|
22
17
|
fee?: StdFee;
|
|
23
18
|
memo?: string;
|
|
24
19
|
};
|
|
25
|
-
type
|
|
20
|
+
type sendMsgMintParams = {
|
|
26
21
|
value: MsgMint;
|
|
22
|
+
fee?: StdFee;
|
|
23
|
+
memo?: string;
|
|
27
24
|
};
|
|
28
25
|
type msgUpdateClassParams = {
|
|
29
26
|
value: MsgUpdateClass;
|
|
@@ -31,6 +28,9 @@ type msgUpdateClassParams = {
|
|
|
31
28
|
type msgBurnParams = {
|
|
32
29
|
value: MsgBurn;
|
|
33
30
|
};
|
|
31
|
+
type msgMintParams = {
|
|
32
|
+
value: MsgMint;
|
|
33
|
+
};
|
|
34
34
|
export declare const registry: Registry;
|
|
35
35
|
interface TxClientOptions {
|
|
36
36
|
addr: string;
|
|
@@ -38,12 +38,12 @@ interface TxClientOptions {
|
|
|
38
38
|
signer?: OfflineSigner;
|
|
39
39
|
}
|
|
40
40
|
export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
|
|
41
|
-
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
42
41
|
sendMsgUpdateClass({ value, fee, memo }: sendMsgUpdateClassParams): Promise<DeliverTxResponse>;
|
|
43
42
|
sendMsgBurn({ value, fee, memo }: sendMsgBurnParams): Promise<DeliverTxResponse>;
|
|
44
|
-
|
|
43
|
+
sendMsgMint({ value, fee, memo }: sendMsgMintParams): Promise<DeliverTxResponse>;
|
|
45
44
|
msgUpdateClass({ value }: msgUpdateClassParams): EncodeObject;
|
|
46
45
|
msgBurn({ value }: msgBurnParams): EncodeObject;
|
|
46
|
+
msgMint({ value }: msgMintParams): EncodeObject;
|
|
47
47
|
};
|
|
48
48
|
interface QueryClientOptions {
|
|
49
49
|
addr: string;
|
package/types/index.d.ts
CHANGED
|
@@ -661,12 +661,20 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
661
661
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
662
662
|
memo?: string;
|
|
663
663
|
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
664
|
+
sendMsgUpdateParams({ value, fee, memo }: {
|
|
665
|
+
value: import("./iconlake.drop/module").MsgUpdateParams;
|
|
666
|
+
fee?: import("@cosmjs/launchpad").StdFee;
|
|
667
|
+
memo?: string;
|
|
668
|
+
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
664
669
|
msgInit({ value }: {
|
|
665
670
|
value: import("./iconlake.drop/module").MsgInit;
|
|
666
671
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
667
672
|
msgMint({ value }: {
|
|
668
673
|
value: import("./iconlake.drop/module").MsgMint;
|
|
669
674
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
675
|
+
msgUpdateParams({ value }: {
|
|
676
|
+
value: import("./iconlake.drop/module").MsgUpdateParams;
|
|
677
|
+
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
670
678
|
};
|
|
671
679
|
structure: Record<string, unknown>;
|
|
672
680
|
registry: [string, import("@cosmjs/proto-signing").GeneratedType][];
|
|
@@ -676,11 +684,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
676
684
|
IconlakeIcon: {
|
|
677
685
|
query: import("./iconlake.icon/rest").Api<unknown>;
|
|
678
686
|
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
687
|
sendMsgUpdateClass({ value, fee, memo }: {
|
|
685
688
|
value: import("./iconlake.icon/module").MsgUpdateClass;
|
|
686
689
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
@@ -691,15 +694,20 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
691
694
|
fee?: import("@cosmjs/launchpad").StdFee;
|
|
692
695
|
memo?: string;
|
|
693
696
|
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
694
|
-
|
|
697
|
+
sendMsgMint({ value, fee, memo }: {
|
|
695
698
|
value: import("./iconlake.icon/module").MsgMint;
|
|
696
|
-
|
|
699
|
+
fee?: import("@cosmjs/launchpad").StdFee;
|
|
700
|
+
memo?: string;
|
|
701
|
+
}): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
697
702
|
msgUpdateClass({ value }: {
|
|
698
703
|
value: import("./iconlake.icon/module").MsgUpdateClass;
|
|
699
704
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
700
705
|
msgBurn({ value }: {
|
|
701
706
|
value: import("./iconlake.icon/module").MsgBurn;
|
|
702
707
|
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
708
|
+
msgMint({ value }: {
|
|
709
|
+
value: import("./iconlake.icon/module").MsgMint;
|
|
710
|
+
}): import("@cosmjs/proto-signing").EncodeObject;
|
|
703
711
|
};
|
|
704
712
|
structure: Record<string, unknown>;
|
|
705
713
|
registry: [string, import("@cosmjs/proto-signing").GeneratedType][];
|