@initia/initia.js 0.1.0 → 0.1.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 (154) hide show
  1. package/package.json +1 -1
  2. package/dist/client/lcd/LCDUtils.d.ts +0 -18
  3. package/dist/client/lcd/LCDUtils.js +0 -93
  4. package/dist/client/lcd/LCDUtils.js.map +0 -1
  5. package/dist/client/lcd/api/MintAPI.d.ts +0 -27
  6. package/dist/client/lcd/api/MintAPI.js +0 -109
  7. package/dist/client/lcd/api/MintAPI.js.map +0 -1
  8. package/dist/client/lcd/api/StakingAPI.d.ts +0 -100
  9. package/dist/client/lcd/api/StakingAPI.js +0 -297
  10. package/dist/client/lcd/api/StakingAPI.js.map +0 -1
  11. package/dist/core/CompactBitArray.d.ts +0 -23
  12. package/dist/core/CompactBitArray.js +0 -94
  13. package/dist/core/CompactBitArray.js.map +0 -1
  14. package/dist/core/Deposit.d.ts +0 -37
  15. package/dist/core/Deposit.js +0 -81
  16. package/dist/core/Deposit.js.map +0 -1
  17. package/dist/core/Fee.d.ts +0 -42
  18. package/dist/core/Fee.js +0 -88
  19. package/dist/core/Fee.js.map +0 -1
  20. package/dist/core/MultiSignature.d.ts +0 -17
  21. package/dist/core/MultiSignature.js +0 -57
  22. package/dist/core/MultiSignature.js.map +0 -1
  23. package/dist/core/SignDoc.d.ts +0 -54
  24. package/dist/core/SignDoc.js +0 -96
  25. package/dist/core/SignDoc.js.map +0 -1
  26. package/dist/core/SignatureV2.d.ts +0 -66
  27. package/dist/core/SignatureV2.js +0 -131
  28. package/dist/core/SignatureV2.js.map +0 -1
  29. package/dist/core/Tx.d.ts +0 -147
  30. package/dist/core/Tx.js +0 -279
  31. package/dist/core/Tx.js.map +0 -1
  32. package/dist/core/TxInfo.d.ts +0 -91
  33. package/dist/core/TxInfo.js +0 -115
  34. package/dist/core/TxInfo.js.map +0 -1
  35. package/dist/core/ValidatorSet.d.ts +0 -11
  36. package/dist/core/ValidatorSet.js +0 -3
  37. package/dist/core/ValidatorSet.js.map +0 -1
  38. package/dist/core/auth/BaseVestingAccount.d.ts +0 -58
  39. package/dist/core/auth/BaseVestingAccount.js +0 -123
  40. package/dist/core/auth/BaseVestingAccount.js.map +0 -1
  41. package/dist/core/auth/ContinuousVestingAccount.d.ts +0 -45
  42. package/dist/core/auth/ContinuousVestingAccount.js +0 -116
  43. package/dist/core/auth/ContinuousVestingAccount.js.map +0 -1
  44. package/dist/core/auth/DelayedVestingAccount.d.ts +0 -42
  45. package/dist/core/auth/DelayedVestingAccount.js +0 -108
  46. package/dist/core/auth/DelayedVestingAccount.js.map +0 -1
  47. package/dist/core/auth/PeriodicVestingAccount.d.ts +0 -72
  48. package/dist/core/auth/PeriodicVestingAccount.js +0 -170
  49. package/dist/core/auth/PeriodicVestingAccount.js.map +0 -1
  50. package/dist/core/crisis/MsgVerifyInvariant.d.ts +0 -43
  51. package/dist/core/crisis/MsgVerifyInvariant.js +0 -77
  52. package/dist/core/crisis/MsgVerifyInvariant.js.map +0 -1
  53. package/dist/core/distribution/proposals/CommunityPoolSpendProposal.d.ts +0 -49
  54. package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js +0 -97
  55. package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js.map +0 -1
  56. package/dist/core/distribution/proposals/index.d.ts +0 -1
  57. package/dist/core/distribution/proposals/index.js +0 -18
  58. package/dist/core/distribution/proposals/index.js.map +0 -1
  59. package/dist/core/gov/Proposal.d.ts +0 -96
  60. package/dist/core/gov/Proposal.js +0 -244
  61. package/dist/core/gov/Proposal.js.map +0 -1
  62. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.d.ts +0 -34
  63. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js +0 -82
  64. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js.map +0 -1
  65. package/dist/core/ibc/applications/nft-transfer/ClassTrace.d.ts +0 -28
  66. package/dist/core/ibc/applications/nft-transfer/ClassTrace.js +0 -67
  67. package/dist/core/ibc/applications/nft-transfer/ClassTrace.js.map +0 -1
  68. package/dist/core/ibc/core/connection/Version.d.ts +0 -28
  69. package/dist/core/ibc/core/connection/Version.js +0 -70
  70. package/dist/core/ibc/core/connection/Version.js.map +0 -1
  71. package/dist/core/move/StorageFee.d.ts +0 -34
  72. package/dist/core/move/StorageFee.js +0 -78
  73. package/dist/core/move/StorageFee.js.map +0 -1
  74. package/dist/core/move/proposals/DelistProposal.d.ts +0 -50
  75. package/dist/core/move/proposals/DelistProposal.js +0 -100
  76. package/dist/core/move/proposals/DelistProposal.js.map +0 -1
  77. package/dist/core/move/proposals/ExecuteOperation.d.ts +0 -51
  78. package/dist/core/move/proposals/ExecuteOperation.js +0 -100
  79. package/dist/core/move/proposals/ExecuteOperation.js.map +0 -1
  80. package/dist/core/move/proposals/ExecuteProposal.d.ts +0 -54
  81. package/dist/core/move/proposals/ExecuteProposal.js +0 -105
  82. package/dist/core/move/proposals/ExecuteProposal.js.map +0 -1
  83. package/dist/core/move/proposals/OperationsProposal.d.ts +0 -57
  84. package/dist/core/move/proposals/OperationsProposal.js +0 -129
  85. package/dist/core/move/proposals/OperationsProposal.js.map +0 -1
  86. package/dist/core/move/proposals/PublishOperation.d.ts +0 -34
  87. package/dist/core/move/proposals/PublishOperation.js +0 -76
  88. package/dist/core/move/proposals/PublishOperation.js.map +0 -1
  89. package/dist/core/move/proposals/PublishProposal.d.ts +0 -42
  90. package/dist/core/move/proposals/PublishProposal.js +0 -90
  91. package/dist/core/move/proposals/PublishProposal.js.map +0 -1
  92. package/dist/core/move/proposals/WhitelistProposal.d.ts +0 -54
  93. package/dist/core/move/proposals/WhitelistProposal.js +0 -105
  94. package/dist/core/move/proposals/WhitelistProposal.js.map +0 -1
  95. package/dist/core/move/proposals/index.d.ts +0 -5
  96. package/dist/core/move/proposals/index.js +0 -22
  97. package/dist/core/move/proposals/index.js.map +0 -1
  98. package/dist/core/staking/Delegation.d.ts +0 -45
  99. package/dist/core/staking/Delegation.js +0 -89
  100. package/dist/core/staking/Delegation.js.map +0 -1
  101. package/dist/core/staking/Redelegation.d.ts +0 -97
  102. package/dist/core/staking/Redelegation.js +0 -174
  103. package/dist/core/staking/Redelegation.js.map +0 -1
  104. package/dist/core/staking/UnbondingDelegation.d.ts +0 -75
  105. package/dist/core/staking/UnbondingDelegation.js +0 -143
  106. package/dist/core/staking/UnbondingDelegation.js.map +0 -1
  107. package/dist/core/staking/Validator.d.ts +0 -173
  108. package/dist/core/staking/Validator.js +0 -287
  109. package/dist/core/staking/Validator.js.map +0 -1
  110. package/dist/core/staking/msgs/MsgBeginRedelegate.d.ts +0 -51
  111. package/dist/core/staking/msgs/MsgBeginRedelegate.js +0 -99
  112. package/dist/core/staking/msgs/MsgBeginRedelegate.js.map +0 -1
  113. package/dist/core/staking/msgs/MsgCreateValidator.d.ts +0 -60
  114. package/dist/core/staking/msgs/MsgCreateValidator.js +0 -110
  115. package/dist/core/staking/msgs/MsgCreateValidator.js.map +0 -1
  116. package/dist/core/staking/msgs/MsgDelegate.d.ts +0 -46
  117. package/dist/core/staking/msgs/MsgDelegate.js +0 -93
  118. package/dist/core/staking/msgs/MsgDelegate.js.map +0 -1
  119. package/dist/core/staking/msgs/MsgEditValidator.d.ts +0 -50
  120. package/dist/core/staking/msgs/MsgEditValidator.js +0 -111
  121. package/dist/core/staking/msgs/MsgEditValidator.js.map +0 -1
  122. package/dist/core/staking/msgs/MsgUndelegate.d.ts +0 -46
  123. package/dist/core/staking/msgs/MsgUndelegate.js +0 -93
  124. package/dist/core/staking/msgs/MsgUndelegate.js.map +0 -1
  125. package/dist/core/staking/msgs/index.d.ts +0 -16
  126. package/dist/core/staking/msgs/index.js +0 -22
  127. package/dist/core/staking/msgs/index.js.map +0 -1
  128. package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.d.ts +0 -39
  129. package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js +0 -86
  130. package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js.map +0 -1
  131. package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.d.ts +0 -44
  132. package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js +0 -92
  133. package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js.map +0 -1
  134. package/dist/core/upgrade/proposals/index.d.ts +0 -2
  135. package/dist/core/upgrade/proposals/index.js +0 -19
  136. package/dist/core/upgrade/proposals/index.js.map +0 -1
  137. package/dist/core/vesting/Period.d.ts +0 -32
  138. package/dist/core/vesting/Period.js +0 -78
  139. package/dist/core/vesting/Period.js.map +0 -1
  140. package/dist/core/vesting/index.d.ts +0 -2
  141. package/dist/core/vesting/index.js +0 -19
  142. package/dist/core/vesting/index.js.map +0 -1
  143. package/dist/core/vesting/msgs/MsgCreateVestingAccount.d.ts +0 -50
  144. package/dist/core/vesting/msgs/MsgCreateVestingAccount.js +0 -103
  145. package/dist/core/vesting/msgs/MsgCreateVestingAccount.js.map +0 -1
  146. package/dist/core/vesting/msgs/index.d.ts +0 -8
  147. package/dist/core/vesting/msgs/index.js +0 -18
  148. package/dist/core/vesting/msgs/index.js.map +0 -1
  149. package/dist/util/contract.d.ts +0 -9
  150. package/dist/util/contract.js +0 -57
  151. package/dist/util/contract.js.map +0 -1
  152. package/dist/util/convert.d.ts +0 -8
  153. package/dist/util/convert.js +0 -12
  154. package/dist/util/convert.js.map +0 -1
@@ -1,46 +0,0 @@
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: 'cosmos-sdk/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
- }
@@ -1,93 +0,0 @@
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: 'cosmos-sdk/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
@@ -1 +0,0 @@
1
- {"version":3,"file":"MsgUndelegate.js","sourceRoot":"","sources":["../../../../src/core/staking/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,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ACrC,IAAA,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"}
@@ -1,16 +0,0 @@
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 StakingMsg = MsgDelegate | MsgUndelegate | MsgBeginRedelegate | MsgCreateValidator | MsgEditValidator;
12
- export declare namespace StakingMsg {
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
- }
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/staking/msgs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,gDAA8B;AAC9B,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC"}
@@ -1,39 +0,0 @@
1
- import { JSONSerializable } from '../../../util/json';
2
- import { Any } from '@initia/initia.proto/google/protobuf/any';
3
- import { CancelSoftwareUpgradeProposal as CancelSoftwareUpgradeProposal_pb } from '@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade';
4
- /**
5
- * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software upgrade
6
- */
7
- export declare class CancelSoftwareUpgradeProposal extends JSONSerializable<CancelSoftwareUpgradeProposal.Amino, CancelSoftwareUpgradeProposal.Data, CancelSoftwareUpgradeProposal.Proto> {
8
- title: string;
9
- description: string;
10
- /**
11
- *
12
- * @param title
13
- * @param description
14
- */
15
- constructor(title: string, description: string);
16
- static fromAmino(data: CancelSoftwareUpgradeProposal.Amino): CancelSoftwareUpgradeProposal;
17
- toAmino(): CancelSoftwareUpgradeProposal.Amino;
18
- static fromData(data: CancelSoftwareUpgradeProposal.Data): CancelSoftwareUpgradeProposal;
19
- toData(): CancelSoftwareUpgradeProposal.Data;
20
- static fromProto(proto: CancelSoftwareUpgradeProposal.Proto): CancelSoftwareUpgradeProposal;
21
- toProto(): CancelSoftwareUpgradeProposal.Proto;
22
- packAny(): Any;
23
- static unpackAny(msgAny: Any): CancelSoftwareUpgradeProposal;
24
- }
25
- export declare namespace CancelSoftwareUpgradeProposal {
26
- interface Amino {
27
- type: 'cosmos-sdk/CancelSoftwareUpgradeProposal';
28
- value: {
29
- title: string;
30
- description: string;
31
- };
32
- }
33
- interface Data {
34
- '@type': '/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal';
35
- title: string;
36
- description: string;
37
- }
38
- type Proto = CancelSoftwareUpgradeProposal_pb;
39
- }
@@ -1,86 +0,0 @@
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.CancelSoftwareUpgradeProposal = void 0;
19
- var json_1 = require("../../../util/json");
20
- var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
- var upgrade_1 = require("@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade");
22
- /**
23
- * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software upgrade
24
- */
25
- var CancelSoftwareUpgradeProposal = /** @class */ (function (_super) {
26
- __extends(CancelSoftwareUpgradeProposal, _super);
27
- /**
28
- *
29
- * @param title
30
- * @param description
31
- */
32
- function CancelSoftwareUpgradeProposal(title, description) {
33
- var _this = _super.call(this) || this;
34
- _this.title = title;
35
- _this.description = description;
36
- return _this;
37
- }
38
- CancelSoftwareUpgradeProposal.fromAmino = function (data) {
39
- var _a = data.value, title = _a.title, description = _a.description;
40
- return new CancelSoftwareUpgradeProposal(title, description);
41
- };
42
- CancelSoftwareUpgradeProposal.prototype.toAmino = function () {
43
- var _a = this, title = _a.title, description = _a.description;
44
- return {
45
- type: 'cosmos-sdk/CancelSoftwareUpgradeProposal',
46
- value: {
47
- title: title,
48
- description: description,
49
- },
50
- };
51
- };
52
- CancelSoftwareUpgradeProposal.fromData = function (data) {
53
- var title = data.title, description = data.description;
54
- return new CancelSoftwareUpgradeProposal(title, description);
55
- };
56
- CancelSoftwareUpgradeProposal.prototype.toData = function () {
57
- var _a = this, title = _a.title, description = _a.description;
58
- return {
59
- '@type': '/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal',
60
- title: title,
61
- description: description,
62
- };
63
- };
64
- CancelSoftwareUpgradeProposal.fromProto = function (proto) {
65
- return new CancelSoftwareUpgradeProposal(proto.title, proto.description);
66
- };
67
- CancelSoftwareUpgradeProposal.prototype.toProto = function () {
68
- var _a = this, title = _a.title, description = _a.description;
69
- return upgrade_1.CancelSoftwareUpgradeProposal.fromPartial({
70
- title: title,
71
- description: description,
72
- });
73
- };
74
- CancelSoftwareUpgradeProposal.prototype.packAny = function () {
75
- return any_1.Any.fromPartial({
76
- typeUrl: '/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal',
77
- value: upgrade_1.CancelSoftwareUpgradeProposal.encode(this.toProto()).finish(),
78
- });
79
- };
80
- CancelSoftwareUpgradeProposal.unpackAny = function (msgAny) {
81
- return CancelSoftwareUpgradeProposal.fromProto(upgrade_1.CancelSoftwareUpgradeProposal.decode(msgAny.value));
82
- };
83
- return CancelSoftwareUpgradeProposal;
84
- }(json_1.JSONSerializable));
85
- exports.CancelSoftwareUpgradeProposal = CancelSoftwareUpgradeProposal;
86
- //# sourceMappingURL=CancelSoftwareUpgradeProposal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CancelSoftwareUpgradeProposal.js","sourceRoot":"","sources":["../../../../src/core/upgrade/proposals/CancelSoftwareUpgradeProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,+EAAwI;AAExI;;GAEG;AACH;IAAmD,iDAIlD;IACC;;;;OAIG;IACH,uCAAmB,KAAa,EAAS,WAAmB;QAA5D,YACE,iBAAO,SACR;QAFkB,WAAK,GAAL,KAAK,CAAQ;QAAS,iBAAW,GAAX,WAAW,CAAQ;;IAE5D,CAAC;IAEa,uCAAS,GAAvB,UACE,IAAyC;QAGvC,IAAA,KACE,IAAI,MADuB,EAApB,KAAK,WAAA,EAAE,WAAW,iBAAE,CACtB;QACT,OAAO,IAAI,6BAA6B,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAC/D,CAAC;IAEM,+CAAO,GAAd;QACQ,IAAA,KAAyB,IAAI,EAA3B,KAAK,WAAA,EAAE,WAAW,iBAAS,CAAC;QACpC,OAAO;YACL,IAAI,EAAE,0CAA0C;YAChD,KAAK,EAAE;gBACL,KAAK,OAAA;gBACL,WAAW,aAAA;aACZ;SACF,CAAC;IACJ,CAAC;IAEa,sCAAQ,GAAtB,UACE,IAAwC;QAEhC,IAAA,KAAK,GAAkB,IAAI,MAAtB,EAAE,WAAW,GAAK,IAAI,YAAT,CAAU;QACpC,OAAO,IAAI,6BAA6B,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAC/D,CAAC;IAEM,8CAAM,GAAb;QACQ,IAAA,KAAyB,IAAI,EAA3B,KAAK,WAAA,EAAE,WAAW,iBAAS,CAAC;QACpC,OAAO;YACL,OAAO,EAAE,uDAAuD;YAChE,KAAK,OAAA;YACL,WAAW,aAAA;SACZ,CAAC;IACJ,CAAC;IAEa,uCAAS,GAAvB,UACE,KAA0C;QAE1C,OAAO,IAAI,6BAA6B,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC3E,CAAC;IAEM,+CAAO,GAAd;QACQ,IAAA,KAAyB,IAAI,EAA3B,KAAK,WAAA,EAAE,WAAW,iBAAS,CAAC;QACpC,OAAO,uCAAgC,CAAC,WAAW,CAAC;YAClD,KAAK,OAAA;YACL,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAEM,+CAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,uDAAuD;YAChE,KAAK,EAAE,uCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACxE,CAAC,CAAC;IACL,CAAC;IAEa,uCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,6BAA6B,CAAC,SAAS,CAC5C,uCAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACtD,CAAC;IACJ,CAAC;IACH,oCAAC;AAAD,CAAC,AA5ED,CAAmD,uBAAgB,GA4ElE;AA5EY,sEAA6B"}
@@ -1,44 +0,0 @@
1
- import { JSONSerializable } from '../../../util/json';
2
- import { Any } from '@initia/initia.proto/google/protobuf/any';
3
- import { SoftwareUpgradeProposal as SoftwareUpgradeProposal_pb } from '@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade';
4
- import { Plan } from '../Plan';
5
- /**
6
- * Softwareupgradeproposal is a gov Content type for initiating a software upgrade.
7
- */
8
- export declare class SoftwareUpgradeProposal extends JSONSerializable<SoftwareUpgradeProposal.Amino, SoftwareUpgradeProposal.Data, SoftwareUpgradeProposal.Proto> {
9
- title: string;
10
- description: string;
11
- plan?: Plan | undefined;
12
- /**
13
- *
14
- * @param title
15
- * @param description
16
- * @param plan
17
- */
18
- constructor(title: string, description: string, plan?: Plan | undefined);
19
- static fromAmino(data: SoftwareUpgradeProposal.Amino): SoftwareUpgradeProposal;
20
- toAmino(): SoftwareUpgradeProposal.Amino;
21
- static fromData(data: SoftwareUpgradeProposal.Data): SoftwareUpgradeProposal;
22
- toData(): SoftwareUpgradeProposal.Data;
23
- static fromProto(proto: SoftwareUpgradeProposal.Proto): SoftwareUpgradeProposal;
24
- toProto(): SoftwareUpgradeProposal.Proto;
25
- packAny(): Any;
26
- static unpackAny(msgAny: Any): SoftwareUpgradeProposal;
27
- }
28
- export declare namespace SoftwareUpgradeProposal {
29
- interface Amino {
30
- type: 'cosmos-sdk/SoftwareUpgradeProposal';
31
- value: {
32
- title: string;
33
- description: string;
34
- plan?: Plan.Amino;
35
- };
36
- }
37
- interface Data {
38
- '@type': '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal';
39
- title: string;
40
- description: string;
41
- plan?: Plan.Data;
42
- }
43
- type Proto = SoftwareUpgradeProposal_pb;
44
- }
@@ -1,92 +0,0 @@
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.SoftwareUpgradeProposal = void 0;
19
- var json_1 = require("../../../util/json");
20
- var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
- var upgrade_1 = require("@initia/initia.proto/cosmos/upgrade/v1beta1/upgrade");
22
- var Plan_1 = require("../Plan");
23
- /**
24
- * Softwareupgradeproposal is a gov Content type for initiating a software upgrade.
25
- */
26
- var SoftwareUpgradeProposal = /** @class */ (function (_super) {
27
- __extends(SoftwareUpgradeProposal, _super);
28
- /**
29
- *
30
- * @param title
31
- * @param description
32
- * @param plan
33
- */
34
- function SoftwareUpgradeProposal(title, description, plan) {
35
- var _this = _super.call(this) || this;
36
- _this.title = title;
37
- _this.description = description;
38
- _this.plan = plan;
39
- return _this;
40
- }
41
- SoftwareUpgradeProposal.fromAmino = function (data) {
42
- var _a = data.value, title = _a.title, description = _a.description, plan = _a.plan;
43
- return new SoftwareUpgradeProposal(title, description, plan ? Plan_1.Plan.fromAmino(plan) : undefined);
44
- };
45
- SoftwareUpgradeProposal.prototype.toAmino = function () {
46
- var _a = this, title = _a.title, description = _a.description, plan = _a.plan;
47
- return {
48
- type: 'cosmos-sdk/SoftwareUpgradeProposal',
49
- value: {
50
- title: title,
51
- description: description,
52
- plan: plan ? plan.toAmino() : undefined,
53
- },
54
- };
55
- };
56
- SoftwareUpgradeProposal.fromData = function (data) {
57
- var title = data.title, description = data.description, plan = data.plan;
58
- return new SoftwareUpgradeProposal(title, description, plan ? Plan_1.Plan.fromData(plan) : undefined);
59
- };
60
- SoftwareUpgradeProposal.prototype.toData = function () {
61
- var _a = this, title = _a.title, description = _a.description, plan = _a.plan;
62
- return {
63
- '@type': '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal',
64
- title: title,
65
- description: description,
66
- plan: plan ? plan.toData() : undefined,
67
- };
68
- };
69
- SoftwareUpgradeProposal.fromProto = function (proto) {
70
- return new SoftwareUpgradeProposal(proto.title, proto.description, proto.plan ? Plan_1.Plan.fromProto(proto.plan) : undefined);
71
- };
72
- SoftwareUpgradeProposal.prototype.toProto = function () {
73
- var _a = this, title = _a.title, description = _a.description, plan = _a.plan;
74
- return upgrade_1.SoftwareUpgradeProposal.fromPartial({
75
- title: title,
76
- description: description,
77
- plan: plan ? plan.toProto() : undefined,
78
- });
79
- };
80
- SoftwareUpgradeProposal.prototype.packAny = function () {
81
- return any_1.Any.fromPartial({
82
- typeUrl: '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal',
83
- value: upgrade_1.SoftwareUpgradeProposal.encode(this.toProto()).finish(),
84
- });
85
- };
86
- SoftwareUpgradeProposal.unpackAny = function (msgAny) {
87
- return SoftwareUpgradeProposal.fromProto(upgrade_1.SoftwareUpgradeProposal.decode(msgAny.value));
88
- };
89
- return SoftwareUpgradeProposal;
90
- }(json_1.JSONSerializable));
91
- exports.SoftwareUpgradeProposal = SoftwareUpgradeProposal;
92
- //# sourceMappingURL=SoftwareUpgradeProposal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SoftwareUpgradeProposal.js","sourceRoot":"","sources":["../../../../src/core/upgrade/proposals/SoftwareUpgradeProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,+EAA4H;AAC5H,gCAA+B;AAE/B;;GAEG;AACH;IAA6C,2CAI5C;IACC;;;;;OAKG;IACH,iCACS,KAAa,EACb,WAAmB,EACnB,IAAW;QAHpB,YAKE,iBAAO,SACR;QALQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,UAAI,GAAJ,IAAI,CAAO;;IAGpB,CAAC;IAEa,iCAAS,GAAvB,UACE,IAAmC;QAGjC,IAAA,KACE,IAAI,MAD6B,EAA1B,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,IAAI,UAAE,CAC5B;QACT,OAAO,IAAI,uBAAuB,CAChC,KAAK,EACL,WAAW,EACX,IAAI,CAAC,CAAC,CAAC,WAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CACxC,CAAC;IACJ,CA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EAAE,WAAW,iBAAA,EAAE,IAAI,UAAS,CAAC;QAC1C,OAAO,iCAA0B,CAAC,WAAW,CAAC;YAC5C,KAAK,OAAA;YACL,WAAW,aAAA;YACX,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS;SACxC,CAAC,CAAC;IACL,CAAC;IAEM,yCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,iDAAiD;YAC1D,KAAK,EAAE,iCAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAClE,CAAC,CAAC;IACL,CAAC;IAEa,iCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,uBAAuB,CAAC,SAAS,CACtC,iCAA0B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAChD,CAAC;IACJ,CAAC;IACH,8BAAC;AAAD,CAAC,AAhGD,CAA6C,uBAAgB,GAgG5D;AAhGY,0DAAuB"}
@@ -1,2 +0,0 @@
1
- export * from './SoftwareUpgradeProposal';
2
- export * from './CancelSoftwareUpgradeProposal';
@@ -1,19 +0,0 @@
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("./SoftwareUpgradeProposal"), exports);
18
- __exportStar(require("./CancelSoftwareUpgradeProposal"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/upgrade/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,kEAAgD"}
@@ -1,32 +0,0 @@
1
- import { Coins } from '../Coins';
2
- import { Period as Period_pb } from '@initia/initia.proto/cosmos/vesting/v1beta1/vesting';
3
- import { JSONSerializable } from '../../util/json';
4
- /**
5
- * Period defines a length of time and amount of coins that will vest.
6
- */
7
- export declare class Period extends JSONSerializable<Period.Amino, Period.Data, Period.Proto> {
8
- length: number;
9
- amount: Coins;
10
- /**
11
- * @param length
12
- * @param amount
13
- */
14
- constructor(length: number, amount: Coins.Input);
15
- static fromAmino(data: Period.Amino): Period;
16
- toAmino(): Period.Amino;
17
- static fromData(data: Period.Data): Period;
18
- toData(): Period.Data;
19
- static fromProto(proto: Period.Proto): Period;
20
- toProto(): Period.Proto;
21
- }
22
- export declare namespace Period {
23
- interface Amino {
24
- length: string;
25
- amount: Coins.Amino;
26
- }
27
- interface Data {
28
- length: string;
29
- amount: Coins.Data;
30
- }
31
- type Proto = Period_pb;
32
- }
@@ -1,78 +0,0 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.Period = void 0;
22
- var Coins_1 = require("../Coins");
23
- var vesting_1 = require("@initia/initia.proto/cosmos/vesting/v1beta1/vesting");
24
- var json_1 = require("../../util/json");
25
- var long_1 = __importDefault(require("long"));
26
- /**
27
- * Period defines a length of time and amount of coins that will vest.
28
- */
29
- var Period = /** @class */ (function (_super) {
30
- __extends(Period, _super);
31
- /**
32
- * @param length
33
- * @param amount
34
- */
35
- function Period(length, amount) {
36
- var _this = _super.call(this) || this;
37
- _this.length = length;
38
- _this.amount = new Coins_1.Coins(amount);
39
- return _this;
40
- }
41
- Period.fromAmino = function (data) {
42
- var length = data.length, amount = data.amount;
43
- return new Period(Number.parseInt(length), Coins_1.Coins.fromAmino(amount));
44
- };
45
- Period.prototype.toAmino = function () {
46
- var _a = this, length = _a.length, amount = _a.amount;
47
- var res = {
48
- length: length.toFixed(),
49
- amount: amount.toAmino(),
50
- };
51
- return res;
52
- };
53
- Period.fromData = function (data) {
54
- var length = data.length, amount = data.amount;
55
- return new Period(Number.parseInt(length), Coins_1.Coins.fromData(amount));
56
- };
57
- Period.prototype.toData = function () {
58
- var _a = this, length = _a.length, amount = _a.amount;
59
- var res = {
60
- length: length.toFixed(),
61
- amount: amount.toData(),
62
- };
63
- return res;
64
- };
65
- Period.fromProto = function (proto) {
66
- return new Period(proto.length.toNumber(), Coins_1.Coins.fromProto(proto.amount));
67
- };
68
- Period.prototype.toProto = function () {
69
- var _a = this, length = _a.length, amount = _a.amount;
70
- return vesting_1.Period.fromPartial({
71
- length: long_1.default.fromNumber(length),
72
- amount: amount.toProto(),
73
- });
74
- };
75
- return Period;
76
- }(json_1.JSONSerializable));
77
- exports.Period = Period;
78
- //# sourceMappingURL=Period.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Period.js","sourceRoot":"","sources":["../../../src/core/vesting/Period.ts"],"names":[],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AAE;SACxB,CAAC;QACF,OAAO,GAAG,CAAC;IACb,CAAC;IAEa,gBAAS,GAAvB,UAAwB,KAAmB;QACzC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,CAAC;IAEM,wBAAO,GAAd;QACQ,IAAA,KAAqB,IAAI,EAAvB,MAAM,YAAA,EAAE,MAAM,YAAS,CAAC;QAChC,OAAO,gBAAS,CAAC,WAAW,CAAC;YAC3B,MAAM,EAAE,cAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC/B,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;IACH,aAAC;AAAD,CAAC,AAzDD,CAA4B,uBAAgB,GAyD3C;AAzDY,wBAAM"}
@@ -1,2 +0,0 @@
1
- export * from './Period';
2
- export * from './msgs';
@@ -1,19 +0,0 @@
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("./Period"), exports);
18
- __exportStar(require("./msgs"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/vesting/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB"}