carbon-js-sdk 0.3.52 → 0.3.53-dev.1

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.
Files changed (116) hide show
  1. package/lib/CarbonSDK.js +1 -1
  2. package/lib/clients/ETHClient.d.ts +11 -4
  3. package/lib/clients/ETHClient.js +20 -6
  4. package/lib/clients/HydrogenClient.d.ts +16 -7
  5. package/lib/clients/HydrogenClient.js +55 -9
  6. package/lib/clients/NEOClient.d.ts +1 -1
  7. package/lib/clients/NEOClient.js +9 -4
  8. package/lib/clients/TokenClient.d.ts +17 -4
  9. package/lib/clients/TokenClient.js +121 -8
  10. package/lib/clients/ZILClient.d.ts +1 -1
  11. package/lib/clients/ZILClient.js +9 -4
  12. package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +18 -0
  13. package/lib/codec/cosmos/app/module/v1alpha1/module.js +46 -0
  14. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +57 -0
  15. package/lib/codec/cosmos/app/v1alpha1/config.js +125 -0
  16. package/lib/codec/cosmos/app/v1alpha1/export.d.ts +3 -0
  17. package/lib/codec/cosmos/app/v1alpha1/export.js +13 -0
  18. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +109 -0
  19. package/lib/codec/cosmos/app/v1alpha1/module.js +192 -0
  20. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +44 -0
  21. package/lib/codec/cosmos/app/v1alpha1/query.js +107 -0
  22. package/lib/codec/cosmos/authz/v1beta1/export.d.ts +4 -0
  23. package/lib/codec/cosmos/authz/v1beta1/export.js +25 -0
  24. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +42 -0
  25. package/lib/codec/cosmos/base/node/v1beta1/query.js +104 -0
  26. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +67 -0
  27. package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +423 -0
  28. package/lib/codec/cosmos/capability/v1beta1/export.d.ts +2 -0
  29. package/lib/codec/cosmos/capability/v1beta1/export.js +9 -0
  30. package/lib/codec/cosmos/crisis/v1beta1/export.d.ts +1 -0
  31. package/lib/codec/cosmos/crisis/v1beta1/export.js +6 -0
  32. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +32 -0
  33. package/lib/codec/cosmos/crypto/hd/v1/hd.js +114 -0
  34. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +78 -0
  35. package/lib/codec/cosmos/crypto/keyring/v1/record.js +309 -0
  36. package/lib/codec/cosmos/evidence/v1beta1/export.d.ts +3 -0
  37. package/lib/codec/cosmos/evidence/v1beta1/export.js +13 -0
  38. package/lib/codec/cosmos/feegrant/v1beta1/export.d.ts +3 -0
  39. package/lib/codec/cosmos/feegrant/v1beta1/export.js +20 -0
  40. package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
  41. package/lib/codec/cosmos/gov/v1/export.js +46 -0
  42. package/lib/codec/cosmos/gov/v1/genesis.d.ts +34 -0
  43. package/lib/codec/cosmos/gov/v1/genesis.js +166 -0
  44. package/lib/codec/cosmos/gov/v1/gov.d.ts +198 -0
  45. package/lib/codec/cosmos/gov/v1/gov.js +855 -0
  46. package/lib/codec/cosmos/gov/v1/query.d.ts +264 -0
  47. package/lib/codec/cosmos/gov/v1/query.js +1045 -0
  48. package/lib/codec/cosmos/gov/v1/tx.d.ts +167 -0
  49. package/lib/codec/cosmos/gov/v1/tx.js +639 -0
  50. package/lib/codec/cosmos/group/v1/events.d.ts +124 -0
  51. package/lib/codec/cosmos/group/v1/events.js +480 -0
  52. package/lib/codec/cosmos/group/v1/export.d.ts +4 -0
  53. package/lib/codec/cosmos/group/v1/export.js +94 -0
  54. package/lib/codec/cosmos/group/v1/genesis.d.ts +45 -0
  55. package/lib/codec/cosmos/group/v1/genesis.js +176 -0
  56. package/lib/codec/cosmos/group/v1/query.d.ts +412 -0
  57. package/lib/codec/cosmos/group/v1/query.js +1648 -0
  58. package/lib/codec/cosmos/group/v1/tx.d.ts +483 -0
  59. package/lib/codec/cosmos/group/v1/tx.js +1840 -0
  60. package/lib/codec/cosmos/group/v1/types.d.ts +356 -0
  61. package/lib/codec/cosmos/group/v1/types.js +1306 -0
  62. package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -0
  63. package/lib/codec/cosmos/msg/v1/msg.js +14 -0
  64. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +48 -0
  65. package/lib/codec/cosmos/nft/v1beta1/event.js +227 -0
  66. package/lib/codec/cosmos/nft/v1beta1/export.d.ts +5 -0
  67. package/lib/codec/cosmos/nft/v1beta1/export.js +30 -0
  68. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +36 -0
  69. package/lib/codec/cosmos/nft/v1beta1/genesis.js +140 -0
  70. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +53 -0
  71. package/lib/codec/cosmos/nft/v1beta1/nft.js +233 -0
  72. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +206 -0
  73. package/lib/codec/cosmos/nft/v1beta1/query.js +817 -0
  74. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +49 -0
  75. package/lib/codec/cosmos/nft/v1beta1/tx.js +137 -0
  76. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +22 -0
  77. package/lib/codec/cosmos/orm/module/v1alpha1/module.js +46 -0
  78. package/lib/codec/cosmos/orm/v1/export.d.ts +1 -0
  79. package/lib/codec/cosmos/orm/v1/export.js +8 -0
  80. package/lib/codec/cosmos/orm/v1/orm.d.ts +123 -0
  81. package/lib/codec/cosmos/orm/v1/orm.js +263 -0
  82. package/lib/codec/cosmos/orm/v1alpha1/export.d.ts +1 -0
  83. package/lib/codec/cosmos/orm/v1alpha1/export.js +9 -0
  84. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +96 -0
  85. package/lib/codec/cosmos/orm/v1alpha1/schema.js +265 -0
  86. package/lib/codec/cosmos/upgrade/v1beta1/export.d.ts +3 -0
  87. package/lib/codec/cosmos/upgrade/v1beta1/export.js +24 -0
  88. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +97 -0
  89. package/lib/codec/cosmos/upgrade/v1beta1/tx.js +203 -0
  90. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +24 -0
  91. package/lib/codec/ibc/applications/fee/v1/ack.js +125 -0
  92. package/lib/codec/ibc/applications/fee/v1/export.d.ts +6 -0
  93. package/lib/codec/ibc/applications/fee/v1/export.js +47 -0
  94. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +68 -0
  95. package/lib/codec/ibc/applications/fee/v1/fee.js +289 -0
  96. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +93 -0
  97. package/lib/codec/ibc/applications/fee/v1/genesis.js +390 -0
  98. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +25 -0
  99. package/lib/codec/ibc/applications/fee/v1/metadata.js +71 -0
  100. package/lib/codec/ibc/applications/fee/v1/query.d.ts +312 -0
  101. package/lib/codec/ibc/applications/fee/v1/query.js +1187 -0
  102. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +171 -0
  103. package/lib/codec/ibc/applications/fee/v1/tx.js +524 -0
  104. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +78 -0
  105. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +296 -0
  106. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +80 -0
  107. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +439 -0
  108. package/lib/hydrogen/transfer.d.ts +5 -5
  109. package/lib/insights/competition.d.ts +1 -0
  110. package/lib/provider/metamask/MetaMask.d.ts +5 -5
  111. package/lib/provider/metamask/MetaMask.js +35 -35
  112. package/lib/util/blockchain.d.ts +9 -0
  113. package/lib/util/blockchain.js +143 -1
  114. package/lib/util/ibc.d.ts +4 -4
  115. package/lib/util/ibc.js +17 -18
  116. package/package.json +1 -1
@@ -0,0 +1,167 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Any } from "../../../google/protobuf/any";
4
+ import { VoteOption, WeightedVoteOption } from "./gov";
5
+ import { Coin } from "../../base/v1beta1/coin";
6
+ export declare const protobufPackage = "cosmos.gov.v1";
7
+ /** Since: cosmos-sdk 0.46 */
8
+ /**
9
+ * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
10
+ * proposal Content.
11
+ */
12
+ export interface MsgSubmitProposal {
13
+ messages: Any[];
14
+ initialDeposit: Coin[];
15
+ proposer: string;
16
+ /** metadata is any arbitrary metadata attached to the proposal. */
17
+ metadata: string;
18
+ }
19
+ /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
20
+ export interface MsgSubmitProposalResponse {
21
+ proposalId: Long;
22
+ }
23
+ /**
24
+ * MsgExecLegacyContent is used to wrap the legacy content field into a message.
25
+ * This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
26
+ */
27
+ export interface MsgExecLegacyContent {
28
+ /** content is the proposal's content. */
29
+ content?: Any;
30
+ /** authority must be the gov module address. */
31
+ authority: string;
32
+ }
33
+ /** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */
34
+ export interface MsgExecLegacyContentResponse {
35
+ }
36
+ /** MsgVote defines a message to cast a vote. */
37
+ export interface MsgVote {
38
+ proposalId: Long;
39
+ voter: string;
40
+ option: VoteOption;
41
+ metadata: string;
42
+ }
43
+ /** MsgVoteResponse defines the Msg/Vote response type. */
44
+ export interface MsgVoteResponse {
45
+ }
46
+ /** MsgVoteWeighted defines a message to cast a vote. */
47
+ export interface MsgVoteWeighted {
48
+ proposalId: Long;
49
+ voter: string;
50
+ options: WeightedVoteOption[];
51
+ metadata: string;
52
+ }
53
+ /** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */
54
+ export interface MsgVoteWeightedResponse {
55
+ }
56
+ /** MsgDeposit defines a message to submit a deposit to an existing proposal. */
57
+ export interface MsgDeposit {
58
+ proposalId: Long;
59
+ depositor: string;
60
+ amount: Coin[];
61
+ }
62
+ /** MsgDepositResponse defines the Msg/Deposit response type. */
63
+ export interface MsgDepositResponse {
64
+ }
65
+ export declare const MsgSubmitProposal: {
66
+ encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer;
67
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgSubmitProposal;
68
+ fromJSON(object: any): MsgSubmitProposal;
69
+ toJSON(message: MsgSubmitProposal): unknown;
70
+ fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal;
71
+ };
72
+ export declare const MsgSubmitProposalResponse: {
73
+ encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer;
74
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgSubmitProposalResponse;
75
+ fromJSON(object: any): MsgSubmitProposalResponse;
76
+ toJSON(message: MsgSubmitProposalResponse): unknown;
77
+ fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse;
78
+ };
79
+ export declare const MsgExecLegacyContent: {
80
+ encode(message: MsgExecLegacyContent, writer?: _m0.Writer): _m0.Writer;
81
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExecLegacyContent;
82
+ fromJSON(object: any): MsgExecLegacyContent;
83
+ toJSON(message: MsgExecLegacyContent): unknown;
84
+ fromPartial(object: DeepPartial<MsgExecLegacyContent>): MsgExecLegacyContent;
85
+ };
86
+ export declare const MsgExecLegacyContentResponse: {
87
+ encode(_: MsgExecLegacyContentResponse, writer?: _m0.Writer): _m0.Writer;
88
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExecLegacyContentResponse;
89
+ fromJSON(_: any): MsgExecLegacyContentResponse;
90
+ toJSON(_: MsgExecLegacyContentResponse): unknown;
91
+ fromPartial(_: DeepPartial<MsgExecLegacyContentResponse>): MsgExecLegacyContentResponse;
92
+ };
93
+ export declare const MsgVote: {
94
+ encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer;
95
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgVote;
96
+ fromJSON(object: any): MsgVote;
97
+ toJSON(message: MsgVote): unknown;
98
+ fromPartial(object: DeepPartial<MsgVote>): MsgVote;
99
+ };
100
+ export declare const MsgVoteResponse: {
101
+ encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer;
102
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgVoteResponse;
103
+ fromJSON(_: any): MsgVoteResponse;
104
+ toJSON(_: MsgVoteResponse): unknown;
105
+ fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse;
106
+ };
107
+ export declare const MsgVoteWeighted: {
108
+ encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer;
109
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgVoteWeighted;
110
+ fromJSON(object: any): MsgVoteWeighted;
111
+ toJSON(message: MsgVoteWeighted): unknown;
112
+ fromPartial(object: DeepPartial<MsgVoteWeighted>): MsgVoteWeighted;
113
+ };
114
+ export declare const MsgVoteWeightedResponse: {
115
+ encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer;
116
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgVoteWeightedResponse;
117
+ fromJSON(_: any): MsgVoteWeightedResponse;
118
+ toJSON(_: MsgVoteWeightedResponse): unknown;
119
+ fromPartial(_: DeepPartial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse;
120
+ };
121
+ export declare const MsgDeposit: {
122
+ encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer;
123
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDeposit;
124
+ fromJSON(object: any): MsgDeposit;
125
+ toJSON(message: MsgDeposit): unknown;
126
+ fromPartial(object: DeepPartial<MsgDeposit>): MsgDeposit;
127
+ };
128
+ export declare const MsgDepositResponse: {
129
+ encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer;
130
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDepositResponse;
131
+ fromJSON(_: any): MsgDepositResponse;
132
+ toJSON(_: MsgDepositResponse): unknown;
133
+ fromPartial(_: DeepPartial<MsgDepositResponse>): MsgDepositResponse;
134
+ };
135
+ /** Msg defines the gov Msg service. */
136
+ export interface Msg {
137
+ /** SubmitProposal defines a method to create new proposal given a content. */
138
+ SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
139
+ /**
140
+ * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
141
+ * to execute a legacy content-based proposal.
142
+ */
143
+ ExecLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
144
+ /** Vote defines a method to add a vote on a specific proposal. */
145
+ Vote(request: MsgVote): Promise<MsgVoteResponse>;
146
+ /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
147
+ VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
148
+ /** Deposit defines a method to add deposit on a specific proposal. */
149
+ Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
150
+ }
151
+ export declare class MsgClientImpl implements Msg {
152
+ private readonly rpc;
153
+ constructor(rpc: Rpc);
154
+ SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
155
+ ExecLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
156
+ Vote(request: MsgVote): Promise<MsgVoteResponse>;
157
+ VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
158
+ Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
159
+ }
160
+ interface Rpc {
161
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
162
+ }
163
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
164
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
165
+ [K in keyof T]?: DeepPartial<T[K]>;
166
+ } : Partial<T>;
167
+ export {};