@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.
Files changed (63) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.node.js +1 -1
  4. package/dist/bundle.node.js.map +1 -1
  5. package/dist/client/lcd/api/MoveAPI.d.ts +8 -2
  6. package/dist/client/lcd/api/MoveAPI.js.map +1 -1
  7. package/dist/core/Msg.js +18 -18
  8. package/dist/core/Msg.js.map +1 -1
  9. package/dist/core/bech32.js +2 -1
  10. package/dist/core/bech32.js.map +1 -1
  11. package/dist/core/gov/Proposal.d.ts +5 -5
  12. package/dist/core/gov/Proposal.js +12 -12
  13. package/dist/core/gov/Proposal.js.map +1 -1
  14. package/dist/core/move/msgs/{MsgExecuteEntryFunction.d.ts → MsgExecute.d.ts} +16 -16
  15. package/dist/core/move/msgs/{MsgExecuteEntryFunction.js → MsgExecute.js} +28 -28
  16. package/dist/core/move/msgs/MsgExecute.js.map +1 -0
  17. package/dist/core/move/msgs/MsgPublish.d.ts +36 -0
  18. package/dist/core/move/msgs/{MsgPublishModuleBundle.js → MsgPublish.js} +24 -24
  19. package/dist/core/move/msgs/MsgPublish.js.map +1 -0
  20. package/dist/core/move/msgs/{MsgExecuteScript.d.ts → MsgScript.d.ts} +17 -17
  21. package/dist/core/move/msgs/{MsgExecuteScript.js → MsgScript.js} +29 -29
  22. package/dist/core/move/msgs/MsgScript.js.map +1 -0
  23. package/dist/core/move/msgs/index.d.ts +10 -10
  24. package/dist/core/move/msgs/index.js +3 -3
  25. package/dist/core/move/msgs/index.js.map +1 -1
  26. package/dist/core/move/proposals/{EntryFunctionProposal.d.ts → ExecuteProposal.d.ts} +14 -14
  27. package/dist/core/move/proposals/{EntryFunctionProposal.js → ExecuteProposal.js} +25 -25
  28. package/dist/core/move/proposals/ExecuteProposal.js.map +1 -0
  29. package/dist/core/move/proposals/PublishProposal.d.ts +42 -0
  30. package/dist/core/move/proposals/{PublishStdModuleProposal.js → PublishProposal.js} +25 -25
  31. package/dist/core/move/proposals/PublishProposal.js.map +1 -0
  32. package/dist/core/move/proposals/index.d.ts +2 -2
  33. package/dist/core/move/proposals/index.js +2 -2
  34. package/dist/core/move/proposals/index.js.map +1 -1
  35. package/package.json +2 -2
  36. package/dist/core/move/MoveCoin.d.ts +0 -28
  37. package/dist/core/move/MoveCoin.js +0 -67
  38. package/dist/core/move/MoveCoin.js.map +0 -1
  39. package/dist/core/move/msgs/MsgConvertMoveCoin.d.ts +0 -37
  40. package/dist/core/move/msgs/MsgConvertMoveCoin.js +0 -83
  41. package/dist/core/move/msgs/MsgConvertMoveCoin.js.map +0 -1
  42. package/dist/core/move/msgs/MsgConvertNativeCoin.d.ts +0 -37
  43. package/dist/core/move/msgs/MsgConvertNativeCoin.js +0 -83
  44. package/dist/core/move/msgs/MsgConvertNativeCoin.js.map +0 -1
  45. package/dist/core/move/msgs/MsgExecuteEntryFunction.js.map +0 -1
  46. package/dist/core/move/msgs/MsgExecuteScript.js.map +0 -1
  47. package/dist/core/move/msgs/MsgPublishModuleBundle.d.ts +0 -36
  48. package/dist/core/move/msgs/MsgPublishModuleBundle.js.map +0 -1
  49. package/dist/core/move/proposals/EntryFunctionProposal.js.map +0 -1
  50. package/dist/core/move/proposals/ExecuteEntryFunctionProposal.d.ts +0 -54
  51. package/dist/core/move/proposals/ExecuteEntryFunctionProposal.js +0 -105
  52. package/dist/core/move/proposals/ExecuteEntryFunctionProposal.js.map +0 -1
  53. package/dist/core/move/proposals/PublishStdModuleProposal.d.ts +0 -42
  54. package/dist/core/move/proposals/PublishStdModuleProposal.js.map +0 -1
  55. package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.d.ts +0 -46
  56. package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js +0 -98
  57. package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js.map +0 -1
  58. package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.d.ts +0 -35
  59. package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js +0 -75
  60. package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js.map +0 -1
  61. package/dist/util/address.d.ts +0 -2
  62. package/dist/util/address.js +0 -16
  63. package/dist/util/address.js.map +0 -1
@@ -15,68 +15,68 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.MsgPublishModuleBundle = void 0;
18
+ exports.MsgPublish = void 0;
19
19
  var json_1 = require("../../../util/json");
20
20
  var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
21
  var tx_1 = require("@initia/initia.proto/initia/move/v1/tx");
22
- var MsgPublishModuleBundle = /** @class */ (function (_super) {
23
- __extends(MsgPublishModuleBundle, _super);
22
+ var MsgPublish = /** @class */ (function (_super) {
23
+ __extends(MsgPublish, _super);
24
24
  /**
25
25
  * @param sender code creator
26
26
  * @param code_bytes base64-encoded bytecode contents
27
27
  */
28
- function MsgPublishModuleBundle(sender, code_bytes) {
28
+ function MsgPublish(sender, code_bytes) {
29
29
  var _this = _super.call(this) || this;
30
30
  _this.sender = sender;
31
31
  _this.code_bytes = code_bytes;
32
32
  return _this;
33
33
  }
34
- MsgPublishModuleBundle.fromAmino = function (data) {
34
+ MsgPublish.fromAmino = function (data) {
35
35
  var _a = data.value, sender = _a.sender, code_bytes = _a.code_bytes;
36
- return new MsgPublishModuleBundle(sender, code_bytes);
36
+ return new MsgPublish(sender, code_bytes);
37
37
  };
38
- MsgPublishModuleBundle.prototype.toAmino = function () {
38
+ MsgPublish.prototype.toAmino = function () {
39
39
  var _a = this, sender = _a.sender, code_bytes = _a.code_bytes;
40
40
  return {
41
- type: 'move/MsgPublishModuleBundle',
41
+ type: 'move/MsgPublish',
42
42
  value: {
43
43
  sender: sender,
44
44
  code_bytes: code_bytes,
45
45
  },
46
46
  };
47
47
  };
48
- MsgPublishModuleBundle.fromProto = function (proto) {
49
- return new MsgPublishModuleBundle(proto.sender, proto.codeBytes.map(function (code) { return Buffer.from(code).toString('base64'); }));
48
+ MsgPublish.fromProto = function (proto) {
49
+ return new MsgPublish(proto.sender, proto.codeBytes.map(function (code) { return Buffer.from(code).toString('base64'); }));
50
50
  };
51
- MsgPublishModuleBundle.prototype.toProto = function () {
51
+ MsgPublish.prototype.toProto = function () {
52
52
  var _a = this, sender = _a.sender, code_bytes = _a.code_bytes;
53
- return tx_1.MsgPublishModuleBundle.fromPartial({
53
+ return tx_1.MsgPublish.fromPartial({
54
54
  sender: sender,
55
55
  codeBytes: code_bytes.map(function (code) { return Buffer.from(code, 'base64'); }),
56
56
  });
57
57
  };
58
- MsgPublishModuleBundle.prototype.packAny = function () {
58
+ MsgPublish.prototype.packAny = function () {
59
59
  return any_1.Any.fromPartial({
60
- typeUrl: '/initia.move.v1.MsgPublishModuleBundle',
61
- value: tx_1.MsgPublishModuleBundle.encode(this.toProto()).finish(),
60
+ typeUrl: '/initia.move.v1.MsgPublish',
61
+ value: tx_1.MsgPublish.encode(this.toProto()).finish(),
62
62
  });
63
63
  };
64
- MsgPublishModuleBundle.unpackAny = function (msgAny) {
65
- return MsgPublishModuleBundle.fromProto(tx_1.MsgPublishModuleBundle.decode(msgAny.value));
64
+ MsgPublish.unpackAny = function (msgAny) {
65
+ return MsgPublish.fromProto(tx_1.MsgPublish.decode(msgAny.value));
66
66
  };
67
- MsgPublishModuleBundle.fromData = function (data) {
67
+ MsgPublish.fromData = function (data) {
68
68
  var sender = data.sender, code_bytes = data.code_bytes;
69
- return new MsgPublishModuleBundle(sender, code_bytes);
69
+ return new MsgPublish(sender, code_bytes);
70
70
  };
71
- MsgPublishModuleBundle.prototype.toData = function () {
71
+ MsgPublish.prototype.toData = function () {
72
72
  var _a = this, sender = _a.sender, code_bytes = _a.code_bytes;
73
73
  return {
74
- '@type': '/initia.move.v1.MsgPublishModuleBundle',
74
+ '@type': '/initia.move.v1.MsgPublish',
75
75
  sender: sender,
76
76
  code_bytes: code_bytes,
77
77
  };
78
78
  };
79
- return MsgPublishModuleBundle;
79
+ return MsgPublish;
80
80
  }(json_1.JSONSerializable));
81
- exports.MsgPublishModuleBundle = MsgPublishModuleBundle;
82
- //# sourceMappingURL=MsgPublishModuleBundle.js.map
81
+ exports.MsgPublish = MsgPublish;
82
+ //# sourceMappingURL=MsgPublish.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MsgPublish.js","sourceRoot":"","sources":["../../../../src/core/move/msgs/MsgPublish.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,6DAAqF;AAErF;IAAgC,8BAI/B;IACC;;;OAGG;IACH,oBAAmB,MAAkB,EAAS,UAAoB;QAAlE,YACE,iBAAO,SACR;QAFkB,YAAM,GAAN,MAAM,CAAY;QAAS,gBAAU,GAAV,UAAU,CAAU;;IAElE,CAAC;IAEa,oBAAS,GAAvB,UACE,IAAsB;QAGpB,IAAA,KACE,IAAI,MADuB,EAApB,MAAM,YAAA,EAAE,UAAU,gBAAE,CACtB;QACT,OAAO,IAAI,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAEM,4BAAO,GAAd;QACQ,IAAA,KAAyB,IAAI,EAA3B,MAAM,YAAA,EAAE,UAAU,gBAAS,CAAC;QACpC,OAAO;YACL,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE;gBACL,MAAM,QAAA;gBACN,UAAU,YAAA;aACX;SACF,CAAC;IACJ,CAAC;IAEa,oBAAS,GAAvB,UACE,KAAuB;QAEvB,OAAO,IAAI,UAAU,CACnB,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAApC,CAAoC,CAAC,CAClE,CAAC;IACJ,CAAC;IAEM,4BAAO,GAAd;QACQ,IAAA,KAAyB,IAAI,EAA3B,MAAM,YAAA,EAAE,UAAU,gBAAS,CAAC;QACpC,OAAO,eAAa,CAAC,WAAW,CAAC;YAC/B,MAAM,QAAA;YACN,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAA3B,CAA2B,CAAC;SAC/D,CAAC,CAAC;IACL,CAAC;IAEM,4BAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,4BAA4B;YACrC,KAAK,EAAE,eAAa,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACrD,CAAC,CAAC;IACL,CAAC;IAEa,oBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,UAAU,CAAC,SAAS,CACzB,eAAa,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACnC,CAAC;IACJ,CAAC;IAEa,mBAAQ,GAAtB,UACE,IAAqB;QAEb,IAAA,MAAM,GAAiB,IAAI,OAArB,EAAE,UAAU,GAAK,IAAI,WAAT,CAAU;QACpC,OAAO,IAAI,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAEM,2BAAM,GAAb;QACQ,IAAA,KAAyB,IAAI,EAA3B,MAAM,YAAA,EAAE,UAAU,gBAAS,CAAC;QACpC,OAAO;YACL,OAAO,EAAE,4BAA4B;YACrC,MAAM,QAAA;YACN,UAAU,YAAA;SACX,CAAC;IACJ,CAAC;IACH,iBAAC;AAAD,CAAC,AA9ED,CAAgC,uBAAgB,GA8E/C;AA9EY,gCAAU"}
@@ -1,8 +1,8 @@
1
1
  import { JSONSerializable } from '../../../util/json';
2
2
  import { AccAddress } from '../../bech32';
3
3
  import { Any } from '@initia/initia.proto/google/protobuf/any';
4
- import { MsgExecuteScript as MsgExecuteScript_pb } from '@initia/initia.proto/initia/move/v1/tx';
5
- export declare class MsgExecuteScript extends JSONSerializable<MsgExecuteScript.Amino, MsgExecuteScript.Data, MsgExecuteScript.Proto> {
4
+ import { MsgScript as MsgScript_pb } from '@initia/initia.proto/initia/move/v1/tx';
5
+ export declare class MsgScript extends JSONSerializable<MsgScript.Amino, MsgScript.Data, MsgScript.Proto> {
6
6
  sender: AccAddress;
7
7
  code_bytes: string;
8
8
  type_args: string[];
@@ -14,23 +14,23 @@ export declare class MsgExecuteScript extends JSONSerializable<MsgExecuteScript.
14
14
  * @param args arguments of function to execute
15
15
  */
16
16
  constructor(sender: AccAddress, code_bytes: string, type_args?: string[], args?: string[]);
17
- static fromAmino(data: MsgExecuteScript.Amino): MsgExecuteScript;
18
- toAmino(): MsgExecuteScript.Amino;
19
- static fromProto(data: MsgExecuteScript.Proto): MsgExecuteScript;
20
- toProto(): MsgExecuteScript.Proto;
17
+ static fromAmino(data: MsgScript.Amino): MsgScript;
18
+ toAmino(): MsgScript.Amino;
19
+ static fromProto(data: MsgScript.Proto): MsgScript;
20
+ toProto(): MsgScript.Proto;
21
21
  packAny(): Any;
22
- static unpackAny(msgAny: Any): MsgExecuteScript;
23
- static fromData(data: MsgExecuteScript.Data): MsgExecuteScript;
24
- toData(): MsgExecuteScript.Data;
22
+ static unpackAny(msgAny: Any): MsgScript;
23
+ static fromData(data: MsgScript.Data): MsgScript;
24
+ toData(): MsgScript.Data;
25
25
  /**
26
- * Generate `MsgExecuteScript` from plain arguments(not bcs encoded)
26
+ * Generate `MsgScript` from plain arguments(not bcs encoded)
27
27
  *
28
28
  * @example
29
29
  * // In case of the types of arguments are ['u64', 'u64']
30
30
  * const abi = await lcd.move.scriptABI(script).then(res => res.abi)
31
31
  *
32
32
  * // msg that was generated with not encoded arguments
33
- * consg msg1 = MsgExecuteScript.fromPlainArgs(
33
+ * consg msg1 = MsgScript.fromPlainArgs(
34
34
  * 'init1abc...', // sender
35
35
  * script, // code bytes
36
36
  * [],
@@ -39,7 +39,7 @@ export declare class MsgExecuteScript extends JSONSerializable<MsgExecuteScript.
39
39
  * );
40
40
  *
41
41
  * // msg that was generated with the constructor
42
- * const msg2 = new MsgExecuteScript(
42
+ * const msg2 = new MsgScript(
43
43
  * 'init1abc...', // sender
44
44
  * script, // code bytes
45
45
  * [],
@@ -58,11 +58,11 @@ export declare class MsgExecuteScript extends JSONSerializable<MsgExecuteScript.
58
58
  * @param abi // base64 encoded script abi
59
59
  * @returns
60
60
  */
61
- static fromPlainArgs(sender: AccAddress, code_bytes: string, type_args: string[], args: any[], abi: string): MsgExecuteScript;
61
+ static fromPlainArgs(sender: AccAddress, code_bytes: string, type_args: string[], args: any[], abi: string): MsgScript;
62
62
  }
63
- export declare namespace MsgExecuteScript {
63
+ export declare namespace MsgScript {
64
64
  interface Amino {
65
- type: 'move/MsgExecuteScript';
65
+ type: 'move/MsgScript';
66
66
  value: {
67
67
  sender: AccAddress;
68
68
  code_bytes: string;
@@ -71,11 +71,11 @@ export declare namespace MsgExecuteScript {
71
71
  };
72
72
  }
73
73
  interface Data {
74
- '@type': '/initia.move.v1.MsgExecuteScript';
74
+ '@type': '/initia.move.v1.MsgScript';
75
75
  sender: AccAddress;
76
76
  code_bytes: string;
77
77
  type_args: string[];
78
78
  args: string[];
79
79
  }
80
- type Proto = MsgExecuteScript_pb;
80
+ type Proto = MsgScript_pb;
81
81
  }
@@ -15,20 +15,20 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.MsgExecuteScript = void 0;
18
+ exports.MsgScript = void 0;
19
19
  var json_1 = require("../../../util/json");
20
20
  var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
21
  var tx_1 = require("@initia/initia.proto/initia/move/v1/tx");
22
22
  var util_1 = require("../../../util");
23
- var MsgExecuteScript = /** @class */ (function (_super) {
24
- __extends(MsgExecuteScript, _super);
23
+ var MsgScript = /** @class */ (function (_super) {
24
+ __extends(MsgScript, _super);
25
25
  /**
26
26
  * @param sender contract user
27
27
  * @param code_bytes base64-encoded bytecode contents
28
28
  * @param type_args type arguments of function to execute
29
29
  * @param args arguments of function to execute
30
30
  */
31
- function MsgExecuteScript(sender, code_bytes, type_args, args) {
31
+ function MsgScript(sender, code_bytes, type_args, args) {
32
32
  if (type_args === void 0) { type_args = []; }
33
33
  if (args === void 0) { args = []; }
34
34
  var _this = _super.call(this) || this;
@@ -38,14 +38,14 @@ var MsgExecuteScript = /** @class */ (function (_super) {
38
38
  _this.args = args;
39
39
  return _this;
40
40
  }
41
- MsgExecuteScript.fromAmino = function (data) {
41
+ MsgScript.fromAmino = function (data) {
42
42
  var _a = data.value, sender = _a.sender, code_bytes = _a.code_bytes, type_args = _a.type_args, args = _a.args;
43
- return new MsgExecuteScript(sender, code_bytes, type_args, args);
43
+ return new MsgScript(sender, code_bytes, type_args, args);
44
44
  };
45
- MsgExecuteScript.prototype.toAmino = function () {
45
+ MsgScript.prototype.toAmino = function () {
46
46
  var _a = this, sender = _a.sender, code_bytes = _a.code_bytes, type_args = _a.type_args, args = _a.args;
47
47
  return {
48
- type: 'move/MsgExecuteScript',
48
+ type: 'move/MsgScript',
49
49
  value: {
50
50
  sender: sender,
51
51
  code_bytes: code_bytes,
@@ -54,35 +54,35 @@ var MsgExecuteScript = /** @class */ (function (_super) {
54
54
  },
55
55
  };
56
56
  };
57
- MsgExecuteScript.fromProto = function (data) {
58
- return new MsgExecuteScript(data.sender, Buffer.from(data.codeBytes).toString('base64'), data.typeArgs, data.args.map(function (arg) { return Buffer.from(arg).toString('base64'); }));
57
+ MsgScript.fromProto = function (data) {
58
+ return new MsgScript(data.sender, Buffer.from(data.codeBytes).toString('base64'), data.typeArgs, data.args.map(function (arg) { return Buffer.from(arg).toString('base64'); }));
59
59
  };
60
- MsgExecuteScript.prototype.toProto = function () {
60
+ MsgScript.prototype.toProto = function () {
61
61
  var _a = this, sender = _a.sender, code_bytes = _a.code_bytes, type_args = _a.type_args, args = _a.args;
62
- return tx_1.MsgExecuteScript.fromPartial({
62
+ return tx_1.MsgScript.fromPartial({
63
63
  sender: sender,
64
64
  codeBytes: Buffer.from(code_bytes, 'base64'),
65
65
  typeArgs: type_args,
66
66
  args: args.map(function (arg) { return Buffer.from(arg, 'base64'); }),
67
67
  });
68
68
  };
69
- MsgExecuteScript.prototype.packAny = function () {
69
+ MsgScript.prototype.packAny = function () {
70
70
  return any_1.Any.fromPartial({
71
- typeUrl: '/initia.move.v1.MsgExecuteScript',
72
- value: tx_1.MsgExecuteScript.encode(this.toProto()).finish(),
71
+ typeUrl: '/initia.move.v1.MsgScript',
72
+ value: tx_1.MsgScript.encode(this.toProto()).finish(),
73
73
  });
74
74
  };
75
- MsgExecuteScript.unpackAny = function (msgAny) {
76
- return MsgExecuteScript.fromProto(tx_1.MsgExecuteScript.decode(msgAny.value));
75
+ MsgScript.unpackAny = function (msgAny) {
76
+ return MsgScript.fromProto(tx_1.MsgScript.decode(msgAny.value));
77
77
  };
78
- MsgExecuteScript.fromData = function (data) {
78
+ MsgScript.fromData = function (data) {
79
79
  var sender = data.sender, code_bytes = data.code_bytes, type_args = data.type_args, args = data.args;
80
- return new MsgExecuteScript(sender, code_bytes, type_args, args);
80
+ return new MsgScript(sender, code_bytes, type_args, args);
81
81
  };
82
- MsgExecuteScript.prototype.toData = function () {
82
+ MsgScript.prototype.toData = function () {
83
83
  var _a = this, sender = _a.sender, code_bytes = _a.code_bytes, type_args = _a.type_args, args = _a.args;
84
84
  return {
85
- '@type': '/initia.move.v1.MsgExecuteScript',
85
+ '@type': '/initia.move.v1.MsgScript',
86
86
  sender: sender,
87
87
  code_bytes: code_bytes,
88
88
  type_args: type_args,
@@ -90,14 +90,14 @@ var MsgExecuteScript = /** @class */ (function (_super) {
90
90
  };
91
91
  };
92
92
  /**
93
- * Generate `MsgExecuteScript` from plain arguments(not bcs encoded)
93
+ * Generate `MsgScript` from plain arguments(not bcs encoded)
94
94
  *
95
95
  * @example
96
96
  * // In case of the types of arguments are ['u64', 'u64']
97
97
  * const abi = await lcd.move.scriptABI(script).then(res => res.abi)
98
98
  *
99
99
  * // msg that was generated with not encoded arguments
100
- * consg msg1 = MsgExecuteScript.fromPlainArgs(
100
+ * consg msg1 = MsgScript.fromPlainArgs(
101
101
  * 'init1abc...', // sender
102
102
  * script, // code bytes
103
103
  * [],
@@ -106,7 +106,7 @@ var MsgExecuteScript = /** @class */ (function (_super) {
106
106
  * );
107
107
  *
108
108
  * // msg that was generated with the constructor
109
- * const msg2 = new MsgExecuteScript(
109
+ * const msg2 = new MsgScript(
110
110
  * 'init1abc...', // sender
111
111
  * script, // code bytes
112
112
  * [],
@@ -125,11 +125,11 @@ var MsgExecuteScript = /** @class */ (function (_super) {
125
125
  * @param abi // base64 encoded script abi
126
126
  * @returns
127
127
  */
128
- MsgExecuteScript.fromPlainArgs = function (sender, code_bytes, type_args, args, abi) {
128
+ MsgScript.fromPlainArgs = function (sender, code_bytes, type_args, args, abi) {
129
129
  var functionAbi = JSON.parse(Buffer.from(abi, 'base64').toString());
130
- return new MsgExecuteScript(sender, code_bytes, type_args, (0, util_1.argsEncodeWithABI)(args, functionAbi));
130
+ return new MsgScript(sender, code_bytes, type_args, (0, util_1.argsEncodeWithABI)(args, functionAbi));
131
131
  };
132
- return MsgExecuteScript;
132
+ return MsgScript;
133
133
  }(json_1.JSONSerializable));
134
- exports.MsgExecuteScript = MsgExecuteScript;
135
- //# sourceMappingURL=MsgExecuteScript.js.map
134
+ exports.MsgScript = MsgScript;
135
+ //# sourceMappingURL=MsgScript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MsgScript.js","sourceRoot":"","sources":["../../../../src/core/move/msgs/MsgScript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gEAA+D;AAC/D,6DAAmF;AAEnF,sCAAkD;AAElD;IAA+B,6BAI9B;IAIC;;;;;OAKG;IACH,mBACS,MAAkB,EAClB,UAAkB,EAC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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACW,uBAAa,GAA3B,UACE,MAAkB,EAClB,UAAkB,EAClB,SAAmB,EACnB,IAAW,EACX,GAAW;QAEX,IAAM,WAAW,GAAoB,IAAI,CAAC,KAAK,CAC7C,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CACtC,CAAC;QAEF,OAAO,IAAI,SAAS,CAClB,MAAM,EACN,UAAU,EACV,SAAS,EACT,IAAA,wBAAiB,EAAC,IAAI,EAAE,WAAW,CAAC,CACrC,CAAC;IACJ,CAAC;IACH,gBAAC;AAAD,CAAC,AAlJD,CAA+B,uBAAgB,GAkJ9C;AAlJY,8BAAS"}
@@ -1,12 +1,12 @@
1
- import { MsgPublishModuleBundle } from './MsgPublishModuleBundle';
2
- import { MsgExecuteEntryFunction } from './MsgExecuteEntryFunction';
3
- import { MsgExecuteScript } from './MsgExecuteScript';
4
- export * from './MsgPublishModuleBundle';
5
- export * from './MsgExecuteEntryFunction';
6
- export * from './MsgExecuteScript';
7
- export declare type MoveMsg = MsgPublishModuleBundle | MsgExecuteEntryFunction | MsgExecuteScript;
1
+ import { MsgPublish } from './MsgPublish';
2
+ import { MsgExecute } from './MsgExecute';
3
+ import { MsgScript } from './MsgScript';
4
+ export * from './MsgPublish';
5
+ export * from './MsgExecute';
6
+ export * from './MsgScript';
7
+ export declare type MoveMsg = MsgPublish | MsgExecute | MsgScript;
8
8
  export declare namespace MoveMsg {
9
- type Amino = MsgPublishModuleBundle.Amino | MsgExecuteEntryFunction.Amino | MsgExecuteScript.Amino;
10
- type Data = MsgPublishModuleBundle.Data | MsgExecuteEntryFunction.Data | MsgExecuteScript.Data;
11
- type Proto = MsgPublishModuleBundle.Proto | MsgExecuteEntryFunction.Proto | MsgExecuteScript.Proto;
9
+ type Amino = MsgPublish.Amino | MsgExecute.Amino | MsgScript.Amino;
10
+ type Data = MsgPublish.Data | MsgExecute.Data | MsgScript.Data;
11
+ type Proto = MsgPublish.Proto | MsgExecute.Proto | MsgScript.Proto;
12
12
  }
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./MsgPublishModuleBundle"), exports);
18
- __exportStar(require("./MsgExecuteEntryFunction"), exports);
19
- __exportStar(require("./MsgExecuteScript"), exports);
17
+ __exportStar(require("./MsgPublish"), exports);
18
+ __exportStar(require("./MsgExecute"), exports);
19
+ __exportStar(require("./MsgScript"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/move/msgs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,2DAAyC;AACzC,4DAA0C;AAC1C,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/move/msgs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B"}
@@ -1,10 +1,10 @@
1
1
  import { JSONSerializable } from '../../../util/json';
2
2
  import { Any } from '@initia/initia.proto/google/protobuf/any';
3
- import { EntryFunctionProposal as EntryFunctionProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
3
+ import { ExecuteProposal as ExecuteProposal_pb } from '@initia/initia.proto/initia/move//v1/proposal';
4
4
  /**
5
- * EntryFunctionProposal gov proposal content type to execute entry function to the system
5
+ * ExecuteProposal gov proposal content type to execute entry function to the system
6
6
  */
7
- export declare class EntryFunctionProposal extends JSONSerializable<EntryFunctionProposal.Amino, EntryFunctionProposal.Data, EntryFunctionProposal.Proto> {
7
+ export declare class ExecuteProposal extends JSONSerializable<ExecuteProposal.Amino, ExecuteProposal.Data, ExecuteProposal.Proto> {
8
8
  title: string;
9
9
  description: string;
10
10
  module_name: string;
@@ -20,18 +20,18 @@ export declare class EntryFunctionProposal extends JSONSerializable<EntryFunctio
20
20
  * @param args move function args
21
21
  */
22
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;
23
+ static fromAmino(data: ExecuteProposal.Amino): ExecuteProposal;
24
+ toAmino(): ExecuteProposal.Amino;
25
+ static fromData(data: ExecuteProposal.Data): ExecuteProposal;
26
+ toData(): ExecuteProposal.Data;
27
+ static fromProto(proto: ExecuteProposal.Proto): ExecuteProposal;
28
+ toProto(): ExecuteProposal.Proto;
29
29
  packAny(): Any;
30
- static unpackAny(msgAny: Any): EntryFunctionProposal;
30
+ static unpackAny(msgAny: Any): ExecuteProposal;
31
31
  }
32
- export declare namespace EntryFunctionProposal {
32
+ export declare namespace ExecuteProposal {
33
33
  interface Amino {
34
- type: 'move/EntryFunctionProposal';
34
+ type: 'move/ExecuteProposal';
35
35
  value: {
36
36
  title: string;
37
37
  description: string;
@@ -42,7 +42,7 @@ export declare namespace EntryFunctionProposal {
42
42
  };
43
43
  }
44
44
  interface Data {
45
- '@type': '/initia.move.v1.EntryFunctionProposal';
45
+ '@type': '/initia.move.v1.ExecuteProposal';
46
46
  title: string;
47
47
  description: string;
48
48
  module_name: string;
@@ -50,5 +50,5 @@ export declare namespace EntryFunctionProposal {
50
50
  type_args: string[];
51
51
  args: string[];
52
52
  }
53
- type Proto = EntryFunctionProposal_pb;
53
+ type Proto = ExecuteProposal_pb;
54
54
  }
@@ -15,15 +15,15 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.EntryFunctionProposal = void 0;
18
+ exports.ExecuteProposal = void 0;
19
19
  var json_1 = require("../../../util/json");
20
20
  var any_1 = require("@initia/initia.proto/google/protobuf/any");
21
21
  var proposal_1 = require("@initia/initia.proto/initia/move//v1/proposal");
22
22
  /**
23
- * EntryFunctionProposal gov proposal content type to execute entry function to the system
23
+ * ExecuteProposal gov proposal content type to execute entry function to the system
24
24
  */
25
- var EntryFunctionProposal = /** @class */ (function (_super) {
26
- __extends(EntryFunctionProposal, _super);
25
+ var ExecuteProposal = /** @class */ (function (_super) {
26
+ __extends(ExecuteProposal, _super);
27
27
  /**
28
28
  * @param title a short summary
29
29
  * @param description a human readable text
@@ -32,7 +32,7 @@ var EntryFunctionProposal = /** @class */ (function (_super) {
32
32
  * @param type_args move function type args
33
33
  * @param args move function args
34
34
  */
35
- function EntryFunctionProposal(title, description, module_name, function_name, type_args, args) {
35
+ function ExecuteProposal(title, description, module_name, function_name, type_args, args) {
36
36
  var _this = _super.call(this) || this;
37
37
  _this.title = title;
38
38
  _this.description = description;
@@ -42,14 +42,14 @@ var EntryFunctionProposal = /** @class */ (function (_super) {
42
42
  _this.args = args;
43
43
  return _this;
44
44
  }
45
- EntryFunctionProposal.fromAmino = function (data) {
45
+ ExecuteProposal.fromAmino = function (data) {
46
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);
47
+ return new ExecuteProposal(title, description, module_name, function_name, type_args, args);
48
48
  };
49
- EntryFunctionProposal.prototype.toAmino = function () {
49
+ ExecuteProposal.prototype.toAmino = function () {
50
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
51
  return {
52
- type: 'move/EntryFunctionProposal',
52
+ type: 'move/ExecuteProposal',
53
53
  value: {
54
54
  title: title,
55
55
  description: description,
@@ -60,14 +60,14 @@ var EntryFunctionProposal = /** @class */ (function (_super) {
60
60
  },
61
61
  };
62
62
  };
63
- EntryFunctionProposal.fromData = function (data) {
63
+ ExecuteProposal.fromData = function (data) {
64
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);
65
+ return new ExecuteProposal(title, description, module_name, function_name, type_args, args);
66
66
  };
67
- EntryFunctionProposal.prototype.toData = function () {
67
+ ExecuteProposal.prototype.toData = function () {
68
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
69
  return {
70
- '@type': '/initia.move.v1.EntryFunctionProposal',
70
+ '@type': '/initia.move.v1.ExecuteProposal',
71
71
  title: title,
72
72
  description: description,
73
73
  module_name: module_name,
@@ -76,12 +76,12 @@ var EntryFunctionProposal = /** @class */ (function (_super) {
76
76
  args: args,
77
77
  };
78
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'); }));
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
81
  };
82
- EntryFunctionProposal.prototype.toProto = function () {
82
+ ExecuteProposal.prototype.toProto = function () {
83
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({
84
+ return proposal_1.ExecuteProposal.fromPartial({
85
85
  title: title,
86
86
  description: description,
87
87
  moduleName: module_name,
@@ -90,16 +90,16 @@ var EntryFunctionProposal = /** @class */ (function (_super) {
90
90
  args: args.map(function (arg) { return Buffer.from(arg, 'base64'); }),
91
91
  });
92
92
  };
93
- EntryFunctionProposal.prototype.packAny = function () {
93
+ ExecuteProposal.prototype.packAny = function () {
94
94
  return any_1.Any.fromPartial({
95
- typeUrl: '/initia.move.v1.EntryFunctionProposal',
96
- value: proposal_1.EntryFunctionProposal.encode(this.toProto()).finish(),
95
+ typeUrl: '/initia.move.v1.ExecuteProposal',
96
+ value: proposal_1.ExecuteProposal.encode(this.toProto()).finish(),
97
97
  });
98
98
  };
99
- EntryFunctionProposal.unpackAny = function (msgAny) {
100
- return EntryFunctionProposal.fromProto(proposal_1.EntryFunctionProposal.decode(msgAny.value));
99
+ ExecuteProposal.unpackAny = function (msgAny) {
100
+ return ExecuteProposal.fromProto(proposal_1.ExecuteProposal.decode(msgAny.value));
101
101
  };
102
- return EntryFunctionProposal;
102
+ return ExecuteProposal;
103
103
  }(json_1.JSONSerializable));
104
- exports.EntryFunctionProposal = EntryFunctionProposal;
105
- //# sourceMappingURL=EntryFunctionProposal.js.map
104
+ exports.ExecuteProposal = ExecuteProposal;
105
+ //# sourceMappingURL=ExecuteProposal.js.map
@@ -0,0 +1 @@
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,G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BAAC;AAAD,CAAC,AAlID,CAAqC,uBAAgB,GAkIpD;AAlIY,0CAAe"}
@@ -0,0 +1,42 @@
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
+ }