@initia/initia.js 0.0.26 → 0.0.28
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/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.node.js +1 -1
- package/dist/bundle.node.js.map +1 -1
- package/dist/client/lcd/api/MoveAPI.d.ts +8 -2
- package/dist/client/lcd/api/MoveAPI.js.map +1 -1
- package/dist/core/Msg.js +18 -18
- package/dist/core/Msg.js.map +1 -1
- package/dist/core/bech32.js +2 -1
- package/dist/core/bech32.js.map +1 -1
- package/dist/core/gov/Proposal.d.ts +5 -5
- package/dist/core/gov/Proposal.js +12 -12
- package/dist/core/gov/Proposal.js.map +1 -1
- package/dist/core/move/msgs/{MsgExecuteEntryFunction.d.ts → MsgExecute.d.ts} +16 -16
- package/dist/core/move/msgs/{MsgExecuteEntryFunction.js → MsgExecute.js} +28 -28
- package/dist/core/move/msgs/MsgExecute.js.map +1 -0
- package/dist/core/move/msgs/MsgPublish.d.ts +36 -0
- package/dist/core/move/msgs/{MsgPublishModuleBundle.js → MsgPublish.js} +24 -24
- package/dist/core/move/msgs/MsgPublish.js.map +1 -0
- package/dist/core/move/msgs/{MsgExecuteScript.d.ts → MsgScript.d.ts} +17 -17
- package/dist/core/move/msgs/{MsgExecuteScript.js → MsgScript.js} +29 -29
- package/dist/core/move/msgs/MsgScript.js.map +1 -0
- package/dist/core/move/msgs/index.d.ts +10 -10
- package/dist/core/move/msgs/index.js +3 -3
- package/dist/core/move/msgs/index.js.map +1 -1
- package/dist/core/move/proposals/{EntryFunctionProposal.d.ts → ExecuteProposal.d.ts} +14 -14
- package/dist/core/move/proposals/{EntryFunctionProposal.js → ExecuteProposal.js} +25 -25
- package/dist/core/move/proposals/ExecuteProposal.js.map +1 -0
- package/dist/core/move/proposals/PublishProposal.d.ts +42 -0
- package/dist/core/move/proposals/{PublishStdModuleProposal.js → PublishProposal.js} +25 -25
- package/dist/core/move/proposals/PublishProposal.js.map +1 -0
- package/dist/core/move/proposals/index.d.ts +2 -2
- package/dist/core/move/proposals/index.js +2 -2
- package/dist/core/move/proposals/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/core/move/MoveCoin.d.ts +0 -28
- package/dist/core/move/MoveCoin.js +0 -67
- package/dist/core/move/MoveCoin.js.map +0 -1
- package/dist/core/move/msgs/MsgConvertMoveCoin.d.ts +0 -37
- package/dist/core/move/msgs/MsgConvertMoveCoin.js +0 -83
- package/dist/core/move/msgs/MsgConvertMoveCoin.js.map +0 -1
- package/dist/core/move/msgs/MsgConvertNativeCoin.d.ts +0 -37
- package/dist/core/move/msgs/MsgConvertNativeCoin.js +0 -83
- package/dist/core/move/msgs/MsgConvertNativeCoin.js.map +0 -1
- package/dist/core/move/msgs/MsgExecuteEntryFunction.js.map +0 -1
- package/dist/core/move/msgs/MsgExecuteScript.js.map +0 -1
- package/dist/core/move/msgs/MsgPublishModuleBundle.d.ts +0 -36
- package/dist/core/move/msgs/MsgPublishModuleBundle.js.map +0 -1
- package/dist/core/move/proposals/EntryFunctionProposal.js.map +0 -1
- package/dist/core/move/proposals/ExecuteEntryFunctionProposal.d.ts +0 -54
- package/dist/core/move/proposals/ExecuteEntryFunctionProposal.js +0 -105
- package/dist/core/move/proposals/ExecuteEntryFunctionProposal.js.map +0 -1
- package/dist/core/move/proposals/PublishStdModuleProposal.d.ts +0 -42
- package/dist/core/move/proposals/PublishStdModuleProposal.js.map +0 -1
- package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.d.ts +0 -46
- package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js +0 -98
- package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js.map +0 -1
- package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.d.ts +0 -35
- package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js +0 -75
- package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js.map +0 -1
- package/dist/util/address.d.ts +0 -2
- package/dist/util/address.js +0 -16
- package/dist/util/address.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.ExecuteEntryFunctionProposal = 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
|
-
* ExecuteEntryFunctionProposal gov proposal content type to execute entry function to the system
|
|
24
|
-
*/
|
|
25
|
-
var ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
|
|
26
|
-
__extends(ExecuteEntryFunctionProposal, _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 ExecuteEntryFunctionProposal(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
|
-
ExecuteEntryFunctionProposal.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 ExecuteEntryFunctionProposal(title, description, module_name, function_name, type_args, args);
|
|
48
|
-
};
|
|
49
|
-
ExecuteEntryFunctionProposal.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/ExecuteEntryFunctionProposal',
|
|
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
|
-
ExecuteEntryFunctionProposal.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 ExecuteEntryFunctionProposal(title, description, module_name, function_name, type_args, args);
|
|
66
|
-
};
|
|
67
|
-
ExecuteEntryFunctionProposal.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.ExecuteEntryFunctionProposal',
|
|
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
|
-
ExecuteEntryFunctionProposal.fromProto = function (proto) {
|
|
80
|
-
return new ExecuteEntryFunctionProposal(proto.title, proto.description, proto.moduleName, proto.functionName, proto.typeArgs, proto.args.map(function (arg) { return Buffer.from(arg).toString('base64'); }));
|
|
81
|
-
};
|
|
82
|
-
ExecuteEntryFunctionProposal.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.ExecuteEntryFunctionProposal.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
|
-
ExecuteEntryFunctionProposal.prototype.packAny = function () {
|
|
94
|
-
return any_1.Any.fromPartial({
|
|
95
|
-
typeUrl: '/initia.move.v1.ExecuteEntryFunctionProposal',
|
|
96
|
-
value: proposal_1.ExecuteEntryFunctionProposal.encode(this.toProto()).finish(),
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
ExecuteEntryFunctionProposal.unpackAny = function (msgAny) {
|
|
100
|
-
return ExecuteEntryFunctionProposal.fromProto(proposal_1.ExecuteEntryFunctionProposal.decode(msgAny.value));
|
|
101
|
-
};
|
|
102
|
-
return ExecuteEntryFunctionProposal;
|
|
103
|
-
}(json_1.JSONSerializable));
|
|
104
|
-
exports.ExecuteEntryFunctionProposal = ExecuteEntryFunctionProposal;
|
|
105
|
-
//# sourceMappingURL=ExecuteEntryFunctionProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExecuteEntryFunctionProposal.js","sourceRoot":"","sources":["../../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,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,EAA1B,CAA0B,CAAC;SAClD,CAAC,CAAC;IACL,CAAC;IAEM,8CAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,8CAA8C;YACvD,KAAK,EAAE,uCAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACvE,CAAC,CAAC;IACL,CAAC;IAEa,sCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,4BAA4B,CAAC,SAAS,CAC3C,uCAA+B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACrD,CAAC;IACJ,CAAC;IACH,mCAAC;AAAD,CAAC,AAlID,CAAkD,uBAAgB,GAkIjE;AAlIY,oEAA4B"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { PublishStdModuleProposal as PublishStdModuleProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* PublishStdModuleProposal gov proposal content type to submit MOVE code to the system
|
|
6
|
-
*/
|
|
7
|
-
export declare class PublishStdModuleProposal extends JSONSerializable<PublishStdModuleProposal.Amino, PublishStdModuleProposal.Data, PublishStdModuleProposal.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: PublishStdModuleProposal.Amino): PublishStdModuleProposal;
|
|
18
|
-
toAmino(): PublishStdModuleProposal.Amino;
|
|
19
|
-
static fromData(data: PublishStdModuleProposal.Data): PublishStdModuleProposal;
|
|
20
|
-
toData(): PublishStdModuleProposal.Data;
|
|
21
|
-
static fromProto(proto: PublishStdModuleProposal.Proto): PublishStdModuleProposal;
|
|
22
|
-
toProto(): PublishStdModuleProposal.Proto;
|
|
23
|
-
packAny(): Any;
|
|
24
|
-
static unpackAny(msgAny: Any): PublishStdModuleProposal;
|
|
25
|
-
}
|
|
26
|
-
export declare namespace PublishStdModuleProposal {
|
|
27
|
-
interface Amino {
|
|
28
|
-
type: 'move/PublishStdModuleProposal';
|
|
29
|
-
value: {
|
|
30
|
-
title: string;
|
|
31
|
-
description: string;
|
|
32
|
-
code_bytes: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
interface Data {
|
|
36
|
-
'@type': '/initia.move.v1.PublishStdModuleProposal';
|
|
37
|
-
title: string;
|
|
38
|
-
description: string;
|
|
39
|
-
code_bytes: string;
|
|
40
|
-
}
|
|
41
|
-
type Proto = PublishStdModuleProposal_pb;
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublishStdModuleProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/PublishStdModuleProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,0EAAwH;AAExH;;GAEG;AACH;IAA8C,4CAI7C;IACC;;;;OAIG;IACH,kCACS,KAAa,EACb,WAAmB,EACnB,UAAkB;QAH3B,YAKE,iBAAO,SACR;QALQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,gBAAU,GAAV,UAAU,CAAQ;;IAG3B,CAAC;IAEa,kCAAS,GAAvB,UACE,IAAoC;QAGlC,IAAA,KACE,IAAI,MADmC,EAAhC,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,UAAU,gBAAE,CAClC;QACT,OAAO,IAAI,wBAAwB,C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AAC;IACL,CAAC;IAEM,0CAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,0CAA0C;YACnD,KAAK,EAAE,mCAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACnE,CAAC,CAAC;IACL,CAAC;IAEa,kCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,wBAAwB,CAAC,SAAS,CACvC,mCAA2B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACjD,CAAC;IACJ,CAAC;IACH,+BAAC;AAAD,CAAC,AAvFD,CAA8C,uBAAgB,GAuF7D;AAvFY,4DAAwB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Period } from '../Period';
|
|
2
|
-
import { JSONSerializable } from '../../../util/json';
|
|
3
|
-
import { AccAddress } from '../../bech32';
|
|
4
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
|
-
import { MsgCreatePeriodicVestingAccount as MsgCreatePeriodicVestingAccount_pb } from '@initia/initia.proto/cosmos/vesting/v1beta1/tx';
|
|
6
|
-
/**
|
|
7
|
-
* CreatePeriodicVestingAccount defines a method that enables creating a periodic vesting account.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MsgCreatePeriodicVestingAccount extends JSONSerializable<MsgCreatePeriodicVestingAccount.Amino, MsgCreatePeriodicVestingAccount.Data, MsgCreatePeriodicVestingAccount.Proto> {
|
|
10
|
-
from_address: AccAddress;
|
|
11
|
-
to_address: AccAddress;
|
|
12
|
-
start_time: number;
|
|
13
|
-
vesting_periods: Period[];
|
|
14
|
-
/**
|
|
15
|
-
* @param from_address sender's address
|
|
16
|
-
* @param to_address recipient's address
|
|
17
|
-
*/
|
|
18
|
-
constructor(from_address: AccAddress, to_address: AccAddress, start_time: number, vesting_periods: Period[]);
|
|
19
|
-
static fromAmino(data: MsgCreatePeriodicVestingAccount.Amino): MsgCreatePeriodicVestingAccount;
|
|
20
|
-
toAmino(): MsgCreatePeriodicVestingAccount.Amino;
|
|
21
|
-
static fromData(data: MsgCreatePeriodicVestingAccount.Data): MsgCreatePeriodicVestingAccount;
|
|
22
|
-
toData(): MsgCreatePeriodicVestingAccount.Data;
|
|
23
|
-
static fromProto(proto: MsgCreatePeriodicVestingAccount.Proto): MsgCreatePeriodicVestingAccount;
|
|
24
|
-
toProto(): MsgCreatePeriodicVestingAccount.Proto;
|
|
25
|
-
packAny(): Any;
|
|
26
|
-
static unpackAny(msgAny: Any): MsgCreatePeriodicVestingAccount;
|
|
27
|
-
}
|
|
28
|
-
export declare namespace MsgCreatePeriodicVestingAccount {
|
|
29
|
-
interface Amino {
|
|
30
|
-
type: 'cosmos-sdk/MsgCreatePeriodicVestingAccount';
|
|
31
|
-
value: {
|
|
32
|
-
from_address: AccAddress;
|
|
33
|
-
to_address: AccAddress;
|
|
34
|
-
start_time: string;
|
|
35
|
-
vesting_periods: Period.Amino[];
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
interface Data {
|
|
39
|
-
'@type': '/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount';
|
|
40
|
-
from_address: AccAddress;
|
|
41
|
-
to_address: AccAddress;
|
|
42
|
-
start_time: string;
|
|
43
|
-
vesting_periods: Period.Data[];
|
|
44
|
-
}
|
|
45
|
-
type Proto = MsgCreatePeriodicVestingAccount_pb;
|
|
46
|
-
}
|
|
@@ -1,98 +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.MsgCreatePeriodicVestingAccount = void 0;
|
|
22
|
-
var Period_1 = require("../Period");
|
|
23
|
-
var json_1 = require("../../../util/json");
|
|
24
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
25
|
-
var tx_1 = require("@initia/initia.proto/cosmos/vesting/v1beta1/tx");
|
|
26
|
-
var long_1 = __importDefault(require("long"));
|
|
27
|
-
/**
|
|
28
|
-
* CreatePeriodicVestingAccount defines a method that enables creating a periodic vesting account.
|
|
29
|
-
*/
|
|
30
|
-
var MsgCreatePeriodicVestingAccount = /** @class */ (function (_super) {
|
|
31
|
-
__extends(MsgCreatePeriodicVestingAccount, _super);
|
|
32
|
-
/**
|
|
33
|
-
* @param from_address sender's address
|
|
34
|
-
* @param to_address recipient's address
|
|
35
|
-
*/
|
|
36
|
-
function MsgCreatePeriodicVestingAccount(from_address, to_address, start_time, vesting_periods) {
|
|
37
|
-
var _this = _super.call(this) || this;
|
|
38
|
-
_this.from_address = from_address;
|
|
39
|
-
_this.to_address = to_address;
|
|
40
|
-
_this.start_time = start_time;
|
|
41
|
-
_this.vesting_periods = vesting_periods;
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
MsgCreatePeriodicVestingAccount.fromAmino = function (data) {
|
|
45
|
-
var _a = data.value, from_address = _a.from_address, to_address = _a.to_address, start_time = _a.start_time, vesting_periods = _a.vesting_periods;
|
|
46
|
-
return new MsgCreatePeriodicVestingAccount(from_address, to_address, Number.parseInt(start_time), vesting_periods.map(function (p) { return Period_1.Period.fromAmino(p); }));
|
|
47
|
-
};
|
|
48
|
-
MsgCreatePeriodicVestingAccount.prototype.toAmino = function () {
|
|
49
|
-
var _a = this, from_address = _a.from_address, to_address = _a.to_address, start_time = _a.start_time, vesting_periods = _a.vesting_periods;
|
|
50
|
-
return {
|
|
51
|
-
type: 'cosmos-sdk/MsgCreatePeriodicVestingAccount',
|
|
52
|
-
value: {
|
|
53
|
-
from_address: from_address,
|
|
54
|
-
to_address: to_address,
|
|
55
|
-
start_time: start_time.toFixed(),
|
|
56
|
-
vesting_periods: vesting_periods.map(function (p) { return p.toAmino(); }),
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
MsgCreatePeriodicVestingAccount.fromData = function (data) {
|
|
61
|
-
var from_address = data.from_address, to_address = data.to_address, start_time = data.start_time, vesting_periods = data.vesting_periods;
|
|
62
|
-
return new MsgCreatePeriodicVestingAccount(from_address, to_address, Number.parseInt(start_time), vesting_periods.map(function (p) { return Period_1.Period.fromData(p); }));
|
|
63
|
-
};
|
|
64
|
-
MsgCreatePeriodicVestingAccount.prototype.toData = function () {
|
|
65
|
-
var _a = this, from_address = _a.from_address, to_address = _a.to_address, start_time = _a.start_time, vesting_periods = _a.vesting_periods;
|
|
66
|
-
return {
|
|
67
|
-
'@type': '/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount',
|
|
68
|
-
from_address: from_address,
|
|
69
|
-
to_address: to_address,
|
|
70
|
-
start_time: start_time.toFixed(),
|
|
71
|
-
vesting_periods: vesting_periods.map(function (p) { return p.toData(); }),
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
MsgCreatePeriodicVestingAccount.fromProto = function (proto) {
|
|
75
|
-
return new MsgCreatePeriodicVestingAccount(proto.fromAddress, proto.toAddress, proto.startTime.toNumber(), proto.vestingPeriods.map(function (p) { return Period_1.Period.fromProto(p); }));
|
|
76
|
-
};
|
|
77
|
-
MsgCreatePeriodicVestingAccount.prototype.toProto = function () {
|
|
78
|
-
var _a = this, from_address = _a.from_address, to_address = _a.to_address, start_time = _a.start_time, vesting_periods = _a.vesting_periods;
|
|
79
|
-
return tx_1.MsgCreatePeriodicVestingAccount.fromPartial({
|
|
80
|
-
fromAddress: from_address,
|
|
81
|
-
toAddress: to_address,
|
|
82
|
-
startTime: long_1.default.fromNumber(start_time),
|
|
83
|
-
vestingPeriods: vesting_periods.map(function (p) { return p.toProto(); }),
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
MsgCreatePeriodicVestingAccount.prototype.packAny = function () {
|
|
87
|
-
return any_1.Any.fromPartial({
|
|
88
|
-
typeUrl: '/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount',
|
|
89
|
-
value: tx_1.MsgCreatePeriodicVestingAccount.encode(this.toProto()).finish(),
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
MsgCreatePeriodicVestingAccount.unpackAny = function (msgAny) {
|
|
93
|
-
return MsgCreatePeriodicVestingAccount.fromProto(tx_1.MsgCreatePeriodicVestingAccount.decode(msgAny.value));
|
|
94
|
-
};
|
|
95
|
-
return MsgCreatePeriodicVestingAccount;
|
|
96
|
-
}(json_1.JSONSerializable));
|
|
97
|
-
exports.MsgCreatePeriodicVestingAccount = MsgCreatePeriodicVestingAccount;
|
|
98
|
-
//# sourceMappingURL=MsgCreatePeriodicVestingAccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MsgCreatePeriodicVestingAccount.js","sourceRoot":"","sources":["../../../../src/core/vesting/msgs/MsgCreatePeriodicVestingAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,oCAAmC;AACnC,2CAAsD;AAEtD,gEAA+D;AAC/D,qEAAuI;AACvI,8CAAwB;AAExB;;GAEG;AACH;IAAqD,mDAIpD;IACC;;;OAGG;IACH,yCAC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CAAC;IACL,CAAC;IAEM,iDAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,yDAAyD;YAClE,KAAK,EAAE,oCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC1E,CAAC,CAAC;IACL,CAAC;IAEa,yCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,+BAA+B,CAAC,SAAS,CAC9C,oCAAkC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACxD,CAAC;IACJ,CAAC;IACH,sCAAC;AAAD,CAAC,AAtGD,CAAqD,uBAAgB,GAsGpE;AAtGY,0EAA+B"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { AccAddress } from '../../bech32';
|
|
3
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
-
import { MsgDonateAllVestingTokens as MsgDonateAllVestingTokens_pb } from '@initia/initia.proto/cosmos/vesting/v1beta1/tx';
|
|
5
|
-
/**
|
|
6
|
-
* DonateAllVestingTokens defines a method that enables donating all vesting
|
|
7
|
-
*/
|
|
8
|
-
export declare class MsgDonateAllVestingTokens extends JSONSerializable<MsgDonateAllVestingTokens.Amino, MsgDonateAllVestingTokens.Data, MsgDonateAllVestingTokens.Proto> {
|
|
9
|
-
from_address: AccAddress;
|
|
10
|
-
/**
|
|
11
|
-
* @param from_address donor's address
|
|
12
|
-
*/
|
|
13
|
-
constructor(from_address: AccAddress);
|
|
14
|
-
static fromAmino(data: MsgDonateAllVestingTokens.Amino): MsgDonateAllVestingTokens;
|
|
15
|
-
toAmino(): MsgDonateAllVestingTokens.Amino;
|
|
16
|
-
static fromData(data: MsgDonateAllVestingTokens.Data): MsgDonateAllVestingTokens;
|
|
17
|
-
toData(): MsgDonateAllVestingTokens.Data;
|
|
18
|
-
static fromProto(proto: MsgDonateAllVestingTokens.Proto): MsgDonateAllVestingTokens;
|
|
19
|
-
toProto(): MsgDonateAllVestingTokens.Proto;
|
|
20
|
-
packAny(): Any;
|
|
21
|
-
static unpackAny(msgAny: Any): MsgDonateAllVestingTokens;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace MsgDonateAllVestingTokens {
|
|
24
|
-
interface Amino {
|
|
25
|
-
type: 'cosmos-sdk/MsgDonateAllVestingTokens';
|
|
26
|
-
value: {
|
|
27
|
-
from_address: AccAddress;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
interface Data {
|
|
31
|
-
'@type': '/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens';
|
|
32
|
-
from_address: AccAddress;
|
|
33
|
-
}
|
|
34
|
-
type Proto = MsgDonateAllVestingTokens_pb;
|
|
35
|
-
}
|
|
@@ -1,75 +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.MsgDonateAllVestingTokens = void 0;
|
|
19
|
-
var json_1 = require("../../../util/json");
|
|
20
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
-
var tx_1 = require("@initia/initia.proto/cosmos/vesting/v1beta1/tx");
|
|
22
|
-
/**
|
|
23
|
-
* DonateAllVestingTokens defines a method that enables donating all vesting
|
|
24
|
-
*/
|
|
25
|
-
var MsgDonateAllVestingTokens = /** @class */ (function (_super) {
|
|
26
|
-
__extends(MsgDonateAllVestingTokens, _super);
|
|
27
|
-
/**
|
|
28
|
-
* @param from_address donor's address
|
|
29
|
-
*/
|
|
30
|
-
function MsgDonateAllVestingTokens(from_address) {
|
|
31
|
-
var _this = _super.call(this) || this;
|
|
32
|
-
_this.from_address = from_address;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
MsgDonateAllVestingTokens.fromAmino = function (data) {
|
|
36
|
-
return new MsgDonateAllVestingTokens(data.value.from_address);
|
|
37
|
-
};
|
|
38
|
-
MsgDonateAllVestingTokens.prototype.toAmino = function () {
|
|
39
|
-
return {
|
|
40
|
-
type: 'cosmos-sdk/MsgDonateAllVestingTokens',
|
|
41
|
-
value: {
|
|
42
|
-
from_address: this.from_address,
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
MsgDonateAllVestingTokens.fromData = function (data) {
|
|
47
|
-
return new MsgDonateAllVestingTokens(data.from_address);
|
|
48
|
-
};
|
|
49
|
-
MsgDonateAllVestingTokens.prototype.toData = function () {
|
|
50
|
-
return {
|
|
51
|
-
'@type': '/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens',
|
|
52
|
-
from_address: this.from_address,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
MsgDonateAllVestingTokens.fromProto = function (proto) {
|
|
56
|
-
return new MsgDonateAllVestingTokens(proto.fromAddress);
|
|
57
|
-
};
|
|
58
|
-
MsgDonateAllVestingTokens.prototype.toProto = function () {
|
|
59
|
-
return tx_1.MsgDonateAllVestingTokens.fromPartial({
|
|
60
|
-
fromAddress: this.from_address,
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
MsgDonateAllVestingTokens.prototype.packAny = function () {
|
|
64
|
-
return any_1.Any.fromPartial({
|
|
65
|
-
typeUrl: '/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens',
|
|
66
|
-
value: tx_1.MsgDonateAllVestingTokens.encode(this.toProto()).finish(),
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
MsgDonateAllVestingTokens.unpackAny = function (msgAny) {
|
|
70
|
-
return MsgDonateAllVestingTokens.fromProto(tx_1.MsgDonateAllVestingTokens.decode(msgAny.value));
|
|
71
|
-
};
|
|
72
|
-
return MsgDonateAllVestingTokens;
|
|
73
|
-
}(json_1.JSONSerializable));
|
|
74
|
-
exports.MsgDonateAllVestingTokens = MsgDonateAllVestingTokens;
|
|
75
|
-
//# sourceMappingURL=MsgDonateAllVestingTokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MsgDonateAllVestingTokens.js","sourceRoot":"","sources":["../../../../src/core/vesting/msgs/MsgDonateAllVestingTokens.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,qEAA2H;AAE3H;;GAEG;AACH;IAA+C,6CAI9C;IACC;;OAEG;IACH,mCAAmB,YAAwB;QAA3C,YACE,iBAAO,SACR;QAFkB,kBAAY,GAAZ,YAAY,CAAY;;IAE3C,CAAC;IAEa,mCAAS,GAAvB,UACE,IAAqC;QAErC,OAAO,IAAI,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAChE,CAAC;IAEM,2CAAO,GAAd;QACE,OAAO;YACL,IAAI,EAAE,sCAAsC;YAC5C,KAAK,EAAE;gBACL,YAAY,EAAE,IAAI,CAAC,YAAY;aAChC;SACF,CAAC;IACJ,CAAC;IAEa,kCAAQ,GAAtB,UACE,IAAoC;QAEpC,OAAO,IAAI,yBAAyB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;IAEM,0CAAM,GAAb;QACE,OAAO;YACL,OAAO,EAAE,mDAAmD;YAC5D,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAEa,mCAAS,GAAvB,UACE,KAAsC;QAEtC,OAAO,IAAI,yBAAyB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC;IAEM,2CAAO,GAAd;QACE,OAAO,8BAA4B,CAAC,WAAW,CAAC;YAC9C,WAAW,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC,CAAC;IACL,CAAC;IAEM,2CAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,mDAAmD;YAC5D,KAAK,EAAE,8BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACpE,CAAC,CAAC;IACL,CAAC;IAEa,mCAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,yBAAyB,CAAC,SAAS,CACxC,8BAA4B,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAClD,CAAC;IACJ,CAAC;IACH,gCAAC;AAAD,CAAC,AAhED,CAA+C,uBAAgB,GAgE9D;AAhEY,8DAAyB"}
|
package/dist/util/address.d.ts
DELETED
package/dist/util/address.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.hexToBech32 = exports.bech32ToHex = void 0;
|
|
7
|
-
var bech32_converting_1 = __importDefault(require("bech32-converting"));
|
|
8
|
-
function bech32ToHex(address) {
|
|
9
|
-
return (0, bech32_converting_1.default)('init').toHex(address);
|
|
10
|
-
}
|
|
11
|
-
exports.bech32ToHex = bech32ToHex;
|
|
12
|
-
function hexToBech32(address) {
|
|
13
|
-
return (0, bech32_converting_1.default)('init').toBech32(address);
|
|
14
|
-
}
|
|
15
|
-
exports.hexToBech32 = hexToBech32;
|
|
16
|
-
//# sourceMappingURL=address.js.map
|
package/dist/util/address.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/util/address.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAwC;AAExC,SAAgB,WAAW,CAAC,OAAe;IACzC,OAAO,IAAA,2BAAO,EAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC;AAFD,kCAEC;AAED,SAAgB,WAAW,CAAC,OAAe;IACzC,OAAO,IAAA,2BAAO,EAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC;AAFD,kCAEC"}
|