@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.
- package/package.json +1 -1
- package/dist/client/lcd/LCDUtils.d.ts +0 -18
- package/dist/client/lcd/LCDUtils.js +0 -93
- package/dist/client/lcd/LCDUtils.js.map +0 -1
- package/dist/client/lcd/api/MintAPI.d.ts +0 -27
- package/dist/client/lcd/api/MintAPI.js +0 -109
- package/dist/client/lcd/api/MintAPI.js.map +0 -1
- package/dist/client/lcd/api/StakingAPI.d.ts +0 -100
- package/dist/client/lcd/api/StakingAPI.js +0 -297
- package/dist/client/lcd/api/StakingAPI.js.map +0 -1
- package/dist/core/CompactBitArray.d.ts +0 -23
- package/dist/core/CompactBitArray.js +0 -94
- package/dist/core/CompactBitArray.js.map +0 -1
- package/dist/core/Deposit.d.ts +0 -37
- package/dist/core/Deposit.js +0 -81
- package/dist/core/Deposit.js.map +0 -1
- package/dist/core/Fee.d.ts +0 -42
- package/dist/core/Fee.js +0 -88
- package/dist/core/Fee.js.map +0 -1
- package/dist/core/MultiSignature.d.ts +0 -17
- package/dist/core/MultiSignature.js +0 -57
- package/dist/core/MultiSignature.js.map +0 -1
- package/dist/core/SignDoc.d.ts +0 -54
- package/dist/core/SignDoc.js +0 -96
- package/dist/core/SignDoc.js.map +0 -1
- package/dist/core/SignatureV2.d.ts +0 -66
- package/dist/core/SignatureV2.js +0 -131
- package/dist/core/SignatureV2.js.map +0 -1
- package/dist/core/Tx.d.ts +0 -147
- package/dist/core/Tx.js +0 -279
- package/dist/core/Tx.js.map +0 -1
- package/dist/core/TxInfo.d.ts +0 -91
- package/dist/core/TxInfo.js +0 -115
- package/dist/core/TxInfo.js.map +0 -1
- package/dist/core/ValidatorSet.d.ts +0 -11
- package/dist/core/ValidatorSet.js +0 -3
- package/dist/core/ValidatorSet.js.map +0 -1
- package/dist/core/auth/BaseVestingAccount.d.ts +0 -58
- package/dist/core/auth/BaseVestingAccount.js +0 -123
- package/dist/core/auth/BaseVestingAccount.js.map +0 -1
- package/dist/core/auth/ContinuousVestingAccount.d.ts +0 -45
- package/dist/core/auth/ContinuousVestingAccount.js +0 -116
- package/dist/core/auth/ContinuousVestingAccount.js.map +0 -1
- package/dist/core/auth/DelayedVestingAccount.d.ts +0 -42
- package/dist/core/auth/DelayedVestingAccount.js +0 -108
- package/dist/core/auth/DelayedVestingAccount.js.map +0 -1
- package/dist/core/auth/PeriodicVestingAccount.d.ts +0 -72
- package/dist/core/auth/PeriodicVestingAccount.js +0 -170
- package/dist/core/auth/PeriodicVestingAccount.js.map +0 -1
- package/dist/core/crisis/MsgVerifyInvariant.d.ts +0 -43
- package/dist/core/crisis/MsgVerifyInvariant.js +0 -77
- package/dist/core/crisis/MsgVerifyInvariant.js.map +0 -1
- package/dist/core/distribution/proposals/CommunityPoolSpendProposal.d.ts +0 -49
- package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js +0 -97
- package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js.map +0 -1
- package/dist/core/distribution/proposals/index.d.ts +0 -1
- package/dist/core/distribution/proposals/index.js +0 -18
- package/dist/core/distribution/proposals/index.js.map +0 -1
- package/dist/core/gov/Proposal.d.ts +0 -96
- package/dist/core/gov/Proposal.js +0 -244
- package/dist/core/gov/Proposal.js.map +0 -1
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.d.ts +0 -34
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js +0 -82
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js.map +0 -1
- package/dist/core/ibc/applications/nft-transfer/ClassTrace.d.ts +0 -28
- package/dist/core/ibc/applications/nft-transfer/ClassTrace.js +0 -67
- package/dist/core/ibc/applications/nft-transfer/ClassTrace.js.map +0 -1
- package/dist/core/ibc/core/connection/Version.d.ts +0 -28
- package/dist/core/ibc/core/connection/Version.js +0 -70
- package/dist/core/ibc/core/connection/Version.js.map +0 -1
- package/dist/core/move/StorageFee.d.ts +0 -34
- package/dist/core/move/StorageFee.js +0 -78
- package/dist/core/move/StorageFee.js.map +0 -1
- package/dist/core/move/proposals/DelistProposal.d.ts +0 -50
- package/dist/core/move/proposals/DelistProposal.js +0 -100
- package/dist/core/move/proposals/DelistProposal.js.map +0 -1
- package/dist/core/move/proposals/ExecuteOperation.d.ts +0 -51
- package/dist/core/move/proposals/ExecuteOperation.js +0 -100
- package/dist/core/move/proposals/ExecuteOperation.js.map +0 -1
- package/dist/core/move/proposals/ExecuteProposal.d.ts +0 -54
- package/dist/core/move/proposals/ExecuteProposal.js +0 -105
- package/dist/core/move/proposals/ExecuteProposal.js.map +0 -1
- package/dist/core/move/proposals/OperationsProposal.d.ts +0 -57
- package/dist/core/move/proposals/OperationsProposal.js +0 -129
- package/dist/core/move/proposals/OperationsProposal.js.map +0 -1
- package/dist/core/move/proposals/PublishOperation.d.ts +0 -34
- package/dist/core/move/proposals/PublishOperation.js +0 -76
- package/dist/core/move/proposals/PublishOperation.js.map +0 -1
- package/dist/core/move/proposals/PublishProposal.d.ts +0 -42
- package/dist/core/move/proposals/PublishProposal.js +0 -90
- package/dist/core/move/proposals/PublishProposal.js.map +0 -1
- package/dist/core/move/proposals/WhitelistProposal.d.ts +0 -54
- package/dist/core/move/proposals/WhitelistProposal.js +0 -105
- package/dist/core/move/proposals/WhitelistProposal.js.map +0 -1
- package/dist/core/move/proposals/index.d.ts +0 -5
- package/dist/core/move/proposals/index.js +0 -22
- package/dist/core/move/proposals/index.js.map +0 -1
- package/dist/core/staking/Delegation.d.ts +0 -45
- package/dist/core/staking/Delegation.js +0 -89
- package/dist/core/staking/Delegation.js.map +0 -1
- package/dist/core/staking/Redelegation.d.ts +0 -97
- package/dist/core/staking/Redelegation.js +0 -174
- package/dist/core/staking/Redelegation.js.map +0 -1
- package/dist/core/staking/UnbondingDelegation.d.ts +0 -75
- package/dist/core/staking/UnbondingDelegation.js +0 -143
- package/dist/core/staking/UnbondingDelegation.js.map +0 -1
- package/dist/core/staking/Validator.d.ts +0 -173
- package/dist/core/staking/Validator.js +0 -287
- package/dist/core/staking/Validator.js.map +0 -1
- package/dist/core/staking/msgs/MsgBeginRedelegate.d.ts +0 -51
- package/dist/core/staking/msgs/MsgBeginRedelegate.js +0 -99
- package/dist/core/staking/msgs/MsgBeginRedelegate.js.map +0 -1
- package/dist/core/staking/msgs/MsgCreateValidator.d.ts +0 -60
- package/dist/core/staking/msgs/MsgCreateValidator.js +0 -110
- package/dist/core/staking/msgs/MsgCreateValidator.js.map +0 -1
- package/dist/core/staking/msgs/MsgDelegate.d.ts +0 -46
- package/dist/core/staking/msgs/MsgDelegate.js +0 -93
- package/dist/core/staking/msgs/MsgDelegate.js.map +0 -1
- package/dist/core/staking/msgs/MsgEditValidator.d.ts +0 -50
- package/dist/core/staking/msgs/MsgEditValidator.js +0 -111
- package/dist/core/staking/msgs/MsgEditValidator.js.map +0 -1
- package/dist/core/staking/msgs/MsgUndelegate.d.ts +0 -46
- package/dist/core/staking/msgs/MsgUndelegate.js +0 -93
- package/dist/core/staking/msgs/MsgUndelegate.js.map +0 -1
- package/dist/core/staking/msgs/index.d.ts +0 -16
- package/dist/core/staking/msgs/index.js +0 -22
- package/dist/core/staking/msgs/index.js.map +0 -1
- package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.d.ts +0 -39
- package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js +0 -86
- package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js.map +0 -1
- package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.d.ts +0 -44
- package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js +0 -92
- package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js.map +0 -1
- package/dist/core/upgrade/proposals/index.d.ts +0 -2
- package/dist/core/upgrade/proposals/index.js +0 -19
- package/dist/core/upgrade/proposals/index.js.map +0 -1
- package/dist/core/vesting/Period.d.ts +0 -32
- package/dist/core/vesting/Period.js +0 -78
- package/dist/core/vesting/Period.js.map +0 -1
- package/dist/core/vesting/index.d.ts +0 -2
- package/dist/core/vesting/index.js +0 -19
- package/dist/core/vesting/index.js.map +0 -1
- package/dist/core/vesting/msgs/MsgCreateVestingAccount.d.ts +0 -50
- package/dist/core/vesting/msgs/MsgCreateVestingAccount.js +0 -103
- package/dist/core/vesting/msgs/MsgCreateVestingAccount.js.map +0 -1
- package/dist/core/vesting/msgs/index.d.ts +0 -8
- package/dist/core/vesting/msgs/index.js +0 -18
- package/dist/core/vesting/msgs/index.js.map +0 -1
- package/dist/util/contract.d.ts +0 -9
- package/dist/util/contract.js +0 -57
- package/dist/util/contract.js.map +0 -1
- package/dist/util/convert.d.ts +0 -8
- package/dist/util/convert.js +0 -12
- package/dist/util/convert.js.map +0 -1
|
@@ -1,143 +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.UnbondingDelegation = void 0;
|
|
22
|
-
var json_1 = require("../../util/json");
|
|
23
|
-
var Coins_1 = require("../Coins");
|
|
24
|
-
var staking_1 = require("@initia/initia.proto/initia/mstaking/v1/staking");
|
|
25
|
-
var long_1 = __importDefault(require("long"));
|
|
26
|
-
/**
|
|
27
|
-
* When a delegator decides to take out their funds from the staking pool, they must
|
|
28
|
-
* unbond their tokens which takes an amount of time specified by `unbonding_time`
|
|
29
|
-
* parameter in the staking module.
|
|
30
|
-
*
|
|
31
|
-
* An unbonding delegation is implemented through creating [[UnbondingDelegation.Entry]]
|
|
32
|
-
* objects, limited by the max_entry parameter in the staking module params. You cannot
|
|
33
|
-
* initiate unbonds more times than the amount of entries permitted. Entries are cleared
|
|
34
|
-
* when their unbonding periods are completed and the funds are returned to the
|
|
35
|
-
* delegator's account balance to be spent freely.
|
|
36
|
-
*/
|
|
37
|
-
var UnbondingDelegation = /** @class */ (function (_super) {
|
|
38
|
-
__extends(UnbondingDelegation, _super);
|
|
39
|
-
function UnbondingDelegation(delegator_address, validator_address, entries) {
|
|
40
|
-
var _this = _super.call(this) || this;
|
|
41
|
-
_this.delegator_address = delegator_address;
|
|
42
|
-
_this.validator_address = validator_address;
|
|
43
|
-
_this.entries = entries;
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
UnbondingDelegation.fromAmino = function (data) {
|
|
47
|
-
var delegator_address = data.delegator_address, validator_address = data.validator_address, entries = data.entries;
|
|
48
|
-
return new UnbondingDelegation(delegator_address, validator_address, entries.map(function (e) { return UnbondingDelegation.Entry.fromAmino(e); }));
|
|
49
|
-
};
|
|
50
|
-
UnbondingDelegation.prototype.toAmino = function () {
|
|
51
|
-
var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, entries = _a.entries;
|
|
52
|
-
return {
|
|
53
|
-
delegator_address: delegator_address,
|
|
54
|
-
validator_address: validator_address,
|
|
55
|
-
entries: entries.map(function (e) { return e.toAmino(); }),
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
UnbondingDelegation.fromData = function (data) {
|
|
59
|
-
var delegator_address = data.delegator_address, validator_address = data.validator_address, entries = data.entries;
|
|
60
|
-
return new UnbondingDelegation(delegator_address, validator_address, entries.map(function (e) { return UnbondingDelegation.Entry.fromData(e); }));
|
|
61
|
-
};
|
|
62
|
-
UnbondingDelegation.prototype.toData = function () {
|
|
63
|
-
var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, entries = _a.entries;
|
|
64
|
-
return {
|
|
65
|
-
delegator_address: delegator_address,
|
|
66
|
-
validator_address: validator_address,
|
|
67
|
-
entries: entries.map(function (e) { return e.toData(); }),
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
UnbondingDelegation.prototype.toProto = function () {
|
|
71
|
-
var _a = this, delegator_address = _a.delegator_address, validator_address = _a.validator_address, entries = _a.entries;
|
|
72
|
-
return staking_1.UnbondingDelegation.fromPartial({
|
|
73
|
-
delegatorAddress: delegator_address,
|
|
74
|
-
entries: entries.map(function (e) { return e.toProto(); }),
|
|
75
|
-
validatorAddress: validator_address,
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
UnbondingDelegation.fromProto = function (proto) {
|
|
79
|
-
return new UnbondingDelegation(proto.delegatorAddress, proto.validatorAddress, proto.entries.map(function (e) { return UnbondingDelegation.Entry.fromProto(e); }));
|
|
80
|
-
};
|
|
81
|
-
return UnbondingDelegation;
|
|
82
|
-
}(json_1.JSONSerializable));
|
|
83
|
-
exports.UnbondingDelegation = UnbondingDelegation;
|
|
84
|
-
(function (UnbondingDelegation) {
|
|
85
|
-
var Entry = /** @class */ (function (_super) {
|
|
86
|
-
__extends(Entry, _super);
|
|
87
|
-
/**
|
|
88
|
-
* Note that the size of the undelegation is `initial_balance - balance`
|
|
89
|
-
* @param initial_balance balance of delegation prior to initiating unbond
|
|
90
|
-
* @param balance balance of delegation after initiating unbond
|
|
91
|
-
* @param creation_height height of blockchain when entry was created
|
|
92
|
-
* @param completion_time time when unbonding will be completed
|
|
93
|
-
*/
|
|
94
|
-
function Entry(initial_balance, balance, creation_height, completion_time) {
|
|
95
|
-
var _this = _super.call(this) || this;
|
|
96
|
-
_this.creation_height = creation_height;
|
|
97
|
-
_this.completion_time = completion_time;
|
|
98
|
-
_this.initial_balance = new Coins_1.Coins(initial_balance);
|
|
99
|
-
_this.balance = new Coins_1.Coins(balance);
|
|
100
|
-
return _this;
|
|
101
|
-
}
|
|
102
|
-
Entry.prototype.toAmino = function () {
|
|
103
|
-
return {
|
|
104
|
-
initial_balance: this.initial_balance.toAmino(),
|
|
105
|
-
balance: this.balance.toAmino(),
|
|
106
|
-
creation_height: this.creation_height.toFixed(),
|
|
107
|
-
completion_time: this.completion_time.toISOString(),
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
Entry.fromAmino = function (data) {
|
|
111
|
-
var initial_balance = data.initial_balance, balance = data.balance, creation_height = data.creation_height, completion_time = data.completion_time;
|
|
112
|
-
return new Entry(Coins_1.Coins.fromAmino(initial_balance), Coins_1.Coins.fromAmino(balance), Number.parseInt(creation_height), new Date(completion_time));
|
|
113
|
-
};
|
|
114
|
-
Entry.prototype.toData = function () {
|
|
115
|
-
return {
|
|
116
|
-
initial_balance: this.initial_balance.toData(),
|
|
117
|
-
balance: this.balance.toData(),
|
|
118
|
-
creation_height: this.creation_height.toFixed(),
|
|
119
|
-
completion_time: this.completion_time.toISOString(),
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
Entry.fromData = function (data) {
|
|
123
|
-
var initial_balance = data.initial_balance, balance = data.balance, creation_height = data.creation_height, completion_time = data.completion_time;
|
|
124
|
-
return new Entry(Coins_1.Coins.fromData(initial_balance), Coins_1.Coins.fromData(balance), Number.parseInt(creation_height), new Date(completion_time));
|
|
125
|
-
};
|
|
126
|
-
Entry.prototype.toProto = function () {
|
|
127
|
-
var _a = this, initial_balance = _a.initial_balance, balance = _a.balance, creation_height = _a.creation_height, completion_time = _a.completion_time;
|
|
128
|
-
return staking_1.UnbondingDelegationEntry.fromPartial({
|
|
129
|
-
balance: balance.toProto(),
|
|
130
|
-
completionTime: completion_time,
|
|
131
|
-
creationHeight: long_1.default.fromNumber(creation_height),
|
|
132
|
-
initialBalance: initial_balance.toProto(),
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
|
-
Entry.fromProto = function (proto) {
|
|
136
|
-
return new Entry(Coins_1.Coins.fromProto(proto.initialBalance), Coins_1.Coins.fromProto(proto.balance), proto.creationHeight.toNumber(), proto.completionTime);
|
|
137
|
-
};
|
|
138
|
-
return Entry;
|
|
139
|
-
}(json_1.JSONSerializable));
|
|
140
|
-
UnbondingDelegation.Entry = Entry;
|
|
141
|
-
})(UnbondingDelegation = exports.UnbondingDelegation || (exports.UnbondingDelegation = {}));
|
|
142
|
-
exports.UnbondingDelegation = UnbondingDelegation;
|
|
143
|
-
//# sourceMappingURL=UnbondingDelegation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnbondingDelegation.js","sourceRoot":"","sources":["../../../src/core/staking/UnbondingDelegation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wCAAmD;AACnD,kCAAiC;AAEjC,2EAGyD;AACzD,8CAAwB;AAExB;;;;;;;;;;GAUG;AACH;IAAyC,uCAIxC;IACC,6BACS,iBAA6B,EAC7B,iBAA6B,EAC7B,OAAoC;QAH7C,YAKE,iBAAO,SACR;QALQ,uBAAiB,GAAjB,iBAAiB,CAAY;QAC7B,uBAAiB,GAAjB,iBAAiB,CAAY;QAC7B,aAAO,GAAP,OAAO,CAA6B;;IAG7C,CAAC;IAEa,6BAAS,GAAvB,UACE,IAA+B;QAEvB,IAAA,iBAAiB,GAAiC,IAAI,kBAArC,EAAE,iBAAiB,GAAc,IAAI,kBAAlB,EAAE,OAAO,GAAK,IAAI,QAAT,CAAU;QAC/D,OAAO,IAAI,mBAAmB,CAC5B,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CAAC,GAAG,C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AAe;gBAC/B,cAAc,EAAE,cAAI,CAAC,UAAU,CAAC,eAAe,CAAC;gBAChD,cAAc,EAAE,eAAe,CAAC,OAAO,EAAE;aAC1C,CAAC,CAAC;QACL,CAAC;QAEa,eAAS,GAAvB,UAAwB,KAAkB;YACxC,OAAO,IAAI,KAAK,CACd,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,EACrC,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,EAC9B,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,EAC/B,KAAK,CAAC,cAAsB,CAC7B,CAAC;QACJ,CAAC;QACH,YAAC;IAAD,CAAC,AArFD,CAA2B,uBAAgB,GAqF1C;IArFY,yBAAK,QAqFjB,CAAA;AAmBH,CAAC,EAvHgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAuHnC;AA9LY,kDAAmB"}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../util/json';
|
|
2
|
-
import { Coins } from '../Coins';
|
|
3
|
-
import { ValAddress } from '../bech32';
|
|
4
|
-
import { ValConsPublicKey } from '../PublicKey';
|
|
5
|
-
import { Validator as Validator_pb, Description as Description_pb, Commission as Commission_pb, CommissionRates as CommissionRates_pb, BondStatus } from '@initia/initia.proto/initia/mstaking/v1/staking';
|
|
6
|
-
/**
|
|
7
|
-
* Stores information fetched from the blockchain about the current status of a validator.
|
|
8
|
-
* As an end user, you will not have to create an instance of this class, one will be
|
|
9
|
-
* generated for you to store information about a validator polled from the API functions
|
|
10
|
-
* in [[StakingAPI]].
|
|
11
|
-
*/
|
|
12
|
-
export declare class Validator extends JSONSerializable<Validator.Amino, Validator.Data, Validator.Proto> {
|
|
13
|
-
operator_address: ValAddress;
|
|
14
|
-
consensus_pubkey: ValConsPublicKey;
|
|
15
|
-
jailed: boolean;
|
|
16
|
-
status: BondStatus;
|
|
17
|
-
description: Validator.Description;
|
|
18
|
-
unbonding_height: number;
|
|
19
|
-
unbonding_time: Date;
|
|
20
|
-
commission: Validator.Commission;
|
|
21
|
-
voting_power: string;
|
|
22
|
-
tokens: Coins;
|
|
23
|
-
delegator_shares: Coins;
|
|
24
|
-
voting_powers: Coins;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param operator_address validator's operator address
|
|
28
|
-
* @param consensus_pubkey validator's consensus public key
|
|
29
|
-
* @param jailed whether the current validator is jailed
|
|
30
|
-
* @param status unbonded `0`, unbonding `1`, bonded `2`
|
|
31
|
-
* @param tokens total Initia from all delegations (including self)
|
|
32
|
-
* @param delegator_shares total shares of all delegators
|
|
33
|
-
* @param description validator's delegate description
|
|
34
|
-
* @param unbonding_height if unbonding, height at which this validator began unbonding
|
|
35
|
-
* @param unbonding_time if unbonding, min time for the validator to complete unbonding
|
|
36
|
-
* @param commission validator commission
|
|
37
|
-
* @param min_self_delegation minimum self delegation
|
|
38
|
-
*/
|
|
39
|
-
constructor(operator_address: ValAddress, consensus_pubkey: ValConsPublicKey, jailed: boolean, status: BondStatus, tokens: Coins.Input, delegator_shares: Coins.Input, description: Validator.Description, unbonding_height: number, unbonding_time: Date, commission: Validator.Commission, voting_powers: Coins.Input, voting_power: string);
|
|
40
|
-
toAmino(): Validator.Amino;
|
|
41
|
-
static fromAmino(data: Validator.Amino): Validator;
|
|
42
|
-
toData(): Validator.Data;
|
|
43
|
-
static fromData(data: Validator.Data): Validator;
|
|
44
|
-
toProto(): Validator.Proto;
|
|
45
|
-
static fromProto(data: Validator.Proto): Validator;
|
|
46
|
-
}
|
|
47
|
-
export declare namespace Validator {
|
|
48
|
-
const Status: typeof BondStatus;
|
|
49
|
-
type Status = BondStatus;
|
|
50
|
-
interface Amino {
|
|
51
|
-
operator_address: ValAddress;
|
|
52
|
-
consensus_pubkey: ValConsPublicKey.Amino;
|
|
53
|
-
jailed: boolean;
|
|
54
|
-
status: BondStatus;
|
|
55
|
-
tokens: Coins.Amino;
|
|
56
|
-
delegator_shares: Coins.Amino;
|
|
57
|
-
description: Description.Amino;
|
|
58
|
-
unbonding_height: string;
|
|
59
|
-
unbonding_time: string;
|
|
60
|
-
commission: Commission.Amino;
|
|
61
|
-
voting_powers: Coins.Amino;
|
|
62
|
-
voting_power: string;
|
|
63
|
-
}
|
|
64
|
-
interface Data {
|
|
65
|
-
operator_address: ValAddress;
|
|
66
|
-
consensus_pubkey: ValConsPublicKey.Data;
|
|
67
|
-
jailed: boolean;
|
|
68
|
-
status: BondStatus;
|
|
69
|
-
tokens: Coins.Data;
|
|
70
|
-
delegator_shares: Coins.Data;
|
|
71
|
-
description: Description.Data;
|
|
72
|
-
unbonding_height: string;
|
|
73
|
-
unbonding_time: string;
|
|
74
|
-
commission: Commission.Data;
|
|
75
|
-
voting_powers: Coins.Data;
|
|
76
|
-
voting_power: string;
|
|
77
|
-
}
|
|
78
|
-
type Proto = Validator_pb;
|
|
79
|
-
class Description extends JSONSerializable<Description.Amino, Description.Data, Description.Proto> {
|
|
80
|
-
moniker: string;
|
|
81
|
-
identity: string;
|
|
82
|
-
website: string;
|
|
83
|
-
details: string;
|
|
84
|
-
security_contact: string;
|
|
85
|
-
/**
|
|
86
|
-
* @param moniker Identifying name, e.g. "Hashed"
|
|
87
|
-
* @param identity time at which commission was last updated
|
|
88
|
-
* @param website validator's website
|
|
89
|
-
* @param details long description
|
|
90
|
-
* @param security_contact validator's contact
|
|
91
|
-
*/
|
|
92
|
-
constructor(moniker: string, identity: string, website: string, details: string, security_contact: string);
|
|
93
|
-
toAmino(): Description.Amino;
|
|
94
|
-
static fromAmino(data: Description.Amino): Description;
|
|
95
|
-
toData(): Description.Data;
|
|
96
|
-
static fromData(data: Description.Data): Description;
|
|
97
|
-
toProto(): Description.Proto;
|
|
98
|
-
static fromProto(proto: Description.Proto): Description;
|
|
99
|
-
}
|
|
100
|
-
namespace Description {
|
|
101
|
-
interface Amino {
|
|
102
|
-
moniker: string;
|
|
103
|
-
identity: string;
|
|
104
|
-
website: string;
|
|
105
|
-
details: string;
|
|
106
|
-
security_contact: string;
|
|
107
|
-
}
|
|
108
|
-
interface Data {
|
|
109
|
-
moniker: string;
|
|
110
|
-
identity: string;
|
|
111
|
-
website: string;
|
|
112
|
-
details: string;
|
|
113
|
-
security_contact: string;
|
|
114
|
-
}
|
|
115
|
-
type Proto = Description_pb;
|
|
116
|
-
}
|
|
117
|
-
class CommissionRates extends JSONSerializable<CommissionRates.Amino, CommissionRates.Data, CommissionRates.Proto> {
|
|
118
|
-
rate: string;
|
|
119
|
-
max_rate: string;
|
|
120
|
-
max_change_rate: string;
|
|
121
|
-
/**
|
|
122
|
-
* @param rate current commission rate
|
|
123
|
-
* @param max_rate max commission rate
|
|
124
|
-
* @param max_change_rate max percentage commission can change in 24hrs
|
|
125
|
-
*/
|
|
126
|
-
constructor(rate: string, max_rate: string, max_change_rate: string);
|
|
127
|
-
static fromAmino(data: CommissionRates.Amino): CommissionRates;
|
|
128
|
-
toAmino(): Validator.CommissionRates.Amino;
|
|
129
|
-
static fromData(data: CommissionRates.Data): CommissionRates;
|
|
130
|
-
toData(): Validator.CommissionRates.Data;
|
|
131
|
-
static fromProto(proto: CommissionRates.Proto): CommissionRates;
|
|
132
|
-
toProto(): Validator.CommissionRates.Proto;
|
|
133
|
-
}
|
|
134
|
-
namespace CommissionRates {
|
|
135
|
-
interface Amino {
|
|
136
|
-
rate: string;
|
|
137
|
-
max_rate: string;
|
|
138
|
-
max_change_rate: string;
|
|
139
|
-
}
|
|
140
|
-
interface Data {
|
|
141
|
-
rate: string;
|
|
142
|
-
max_rate: string;
|
|
143
|
-
max_change_rate: string;
|
|
144
|
-
}
|
|
145
|
-
type Proto = CommissionRates_pb;
|
|
146
|
-
}
|
|
147
|
-
class Commission extends JSONSerializable<Commission.Amino, Commission.Data, Commission.Proto> {
|
|
148
|
-
commission_rates: CommissionRates;
|
|
149
|
-
update_time: Date;
|
|
150
|
-
/**
|
|
151
|
-
* @param commission_rates commission rates
|
|
152
|
-
* @param update_time time at which commission was last updated
|
|
153
|
-
*/
|
|
154
|
-
constructor(commission_rates: CommissionRates, update_time: Date);
|
|
155
|
-
toAmino(): Commission.Amino;
|
|
156
|
-
static fromAmino(data: Commission.Amino): Commission;
|
|
157
|
-
toData(): Commission.Data;
|
|
158
|
-
static fromData(data: Commission.Data): Commission;
|
|
159
|
-
toProto(): Commission.Proto;
|
|
160
|
-
static fromProto(proto: Commission.Proto): Commission;
|
|
161
|
-
}
|
|
162
|
-
namespace Commission {
|
|
163
|
-
interface Amino {
|
|
164
|
-
commission_rates: CommissionRates.Amino;
|
|
165
|
-
update_time: string;
|
|
166
|
-
}
|
|
167
|
-
interface Data {
|
|
168
|
-
commission_rates: CommissionRates.Data;
|
|
169
|
-
update_time: string;
|
|
170
|
-
}
|
|
171
|
-
type Proto = Commission_pb;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
@@ -1,287 +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.Validator = void 0;
|
|
22
|
-
var json_1 = require("../../util/json");
|
|
23
|
-
var Coins_1 = require("../Coins");
|
|
24
|
-
var num_1 = require("../num");
|
|
25
|
-
var PublicKey_1 = require("../PublicKey");
|
|
26
|
-
var staking_1 = require("@initia/initia.proto/initia/mstaking/v1/staking");
|
|
27
|
-
var long_1 = __importDefault(require("long"));
|
|
28
|
-
/**
|
|
29
|
-
* Stores information fetched from the blockchain about the current status of a validator.
|
|
30
|
-
* As an end user, you will not have to create an instance of this class, one will be
|
|
31
|
-
* generated for you to store information about a validator polled from the API functions
|
|
32
|
-
* in [[StakingAPI]].
|
|
33
|
-
*/
|
|
34
|
-
var Validator = /** @class */ (function (_super) {
|
|
35
|
-
__extends(Validator, _super);
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @param operator_address validator's operator address
|
|
39
|
-
* @param consensus_pubkey validator's consensus public key
|
|
40
|
-
* @param jailed whether the current validator is jailed
|
|
41
|
-
* @param status unbonded `0`, unbonding `1`, bonded `2`
|
|
42
|
-
* @param tokens total Initia from all delegations (including self)
|
|
43
|
-
* @param delegator_shares total shares of all delegators
|
|
44
|
-
* @param description validator's delegate description
|
|
45
|
-
* @param unbonding_height if unbonding, height at which this validator began unbonding
|
|
46
|
-
* @param unbonding_time if unbonding, min time for the validator to complete unbonding
|
|
47
|
-
* @param commission validator commission
|
|
48
|
-
* @param min_self_delegation minimum self delegation
|
|
49
|
-
*/
|
|
50
|
-
function Validator(operator_address, consensus_pubkey, jailed, status, tokens, delegator_shares, description, unbonding_height, unbonding_time, commission, voting_powers, voting_power) {
|
|
51
|
-
var _this = _super.call(this) || this;
|
|
52
|
-
_this.operator_address = operator_address;
|
|
53
|
-
_this.consensus_pubkey = consensus_pubkey;
|
|
54
|
-
_this.jailed = jailed;
|
|
55
|
-
_this.status = status;
|
|
56
|
-
_this.description = description;
|
|
57
|
-
_this.unbonding_height = unbonding_height;
|
|
58
|
-
_this.unbonding_time = unbonding_time;
|
|
59
|
-
_this.commission = commission;
|
|
60
|
-
_this.voting_power = voting_power;
|
|
61
|
-
_this.tokens = new Coins_1.Coins(tokens);
|
|
62
|
-
_this.delegator_shares = new Coins_1.Coins(delegator_shares);
|
|
63
|
-
_this.voting_powers = new Coins_1.Coins(voting_powers);
|
|
64
|
-
return _this;
|
|
65
|
-
}
|
|
66
|
-
Validator.prototype.toAmino = function () {
|
|
67
|
-
return {
|
|
68
|
-
operator_address: this.operator_address,
|
|
69
|
-
consensus_pubkey: this.consensus_pubkey.toAmino(),
|
|
70
|
-
jailed: this.jailed,
|
|
71
|
-
status: this.status,
|
|
72
|
-
tokens: this.tokens.toAmino(),
|
|
73
|
-
delegator_shares: this.delegator_shares.toAmino(),
|
|
74
|
-
description: this.description,
|
|
75
|
-
unbonding_height: this.unbonding_height.toFixed(),
|
|
76
|
-
unbonding_time: this.unbonding_time.toISOString(),
|
|
77
|
-
commission: this.commission.toAmino(),
|
|
78
|
-
voting_powers: this.voting_powers.toAmino(),
|
|
79
|
-
voting_power: this.voting_power
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
Validator.fromAmino = function (data) {
|
|
83
|
-
return new Validator(data.operator_address, PublicKey_1.ValConsPublicKey.fromAmino(data.consensus_pubkey), data.jailed || false, data.status || 0, Coins_1.Coins.fromAmino(data.tokens), Coins_1.Coins.fromAmino(data.delegator_shares), Validator.Description.fromAmino(data.description), Number.parseInt(data.unbonding_height), new Date(data.unbonding_time), Validator.Commission.fromAmino(data.commission), Coins_1.Coins.fromAmino(data.voting_powers), data.voting_power);
|
|
84
|
-
};
|
|
85
|
-
Validator.prototype.toData = function () {
|
|
86
|
-
return {
|
|
87
|
-
operator_address: this.operator_address,
|
|
88
|
-
consensus_pubkey: this.consensus_pubkey.toData(),
|
|
89
|
-
jailed: this.jailed,
|
|
90
|
-
status: this.status,
|
|
91
|
-
tokens: this.tokens.toData(),
|
|
92
|
-
delegator_shares: this.delegator_shares.toData(),
|
|
93
|
-
description: this.description,
|
|
94
|
-
unbonding_height: this.unbonding_height.toFixed(),
|
|
95
|
-
unbonding_time: this.unbonding_time.toISOString(),
|
|
96
|
-
commission: this.commission.toData(),
|
|
97
|
-
voting_powers: this.voting_powers.toData(),
|
|
98
|
-
voting_power: this.voting_power,
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
Validator.fromData = function (data) {
|
|
102
|
-
return new Validator(data.operator_address, PublicKey_1.ValConsPublicKey.fromData(data.consensus_pubkey), data.jailed || false, data.status || 0, Coins_1.Coins.fromData(data.tokens), Coins_1.Coins.fromData(data.delegator_shares), Validator.Description.fromData(data.description), Number.parseInt(data.unbonding_height), new Date(data.unbonding_time), Validator.Commission.fromData(data.commission), Coins_1.Coins.fromData(data.voting_powers), data.voting_power);
|
|
103
|
-
};
|
|
104
|
-
Validator.prototype.toProto = function () {
|
|
105
|
-
var _a = this, operator_address = _a.operator_address, consensus_pubkey = _a.consensus_pubkey, jailed = _a.jailed, status = _a.status, tokens = _a.tokens, delegator_shares = _a.delegator_shares, description = _a.description, unbonding_height = _a.unbonding_height, unbonding_time = _a.unbonding_time, commission = _a.commission, voting_powers = _a.voting_powers, voting_power = _a.voting_power;
|
|
106
|
-
return staking_1.Validator.fromPartial({
|
|
107
|
-
operatorAddress: operator_address,
|
|
108
|
-
consensusPubkey: consensus_pubkey.packAny(),
|
|
109
|
-
jailed: jailed,
|
|
110
|
-
status: status,
|
|
111
|
-
tokens: tokens.toProto(),
|
|
112
|
-
delegatorShares: delegator_shares.toProto(),
|
|
113
|
-
description: description.toProto(),
|
|
114
|
-
unbondingHeight: long_1.default.fromNumber(unbonding_height),
|
|
115
|
-
unbondingTime: unbonding_time,
|
|
116
|
-
commission: commission.toProto(),
|
|
117
|
-
votingPowers: voting_powers.toProto(),
|
|
118
|
-
votingPower: voting_power,
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
Validator.fromProto = function (data) {
|
|
122
|
-
return new Validator(data.operatorAddress, PublicKey_1.ValConsPublicKey.unpackAny(data.consensusPubkey), data.jailed, data.status, Coins_1.Coins.fromProto(data.tokens), Coins_1.Coins.fromProto(data.delegatorShares), Validator.Description.fromProto(data.description), data.unbondingHeight.toNumber(), data.unbondingTime, Validator.Commission.fromProto(data.commission), Coins_1.Coins.fromProto(data.votingPowers), data.votingPower);
|
|
123
|
-
};
|
|
124
|
-
return Validator;
|
|
125
|
-
}(json_1.JSONSerializable));
|
|
126
|
-
exports.Validator = Validator;
|
|
127
|
-
(function (Validator) {
|
|
128
|
-
Validator.Status = staking_1.BondStatus;
|
|
129
|
-
var Description = /** @class */ (function (_super) {
|
|
130
|
-
__extends(Description, _super);
|
|
131
|
-
/**
|
|
132
|
-
* @param moniker Identifying name, e.g. "Hashed"
|
|
133
|
-
* @param identity time at which commission was last updated
|
|
134
|
-
* @param website validator's website
|
|
135
|
-
* @param details long description
|
|
136
|
-
* @param security_contact validator's contact
|
|
137
|
-
*/
|
|
138
|
-
function Description(moniker, identity, website, details, security_contact) {
|
|
139
|
-
var _this = _super.call(this) || this;
|
|
140
|
-
_this.moniker = moniker;
|
|
141
|
-
_this.identity = identity;
|
|
142
|
-
_this.website = website;
|
|
143
|
-
_this.details = details;
|
|
144
|
-
_this.security_contact = security_contact;
|
|
145
|
-
return _this;
|
|
146
|
-
}
|
|
147
|
-
Description.prototype.toAmino = function () {
|
|
148
|
-
return {
|
|
149
|
-
moniker: this.moniker,
|
|
150
|
-
identity: this.identity,
|
|
151
|
-
website: this.website,
|
|
152
|
-
details: this.details,
|
|
153
|
-
security_contact: this.security_contact,
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
Description.fromAmino = function (data) {
|
|
157
|
-
return new Description(data.moniker, data.identity || '', data.website || '', data.details || '', data.security_contact || '');
|
|
158
|
-
};
|
|
159
|
-
Description.prototype.toData = function () {
|
|
160
|
-
return {
|
|
161
|
-
moniker: this.moniker,
|
|
162
|
-
identity: this.identity,
|
|
163
|
-
website: this.website,
|
|
164
|
-
details: this.details,
|
|
165
|
-
security_contact: this.security_contact,
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
Description.fromData = function (data) {
|
|
169
|
-
return new Description(data.moniker, data.identity || '', data.website || '', data.details || '', data.security_contact || '');
|
|
170
|
-
};
|
|
171
|
-
Description.prototype.toProto = function () {
|
|
172
|
-
var _a = this, moniker = _a.moniker, identity = _a.identity, website = _a.website, details = _a.details, security_contact = _a.security_contact;
|
|
173
|
-
return staking_1.Description.fromPartial({
|
|
174
|
-
details: details,
|
|
175
|
-
identity: identity,
|
|
176
|
-
moniker: moniker,
|
|
177
|
-
securityContact: security_contact,
|
|
178
|
-
website: website,
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
Description.fromProto = function (proto) {
|
|
182
|
-
return new Description(proto.moniker, proto.identity, proto.website, proto.details, proto.securityContact);
|
|
183
|
-
};
|
|
184
|
-
return Description;
|
|
185
|
-
}(json_1.JSONSerializable));
|
|
186
|
-
Validator.Description = Description;
|
|
187
|
-
var CommissionRates = /** @class */ (function (_super) {
|
|
188
|
-
__extends(CommissionRates, _super);
|
|
189
|
-
/**
|
|
190
|
-
* @param rate current commission rate
|
|
191
|
-
* @param max_rate max commission rate
|
|
192
|
-
* @param max_change_rate max percentage commission can change in 24hrs
|
|
193
|
-
*/
|
|
194
|
-
function CommissionRates(rate, max_rate, max_change_rate) {
|
|
195
|
-
var _this = _super.call(this) || this;
|
|
196
|
-
_this.rate = rate;
|
|
197
|
-
_this.max_rate = max_rate;
|
|
198
|
-
_this.max_change_rate = max_change_rate;
|
|
199
|
-
_this.rate = (0, num_1.num)(rate).toString();
|
|
200
|
-
_this.max_rate = (0, num_1.num)(max_rate).toString();
|
|
201
|
-
_this.max_change_rate = (0, num_1.num)(max_change_rate).toString();
|
|
202
|
-
return _this;
|
|
203
|
-
}
|
|
204
|
-
CommissionRates.fromAmino = function (data) {
|
|
205
|
-
var rate = data.rate, max_rate = data.max_rate, max_change_rate = data.max_change_rate;
|
|
206
|
-
return new CommissionRates(rate, max_rate, max_change_rate);
|
|
207
|
-
};
|
|
208
|
-
CommissionRates.prototype.toAmino = function () {
|
|
209
|
-
var _a = this, rate = _a.rate, max_rate = _a.max_rate, max_change_rate = _a.max_change_rate;
|
|
210
|
-
return {
|
|
211
|
-
rate: (0, num_1.num)(rate).toFixed(18),
|
|
212
|
-
max_rate: (0, num_1.num)(max_rate).toFixed(18),
|
|
213
|
-
max_change_rate: (0, num_1.num)(max_change_rate).toFixed(18),
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
CommissionRates.fromData = function (data) {
|
|
217
|
-
var rate = data.rate, max_rate = data.max_rate, max_change_rate = data.max_change_rate;
|
|
218
|
-
return new CommissionRates(rate, max_rate, max_change_rate);
|
|
219
|
-
};
|
|
220
|
-
CommissionRates.prototype.toData = function () {
|
|
221
|
-
var _a = this, rate = _a.rate, max_rate = _a.max_rate, max_change_rate = _a.max_change_rate;
|
|
222
|
-
return {
|
|
223
|
-
rate: (0, num_1.num)(rate).toFixed(18),
|
|
224
|
-
max_rate: (0, num_1.num)(max_rate).toFixed(18),
|
|
225
|
-
max_change_rate: (0, num_1.num)(max_change_rate).toFixed(18),
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
CommissionRates.fromProto = function (proto) {
|
|
229
|
-
return new CommissionRates(proto.rate, proto.maxRate, proto.maxChangeRate);
|
|
230
|
-
};
|
|
231
|
-
CommissionRates.prototype.toProto = function () {
|
|
232
|
-
var _a = this, rate = _a.rate, max_rate = _a.max_rate, max_change_rate = _a.max_change_rate;
|
|
233
|
-
return staking_1.CommissionRates.fromPartial({
|
|
234
|
-
maxChangeRate: (0, num_1.num)(max_change_rate).toFixed(18),
|
|
235
|
-
maxRate: (0, num_1.num)(max_rate).toFixed(18),
|
|
236
|
-
rate: (0, num_1.num)(rate).toFixed(18),
|
|
237
|
-
});
|
|
238
|
-
};
|
|
239
|
-
return CommissionRates;
|
|
240
|
-
}(json_1.JSONSerializable));
|
|
241
|
-
Validator.CommissionRates = CommissionRates;
|
|
242
|
-
var Commission = /** @class */ (function (_super) {
|
|
243
|
-
__extends(Commission, _super);
|
|
244
|
-
/**
|
|
245
|
-
* @param commission_rates commission rates
|
|
246
|
-
* @param update_time time at which commission was last updated
|
|
247
|
-
*/
|
|
248
|
-
function Commission(commission_rates, update_time) {
|
|
249
|
-
var _this = _super.call(this) || this;
|
|
250
|
-
_this.commission_rates = commission_rates;
|
|
251
|
-
_this.update_time = update_time;
|
|
252
|
-
return _this;
|
|
253
|
-
}
|
|
254
|
-
Commission.prototype.toAmino = function () {
|
|
255
|
-
return {
|
|
256
|
-
commission_rates: this.commission_rates.toAmino(),
|
|
257
|
-
update_time: this.update_time.toISOString(),
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
Commission.fromAmino = function (data) {
|
|
261
|
-
return new Commission(CommissionRates.fromAmino(data.commission_rates), new Date(data.update_time));
|
|
262
|
-
};
|
|
263
|
-
Commission.prototype.toData = function () {
|
|
264
|
-
return {
|
|
265
|
-
commission_rates: this.commission_rates.toData(),
|
|
266
|
-
update_time: this.update_time.toISOString(),
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
Commission.fromData = function (data) {
|
|
270
|
-
return new Commission(CommissionRates.fromData(data.commission_rates), new Date(data.update_time));
|
|
271
|
-
};
|
|
272
|
-
Commission.prototype.toProto = function () {
|
|
273
|
-
var _a = this, commission_rates = _a.commission_rates, update_time = _a.update_time;
|
|
274
|
-
return staking_1.Commission.fromPartial({
|
|
275
|
-
commissionRates: commission_rates.toProto(),
|
|
276
|
-
updateTime: update_time,
|
|
277
|
-
});
|
|
278
|
-
};
|
|
279
|
-
Commission.fromProto = function (proto) {
|
|
280
|
-
return new Commission(CommissionRates.fromProto(proto.commissionRates), proto.updateTime);
|
|
281
|
-
};
|
|
282
|
-
return Commission;
|
|
283
|
-
}(json_1.JSONSerializable));
|
|
284
|
-
Validator.Commission = Commission;
|
|
285
|
-
})(Validator = exports.Validator || (exports.Validator = {}));
|
|
286
|
-
exports.Validator = Validator;
|
|
287
|
-
//# sourceMappingURL=Validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.js","sourceRoot":"","sources":["../../../src/core/staking/Validator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wCAAmD;AACnD,kCAAiC;AACjC,8BAA6B;AAE7B,0CAAgD;AAChD,2EAMyD;AACzD,8CAAwB;AAGxB;;;;;GAKG;AACH;IAA+B,6BAI9B;IAKC;;;;;;;;;;;;;OAaG;IACH,mBACS,gBAA4B,EAC5B,gBAAkC,EAClC,MAAe,EACf,MAAkB,EACzB,MAAmB,EACnB,gBAA6B,EACtB,WAAkC,EAClC,gBAAwB,EACxB,cAAoB,EACpB,UAAgC,EACvC,aAA0B,EACnB,YAAoB;QAZ7B,YAcE,iBAAO,SAIR;QAjBQ,sBAAgB,GAAhB,gBAAgB,CAAY;QAC5B,sBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,YAAM,GAAN,MAAM,CAAS;QACf,YAAM,GAAN,MAAM,CAAY;QAGlB,iBAAW,GAAX,WAAW,CAAuB;QAClC,sBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,oBAAc,GAAd,cAAc,CAAM;QACpB,gBAAU,GAAV,UAAU,CAAsB;QAEhC,kBAAY,GAAZ,YAAY,CAAQ;QAG3B,KAAI,CAAC,MAAM,GAAG,IAAI,aAAK,CAAC,MAAM,CAAC,CAAC;QAChC,KAAI,CAAC,gBAAgB,GAAG,IAAI,aAAK,CAAC,gBAAgB,CAAC,CAAC;QACpD,KAAI,CAAC,aAAa,GAAG,IAAI,aAAK,CAAC,aAAa,CAAC,CAAC;;IAChD,CAAC;IAEM,2BAAO,GAAd;QACE,OAAO;YACL,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE;YACjD,MAAM,EAAE,IAAI,CAAC,MA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