@initia/initia.js 0.0.27 → 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 (40) 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/core/Msg.js +18 -18
  6. package/dist/core/Msg.js.map +1 -1
  7. package/dist/core/bech32.js +2 -1
  8. package/dist/core/bech32.js.map +1 -1
  9. package/dist/core/gov/Proposal.d.ts +5 -5
  10. package/dist/core/gov/Proposal.js +12 -12
  11. package/dist/core/gov/Proposal.js.map +1 -1
  12. package/dist/core/move/msgs/{MsgExecuteEntryFunction.d.ts → MsgExecute.d.ts} +16 -16
  13. package/dist/core/move/msgs/{MsgExecuteEntryFunction.js → MsgExecute.js} +28 -28
  14. package/dist/core/move/msgs/MsgExecute.js.map +1 -0
  15. package/dist/core/move/msgs/MsgPublish.d.ts +36 -0
  16. package/dist/core/move/msgs/{MsgPublishModuleBundle.js → MsgPublish.js} +24 -24
  17. package/dist/core/move/msgs/MsgPublish.js.map +1 -0
  18. package/dist/core/move/msgs/{MsgExecuteScript.d.ts → MsgScript.d.ts} +17 -17
  19. package/dist/core/move/msgs/{MsgExecuteScript.js → MsgScript.js} +29 -29
  20. package/dist/core/move/msgs/MsgScript.js.map +1 -0
  21. package/dist/core/move/msgs/index.d.ts +10 -10
  22. package/dist/core/move/msgs/index.js +3 -3
  23. package/dist/core/move/msgs/index.js.map +1 -1
  24. package/dist/core/move/proposals/{ExecuteEntryFunctionProposal.d.ts → ExecuteProposal.d.ts} +14 -14
  25. package/dist/core/move/proposals/{ExecuteEntryFunctionProposal.js → ExecuteProposal.js} +25 -25
  26. package/dist/core/move/proposals/ExecuteProposal.js.map +1 -0
  27. package/dist/core/move/proposals/PublishProposal.d.ts +42 -0
  28. package/dist/core/move/proposals/{PublishStdModuleProposal.js → PublishProposal.js} +25 -25
  29. package/dist/core/move/proposals/PublishProposal.js.map +1 -0
  30. package/dist/core/move/proposals/index.d.ts +2 -2
  31. package/dist/core/move/proposals/index.js +2 -2
  32. package/dist/core/move/proposals/index.js.map +1 -1
  33. package/package.json +2 -2
  34. package/dist/core/move/msgs/MsgExecuteEntryFunction.js.map +0 -1
  35. package/dist/core/move/msgs/MsgExecuteScript.js.map +0 -1
  36. package/dist/core/move/msgs/MsgPublishModuleBundle.d.ts +0 -36
  37. package/dist/core/move/msgs/MsgPublishModuleBundle.js.map +0 -1
  38. package/dist/core/move/proposals/ExecuteEntryFunctionProposal.js.map +0 -1
  39. package/dist/core/move/proposals/PublishStdModuleProposal.d.ts +0 -42
  40. package/dist/core/move/proposals/PublishStdModuleProposal.js.map +0 -1
@@ -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,EACzB,SAAwB,EACxB,IAAmB;QADnB,0BAAA,EAAA,cAAwB;QACxB,qBAAA,EAAA,SAAmB;QAJrB,YAME,iBAAO,SAGR;QARQ,YAAM,GAAN,MAAM,CAAY;QAClB,gBAAU,GAAV,UAAU,CAAQ;QAKzB,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACnB,CAAC;IAEa,mBAAS,GAAvB,UAAwB,IAAqB;QAEzC,IAAA,KACE,IAAI,MADwC,EAArC,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAE,CACvC;QACT,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEM,2BAAO,GAAd;QACQ,IAAA,KAA0C,IAAI,EAA5C,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,SAAS,eAAA,EAAE,I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AAS,CAAC,SAAS,CAAC,cAAY,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,CAAC;IAEa,kBAAQ,GAAtB,UAAuB,IAAoB;QACjC,IAAA,MAAM,GAAkC,IAAI,OAAtC,EAAE,UAAU,GAAsB,IAAI,WAA1B,EAAE,SAAS,GAAW,IAAI,UAAf,EAAE,IAAI,GAAK,IAAI,KAAT,CAAU;QACrD,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEM,0BAAM,GAAb;QACQ,IAAA,KAA0C,IAAI,EAA5C,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAS,CAAC;QACrD,OAAO;YACL,OAAO,EAAE,2BAA2B;YACpC,MAAM,QAAA;YACN,UAAU,YAAA;YACV,SAAS,WAAA;YACT,IAAI,MAAA;SACL,CAAC;IACJ,CAAC;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 { ExecuteEntryFunctionProposal as ExecuteEntryFunctionProposal_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
- * ExecuteEntryFunctionProposal 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 ExecuteEntryFunctionProposal extends JSONSerializable<ExecuteEntryFunctionProposal.Amino, ExecuteEntryFunctionProposal.Data, ExecuteEntryFunctionProposal.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 ExecuteEntryFunctionProposal extends JSONSerializable<Execu
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: ExecuteEntryFunctionProposal.Amino): ExecuteEntryFunctionProposal;
24
- toAmino(): ExecuteEntryFunctionProposal.Amino;
25
- static fromData(data: ExecuteEntryFunctionProposal.Data): ExecuteEntryFunctionProposal;
26
- toData(): ExecuteEntryFunctionProposal.Data;
27
- static fromProto(proto: ExecuteEntryFunctionProposal.Proto): ExecuteEntryFunctionProposal;
28
- toProto(): ExecuteEntryFunctionProposal.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): ExecuteEntryFunctionProposal;
30
+ static unpackAny(msgAny: Any): ExecuteProposal;
31
31
  }
32
- export declare namespace ExecuteEntryFunctionProposal {
32
+ export declare namespace ExecuteProposal {
33
33
  interface Amino {
34
- type: 'move/ExecuteEntryFunctionProposal';
34
+ type: 'move/ExecuteProposal';
35
35
  value: {
36
36
  title: string;
37
37
  description: string;
@@ -42,7 +42,7 @@ export declare namespace ExecuteEntryFunctionProposal {
42
42
  };
43
43
  }
44
44
  interface Data {
45
- '@type': '/initia.move.v1.ExecuteEntryFunctionProposal';
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 ExecuteEntryFunctionProposal {
50
50
  type_args: string[];
51
51
  args: string[];
52
52
  }
53
- type Proto = ExecuteEntryFunctionProposal_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.ExecuteEntryFunctionProposal = 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
- * ExecuteEntryFunctionProposal 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 ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
26
- __extends(ExecuteEntryFunctionProposal, _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 ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
32
32
  * @param type_args move function type args
33
33
  * @param args move function args
34
34
  */
35
- function ExecuteEntryFunctionProposal(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 ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
42
42
  _this.args = args;
43
43
  return _this;
44
44
  }
45
- ExecuteEntryFunctionProposal.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 ExecuteEntryFunctionProposal(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
- ExecuteEntryFunctionProposal.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/ExecuteEntryFunctionProposal',
52
+ type: 'move/ExecuteProposal',
53
53
  value: {
54
54
  title: title,
55
55
  description: description,
@@ -60,14 +60,14 @@ var ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
60
60
  },
61
61
  };
62
62
  };
63
- ExecuteEntryFunctionProposal.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 ExecuteEntryFunctionProposal(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
- ExecuteEntryFunctionProposal.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.ExecuteEntryFunctionProposal',
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 ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
76
76
  args: args,
77
77
  };
78
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'); }));
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
- ExecuteEntryFunctionProposal.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.ExecuteEntryFunctionProposal.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 ExecuteEntryFunctionProposal = /** @class */ (function (_super) {
90
90
  args: args.map(function (arg) { return Buffer.from(arg, 'base64'); }),
91
91
  });
92
92
  };
93
- ExecuteEntryFunctionProposal.prototype.packAny = function () {
93
+ ExecuteProposal.prototype.packAny = function () {
94
94
  return any_1.Any.fromPartial({
95
- typeUrl: '/initia.move.v1.ExecuteEntryFunctionProposal',
96
- value: proposal_1.ExecuteEntryFunctionProposal.encode(this.toProto()).finish(),
95
+ typeUrl: '/initia.move.v1.ExecuteProposal',
96
+ value: proposal_1.ExecuteProposal.encode(this.toProto()).finish(),
97
97
  });
98
98
  };
99
- ExecuteEntryFunctionProposal.unpackAny = function (msgAny) {
100
- return ExecuteEntryFunctionProposal.fromProto(proposal_1.ExecuteEntryFunctionProposal.decode(msgAny.value));
99
+ ExecuteProposal.unpackAny = function (msgAny) {
100
+ return ExecuteProposal.fromProto(proposal_1.ExecuteProposal.decode(msgAny.value));
101
101
  };
102
- return ExecuteEntryFunctionProposal;
102
+ return ExecuteProposal;
103
103
  }(json_1.JSONSerializable));
104
- exports.ExecuteEntryFunctionProposal = ExecuteEntryFunctionProposal;
105
- //# sourceMappingURL=ExecuteEntryFunctionProposal.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,GAAvB,UACE,IAA2B;QAGzB,IAAA,KAQE,IAAI,MADL,EANC,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,SAAS,eAAA,EACT,IAAI,UACL,CACM;QACT,OAAO,IAAI,eAAe,CACxB,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;IAEM,iCAAO,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AI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAnC,CAAmC,CAAC,CAC3D,CAAC;IACJ,CAAC;IAEM,iCAAO,GAAd;QACQ,IAAA,KACJ,IAAI,EADE,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,WAAW,iBAAA,EAAE,aAAa,mBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UACjE,CAAC;QACP,OAAO,0BAAkB,CAAC,WAAW,CAAC;YACpC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,UAAU,EAAE,WAAW;YACvB,YAAY,EAAE,aAAa;YAC3B,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,EAA1B,CAA0B,CAAC;SAClD,CAAC,CAAC;IACL,CAAC;IAEM,iCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,iCAAiC;YAC1C,KAAK,EAAE,0BAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC1D,CAAC,CAAC;IACL,CAAC;IAEa,yBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,eAAe,CAAC,SAAS,CAC9B,0BAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACxC,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AAlID,CAAqC,uBAAgB,GAkIpD;AAlIY,0CAAe"}
@@ -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
+ }
@@ -15,35 +15,35 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.PublishStdModuleProposal = void 0;
18
+ exports.PublishProposal = 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
- * PublishStdModuleProposal gov proposal content type to submit MOVE code to the system
23
+ * PublishProposal gov proposal content type to submit MOVE code to the system
24
24
  */
25
- var PublishStdModuleProposal = /** @class */ (function (_super) {
26
- __extends(PublishStdModuleProposal, _super);
25
+ var PublishProposal = /** @class */ (function (_super) {
26
+ __extends(PublishProposal, _super);
27
27
  /**
28
28
  * @param title a short summary
29
29
  * @param description a human readable text
30
30
  * @param code_bytes can be raw or gzip compressed
31
31
  */
32
- function PublishStdModuleProposal(title, description, code_bytes) {
32
+ function PublishProposal(title, description, code_bytes) {
33
33
  var _this = _super.call(this) || this;
34
34
  _this.title = title;
35
35
  _this.description = description;
36
36
  _this.code_bytes = code_bytes;
37
37
  return _this;
38
38
  }
39
- PublishStdModuleProposal.fromAmino = function (data) {
39
+ PublishProposal.fromAmino = function (data) {
40
40
  var _a = data.value, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
41
- return new PublishStdModuleProposal(title, description, code_bytes);
41
+ return new PublishProposal(title, description, code_bytes);
42
42
  };
43
- PublishStdModuleProposal.prototype.toAmino = function () {
43
+ PublishProposal.prototype.toAmino = function () {
44
44
  var _a = this, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
45
45
  return {
46
- type: 'move/PublishStdModuleProposal',
46
+ type: 'move/PublishProposal',
47
47
  value: {
48
48
  title: title,
49
49
  description: description,
@@ -51,40 +51,40 @@ var PublishStdModuleProposal = /** @class */ (function (_super) {
51
51
  },
52
52
  };
53
53
  };
54
- PublishStdModuleProposal.fromData = function (data) {
54
+ PublishProposal.fromData = function (data) {
55
55
  var title = data.title, description = data.description, code_bytes = data.code_bytes;
56
- return new PublishStdModuleProposal(title, description, code_bytes);
56
+ return new PublishProposal(title, description, code_bytes);
57
57
  };
58
- PublishStdModuleProposal.prototype.toData = function () {
58
+ PublishProposal.prototype.toData = function () {
59
59
  var _a = this, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
60
60
  return {
61
- '@type': '/initia.move.v1.PublishStdModuleProposal',
61
+ '@type': '/initia.move.v1.PublishProposal',
62
62
  title: title,
63
63
  description: description,
64
64
  code_bytes: code_bytes,
65
65
  };
66
66
  };
67
- PublishStdModuleProposal.fromProto = function (proto) {
68
- return new PublishStdModuleProposal(proto.title, proto.description, Buffer.from(proto.codeBytes).toString('base64'));
67
+ PublishProposal.fromProto = function (proto) {
68
+ return new PublishProposal(proto.title, proto.description, Buffer.from(proto.codeBytes).toString('base64'));
69
69
  };
70
- PublishStdModuleProposal.prototype.toProto = function () {
70
+ PublishProposal.prototype.toProto = function () {
71
71
  var _a = this, title = _a.title, description = _a.description, code_bytes = _a.code_bytes;
72
- return proposal_1.PublishStdModuleProposal.fromPartial({
72
+ return proposal_1.PublishProposal.fromPartial({
73
73
  title: title,
74
74
  description: description,
75
75
  codeBytes: Buffer.from(code_bytes, 'base64'),
76
76
  });
77
77
  };
78
- PublishStdModuleProposal.prototype.packAny = function () {
78
+ PublishProposal.prototype.packAny = function () {
79
79
  return any_1.Any.fromPartial({
80
- typeUrl: '/initia.move.v1.PublishStdModuleProposal',
81
- value: proposal_1.PublishStdModuleProposal.encode(this.toProto()).finish(),
80
+ typeUrl: '/initia.move.v1.PublishProposal',
81
+ value: proposal_1.PublishProposal.encode(this.toProto()).finish(),
82
82
  });
83
83
  };
84
- PublishStdModuleProposal.unpackAny = function (msgAny) {
85
- return PublishStdModuleProposal.fromProto(proposal_1.PublishStdModuleProposal.decode(msgAny.value));
84
+ PublishProposal.unpackAny = function (msgAny) {
85
+ return PublishProposal.fromProto(proposal_1.PublishProposal.decode(msgAny.value));
86
86
  };
87
- return PublishStdModuleProposal;
87
+ return PublishProposal;
88
88
  }(json_1.JSONSerializable));
89
- exports.PublishStdModuleProposal = PublishStdModuleProposal;
90
- //# sourceMappingURL=PublishStdModuleProposal.js.map
89
+ exports.PublishProposal = PublishProposal;
90
+ //# sourceMappingURL=PublishProposal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/PublishProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,0EAAsG;AAEtG;;GAEG;AACH;IAAqC,mCAIpC;IACC;;;;OAIG;IACH,yBACS,KAAa,EACb,WAAmB,EACnB,UAAkB;QAH3B,YAKE,iBAAO,SACR;QALQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,g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W,iBAAA,EAAE,UAAU,gBAAS,CAAC;QAChD,OAAO,0BAAkB,CAAC,WAAW,CAAC;YACpC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IAEM,iCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,iCAAiC;YAC1C,KAAK,EAAE,0BAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC1D,CAAC,CAAC;IACL,CAAC;IAEa,yBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,eAAe,CAAC,SAAS,CAC9B,0BAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACxC,CAAC;IACJ,CAAC;IACH,sBAAC;AAAD,CAAC,AAvFD,CAAqC,uBAAgB,GAuFpD;AAvFY,0CAAe"}
@@ -1,2 +1,2 @@
1
- export * from './PublishStdModuleProposal';
2
- export * from './ExecuteEntryFunctionProposal';
1
+ export * from './PublishProposal';
2
+ export * from './ExecuteProposal';
@@ -14,6 +14,6 @@ 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("./PublishStdModuleProposal"), exports);
18
- __exportStar(require("./ExecuteEntryFunctionProposal"), exports);
17
+ __exportStar(require("./PublishProposal"), exports);
18
+ __exportStar(require("./ExecuteProposal"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@initia/initia.js",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "The JavaScript SDK for Initia",
5
5
  "license": "MIT",
6
6
  "author": "InitiaLabs",
@@ -82,7 +82,7 @@
82
82
  "webpack-cli": "^4.10.0"
83
83
  },
84
84
  "dependencies": {
85
- "@initia/initia.proto": "^0.0.7-alpha1",
85
+ "@initia/initia.proto": "^0.0.9-alpha1",
86
86
  "@mysten/bcs": "^0.5.0",
87
87
  "axios": "^0.27.2",
88
88
  "bech32": "^2.0.0",