carbon-js-sdk 0.4.23 → 0.4.24

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/lib/util/gov.d.ts CHANGED
@@ -24,7 +24,10 @@ export declare enum ProposalTypes {
24
24
  DeregisterFromGroup = "/Switcheo.carbon.coin.DeregisterFromGroupProposal",
25
25
  DepositToGroup = "/Switcheo.carbon.coin.DepositToGroupProposal",
26
26
  WithdrawFromGroup = "/Switcheo.carbon.coin.WithdrawFromGroupProposal",
27
- UpdateGroupTokenConfig = "/Switcheo.carbon.coin.UpdateGroupTokenConfigProposal"
27
+ UpdateGroupTokenConfig = "/Switcheo.carbon.coin.UpdateGroupTokenConfigProposal",
28
+ CreateAlliance = "/alliance.alliance.MsgCreateAllianceProposal",
29
+ UpdateAlliance = "/alliance.alliance.MsgUpdateAllianceProposal",
30
+ DeleteAlliance = "/alliance.alliance.MsgDeleteAllianceProposal"
28
31
  }
29
32
  export interface PropDecoded {
30
33
  typeUrl: string;
package/lib/util/gov.js CHANGED
@@ -34,6 +34,9 @@ var ProposalTypes;
34
34
  ProposalTypes["DepositToGroup"] = "/Switcheo.carbon.coin.DepositToGroupProposal";
35
35
  ProposalTypes["WithdrawFromGroup"] = "/Switcheo.carbon.coin.WithdrawFromGroupProposal";
36
36
  ProposalTypes["UpdateGroupTokenConfig"] = "/Switcheo.carbon.coin.UpdateGroupTokenConfigProposal";
37
+ ProposalTypes["CreateAlliance"] = "/alliance.alliance.MsgCreateAllianceProposal";
38
+ ProposalTypes["UpdateAlliance"] = "/alliance.alliance.MsgUpdateAllianceProposal";
39
+ ProposalTypes["DeleteAlliance"] = "/alliance.alliance.MsgDeleteAllianceProposal";
37
40
  })(ProposalTypes = exports.ProposalTypes || (exports.ProposalTypes = {}));
38
41
  exports.emptyProposal = {
39
42
  typeUrl: "",
@@ -80,6 +83,12 @@ const decodeContent = (content) => {
80
83
  return Object.assign(Object.assign({}, content), { value: codec_1.UpdateMarketProposal.decode(content.value) });
81
84
  case ProposalTypes.ClientUpdateProposal:
82
85
  return Object.assign(Object.assign({}, content), { value: client_1.ClientUpdateProposal.decode(content.value) });
86
+ case ProposalTypes.CreateAlliance:
87
+ return Object.assign(Object.assign({}, content), { value: codec_1.MsgCreateAllianceProposal.decode(content.value) });
88
+ case ProposalTypes.UpdateAlliance:
89
+ return Object.assign(Object.assign({}, content), { value: codec_1.MsgUpdateAllianceProposal.decode(content.value) });
90
+ case ProposalTypes.DeleteAlliance:
91
+ return Object.assign(Object.assign({}, content), { value: codec_1.MsgDeleteAllianceProposal.decode(content.value) });
83
92
  default:
84
93
  return exports.emptyProposal;
85
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",