@initia/initia.js 0.0.41 → 0.0.43
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/LCDClient.d.ts +2 -2
- package/dist/client/lcd/LCDClient.js +1 -1
- package/dist/client/lcd/LCDClient.js.map +1 -1
- package/dist/client/lcd/api/MoveAPI.d.ts +3 -1
- package/dist/client/lcd/api/MoveAPI.js +1 -0
- package/dist/client/lcd/api/MoveAPI.js.map +1 -1
- package/dist/client/lcd/api/RewardAPI.d.ts +31 -0
- package/dist/client/lcd/api/RewardAPI.js +111 -0
- package/dist/client/lcd/api/RewardAPI.js.map +1 -0
- package/dist/client/lcd/api/index.d.ts +1 -1
- package/dist/client/lcd/api/index.js +1 -1
- package/dist/client/lcd/api/index.js.map +1 -1
- package/dist/core/gov/Proposal.d.ts +5 -5
- package/dist/core/gov/Proposal.js +6 -0
- package/dist/core/gov/Proposal.js.map +1 -1
- package/dist/core/move/msgs/MsgExecute.d.ts +2 -2
- package/dist/core/move/msgs/MsgExecute.js +3 -3
- package/dist/core/move/msgs/MsgExecute.js.map +1 -1
- package/dist/core/move/msgs/MsgPublish.d.ts +1 -1
- package/dist/core/move/msgs/MsgPublish.js +2 -2
- package/dist/core/move/msgs/MsgPublish.js.map +1 -1
- package/dist/core/move/msgs/MsgScript.d.ts +2 -2
- package/dist/core/move/msgs/MsgScript.js +3 -3
- package/dist/core/move/msgs/MsgScript.js.map +1 -1
- package/dist/core/move/proposals/DelistProposal.d.ts +50 -0
- package/dist/core/move/proposals/DelistProposal.js +100 -0
- package/dist/core/move/proposals/DelistProposal.js.map +1 -0
- package/dist/core/move/proposals/WhitelistProposal.d.ts +1 -1
- package/dist/core/move/proposals/WhitelistProposal.js +1 -1
- package/dist/core/move/proposals/WhitelistProposal.js.map +1 -1
- package/dist/core/move/proposals/index.d.ts +1 -0
- package/dist/core/move/proposals/index.js +1 -0
- package/dist/core/move/proposals/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,100 @@
|
|
|
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.DelistProposal = 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
|
+
* DelistProposal proposal which supports delisting whitelisted dex pairs
|
|
24
|
+
*/
|
|
25
|
+
var DelistProposal = /** @class */ (function (_super) {
|
|
26
|
+
__extends(DelistProposal, _super);
|
|
27
|
+
/**
|
|
28
|
+
* @param title a short summary
|
|
29
|
+
* @param description a human readable text
|
|
30
|
+
* @param coin_a coin A struct tag
|
|
31
|
+
* @param coin_b coin B struct tag
|
|
32
|
+
* @param coin_lp coin LP struct tag
|
|
33
|
+
*/
|
|
34
|
+
function DelistProposal(title, description, coin_a, coin_b, coin_lp) {
|
|
35
|
+
var _this = _super.call(this) || this;
|
|
36
|
+
_this.title = title;
|
|
37
|
+
_this.description = description;
|
|
38
|
+
_this.coin_a = coin_a;
|
|
39
|
+
_this.coin_b = coin_b;
|
|
40
|
+
_this.coin_lp = coin_lp;
|
|
41
|
+
return _this;
|
|
42
|
+
}
|
|
43
|
+
DelistProposal.fromAmino = function (data) {
|
|
44
|
+
var _a = data.value, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
45
|
+
return new DelistProposal(title, description, coin_a, coin_b, coin_lp);
|
|
46
|
+
};
|
|
47
|
+
DelistProposal.prototype.toAmino = function () {
|
|
48
|
+
var _a = this, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
49
|
+
return {
|
|
50
|
+
type: 'move/DelistProposal',
|
|
51
|
+
value: {
|
|
52
|
+
title: title,
|
|
53
|
+
description: description,
|
|
54
|
+
coin_a: coin_a,
|
|
55
|
+
coin_b: coin_b,
|
|
56
|
+
coin_lp: coin_lp,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
DelistProposal.fromData = function (data) {
|
|
61
|
+
var title = data.title, description = data.description, coin_a = data.coin_a, coin_b = data.coin_b, coin_lp = data.coin_lp;
|
|
62
|
+
return new DelistProposal(title, description, coin_a, coin_b, coin_lp);
|
|
63
|
+
};
|
|
64
|
+
DelistProposal.prototype.toData = function () {
|
|
65
|
+
var _a = this, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
66
|
+
return {
|
|
67
|
+
'@type': '/initia.move.v1.DelistProposal',
|
|
68
|
+
title: title,
|
|
69
|
+
description: description,
|
|
70
|
+
coin_a: coin_a,
|
|
71
|
+
coin_b: coin_b,
|
|
72
|
+
coin_lp: coin_lp,
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
DelistProposal.fromProto = function (proto) {
|
|
76
|
+
return new DelistProposal(proto.title, proto.description, proto.coinA, proto.coinB, proto.coinLp);
|
|
77
|
+
};
|
|
78
|
+
DelistProposal.prototype.toProto = function () {
|
|
79
|
+
var _a = this, title = _a.title, description = _a.description, coin_a = _a.coin_a, coin_b = _a.coin_b, coin_lp = _a.coin_lp;
|
|
80
|
+
return proposal_1.DelistProposal.fromPartial({
|
|
81
|
+
title: title,
|
|
82
|
+
description: description,
|
|
83
|
+
coinA: coin_a,
|
|
84
|
+
coinB: coin_b,
|
|
85
|
+
coinLp: coin_lp,
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
DelistProposal.prototype.packAny = function () {
|
|
89
|
+
return any_1.Any.fromPartial({
|
|
90
|
+
typeUrl: '/initia.move.v1.DelistProposal',
|
|
91
|
+
value: proposal_1.DelistProposal.encode(this.toProto()).finish(),
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
DelistProposal.unpackAny = function (msgAny) {
|
|
95
|
+
return DelistProposal.fromProto(proposal_1.DelistProposal.decode(msgAny.value));
|
|
96
|
+
};
|
|
97
|
+
return DelistProposal;
|
|
98
|
+
}(json_1.JSONSerializable));
|
|
99
|
+
exports.DelistProposal = DelistProposal;
|
|
100
|
+
//# sourceMappingURL=DelistProposal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelistProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/DelistProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,yEAAmG;AAEnG;;GAEG;AACH;IAAoC,kCAInC;IACC;;;;;;OAMG;IACH,wBACS,KAAa,EACb,WAAmB,EACnB,MAAc,EACd,MAAc,EACd,OAAe;QALxB,YAOE,iBAAO,SACR;QAPQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,YAAM,GAAN,MAAM,CAAQ;QACd,YAAM,GAA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SACR,CAAC;IACJ,CAAC;IAEa,wBAAS,GAAvB,UAAwB,KAA2B;QACjD,OAAO,IAAI,cAAc,CACvB,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,MAAM,CACb,CAAC;IACJ,CAAC;IAEM,gCAAO,GAAd;QACQ,IAAA,KAAkD,IAAI,EAApD,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAS,CAAC;QAC7D,OAAO,yBAAiB,CAAC,WAAW,CAAC;YACnC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAEM,gCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,gCAAgC;YACzC,KAAK,EAAE,yBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SACzD,CAAC,CAAC;IACL,CAAC;IAEa,wBAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,cAAc,CAAC,SAAS,CAC7B,yBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CACvC,CAAC;IACJ,CAAC;IACH,qBAAC;AAAD,CAAC,AA7FD,CAAoC,uBAAgB,GA6FnD;AA7FY,wCAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSerializable } from '../../../util/json';
|
|
2
2
|
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
3
|
-
import { WhitelistProposal as WhitelistProposal_pb } from '@initia/initia.proto/initia/move
|
|
3
|
+
import { WhitelistProposal as WhitelistProposal_pb } from '@initia/initia.proto/initia/move/v1/proposal';
|
|
4
4
|
/**
|
|
5
5
|
* WhitelistProposal proposal which supports whitelisting dex pairs
|
|
6
6
|
*/
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.WhitelistProposal = void 0;
|
|
19
19
|
var json_1 = require("../../../util/json");
|
|
20
20
|
var any_1 = require("@initia/initia.proto/google/protobuf/any");
|
|
21
|
-
var proposal_1 = require("@initia/initia.proto/initia/move
|
|
21
|
+
var proposal_1 = require("@initia/initia.proto/initia/move/v1/proposal");
|
|
22
22
|
/**
|
|
23
23
|
* WhitelistProposal proposal which supports whitelisting dex pairs
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhitelistProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/WhitelistProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"WhitelistProposal.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/WhitelistProposal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAsD;AACtD,gEAA+D;AAC/D,yEAAyG;AAEzG;;GAEG;AACH;IAAuC,qCAItC;IACC;;;;;;OAMG;IACH,2BACS,KAAa,EACb,WAAmB,EACnB,MAAc,EACd,MAAc,EACd,OAAe;QALxB,YAOE,iBAAO,SACR;QAPQ,WAAK,GAAL,KAAK,CAAQ;QACb,iBAAW,GAAX,WAAW,CAAQ;QACnB,YAAM,GAAN,MAAM,CAAQ;QACd,YAAM,GAAN,MAAM,CAAQ;QACd,aAAO,GAAP,OAAO,CAAQ;;IAGxB,CAAC;IAEa,2BAAS,GAAvB,UAAwB,IAA6B;QAEjD,IAAA,KACE,IAAI,MADgD,EAA7C,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAE,CAC/C;QACT,OAAO,IAAI,iBAAiB,CAAC,KAAK,EAAE,WAAW,E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I,EAApD,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAS,CAAC;QAC7D,OAAO,4BAAoB,CAAC,WAAW,CAAC;YACtC,KAAK,OAAA;YACL,WAAW,aAAA;YACX,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAEM,mCAAO,GAAd;QACE,OAAO,SAAG,CAAC,WAAW,CAAC;YACrB,OAAO,EAAE,mCAAmC;YAC5C,KAAK,EAAE,4BAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;SAC5D,CAAC,CAAC;IACL,CAAC;IAEa,2BAAS,GAAvB,UAAwB,MAAW;QACjC,OAAO,iBAAiB,CAAC,SAAS,CAChC,4BAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAC1C,CAAC;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AA7FD,CAAuC,uBAAgB,GA6FtD;AA7FY,8CAAiB"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./OperationsProposal"), exports);
|
|
|
18
18
|
__exportStar(require("./ExecuteOperation"), exports);
|
|
19
19
|
__exportStar(require("./PublishOperation"), exports);
|
|
20
20
|
__exportStar(require("./WhitelistProposal"), exports);
|
|
21
|
+
__exportStar(require("./DelistProposal"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/move/proposals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,mDAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@initia/initia.js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"description": "The JavaScript SDK for Initia",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "InitiaLabs",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"webpack-cli": "^4.10.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@initia/initia.proto": "^0.0.
|
|
88
|
+
"@initia/initia.proto": "^0.0.20-alpha1",
|
|
89
89
|
"@ledgerhq/hw-transport": "^6.27.12",
|
|
90
90
|
"@ledgerhq/hw-transport-webhid": "^6.27.12",
|
|
91
91
|
"@ledgerhq/hw-transport-webusb": "^6.27.12",
|