@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,105 +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.ExecuteProposal = 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
|
-
* ExecuteProposal gov proposal content type to execute entry function to the system
|
|
24
|
-
*/
|
|
25
|
-
var ExecuteProposal = /** @class */ (function (_super) {
|
|
26
|
-
__extends(ExecuteProposal, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param title a short summary
|
|
29
|
-
* @param description a human readable text
|
|
30
|
-
* @param module_name a move module name
|
|
31
|
-
* @param function_name a move function name
|
|
32
|
-
* @param type_args move function type args
|
|
33
|
-
* @param args move function args
|
|
34
|
-
*/
|
|
35
|
-
function ExecuteProposal(title, description, module_name, function_name, type_args, args) {
|
|
36
|
-
var _this = _super.call(this) || this;
|
|
37
|
-
_this.title = title;
|
|
38
|
-
_this.description = description;
|
|
39
|
-
_this.module_name = module_name;
|
|
40
|
-
_this.function_name = function_name;
|
|
41
|
-
_this.type_args = type_args;
|
|
42
|
-
_this.args = args;
|
|
43
|
-
return _this;
|
|
44
|
-
}
|
|
45
|
-
ExecuteProposal.fromAmino = function (data) {
|
|
46
|
-
var _a = data.value, title = _a.title, description = _a.description, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
47
|
-
return new ExecuteProposal(title, description, module_name, function_name, type_args, args);
|
|
48
|
-
};
|
|
49
|
-
ExecuteProposal.prototype.toAmino = function () {
|
|
50
|
-
var _a = this, title = _a.title, description = _a.description, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
51
|
-
return {
|
|
52
|
-
type: 'move/ExecuteProposal',
|
|
53
|
-
value: {
|
|
54
|
-
title: title,
|
|
55
|
-
description: description,
|
|
56
|
-
module_name: module_name,
|
|
57
|
-
function_name: function_name,
|
|
58
|
-
type_args: type_args,
|
|
59
|
-
args: args,
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
ExecuteProposal.fromData = function (data) {
|
|
64
|
-
var title = data.title, description = data.description, module_name = data.module_name, function_name = data.function_name, type_args = data.type_args, args = data.args;
|
|
65
|
-
return new ExecuteProposal(title, description, module_name, function_name, type_args, args);
|
|
66
|
-
};
|
|
67
|
-
ExecuteProposal.prototype.toData = function () {
|
|
68
|
-
var _a = this, title = _a.title, description = _a.description, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
69
|
-
return {
|
|
70
|
-
'@type': '/initia.move.v1.ExecuteProposal',
|
|
71
|
-
title: title,
|
|
72
|
-
description: description,
|
|
73
|
-
module_name: module_name,
|
|
74
|
-
function_name: function_name,
|
|
75
|
-
type_args: type_args,
|
|
76
|
-
args: args,
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
ExecuteProposal.fromProto = function (proto) {
|
|
80
|
-
return new ExecuteProposal(proto.title, proto.description, proto.moduleName, proto.functionName, proto.typeArgs, proto.args.map(function (arg) { return Buffer.from(arg).toString('base64'); }));
|
|
81
|
-
};
|
|
82
|
-
ExecuteProposal.prototype.toProto = function () {
|
|
83
|
-
var _a = this, title = _a.title, description = _a.description, module_name = _a.module_name, function_name = _a.function_name, type_args = _a.type_args, args = _a.args;
|
|
84
|
-
return proposal_1.ExecuteProposal.fromPartial({
|
|
85
|
-
title: title,
|
|
86
|
-
description: description,
|
|
87
|
-
moduleName: module_name,
|
|
88
|
-
functionName: function_name,
|
|
89
|
-
typeArgs: type_args,
|
|
90
|
-
args: args.map(function (arg) { return Buffer.from(arg, 'base64'); }),
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
ExecuteProposal.prototype.packAny = function () {
|
|
94
|
-
return any_1.Any.fromPartial({
|
|
95
|
-
typeUrl: '/initia.move.v1.ExecuteProposal',
|
|
96
|
-
value: proposal_1.ExecuteProposal.encode(this.toProto()).finish(),
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
ExecuteProposal.unpackAny = function (msgAny) {
|
|
100
|
-
return ExecuteProposal.fromProto(proposal_1.ExecuteProposal.decode(msgAny.value));
|
|
101
|
-
};
|
|
102
|
-
return ExecuteProposal;
|
|
103
|
-
}(json_1.JSONSerializable));
|
|
104
|
-
exports.ExecuteProposal = ExecuteProposal;
|
|
105
|
-
//# sourceMappingURL=ExecuteProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/ExecuteProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,0EAAsG;AAEtG;;GAEG;AACH;IAAqC,mCAIpC;IACC;;;;;;;OAOG;IACH,yBACS,KAAa,EACb,WAAmB,EACnB,WAAmB,EACnB,aAAqB,EACrB,SAAmB,EACnB,IAAc;QANvB,YAQE,iBAAO,SACR;QARQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,iBAAW,GAAX,WAAW,CAAQ;QACnB,mBAAa,GAAb,aAAa,CAAQ;QACrB,eAAS,GAAT,SAAS,CAAU;QACnB,UAAI,GAAJ,IAAI,CAAU;;IAGvB,CAAC;IAEa,yBAAS,GAAvB,UACE,IAA2B;QAGzB,IAAA,KAQE,IAAI,MADL,EANC,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,SAAS,eAAA,EACT,IAAI,UACL,CACM;QACT,OAAO,IAAI,eAAe,CACxB,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;IAEM,iCAAO,GAAd;QACQ,IAAA,KACJ,IAAI,EADE,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,WAAW,iBAAA,EAAE,aAAa,mBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UACjE,CAAC;QACP,OAAO;YACL,IAAI,EAAE,sBAAsB;YAC5B,KAAK,EAAE;gBACL,KAAK,OAAA;gBACL,WAAW,aAAA;gBACX,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AE,SAAS,eAAA,EAAE,IAAI,UACjE,CAAC;QACP,OAAO,0BAAkB,CAAC,WAAW,CAAC;YACpC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,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,iCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,iCAAiC;YAC1C,KAAK,EAAE,0BAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC1D,CAAC,CAAC;IACL,CAAC;IAEa,yBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,eAAe,CAAC,SAAS,CAC9B,0BAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACxC,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AAlID,CAAqC,uBAAgB,GAkIpD;AAlIY,0CAAe"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { ExecuteOperation } from './ExecuteOperation';
|
|
4
|
-
import { PublishOperation } from './PublishOperation';
|
|
5
|
-
import { OperationsProposal as OperationsProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
6
|
-
/**
|
|
7
|
-
* OperationsProposal proposal which supports submitting arbitrary move operations
|
|
8
|
-
*/
|
|
9
|
-
export declare class OperationsProposal extends JSONSerializable<OperationsProposal.Amino, OperationsProposal.Data, OperationsProposal.Proto> {
|
|
10
|
-
title: string;
|
|
11
|
-
description: string;
|
|
12
|
-
operations: OperationsProposal.Operation[];
|
|
13
|
-
/**
|
|
14
|
-
* @param title a short summary
|
|
15
|
-
* @param description a human readable text
|
|
16
|
-
* @param operations arbitrary move operations
|
|
17
|
-
*/
|
|
18
|
-
constructor(title: string, description: string, operations: OperationsProposal.Operation[]);
|
|
19
|
-
static fromAmino(data: OperationsProposal.Amino): OperationsProposal;
|
|
20
|
-
toAmino(): OperationsProposal.Amino;
|
|
21
|
-
static fromData(data: OperationsProposal.Data): OperationsProposal;
|
|
22
|
-
toData(): OperationsProposal.Data;
|
|
23
|
-
static fromProto(proto: OperationsProposal.Proto): OperationsProposal;
|
|
24
|
-
toProto(): OperationsProposal.Proto;
|
|
25
|
-
packAny(): Any;
|
|
26
|
-
static unpackAny(msgAny: Any): OperationsProposal;
|
|
27
|
-
}
|
|
28
|
-
export declare namespace OperationsProposal {
|
|
29
|
-
type Operation = ExecuteOperation | PublishOperation;
|
|
30
|
-
namespace Operation {
|
|
31
|
-
type Amino = ExecuteOperation.Amino | PublishOperation.Amino;
|
|
32
|
-
type Data = ExecuteOperation.Data | PublishOperation.Data;
|
|
33
|
-
type Proto = ExecuteOperation.Proto | PublishOperation.Proto;
|
|
34
|
-
function fromAmino(amino: OperationsProposal.Operation.Amino): OperationsProposal.Operation;
|
|
35
|
-
function fromData(data: OperationsProposal.Operation.Data): OperationsProposal.Operation;
|
|
36
|
-
function fromProto(anyProto: Any): OperationsProposal.Operation;
|
|
37
|
-
}
|
|
38
|
-
interface Amino {
|
|
39
|
-
type: 'move/OperationsProposal';
|
|
40
|
-
value: {
|
|
41
|
-
title: string;
|
|
42
|
-
description: string;
|
|
43
|
-
operations: {
|
|
44
|
-
operation: Operation.Amino;
|
|
45
|
-
}[];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface Data {
|
|
49
|
-
'@type': '/initia.move.v1.OperationsProposal';
|
|
50
|
-
title: string;
|
|
51
|
-
description: string;
|
|
52
|
-
operations: {
|
|
53
|
-
operation: Operation.Data;
|
|
54
|
-
}[];
|
|
55
|
-
}
|
|
56
|
-
type Proto = OperationsProposal_pb;
|
|
57
|
-
}
|
|
@@ -1,129 +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.OperationsProposal = void 0;
|
|
19
|
-
var json_1 = require("../../../util/json");
|
|
20
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
-
var ExecuteOperation_1 = require("./ExecuteOperation");
|
|
22
|
-
var PublishOperation_1 = require("./PublishOperation");
|
|
23
|
-
var proposal_1 = require("@initia/initia.proto/initia/move//v1/proposal");
|
|
24
|
-
/**
|
|
25
|
-
* OperationsProposal proposal which supports submitting arbitrary move operations
|
|
26
|
-
*/
|
|
27
|
-
var OperationsProposal = /** @class */ (function (_super) {
|
|
28
|
-
__extends(OperationsProposal, _super);
|
|
29
|
-
/**
|
|
30
|
-
* @param title a short summary
|
|
31
|
-
* @param description a human readable text
|
|
32
|
-
* @param operations arbitrary move operations
|
|
33
|
-
*/
|
|
34
|
-
function OperationsProposal(title, description, operations) {
|
|
35
|
-
var _this = _super.call(this) || this;
|
|
36
|
-
_this.title = title;
|
|
37
|
-
_this.description = description;
|
|
38
|
-
_this.operations = operations;
|
|
39
|
-
return _this;
|
|
40
|
-
}
|
|
41
|
-
OperationsProposal.fromAmino = function (data) {
|
|
42
|
-
var _a = data.value, title = _a.title, description = _a.description, operations = _a.operations;
|
|
43
|
-
return new OperationsProposal(title, description, operations.map(function (op) { return OperationsProposal.Operation.fromAmino(op.operation); }));
|
|
44
|
-
};
|
|
45
|
-
OperationsProposal.prototype.toAmino = function () {
|
|
46
|
-
var _a = this, title = _a.title, description = _a.description, operations = _a.operations;
|
|
47
|
-
return {
|
|
48
|
-
type: 'move/OperationsProposal',
|
|
49
|
-
value: {
|
|
50
|
-
title: title,
|
|
51
|
-
description: description,
|
|
52
|
-
operations: operations.map(function (op) { return ({ operation: op.toAmino() }); }),
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
OperationsProposal.fromData = function (data) {
|
|
57
|
-
var title = data.title, description = data.description, operations = data.operations;
|
|
58
|
-
return new OperationsProposal(title, description, operations.map(function (op) { return OperationsProposal.Operation.fromData(op.operation); }));
|
|
59
|
-
};
|
|
60
|
-
OperationsProposal.prototype.toData = function () {
|
|
61
|
-
var _a = this, title = _a.title, description = _a.description, operations = _a.operations;
|
|
62
|
-
return {
|
|
63
|
-
'@type': '/initia.move.v1.OperationsProposal',
|
|
64
|
-
title: title,
|
|
65
|
-
description: description,
|
|
66
|
-
operations: operations.map(function (op) { return ({ operation: op.toData() }); }),
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
OperationsProposal.fromProto = function (proto) {
|
|
70
|
-
return new OperationsProposal(proto.title, proto.description, proto.operations.map(function (op) {
|
|
71
|
-
return OperationsProposal.Operation.fromProto(op.operation);
|
|
72
|
-
}));
|
|
73
|
-
};
|
|
74
|
-
OperationsProposal.prototype.toProto = function () {
|
|
75
|
-
var _a = this, title = _a.title, description = _a.description, operations = _a.operations;
|
|
76
|
-
return proposal_1.OperationsProposal.fromPartial({
|
|
77
|
-
title: title,
|
|
78
|
-
description: description,
|
|
79
|
-
operations: operations.map(function (op) { return ({ operation: op.packAny() }); }),
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
OperationsProposal.prototype.packAny = function () {
|
|
83
|
-
return any_1.Any.fromPartial({
|
|
84
|
-
typeUrl: '/initia.move.v1.OperationsProposal',
|
|
85
|
-
value: proposal_1.OperationsProposal.encode(this.toProto()).finish(),
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
OperationsProposal.unpackAny = function (msgAny) {
|
|
89
|
-
return OperationsProposal.fromProto(proposal_1.OperationsProposal.decode(msgAny.value));
|
|
90
|
-
};
|
|
91
|
-
return OperationsProposal;
|
|
92
|
-
}(json_1.JSONSerializable));
|
|
93
|
-
exports.OperationsProposal = OperationsProposal;
|
|
94
|
-
(function (OperationsProposal) {
|
|
95
|
-
var Operation;
|
|
96
|
-
(function (Operation) {
|
|
97
|
-
function fromAmino(amino) {
|
|
98
|
-
switch (amino.type) {
|
|
99
|
-
case 'move/ExecuteOperation':
|
|
100
|
-
return ExecuteOperation_1.ExecuteOperation.fromAmino(amino);
|
|
101
|
-
case 'move/PublishOperation':
|
|
102
|
-
return PublishOperation_1.PublishOperation.fromAmino(amino);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
Operation.fromAmino = fromAmino;
|
|
106
|
-
function fromData(data) {
|
|
107
|
-
switch (data['@type']) {
|
|
108
|
-
case '/initia.move.v1.ExecuteOperation':
|
|
109
|
-
return ExecuteOperation_1.ExecuteOperation.fromData(data);
|
|
110
|
-
case '/initia.move.v1.PublishOperation':
|
|
111
|
-
return PublishOperation_1.PublishOperation.fromData(data);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
Operation.fromData = fromData;
|
|
115
|
-
function fromProto(anyProto) {
|
|
116
|
-
var typeUrl = anyProto.typeUrl;
|
|
117
|
-
switch (typeUrl) {
|
|
118
|
-
case '/initia.move.v1.ExecuteOperation':
|
|
119
|
-
return ExecuteOperation_1.ExecuteOperation.unpackAny(anyProto);
|
|
120
|
-
case '/initia.move.v1.PublishOperation':
|
|
121
|
-
return PublishOperation_1.PublishOperation.unpackAny(anyProto);
|
|
122
|
-
}
|
|
123
|
-
throw "Operation content ".concat(typeUrl, " not recognized");
|
|
124
|
-
}
|
|
125
|
-
Operation.fromProto = fromProto;
|
|
126
|
-
})(Operation = OperationsProposal.Operation || (OperationsProposal.Operation = {}));
|
|
127
|
-
})(OperationsProposal = exports.OperationsProposal || (exports.OperationsProposal = {}));
|
|
128
|
-
exports.OperationsProposal = OperationsProposal;
|
|
129
|
-
//# sourceMappingURL=OperationsProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/OperationsProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,uDAAsD;AACtD,uDAAsD;AACtD,0EAA4G;AAE5G;;GAEG;AACH;IAAwC,sCAIvC;IACC;;;;OAIG;IACH,4BACS,KAAa,EACb,WAAmB,EACnB,UAA0C;QAHnD,YAKE,iBAAO,SACR;QALQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,gBAAU,GAAV,UAAU,CAAgC;;IAGnD,CAAC;IAEa,4BAAS,GAAvB,UAAwB,IAA8B;QAElD,IAAA,KACE,IAAI,MADmC,EAAhC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,UAAU,gBAAE,CAClC;QACT,OAAO,IAAI,kBAAkB,CAC3B,KAAK,EACL,WAAW,EACX,UAAU,CAAC,GAAG,CAAC,UAAA,EAAE,IAAI,OAAA,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,EAApD,CAAoD,CAAC,CAC3E,CAAC;IACJ,CAAC;IAEM,oCAAO,GAAd;QACQ,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xB,CAAA;QAED,SAAgB,QAAQ,CACtB,IAAuC;YAEvC,QAAQ,IAAI,CAAC,OAAO,CAAC,EAAE;gBACrB,KAAK,kCAAkC;oBACrC,OAAO,mCAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACzC,KAAK,kCAAkC;oBACrC,OAAO,mCAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;aAC1C;QACH,CAAC;QATe,kBAAQ,WASvB,CAAA;QAED,SAAgB,SAAS,CAAC,QAAa;YACrC,IAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;YACjC,QAAQ,OAAO,EAAE;gBACf,KAAK,kCAAkC;oBACrC,OAAO,mCAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAC9C,KAAK,kCAAkC;oBACrC,OAAO,mCAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC/C;YAED,MAAM,4BAAqB,OAAO,oBAAiB,CAAC;QACtD,CAAC;QAVe,mBAAS,YAUxB,CAAA;IACH,CAAC,EAxCgB,SAAS,GAAT,4BAAS,KAAT,4BAAS,QAwCzB;AAmBH,CAAC,EA9DgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QA8DlC;AA3JY,gDAAkB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { PublishOperation as PublishOperation_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* PublishOperation gov proposal operation type to submit stdlib module to the system
|
|
6
|
-
*/
|
|
7
|
-
export declare class PublishOperation extends JSONSerializable<PublishOperation.Amino, PublishOperation.Data, PublishOperation.Proto> {
|
|
8
|
-
code_bytes: string;
|
|
9
|
-
/**
|
|
10
|
-
* @param code_bytes raw move module bytes code
|
|
11
|
-
*/
|
|
12
|
-
constructor(code_bytes: string);
|
|
13
|
-
static fromAmino(data: PublishOperation.Amino): PublishOperation;
|
|
14
|
-
toAmino(): PublishOperation.Amino;
|
|
15
|
-
static fromData(data: PublishOperation.Data): PublishOperation;
|
|
16
|
-
toData(): PublishOperation.Data;
|
|
17
|
-
static fromProto(proto: PublishOperation.Proto): PublishOperation;
|
|
18
|
-
toProto(): PublishOperation.Proto;
|
|
19
|
-
packAny(): Any;
|
|
20
|
-
static unpackAny(msgAny: Any): PublishOperation;
|
|
21
|
-
}
|
|
22
|
-
export declare namespace PublishOperation {
|
|
23
|
-
interface Amino {
|
|
24
|
-
type: 'move/PublishOperation';
|
|
25
|
-
value: {
|
|
26
|
-
code_bytes: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
interface Data {
|
|
30
|
-
'@type': '/initia.move.v1.PublishOperation';
|
|
31
|
-
code_bytes: string;
|
|
32
|
-
}
|
|
33
|
-
type Proto = PublishOperation_pb;
|
|
34
|
-
}
|
|
@@ -1,76 +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.PublishOperation = 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
|
-
* PublishOperation gov proposal operation type to submit stdlib module to the system
|
|
24
|
-
*/
|
|
25
|
-
var PublishOperation = /** @class */ (function (_super) {
|
|
26
|
-
__extends(PublishOperation, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param code_bytes raw move module bytes code
|
|
29
|
-
*/
|
|
30
|
-
function PublishOperation(code_bytes) {
|
|
31
|
-
var _this = _super.call(this) || this;
|
|
32
|
-
_this.code_bytes = code_bytes;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
PublishOperation.fromAmino = function (data) {
|
|
36
|
-
return new PublishOperation(data.value.code_bytes);
|
|
37
|
-
};
|
|
38
|
-
PublishOperation.prototype.toAmino = function () {
|
|
39
|
-
var code_bytes = this.code_bytes;
|
|
40
|
-
return {
|
|
41
|
-
type: 'move/PublishOperation',
|
|
42
|
-
value: { code_bytes: code_bytes },
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
PublishOperation.fromData = function (data) {
|
|
46
|
-
return new PublishOperation(data.code_bytes);
|
|
47
|
-
};
|
|
48
|
-
PublishOperation.prototype.toData = function () {
|
|
49
|
-
var code_bytes = this.code_bytes;
|
|
50
|
-
return {
|
|
51
|
-
'@type': '/initia.move.v1.PublishOperation',
|
|
52
|
-
code_bytes: code_bytes,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
PublishOperation.fromProto = function (proto) {
|
|
56
|
-
return new PublishOperation(Buffer.from(proto.codeBytes).toString('base64'));
|
|
57
|
-
};
|
|
58
|
-
PublishOperation.prototype.toProto = function () {
|
|
59
|
-
var code_bytes = this.code_bytes;
|
|
60
|
-
return proposal_1.PublishOperation.fromPartial({
|
|
61
|
-
codeBytes: Buffer.from(code_bytes, 'base64'),
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
PublishOperation.prototype.packAny = function () {
|
|
65
|
-
return any_1.Any.fromPartial({
|
|
66
|
-
typeUrl: '/initia.move.v1.PublishOperation',
|
|
67
|
-
value: proposal_1.PublishOperation.encode(this.toProto()).finish(),
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
PublishOperation.unpackAny = function (msgAny) {
|
|
71
|
-
return PublishOperation.fromProto(proposal_1.PublishOperation.decode(msgAny.value));
|
|
72
|
-
};
|
|
73
|
-
return PublishOperation;
|
|
74
|
-
}(json_1.JSONSerializable));
|
|
75
|
-
exports.PublishOperation = PublishOperation;
|
|
76
|
-
//# sourceMappingURL=PublishOperation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublishOperation.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/PublishOperation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,0EAAwG;AAExG;;GAEG;AACH;IAAsC,oCAIrC;IACC;;OAEG;IACH,0BAAmB,UAAkB;QAArC,YACE,iBAAO,SACR;QAFkB,gBAAU,GAAV,UAAU,CAAQ;;IAErC,CAAC;IAEa,0BAAS,GAAvB,UAAwB,IAA4B;QAClD,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAEM,kCAAO,GAAd;QACU,IAAA,UAAU,GAAK,IAAI,WAAT,CAAU;QAC5B,OAAO;YACL,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,EAAE,UAAU,YAAA,EAAE;SACtB,CAAC;IACJ,CAAC;IAEa,yBAAQ,GAAtB,UAAuB,IAA2B;QAChD,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC/C,CAAC;IAEM,iCAAM,GAAb;QACU,IAAA,UAAU,GAAK,IAAI,WAAT,CAAU;QAC5B,OAAO;YACL,OAAO,EAAE,kCAAkC;YAC3C,UAAU,YAAA;SACX,CAAC;IACJ,CAAC;IAEa,0BAAS,GAAvB,UAAwB,KAA6B;QACnD,OAAO,IAAI,gBAAgB,CACzB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAChD,CAAC;IACJ,CAAC;IAEM,kCAAO,GAAd;QACU,IAAA,UAAU,GAAK,IAAI,WAAT,CAAU;QAC5B,OAAO,2BAAmB,CAAC,WAAW,CAAC;YACrC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC;SAC7C,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,AA3DD,CAAsC,uBAAgB,GA2DrD;AA3DY,4CAAgB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { PublishProposal as PublishProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* PublishProposal gov proposal content type to submit MOVE code to the system
|
|
6
|
-
*/
|
|
7
|
-
export declare class PublishProposal extends JSONSerializable<PublishProposal.Amino, PublishProposal.Data, PublishProposal.Proto> {
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
code_bytes: string;
|
|
11
|
-
/**
|
|
12
|
-
* @param title a short summary
|
|
13
|
-
* @param description a human readable text
|
|
14
|
-
* @param code_bytes can be raw or gzip compressed
|
|
15
|
-
*/
|
|
16
|
-
constructor(title: string, description: string, code_bytes: string);
|
|
17
|
-
static fromAmino(data: PublishProposal.Amino): PublishProposal;
|
|
18
|
-
toAmino(): PublishProposal.Amino;
|
|
19
|
-
static fromData(data: PublishProposal.Data): PublishProposal;
|
|
20
|
-
toData(): PublishProposal.Data;
|
|
21
|
-
static fromProto(proto: PublishProposal.Proto): PublishProposal;
|
|
22
|
-
toProto(): PublishProposal.Proto;
|
|
23
|
-
packAny(): Any;
|
|
24
|
-
static unpackAny(msgAny: Any): PublishProposal;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace PublishProposal {
|
|
27
|
-
interface Amino {
|
|
28
|
-
type: 'move/PublishProposal';
|
|
29
|
-
value: {
|
|
30
|
-
title: string;
|
|
31
|
-
description: string;
|
|
32
|
-
code_bytes: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
interface Data {
|
|
36
|
-
'@type': '/initia.move.v1.PublishProposal';
|
|
37
|
-
title: string;
|
|
38
|
-
description: string;
|
|
39
|
-
code_bytes: string;
|
|
40
|
-
}
|
|
41
|
-
type Proto = PublishProposal_pb;
|
|
42
|
-
}
|
|
@@ -1,90 +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.PublishProposal = 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
|
-
* PublishProposal gov proposal content type to submit MOVE code to the system
|
|
24
|
-
*/
|
|
25
|
-
var PublishProposal = /** @class */ (function (_super) {
|
|
26
|
-
__extends(PublishProposal, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param title a short summary
|
|
29
|
-
* @param description a human readable text
|
|
30
|
-
* @param code_bytes can be raw or gzip compressed
|
|
31
|
-
*/
|
|
32
|
-
function PublishProposal(title, description, code_bytes) {
|
|
33
|
-
var _this = _super.call(this) || this;
|
|
34
|
-
_this.title = title;
|
|
35
|
-
_this.description = description;
|
|
36
|
-
_this.code_bytes = code_bytes;
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
PublishProposal.fromAmino = function (data) {
|
|
40
|
-
var _a = data.value, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
|
|
41
|
-
return new PublishProposal(title, description, code_bytes);
|
|
42
|
-
};
|
|
43
|
-
PublishProposal.prototype.toAmino = function () {
|
|
44
|
-
var _a = this, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
|
|
45
|
-
return {
|
|
46
|
-
type: 'move/PublishProposal',
|
|
47
|
-
value: {
|
|
48
|
-
title: title,
|
|
49
|
-
description: description,
|
|
50
|
-
code_bytes: code_bytes,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
PublishProposal.fromData = function (data) {
|
|
55
|
-
var title = data.title, description = data.description, code_bytes = data.code_bytes;
|
|
56
|
-
return new PublishProposal(title, description, code_bytes);
|
|
57
|
-
};
|
|
58
|
-
PublishProposal.prototype.toData = function () {
|
|
59
|
-
var _a = this, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
|
|
60
|
-
return {
|
|
61
|
-
'@type': '/initia.move.v1.PublishProposal',
|
|
62
|
-
title: title,
|
|
63
|
-
description: description,
|
|
64
|
-
code_bytes: code_bytes,
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
PublishProposal.fromProto = function (proto) {
|
|
68
|
-
return new PublishProposal(proto.title, proto.description, Buffer.from(proto.codeBytes).toString('base64'));
|
|
69
|
-
};
|
|
70
|
-
PublishProposal.prototype.toProto = function () {
|
|
71
|
-
var _a = this, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
|
|
72
|
-
return proposal_1.PublishProposal.fromPartial({
|
|
73
|
-
title: title,
|
|
74
|
-
description: description,
|
|
75
|
-
codeBytes: Buffer.from(code_bytes, 'base64'),
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
PublishProposal.prototype.packAny = function () {
|
|
79
|
-
return any_1.Any.fromPartial({
|
|
80
|
-
typeUrl: '/initia.move.v1.PublishProposal',
|
|
81
|
-
value: proposal_1.PublishProposal.encode(this.toProto()).finish(),
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
PublishProposal.unpackAny = function (msgAny) {
|
|
85
|
-
return PublishProposal.fromProto(proposal_1.PublishProposal.decode(msgAny.value));
|
|
86
|
-
};
|
|
87
|
-
return PublishProposal;
|
|
88
|
-
}(json_1.JSONSerializable));
|
|
89
|
-
exports.PublishProposal = PublishProposal;
|
|
90
|
-
//# sourceMappingURL=PublishProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublishProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/PublishProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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CACxB,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,WAAW,EACjB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAChD,CAAC;IACJ,CAAC;IAEM,iCAAO,GAAd;QACQ,IAAA,KAAqC,IAAI,EAAvC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,UAAU,gBAAS,CAAC;QAChD,OAAO,0BAAkB,CAAC,WAAW,CAAC;YACpC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IAEM,iCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,iCAAiC;YAC1C,KAAK,EAAE,0BAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC1D,CAAC,CAAC;IACL,CAAC;IAEa,yBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,eAAe,CAAC,SAAS,CAC9B,0BAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACxC,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AAvFD,CAAqC,uBAAgB,GAuFpD;AAvFY,0CAAe"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { WhitelistProposal as WhitelistProposal_pb } from '@initia/initia.proto/initia/move/v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* WhitelistProposal proposal which supports whitelisting dex pairs
|
|
6
|
-
*/
|
|
7
|
-
export declare class WhitelistProposal extends JSONSerializable<WhitelistProposal.Amino, WhitelistProposal.Data, WhitelistProposal.Proto> {
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
coin_a: string;
|
|
11
|
-
coin_b: string;
|
|
12
|
-
coin_lp: string;
|
|
13
|
-
reward_weight: string;
|
|
14
|
-
/**
|
|
15
|
-
* @param title a short summary
|
|
16
|
-
* @param description a human readable text
|
|
17
|
-
* @param coin_a coin A struct tag
|
|
18
|
-
* @param coin_b coin B struct tag
|
|
19
|
-
* @param coin_lp coin LP struct tag
|
|
20
|
-
* @param reward_weight reward weight
|
|
21
|
-
*/
|
|
22
|
-
constructor(title: string, description: string, coin_a: string, coin_b: string, coin_lp: string, reward_weight: string);
|
|
23
|
-
static fromAmino(data: WhitelistProposal.Amino): WhitelistProposal;
|
|
24
|
-
toAmino(): WhitelistProposal.Amino;
|
|
25
|
-
static fromData(data: WhitelistProposal.Data): WhitelistProposal;
|
|
26
|
-
toData(): WhitelistProposal.Data;
|
|
27
|
-
static fromProto(proto: WhitelistProposal.Proto): WhitelistProposal;
|
|
28
|
-
toProto(): WhitelistProposal.Proto;
|
|
29
|
-
packAny(): Any;
|
|
30
|
-
static unpackAny(msgAny: Any): WhitelistProposal;
|
|
31
|
-
}
|
|
32
|
-
export declare namespace WhitelistProposal {
|
|
33
|
-
interface Amino {
|
|
34
|
-
type: 'move/WhitelistProposal';
|
|
35
|
-
value: {
|
|
36
|
-
title: string;
|
|
37
|
-
description: string;
|
|
38
|
-
coin_a: string;
|
|
39
|
-
coin_b: string;
|
|
40
|
-
coin_lp: string;
|
|
41
|
-
reward_weight: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
interface Data {
|
|
45
|
-
'@type': '/initia.move.v1.WhitelistProposal';
|
|
46
|
-
title: string;
|
|
47
|
-
description: string;
|
|
48
|
-
coin_a: string;
|
|
49
|
-
coin_b: string;
|
|
50
|
-
coin_lp: string;
|
|
51
|
-
reward_weight: string;
|
|
52
|
-
}
|
|
53
|
-
type Proto = WhitelistProposal_pb;
|
|
54
|
-
}
|