@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,70 +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.Version = void 0;
|
|
19
|
-
var connection_1 = require("@initia/initia.proto/ibc/core/connection/v1/connection");
|
|
20
|
-
var json_1 = require("../../../../util/json");
|
|
21
|
-
/*
|
|
22
|
-
* Version defines the versioning scheme used to negotiate the IBC verison in the connection handshake.
|
|
23
|
-
*/
|
|
24
|
-
var Version = /** @class */ (function (_super) {
|
|
25
|
-
__extends(Version, _super);
|
|
26
|
-
/**
|
|
27
|
-
* @param identifier unique version identifier
|
|
28
|
-
* @param features list of features compatible with the specified identifier
|
|
29
|
-
*/
|
|
30
|
-
function Version(identifier, features) {
|
|
31
|
-
var _this = _super.call(this) || this;
|
|
32
|
-
_this.identifier = identifier;
|
|
33
|
-
_this.features = features;
|
|
34
|
-
return _this;
|
|
35
|
-
}
|
|
36
|
-
Version.fromAmino = function (data) {
|
|
37
|
-
var identifier = data.identifier, features = data.features;
|
|
38
|
-
return new Version(identifier, features);
|
|
39
|
-
};
|
|
40
|
-
Version.prototype.toAmino = function () {
|
|
41
|
-
var _a = this, identifier = _a.identifier, features = _a.features;
|
|
42
|
-
var res = {
|
|
43
|
-
identifier: identifier,
|
|
44
|
-
features: features,
|
|
45
|
-
};
|
|
46
|
-
return res;
|
|
47
|
-
};
|
|
48
|
-
Version.fromData = function (data) {
|
|
49
|
-
var identifier = data.identifier, features = data.features;
|
|
50
|
-
return new Version(identifier, features);
|
|
51
|
-
};
|
|
52
|
-
Version.prototype.toData = function () {
|
|
53
|
-
var _a = this, identifier = _a.identifier, features = _a.features;
|
|
54
|
-
var res = {
|
|
55
|
-
identifier: identifier,
|
|
56
|
-
features: features,
|
|
57
|
-
};
|
|
58
|
-
return res;
|
|
59
|
-
};
|
|
60
|
-
Version.fromProto = function (proto) {
|
|
61
|
-
return new Version(proto.identifier, proto.features);
|
|
62
|
-
};
|
|
63
|
-
Version.prototype.toProto = function () {
|
|
64
|
-
var _a = this, identifier = _a.identifier, features = _a.features;
|
|
65
|
-
return connection_1.Version.fromPartial({ identifier: identifier, features: features });
|
|
66
|
-
};
|
|
67
|
-
return Version;
|
|
68
|
-
}(json_1.JSONSerializable));
|
|
69
|
-
exports.Version = Version;
|
|
70
|
-
//# sourceMappingURL=Version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C,CAAC;IACvD,CAAC;IAEM,yBAAO,GAAd;QACQ,IAAA,KAA2B,IAAI,EAA7B,UAAU,gBAAA,EAAE,QAAQ,cAAS,CAAC;QACtC,OAAO,oBAAU,CAAC,WAAW,CAAC,EAAE,UAAU,YAAA,EAAE,QAAQ,UAAA,EAAE,CAAC,CAAC;IAC1D,CAAC;IACH,cAAC;AAAD,CAAC,AAjDD,CAA6B,uBAAgB,GAiD5C;AAjDY,0BAAO"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AccAddress } from 'core/bech32';
|
|
2
|
-
import { Coins } from '../Coins';
|
|
3
|
-
import { JSONSerializable } from '../../util/json';
|
|
4
|
-
import { StorageFee as StorageFee_pb } from '@initia/initia.proto/initia/move/v1/types';
|
|
5
|
-
export declare class StorageFee extends JSONSerializable<StorageFee.Amino, StorageFee.Data, StorageFee.Proto> {
|
|
6
|
-
address: AccAddress;
|
|
7
|
-
assigned_bytes: number;
|
|
8
|
-
amount: Coins;
|
|
9
|
-
/**
|
|
10
|
-
* @param address address
|
|
11
|
-
* @param assigned_bytes storage amount in bytes unit
|
|
12
|
-
* @param amount paid coin amount for the storage allocation
|
|
13
|
-
*/
|
|
14
|
-
constructor(address: AccAddress, assigned_bytes: number, amount: Coins.Input);
|
|
15
|
-
static fromAmino(data: StorageFee.Amino): StorageFee;
|
|
16
|
-
toAmino(): StorageFee.Amino;
|
|
17
|
-
static fromData(data: StorageFee.Data): StorageFee;
|
|
18
|
-
toData(): StorageFee.Data;
|
|
19
|
-
static fromProto(proto: StorageFee.Proto): StorageFee;
|
|
20
|
-
toProto(): StorageFee.Proto;
|
|
21
|
-
}
|
|
22
|
-
export declare namespace StorageFee {
|
|
23
|
-
interface Amino {
|
|
24
|
-
address: AccAddress;
|
|
25
|
-
assigned_bytes: string;
|
|
26
|
-
amount: Coins.Amino;
|
|
27
|
-
}
|
|
28
|
-
interface Data {
|
|
29
|
-
address: AccAddress;
|
|
30
|
-
assigned_bytes: string;
|
|
31
|
-
amount: Coins.Data;
|
|
32
|
-
}
|
|
33
|
-
type Proto = StorageFee_pb;
|
|
34
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.StorageFee = void 0;
|
|
22
|
-
var Coins_1 = require("../Coins");
|
|
23
|
-
var json_1 = require("../../util/json");
|
|
24
|
-
var types_1 = require("@initia/initia.proto/initia/move/v1/types");
|
|
25
|
-
var long_1 = __importDefault(require("long"));
|
|
26
|
-
var StorageFee = /** @class */ (function (_super) {
|
|
27
|
-
__extends(StorageFee, _super);
|
|
28
|
-
/**
|
|
29
|
-
* @param address address
|
|
30
|
-
* @param assigned_bytes storage amount in bytes unit
|
|
31
|
-
* @param amount paid coin amount for the storage allocation
|
|
32
|
-
*/
|
|
33
|
-
function StorageFee(address, assigned_bytes, amount) {
|
|
34
|
-
var _this = _super.call(this) || this;
|
|
35
|
-
_this.address = address;
|
|
36
|
-
_this.assigned_bytes = assigned_bytes;
|
|
37
|
-
_this.amount = new Coins_1.Coins(amount);
|
|
38
|
-
return _this;
|
|
39
|
-
}
|
|
40
|
-
StorageFee.fromAmino = function (data) {
|
|
41
|
-
var address = data.address, assigned_bytes = data.assigned_bytes, amount = data.amount;
|
|
42
|
-
return new StorageFee(address, Number.parseInt(assigned_bytes), Coins_1.Coins.fromAmino(amount));
|
|
43
|
-
};
|
|
44
|
-
StorageFee.prototype.toAmino = function () {
|
|
45
|
-
var _a = this, address = _a.address, assigned_bytes = _a.assigned_bytes, amount = _a.amount;
|
|
46
|
-
return {
|
|
47
|
-
address: address,
|
|
48
|
-
assigned_bytes: assigned_bytes.toFixed(),
|
|
49
|
-
amount: amount.toAmino(),
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
StorageFee.fromData = function (data) {
|
|
53
|
-
var address = data.address, assigned_bytes = data.assigned_bytes, amount = data.amount;
|
|
54
|
-
return new StorageFee(address, Number.parseInt(assigned_bytes), Coins_1.Coins.fromData(amount));
|
|
55
|
-
};
|
|
56
|
-
StorageFee.prototype.toData = function () {
|
|
57
|
-
var _a = this, address = _a.address, assigned_bytes = _a.assigned_bytes, amount = _a.amount;
|
|
58
|
-
return {
|
|
59
|
-
address: address,
|
|
60
|
-
assigned_bytes: assigned_bytes.toFixed(),
|
|
61
|
-
amount: amount.toData(),
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
StorageFee.fromProto = function (proto) {
|
|
65
|
-
return new StorageFee(proto.address, proto.assignedBytes.toNumber(), Coins_1.Coins.fromProto(proto.amount));
|
|
66
|
-
};
|
|
67
|
-
StorageFee.prototype.toProto = function () {
|
|
68
|
-
var _a = this, address = _a.address, assigned_bytes = _a.assigned_bytes, amount = _a.amount;
|
|
69
|
-
return types_1.StorageFee.fromPartial({
|
|
70
|
-
address: address,
|
|
71
|
-
assignedBytes: long_1.default.fromNumber(assigned_bytes),
|
|
72
|
-
amount: amount.toProto(),
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
return StorageFee;
|
|
76
|
-
}(json_1.JSONSerializable));
|
|
77
|
-
exports.StorageFee = StorageFee;
|
|
78
|
-
//# sourceMappingURL=StorageFee.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageFee.js","sourceRoot":"","sources":["../../../src/core/move/StorageFee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,kCAAiC;AACjC,wCAAmD;AACnD,mEAAwF;AACxF,8CAAwB;AAExB;IAAgC,8BAI/B;IAGC;;;;OAIG;IACH,oBACS,OAAmB,EACnB,cAAsB,EAC7B,MAAmB;QAHrB,YAKE,iBAAO,SAER;QANQ,aAAO,GAAP,OAAO,CAAY;QACnB,oBAAc,GAAd,cAAc,CAAQ;QAI7B,KAAI,CAAC,MAAM,GAAG,IAAI,aAAK,CAAC,MAAM,CAAC,CAAC;;IAClC,CAAC;IAEa,oBAAS,GAAvB,UAAwB,IAAsB;QACpC,IAAA,OAAO,GAA6B,IAAI,QAAjC,EAAE,cAAc,GAAa,IAAI,eAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;QACjD,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3F,CAAC;IAEM,4BAAO,GAAd;QACQ,IAAA,KAAsC,IAAI,EAAxC,OAAO,aAAA,EAAE,cAAc,oBAAA,EAAE,MAAM,YAAS,CAAC;QACjD,OAAO;YACL,OAAO,SAAA;YACP,cAAc,EAAE,cAAc,CAAC,OAAO,EAAE;YACxC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,CAAC;IACJ,CAAC;IAEa,mBAAQ,GAAtB,UAAuB,IAAqB;QAClC,IAAA,OAAO,GAA6B,IAAI,QAAjC,EAAE,cAAc,GAAa,IAAI,eAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;QACjD,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1F,CAAC;IAEM,2BAAM,GAAb;QACQ,IAAA,KAAsC,IAAI,EAAxC,OAAO,aAAA,EAAE,cAAc,oBAAA,EAAE,MAAM,YAAS,CAAC;QACjD,OAAO;YACL,OAAO,SAAA;YACP,cAAc,EAAE,cAAc,CAAC,OAAO,EAAE;YACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;SACxB,CAAC;IACJ,CAAC;IAEa,oBAAS,GAAvB,UAAwB,KAAuB;QAC7C,OAAO,IAAI,UAAU,CACnB,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,EAC9B,aAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAC9B,CAAC;IACJ,CAAC;IAEM,4BAAO,GAAd;QACQ,IAAA,KAAsC,IAAI,EAAxC,OAAO,aAAA,EAAE,cAAc,oBAAA,EAAE,MAAM,YAAS,CAAC;QACjD,OAAO,kBAAa,CAAC,WAAW,CAAC;YAC/B,OAAO,SAAA;YACP,aAAa,EAAE,cAAI,CAAC,UAAU,CAAC,cAAc,CAAC;YAC9C,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AAjED,CAAgC,uBAAgB,GAiE/C;AAjEY,gCAAU"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { DelistProposal as DelistProposal_pb } from '@initia/initia.proto/initia/move/v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* DelistProposal proposal which supports delisting whitelisted dex pairs
|
|
6
|
-
*/
|
|
7
|
-
export declare class DelistProposal extends JSONSerializable<DelistProposal.Amino, DelistProposal.Data, DelistProposal.Proto> {
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
coin_a: string;
|
|
11
|
-
coin_b: string;
|
|
12
|
-
coin_lp: string;
|
|
13
|
-
/**
|
|
14
|
-
* @param title a short summary
|
|
15
|
-
* @param description a human readable text
|
|
16
|
-
* @param coin_a coin A struct tag
|
|
17
|
-
* @param coin_b coin B struct tag
|
|
18
|
-
* @param coin_lp coin LP struct tag
|
|
19
|
-
*/
|
|
20
|
-
constructor(title: string, description: string, coin_a: string, coin_b: string, coin_lp: string);
|
|
21
|
-
static fromAmino(data: DelistProposal.Amino): DelistProposal;
|
|
22
|
-
toAmino(): DelistProposal.Amino;
|
|
23
|
-
static fromData(data: DelistProposal.Data): DelistProposal;
|
|
24
|
-
toData(): DelistProposal.Data;
|
|
25
|
-
static fromProto(proto: DelistProposal.Proto): DelistProposal;
|
|
26
|
-
toProto(): DelistProposal.Proto;
|
|
27
|
-
packAny(): Any;
|
|
28
|
-
static unpackAny(msgAny: Any): DelistProposal;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace DelistProposal {
|
|
31
|
-
interface Amino {
|
|
32
|
-
type: 'move/DelistProposal';
|
|
33
|
-
value: {
|
|
34
|
-
title: string;
|
|
35
|
-
description: string;
|
|
36
|
-
coin_a: string;
|
|
37
|
-
coin_b: string;
|
|
38
|
-
coin_lp: string;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
interface Data {
|
|
42
|
-
'@type': '/initia.move.v1.DelistProposal';
|
|
43
|
-
title: string;
|
|
44
|
-
description: string;
|
|
45
|
-
coin_a: string;
|
|
46
|
-
coin_b: string;
|
|
47
|
-
coin_lp: string;
|
|
48
|
-
}
|
|
49
|
-
type Proto = DelistProposal_pb;
|
|
50
|
-
}
|
|
@@ -1,100 +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.DelistProposal = void 0;
|
|
19
|
-
var json_1 = require("../../../util/json");
|
|
20
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
-
var proposal_1 = require("@initia/initia.proto/initia/move/v1/proposal");
|
|
22
|
-
/**
|
|
23
|
-
* DelistProposal proposal which supports delisting whitelisted dex pairs
|
|
24
|
-
*/
|
|
25
|
-
var DelistProposal = /** @class */ (function (_super) {
|
|
26
|
-
__extends(DelistProposal, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param title a short summary
|
|
29
|
-
* @param description a human readable text
|
|
30
|
-
* @param coin_a coin A struct tag
|
|
31
|
-
* @param coin_b coin B struct tag
|
|
32
|
-
* @param coin_lp coin LP struct tag
|
|
33
|
-
*/
|
|
34
|
-
function DelistProposal(title, description, coin_a, coin_b, coin_lp) {
|
|
35
|
-
var _this = _super.call(this) || this;
|
|
36
|
-
_this.title = title;
|
|
37
|
-
_this.description = description;
|
|
38
|
-
_this.coin_a = coin_a;
|
|
39
|
-
_this.coin_b = coin_b;
|
|
40
|
-
_this.coin_lp = coin_lp;
|
|
41
|
-
return _this;
|
|
42
|
-
}
|
|
43
|
-
DelistProposal.fromAmino = function (data) {
|
|
44
|
-
var _a = data.value, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
45
|
-
return new DelistProposal(title, description, coin_a, coin_b, coin_lp);
|
|
46
|
-
};
|
|
47
|
-
DelistProposal.prototype.toAmino = function () {
|
|
48
|
-
var _a = this, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
49
|
-
return {
|
|
50
|
-
type: 'move/DelistProposal',
|
|
51
|
-
value: {
|
|
52
|
-
title: title,
|
|
53
|
-
description: description,
|
|
54
|
-
coin_a: coin_a,
|
|
55
|
-
coin_b: coin_b,
|
|
56
|
-
coin_lp: coin_lp,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
DelistProposal.fromData = function (data) {
|
|
61
|
-
var title = data.title, description = data.description, coin_a = data.coin_a, coin_b = data.coin_b, coin_lp = data.coin_lp;
|
|
62
|
-
return new DelistProposal(title, description, coin_a, coin_b, coin_lp);
|
|
63
|
-
};
|
|
64
|
-
DelistProposal.prototype.toData = function () {
|
|
65
|
-
var _a = this, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
66
|
-
return {
|
|
67
|
-
'@type': '/initia.move.v1.DelistProposal',
|
|
68
|
-
title: title,
|
|
69
|
-
description: description,
|
|
70
|
-
coin_a: coin_a,
|
|
71
|
-
coin_b: coin_b,
|
|
72
|
-
coin_lp: coin_lp,
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
DelistProposal.fromProto = function (proto) {
|
|
76
|
-
return new DelistProposal(proto.title, proto.description, proto.coinA, proto.coinB, proto.coinLp);
|
|
77
|
-
};
|
|
78
|
-
DelistProposal.prototype.toProto = function () {
|
|
79
|
-
var _a = this, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
80
|
-
return proposal_1.DelistProposal.fromPartial({
|
|
81
|
-
title: title,
|
|
82
|
-
description: description,
|
|
83
|
-
coinA: coin_a,
|
|
84
|
-
coinB: coin_b,
|
|
85
|
-
coinLp: coin_lp,
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
DelistProposal.prototype.packAny = function () {
|
|
89
|
-
return any_1.Any.fromPartial({
|
|
90
|
-
typeUrl: '/initia.move.v1.DelistProposal',
|
|
91
|
-
value: proposal_1.DelistProposal.encode(this.toProto()).finish(),
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
DelistProposal.unpackAny = function (msgAny) {
|
|
95
|
-
return DelistProposal.fromProto(proposal_1.DelistProposal.decode(msgAny.value));
|
|
96
|
-
};
|
|
97
|
-
return DelistProposal;
|
|
98
|
-
}(json_1.JSONSerializable));
|
|
99
|
-
exports.DelistProposal = DelistProposal;
|
|
100
|
-
//# sourceMappingURL=DelistProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DelistProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/DelistProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,yEAAmG;AAEnG;;GAEG;AACH;IAAoC,kCAInC;IACC;;;;;;OAMG;IACH,wBACS,KAAa,EACb,WAAmB,EACnB,MAAc,EACd,MAAc,EACd,OAAe;QALxB,YAOE,iBAAO,SACR;QAPQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,YAAM,GAAN,MAAM,CAAQ;QACd,YAAM,GAAN,MAAM,CAAQ;QACd,aAAO,GAAP,OAAO,CAAQ;;IAGxB,CAAC;IAEa,wBAAS,GAAvB,UAAwB,IAA0B;QAE9C,IAAA,KACE,IAAI,MADgD,EAA7C,KAAK,WAAA,EAAE,WAAW,iBAAA,EA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AC,KAAK,EACX,KAAK,CAAC,MAAM,CACb,CAAC;IACJ,CAAC;IAEM,gCAAO,GAAd;QACQ,IAAA,KAAkD,IAAI,EAApD,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAS,CAAC;QAC7D,OAAO,yBAAiB,CAAC,WAAW,CAAC;YACnC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAEM,gCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,gCAAgC;YACzC,KAAK,EAAE,yBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACzD,CAAC,CAAC;IACL,CAAC;IAEa,wBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,cAAc,CAAC,SAAS,CAAC,yBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1E,CAAC;IACH,qBAAC;AAAD,CAAC,AA3FD,CAAoC,uBAAgB,GA2FnD;AA3FY,wCAAc"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { ExecuteOperation as ExecuteOperation_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
4
|
-
import { AccAddress } from '../../bech32';
|
|
5
|
-
/**
|
|
6
|
-
* ExecuteOperation gov proposal operation type to execute entry function to the system
|
|
7
|
-
*/
|
|
8
|
-
export declare class ExecuteOperation extends JSONSerializable<ExecuteOperation.Amino, ExecuteOperation.Data, ExecuteOperation.Proto> {
|
|
9
|
-
module_address: AccAddress;
|
|
10
|
-
module_name: string;
|
|
11
|
-
function_name: string;
|
|
12
|
-
type_args: string[];
|
|
13
|
-
args: string[];
|
|
14
|
-
/**
|
|
15
|
-
* @param module_address module address of entry function
|
|
16
|
-
* @param module_name move module name
|
|
17
|
-
* @param function_name move function name
|
|
18
|
-
* @param type_args move function type args
|
|
19
|
-
* @param args move function args
|
|
20
|
-
*/
|
|
21
|
-
constructor(module_address: AccAddress, module_name: string, function_name: string, type_args: string[], args: string[]);
|
|
22
|
-
static fromAmino(data: ExecuteOperation.Amino): ExecuteOperation;
|
|
23
|
-
toAmino(): ExecuteOperation.Amino;
|
|
24
|
-
static fromData(data: ExecuteOperation.Data): ExecuteOperation;
|
|
25
|
-
toData(): ExecuteOperation.Data;
|
|
26
|
-
static fromProto(proto: ExecuteOperation.Proto): ExecuteOperation;
|
|
27
|
-
toProto(): ExecuteOperation.Proto;
|
|
28
|
-
packAny(): Any;
|
|
29
|
-
static unpackAny(msgAny: Any): ExecuteOperation;
|
|
30
|
-
}
|
|
31
|
-
export declare namespace ExecuteOperation {
|
|
32
|
-
interface Amino {
|
|
33
|
-
type: 'move/ExecuteOperation';
|
|
34
|
-
value: {
|
|
35
|
-
module_address: string;
|
|
36
|
-
module_name: string;
|
|
37
|
-
function_name: string;
|
|
38
|
-
type_args: string[];
|
|
39
|
-
args: string[];
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
interface Data {
|
|
43
|
-
'@type': '/initia.move.v1.ExecuteOperation';
|
|
44
|
-
module_address: string;
|
|
45
|
-
module_name: string;
|
|
46
|
-
function_name: string;
|
|
47
|
-
type_args: string[];
|
|
48
|
-
args: string[];
|
|
49
|
-
}
|
|
50
|
-
type Proto = ExecuteOperation_pb;
|
|
51
|
-
}
|
|
@@ -1,100 +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.ExecuteOperation = void 0;
|
|
19
|
-
var json_1 = require("../../../util/json");
|
|
20
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
-
var proposal_1 = require("@initia/initia.proto/initia/move//v1/proposal");
|
|
22
|
-
/**
|
|
23
|
-
* ExecuteOperation gov proposal operation type to execute entry function to the system
|
|
24
|
-
*/
|
|
25
|
-
var ExecuteOperation = /** @class */ (function (_super) {
|
|
26
|
-
__extends(ExecuteOperation, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param module_address module address of entry function
|
|
29
|
-
* @param module_name move module name
|
|
30
|
-
* @param function_name move function name
|
|
31
|
-
* @param type_args move function type args
|
|
32
|
-
* @param args move function args
|
|
33
|
-
*/
|
|
34
|
-
function ExecuteOperation(module_address, module_name, function_name, type_args, args) {
|
|
35
|
-
var _this = _super.call(this) || this;
|
|
36
|
-
_this.module_address = module_address;
|
|
37
|
-
_this.module_name = module_name;
|
|
38
|
-
_this.function_name = function_name;
|
|
39
|
-
_this.type_args = type_args;
|
|
40
|
-
_this.args = args;
|
|
41
|
-
return _this;
|
|
42
|
-
}
|
|
43
|
-
ExecuteOperation.fromAmino = function (data) {
|
|
44
|
-
var _a = data.value, module_address = _a.module_address, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
45
|
-
return new ExecuteOperation(module_address, module_name, function_name, type_args, args);
|
|
46
|
-
};
|
|
47
|
-
ExecuteOperation.prototype.toAmino = function () {
|
|
48
|
-
var _a = this, module_address = _a.module_address, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
49
|
-
return {
|
|
50
|
-
type: 'move/ExecuteOperation',
|
|
51
|
-
value: {
|
|
52
|
-
module_address: module_address,
|
|
53
|
-
module_name: module_name,
|
|
54
|
-
function_name: function_name,
|
|
55
|
-
type_args: type_args,
|
|
56
|
-
args: args,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
ExecuteOperation.fromData = function (data) {
|
|
61
|
-
var module_address = data.module_address, module_name = data.module_name, function_name = data.function_name, type_args = data.type_args, args = data.args;
|
|
62
|
-
return new ExecuteOperation(module_address, module_name, function_name, type_args, args);
|
|
63
|
-
};
|
|
64
|
-
ExecuteOperation.prototype.toData = function () {
|
|
65
|
-
var _a = this, module_address = _a.module_address, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
66
|
-
return {
|
|
67
|
-
'@type': '/initia.move.v1.ExecuteOperation',
|
|
68
|
-
module_address: module_address,
|
|
69
|
-
module_name: module_name,
|
|
70
|
-
function_name: function_name,
|
|
71
|
-
type_args: type_args,
|
|
72
|
-
args: args,
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
ExecuteOperation.fromProto = function (proto) {
|
|
76
|
-
return new ExecuteOperation(proto.moduleAddress, proto.moduleName, proto.functionName, proto.typeArgs, proto.args.map(function (arg) { return Buffer.from(arg).toString('base64'); }));
|
|
77
|
-
};
|
|
78
|
-
ExecuteOperation.prototype.toProto = function () {
|
|
79
|
-
var _a = this, module_address = _a.module_address, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
80
|
-
return proposal_1.ExecuteOperation.fromPartial({
|
|
81
|
-
moduleAddress: module_address,
|
|
82
|
-
moduleName: module_name,
|
|
83
|
-
functionName: function_name,
|
|
84
|
-
typeArgs: type_args,
|
|
85
|
-
args: args.map(function (arg) { return Buffer.from(arg, 'base64'); }),
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
ExecuteOperation.prototype.packAny = function () {
|
|
89
|
-
return any_1.Any.fromPartial({
|
|
90
|
-
typeUrl: '/initia.move.v1.ExecuteOperation',
|
|
91
|
-
value: proposal_1.ExecuteOperation.encode(this.toProto()).finish(),
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
ExecuteOperation.unpackAny = function (msgAny) {
|
|
95
|
-
return ExecuteOperation.fromProto(proposal_1.ExecuteOperation.decode(msgAny.value));
|
|
96
|
-
};
|
|
97
|
-
return ExecuteOperation;
|
|
98
|
-
}(json_1.JSONSerializable));
|
|
99
|
-
exports.ExecuteOperation = ExecuteOperation;
|
|
100
|
-
//# sourceMappingURL=ExecuteOperation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteOperation.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/ExecuteOperation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,0EAAwG;AAGxG;;GAEG;AACH;IAAsC,oCAIrC;IACC;;;;;;OAMG;IACH,0BACS,cAA0B,EAC1B,WAAmB,EACnB,aAAqB,EACrB,SAAmB,EACnB,IAAc;QALvB,YAOE,iBAAO,SACR;QAPQ,oBAAc,GAAd,cAAc,CAAY;QAC1B,iBAAW,GAAX,WAAW,CAAQ;QACnB,mBAAa,GAAb,aAAa,CAAQ;QACrB,eAAS,GAAT,SAAS,CAAU;QACnB,UAAI,GAAJ,IAAI,CAAU;;IAGvB,CAAC;IAEa,0BAAS,GAAvB,UAAwB,IAA4B;QAEhD,IAAA,KACE,IAAI,MADgE,EAA7D,cAAc,oBAAA,EAAE,WAAW,iBAAA,EAAE,aAAa,mBAAA,EAAE,SAA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I,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAnC,CAAmC,CAAC,CAC3D,CAAC;IACJ,CAAC;IAEM,kCAAO,GAAd;QACQ,IAAA,KACJ,IAAI,EADE,cAAc,oBAAA,EAAE,WAAW,iBAAA,EAAE,aAAa,mBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAC7D,CAAC;QACP,OAAO,2BAAmB,CAAC,WAAW,CAAC;YACrC,aAAa,EAAE,cAAc;YAC7B,UAAU,EAAE,WAAW;YACvB,YAAY,EAAE,aAAa;YAC3B,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,EAA1B,CAA0B,CAAC;SAClD,CAAC,CAAC;IACL,CAAC;IAEM,kCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,kCAAkC;YAC3C,KAAK,EAAE,2BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC3D,CAAC,CAAC;IACL,CAAC;IAEa,0BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,gBAAgB,CAAC,SAAS,CAAC,2BAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC;IACH,uBAAC;AAAD,CAAC,AA3GD,CAAsC,uBAAgB,GA2GrD;AA3GY,4CAAgB"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { ExecuteProposal as ExecuteProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* ExecuteProposal gov proposal content type to execute entry function to the system
|
|
6
|
-
*/
|
|
7
|
-
export declare class ExecuteProposal extends JSONSerializable<ExecuteProposal.Amino, ExecuteProposal.Data, ExecuteProposal.Proto> {
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
module_name: string;
|
|
11
|
-
function_name: string;
|
|
12
|
-
type_args: string[];
|
|
13
|
-
args: string[];
|
|
14
|
-
/**
|
|
15
|
-
* @param title a short summary
|
|
16
|
-
* @param description a human readable text
|
|
17
|
-
* @param module_name a move module name
|
|
18
|
-
* @param function_name a move function name
|
|
19
|
-
* @param type_args move function type args
|
|
20
|
-
* @param args move function args
|
|
21
|
-
*/
|
|
22
|
-
constructor(title: string, description: string, module_name: string, function_name: string, type_args: string[], args: string[]);
|
|
23
|
-
static fromAmino(data: ExecuteProposal.Amino): ExecuteProposal;
|
|
24
|
-
toAmino(): ExecuteProposal.Amino;
|
|
25
|
-
static fromData(data: ExecuteProposal.Data): ExecuteProposal;
|
|
26
|
-
toData(): ExecuteProposal.Data;
|
|
27
|
-
static fromProto(proto: ExecuteProposal.Proto): ExecuteProposal;
|
|
28
|
-
toProto(): ExecuteProposal.Proto;
|
|
29
|
-
packAny(): Any;
|
|
30
|
-
static unpackAny(msgAny: Any): ExecuteProposal;
|
|
31
|
-
}
|
|
32
|
-
export declare namespace ExecuteProposal {
|
|
33
|
-
interface Amino {
|
|
34
|
-
type: 'move/ExecuteProposal';
|
|
35
|
-
value: {
|
|
36
|
-
title: string;
|
|
37
|
-
description: string;
|
|
38
|
-
module_name: string;
|
|
39
|
-
function_name: string;
|
|
40
|
-
type_args: string[];
|
|
41
|
-
args: string[];
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
interface Data {
|
|
45
|
-
'@type': '/initia.move.v1.ExecuteProposal';
|
|
46
|
-
title: string;
|
|
47
|
-
description: string;
|
|
48
|
-
module_name: string;
|
|
49
|
-
function_name: string;
|
|
50
|
-
type_args: string[];
|
|
51
|
-
args: string[];
|
|
52
|
-
}
|
|
53
|
-
type Proto = ExecuteProposal_pb;
|
|
54
|
-
}
|