@iconlake/client 0.3.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iconlake/client",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "iconLake Typescript Client",
5
5
  "author": "iconLake",
6
6
  "license": "Apache-2.0",
@@ -10,18 +10,19 @@
10
10
  "url": "http://www.apache.org/licenses/LICENSE-2.0"
11
11
  }
12
12
  ],
13
- "files": [
14
- "./dist",
15
- "./types",
16
- "./types.d.ts"
17
- ],
13
+ "files": ["./dist", "./types", "./types.d.ts"],
18
14
  "main": "./dist/index.umd.js",
19
15
  "module": "./dist/index.mjs",
20
16
  "types": "./types/index.d.ts",
21
17
  "publishConfig": {
22
18
  "access": "public"
23
19
  },
24
- "packageManager": "pnpm@8.6.12",
20
+ "scripts": {
21
+ "build-ts": "rm -rf ./types && export NODE_OPTIONS=--max-old-space-size=8192 && tsc",
22
+ "build-js": "vite build",
23
+ "build": "pnpm run build-ts && pnpm run build-js"
24
+ },
25
+ "packageManager": "pnpm@8.15.4",
25
26
  "dependencies": {
26
27
  "axios": "^0.21.4",
27
28
  "buffer": "^6.0.3",
@@ -49,10 +50,5 @@
49
50
  "./umd": "./dist/index.umd.js",
50
51
  "./cjs": "./dist/index.js",
51
52
  "./iife": "./dist/index.iife.js"
52
- },
53
- "scripts": {
54
- "build-ts": "rm -rf ./types && export NODE_OPTIONS=--max-old-space-size=8192 && tsc",
55
- "build-js": "vite build",
56
- "build": "pnpm run build-ts && pnpm run build-js"
57
53
  }
58
- }
54
+ }
@@ -3,12 +3,12 @@ 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 { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx";
7
- import { MsgExec } from "./types/cosmos/authz/v1beta1/tx";
8
6
  import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx";
9
- export { MsgRevoke, MsgExec, MsgGrant };
10
- type sendMsgRevokeParams = {
11
- value: MsgRevoke;
7
+ import { MsgExec } from "./types/cosmos/authz/v1beta1/tx";
8
+ import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx";
9
+ export { MsgGrant, MsgExec, MsgRevoke };
10
+ type sendMsgGrantParams = {
11
+ value: MsgGrant;
12
12
  fee?: StdFee;
13
13
  memo?: string;
14
14
  };
@@ -17,19 +17,19 @@ type sendMsgExecParams = {
17
17
  fee?: StdFee;
18
18
  memo?: string;
19
19
  };
20
- type sendMsgGrantParams = {
21
- value: MsgGrant;
20
+ type sendMsgRevokeParams = {
21
+ value: MsgRevoke;
22
22
  fee?: StdFee;
23
23
  memo?: string;
24
24
  };
25
- type msgRevokeParams = {
26
- value: MsgRevoke;
25
+ type msgGrantParams = {
26
+ value: MsgGrant;
27
27
  };
28
28
  type msgExecParams = {
29
29
  value: MsgExec;
30
30
  };
31
- type msgGrantParams = {
32
- value: MsgGrant;
31
+ type msgRevokeParams = {
32
+ value: MsgRevoke;
33
33
  };
34
34
  export declare const registry: Registry;
35
35
  interface TxClientOptions {
@@ -38,12 +38,12 @@ interface TxClientOptions {
38
38
  signer?: OfflineSigner;
39
39
  }
40
40
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
41
- sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise<DeliverTxResponse>;
42
- sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse>;
43
41
  sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise<DeliverTxResponse>;
44
- msgRevoke({ value }: msgRevokeParams): EncodeObject;
45
- msgExec({ value }: msgExecParams): EncodeObject;
42
+ sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise<DeliverTxResponse>;
43
+ sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise<DeliverTxResponse>;
46
44
  msgGrant({ value }: msgGrantParams): EncodeObject;
45
+ msgExec({ value }: msgExecParams): EncodeObject;
46
+ msgRevoke({ value }: msgRevokeParams): EncodeObject;
47
47
  };
48
48
  interface QueryClientOptions {
49
49
  addr: string;
@@ -3,20 +3,15 @@ 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 { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
7
- import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
8
- import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
9
6
  import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx";
7
+ import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx";
10
8
  import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx";
11
9
  import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx";
12
- export { MsgSetWithdrawAddress, MsgUpdateParams, MsgCommunityPoolSpend, MsgFundCommunityPool, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission };
13
- type sendMsgSetWithdrawAddressParams = {
14
- value: MsgSetWithdrawAddress;
15
- fee?: StdFee;
16
- memo?: string;
17
- };
18
- type sendMsgUpdateParamsParams = {
19
- value: MsgUpdateParams;
10
+ import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx";
11
+ import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx";
12
+ export { MsgFundCommunityPool, MsgCommunityPoolSpend, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgUpdateParams, MsgSetWithdrawAddress };
13
+ type sendMsgFundCommunityPoolParams = {
14
+ value: MsgFundCommunityPool;
20
15
  fee?: StdFee;
21
16
  memo?: string;
22
17
  };
@@ -25,11 +20,6 @@ type sendMsgCommunityPoolSpendParams = {
25
20
  fee?: StdFee;
26
21
  memo?: string;
27
22
  };
28
- type sendMsgFundCommunityPoolParams = {
29
- value: MsgFundCommunityPool;
30
- fee?: StdFee;
31
- memo?: string;
32
- };
33
23
  type sendMsgWithdrawDelegatorRewardParams = {
34
24
  value: MsgWithdrawDelegatorReward;
35
25
  fee?: StdFee;
@@ -40,24 +30,34 @@ type sendMsgWithdrawValidatorCommissionParams = {
40
30
  fee?: StdFee;
41
31
  memo?: string;
42
32
  };
43
- type msgSetWithdrawAddressParams = {
44
- value: MsgSetWithdrawAddress;
45
- };
46
- type msgUpdateParamsParams = {
33
+ type sendMsgUpdateParamsParams = {
47
34
  value: MsgUpdateParams;
35
+ fee?: StdFee;
36
+ memo?: string;
48
37
  };
49
- type msgCommunityPoolSpendParams = {
50
- value: MsgCommunityPoolSpend;
38
+ type sendMsgSetWithdrawAddressParams = {
39
+ value: MsgSetWithdrawAddress;
40
+ fee?: StdFee;
41
+ memo?: string;
51
42
  };
52
43
  type msgFundCommunityPoolParams = {
53
44
  value: MsgFundCommunityPool;
54
45
  };
46
+ type msgCommunityPoolSpendParams = {
47
+ value: MsgCommunityPoolSpend;
48
+ };
55
49
  type msgWithdrawDelegatorRewardParams = {
56
50
  value: MsgWithdrawDelegatorReward;
57
51
  };
58
52
  type msgWithdrawValidatorCommissionParams = {
59
53
  value: MsgWithdrawValidatorCommission;
60
54
  };
55
+ type msgUpdateParamsParams = {
56
+ value: MsgUpdateParams;
57
+ };
58
+ type msgSetWithdrawAddressParams = {
59
+ value: MsgSetWithdrawAddress;
60
+ };
61
61
  export declare const registry: Registry;
62
62
  interface TxClientOptions {
63
63
  addr: string;
@@ -65,18 +65,18 @@ interface TxClientOptions {
65
65
  signer?: OfflineSigner;
66
66
  }
67
67
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
68
- sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse>;
69
- sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
70
- sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse>;
71
68
  sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise<DeliverTxResponse>;
69
+ sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise<DeliverTxResponse>;
72
70
  sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise<DeliverTxResponse>;
73
71
  sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise<DeliverTxResponse>;
74
- msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject;
75
- msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
76
- msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject;
72
+ sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
73
+ sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise<DeliverTxResponse>;
77
74
  msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject;
75
+ msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject;
78
76
  msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject;
79
77
  msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject;
78
+ msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
79
+ msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject;
80
80
  };
81
81
  interface QueryClientOptions {
82
82
  addr: string;
@@ -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 { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx";
7
6
  import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx";
8
- export { MsgGrantAllowance, MsgRevokeAllowance };
9
- type sendMsgGrantAllowanceParams = {
10
- value: MsgGrantAllowance;
11
- fee?: StdFee;
12
- memo?: string;
13
- };
7
+ import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx";
8
+ export { MsgRevokeAllowance, MsgGrantAllowance };
14
9
  type sendMsgRevokeAllowanceParams = {
15
10
  value: MsgRevokeAllowance;
16
11
  fee?: StdFee;
17
12
  memo?: string;
18
13
  };
19
- type msgGrantAllowanceParams = {
14
+ type sendMsgGrantAllowanceParams = {
20
15
  value: MsgGrantAllowance;
16
+ fee?: StdFee;
17
+ memo?: string;
21
18
  };
22
19
  type msgRevokeAllowanceParams = {
23
20
  value: MsgRevokeAllowance;
24
21
  };
22
+ type msgGrantAllowanceParams = {
23
+ value: MsgGrantAllowance;
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
- sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise<DeliverTxResponse>;
33
32
  sendMsgRevokeAllowance({ value, fee, memo }: sendMsgRevokeAllowanceParams): Promise<DeliverTxResponse>;
34
- msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject;
33
+ sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise<DeliverTxResponse>;
35
34
  msgRevokeAllowance({ value }: msgRevokeAllowanceParams): EncodeObject;
35
+ msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject;
36
36
  };
37
37
  interface QueryClientOptions {
38
38
  addr: string;
@@ -3,14 +3,14 @@ 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 { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
7
- import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
8
6
  import { MsgVote } from "./types/cosmos/gov/v1/tx";
9
- import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
7
+ import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
8
+ import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
10
9
  import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
11
- export { MsgSubmitProposal, MsgVoteWeighted, MsgVote, MsgDeposit, MsgUpdateParams };
12
- type sendMsgSubmitProposalParams = {
13
- value: MsgSubmitProposal;
10
+ import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
11
+ export { MsgVote, MsgVoteWeighted, MsgSubmitProposal, MsgUpdateParams, MsgDeposit };
12
+ type sendMsgVoteParams = {
13
+ value: MsgVote;
14
14
  fee?: StdFee;
15
15
  memo?: string;
16
16
  };
@@ -19,36 +19,36 @@ type sendMsgVoteWeightedParams = {
19
19
  fee?: StdFee;
20
20
  memo?: string;
21
21
  };
22
- type sendMsgVoteParams = {
23
- value: MsgVote;
22
+ type sendMsgSubmitProposalParams = {
23
+ value: MsgSubmitProposal;
24
24
  fee?: StdFee;
25
25
  memo?: string;
26
26
  };
27
- type sendMsgDepositParams = {
28
- value: MsgDeposit;
27
+ type sendMsgUpdateParamsParams = {
28
+ value: MsgUpdateParams;
29
29
  fee?: StdFee;
30
30
  memo?: string;
31
31
  };
32
- type sendMsgUpdateParamsParams = {
33
- value: MsgUpdateParams;
32
+ type sendMsgDepositParams = {
33
+ value: MsgDeposit;
34
34
  fee?: StdFee;
35
35
  memo?: string;
36
36
  };
37
- type msgSubmitProposalParams = {
38
- value: MsgSubmitProposal;
37
+ type msgVoteParams = {
38
+ value: MsgVote;
39
39
  };
40
40
  type msgVoteWeightedParams = {
41
41
  value: MsgVoteWeighted;
42
42
  };
43
- type msgVoteParams = {
44
- value: MsgVote;
45
- };
46
- type msgDepositParams = {
47
- value: MsgDeposit;
43
+ type msgSubmitProposalParams = {
44
+ value: MsgSubmitProposal;
48
45
  };
49
46
  type msgUpdateParamsParams = {
50
47
  value: MsgUpdateParams;
51
48
  };
49
+ type msgDepositParams = {
50
+ value: MsgDeposit;
51
+ };
52
52
  export declare const registry: Registry;
53
53
  interface TxClientOptions {
54
54
  addr: string;
@@ -56,16 +56,16 @@ interface TxClientOptions {
56
56
  signer?: OfflineSigner;
57
57
  }
58
58
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
59
- sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
60
- sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
61
59
  sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
62
- sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
60
+ sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
61
+ sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
63
62
  sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse>;
64
- msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
65
- msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
63
+ sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
66
64
  msgVote({ value }: msgVoteParams): EncodeObject;
67
- msgDeposit({ value }: msgDepositParams): EncodeObject;
65
+ msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
66
+ msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
68
67
  msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject;
68
+ msgDeposit({ value }: msgDepositParams): EncodeObject;
69
69
  };
70
70
  interface QueryClientOptions {
71
71
  addr: string;
@@ -4,15 +4,20 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr
4
4
  import { IgniteClient } from "../client";
5
5
  import { Api } from "./rest";
6
6
  import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx";
7
+ import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
7
8
  import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx";
8
9
  import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx";
9
- import { MsgVote } from "./types/cosmos/gov/v1beta1/tx";
10
- export { MsgSubmitProposal, MsgVoteWeighted, MsgDeposit, MsgVote };
10
+ export { MsgSubmitProposal, MsgVote, MsgVoteWeighted, MsgDeposit };
11
11
  type sendMsgSubmitProposalParams = {
12
12
  value: MsgSubmitProposal;
13
13
  fee?: StdFee;
14
14
  memo?: string;
15
15
  };
16
+ type sendMsgVoteParams = {
17
+ value: MsgVote;
18
+ fee?: StdFee;
19
+ memo?: string;
20
+ };
16
21
  type sendMsgVoteWeightedParams = {
17
22
  value: MsgVoteWeighted;
18
23
  fee?: StdFee;
@@ -23,23 +28,18 @@ type sendMsgDepositParams = {
23
28
  fee?: StdFee;
24
29
  memo?: string;
25
30
  };
26
- type sendMsgVoteParams = {
27
- value: MsgVote;
28
- fee?: StdFee;
29
- memo?: string;
30
- };
31
31
  type msgSubmitProposalParams = {
32
32
  value: MsgSubmitProposal;
33
33
  };
34
+ type msgVoteParams = {
35
+ value: MsgVote;
36
+ };
34
37
  type msgVoteWeightedParams = {
35
38
  value: MsgVoteWeighted;
36
39
  };
37
40
  type msgDepositParams = {
38
41
  value: MsgDeposit;
39
42
  };
40
- type msgVoteParams = {
41
- value: MsgVote;
42
- };
43
43
  export declare const registry: Registry;
44
44
  interface TxClientOptions {
45
45
  addr: string;
@@ -48,13 +48,13 @@ interface TxClientOptions {
48
48
  }
49
49
  export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => {
50
50
  sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse>;
51
+ sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
51
52
  sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse>;
52
53
  sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse>;
53
- sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse>;
54
54
  msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject;
55
+ msgVote({ value }: msgVoteParams): EncodeObject;
55
56
  msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject;
56
57
  msgDeposit({ value }: msgDepositParams): EncodeObject;
57
- msgVote({ value }: msgVoteParams): EncodeObject;
58
58
  };
59
59
  interface QueryClientOptions {
60
60
  addr: string;