@initia/initia.js 0.0.25 → 0.0.27
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 +2 -12
- package/dist/client/lcd/api/MoveAPI.js.map +1 -1
- package/package.json +1 -1
- 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/proposals/EntryFunctionProposal.d.ts +0 -54
- package/dist/core/move/proposals/EntryFunctionProposal.js +0 -105
- package/dist/core/move/proposals/EntryFunctionProposal.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
|
@@ -45,8 +45,14 @@ export declare class MoveAPI extends BaseAPI {
|
|
|
45
45
|
* @returns
|
|
46
46
|
*/
|
|
47
47
|
executeEntryFunctionWithABI<T>(abi: string, address: AccAddress, moduleName: string, functionName: string, typeArgs?: string[], args?: any[]): Promise<T>;
|
|
48
|
-
resources(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[
|
|
49
|
-
|
|
48
|
+
resources(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[{
|
|
49
|
+
type: string;
|
|
50
|
+
data: any;
|
|
51
|
+
}[], Pagination]>;
|
|
52
|
+
resource<T>(address: AccAddress, structTag: string, params?: APIParams): Promise<{
|
|
53
|
+
type: string;
|
|
54
|
+
data: T;
|
|
55
|
+
}>;
|
|
50
56
|
denom(structTag: string, params?: APIParams): Promise<Denom>;
|
|
51
57
|
parameters(params?: APIParams): Promise<MoveParams>;
|
|
52
58
|
scriptABI(codeBytes: string): Promise<ABI>;
|
|
@@ -158,12 +158,7 @@ var MoveAPI = /** @class */ (function (_super) {
|
|
|
158
158
|
return [2 /*return*/, this.c
|
|
159
159
|
.get("/initia/move/v1/accounts/".concat(convertIf(address), "/resources"), params)
|
|
160
160
|
.then(function (d) { return [
|
|
161
|
-
d.resources.map(function (res) { return (
|
|
162
|
-
address: res.address,
|
|
163
|
-
struct_tag: res.struct_tag,
|
|
164
|
-
move_resource: res.move_resource,
|
|
165
|
-
raw_bytes: res.raw_bytes,
|
|
166
|
-
}); }),
|
|
161
|
+
d.resources.map(function (res) { return JSON.parse(res.move_resource); }),
|
|
167
162
|
d.pagination,
|
|
168
163
|
]; })];
|
|
169
164
|
});
|
|
@@ -177,12 +172,7 @@ var MoveAPI = /** @class */ (function (_super) {
|
|
|
177
172
|
.get("/initia/move/v1/accounts/".concat(convertIf(address), "/resources/by_struct_tag"), __assign(__assign({}, params), { struct_tag: structTag }))
|
|
178
173
|
.then(function (_a) {
|
|
179
174
|
var d = _a.resource;
|
|
180
|
-
return (
|
|
181
|
-
address: d.address,
|
|
182
|
-
struct_tag: d.struct_tag,
|
|
183
|
-
move_resource: d.move_resource,
|
|
184
|
-
raw_bytes: d.raw_bytes,
|
|
185
|
-
});
|
|
175
|
+
return JSON.parse(d.move_resource);
|
|
186
176
|
})];
|
|
187
177
|
});
|
|
188
178
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoveAPI.js","sourceRoot":"","sources":["../../../../src/client/lcd/api/MoveAPI.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AACpC,sCAAqE;AAErE,sCAAkD;AAGlD,IAAM,SAAS,GAAG,UAAC,OAAe;IAChC,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC,CAAC;AAkCF;IAA6B,2BAAO;IAApC;;
|
|
1
|
+
{"version":3,"file":"MoveAPI.js","sourceRoot":"","sources":["../../../../src/client/lcd/api/MoveAPI.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AACpC,sCAAqE;AAErE,sCAAkD;AAGlD,IAAM,SAAS,GAAG,UAAC,OAAe;IAChC,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC,CAAC;AAkCF;IAA6B,2BAAO;IAApC;;IA8KA,CAAC;IA7Kc,yBAAO,GAApB,UACE,OAAmB,EACnB,MAAmD;QAAnD,uBAAA,EAAA,WAAmD;;;gBAEnD,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CAGD,mCAA4B,SAAS,CAAC,OAAO,CAAC,aAAU,EAAE,MAAM,CAAC;yBACnE,IAAI,CAAC,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AAA,WAAsB;;;gBAEtB,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CACF,uCAAgC,SAAS,CAAC,OAAO,CAAC,CAAE,EACpD,MAAM,CACP;yBACA,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,iBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,EAAlC,CAAkC,CAAC,EAAC;;;KAClD;IAEY,2BAAS,GAAtB,UACE,KAAY,EACZ,MAAsB;QAAtB,uBAAA,EAAA,WAAsB;;;gBAEtB,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CACF,sCAAsC,wBACjC,MAAM,KAAE,KAAK,OAAA,IACnB;yBACA,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,UAAU,EAAZ,CAAY,CAAC,EAAC;;;KAC5B;IACH,cAAC;AAAD,CAAC,AA9KD,CAA6B,iBAAO,GA8KnC;AA9KY,0BAAO"}
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../util/json';
|
|
2
|
-
import { MoveCoin as MoveCoin_pb } from '@initia/initia.proto/initia/move/v1/types';
|
|
3
|
-
export declare class MoveCoin extends JSONSerializable<MoveCoin.Amino, MoveCoin.Data, MoveCoin.Proto> {
|
|
4
|
-
struct_tag: string;
|
|
5
|
-
amount: string;
|
|
6
|
-
/**
|
|
7
|
-
* @param struct_tag struct tag
|
|
8
|
-
* @param amount amount
|
|
9
|
-
*/
|
|
10
|
-
constructor(struct_tag: string, amount: string);
|
|
11
|
-
static fromAmino(data: MoveCoin.Amino): MoveCoin;
|
|
12
|
-
toAmino(): MoveCoin.Amino;
|
|
13
|
-
static fromData(data: MoveCoin.Data): MoveCoin;
|
|
14
|
-
toData(): MoveCoin.Data;
|
|
15
|
-
static fromProto(proto: MoveCoin.Proto): MoveCoin;
|
|
16
|
-
toProto(): MoveCoin.Proto;
|
|
17
|
-
}
|
|
18
|
-
export declare namespace MoveCoin {
|
|
19
|
-
interface Amino {
|
|
20
|
-
struct_tag: string;
|
|
21
|
-
amount: string;
|
|
22
|
-
}
|
|
23
|
-
interface Data {
|
|
24
|
-
struct_tag: string;
|
|
25
|
-
amount: string;
|
|
26
|
-
}
|
|
27
|
-
type Proto = MoveCoin_pb;
|
|
28
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MoveCoin = void 0;
|
|
19
|
-
var json_1 = require("../../util/json");
|
|
20
|
-
var types_1 = require("@initia/initia.proto/initia/move/v1/types");
|
|
21
|
-
var MoveCoin = /** @class */ (function (_super) {
|
|
22
|
-
__extends(MoveCoin, _super);
|
|
23
|
-
/**
|
|
24
|
-
* @param struct_tag struct tag
|
|
25
|
-
* @param amount amount
|
|
26
|
-
*/
|
|
27
|
-
function MoveCoin(struct_tag, amount) {
|
|
28
|
-
var _this = _super.call(this) || this;
|
|
29
|
-
_this.struct_tag = struct_tag;
|
|
30
|
-
_this.amount = amount;
|
|
31
|
-
return _this;
|
|
32
|
-
}
|
|
33
|
-
MoveCoin.fromAmino = function (data) {
|
|
34
|
-
var struct_tag = data.struct_tag, amount = data.amount;
|
|
35
|
-
return new MoveCoin(struct_tag, amount);
|
|
36
|
-
};
|
|
37
|
-
MoveCoin.prototype.toAmino = function () {
|
|
38
|
-
var _a = this, struct_tag = _a.struct_tag, amount = _a.amount;
|
|
39
|
-
return {
|
|
40
|
-
struct_tag: struct_tag,
|
|
41
|
-
amount: amount,
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
MoveCoin.fromData = function (data) {
|
|
45
|
-
var struct_tag = data.struct_tag, amount = data.amount;
|
|
46
|
-
return new MoveCoin(struct_tag, amount);
|
|
47
|
-
};
|
|
48
|
-
MoveCoin.prototype.toData = function () {
|
|
49
|
-
var _a = this, struct_tag = _a.struct_tag, amount = _a.amount;
|
|
50
|
-
return {
|
|
51
|
-
struct_tag: struct_tag,
|
|
52
|
-
amount: amount,
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
MoveCoin.fromProto = function (proto) {
|
|
56
|
-
return new MoveCoin(proto.structTag, proto.amount);
|
|
57
|
-
};
|
|
58
|
-
MoveCoin.prototype.toProto = function () {
|
|
59
|
-
return types_1.MoveCoin.fromPartial({
|
|
60
|
-
structTag: this.struct_tag,
|
|
61
|
-
amount: this.amount,
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
return MoveCoin;
|
|
65
|
-
}(json_1.JSONSerializable));
|
|
66
|
-
exports.MoveCoin = MoveCoin;
|
|
67
|
-
//# sourceMappingURL=MoveCoin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MoveCoin.js","sourceRoot":"","sources":["../../../src/core/move/MoveCoin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wCAAmD;AACnD,mEAAoF;AAEpF;IAA8B,4BAI7B;IACC;;;OAGG;IACH,kBAAmB,UAAkB,EAAS,MAAc;QAA5D,YACE,iBAAO,SACR;QAFkB,gBAAU,GAAV,UAAU,CAAQ;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
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
|
-
import { MsgConvertMoveCoin as MsgConvertMoveCoin_pb } from '@initia/initia.proto/initia/move/v1/tx';
|
|
6
|
-
export declare class MsgConvertMoveCoin extends JSONSerializable<MsgConvertMoveCoin.Amino, MsgConvertMoveCoin.Data, MsgConvertMoveCoin.Proto> {
|
|
7
|
-
sender: AccAddress;
|
|
8
|
-
move_coin?: MoveCoin | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* @param sender code creator
|
|
11
|
-
* @param move_coin move coin to convert
|
|
12
|
-
*/
|
|
13
|
-
constructor(sender: AccAddress, move_coin?: MoveCoin | undefined);
|
|
14
|
-
static fromAmino(data: MsgConvertMoveCoin.Amino): MsgConvertMoveCoin;
|
|
15
|
-
toAmino(): MsgConvertMoveCoin.Amino;
|
|
16
|
-
static fromProto(proto: MsgConvertMoveCoin.Proto): MsgConvertMoveCoin;
|
|
17
|
-
toProto(): MsgConvertMoveCoin.Proto;
|
|
18
|
-
packAny(): Any;
|
|
19
|
-
static unpackAny(msgAny: Any): MsgConvertMoveCoin;
|
|
20
|
-
static fromData(data: MsgConvertMoveCoin.Data): MsgConvertMoveCoin;
|
|
21
|
-
toData(): MsgConvertMoveCoin.Data;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace MsgConvertMoveCoin {
|
|
24
|
-
interface Amino {
|
|
25
|
-
type: 'move/MsgConvertMoveCoin';
|
|
26
|
-
value: {
|
|
27
|
-
sender: AccAddress;
|
|
28
|
-
move_coin?: MoveCoin.Amino;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
interface Data {
|
|
32
|
-
'@type': '/initia.move.v1.MsgConvertMoveCoin';
|
|
33
|
-
sender: AccAddress;
|
|
34
|
-
move_coin?: MoveCoin.Data;
|
|
35
|
-
}
|
|
36
|
-
type Proto = MsgConvertMoveCoin_pb;
|
|
37
|
-
}
|
|
@@ -1,83 +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.MsgConvertMoveCoin = void 0;
|
|
19
|
-
var json_1 = require("../../../util/json");
|
|
20
|
-
var MoveCoin_1 = require("../MoveCoin");
|
|
21
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
22
|
-
var tx_1 = require("@initia/initia.proto/initia/move/v1/tx");
|
|
23
|
-
var MsgConvertMoveCoin = /** @class */ (function (_super) {
|
|
24
|
-
__extends(MsgConvertMoveCoin, _super);
|
|
25
|
-
/**
|
|
26
|
-
* @param sender code creator
|
|
27
|
-
* @param move_coin move coin to convert
|
|
28
|
-
*/
|
|
29
|
-
function MsgConvertMoveCoin(sender, move_coin) {
|
|
30
|
-
var _this = _super.call(this) || this;
|
|
31
|
-
_this.sender = sender;
|
|
32
|
-
_this.move_coin = move_coin;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
MsgConvertMoveCoin.fromAmino = function (data) {
|
|
36
|
-
var _a = data.value, sender = _a.sender, move_coin = _a.move_coin;
|
|
37
|
-
return new MsgConvertMoveCoin(sender, move_coin && MoveCoin_1.MoveCoin.fromAmino(move_coin));
|
|
38
|
-
};
|
|
39
|
-
MsgConvertMoveCoin.prototype.toAmino = function () {
|
|
40
|
-
var _a = this, sender = _a.sender, move_coin = _a.move_coin;
|
|
41
|
-
return {
|
|
42
|
-
type: 'move/MsgConvertMoveCoin',
|
|
43
|
-
value: {
|
|
44
|
-
sender: sender,
|
|
45
|
-
move_coin: move_coin === null || move_coin === void 0 ? void 0 : move_coin.toAmino(),
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
MsgConvertMoveCoin.fromProto = function (proto) {
|
|
50
|
-
return new MsgConvertMoveCoin(proto.sender, proto.moveCoin && MoveCoin_1.MoveCoin.fromProto(proto.moveCoin));
|
|
51
|
-
};
|
|
52
|
-
MsgConvertMoveCoin.prototype.toProto = function () {
|
|
53
|
-
var _a = this, sender = _a.sender, move_coin = _a.move_coin;
|
|
54
|
-
return tx_1.MsgConvertMoveCoin.fromPartial({
|
|
55
|
-
sender: sender,
|
|
56
|
-
moveCoin: move_coin === null || move_coin === void 0 ? void 0 : move_coin.toProto(),
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
MsgConvertMoveCoin.prototype.packAny = function () {
|
|
60
|
-
return any_1.Any.fromPartial({
|
|
61
|
-
typeUrl: '/initia.move.v1.MsgConvertMoveCoin',
|
|
62
|
-
value: tx_1.MsgConvertMoveCoin.encode(this.toProto()).finish(),
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
MsgConvertMoveCoin.unpackAny = function (msgAny) {
|
|
66
|
-
return MsgConvertMoveCoin.fromProto(tx_1.MsgConvertMoveCoin.decode(msgAny.value));
|
|
67
|
-
};
|
|
68
|
-
MsgConvertMoveCoin.fromData = function (data) {
|
|
69
|
-
var sender = data.sender, move_coin = data.move_coin;
|
|
70
|
-
return new MsgConvertMoveCoin(sender, move_coin && MoveCoin_1.MoveCoin.fromData(move_coin));
|
|
71
|
-
};
|
|
72
|
-
MsgConvertMoveCoin.prototype.toData = function () {
|
|
73
|
-
var _a = this, sender = _a.sender, move_coin = _a.move_coin;
|
|
74
|
-
return {
|
|
75
|
-
'@type': '/initia.move.v1.MsgConvertMoveCoin',
|
|
76
|
-
sender: sender,
|
|
77
|
-
move_coin: move_coin === null || move_coin === void 0 ? void 0 : move_coin.toData(),
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
return MsgConvertMoveCoin;
|
|
81
|
-
}(json_1.JSONSerializable));
|
|
82
|
-
exports.MsgConvertMoveCoin = MsgConvertMoveCoin;
|
|
83
|
-
//# sourceMappingURL=MsgConvertMoveCoin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MsgConvertMoveCoin.js","sourceRoot":"","sources":["../../../../src/core/move/msgs/MsgConvertMoveCoin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,wCAAuC;AACvC,gEAA+D;AAC/D,6DAAqG;AAErG;IAAwC,sCAIvC;IACC;;;OAGG;IACH,4BAAmB,MAAkB,EAAS,SAAoB;QAAlE,YACE,iBAAO,SACR;QAFkB,YAAM,GAAN,MAAM,CAAY;QAAS,eAAS,GAAT,SAAS,CAAW;;IAElE,CAAC;IAEa,4BAAS,GAAvB,UAAwB,IAA8B;QAElD,IAAA,KACE,IAAI,MADsB,EAAnB,MAAM,YAAA,EAAE,SAAS,eAAE,CACrB;QACT,OAAO,IAAI,kBAAkB,CAC3B,MAAM,EACN,SAAS,IAAI,mBAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,CAC3C,CAAC;IACJ,CAAC;IAEM,oCAAO,GAAd;QACQ,IAAA,KAAwB,IAAI,EAA1B,MAAM,YAAA,EAAE,SAAS,eAAS,CAAC;QACnC,OAAO;YACL,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE;gBACL,MAAM,QAAA;gBACN,SAAS,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,EAAE;aAChC;SACF,CAAC;IACJ,CAAC;IAE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B,CAAC;IACJ,CAAC;IACH,yBAAC;AAAD,CAAC,AA9ED,CAAwC,uBAAgB,GA8EvD;AA9EY,gDAAkB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { AccAddress } from '../../bech32';
|
|
3
|
-
import { Coin } from '../../Coin';
|
|
4
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
|
-
import { MsgConvertNativeCoin as MsgConvertNativeCoin_pb } from '@initia/initia.proto/initia/move/v1/tx';
|
|
6
|
-
export declare class MsgConvertNativeCoin extends JSONSerializable<MsgConvertNativeCoin.Amino, MsgConvertNativeCoin.Data, MsgConvertNativeCoin.Proto> {
|
|
7
|
-
sender: AccAddress;
|
|
8
|
-
coin?: Coin | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* @param sender code creator
|
|
11
|
-
* @param coin coin to convert
|
|
12
|
-
*/
|
|
13
|
-
constructor(sender: AccAddress, coin?: Coin | undefined);
|
|
14
|
-
static fromAmino(data: MsgConvertNativeCoin.Amino): MsgConvertNativeCoin;
|
|
15
|
-
toAmino(): MsgConvertNativeCoin.Amino;
|
|
16
|
-
static fromProto(proto: MsgConvertNativeCoin.Proto): MsgConvertNativeCoin;
|
|
17
|
-
toProto(): MsgConvertNativeCoin.Proto;
|
|
18
|
-
packAny(): Any;
|
|
19
|
-
static unpackAny(msgAny: Any): MsgConvertNativeCoin;
|
|
20
|
-
static fromData(data: MsgConvertNativeCoin.Data): MsgConvertNativeCoin;
|
|
21
|
-
toData(): MsgConvertNativeCoin.Data;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace MsgConvertNativeCoin {
|
|
24
|
-
interface Amino {
|
|
25
|
-
type: 'move/MsgConvertNativeCoin';
|
|
26
|
-
value: {
|
|
27
|
-
sender: AccAddress;
|
|
28
|
-
coin?: Coin.Amino;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
interface Data {
|
|
32
|
-
'@type': '/initia.move.v1.MsgConvertNativeCoin';
|
|
33
|
-
sender: AccAddress;
|
|
34
|
-
coin?: Coin.Data;
|
|
35
|
-
}
|
|
36
|
-
type Proto = MsgConvertNativeCoin_pb;
|
|
37
|
-
}
|
|
@@ -1,83 +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.MsgConvertNativeCoin = void 0;
|
|
19
|
-
var json_1 = require("../../../util/json");
|
|
20
|
-
var Coin_1 = require("../../Coin");
|
|
21
|
-
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
22
|
-
var tx_1 = require("@initia/initia.proto/initia/move/v1/tx");
|
|
23
|
-
var MsgConvertNativeCoin = /** @class */ (function (_super) {
|
|
24
|
-
__extends(MsgConvertNativeCoin, _super);
|
|
25
|
-
/**
|
|
26
|
-
* @param sender code creator
|
|
27
|
-
* @param coin coin to convert
|
|
28
|
-
*/
|
|
29
|
-
function MsgConvertNativeCoin(sender, coin) {
|
|
30
|
-
var _this = _super.call(this) || this;
|
|
31
|
-
_this.sender = sender;
|
|
32
|
-
_this.coin = coin;
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
MsgConvertNativeCoin.fromAmino = function (data) {
|
|
36
|
-
var _a = data.value, sender = _a.sender, coin = _a.coin;
|
|
37
|
-
return new MsgConvertNativeCoin(sender, coin && Coin_1.Coin.fromAmino(coin));
|
|
38
|
-
};
|
|
39
|
-
MsgConvertNativeCoin.prototype.toAmino = function () {
|
|
40
|
-
var _a = this, sender = _a.sender, coin = _a.coin;
|
|
41
|
-
return {
|
|
42
|
-
type: 'move/MsgConvertNativeCoin',
|
|
43
|
-
value: {
|
|
44
|
-
sender: sender,
|
|
45
|
-
coin: coin === null || coin === void 0 ? void 0 : coin.toAmino(),
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
MsgConvertNativeCoin.fromProto = function (proto) {
|
|
50
|
-
return new MsgConvertNativeCoin(proto.sender, proto.coin && Coin_1.Coin.fromProto(proto.coin));
|
|
51
|
-
};
|
|
52
|
-
MsgConvertNativeCoin.prototype.toProto = function () {
|
|
53
|
-
var _a = this, sender = _a.sender, coin = _a.coin;
|
|
54
|
-
return tx_1.MsgConvertNativeCoin.fromPartial({
|
|
55
|
-
sender: sender,
|
|
56
|
-
coin: coin === null || coin === void 0 ? void 0 : coin.toProto(),
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
MsgConvertNativeCoin.prototype.packAny = function () {
|
|
60
|
-
return any_1.Any.fromPartial({
|
|
61
|
-
typeUrl: '/initia.move.v1.MsgConvertNativeCoin',
|
|
62
|
-
value: tx_1.MsgConvertNativeCoin.encode(this.toProto()).finish(),
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
MsgConvertNativeCoin.unpackAny = function (msgAny) {
|
|
66
|
-
return MsgConvertNativeCoin.fromProto(tx_1.MsgConvertNativeCoin.decode(msgAny.value));
|
|
67
|
-
};
|
|
68
|
-
MsgConvertNativeCoin.fromData = function (data) {
|
|
69
|
-
var sender = data.sender, coin = data.coin;
|
|
70
|
-
return new MsgConvertNativeCoin(sender, coin && Coin_1.Coin.fromData(coin));
|
|
71
|
-
};
|
|
72
|
-
MsgConvertNativeCoin.prototype.toData = function () {
|
|
73
|
-
var _a = this, sender = _a.sender, coin = _a.coin;
|
|
74
|
-
return {
|
|
75
|
-
'@type': '/initia.move.v1.MsgConvertNativeCoin',
|
|
76
|
-
sender: sender,
|
|
77
|
-
coin: coin === null || coin === void 0 ? void 0 : coin.toData(),
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
return MsgConvertNativeCoin;
|
|
81
|
-
}(json_1.JSONSerializable));
|
|
82
|
-
exports.MsgConvertNativeCoin = MsgConvertNativeCoin;
|
|
83
|
-
//# sourceMappingURL=MsgConvertNativeCoin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MsgConvertNativeCoin.js","sourceRoot":"","sources":["../../../../src/core/move/msgs/MsgConvertNativeCoin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,mCAAkC;AAClC,gEAA+D;AAC/D,6DAAyG;AAEzG;IAA0C,wCAIzC;IACC;;;OAGG;IACH,8BAAmB,MAAkB,EAAS,IAAW;QAAzD,YACE,iBAAO,SACR;QAFkB,YAAM,GAAN,MAAM,CAAY;QAAS,UAAI,GAAJ,IAAI,CAAO;;IAEzD,CAAC;IAEa,8BAAS,GAAvB,UACE,IAAgC;QAG9B,IAAA,KACE,IAAI,MADiB,EAAd,MAAM,YAAA,EAAE,IAAI,UAAE,CAChB;QACT,OAAO,IAAI,oBAAoB,CAAC,MAAM,EAAE,IAAI,IAAI,WAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,CAAC;IAEM,sCAAO,GAAd;QACQ,IAAA,KAAmB,IAAI,EAArB,MAAM,YAAA,EAAE,IAAI,UAAS,CAAC;QAC9B,OAAO;YACL,IAAI,EAAE,2BAA2B;YACjC,KAAK,EAAE;gBACL,MAAM,QAAA;gBACN,IAAI,EA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AAA;YACN,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE;SACrB,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AA9ED,CAA0C,uBAAgB,GA8EzD;AA9EY,oDAAoB"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { JSONSerializable } from '../../../util/json';
|
|
2
|
-
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { EntryFunctionProposal as EntryFunctionProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
|
|
4
|
-
/**
|
|
5
|
-
* EntryFunctionProposal gov proposal content type to execute entry function to the system
|
|
6
|
-
*/
|
|
7
|
-
export declare class EntryFunctionProposal extends JSONSerializable<EntryFunctionProposal.Amino, EntryFunctionProposal.Data, EntryFunctionProposal.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: EntryFunctionProposal.Amino): EntryFunctionProposal;
|
|
24
|
-
toAmino(): EntryFunctionProposal.Amino;
|
|
25
|
-
static fromData(data: EntryFunctionProposal.Data): EntryFunctionProposal;
|
|
26
|
-
toData(): EntryFunctionProposal.Data;
|
|
27
|
-
static fromProto(proto: EntryFunctionProposal.Proto): EntryFunctionProposal;
|
|
28
|
-
toProto(): EntryFunctionProposal.Proto;
|
|
29
|
-
packAny(): Any;
|
|
30
|
-
static unpackAny(msgAny: Any): EntryFunctionProposal;
|
|
31
|
-
}
|
|
32
|
-
export declare namespace EntryFunctionProposal {
|
|
33
|
-
interface Amino {
|
|
34
|
-
type: 'move/EntryFunctionProposal';
|
|
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.EntryFunctionProposal';
|
|
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 = EntryFunctionProposal_pb;
|
|
54
|
-
}
|
|
@@ -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.EntryFunctionProposal = 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
|
-
* EntryFunctionProposal gov proposal content type to execute entry function to the system
|
|
24
|
-
*/
|
|
25
|
-
var EntryFunctionProposal = /** @class */ (function (_super) {
|
|
26
|
-
__extends(EntryFunctionProposal, _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 EntryFunctionProposal(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
|
-
EntryFunctionProposal.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 EntryFunctionProposal(title, description, module_name, function_name, type_args, args);
|
|
48
|
-
};
|
|
49
|
-
EntryFunctionProposal.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/EntryFunctionProposal',
|
|
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
|
-
EntryFunctionProposal.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 EntryFunctionProposal(title, description, module_name, function_name, type_args, args);
|
|
66
|
-
};
|
|
67
|
-
EntryFunctionProposal.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.EntryFunctionProposal',
|
|
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
|
-
EntryFunctionProposal.fromProto = function (proto) {
|
|
80
|
-
return new EntryFunctionProposal(proto.title, proto.description, proto.moduleName, proto.functionName, proto.typeArgs, proto.args.map(function (arg) { return Buffer.from(arg).toString('base64'); }));
|
|
81
|
-
};
|
|
82
|
-
EntryFunctionProposal.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.EntryFunctionProposal.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
|
-
EntryFunctionProposal.prototype.packAny = function () {
|
|
94
|
-
return any_1.Any.fromPartial({
|
|
95
|
-
typeUrl: '/initia.move.v1.EntryFunctionProposal',
|
|
96
|
-
value: proposal_1.EntryFunctionProposal.encode(this.toProto()).finish(),
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
EntryFunctionProposal.unpackAny = function (msgAny) {
|
|
100
|
-
return EntryFunctionProposal.fromProto(proposal_1.EntryFunctionProposal.decode(msgAny.value));
|
|
101
|
-
};
|
|
102
|
-
return EntryFunctionProposal;
|
|
103
|
-
}(json_1.JSONSerializable));
|
|
104
|
-
exports.EntryFunctionProposal = EntryFunctionProposal;
|
|
105
|
-
//# sourceMappingURL=EntryFunctionProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EntryFunctionProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/EntryFunctionProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,0EAAkH;AAElH;;GAEG;AACH;IAA2C,yCAI1C;IACC;;;;;;;OAOG;IACH,+BACS,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,+BAAS,GAAvB,UACE,IAAiC;QAG/B,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,qBAAqB,CAC9B,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;IAEM,uCAAO,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,4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KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,WAAW,iBAAA,EAAE,aAAa,mBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UACjE,CAAC;QACP,OAAO,gCAAwB,CAAC,WAAW,CAAC;YAC1C,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,uCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,uCAAuC;YAChD,KAAK,EAAE,gCAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAChE,CAAC,CAAC;IACL,CAAC;IAEa,+BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,qBAAqB,CAAC,SAAS,CACpC,gCAAwB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC9C,CAAC;IACJ,CAAC;IACH,4BAAC;AAAD,CAAC,AAlID,CAA2C,uBAAgB,GAkI1D;AAlIY,sDAAqB"}
|
|
@@ -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
|
-
}
|