@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,18 +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("./CommunityPoolSpendProposal"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/distribution/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Coins } from '../Coins';
|
|
2
|
-
import { JSONSerializable } from '../../util/json';
|
|
3
|
-
import { CommunityPoolSpendProposal } from '../distribution/proposals';
|
|
4
|
-
import { ParameterChangeProposal } from '../params/proposals';
|
|
5
|
-
import { ClientUpdateProposal } from '../ibc/proposals';
|
|
6
|
-
import { TextProposal } from './proposals';
|
|
7
|
-
import { SoftwareUpgradeProposal, CancelSoftwareUpgradeProposal } from '../upgrade/proposals';
|
|
8
|
-
import { OperationsProposal, WhitelistProposal, DelistProposal } from '../move/proposals';
|
|
9
|
-
import { Proposal as Proposal_pb, ProposalStatus } from '@initia/initia.proto/cosmos/gov/v1beta1/gov';
|
|
10
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
11
|
-
/**
|
|
12
|
-
* Stores information pertaining to a submitted proposal, such as its status and time of
|
|
13
|
-
* the voting period
|
|
14
|
-
*/
|
|
15
|
-
export declare class Proposal extends JSONSerializable<Proposal.Amino, Proposal.Data, Proposal.Proto> {
|
|
16
|
-
id: number;
|
|
17
|
-
content: Proposal.Content;
|
|
18
|
-
status: ProposalStatus;
|
|
19
|
-
final_tally_result: Proposal.FinalTallyResult;
|
|
20
|
-
submit_time: Date;
|
|
21
|
-
deposit_end_time: Date;
|
|
22
|
-
total_deposit: Coins;
|
|
23
|
-
voting_start_time: Date;
|
|
24
|
-
voting_end_time: Date;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param id proposal's ID
|
|
28
|
-
* @param content content of the proposal
|
|
29
|
-
* @param status proposal's status
|
|
30
|
-
* @param final_tally_result tally result
|
|
31
|
-
* @param submit_time time proposal was submitted and deposit period started
|
|
32
|
-
* @param deposit_end_time time deposit period will end
|
|
33
|
-
* @param total_deposit amount of coins deposited by all users
|
|
34
|
-
* @param voting_start_time time voting period will start
|
|
35
|
-
* @param voting_end_time time voting period will end
|
|
36
|
-
*/
|
|
37
|
-
constructor(id: number, content: Proposal.Content, status: ProposalStatus, final_tally_result: Proposal.FinalTallyResult, submit_time: Date, deposit_end_time: Date, total_deposit: Coins, voting_start_time: Date, voting_end_time: Date);
|
|
38
|
-
static fromAmino(data: Proposal.Amino): Proposal;
|
|
39
|
-
toAmino(): Proposal.Amino;
|
|
40
|
-
static fromData(data: Proposal.Data): Proposal;
|
|
41
|
-
toData(): Proposal.Data;
|
|
42
|
-
static fromProto(data: Proposal.Proto): Proposal;
|
|
43
|
-
toProto(): Proposal.Proto;
|
|
44
|
-
}
|
|
45
|
-
export declare namespace Proposal {
|
|
46
|
-
const Status: typeof ProposalStatus;
|
|
47
|
-
type Status = ProposalStatus;
|
|
48
|
-
interface FinalTallyResult {
|
|
49
|
-
yes: string;
|
|
50
|
-
abstain: string;
|
|
51
|
-
no: string;
|
|
52
|
-
no_with_veto: string;
|
|
53
|
-
}
|
|
54
|
-
type Content = TextProposal | CommunityPoolSpendProposal | ParameterChangeProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal | ClientUpdateProposal | OperationsProposal | WhitelistProposal | DelistProposal;
|
|
55
|
-
namespace Content {
|
|
56
|
-
type Amino = TextProposal.Amino | CommunityPoolSpendProposal.Amino | ParameterChangeProposal.Amino | SoftwareUpgradeProposal.Amino | CancelSoftwareUpgradeProposal.Amino | ClientUpdateProposal.Amino | OperationsProposal.Amino | WhitelistProposal.Amino | DelistProposal.Amino;
|
|
57
|
-
type Data = TextProposal.Data | CommunityPoolSpendProposal.Data | ParameterChangeProposal.Data | SoftwareUpgradeProposal.Data | CancelSoftwareUpgradeProposal.Data | ClientUpdateProposal.Data | OperationsProposal.Data | WhitelistProposal.Data | DelistProposal.Data;
|
|
58
|
-
type Proto = TextProposal.Proto | CommunityPoolSpendProposal.Proto | ParameterChangeProposal.Proto | SoftwareUpgradeProposal.Proto | CancelSoftwareUpgradeProposal.Proto | ClientUpdateProposal.Proto | OperationsProposal.Proto | WhitelistProposal.Proto | DelistProposal.Proto;
|
|
59
|
-
function fromAmino(amino: Proposal.Content.Amino): Proposal.Content;
|
|
60
|
-
function fromData(data: Proposal.Content.Data): Proposal.Content;
|
|
61
|
-
function fromProto(anyProto: Any): Proposal.Content;
|
|
62
|
-
}
|
|
63
|
-
interface Amino {
|
|
64
|
-
content: Content.Amino;
|
|
65
|
-
id: string;
|
|
66
|
-
status: number;
|
|
67
|
-
final_tally_result: {
|
|
68
|
-
yes: string;
|
|
69
|
-
abstain: string;
|
|
70
|
-
no: string;
|
|
71
|
-
no_with_veto: string;
|
|
72
|
-
};
|
|
73
|
-
submit_time: string;
|
|
74
|
-
deposit_end_time: string;
|
|
75
|
-
total_deposit: Coins.Amino;
|
|
76
|
-
voting_start_time: string;
|
|
77
|
-
voting_end_time: string;
|
|
78
|
-
}
|
|
79
|
-
interface Data {
|
|
80
|
-
content: Content.Data;
|
|
81
|
-
proposal_id: string;
|
|
82
|
-
status: string;
|
|
83
|
-
final_tally_result: {
|
|
84
|
-
yes: string;
|
|
85
|
-
abstain: string;
|
|
86
|
-
no: string;
|
|
87
|
-
no_with_veto: string;
|
|
88
|
-
};
|
|
89
|
-
submit_time: string;
|
|
90
|
-
deposit_end_time: string;
|
|
91
|
-
total_deposit: Coins.Data;
|
|
92
|
-
voting_start_time: string;
|
|
93
|
-
voting_end_time: string;
|
|
94
|
-
}
|
|
95
|
-
type Proto = Proposal_pb;
|
|
96
|
-
}
|
|
@@ -1,244 +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.Proposal = void 0;
|
|
22
|
-
var Coins_1 = require("../Coins");
|
|
23
|
-
var num_1 = require("../num");
|
|
24
|
-
var json_1 = require("../../util/json");
|
|
25
|
-
var proposals_1 = require("../distribution/proposals");
|
|
26
|
-
var proposals_2 = require("../params/proposals");
|
|
27
|
-
var proposals_3 = require("../ibc/proposals");
|
|
28
|
-
var proposals_4 = require("./proposals");
|
|
29
|
-
var proposals_5 = require("../upgrade/proposals");
|
|
30
|
-
var proposals_6 = require("../move/proposals");
|
|
31
|
-
var gov_1 = require("@initia/initia.proto/cosmos/gov/v1beta1/gov");
|
|
32
|
-
var long_1 = __importDefault(require("long"));
|
|
33
|
-
/**
|
|
34
|
-
* Stores information pertaining to a submitted proposal, such as its status and time of
|
|
35
|
-
* the voting period
|
|
36
|
-
*/
|
|
37
|
-
var Proposal = /** @class */ (function (_super) {
|
|
38
|
-
__extends(Proposal, _super);
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @param id proposal's ID
|
|
42
|
-
* @param content content of the proposal
|
|
43
|
-
* @param status proposal's status
|
|
44
|
-
* @param final_tally_result tally result
|
|
45
|
-
* @param submit_time time proposal was submitted and deposit period started
|
|
46
|
-
* @param deposit_end_time time deposit period will end
|
|
47
|
-
* @param total_deposit amount of coins deposited by all users
|
|
48
|
-
* @param voting_start_time time voting period will start
|
|
49
|
-
* @param voting_end_time time voting period will end
|
|
50
|
-
*/
|
|
51
|
-
function Proposal(id, content, status, final_tally_result, submit_time, deposit_end_time, total_deposit, voting_start_time, voting_end_time) {
|
|
52
|
-
var _this = _super.call(this) || this;
|
|
53
|
-
_this.id = id;
|
|
54
|
-
_this.content = content;
|
|
55
|
-
_this.status = status;
|
|
56
|
-
_this.final_tally_result = final_tally_result;
|
|
57
|
-
_this.submit_time = submit_time;
|
|
58
|
-
_this.deposit_end_time = deposit_end_time;
|
|
59
|
-
_this.total_deposit = total_deposit;
|
|
60
|
-
_this.voting_start_time = voting_start_time;
|
|
61
|
-
_this.voting_end_time = voting_end_time;
|
|
62
|
-
return _this;
|
|
63
|
-
}
|
|
64
|
-
Proposal.fromAmino = function (data) {
|
|
65
|
-
var _a, _b, _c, _d;
|
|
66
|
-
var id = data.id, content = data.content, status = data.status, final_tally_result = data.final_tally_result, submit_time = data.submit_time, deposit_end_time = data.deposit_end_time, total_deposit = data.total_deposit, voting_start_time = data.voting_start_time, voting_end_time = data.voting_end_time;
|
|
67
|
-
return new Proposal(Number.parseInt(id), Proposal.Content.fromAmino(content), status, {
|
|
68
|
-
yes: (0, num_1.num)((_a = final_tally_result.yes) !== null && _a !== void 0 ? _a : 0).toFixed(0),
|
|
69
|
-
no: (0, num_1.num)((_b = final_tally_result.no) !== null && _b !== void 0 ? _b : 0).toFixed(0),
|
|
70
|
-
abstain: (0, num_1.num)((_c = final_tally_result.abstain) !== null && _c !== void 0 ? _c : 0).toFixed(0),
|
|
71
|
-
no_with_veto: (0, num_1.num)((_d = final_tally_result.no_with_veto) !== null && _d !== void 0 ? _d : 0).toFixed(0),
|
|
72
|
-
}, new Date(submit_time), new Date(deposit_end_time), Coins_1.Coins.fromAmino(total_deposit), new Date(voting_start_time), new Date(voting_end_time));
|
|
73
|
-
};
|
|
74
|
-
Proposal.prototype.toAmino = function () {
|
|
75
|
-
var _a = this, status = _a.status, final_tally_result = _a.final_tally_result;
|
|
76
|
-
return {
|
|
77
|
-
id: this.id.toFixed(),
|
|
78
|
-
content: this.content.toAmino(),
|
|
79
|
-
status: status,
|
|
80
|
-
final_tally_result: {
|
|
81
|
-
yes: (0, num_1.num)(final_tally_result.yes).toFixed(),
|
|
82
|
-
no: (0, num_1.num)(final_tally_result.no).toFixed(),
|
|
83
|
-
abstain: (0, num_1.num)(final_tally_result.abstain).toFixed(),
|
|
84
|
-
no_with_veto: (0, num_1.num)(final_tally_result.no_with_veto).toFixed(),
|
|
85
|
-
},
|
|
86
|
-
submit_time: this.submit_time.toISOString(),
|
|
87
|
-
deposit_end_time: this.deposit_end_time.toISOString(),
|
|
88
|
-
total_deposit: this.total_deposit.toAmino(),
|
|
89
|
-
voting_start_time: this.voting_start_time.toISOString(),
|
|
90
|
-
voting_end_time: this.voting_end_time.toISOString(),
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
Proposal.fromData = function (data) {
|
|
94
|
-
var _a, _b, _c, _d;
|
|
95
|
-
var proposal_id = data.proposal_id, content = data.content, status = data.status, final_tally_result = data.final_tally_result, submit_time = data.submit_time, deposit_end_time = data.deposit_end_time, total_deposit = data.total_deposit, voting_start_time = data.voting_start_time, voting_end_time = data.voting_end_time;
|
|
96
|
-
return new Proposal(Number.parseInt(proposal_id), Proposal.Content.fromData(content), (0, gov_1.proposalStatusFromJSON)(status), {
|
|
97
|
-
yes: (0, num_1.num)((_a = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.yes) !== null && _a !== void 0 ? _a : 0).toFixed(0),
|
|
98
|
-
no: (0, num_1.num)((_b = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.no) !== null && _b !== void 0 ? _b : 0).toFixed(0),
|
|
99
|
-
abstain: (0, num_1.num)((_c = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.abstain) !== null && _c !== void 0 ? _c : 0).toFixed(0),
|
|
100
|
-
no_with_veto: (0, num_1.num)((_d = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.no_with_veto) !== null && _d !== void 0 ? _d : 0).toFixed(0),
|
|
101
|
-
}, new Date(submit_time), new Date(deposit_end_time), Coins_1.Coins.fromData(total_deposit), new Date(voting_start_time), new Date(voting_end_time));
|
|
102
|
-
};
|
|
103
|
-
Proposal.prototype.toData = function () {
|
|
104
|
-
var _a = this, status = _a.status, final_tally_result = _a.final_tally_result;
|
|
105
|
-
return {
|
|
106
|
-
proposal_id: this.id.toFixed(),
|
|
107
|
-
content: this.content.toData(),
|
|
108
|
-
status: (0, gov_1.proposalStatusToJSON)(status),
|
|
109
|
-
final_tally_result: {
|
|
110
|
-
yes: final_tally_result.yes.toString(),
|
|
111
|
-
no: final_tally_result.no.toString(),
|
|
112
|
-
abstain: final_tally_result.abstain.toString(),
|
|
113
|
-
no_with_veto: final_tally_result.no_with_veto.toString(),
|
|
114
|
-
},
|
|
115
|
-
submit_time: this.submit_time.toISOString(),
|
|
116
|
-
deposit_end_time: this.deposit_end_time.toISOString(),
|
|
117
|
-
total_deposit: this.total_deposit.toData(),
|
|
118
|
-
voting_start_time: this.voting_start_time.toISOString(),
|
|
119
|
-
voting_end_time: this.voting_end_time.toISOString(),
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
Proposal.fromProto = function (data) {
|
|
123
|
-
var _a, _b, _c, _d;
|
|
124
|
-
var id = data.proposalId;
|
|
125
|
-
var content = data.content;
|
|
126
|
-
var status = data.status;
|
|
127
|
-
var final_tally_result = data.finalTallyResult;
|
|
128
|
-
var submit_time = data.submitTime;
|
|
129
|
-
var deposit_end_time = data.depositEndTime;
|
|
130
|
-
var total_deposit = data.totalDeposit;
|
|
131
|
-
var voting_start_time = data.votingStartTime;
|
|
132
|
-
var voting_end_time = data.votingEndTime;
|
|
133
|
-
return new Proposal(id.toNumber(), Proposal.Content.fromProto(content), status, {
|
|
134
|
-
yes: (0, num_1.num)((_a = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.yes) !== null && _a !== void 0 ? _a : 0).toFixed(0),
|
|
135
|
-
no: (0, num_1.num)((_b = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.no) !== null && _b !== void 0 ? _b : 0).toFixed(0),
|
|
136
|
-
abstain: (0, num_1.num)((_c = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.abstain) !== null && _c !== void 0 ? _c : 0).toFixed(0),
|
|
137
|
-
no_with_veto: (0, num_1.num)((_d = final_tally_result === null || final_tally_result === void 0 ? void 0 : final_tally_result.noWithVeto) !== null && _d !== void 0 ? _d : 0).toFixed(0),
|
|
138
|
-
}, submit_time, deposit_end_time, Coins_1.Coins.fromProto(total_deposit), voting_start_time, voting_end_time);
|
|
139
|
-
};
|
|
140
|
-
Proposal.prototype.toProto = function () {
|
|
141
|
-
var _a = this, status = _a.status, final_tally_result = _a.final_tally_result;
|
|
142
|
-
var ftr;
|
|
143
|
-
if (final_tally_result) {
|
|
144
|
-
ftr = gov_1.TallyResult.fromPartial({
|
|
145
|
-
yes: final_tally_result.yes.toString(),
|
|
146
|
-
no: final_tally_result.no.toString(),
|
|
147
|
-
abstain: final_tally_result.abstain.toString(),
|
|
148
|
-
noWithVeto: final_tally_result.no_with_veto.toString(),
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
return gov_1.Proposal.fromPartial({
|
|
152
|
-
proposalId: long_1.default.fromNumber(this.id),
|
|
153
|
-
content: this.content.packAny(),
|
|
154
|
-
status: status,
|
|
155
|
-
finalTallyResult: ftr,
|
|
156
|
-
submitTime: this.submit_time,
|
|
157
|
-
depositEndTime: this.deposit_end_time,
|
|
158
|
-
totalDeposit: this.total_deposit.toProto(),
|
|
159
|
-
votingEndTime: this.voting_end_time,
|
|
160
|
-
votingStartTime: this.voting_start_time,
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
return Proposal;
|
|
164
|
-
}(json_1.JSONSerializable));
|
|
165
|
-
exports.Proposal = Proposal;
|
|
166
|
-
(function (Proposal) {
|
|
167
|
-
Proposal.Status = gov_1.ProposalStatus;
|
|
168
|
-
var Content;
|
|
169
|
-
(function (Content) {
|
|
170
|
-
function fromAmino(amino) {
|
|
171
|
-
switch (amino.type) {
|
|
172
|
-
case 'cosmos-sdk/TextProposal':
|
|
173
|
-
return proposals_4.TextProposal.fromAmino(amino);
|
|
174
|
-
case 'cosmos-sdk/CommunityPoolSpendProposal':
|
|
175
|
-
return proposals_1.CommunityPoolSpendProposal.fromAmino(amino);
|
|
176
|
-
case 'cosmos-sdk/ParameterChangeProposal':
|
|
177
|
-
return proposals_2.ParameterChangeProposal.fromAmino(amino);
|
|
178
|
-
case 'cosmos-sdk/SoftwareUpgradeProposal':
|
|
179
|
-
return proposals_5.SoftwareUpgradeProposal.fromAmino(amino);
|
|
180
|
-
case 'cosmos-sdk/CancelSoftwareUpgradeProposal':
|
|
181
|
-
return proposals_5.CancelSoftwareUpgradeProposal.fromAmino(amino);
|
|
182
|
-
case 'ibc/ClientUpdateProposal':
|
|
183
|
-
return proposals_3.ClientUpdateProposal.fromAmino(amino);
|
|
184
|
-
case 'move/OperationsProposal':
|
|
185
|
-
return proposals_6.OperationsProposal.fromAmino(amino);
|
|
186
|
-
case 'move/WhitelistProposal':
|
|
187
|
-
return proposals_6.WhitelistProposal.fromAmino(amino);
|
|
188
|
-
case 'move/DelistProposal':
|
|
189
|
-
return proposals_6.DelistProposal.fromAmino(amino);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
Content.fromAmino = fromAmino;
|
|
193
|
-
function fromData(data) {
|
|
194
|
-
switch (data['@type']) {
|
|
195
|
-
case '/cosmos.gov.v1beta1.TextProposal':
|
|
196
|
-
return proposals_4.TextProposal.fromData(data);
|
|
197
|
-
case '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal':
|
|
198
|
-
return proposals_1.CommunityPoolSpendProposal.fromData(data);
|
|
199
|
-
case '/cosmos.params.v1beta1.ParameterChangeProposal':
|
|
200
|
-
return proposals_2.ParameterChangeProposal.fromData(data);
|
|
201
|
-
case '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal':
|
|
202
|
-
return proposals_5.SoftwareUpgradeProposal.fromData(data);
|
|
203
|
-
case '/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal':
|
|
204
|
-
return proposals_5.CancelSoftwareUpgradeProposal.fromData(data);
|
|
205
|
-
case '/ibc.core.client.v1.ClientUpdateProposal':
|
|
206
|
-
return proposals_3.ClientUpdateProposal.fromData(data);
|
|
207
|
-
case '/initia.move.v1.OperationsProposal':
|
|
208
|
-
return proposals_6.OperationsProposal.fromData(data);
|
|
209
|
-
case '/initia.move.v1.WhitelistProposal':
|
|
210
|
-
return proposals_6.WhitelistProposal.fromData(data);
|
|
211
|
-
case '/initia.move.v1.DelistProposal':
|
|
212
|
-
return proposals_6.DelistProposal.fromData(data);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
Content.fromData = fromData;
|
|
216
|
-
function fromProto(anyProto) {
|
|
217
|
-
var typeUrl = anyProto.typeUrl;
|
|
218
|
-
switch (typeUrl) {
|
|
219
|
-
case '/cosmos.gov.v1beta1.TextProposal':
|
|
220
|
-
return proposals_4.TextProposal.unpackAny(anyProto);
|
|
221
|
-
case '/cosmos.distribution.v1beta1.CommunityPoolSpendProposal':
|
|
222
|
-
return proposals_1.CommunityPoolSpendProposal.unpackAny(anyProto);
|
|
223
|
-
case '/cosmos.params.v1beta1.ParameterChangeProposal':
|
|
224
|
-
return proposals_2.ParameterChangeProposal.unpackAny(anyProto);
|
|
225
|
-
case '/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal':
|
|
226
|
-
return proposals_5.SoftwareUpgradeProposal.unpackAny(anyProto);
|
|
227
|
-
case '/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal':
|
|
228
|
-
return proposals_5.CancelSoftwareUpgradeProposal.unpackAny(anyProto);
|
|
229
|
-
case '/ibc.core.client.v1.ClientUpdateProposal':
|
|
230
|
-
return proposals_3.ClientUpdateProposal.unpackAny(anyProto);
|
|
231
|
-
case '/initia.move.v1.OperationsProposal':
|
|
232
|
-
return proposals_6.OperationsProposal.unpackAny(anyProto);
|
|
233
|
-
case '/initia.move.v1.WhitelistProposal':
|
|
234
|
-
return proposals_6.WhitelistProposal.unpackAny(anyProto);
|
|
235
|
-
case '/initia.move.v1.DelistProposal':
|
|
236
|
-
return proposals_6.DelistProposal.unpackAny(anyProto);
|
|
237
|
-
}
|
|
238
|
-
throw "Proposal content ".concat(typeUrl, " not recognized");
|
|
239
|
-
}
|
|
240
|
-
Content.fromProto = fromProto;
|
|
241
|
-
})(Content = Proposal.Content || (Proposal.Content = {}));
|
|
242
|
-
})(Proposal = exports.Proposal || (exports.Proposal = {}));
|
|
243
|
-
exports.Proposal = Proposal;
|
|
244
|
-
//# sourceMappingURL=Proposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Proposal.js","sourceRoot":"","sources":["../../../src/core/gov/Proposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,kCAAiC;AACjC,8BAA6B;AAC7B,wCAAmD;AACnD,uDAAuE;AACvE,iDAA8D;AAC9D,8CAAwD;AACxD,yCAA2C;AAC3C,kDAG8B;AAC9B,+CAI2B;AAC3B,mEAMqD;AAErD,8CAAwB;AAExB;;;GAGG;AACH;IAA8B,4BAI7B;IACC;;;;;;;;;;;OAWG;IACH,kBACS,EAAU,EACV,OAAyB,EACzB,MAAsB,EACtB,kBAA6C,EAC7C,WAAiB,EACjB,gBAAsB,EACtB,aAAoB,EACpB,iBAAuB,EACvB,eAAqB;QAT9B,YAWE,iBAAO,SACR;QAXQ,QAAE,GAAF,EAAE,CAAQ;QACV,aAAO,GAAP,OAAO,CAAkB;QACzB,YAAM,GAAN,MAAM,CAAgB;QACtB,wBAAkB,GAAlB,kBAAkB,CAA2B;QAC7C,iBAAW,GAAX,WAAW,CAAM;QACjB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,CAAC,CAAC;gBACxD,KAAK,gDAAgD;oBACnD,OAAO,mCAAuB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBACrD,KAAK,iDAAiD;oBACpD,OAAO,mCAAuB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBACrD,KAAK,uDAAuD;oBAC1D,OAAO,yCAA6B,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAC3D,KAAK,0CAA0C;oBAC7C,OAAO,gCAAoB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAClD,KAAK,oCAAoC;oBACvC,OAAO,8BAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAChD,KAAK,mCAAmC;oBACtC,OAAO,6BAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAC/C,KAAK,gCAAgC;oBACnC,OAAO,0BAAc,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC7C;YAED,MAAM,2BAAoB,OAAO,oBAAiB,CAAC;QACrD,CAAC;QAxBe,iBAAS,YAwBxB,CAAA;IACH,CAAC,EAzGgB,OAAO,GAAP,gBAAO,KAAP,gBAAO,QAyGvB;AAqCH,CAAC,EApKgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAoKxB;AAnWY,4BAAQ"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { MsgRegisterCounterpartyAddress as MsgRegisterCounterpartyAddress_pb } from '@initia/initia.proto/ibc/applications/fee/v1/tx';
|
|
4
|
-
/**
|
|
5
|
-
* MsgRegisterCounterpartyAddress defines the request type for the RegisterCounterpartyAddress rpc
|
|
6
|
-
*/
|
|
7
|
-
export declare class MsgRegisterCounterpartyAddress extends JSONSerializable<any, MsgRegisterCounterpartyAddress.Data, MsgRegisterCounterpartyAddress.Proto> {
|
|
8
|
-
address: string;
|
|
9
|
-
counterparty_address: string;
|
|
10
|
-
channel_id: string;
|
|
11
|
-
/**
|
|
12
|
-
* @param address the relayer address
|
|
13
|
-
* @param counterparty_adress the counterparty relayer address
|
|
14
|
-
* @param channel_id unique channel identifier
|
|
15
|
-
*/
|
|
16
|
-
constructor(address: string, counterparty_address: string, channel_id: string);
|
|
17
|
-
static fromAmino(_: any): MsgRegisterCounterpartyAddress;
|
|
18
|
-
toAmino(): any;
|
|
19
|
-
static fromData(data: MsgRegisterCounterpartyAddress.Data): MsgRegisterCounterpartyAddress;
|
|
20
|
-
toData(): MsgRegisterCounterpartyAddress.Data;
|
|
21
|
-
static fromProto(proto: MsgRegisterCounterpartyAddress.Proto): MsgRegisterCounterpartyAddress;
|
|
22
|
-
toProto(): MsgRegisterCounterpartyAddress.Proto;
|
|
23
|
-
packAny(): Any;
|
|
24
|
-
static unpackAny(msgAny: Any): MsgRegisterCounterpartyAddress;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace MsgRegisterCounterpartyAddress {
|
|
27
|
-
interface Data {
|
|
28
|
-
'@type': '/ibc.applications.fee.v1.MsgRegisterCounterpartyAddress';
|
|
29
|
-
address: string;
|
|
30
|
-
counterparty_address: string;
|
|
31
|
-
channel_id: string;
|
|
32
|
-
}
|
|
33
|
-
type Proto = MsgRegisterCounterpartyAddress_pb;
|
|
34
|
-
}
|
|
@@ -1,82 +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.MsgRegisterCounterpartyAddress = 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/ibc/applications/fee/v1/tx");
|
|
22
|
-
/**
|
|
23
|
-
* MsgRegisterCounterpartyAddress defines the request type for the RegisterCounterpartyAddress rpc
|
|
24
|
-
*/
|
|
25
|
-
var MsgRegisterCounterpartyAddress = /** @class */ (function (_super) {
|
|
26
|
-
__extends(MsgRegisterCounterpartyAddress, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param address the relayer address
|
|
29
|
-
* @param counterparty_adress the counterparty relayer address
|
|
30
|
-
* @param channel_id unique channel identifier
|
|
31
|
-
*/
|
|
32
|
-
function MsgRegisterCounterpartyAddress(address, counterparty_address, channel_id) {
|
|
33
|
-
var _this = _super.call(this) || this;
|
|
34
|
-
_this.address = address;
|
|
35
|
-
_this.counterparty_address = counterparty_address;
|
|
36
|
-
_this.channel_id = channel_id;
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
MsgRegisterCounterpartyAddress.fromAmino = function (_) {
|
|
40
|
-
_;
|
|
41
|
-
throw new Error('Amino not supported');
|
|
42
|
-
};
|
|
43
|
-
MsgRegisterCounterpartyAddress.prototype.toAmino = function () {
|
|
44
|
-
throw new Error('Amino not supported');
|
|
45
|
-
};
|
|
46
|
-
MsgRegisterCounterpartyAddress.fromData = function (data) {
|
|
47
|
-
var address = data.address, counterparty_address = data.counterparty_address, channel_id = data.channel_id;
|
|
48
|
-
return new MsgRegisterCounterpartyAddress(address, counterparty_address, channel_id);
|
|
49
|
-
};
|
|
50
|
-
MsgRegisterCounterpartyAddress.prototype.toData = function () {
|
|
51
|
-
var _a = this, address = _a.address, counterparty_address = _a.counterparty_address, channel_id = _a.channel_id;
|
|
52
|
-
return {
|
|
53
|
-
'@type': '/ibc.applications.fee.v1.MsgRegisterCounterpartyAddress',
|
|
54
|
-
address: address,
|
|
55
|
-
counterparty_address: counterparty_address,
|
|
56
|
-
channel_id: channel_id,
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
MsgRegisterCounterpartyAddress.fromProto = function (proto) {
|
|
60
|
-
return new MsgRegisterCounterpartyAddress(proto.address, proto.counterpartyAddress, proto.channelId);
|
|
61
|
-
};
|
|
62
|
-
MsgRegisterCounterpartyAddress.prototype.toProto = function () {
|
|
63
|
-
var _a = this, address = _a.address, counterparty_address = _a.counterparty_address, channel_id = _a.channel_id;
|
|
64
|
-
return tx_1.MsgRegisterCounterpartyAddress.fromPartial({
|
|
65
|
-
address: address,
|
|
66
|
-
counterpartyAddress: counterparty_address,
|
|
67
|
-
channelId: channel_id,
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
MsgRegisterCounterpartyAddress.prototype.packAny = function () {
|
|
71
|
-
return any_1.Any.fromPartial({
|
|
72
|
-
typeUrl: '/ibc.applications.fee.v1.MsgRegisterCounterpartyAddress',
|
|
73
|
-
value: tx_1.MsgRegisterCounterpartyAddress.encode(this.toProto()).finish(),
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
MsgRegisterCounterpartyAddress.unpackAny = function (msgAny) {
|
|
77
|
-
return MsgRegisterCounterpartyAddress.fromProto(tx_1.MsgRegisterCounterpartyAddress.decode(msgAny.value));
|
|
78
|
-
};
|
|
79
|
-
return MsgRegisterCounterpartyAddress;
|
|
80
|
-
}(json_1.JSONSerializable));
|
|
81
|
-
exports.MsgRegisterCounterpartyAddress = MsgRegisterCounterpartyAddress;
|
|
82
|
-
//# sourceMappingURL=MsgRegisterCounterpartAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MsgRegisterCounterpartAddress.js","sourceRoot":"","sources":["../../../../../../src/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iDAA4D;AAC5D,gEAA+D;AAC/D,sEAAsI;AAEtI;;GAEG;AACH;IAAoD,kDAInD;IACC;;;;OAIG;IACH,wCACS,OAAe,EACf,oBAA4B,EAC5B,UAAkB;QAH3B,YAKE,iBAAO,SACR;QALQ,aAAO,GAAP,OAAO,CAAQ;QACf,0BAAoB,GAApB,oBAAoB,CAAQ;QAC5B,gBAAU,GAAV,UAAU,CAAQ;;IAG3B,CAAC;IAEa,wCAAS,GAAvB,UAAwB,CAAM;QAC5B,CAAC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAEM,gDAAO,GAAd;QACE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAEa,uCAAQ,GAAtB,UACE,IAAyC;QAEjC,IAAA,OAAO,GAAuC,IAAI,QAA3C,EAAE,oBAAoB,GAAiB,IAAI,qBAArB,EAAE,UAAU,GAAK,IAAI,WAAT,CAAU;QAE3D,OAAO,IAAI,8BAA8B,CACvC,OAAO,EACP,oBAAoB,EACpB,UAAU,CACX,CAAC;IACJ,CAAC;IAEM,+CAAM,GAAb;QACQ,IAAA,KAAgD,IAAI,EAAlD,OAAO,aAAA,EAAE,oBAAoB,0BAAA,EAAE,UAAU,gBAAS,CAAC;QAC3D,OAAO;YACL,OAAO,EAAE,yDAAyD;YAClE,OAAO,SAAA;YACP,oBAAoB,sBAAA;YACpB,UAAU,YAAA;SACX,CAAC;IACJ,CAAC;IAEa,wCAAS,GAAvB,UACE,KAA2C;QAE3C,OAAO,IAAI,8BAA8B,CACvC,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,SAAS,CAChB,CAAC;IACJ,CAAC;IAEM,gDAAO,GAAd;QACQ,IAAA,KAAgD,IAAI,EAAlD,OAAO,aAAA,EAAE,oBAAoB,0BAAA,EAAE,UAAU,gBAAS,CAAC;QAC3D,OAAO,mCAAiC,CAAC,WAAW,CAAC;YACnD,OAAO,SAAA;YACP,mBAAmB,EAAE,oBAAoB;YACzC,SAAS,EAAE,UAAU;SACtB,CAAC,CAAC;IACL,CAAC;IAEM,gDAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,yDAAyD;YAClE,KAAK,EAAE,mCAAiC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACzE,CAAC,CAAC;IACL,CAAC;IAEa,wCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,8BAA8B,CAAC,SAAS,CAC7C,mCAAiC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACvD,CAAC;IACJ,CAAC;IACH,qCAAC;AAAD,CAAC,AAhFD,CAAoD,uBAAgB,GAgFnE;AAhFY,wEAA8B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ClassTrace as ClassTrace_pb } from '@initia/initia.proto/ibc/applications/nft_transfer/v1/types';
|
|
2
|
-
import { JSONSerializable } from '../../../../util/json';
|
|
3
|
-
export declare class ClassTrace extends JSONSerializable<ClassTrace.Amino, ClassTrace.Data, ClassTrace.Proto> {
|
|
4
|
-
path: string;
|
|
5
|
-
base_class_id: string;
|
|
6
|
-
/**
|
|
7
|
-
* @param path the chain of port/channel identifiers used for tracing the source of the non fungible token
|
|
8
|
-
* @param base_class_id base class id of the relayed non fungible token
|
|
9
|
-
*/
|
|
10
|
-
constructor(path: string, base_class_id: string);
|
|
11
|
-
static fromAmino(data: ClassTrace.Amino): ClassTrace;
|
|
12
|
-
toAmino(): ClassTrace.Amino;
|
|
13
|
-
static fromData(data: ClassTrace.Data): ClassTrace;
|
|
14
|
-
toData(): ClassTrace.Data;
|
|
15
|
-
static fromProto(proto: ClassTrace.Proto): ClassTrace;
|
|
16
|
-
toProto(): ClassTrace.Proto;
|
|
17
|
-
}
|
|
18
|
-
export declare namespace ClassTrace {
|
|
19
|
-
interface Amino {
|
|
20
|
-
path: string;
|
|
21
|
-
base_class_id: string;
|
|
22
|
-
}
|
|
23
|
-
interface Data {
|
|
24
|
-
path: string;
|
|
25
|
-
base_class_id: string;
|
|
26
|
-
}
|
|
27
|
-
type Proto = ClassTrace_pb;
|
|
28
|
-
}
|
|
@@ -1,67 +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.ClassTrace = void 0;
|
|
19
|
-
var types_1 = require("@initia/initia.proto/ibc/applications/nft_transfer/v1/types");
|
|
20
|
-
var json_1 = require("../../../../util/json");
|
|
21
|
-
var ClassTrace = /** @class */ (function (_super) {
|
|
22
|
-
__extends(ClassTrace, _super);
|
|
23
|
-
/**
|
|
24
|
-
* @param path the chain of port/channel identifiers used for tracing the source of the non fungible token
|
|
25
|
-
* @param base_class_id base class id of the relayed non fungible token
|
|
26
|
-
*/
|
|
27
|
-
function ClassTrace(path, base_class_id) {
|
|
28
|
-
var _this = _super.call(this) || this;
|
|
29
|
-
_this.path = path;
|
|
30
|
-
_this.base_class_id = base_class_id;
|
|
31
|
-
return _this;
|
|
32
|
-
}
|
|
33
|
-
ClassTrace.fromAmino = function (data) {
|
|
34
|
-
var path = data.path, base_class_id = data.base_class_id;
|
|
35
|
-
return new ClassTrace(path, base_class_id);
|
|
36
|
-
};
|
|
37
|
-
ClassTrace.prototype.toAmino = function () {
|
|
38
|
-
var _a = this, path = _a.path, base_class_id = _a.base_class_id;
|
|
39
|
-
var res = {
|
|
40
|
-
path: path,
|
|
41
|
-
base_class_id: base_class_id,
|
|
42
|
-
};
|
|
43
|
-
return res;
|
|
44
|
-
};
|
|
45
|
-
ClassTrace.fromData = function (data) {
|
|
46
|
-
var path = data.path, base_class_id = data.base_class_id;
|
|
47
|
-
return new ClassTrace(path, base_class_id);
|
|
48
|
-
};
|
|
49
|
-
ClassTrace.prototype.toData = function () {
|
|
50
|
-
var _a = this, path = _a.path, base_class_id = _a.base_class_id;
|
|
51
|
-
var res = {
|
|
52
|
-
path: path,
|
|
53
|
-
base_class_id: base_class_id,
|
|
54
|
-
};
|
|
55
|
-
return res;
|
|
56
|
-
};
|
|
57
|
-
ClassTrace.fromProto = function (proto) {
|
|
58
|
-
return new ClassTrace(proto.path, proto.baseClassId);
|
|
59
|
-
};
|
|
60
|
-
ClassTrace.prototype.toProto = function () {
|
|
61
|
-
var _a = this, path = _a.path, base_class_id = _a.base_class_id;
|
|
62
|
-
return types_1.ClassTrace.fromPartial({ path: path, baseClassId: base_class_id });
|
|
63
|
-
};
|
|
64
|
-
return ClassTrace;
|
|
65
|
-
}(json_1.JSONSerializable));
|
|
66
|
-
exports.ClassTrace = ClassTrace;
|
|
67
|
-
//# sourceMappingURL=ClassTrace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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0B,IAAI,EAA5B,IAAI,UAAA,EAAE,aAAa,mBAAS,CAAC;QACrC,OAAO,kBAAa,CAAC,WAAW,CAAC,EAAE,IAAI,MAAA,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAC;IACzE,CAAC;IACH,iBAAC;AAAD,CAAC,AAjDD,CAAgC,uBAAgB,GAiD/C;AAjDY,gCAAU"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Version as Version_pb } from '@initia/initia.proto/ibc/core/connection/v1/connection';
|
|
2
|
-
import { JSONSerializable } from '../../../../util/json';
|
|
3
|
-
export declare class Version extends JSONSerializable<Version.Amino, Version.Data, Version.Proto> {
|
|
4
|
-
identifier: string;
|
|
5
|
-
features: string[];
|
|
6
|
-
/**
|
|
7
|
-
* @param identifier unique version identifier
|
|
8
|
-
* @param features list of features compatible with the specified identifier
|
|
9
|
-
*/
|
|
10
|
-
constructor(identifier: string, features: string[]);
|
|
11
|
-
static fromAmino(data: Version.Amino): Version;
|
|
12
|
-
toAmino(): Version.Amino;
|
|
13
|
-
static fromData(data: Version.Data): Version;
|
|
14
|
-
toData(): Version.Data;
|
|
15
|
-
static fromProto(proto: Version.Proto): Version;
|
|
16
|
-
toProto(): Version.Proto;
|
|
17
|
-
}
|
|
18
|
-
export declare namespace Version {
|
|
19
|
-
interface Amino {
|
|
20
|
-
identifier: string;
|
|
21
|
-
features: string[];
|
|
22
|
-
}
|
|
23
|
-
interface Data {
|
|
24
|
-
identifier: string;
|
|
25
|
-
features: string[];
|
|
26
|
-
}
|
|
27
|
-
type Proto = Version_pb;
|
|
28
|
-
}
|