@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,108 +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 __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DelayedVestingAccount = void 0;
30
- var json_1 = require("../../util/json");
31
- var BaseVestingAccount_1 = require("./BaseVestingAccount");
32
- var vesting_1 = require("@initia/initia.proto/cosmos/vesting/v1beta1/vesting");
33
- var any_1 = require("@initia/initia.proto/google/protobuf/any");
34
- /**
35
- * DelayedVestingAccount implements the VestingAccount interface. It vests all
36
- * coins after a specific time, but non prior. In other words, it keeps them
37
- * locked until a specified time.
38
- */
39
- var DelayedVestingAccount = /** @class */ (function (_super) {
40
- __extends(DelayedVestingAccount, _super);
41
- /**
42
- *
43
- * @param base_vesting_account account information
44
- */
45
- function DelayedVestingAccount(base_vesting_account) {
46
- var _this = _super.call(this) || this;
47
- _this.base_vesting_account = base_vesting_account;
48
- return _this;
49
- }
50
- DelayedVestingAccount.prototype.getAccountNumber = function () {
51
- return this.base_vesting_account.getAccountNumber();
52
- };
53
- DelayedVestingAccount.prototype.getSequenceNumber = function () {
54
- return this.base_vesting_account.getSequenceNumber();
55
- };
56
- DelayedVestingAccount.prototype.getPublicKey = function () {
57
- return this.base_vesting_account.base_account.public_key;
58
- };
59
- DelayedVestingAccount.prototype.toAmino = function () {
60
- var base_vesting_account = this.base_vesting_account;
61
- return {
62
- type: 'cosmos-sdk/DelayedVestingAccount',
63
- value: {
64
- base_vesting_account: base_vesting_account.toAmino().value,
65
- },
66
- };
67
- };
68
- DelayedVestingAccount.fromAmino = function (data) {
69
- var base_vesting_account = BaseVestingAccount_1.BaseVestingAccount.fromAmino({
70
- type: 'cosmos-sdk/BaseVestingAccount',
71
- value: data.value.base_vesting_account,
72
- });
73
- return new DelayedVestingAccount(base_vesting_account);
74
- };
75
- DelayedVestingAccount.prototype.toData = function () {
76
- var base_vesting_account = this.base_vesting_account;
77
- return {
78
- '@type': '/cosmos.vesting.v1beta1.DelayedVestingAccount',
79
- base_vesting_account: base_vesting_account.toData(),
80
- };
81
- };
82
- DelayedVestingAccount.fromData = function (data) {
83
- var base_vesting_account = BaseVestingAccount_1.BaseVestingAccount.fromData(__assign({ '@type': '/cosmos.vesting.v1beta1.BaseVestingAccount' }, data.base_vesting_account));
84
- return new DelayedVestingAccount(base_vesting_account);
85
- };
86
- DelayedVestingAccount.prototype.toProto = function () {
87
- var base_vesting_account = this.base_vesting_account;
88
- return vesting_1.DelayedVestingAccount.fromPartial({
89
- baseVestingAccount: base_vesting_account.toProto(),
90
- });
91
- };
92
- DelayedVestingAccount.fromProto = function (DelayedVestingAccountProto) {
93
- var baseVestingAccount = BaseVestingAccount_1.BaseVestingAccount.fromProto(DelayedVestingAccountProto.baseVestingAccount);
94
- return new DelayedVestingAccount(baseVestingAccount);
95
- };
96
- DelayedVestingAccount.prototype.packAny = function () {
97
- return any_1.Any.fromPartial({
98
- typeUrl: '/cosmos.vesting.v1beta1.DelayedVestingAccount',
99
- value: vesting_1.DelayedVestingAccount.encode(this.toProto()).finish(),
100
- });
101
- };
102
- DelayedVestingAccount.unpackAny = function (pubkeyAny) {
103
- return DelayedVestingAccount.fromProto(vesting_1.DelayedVestingAccount.decode(pubkeyAny.value));
104
- };
105
- return DelayedVestingAccount;
106
- }(json_1.JSONSerializable));
107
- exports.DelayedVestingAccount = DelayedVestingAccount;
108
- //# sourceMappingURL=DelayedVestingAccount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DelayedVestingAccount.js","sourceRoot":"","sources":["../../../src/core/auth/DelayedVestingAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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oBAAoB,EAC5B,CAAC;QACH,OAAO,IAAI,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;IAEM,uCAAO,GAAd;QACU,IAAA,oBAAoB,GAAK,IAAI,qBAAT,CAAU;QAEtC,OAAO,+BAAwB,CAAC,WAAW,CAAC;YAC1C,kBAAkB,EAAE,oBAAoB,CAAC,OAAO,EAAE;SACnD,CAAC,CAAC;IACL,CAAC;IAEa,+BAAS,GAAvB,UACE,0BAAuD;QAEvD,IAAM,kBAAkB,GAAG,uCAAkB,CAAC,SAAS,CACrD,0BAA0B,CAAC,kBAA2C,CACvE,CAAC;QACF,OAAO,IAAI,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IACvD,CAAC;IAEM,uCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,+CAA+C;YACxD,KAAK,EAAE,+BAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAChE,CAAC,CAAC;IACL,CAAC;IAEa,+BAAS,GAAvB,UAAwB,SAAc;QACpC,OAAO,qBAAqB,CAAC,SAAS,CACpC,+BAAwB,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CACjD,CAAC;IACJ,CAAC;IACH,4BAAC;AAAD,CAAC,AA5FD,CAA2C,uBAAgB,GA4F1D;AA5FY,sDAAqB"}
@@ -1,72 +0,0 @@
1
- import { JSONSerializable } from '../../util/json';
2
- import { BaseVestingAccount } from './BaseVestingAccount';
3
- import { Coins } from '../Coins';
4
- import { PeriodicVestingAccount as PeriodicVestingAccount_pb, Period as Period_pb } from '@initia/initia.proto/cosmos/vesting/v1beta1/vesting';
5
- import { Any } from '@initia/initia.proto/google/protobuf/any';
6
- import { PublicKey } from '../PublicKey';
7
- /**
8
- * PeriodicVestingAccount implements the VestingAccount interface. It
9
- * periodically vests by unlocking coins during each specified period.
10
- */
11
- export declare class PeriodicVestingAccount extends JSONSerializable<PeriodicVestingAccount.Amino, PeriodicVestingAccount.Data, PeriodicVestingAccount.Proto> {
12
- base_vesting_account: BaseVestingAccount;
13
- start_time: number;
14
- vesting_periods: PeriodicVestingAccount.Period[];
15
- /**
16
- *
17
- * @param base_vesting_account account information
18
- * @param start_time vesting start time
19
- * @param vesting_periods vesting period entries
20
- */
21
- constructor(base_vesting_account: BaseVestingAccount, start_time: number, vesting_periods: PeriodicVestingAccount.Period[]);
22
- getAccountNumber(): number;
23
- getSequenceNumber(): number;
24
- getPublicKey(): PublicKey | null;
25
- toAmino(): PeriodicVestingAccount.Amino;
26
- static fromAmino(data: PeriodicVestingAccount.Amino): PeriodicVestingAccount;
27
- toData(): PeriodicVestingAccount.Data;
28
- static fromData(data: PeriodicVestingAccount.Data): PeriodicVestingAccount;
29
- toProto(): PeriodicVestingAccount.Proto;
30
- static fromProto(proto: PeriodicVestingAccount.Proto): PeriodicVestingAccount;
31
- packAny(): Any;
32
- static unpackAny(pubkeyAny: Any): PeriodicVestingAccount;
33
- }
34
- export declare namespace PeriodicVestingAccount {
35
- interface Amino {
36
- type: 'cosmos-sdk/PeriodicVestingAccount';
37
- value: {
38
- base_vesting_account: BaseVestingAccount.AminoValue;
39
- start_time: string;
40
- vesting_periods: Period.Amino[];
41
- };
42
- }
43
- interface Data {
44
- '@type': '/cosmos.vesting.v1beta1.PeriodicVestingAccount';
45
- base_vesting_account: BaseVestingAccount.DataValue;
46
- start_time: string;
47
- vesting_periods: Period.Data[];
48
- }
49
- type Proto = PeriodicVestingAccount_pb;
50
- class Period extends JSONSerializable<Period.Amino, Period.Data, Period.Proto> {
51
- length: number;
52
- amount: Coins;
53
- constructor(length: number, amount: Coins);
54
- toAmino(): Period.Amino;
55
- static fromAmino(data: Period.Amino): Period;
56
- toData(): Period.Data;
57
- static fromData(data: Period.Data): Period;
58
- toProto(): Period.Proto;
59
- static fromProto(proto: Period.Proto): Period;
60
- }
61
- namespace Period {
62
- interface Amino {
63
- length: string;
64
- amount: Coins.Amino;
65
- }
66
- interface Data {
67
- length: string;
68
- amount: Coins.Amino;
69
- }
70
- type Proto = Period_pb;
71
- }
72
- }
@@ -1,170 +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 __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.PeriodicVestingAccount = void 0;
33
- var json_1 = require("../../util/json");
34
- var BaseVestingAccount_1 = require("./BaseVestingAccount");
35
- var Coins_1 = require("../Coins");
36
- var vesting_1 = require("@initia/initia.proto/cosmos/vesting/v1beta1/vesting");
37
- var any_1 = require("@initia/initia.proto/google/protobuf/any");
38
- var long_1 = __importDefault(require("long"));
39
- /**
40
- * PeriodicVestingAccount implements the VestingAccount interface. It
41
- * periodically vests by unlocking coins during each specified period.
42
- */
43
- var PeriodicVestingAccount = /** @class */ (function (_super) {
44
- __extends(PeriodicVestingAccount, _super);
45
- /**
46
- *
47
- * @param base_vesting_account account information
48
- * @param start_time vesting start time
49
- * @param vesting_periods vesting period entries
50
- */
51
- function PeriodicVestingAccount(base_vesting_account, start_time, vesting_periods) {
52
- var _this = _super.call(this) || this;
53
- _this.base_vesting_account = base_vesting_account;
54
- _this.start_time = start_time;
55
- _this.vesting_periods = vesting_periods;
56
- return _this;
57
- }
58
- PeriodicVestingAccount.prototype.getAccountNumber = function () {
59
- return this.base_vesting_account.getAccountNumber();
60
- };
61
- PeriodicVestingAccount.prototype.getSequenceNumber = function () {
62
- return this.base_vesting_account.getSequenceNumber();
63
- };
64
- PeriodicVestingAccount.prototype.getPublicKey = function () {
65
- return this.base_vesting_account.base_account.public_key;
66
- };
67
- PeriodicVestingAccount.prototype.toAmino = function () {
68
- var _a = this, base_vesting_account = _a.base_vesting_account, start_time = _a.start_time, vesting_periods = _a.vesting_periods;
69
- return {
70
- type: 'cosmos-sdk/PeriodicVestingAccount',
71
- value: {
72
- base_vesting_account: base_vesting_account.toAmino().value,
73
- start_time: start_time.toFixed(),
74
- vesting_periods: vesting_periods.map(function (vs) { return vs.toAmino(); }),
75
- },
76
- };
77
- };
78
- PeriodicVestingAccount.fromAmino = function (data) {
79
- var base_vesting_account = BaseVestingAccount_1.BaseVestingAccount.fromAmino({
80
- type: 'cosmos-sdk/BaseVestingAccount',
81
- value: data.value.base_vesting_account,
82
- });
83
- return new PeriodicVestingAccount(base_vesting_account, Number.parseInt(data.value.start_time), data.value.vesting_periods.map(function (vs) {
84
- return PeriodicVestingAccount.Period.fromAmino(vs);
85
- }));
86
- };
87
- PeriodicVestingAccount.prototype.toData = function () {
88
- var _a = this, base_vesting_account = _a.base_vesting_account, start_time = _a.start_time, vesting_periods = _a.vesting_periods;
89
- return {
90
- '@type': '/cosmos.vesting.v1beta1.PeriodicVestingAccount',
91
- base_vesting_account: base_vesting_account.toData(),
92
- start_time: start_time.toFixed(),
93
- vesting_periods: vesting_periods.map(function (vs) { return vs.toData(); }),
94
- };
95
- };
96
- PeriodicVestingAccount.fromData = function (data) {
97
- var base_vesting_account = BaseVestingAccount_1.BaseVestingAccount.fromData(__assign({ '@type': '/cosmos.vesting.v1beta1.BaseVestingAccount' }, data.base_vesting_account));
98
- return new PeriodicVestingAccount(base_vesting_account, Number.parseInt(data.start_time), data.vesting_periods.map(function (vs) { return PeriodicVestingAccount.Period.fromData(vs); }));
99
- };
100
- PeriodicVestingAccount.prototype.toProto = function () {
101
- var _a = this, base_vesting_account = _a.base_vesting_account, vesting_periods = _a.vesting_periods;
102
- return vesting_1.PeriodicVestingAccount.fromPartial({
103
- baseVestingAccount: base_vesting_account.toProto(),
104
- vestingPeriods: vesting_periods.map(function (s) { return s.toProto(); }),
105
- });
106
- };
107
- PeriodicVestingAccount.fromProto = function (proto) {
108
- var _this = this;
109
- var baseVestingAccount = BaseVestingAccount_1.BaseVestingAccount.fromProto(proto.baseVestingAccount);
110
- return new PeriodicVestingAccount(baseVestingAccount, proto.startTime.toNumber(), proto.vestingPeriods.map(function (s) { return _this.Period.fromProto(s); }));
111
- };
112
- PeriodicVestingAccount.prototype.packAny = function () {
113
- return any_1.Any.fromPartial({
114
- typeUrl: '/cosmos.vesting.v1beta1.PeriodicVestingAccount',
115
- value: vesting_1.PeriodicVestingAccount.encode(this.toProto()).finish(),
116
- });
117
- };
118
- PeriodicVestingAccount.unpackAny = function (pubkeyAny) {
119
- return PeriodicVestingAccount.fromProto(vesting_1.PeriodicVestingAccount.decode(pubkeyAny.value));
120
- };
121
- return PeriodicVestingAccount;
122
- }(json_1.JSONSerializable));
123
- exports.PeriodicVestingAccount = PeriodicVestingAccount;
124
- (function (PeriodicVestingAccount) {
125
- var Period = /** @class */ (function (_super) {
126
- __extends(Period, _super);
127
- function Period(length, amount) {
128
- var _this = _super.call(this) || this;
129
- _this.length = length;
130
- _this.amount = amount;
131
- return _this;
132
- }
133
- Period.prototype.toAmino = function () {
134
- var _a = this, length = _a.length, amount = _a.amount;
135
- return {
136
- length: length.toFixed(),
137
- amount: amount.toAmino(),
138
- };
139
- };
140
- Period.fromAmino = function (data) {
141
- var length = data.length, amount = data.amount;
142
- return new Period(Number.parseInt(length), Coins_1.Coins.fromAmino(amount));
143
- };
144
- Period.prototype.toData = function () {
145
- var _a = this, length = _a.length, amount = _a.amount;
146
- return {
147
- length: length.toFixed(),
148
- amount: amount.toData(),
149
- };
150
- };
151
- Period.fromData = function (data) {
152
- var length = data.length, amount = data.amount;
153
- return new Period(Number.parseInt(length), Coins_1.Coins.fromData(amount));
154
- };
155
- Period.prototype.toProto = function () {
156
- var _a = this, length = _a.length, amount = _a.amount;
157
- return vesting_1.Period.fromPartial({
158
- length: long_1.default.fromNumber(length),
159
- amount: amount.toProto(),
160
- });
161
- };
162
- Period.fromProto = function (proto) {
163
- return new Period(proto.length.toNumber(), Coins_1.Coins.fromProto(proto.amount));
164
- };
165
- return Period;
166
- }(json_1.JSONSerializable));
167
- PeriodicVestingAccount.Period = Period;
168
- })(PeriodicVestingAccount = exports.PeriodicVestingAccount || (exports.PeriodicVestingAccount = {}));
169
- exports.PeriodicVestingAccount = PeriodicVestingAccount;
170
- //# sourceMappingURL=PeriodicVestingAccount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PeriodicVestingAccount.js","sourceRoot":"","sources":["../../../src/core/auth/PeriodicVestingAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAmD;AACnD,2DAA0D;AAC1D,kCAAiC;AAEjC,+EAG6D;AAC7D,gEAA+D;AAC/D,8CAAwB;AAGxB;;;GAGG;AACH;IAA4C,0CAI3C;IACC;;;;;OAKG;IACH,gCACS,oBAAwC,EACxC,UAAkB,EAClB,eAAgD;QAHzD,YAKE,iBAAO,SACR;QALQ,0BAAoB,GAApB,oBAAoB,CAAoB;QACxC,gBAAU,GAAV,UAAU,CAAQ;QAClB,qBAAe,GAAf,eAAe,CAAiC;;IAGzD,CAAC;IAEM,iDAAgB,GAAvB;QACE,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAA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C,OAAO;gBACL,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;gBACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;aACxB,CAAC;QACJ,CAAC;QAEa,eAAQ,GAAtB,UAAuB,IAAiB;YAC9B,IAAA,MAAM,GAAa,IAAI,OAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;YAChC,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;QACrE,CAAC;QAEM,wBAAO,GAAd;YACQ,IAAA,KAAqB,IAAI,EAAvB,MAAM,YAAA,EAAE,MAAM,YAAS,CAAC;YAChC,OAAO,gBAAS,CAAC,WAAW,CAAC;gBAC3B,MAAM,EAAE,cAAI,CAAC,UAAU,CAAC,MAAM,CAAC;gBAC/B,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;aACzB,CAAC,CAAC;QACL,CAAC;QAEa,gBAAS,GAAvB,UAAwB,KAAmB;YACzC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5E,CAAC;QACH,aAAC;IAAD,CAAC,AA7CD,CAA4B,uBAAgB,GA6C3C;IA7CY,6BAAM,SA6ClB,CAAA;AAeH,CAAC,EA/EgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QA+EtC;AAxMY,wDAAsB"}
@@ -1,43 +0,0 @@
1
- import { JSONSerializable } from '../../util/json';
2
- import { Any } from '@initia/initia.proto/google/protobuf/any';
3
- import { MsgVerifyInvariant as MsgVerifyInvariant_pb } from '@initia/initia.proto/cosmos/crisis/v1beta1/tx';
4
- import { AccAddress } from '../bech32';
5
- /**
6
- * MsgVerifyInvariant represents a message to verify a particular invariance.
7
- */
8
- export declare class MsgVerifyInvariant extends JSONSerializable<MsgVerifyInvariant.Amino, MsgVerifyInvariant.Data, MsgVerifyInvariant.Proto> {
9
- sender: AccAddress;
10
- invariantModuleName: string;
11
- invariantRoute: string;
12
- /**
13
- * @param sender sender's address
14
- * @param invariantModuleName module name to verify invariant
15
- * @param invariantRoute route to verify
16
- */
17
- constructor(sender: AccAddress, invariantModuleName: string, invariantRoute: string);
18
- static fromAmino(data: MsgVerifyInvariant.Amino): MsgVerifyInvariant;
19
- toAmino(): MsgVerifyInvariant.Amino;
20
- static fromData(data: MsgVerifyInvariant.Data): MsgVerifyInvariant;
21
- toData(): MsgVerifyInvariant.Data;
22
- static fromProto(proto: MsgVerifyInvariant.Proto): MsgVerifyInvariant;
23
- toProto(): MsgVerifyInvariant.Proto;
24
- packAny(): Any;
25
- static unpackAny(msgAny: Any): MsgVerifyInvariant;
26
- }
27
- export declare namespace MsgVerifyInvariant {
28
- interface Amino {
29
- type: 'cosmos-sdk/MsgVerifyInvariant';
30
- value: {
31
- sender: AccAddress;
32
- invariantModuleName: string;
33
- invariantRoute: string;
34
- };
35
- }
36
- interface Data {
37
- '@type': '/cosmos.crisis.v1beta1.MsgVerifyInvariant';
38
- sender: AccAddress;
39
- invariantModuleName: string;
40
- invariantRoute: string;
41
- }
42
- type Proto = MsgVerifyInvariant_pb;
43
- }
@@ -1,77 +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.MsgVerifyInvariant = void 0;
19
- var json_1 = require("../../util/json");
20
- var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
- var tx_1 = require("@initia/initia.proto/cosmos/crisis/v1beta1/tx");
22
- /**
23
- * MsgVerifyInvariant represents a message to verify a particular invariance.
24
- */
25
- var MsgVerifyInvariant = /** @class */ (function (_super) {
26
- __extends(MsgVerifyInvariant, _super);
27
- /**
28
- * @param sender sender's address
29
- * @param invariantModuleName module name to verify invariant
30
- * @param invariantRoute route to verify
31
- */
32
- function MsgVerifyInvariant(sender, invariantModuleName, invariantRoute) {
33
- var _this = _super.call(this) || this;
34
- _this.sender = sender;
35
- _this.invariantModuleName = invariantModuleName;
36
- _this.invariantRoute = invariantRoute;
37
- return _this;
38
- }
39
- MsgVerifyInvariant.fromAmino = function (data) {
40
- var _a = data.value, sender = _a.sender, invariantModuleName = _a.invariantModuleName, invariantRoute = _a.invariantRoute;
41
- return new MsgVerifyInvariant(sender, invariantModuleName, invariantRoute);
42
- };
43
- MsgVerifyInvariant.prototype.toAmino = function () {
44
- throw new Error('MsgVerifyInvarant is not allowed to send');
45
- };
46
- MsgVerifyInvariant.fromData = function (data) {
47
- var sender = data.sender, invariantModuleName = data.invariantModuleName, invariantRoute = data.invariantRoute;
48
- return new MsgVerifyInvariant(sender, invariantModuleName, invariantRoute);
49
- };
50
- MsgVerifyInvariant.prototype.toData = function () {
51
- var _a = this, sender = _a.sender, invariantModuleName = _a.invariantModuleName, invariantRoute = _a.invariantRoute;
52
- return {
53
- '@type': '/cosmos.crisis.v1beta1.MsgVerifyInvariant',
54
- sender: sender,
55
- invariantModuleName: invariantModuleName,
56
- invariantRoute: invariantRoute,
57
- };
58
- };
59
- MsgVerifyInvariant.fromProto = function (proto) {
60
- return new MsgVerifyInvariant(proto.sender, proto.invariantModuleName, proto.invariantRoute);
61
- };
62
- MsgVerifyInvariant.prototype.toProto = function () {
63
- throw new Error('MsgVerifyInvarant is not allowed to send');
64
- };
65
- MsgVerifyInvariant.prototype.packAny = function () {
66
- return any_1.Any.fromPartial({
67
- typeUrl: '/cosmos.crisis.v1beta1.MsgVerifyInvariant',
68
- value: tx_1.MsgVerifyInvariant.encode(this.toProto()).finish(),
69
- });
70
- };
71
- MsgVerifyInvariant.unpackAny = function (msgAny) {
72
- return MsgVerifyInvariant.fromProto(tx_1.MsgVerifyInvariant.decode(msgAny.value));
73
- };
74
- return MsgVerifyInvariant;
75
- }(json_1.JSONSerializable));
76
- exports.MsgVerifyInvariant = MsgVerifyInvariant;
77
- //# sourceMappingURL=MsgVerifyInvariant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MsgVerifyInvariant.js","sourceRoot":"","sources":["../../../src/core/crisis/MsgVerifyInvariant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wCAAmD;AACnD,gEAA+D;AAC/D,oEAA4G;AAG5G;;GAEG;AACH;IAAwC,sCAIvC;IACC;;;;OAIG;IACH,4BACS,MAAkB,EAClB,mBAA2B,EAC3B,cAAsB;QAH/B,YAKE,iBAAO,SACR;QALQ,YAAM,GAAN,MAAM,CAAY;QAClB,yBAAmB,GAAnB,mBAAmB,CAAQ;QAC3B,oBAAc,GAAd,cAAc,CAAQ;;IAG/B,CAAC;IAEa,4BAAS,GAAvB,UAAwB,IAA8B;QAElD,IAAA,KACE,IAAI,MADgD,EAA7C,MAAM,YAAA,EAAE,mBAAmB,yBAAA,EAAE,cAAc,oBAAE,CAC/C;QACT,OAAO,IAAI,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,EAAE,cAAc,CAAC,CAAC;IAC7E,CAAC;IAEM,oCAAO,GAAd;QACE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IAEa,2BAAQ,GAAtB,UAAuB,IAA6B;QAC1C,IAAA,MAAM,GAA0C,IAAI,OAA9C,EAAE,mBAAmB,GAAqB,IAAI,oBAAzB,EAAE,cAAc,GAAK,IAAI,eAAT,CAAU;QAE7D,OAAO,IAAI,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,EAAE,cAAc,CAAC,CAAC;IAC7E,CAAC;IAEM,mCAAM,GAAb;QACQ,IAAA,KAAkD,IAAI,EAApD,MAAM,YAAA,EAAE,mBAAmB,yBAAA,EAAE,cAAc,oBAAS,CAAC;QAC7D,OAAO;YACL,OAAO,EAAE,2CAA2C;YACpD,MAAM,QAAA;YACN,mBAAmB,qBAAA;YACnB,cAAc,gBAAA;SACf,CAAC;IACJ,CAAC;IAEa,4BAAS,GAAvB,UAAwB,KAA+B;QACrD,OAAO,IAAI,kBAAkB,CAC3B,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,cAAc,CACrB,CAAC;IACJ,CAAC;IAEM,oCAAO,GAAd;QACE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IAEM,oCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,2CAA2C;YACpD,KAAK,EAAE,uBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC7D,CAAC,CAAC;IACL,CAAC;IAEa,4BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,kBAAkB,CAAC,SAAS,CACjC,uBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC3C,CAAC;IACJ,CAAC;IACH,yBAAC;AAAD,CAAC,AArED,CAAwC,uBAAgB,GAqEvD;AArEY,gDAAkB"}
@@ -1,49 +0,0 @@
1
- import { JSONSerializable } from '../../../util/json';
2
- import { Coins } from '../../Coins';
3
- import { AccAddress } from '../../bech32';
4
- import { Any } from '@initia/initia.proto/google/protobuf/any';
5
- import { CommunityPoolSpendProposal as CommunityPoolSpendProposal_pb } from '@initia/initia.proto/cosmos/distribution/v1beta1/distribution';
6
- /**
7
- * Proposal that disburses funds from the Distribution module's community pool to the
8
- * specified recipient if passed.
9
- */
10
- export declare class CommunityPoolSpendProposal extends JSONSerializable<CommunityPoolSpendProposal.Amino, CommunityPoolSpendProposal.Data, CommunityPoolSpendProposal.Proto> {
11
- title: string;
12
- description: string;
13
- recipient: AccAddress;
14
- amount: Coins;
15
- /**
16
- * @param title proposal's title
17
- * @param description proposal's description
18
- * @param recipient recipient address
19
- * @param amount amount to give recipient
20
- */
21
- constructor(title: string, description: string, recipient: AccAddress, amount: Coins.Input);
22
- static fromAmino(data: CommunityPoolSpendProposal.Amino): CommunityPoolSpendProposal;
23
- toAmino(): CommunityPoolSpendProposal.Amino;
24
- static fromData(data: CommunityPoolSpendProposal.Data): CommunityPoolSpendProposal;
25
- toData(): CommunityPoolSpendProposal.Data;
26
- static fromProto(proto: CommunityPoolSpendProposal.Proto): CommunityPoolSpendProposal;
27
- toProto(): CommunityPoolSpendProposal.Proto;
28
- packAny(): Any;
29
- static unpackAny(msgAny: Any): CommunityPoolSpendProposal;
30
- }
31
- export declare namespace CommunityPoolSpendProposal {
32
- interface Amino {
33
- type: 'cosmos-sdk/CommunityPoolSpendProposal';
34
- value: {
35
- title: string;
36
- description: string;
37
- recipient: AccAddress;
38
- amount: Coins.Amino;
39
- };
40
- }
41
- interface Data {
42
- '@type': '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal';
43
- title: string;
44
- description: string;
45
- recipient: AccAddress;
46
- amount: Coins.Data;
47
- }
48
- type Proto = CommunityPoolSpendProposal_pb;
49
- }
@@ -1,97 +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.CommunityPoolSpendProposal = void 0;
19
- var json_1 = require("../../../util/json");
20
- var Coins_1 = require("../../Coins");
21
- var any_1 = require("@initia/initia.proto/google/protobuf/any");
22
- var distribution_1 = require("@initia/initia.proto/cosmos/distribution/v1beta1/distribution");
23
- /**
24
- * Proposal that disburses funds from the Distribution module's community pool to the
25
- * specified recipient if passed.
26
- */
27
- var CommunityPoolSpendProposal = /** @class */ (function (_super) {
28
- __extends(CommunityPoolSpendProposal, _super);
29
- /**
30
- * @param title proposal's title
31
- * @param description proposal's description
32
- * @param recipient recipient address
33
- * @param amount amount to give recipient
34
- */
35
- function CommunityPoolSpendProposal(title, description, recipient, amount) {
36
- var _this = _super.call(this) || this;
37
- _this.title = title;
38
- _this.description = description;
39
- _this.recipient = recipient;
40
- _this.amount = new Coins_1.Coins(amount);
41
- return _this;
42
- }
43
- CommunityPoolSpendProposal.fromAmino = function (data) {
44
- var _a = data.value, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
45
- return new CommunityPoolSpendProposal(title, description, recipient, Coins_1.Coins.fromAmino(amount));
46
- };
47
- CommunityPoolSpendProposal.prototype.toAmino = function () {
48
- var _a = this, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
49
- return {
50
- type: 'cosmos-sdk/CommunityPoolSpendProposal',
51
- value: {
52
- title: title,
53
- description: description,
54
- recipient: recipient,
55
- amount: amount.toAmino(),
56
- },
57
- };
58
- };
59
- CommunityPoolSpendProposal.fromData = function (data) {
60
- var title = data.title, description = data.description, recipient = data.recipient, amount = data.amount;
61
- return new CommunityPoolSpendProposal(title, description, recipient, Coins_1.Coins.fromData(amount));
62
- };
63
- CommunityPoolSpendProposal.prototype.toData = function () {
64
- var _a = this, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
65
- return {
66
- '@type': '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
67
- title: title,
68
- description: description,
69
- recipient: recipient,
70
- amount: amount.toData(),
71
- };
72
- };
73
- CommunityPoolSpendProposal.fromProto = function (proto) {
74
- return new CommunityPoolSpendProposal(proto.title, proto.description, proto.recipient, Coins_1.Coins.fromProto(proto.amount));
75
- };
76
- CommunityPoolSpendProposal.prototype.toProto = function () {
77
- var _a = this, title = _a.title, description = _a.description, recipient = _a.recipient, amount = _a.amount;
78
- return distribution_1.CommunityPoolSpendProposal.fromPartial({
79
- amount: amount.toProto(),
80
- description: description,
81
- recipient: recipient,
82
- title: title,
83
- });
84
- };
85
- CommunityPoolSpendProposal.prototype.packAny = function () {
86
- return any_1.Any.fromPartial({
87
- typeUrl: '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal',
88
- value: distribution_1.CommunityPoolSpendProposal.encode(this.toProto()).finish(),
89
- });
90
- };
91
- CommunityPoolSpendProposal.unpackAny = function (msgAny) {
92
- return CommunityPoolSpendProposal.fromProto(distribution_1.CommunityPoolSpendProposal.decode(msgAny.value));
93
- };
94
- return CommunityPoolSpendProposal;
95
- }(json_1.JSONSerializable));
96
- exports.CommunityPoolSpendProposal = CommunityPoolSpendProposal;
97
- //# sourceMappingURL=CommunityPoolSpendProposal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommunityPoolSpendProposal.js","sourceRoot":"","sources":["../../../../src/core/distribution/proposals/CommunityPoolSpendProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,qCAAoC;AAEpC,gEAA+D;AAC/D,8FAA4I;AAE5I;;;GAGG;AACH;IAAgD,8CAI/C;IAEC;;;;;OAKG;IACH,oCACS,KAAa,EACb,WAAmB,EACnB,SAAqB,EAC5B,MAAmB;QAJrB,YAME,iBAAO,SAER;QAPQ,WAAK,GAAL,KAAK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