@initia/initia.js 0.0.30 → 0.0.31

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 (66) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.node.js +1 -1
  4. package/dist/bundle.node.js.map +1 -1
  5. package/dist/client/lcd/LCDClient.d.ts +2 -2
  6. package/dist/client/lcd/LCDClient.js +1 -1
  7. package/dist/client/lcd/LCDClient.js.map +1 -1
  8. package/dist/client/lcd/LCDUtils.d.ts +1 -1
  9. package/dist/client/lcd/LCDUtils.js +1 -1
  10. package/dist/client/lcd/LCDUtils.js.map +1 -1
  11. package/dist/client/lcd/api/MoveAPI.d.ts +2 -0
  12. package/dist/client/lcd/api/MoveAPI.js +2 -0
  13. package/dist/client/lcd/api/MoveAPI.js.map +1 -1
  14. package/dist/client/lcd/api/MstakingAPI.d.ts +97 -0
  15. package/dist/client/lcd/api/MstakingAPI.js +294 -0
  16. package/dist/client/lcd/api/MstakingAPI.js.map +1 -0
  17. package/dist/client/lcd/api/index.d.ts +1 -1
  18. package/dist/client/lcd/api/index.js +1 -1
  19. package/dist/client/lcd/api/index.js.map +1 -1
  20. package/dist/core/Msg.d.ts +5 -5
  21. package/dist/core/Msg.js +9 -9
  22. package/dist/core/Msg.js.map +1 -1
  23. package/dist/core/index.d.ts +5 -5
  24. package/dist/core/index.js +6 -6
  25. package/dist/core/index.js.map +1 -1
  26. package/dist/core/move/msgs/MsgExecute.d.ts +1 -1
  27. package/dist/core/move/msgs/MsgExecute.js +1 -1
  28. package/dist/core/move/msgs/MsgPublish.d.ts +8 -3
  29. package/dist/core/move/msgs/MsgPublish.js +16 -11
  30. package/dist/core/move/msgs/MsgPublish.js.map +1 -1
  31. package/dist/core/move/msgs/MsgScript.d.ts +2 -2
  32. package/dist/core/move/msgs/MsgScript.js +2 -2
  33. package/dist/core/mstaking/Delegation.d.ts +45 -0
  34. package/dist/core/mstaking/Delegation.js +89 -0
  35. package/dist/core/mstaking/Delegation.js.map +1 -0
  36. package/dist/core/mstaking/Redelegation.d.ts +97 -0
  37. package/dist/core/mstaking/Redelegation.js +174 -0
  38. package/dist/core/mstaking/Redelegation.js.map +1 -0
  39. package/dist/core/mstaking/UnbondingDelegation.d.ts +75 -0
  40. package/dist/core/mstaking/UnbondingDelegation.js +143 -0
  41. package/dist/core/mstaking/UnbondingDelegation.js.map +1 -0
  42. package/dist/core/mstaking/Validator.d.ts +173 -0
  43. package/dist/core/mstaking/Validator.js +287 -0
  44. package/dist/core/mstaking/Validator.js.map +1 -0
  45. package/dist/core/mstaking/msgs/MsgBeginRedelegate.d.ts +51 -0
  46. package/dist/core/mstaking/msgs/MsgBeginRedelegate.js +99 -0
  47. package/dist/core/mstaking/msgs/MsgBeginRedelegate.js.map +1 -0
  48. package/dist/core/mstaking/msgs/MsgCreateValidator.d.ts +60 -0
  49. package/dist/core/mstaking/msgs/MsgCreateValidator.js +110 -0
  50. package/dist/core/mstaking/msgs/MsgCreateValidator.js.map +1 -0
  51. package/dist/core/mstaking/msgs/MsgDelegate.d.ts +46 -0
  52. package/dist/core/mstaking/msgs/MsgDelegate.js +93 -0
  53. package/dist/core/mstaking/msgs/MsgDelegate.js.map +1 -0
  54. package/dist/core/mstaking/msgs/MsgEditValidator.d.ts +50 -0
  55. package/dist/core/mstaking/msgs/MsgEditValidator.js +111 -0
  56. package/dist/core/mstaking/msgs/MsgEditValidator.js.map +1 -0
  57. package/dist/core/mstaking/msgs/MsgUndelegate.d.ts +46 -0
  58. package/dist/core/mstaking/msgs/MsgUndelegate.js +93 -0
  59. package/dist/core/mstaking/msgs/MsgUndelegate.js.map +1 -0
  60. package/dist/core/mstaking/msgs/index.d.ts +16 -0
  61. package/dist/core/mstaking/msgs/index.js +22 -0
  62. package/dist/core/mstaking/msgs/index.js.map +1 -0
  63. package/dist/core/params/proposals/ParameterChangeProposal.d.ts +1 -5
  64. package/dist/core/params/proposals/ParameterChangeProposal.js +1 -5
  65. package/dist/core/params/proposals/ParameterChangeProposal.js.map +1 -1
  66. package/package.json +2 -2
@@ -0,0 +1,46 @@
1
+ import { Coins } from '../../Coins';
2
+ import { JSONSerializable } from '../../../util/json';
3
+ import { AccAddress, ValAddress } from '../../bech32';
4
+ import { Any } from '@initia/initia.proto/google/protobuf/any';
5
+ import { MsgDelegate as MsgDelegate_pb } from '@initia/initia.proto/initia/mstaking/v1/tx';
6
+ /**
7
+ * A delegator can submit this message to send more Initia to be staked through a
8
+ * validator delegate.
9
+ */
10
+ export declare class MsgDelegate extends JSONSerializable<MsgDelegate.Amino, MsgDelegate.Data, MsgDelegate.Proto> {
11
+ delegator_address: AccAddress;
12
+ validator_address: ValAddress;
13
+ amount: Coins;
14
+ /**
15
+ *
16
+ * @param delegator_address delegator's account address
17
+ * @param validator_address validator's operator address
18
+ * @param amount amount of INIT to be sent for delegation
19
+ */
20
+ constructor(delegator_address: AccAddress, validator_address: ValAddress, amount: Coins.Input);
21
+ static fromAmino(data: MsgDelegate.Amino): MsgDelegate;
22
+ toAmino(): MsgDelegate.Amino;
23
+ static fromProto(proto: MsgDelegate.Proto): MsgDelegate;
24
+ toProto(): MsgDelegate.Proto;
25
+ packAny(): Any;
26
+ static unpackAny(msgAny: Any): MsgDelegate;
27
+ static fromData(data: MsgDelegate.Data): MsgDelegate;
28
+ toData(): MsgDelegate.Data;
29
+ }
30
+ export declare namespace MsgDelegate {
31
+ interface Amino {
32
+ type: 'mstaking/MsgDelegate';
33
+ value: {
34
+ delegator_address: AccAddress;
35
+ validator_address: ValAddress;
36
+ amount: Coins.Amino;
37
+ };
38
+ }
39
+ interface Data {
40
+ '@type': '/initia.mstaking.v1.MsgDelegate';
41
+ delegator_address: AccAddress;
42
+ validator_address: ValAddress;
43
+ amount: Coins.Data;
44
+ }
45
+ type Proto = MsgDelegate_pb;
46
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MsgDelegate = void 0;
19
+ var Coins_1 = require("../../Coins");
20
+ var json_1 = require("../../../util/json");
21
+ var any_1 = require("@initia/initia.proto/google/protobuf/any");
22
+ var tx_1 = require("@initia/initia.proto/initia/mstaking/v1/tx");
23
+ /**
24
+ * A delegator can submit this message to send more Initia to be staked through a
25
+ * validator delegate.
26
+ */
27
+ var MsgDelegate = /** @class */ (function (_super) {
28
+ __extends(MsgDelegate, _super);
29
+ /**
30
+ *
31
+ * @param delegator_address delegator's account address
32
+ * @param validator_address validator's operator address
33
+ * @param amount amount of INIT to be sent for delegation
34
+ */
35
+ function MsgDelegate(delegator_address, validator_address, amount) {
36
+ var _this = _super.call(this) || this;
37
+ _this.delegator_address = delegator_address;
38
+ _this.validator_address = validator_address;
39
+ _this.amount = new Coins_1.Coins(amount);
40
+ return _this;
41
+ }
42
+ MsgDelegate.fromAmino = function (data) {
43
+ var _a = data.value, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
44
+ return new MsgDelegate(delegator_address, validator_address, Coins_1.Coins.fromAmino(amount));
45
+ };
46
+ MsgDelegate.prototype.toAmino = function () {
47
+ var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
48
+ return {
49
+ type: 'mstaking/MsgDelegate',
50
+ value: {
51
+ delegator_address: delegator_address,
52
+ validator_address: validator_address,
53
+ amount: amount.toAmino(),
54
+ },
55
+ };
56
+ };
57
+ MsgDelegate.fromProto = function (proto) {
58
+ return new MsgDelegate(proto.delegatorAddress, proto.validatorAddress, Coins_1.Coins.fromProto(proto.amount));
59
+ };
60
+ MsgDelegate.prototype.toProto = function () {
61
+ var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
62
+ return tx_1.MsgDelegate.fromPartial({
63
+ amount: amount.toProto(),
64
+ delegatorAddress: delegator_address,
65
+ validatorAddress: validator_address,
66
+ });
67
+ };
68
+ MsgDelegate.prototype.packAny = function () {
69
+ return any_1.Any.fromPartial({
70
+ typeUrl: '/initia.mstaking.v1.MsgDelegate',
71
+ value: tx_1.MsgDelegate.encode(this.toProto()).finish(),
72
+ });
73
+ };
74
+ MsgDelegate.unpackAny = function (msgAny) {
75
+ return MsgDelegate.fromProto(tx_1.MsgDelegate.decode(msgAny.value));
76
+ };
77
+ MsgDelegate.fromData = function (data) {
78
+ var delegator_address = data.delegator_address, validator_address = data.validator_address, amount = data.amount;
79
+ return new MsgDelegate(delegator_address, validator_address, Coins_1.Coins.fromData(amount));
80
+ };
81
+ MsgDelegate.prototype.toData = function () {
82
+ var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
83
+ return {
84
+ '@type': '/initia.mstaking.v1.MsgDelegate',
85
+ delegator_address: delegator_address,
86
+ validator_address: validator_address,
87
+ amount: amount.toData(),
88
+ };
89
+ };
90
+ return MsgDelegate;
91
+ }(json_1.JSONSerializable));
92
+ exports.MsgDelegate = MsgDelegate;
93
+ //# sourceMappingURL=MsgDelegate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MsgDelegate.js","sourceRoot":"","sources":["../../../../src/core/mstaking/msgs/MsgDelegate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AACpC,2CAAsD;AAEtD,gEAA+D;AAC/D,iEAA2F;AAE3F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,gBAAgB,EAAE,iBAAiB;SACpC,CAAC,CAAC;IACL,CAAC;IAEM,6BAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,iCAAiC;YAC1C,KAAK,EAAE,gBAAc,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAEa,qBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,WAAW,CAAC,SAAS,CAAC,gBAAc,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,CAAC;IAEa,oBAAQ,GAAtB,UAAuB,IAAsB;QACnC,IAAA,iBAAiB,GAAgC,IAAI,kBAApC,EAAE,iBAAiB,GAAa,IAAI,kBAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;QAC9D,OAAO,IAAI,WAAW,CACpB,iBAAiB,EACjB,iBAAiB,EACjB,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CACvB,CAAC;IACJ,CAAC;IAEM,4BAAM,GAAb;QACQ,IAAA,KAAmD,IAAI,EAArD,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAA,EAAE,MAAM,YAAS,CAAC;QAC9D,OAAO;YACL,OAAO,EAAE,iCAAiC;YAC1C,iBAAiB,mBAAA;YACjB,iBAAiB,mBAAA;YACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;SACxB,CAAC;IACJ,CAAC;IACH,kBAAC;AAAD,CAAC,AA3FD,CAAiC,uBAAgB,GA2FhD;AA3FY,kCAAW"}
@@ -0,0 +1,50 @@
1
+ import { JSONSerializable } from '../../../util/json';
2
+ import { ValAddress } from '../../bech32';
3
+ import { Validator } from '../Validator';
4
+ import { Any } from '@initia/initia.proto/google/protobuf/any';
5
+ import { MsgEditValidator as MsgEditValidator_pb } from '@initia/initia.proto/initia/mstaking/v1/tx';
6
+ /**
7
+ * A validator can edit its delegate information, such as moniker, website, commission
8
+ * rate, etc.
9
+ *
10
+ * You must use special or sentinel values to inform that you want to leave the current
11
+ * field untouched. For `Description`,` you should start with [[MsgEditValidator.DESC_DO_NOT_MODIFY]] and
12
+ * change each field you wish to modify individually.
13
+ */
14
+ export declare class MsgEditValidator extends JSONSerializable<MsgEditValidator.Amino, MsgEditValidator.Data, MsgEditValidator.Proto> {
15
+ description: Validator.Description;
16
+ validator_address: ValAddress;
17
+ commission_rate?: string | undefined;
18
+ /**
19
+ * @param description new description to apply
20
+ * @param validator_address new address to apply
21
+ * @param commission_rate new commission rates to apply
22
+ */
23
+ constructor(description: Validator.Description, validator_address: ValAddress, commission_rate?: string | undefined);
24
+ static fromAmino(data: MsgEditValidator.Amino): MsgEditValidator;
25
+ toAmino(): MsgEditValidator.Amino;
26
+ static fromProto(data: MsgEditValidator.Proto): MsgEditValidator;
27
+ toProto(): MsgEditValidator.Proto;
28
+ packAny(): Any;
29
+ static unpackAny(msgAny: Any): MsgEditValidator;
30
+ static fromData(data: MsgEditValidator.Data): MsgEditValidator;
31
+ toData(): MsgEditValidator.Data;
32
+ }
33
+ export declare namespace MsgEditValidator {
34
+ const DESC_DO_NOT_MODIFY: Validator.Description.Amino;
35
+ interface Amino {
36
+ type: 'mstaking/MsgEditValidator';
37
+ value: {
38
+ description: Validator.Description.Amino;
39
+ validator_address: ValAddress;
40
+ commission_rate?: string;
41
+ };
42
+ }
43
+ interface Data {
44
+ '@type': '/initia.mstaking.v1.MsgEditValidator';
45
+ description: Validator.Description.Data;
46
+ validator_address: ValAddress;
47
+ commission_rate?: string;
48
+ }
49
+ type Proto = MsgEditValidator_pb;
50
+ }
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MsgEditValidator = void 0;
19
+ var json_1 = require("../../../util/json");
20
+ var num_1 = require("../../num");
21
+ var Validator_1 = require("../Validator");
22
+ var any_1 = require("@initia/initia.proto/google/protobuf/any");
23
+ var tx_1 = require("@initia/initia.proto/initia/mstaking/v1/tx");
24
+ /**
25
+ * A validator can edit its delegate information, such as moniker, website, commission
26
+ * rate, etc.
27
+ *
28
+ * You must use special or sentinel values to inform that you want to leave the current
29
+ * field untouched. For `Description`,` you should start with [[MsgEditValidator.DESC_DO_NOT_MODIFY]] and
30
+ * change each field you wish to modify individually.
31
+ */
32
+ var MsgEditValidator = /** @class */ (function (_super) {
33
+ __extends(MsgEditValidator, _super);
34
+ /**
35
+ * @param description new description to apply
36
+ * @param validator_address new address to apply
37
+ * @param commission_rate new commission rates to apply
38
+ */
39
+ function MsgEditValidator(description, validator_address, commission_rate) {
40
+ var _this = _super.call(this) || this;
41
+ _this.description = description;
42
+ _this.validator_address = validator_address;
43
+ _this.commission_rate = commission_rate;
44
+ return _this;
45
+ }
46
+ MsgEditValidator.fromAmino = function (data) {
47
+ var _a = data.value, description = _a.description, validator_address = _a.validator_address, commission_rate = _a.commission_rate;
48
+ return new MsgEditValidator(Validator_1.Validator.Description.fromAmino(description), validator_address, commission_rate);
49
+ };
50
+ MsgEditValidator.prototype.toAmino = function () {
51
+ var _a = this, description = _a.description, validator_address = _a.validator_address, commission_rate = _a.commission_rate;
52
+ return {
53
+ type: 'mstaking/MsgEditValidator',
54
+ value: {
55
+ description: description,
56
+ validator_address: validator_address,
57
+ commission_rate: commission_rate
58
+ ? (0, num_1.num)(commission_rate).toFixed(18)
59
+ : undefined,
60
+ },
61
+ };
62
+ };
63
+ MsgEditValidator.fromProto = function (data) {
64
+ return new MsgEditValidator(Validator_1.Validator.Description.fromProto(data.description), data.validatorAddress, data.commissionRate !== '' ? data.commissionRate : undefined);
65
+ };
66
+ MsgEditValidator.prototype.toProto = function () {
67
+ var _a = this, description = _a.description, validator_address = _a.validator_address, commission_rate = _a.commission_rate;
68
+ return tx_1.MsgEditValidator.fromPartial({
69
+ description: description.toProto(),
70
+ commissionRate: (commission_rate === null || commission_rate === void 0 ? void 0 : commission_rate.toString()) || '',
71
+ validatorAddress: validator_address,
72
+ });
73
+ };
74
+ MsgEditValidator.prototype.packAny = function () {
75
+ return any_1.Any.fromPartial({
76
+ typeUrl: '/initia.mstaking.v1.MsgEditValidator',
77
+ value: tx_1.MsgEditValidator.encode(this.toProto()).finish(),
78
+ });
79
+ };
80
+ MsgEditValidator.unpackAny = function (msgAny) {
81
+ return MsgEditValidator.fromProto(tx_1.MsgEditValidator.decode(msgAny.value));
82
+ };
83
+ MsgEditValidator.fromData = function (data) {
84
+ var description = data.description, validator_address = data.validator_address, commission_rate = data.commission_rate;
85
+ return new MsgEditValidator(Validator_1.Validator.Description.fromData(description), validator_address, commission_rate);
86
+ };
87
+ MsgEditValidator.prototype.toData = function () {
88
+ var _a = this, description = _a.description, validator_address = _a.validator_address, commission_rate = _a.commission_rate;
89
+ return {
90
+ '@type': '/initia.mstaking.v1.MsgEditValidator',
91
+ description: description,
92
+ validator_address: validator_address,
93
+ commission_rate: commission_rate
94
+ ? (0, num_1.num)(commission_rate).toFixed(18)
95
+ : undefined,
96
+ };
97
+ };
98
+ return MsgEditValidator;
99
+ }(json_1.JSONSerializable));
100
+ exports.MsgEditValidator = MsgEditValidator;
101
+ (function (MsgEditValidator) {
102
+ MsgEditValidator.DESC_DO_NOT_MODIFY = {
103
+ moniker: '[do-not-modify]',
104
+ website: '[do-not-modify]',
105
+ identity: '[do-not-modify]',
106
+ details: '[do-not-modify]',
107
+ security_contact: '[do-not-modify]',
108
+ };
109
+ })(MsgEditValidator = exports.MsgEditValidator || (exports.MsgEditValidator = {}));
110
+ exports.MsgEditValidator = MsgEditValidator;
111
+ //# sourceMappingURL=MsgEditValidator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MsgEditValidator.js","sourceRoot":"","sources":["../../../../src/core/mstaking/msgs/MsgEditValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,iCAAgC;AAEhC,0CAAyC;AACzC,gEAA+D;AAC/D,iEAAqG;AAErG;;;;;;;GAOG;AACH;IAAsC,oCAIrC;IACC;;;;OAIG;IACH,0BACS,WAAkC,EAClC,iBAA6B,EAC7B,eAAwB;QAHjC,YAKE,iBAAO,SACR;QALQ,iBAAW,GAAX,WAAW,CAAuB;QAClC,uBAAiB,GAAjB,iBAAiB,CAAY;QAC7B,qBAAe,GAAf,eAAe,CAAS;;IAGjC,CAAC;IAEa,0BAAS,GAAvB,UAAwB,IAA4B;QAEhD,IAAA,KAKE,IAAI,MADL,EAHC,WAAW,iBAAA,EACX,iBAAiB,uBAAA,EACjB,eAAe,qBAChB,CACM;QACT,OAAO,IAAI,gBAAgB,CACzB,qBAAS,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,EAC5C,iBAAiB,EACjB,eAAe,CAChB,CAAC;IACJ,CAAC;IAEM,kCAAO,GAAd;QACQ,IAAA,KAIF,IAAI,EAHN,WAAW,iBAAA,EACX,iBAAiB,uBAAA,EACjB,eAAe,qBACT,CAAC;QACT,OAAO;YACL,IAAI,EAAE,2BAA2B;YACjC,KAAK,EAAE;gBACL,WAAW,aAAA;gBACX,iBAAiB,mBAAA;gBACjB,eAAe,EAAE,eAAe;oBAC9B,CAAC,CAAC,IAAA,SAAG,EAAC,eAAe,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;oBAClC,CAAC,CAAC,SAAS;aACd;SACF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ChB,CAAC;IACJ,CAAC;IAEM,iCAAM,GAAb;QACQ,IAAA,KAIF,IAAI,EAHN,WAAW,iBAAA,EACX,iBAAiB,uBAAA,EACjB,eAAe,qBACT,CAAC;QACT,OAAO;YACL,OAAO,EAAE,sCAAsC;YAC/C,WAAW,aAAA;YACX,iBAAiB,mBAAA;YACjB,eAAe,EAAE,eAAe;gBAC9B,CAAC,CAAC,IAAA,SAAG,EAAC,eAAe,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;gBAClC,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;IACH,uBAAC;AAAD,CAAC,AAjHD,CAAsC,uBAAgB,GAiHrD;AAjHY,4CAAgB;AAmH7B,WAAiB,gBAAgB;IAClB,mCAAkB,GAAgC;QAC7D,OAAO,EAAE,iBAAiB;QAC1B,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,iBAAiB;QAC3B,OAAO,EAAE,iBAAiB;QAC1B,gBAAgB,EAAE,iBAAiB;KACpC,CAAC;AAmBJ,CAAC,EA1BgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA0BhC;AA7IY,4CAAgB"}
@@ -0,0 +1,46 @@
1
+ import { Coins } from '../../Coins';
2
+ import { JSONSerializable } from '../../../util/json';
3
+ import { AccAddress, ValAddress } from '../../bech32';
4
+ import { Any } from '@initia/initia.proto/google/protobuf/any';
5
+ import { MsgUndelegate as MsgUndelegate_pb } from '@initia/initia.proto/initia/mstaking/v1/tx';
6
+ /**
7
+ * A delegator can undelegate an amount of bonded Initia, and will begin the unbonding
8
+ * process for those funds. The unbonding process takes 21 days to complete, during
9
+ * which the Initia cannot be transacted or swapped.
10
+ */
11
+ export declare class MsgUndelegate extends JSONSerializable<MsgUndelegate.Amino, MsgUndelegate.Data, MsgUndelegate.Proto> {
12
+ delegator_address: AccAddress;
13
+ validator_address: ValAddress;
14
+ amount: Coins;
15
+ /**
16
+ * @param delegator_address delegator's account address
17
+ * @param validator_address validator's operator address
18
+ * @param amount INIT to be undelegated
19
+ */
20
+ constructor(delegator_address: AccAddress, validator_address: ValAddress, amount: Coins.Input);
21
+ static fromAmino(data: MsgUndelegate.Amino): MsgUndelegate;
22
+ toAmino(): MsgUndelegate.Amino;
23
+ static fromProto(proto: MsgUndelegate.Proto): MsgUndelegate;
24
+ toProto(): MsgUndelegate.Proto;
25
+ packAny(): Any;
26
+ static unpackAny(msgAny: Any): MsgUndelegate;
27
+ static fromData(data: MsgUndelegate.Data): MsgUndelegate;
28
+ toData(): MsgUndelegate.Data;
29
+ }
30
+ export declare namespace MsgUndelegate {
31
+ interface Amino {
32
+ type: 'mstaking/MsgUndelegate';
33
+ value: {
34
+ delegator_address: AccAddress;
35
+ validator_address: ValAddress;
36
+ amount: Coins.Amino;
37
+ };
38
+ }
39
+ interface Data {
40
+ '@type': '/initia.mstaking.v1.MsgUndelegate';
41
+ delegator_address: AccAddress;
42
+ validator_address: ValAddress;
43
+ amount: Coins.Data;
44
+ }
45
+ type Proto = MsgUndelegate_pb;
46
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MsgUndelegate = void 0;
19
+ var Coins_1 = require("../../Coins");
20
+ var json_1 = require("../../../util/json");
21
+ var any_1 = require("@initia/initia.proto/google/protobuf/any");
22
+ var tx_1 = require("@initia/initia.proto/initia/mstaking/v1/tx");
23
+ /**
24
+ * A delegator can undelegate an amount of bonded Initia, and will begin the unbonding
25
+ * process for those funds. The unbonding process takes 21 days to complete, during
26
+ * which the Initia cannot be transacted or swapped.
27
+ */
28
+ var MsgUndelegate = /** @class */ (function (_super) {
29
+ __extends(MsgUndelegate, _super);
30
+ /**
31
+ * @param delegator_address delegator's account address
32
+ * @param validator_address validator's operator address
33
+ * @param amount INIT to be undelegated
34
+ */
35
+ function MsgUndelegate(delegator_address, validator_address, amount) {
36
+ var _this = _super.call(this) || this;
37
+ _this.delegator_address = delegator_address;
38
+ _this.validator_address = validator_address;
39
+ _this.amount = new Coins_1.Coins(amount);
40
+ return _this;
41
+ }
42
+ MsgUndelegate.fromAmino = function (data) {
43
+ var _a = data.value, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
44
+ return new MsgUndelegate(delegator_address, validator_address, Coins_1.Coins.fromAmino(amount));
45
+ };
46
+ MsgUndelegate.prototype.toAmino = function () {
47
+ var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
48
+ return {
49
+ type: 'mstaking/MsgUndelegate',
50
+ value: {
51
+ delegator_address: delegator_address,
52
+ validator_address: validator_address,
53
+ amount: amount.toAmino(),
54
+ },
55
+ };
56
+ };
57
+ MsgUndelegate.fromProto = function (proto) {
58
+ return new MsgUndelegate(proto.delegatorAddress, proto.validatorAddress, Coins_1.Coins.fromProto(proto.amount));
59
+ };
60
+ MsgUndelegate.prototype.toProto = function () {
61
+ var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
62
+ return tx_1.MsgUndelegate.fromPartial({
63
+ amount: amount.toProto(),
64
+ delegatorAddress: delegator_address,
65
+ validatorAddress: validator_address,
66
+ });
67
+ };
68
+ MsgUndelegate.prototype.packAny = function () {
69
+ return any_1.Any.fromPartial({
70
+ typeUrl: '/initia.mstaking.v1.MsgUndelegate',
71
+ value: tx_1.MsgUndelegate.encode(this.toProto()).finish(),
72
+ });
73
+ };
74
+ MsgUndelegate.unpackAny = function (msgAny) {
75
+ return MsgUndelegate.fromProto(tx_1.MsgUndelegate.decode(msgAny.value));
76
+ };
77
+ MsgUndelegate.fromData = function (data) {
78
+ var delegator_address = data.delegator_address, validator_address = data.validator_address, amount = data.amount;
79
+ return new MsgUndelegate(delegator_address, validator_address, Coins_1.Coins.fromData(amount));
80
+ };
81
+ MsgUndelegate.prototype.toData = function () {
82
+ var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, amount = _a.amount;
83
+ return {
84
+ '@type': '/initia.mstaking.v1.MsgUndelegate',
85
+ delegator_address: delegator_address,
86
+ validator_address: validator_address,
87
+ amount: amount.toData(),
88
+ };
89
+ };
90
+ return MsgUndelegate;
91
+ }(json_1.JSONSerializable));
92
+ exports.MsgUndelegate = MsgUndelegate;
93
+ //# sourceMappingURL=MsgUndelegate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MsgUndelegate.js","sourceRoot":"","sources":["../../../../src/core/mstaking/msgs/MsgUndelegate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AACpC,2CAAsD;AAEtD,gEAA+D;AAC/D,iEAA+F;AAE/F;;;;GAIG;AACH;IAAmC,iCAIlC;IAGC;;;;OAIG;IACH,uBACS,iBAA6B,EAC7B,iBAA6B,EACpC,MAAmB;QAHrB,YAKE,iBAAO,SAER;QANQ,uBAAiB,GAAjB,iBAAiB,CAAY;QAC7B,uBAAiB,GAAjB,iBAAiB,CAAY;QAIpC,KAAI,CAAC,MAAM,GAAG,IAAI,aAAK,CAAC,MAAM,CAAC,CAAC;;IAClC,CAAC;IAEa,uBAAS,GAAvB,UAAwB,IAAyB;QAE7C,IAAA,KACE,IAAI,MADiD,EAA9C,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAA,EAAE,MAAM,YAAE,CAChD;QACT,OAAO,IAAI,aAAa,CACtB,iBAAiB,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AA,iBAAiB,GAAgC,IAAI,kBAApC,EAAE,iBAAiB,GAAa,IAAI,kBAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;QAC9D,OAAO,IAAI,aAAa,CACtB,iBAAiB,EACjB,iBAAiB,EACjB,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CACvB,CAAC;IACJ,CAAC;IAEM,8BAAM,GAAb;QACQ,IAAA,KAAmD,IAAI,EAArD,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAA,EAAE,MAAM,YAAS,CAAC;QAC9D,OAAO;YACL,OAAO,EAAE,mCAAmC;YAC5C,iBAAiB,mBAAA;YACjB,iBAAiB,mBAAA;YACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;SACxB,CAAC;IACJ,CAAC;IACH,oBAAC;AAAD,CAAC,AA1FD,CAAmC,uBAAgB,GA0FlD;AA1FY,sCAAa"}
@@ -0,0 +1,16 @@
1
+ import { MsgDelegate } from './MsgDelegate';
2
+ import { MsgUndelegate } from './MsgUndelegate';
3
+ import { MsgBeginRedelegate } from './MsgBeginRedelegate';
4
+ import { MsgCreateValidator } from './MsgCreateValidator';
5
+ import { MsgEditValidator } from './MsgEditValidator';
6
+ export * from './MsgDelegate';
7
+ export * from './MsgUndelegate';
8
+ export * from './MsgBeginRedelegate';
9
+ export * from './MsgCreateValidator';
10
+ export * from './MsgEditValidator';
11
+ export declare type MstakingMsg = MsgDelegate | MsgUndelegate | MsgBeginRedelegate | MsgCreateValidator | MsgEditValidator;
12
+ export declare namespace MstakingMsg {
13
+ type Amino = MsgDelegate.Amino | MsgUndelegate.Amino | MsgBeginRedelegate.Amino | MsgCreateValidator.Amino | MsgEditValidator.Amino;
14
+ type Data = MsgDelegate.Data | MsgUndelegate.Data | MsgBeginRedelegate.Data | MsgCreateValidator.Data | MsgEditValidator.Data;
15
+ type Proto = MsgDelegate.Proto | MsgUndelegate.Proto | MsgBeginRedelegate.Proto | MsgCreateValidator.Proto | MsgEditValidator.Proto;
16
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MsgDelegate"), exports);
18
+ __exportStar(require("./MsgUndelegate"), exports);
19
+ __exportStar(require("./MsgBeginRedelegate"), exports);
20
+ __exportStar(require("./MsgCreateValidator"), exports);
21
+ __exportStar(require("./MsgEditValidator"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/mstaking/msgs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,gDAA8B;AAC9B,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC"}
@@ -17,11 +17,7 @@ import { ParameterChangeProposal as ParameterChangeProposal_pb } from '@initia/i
17
17
  * } from "@initia/initia.js";
18
18
  *
19
19
  * const proposal = new ParameterChangeProposal("title", "description", {
20
- * market: {
21
- * minspread: new Dec(0.25),
22
- * basepool: new Dec(10000000)
23
- * },
24
- * staking: {
20
+ * mstaking: {
25
21
  * UnbondingTime: 15000000
26
22
  * }
27
23
  * });
@@ -35,11 +35,7 @@ var params_1 = require("@initia/initia.proto/cosmos/params/v1beta1/params");
35
35
  * } from "@initia/initia.js";
36
36
  *
37
37
  * const proposal = new ParameterChangeProposal("title", "description", {
38
- * market: {
39
- * minspread: new Dec(0.25),
40
- * basepool: new Dec(10000000)
41
- * },
42
- * staking: {
38
+ * mstaking: {
43
39
  * UnbondingTime: 15000000
44
40
  * }
45
41
  * });
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterChangeProposal.js","sourceRoot":"","sources":["../../../../src/core/params/proposals/ParameterChangeProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,8CAA2D;AAC3D,gEAA+D;AAC/D,4EAA0H;AAE1H;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAA6C,2CAI5C;IAGC;;;;;OAKG;IACH,iCACS,KAAa,EACb,WAAmB,EAC1B,OAA0C;QAH5C,YAKE,iBAAO,SAMR;QAVQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QAI1B,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC1B,KAAI,CAAC,OAAO,GAAG,0BAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC/C;aAAM;YACL,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;;IACH,CAAC;IAEa,iCAAS,GAAvB,UACE,IAAmC;QAGjC,IAAA,KACE,IAAI,MADgC,EAA7B,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,OAAO,aAAE,CAC/B;QACT,OAAO,IAAI,uBAAuB,CAChC,KAAK,EACL,WAAW,EACX,0BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,CAChC,CAAC;IACJ,CAAC;IAEM,yCAAO,GAAd;QACQ,IAAA,KAAkC,IAAI,EAApC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,OAAO,aAAS,CAAC;QAC7C,OAAO;YACL,IAAI,EAAE,oCAAoC;YAC1C,KAAK,EAAE;gBACL,KAAK,OAAA;gBACL,WAAW,aAAA;gBACX,OAAO,EAAE,OA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QACjC,OAAO,uBAAuB,CAAC,SAAS,CACtC,gCAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAChD,CAAC;IACJ,CAAC;IACH,8BAAC;AAAD,CAAC,AAvGD,CAA6C,uBAAgB,GAuG5D;AAvGY,0DAAuB"}
1
+ {"version":3,"file":"ParameterChangeProposal.js","sourceRoot":"","sources":["../../../../src/core/params/proposals/ParameterChangeProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,8CAA2D;AAC3D,gEAA+D;AAC/D,4EAA0H;AAE1H;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IAA6C,2CAI5C;IAGC;;;;;OAKG;IACH,iCACS,KAAa,EACb,WAAmB,EAC1B,OAA0C;QAH5C,YAKE,iBAAO,SAMR;QAVQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QAI1B,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC1B,KAAI,CAAC,OAAO,GAAG,0BAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC/C;aAAM;YACL,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;;IACH,CAAC;IAEa,iCAAS,GAAvB,UACE,IAAmC;QAGjC,IAAA,KACE,IAAI,MADgC,EAA7B,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,OAAO,aAAE,CAC/B;QACT,OAAO,IAAI,uBAAuB,CAChC,KAAK,EACL,WAAW,EACX,0BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,CAChC,CAAC;IACJ,CAAC;IAEM,yCAAO,GAAd;QACQ,IAAA,KAAkC,IAAI,EAApC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,OAAO,aAAS,CAAC;QAC7C,OAAO;YACL,IAAI,EAAE,oCAAoC;YAC1C,KAAK,EAAE;gBACL,KAAK,OAAA;gBACL,WAAW,aAAA;gBACX,OAAO,EA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MAAW;QACjC,OAAO,uBAAuB,CAAC,SAAS,CACtC,gCAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAChD,CAAC;IACJ,CAAC;IACH,8BAAC;AAAD,CAAC,AAvGD,CAA6C,uBAAgB,GAuG5D;AAvGY,0DAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@initia/initia.js",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "The JavaScript SDK for Initia",
5
5
  "license": "MIT",
6
6
  "author": "InitiaLabs",
@@ -82,7 +82,7 @@
82
82
  "webpack-cli": "^4.10.0"
83
83
  },
84
84
  "dependencies": {
85
- "@initia/initia.proto": "^0.0.10-alpha1",
85
+ "@initia/initia.proto": "^0.0.11-alpha1",
86
86
  "@mysten/bcs": "^0.5.0",
87
87
  "axios": "^0.27.2",
88
88
  "bech32": "^2.0.0",