carbon-js-sdk 0.3.43-dev.3 → 0.3.44
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/lib/CarbonSDK.js +2 -2
- package/lib/codec/broker/amm.d.ts +1 -1
- package/lib/codec/broker/amm.js +18 -16
- package/lib/codec/index.d.ts +12 -15
- package/lib/codec/index.js +37 -56
- package/lib/codec/liquiditypool/event.d.ts +0 -14
- package/lib/codec/liquiditypool/event.js +1 -107
- package/lib/codec/liquiditypool/genesis.d.ts +1 -2
- package/lib/codec/liquiditypool/genesis.js +2 -17
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -40
- package/lib/codec/liquiditypool/liquiditypool.js +2 -320
- package/lib/codec/liquiditypool/proposal.d.ts +25 -37
- package/lib/codec/liquiditypool/proposal.js +61 -139
- package/lib/codec/liquiditypool/query.d.ts +24 -85
- package/lib/codec/liquiditypool/query.js +23 -338
- package/lib/codec/liquiditypool/tx.d.ts +67 -101
- package/lib/codec/liquiditypool/tx.js +597 -817
- package/lib/codec/order/order.d.ts +0 -1
- package/lib/codec/order/order.js +1 -45
- package/lib/modules/admin.d.ts +2 -0
- package/lib/modules/admin.js +26 -0
- package/lib/modules/coin.d.ts +0 -19
- package/lib/modules/coin.js +0 -39
- package/lib/modules/gov.js +14 -0
- package/lib/modules/liquiditypool.d.ts +2 -11
- package/lib/modules/liquiditypool.js +2 -33
- package/lib/modules/market.d.ts +0 -11
- package/lib/modules/market.js +0 -19
- package/lib/provider/amino/types/admin.js +4 -0
- package/lib/provider/amino/types/coin.js +2 -2
- package/lib/provider/amino/types/gov.js +36 -0
- package/lib/provider/amino/types/liquidityPool.js +2 -0
- package/lib/provider/keplr/KeplrAccount.d.ts +2 -0
- package/lib/provider/keplr/KeplrAccount.js +37 -8
- package/lib/util/blockchain.js +10 -0
- package/lib/util/gov.d.ts +2 -0
- package/lib/util/gov.js +6 -0
- package/lib/util/tx.d.ts +6 -9
- package/lib/wallet/CarbonWallet.js +2 -2
- package/lib/websocket/models.d.ts +2 -7
- package/package.json +1 -1
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams
|
|
3
|
+
import { LinkPoolParams, UnlinkPoolParams, SetRewardCurveParams, SetCommitmentCurveParams, SetRewardsWeightsParams, UpdatePoolParams } from "./tx";
|
|
4
4
|
export declare const protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
5
|
+
export interface LinkPoolProposal {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
msg?: LinkPoolParams;
|
|
9
|
+
}
|
|
10
|
+
export interface UnlinkPoolProposal {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
msg?: UnlinkPoolParams;
|
|
14
|
+
}
|
|
5
15
|
export interface SetRewardCurveProposal {
|
|
6
16
|
title: string;
|
|
7
17
|
description: string;
|
|
@@ -22,21 +32,20 @@ export interface UpdatePoolProposal {
|
|
|
22
32
|
description: string;
|
|
23
33
|
msg?: UpdatePoolParams;
|
|
24
34
|
}
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
35
|
+
export declare const LinkPoolProposal: {
|
|
36
|
+
encode(message: LinkPoolProposal, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LinkPoolProposal;
|
|
38
|
+
fromJSON(object: any): LinkPoolProposal;
|
|
39
|
+
toJSON(message: LinkPoolProposal): unknown;
|
|
40
|
+
fromPartial(object: DeepPartial<LinkPoolProposal>): LinkPoolProposal;
|
|
41
|
+
};
|
|
42
|
+
export declare const UnlinkPoolProposal: {
|
|
43
|
+
encode(message: UnlinkPoolProposal, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UnlinkPoolProposal;
|
|
45
|
+
fromJSON(object: any): UnlinkPoolProposal;
|
|
46
|
+
toJSON(message: UnlinkPoolProposal): unknown;
|
|
47
|
+
fromPartial(object: DeepPartial<UnlinkPoolProposal>): UnlinkPoolProposal;
|
|
48
|
+
};
|
|
40
49
|
export declare const SetRewardCurveProposal: {
|
|
41
50
|
encode(message: SetRewardCurveProposal, writer?: _m0.Writer): _m0.Writer;
|
|
42
51
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetRewardCurveProposal;
|
|
@@ -65,27 +74,6 @@ export declare const UpdatePoolProposal: {
|
|
|
65
74
|
toJSON(message: UpdatePoolProposal): unknown;
|
|
66
75
|
fromPartial(object: DeepPartial<UpdatePoolProposal>): UpdatePoolProposal;
|
|
67
76
|
};
|
|
68
|
-
export declare const CreatePoolRouteProposal: {
|
|
69
|
-
encode(message: CreatePoolRouteProposal, writer?: _m0.Writer): _m0.Writer;
|
|
70
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CreatePoolRouteProposal;
|
|
71
|
-
fromJSON(object: any): CreatePoolRouteProposal;
|
|
72
|
-
toJSON(message: CreatePoolRouteProposal): unknown;
|
|
73
|
-
fromPartial(object: DeepPartial<CreatePoolRouteProposal>): CreatePoolRouteProposal;
|
|
74
|
-
};
|
|
75
|
-
export declare const RemovePoolRouteProposal: {
|
|
76
|
-
encode(message: RemovePoolRouteProposal, writer?: _m0.Writer): _m0.Writer;
|
|
77
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RemovePoolRouteProposal;
|
|
78
|
-
fromJSON(object: any): RemovePoolRouteProposal;
|
|
79
|
-
toJSON(message: RemovePoolRouteProposal): unknown;
|
|
80
|
-
fromPartial(object: DeepPartial<RemovePoolRouteProposal>): RemovePoolRouteProposal;
|
|
81
|
-
};
|
|
82
|
-
export declare const UpdatePoolRouteProposal: {
|
|
83
|
-
encode(message: UpdatePoolRouteProposal, writer?: _m0.Writer): _m0.Writer;
|
|
84
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdatePoolRouteProposal;
|
|
85
|
-
fromJSON(object: any): UpdatePoolRouteProposal;
|
|
86
|
-
toJSON(message: UpdatePoolRouteProposal): unknown;
|
|
87
|
-
fromPartial(object: DeepPartial<UpdatePoolRouteProposal>): UpdatePoolRouteProposal;
|
|
88
|
-
};
|
|
89
77
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
90
78
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
91
79
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -3,90 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.UpdatePoolProposal = exports.SetRewardsWeightsProposal = exports.SetCommitmentCurveProposal = exports.SetRewardCurveProposal = exports.UnlinkPoolProposal = exports.LinkPoolProposal = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
const tx_1 = require("./tx");
|
|
11
11
|
exports.protobufPackage = "Switcheo.carbon.liquiditypool";
|
|
12
|
-
const
|
|
13
|
-
exports.
|
|
14
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
-
if (message.title !== "") {
|
|
16
|
-
writer.uint32(10).string(message.title);
|
|
17
|
-
}
|
|
18
|
-
if (message.description !== "") {
|
|
19
|
-
writer.uint32(18).string(message.description);
|
|
20
|
-
}
|
|
21
|
-
if (message.msg !== undefined) {
|
|
22
|
-
tx_1.SetRewardCurveParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
23
|
-
}
|
|
24
|
-
return writer;
|
|
25
|
-
},
|
|
26
|
-
decode(input, length) {
|
|
27
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
28
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = Object.assign({}, baseSetRewardCurveProposal);
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 1:
|
|
34
|
-
message.title = reader.string();
|
|
35
|
-
break;
|
|
36
|
-
case 2:
|
|
37
|
-
message.description = reader.string();
|
|
38
|
-
break;
|
|
39
|
-
case 3:
|
|
40
|
-
message.msg = tx_1.SetRewardCurveParams.decode(reader, reader.uint32());
|
|
41
|
-
break;
|
|
42
|
-
default:
|
|
43
|
-
reader.skipType(tag & 7);
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return message;
|
|
48
|
-
},
|
|
49
|
-
fromJSON(object) {
|
|
50
|
-
const message = Object.assign({}, baseSetRewardCurveProposal);
|
|
51
|
-
message.title =
|
|
52
|
-
object.title !== undefined && object.title !== null
|
|
53
|
-
? String(object.title)
|
|
54
|
-
: "";
|
|
55
|
-
message.description =
|
|
56
|
-
object.description !== undefined && object.description !== null
|
|
57
|
-
? String(object.description)
|
|
58
|
-
: "";
|
|
59
|
-
message.msg =
|
|
60
|
-
object.msg !== undefined && object.msg !== null
|
|
61
|
-
? tx_1.SetRewardCurveParams.fromJSON(object.msg)
|
|
62
|
-
: undefined;
|
|
63
|
-
return message;
|
|
64
|
-
},
|
|
65
|
-
toJSON(message) {
|
|
66
|
-
const obj = {};
|
|
67
|
-
message.title !== undefined && (obj.title = message.title);
|
|
68
|
-
message.description !== undefined &&
|
|
69
|
-
(obj.description = message.description);
|
|
70
|
-
message.msg !== undefined &&
|
|
71
|
-
(obj.msg = message.msg
|
|
72
|
-
? tx_1.SetRewardCurveParams.toJSON(message.msg)
|
|
73
|
-
: undefined);
|
|
74
|
-
return obj;
|
|
75
|
-
},
|
|
76
|
-
fromPartial(object) {
|
|
77
|
-
var _a, _b;
|
|
78
|
-
const message = Object.assign({}, baseSetRewardCurveProposal);
|
|
79
|
-
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
80
|
-
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
81
|
-
message.msg =
|
|
82
|
-
object.msg !== undefined && object.msg !== null
|
|
83
|
-
? tx_1.SetRewardCurveParams.fromPartial(object.msg)
|
|
84
|
-
: undefined;
|
|
85
|
-
return message;
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
const baseSetCommitmentCurveProposal = { title: "", description: "" };
|
|
89
|
-
exports.SetCommitmentCurveProposal = {
|
|
12
|
+
const baseLinkPoolProposal = { title: "", description: "" };
|
|
13
|
+
exports.LinkPoolProposal = {
|
|
90
14
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
91
15
|
if (message.title !== "") {
|
|
92
16
|
writer.uint32(10).string(message.title);
|
|
@@ -95,14 +19,14 @@ exports.SetCommitmentCurveProposal = {
|
|
|
95
19
|
writer.uint32(18).string(message.description);
|
|
96
20
|
}
|
|
97
21
|
if (message.msg !== undefined) {
|
|
98
|
-
tx_1.
|
|
22
|
+
tx_1.LinkPoolParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
99
23
|
}
|
|
100
24
|
return writer;
|
|
101
25
|
},
|
|
102
26
|
decode(input, length) {
|
|
103
27
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
104
28
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
-
const message = Object.assign({},
|
|
29
|
+
const message = Object.assign({}, baseLinkPoolProposal);
|
|
106
30
|
while (reader.pos < end) {
|
|
107
31
|
const tag = reader.uint32();
|
|
108
32
|
switch (tag >>> 3) {
|
|
@@ -113,7 +37,7 @@ exports.SetCommitmentCurveProposal = {
|
|
|
113
37
|
message.description = reader.string();
|
|
114
38
|
break;
|
|
115
39
|
case 3:
|
|
116
|
-
message.msg = tx_1.
|
|
40
|
+
message.msg = tx_1.LinkPoolParams.decode(reader, reader.uint32());
|
|
117
41
|
break;
|
|
118
42
|
default:
|
|
119
43
|
reader.skipType(tag & 7);
|
|
@@ -123,7 +47,7 @@ exports.SetCommitmentCurveProposal = {
|
|
|
123
47
|
return message;
|
|
124
48
|
},
|
|
125
49
|
fromJSON(object) {
|
|
126
|
-
const message = Object.assign({},
|
|
50
|
+
const message = Object.assign({}, baseLinkPoolProposal);
|
|
127
51
|
message.title =
|
|
128
52
|
object.title !== undefined && object.title !== null
|
|
129
53
|
? String(object.title)
|
|
@@ -134,7 +58,7 @@ exports.SetCommitmentCurveProposal = {
|
|
|
134
58
|
: "";
|
|
135
59
|
message.msg =
|
|
136
60
|
object.msg !== undefined && object.msg !== null
|
|
137
|
-
? tx_1.
|
|
61
|
+
? tx_1.LinkPoolParams.fromJSON(object.msg)
|
|
138
62
|
: undefined;
|
|
139
63
|
return message;
|
|
140
64
|
},
|
|
@@ -144,25 +68,23 @@ exports.SetCommitmentCurveProposal = {
|
|
|
144
68
|
message.description !== undefined &&
|
|
145
69
|
(obj.description = message.description);
|
|
146
70
|
message.msg !== undefined &&
|
|
147
|
-
(obj.msg = message.msg
|
|
148
|
-
? tx_1.SetCommitmentCurveParams.toJSON(message.msg)
|
|
149
|
-
: undefined);
|
|
71
|
+
(obj.msg = message.msg ? tx_1.LinkPoolParams.toJSON(message.msg) : undefined);
|
|
150
72
|
return obj;
|
|
151
73
|
},
|
|
152
74
|
fromPartial(object) {
|
|
153
75
|
var _a, _b;
|
|
154
|
-
const message = Object.assign({},
|
|
76
|
+
const message = Object.assign({}, baseLinkPoolProposal);
|
|
155
77
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
156
78
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
157
79
|
message.msg =
|
|
158
80
|
object.msg !== undefined && object.msg !== null
|
|
159
|
-
? tx_1.
|
|
81
|
+
? tx_1.LinkPoolParams.fromPartial(object.msg)
|
|
160
82
|
: undefined;
|
|
161
83
|
return message;
|
|
162
84
|
},
|
|
163
85
|
};
|
|
164
|
-
const
|
|
165
|
-
exports.
|
|
86
|
+
const baseUnlinkPoolProposal = { title: "", description: "" };
|
|
87
|
+
exports.UnlinkPoolProposal = {
|
|
166
88
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
167
89
|
if (message.title !== "") {
|
|
168
90
|
writer.uint32(10).string(message.title);
|
|
@@ -171,14 +93,14 @@ exports.SetRewardsWeightsProposal = {
|
|
|
171
93
|
writer.uint32(18).string(message.description);
|
|
172
94
|
}
|
|
173
95
|
if (message.msg !== undefined) {
|
|
174
|
-
tx_1.
|
|
96
|
+
tx_1.UnlinkPoolParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
175
97
|
}
|
|
176
98
|
return writer;
|
|
177
99
|
},
|
|
178
100
|
decode(input, length) {
|
|
179
101
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
180
102
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
181
|
-
const message = Object.assign({},
|
|
103
|
+
const message = Object.assign({}, baseUnlinkPoolProposal);
|
|
182
104
|
while (reader.pos < end) {
|
|
183
105
|
const tag = reader.uint32();
|
|
184
106
|
switch (tag >>> 3) {
|
|
@@ -189,7 +111,7 @@ exports.SetRewardsWeightsProposal = {
|
|
|
189
111
|
message.description = reader.string();
|
|
190
112
|
break;
|
|
191
113
|
case 3:
|
|
192
|
-
message.msg = tx_1.
|
|
114
|
+
message.msg = tx_1.UnlinkPoolParams.decode(reader, reader.uint32());
|
|
193
115
|
break;
|
|
194
116
|
default:
|
|
195
117
|
reader.skipType(tag & 7);
|
|
@@ -199,7 +121,7 @@ exports.SetRewardsWeightsProposal = {
|
|
|
199
121
|
return message;
|
|
200
122
|
},
|
|
201
123
|
fromJSON(object) {
|
|
202
|
-
const message = Object.assign({},
|
|
124
|
+
const message = Object.assign({}, baseUnlinkPoolProposal);
|
|
203
125
|
message.title =
|
|
204
126
|
object.title !== undefined && object.title !== null
|
|
205
127
|
? String(object.title)
|
|
@@ -210,7 +132,7 @@ exports.SetRewardsWeightsProposal = {
|
|
|
210
132
|
: "";
|
|
211
133
|
message.msg =
|
|
212
134
|
object.msg !== undefined && object.msg !== null
|
|
213
|
-
? tx_1.
|
|
135
|
+
? tx_1.UnlinkPoolParams.fromJSON(object.msg)
|
|
214
136
|
: undefined;
|
|
215
137
|
return message;
|
|
216
138
|
},
|
|
@@ -221,24 +143,24 @@ exports.SetRewardsWeightsProposal = {
|
|
|
221
143
|
(obj.description = message.description);
|
|
222
144
|
message.msg !== undefined &&
|
|
223
145
|
(obj.msg = message.msg
|
|
224
|
-
? tx_1.
|
|
146
|
+
? tx_1.UnlinkPoolParams.toJSON(message.msg)
|
|
225
147
|
: undefined);
|
|
226
148
|
return obj;
|
|
227
149
|
},
|
|
228
150
|
fromPartial(object) {
|
|
229
151
|
var _a, _b;
|
|
230
|
-
const message = Object.assign({},
|
|
152
|
+
const message = Object.assign({}, baseUnlinkPoolProposal);
|
|
231
153
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
232
154
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
233
155
|
message.msg =
|
|
234
156
|
object.msg !== undefined && object.msg !== null
|
|
235
|
-
? tx_1.
|
|
157
|
+
? tx_1.UnlinkPoolParams.fromPartial(object.msg)
|
|
236
158
|
: undefined;
|
|
237
159
|
return message;
|
|
238
160
|
},
|
|
239
161
|
};
|
|
240
|
-
const
|
|
241
|
-
exports.
|
|
162
|
+
const baseSetRewardCurveProposal = { title: "", description: "" };
|
|
163
|
+
exports.SetRewardCurveProposal = {
|
|
242
164
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
243
165
|
if (message.title !== "") {
|
|
244
166
|
writer.uint32(10).string(message.title);
|
|
@@ -247,14 +169,14 @@ exports.UpdatePoolProposal = {
|
|
|
247
169
|
writer.uint32(18).string(message.description);
|
|
248
170
|
}
|
|
249
171
|
if (message.msg !== undefined) {
|
|
250
|
-
tx_1.
|
|
172
|
+
tx_1.SetRewardCurveParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
251
173
|
}
|
|
252
174
|
return writer;
|
|
253
175
|
},
|
|
254
176
|
decode(input, length) {
|
|
255
177
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
256
178
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
257
|
-
const message = Object.assign({},
|
|
179
|
+
const message = Object.assign({}, baseSetRewardCurveProposal);
|
|
258
180
|
while (reader.pos < end) {
|
|
259
181
|
const tag = reader.uint32();
|
|
260
182
|
switch (tag >>> 3) {
|
|
@@ -265,7 +187,7 @@ exports.UpdatePoolProposal = {
|
|
|
265
187
|
message.description = reader.string();
|
|
266
188
|
break;
|
|
267
189
|
case 3:
|
|
268
|
-
message.msg = tx_1.
|
|
190
|
+
message.msg = tx_1.SetRewardCurveParams.decode(reader, reader.uint32());
|
|
269
191
|
break;
|
|
270
192
|
default:
|
|
271
193
|
reader.skipType(tag & 7);
|
|
@@ -275,7 +197,7 @@ exports.UpdatePoolProposal = {
|
|
|
275
197
|
return message;
|
|
276
198
|
},
|
|
277
199
|
fromJSON(object) {
|
|
278
|
-
const message = Object.assign({},
|
|
200
|
+
const message = Object.assign({}, baseSetRewardCurveProposal);
|
|
279
201
|
message.title =
|
|
280
202
|
object.title !== undefined && object.title !== null
|
|
281
203
|
? String(object.title)
|
|
@@ -286,7 +208,7 @@ exports.UpdatePoolProposal = {
|
|
|
286
208
|
: "";
|
|
287
209
|
message.msg =
|
|
288
210
|
object.msg !== undefined && object.msg !== null
|
|
289
|
-
? tx_1.
|
|
211
|
+
? tx_1.SetRewardCurveParams.fromJSON(object.msg)
|
|
290
212
|
: undefined;
|
|
291
213
|
return message;
|
|
292
214
|
},
|
|
@@ -297,24 +219,24 @@ exports.UpdatePoolProposal = {
|
|
|
297
219
|
(obj.description = message.description);
|
|
298
220
|
message.msg !== undefined &&
|
|
299
221
|
(obj.msg = message.msg
|
|
300
|
-
? tx_1.
|
|
222
|
+
? tx_1.SetRewardCurveParams.toJSON(message.msg)
|
|
301
223
|
: undefined);
|
|
302
224
|
return obj;
|
|
303
225
|
},
|
|
304
226
|
fromPartial(object) {
|
|
305
227
|
var _a, _b;
|
|
306
|
-
const message = Object.assign({},
|
|
228
|
+
const message = Object.assign({}, baseSetRewardCurveProposal);
|
|
307
229
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
308
230
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
309
231
|
message.msg =
|
|
310
232
|
object.msg !== undefined && object.msg !== null
|
|
311
|
-
? tx_1.
|
|
233
|
+
? tx_1.SetRewardCurveParams.fromPartial(object.msg)
|
|
312
234
|
: undefined;
|
|
313
235
|
return message;
|
|
314
236
|
},
|
|
315
237
|
};
|
|
316
|
-
const
|
|
317
|
-
exports.
|
|
238
|
+
const baseSetCommitmentCurveProposal = { title: "", description: "" };
|
|
239
|
+
exports.SetCommitmentCurveProposal = {
|
|
318
240
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
319
241
|
if (message.title !== "") {
|
|
320
242
|
writer.uint32(10).string(message.title);
|
|
@@ -323,14 +245,14 @@ exports.CreatePoolRouteProposal = {
|
|
|
323
245
|
writer.uint32(18).string(message.description);
|
|
324
246
|
}
|
|
325
247
|
if (message.msg !== undefined) {
|
|
326
|
-
tx_1.
|
|
248
|
+
tx_1.SetCommitmentCurveParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
327
249
|
}
|
|
328
250
|
return writer;
|
|
329
251
|
},
|
|
330
252
|
decode(input, length) {
|
|
331
253
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
332
254
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
333
|
-
const message = Object.assign({},
|
|
255
|
+
const message = Object.assign({}, baseSetCommitmentCurveProposal);
|
|
334
256
|
while (reader.pos < end) {
|
|
335
257
|
const tag = reader.uint32();
|
|
336
258
|
switch (tag >>> 3) {
|
|
@@ -341,7 +263,7 @@ exports.CreatePoolRouteProposal = {
|
|
|
341
263
|
message.description = reader.string();
|
|
342
264
|
break;
|
|
343
265
|
case 3:
|
|
344
|
-
message.msg = tx_1.
|
|
266
|
+
message.msg = tx_1.SetCommitmentCurveParams.decode(reader, reader.uint32());
|
|
345
267
|
break;
|
|
346
268
|
default:
|
|
347
269
|
reader.skipType(tag & 7);
|
|
@@ -351,7 +273,7 @@ exports.CreatePoolRouteProposal = {
|
|
|
351
273
|
return message;
|
|
352
274
|
},
|
|
353
275
|
fromJSON(object) {
|
|
354
|
-
const message = Object.assign({},
|
|
276
|
+
const message = Object.assign({}, baseSetCommitmentCurveProposal);
|
|
355
277
|
message.title =
|
|
356
278
|
object.title !== undefined && object.title !== null
|
|
357
279
|
? String(object.title)
|
|
@@ -362,7 +284,7 @@ exports.CreatePoolRouteProposal = {
|
|
|
362
284
|
: "";
|
|
363
285
|
message.msg =
|
|
364
286
|
object.msg !== undefined && object.msg !== null
|
|
365
|
-
? tx_1.
|
|
287
|
+
? tx_1.SetCommitmentCurveParams.fromJSON(object.msg)
|
|
366
288
|
: undefined;
|
|
367
289
|
return message;
|
|
368
290
|
},
|
|
@@ -373,24 +295,24 @@ exports.CreatePoolRouteProposal = {
|
|
|
373
295
|
(obj.description = message.description);
|
|
374
296
|
message.msg !== undefined &&
|
|
375
297
|
(obj.msg = message.msg
|
|
376
|
-
? tx_1.
|
|
298
|
+
? tx_1.SetCommitmentCurveParams.toJSON(message.msg)
|
|
377
299
|
: undefined);
|
|
378
300
|
return obj;
|
|
379
301
|
},
|
|
380
302
|
fromPartial(object) {
|
|
381
303
|
var _a, _b;
|
|
382
|
-
const message = Object.assign({},
|
|
304
|
+
const message = Object.assign({}, baseSetCommitmentCurveProposal);
|
|
383
305
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
384
306
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
385
307
|
message.msg =
|
|
386
308
|
object.msg !== undefined && object.msg !== null
|
|
387
|
-
? tx_1.
|
|
309
|
+
? tx_1.SetCommitmentCurveParams.fromPartial(object.msg)
|
|
388
310
|
: undefined;
|
|
389
311
|
return message;
|
|
390
312
|
},
|
|
391
313
|
};
|
|
392
|
-
const
|
|
393
|
-
exports.
|
|
314
|
+
const baseSetRewardsWeightsProposal = { title: "", description: "" };
|
|
315
|
+
exports.SetRewardsWeightsProposal = {
|
|
394
316
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
395
317
|
if (message.title !== "") {
|
|
396
318
|
writer.uint32(10).string(message.title);
|
|
@@ -399,14 +321,14 @@ exports.RemovePoolRouteProposal = {
|
|
|
399
321
|
writer.uint32(18).string(message.description);
|
|
400
322
|
}
|
|
401
323
|
if (message.msg !== undefined) {
|
|
402
|
-
tx_1.
|
|
324
|
+
tx_1.SetRewardsWeightsParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
403
325
|
}
|
|
404
326
|
return writer;
|
|
405
327
|
},
|
|
406
328
|
decode(input, length) {
|
|
407
329
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
408
330
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
409
|
-
const message = Object.assign({},
|
|
331
|
+
const message = Object.assign({}, baseSetRewardsWeightsProposal);
|
|
410
332
|
while (reader.pos < end) {
|
|
411
333
|
const tag = reader.uint32();
|
|
412
334
|
switch (tag >>> 3) {
|
|
@@ -417,7 +339,7 @@ exports.RemovePoolRouteProposal = {
|
|
|
417
339
|
message.description = reader.string();
|
|
418
340
|
break;
|
|
419
341
|
case 3:
|
|
420
|
-
message.msg = tx_1.
|
|
342
|
+
message.msg = tx_1.SetRewardsWeightsParams.decode(reader, reader.uint32());
|
|
421
343
|
break;
|
|
422
344
|
default:
|
|
423
345
|
reader.skipType(tag & 7);
|
|
@@ -427,7 +349,7 @@ exports.RemovePoolRouteProposal = {
|
|
|
427
349
|
return message;
|
|
428
350
|
},
|
|
429
351
|
fromJSON(object) {
|
|
430
|
-
const message = Object.assign({},
|
|
352
|
+
const message = Object.assign({}, baseSetRewardsWeightsProposal);
|
|
431
353
|
message.title =
|
|
432
354
|
object.title !== undefined && object.title !== null
|
|
433
355
|
? String(object.title)
|
|
@@ -438,7 +360,7 @@ exports.RemovePoolRouteProposal = {
|
|
|
438
360
|
: "";
|
|
439
361
|
message.msg =
|
|
440
362
|
object.msg !== undefined && object.msg !== null
|
|
441
|
-
? tx_1.
|
|
363
|
+
? tx_1.SetRewardsWeightsParams.fromJSON(object.msg)
|
|
442
364
|
: undefined;
|
|
443
365
|
return message;
|
|
444
366
|
},
|
|
@@ -449,24 +371,24 @@ exports.RemovePoolRouteProposal = {
|
|
|
449
371
|
(obj.description = message.description);
|
|
450
372
|
message.msg !== undefined &&
|
|
451
373
|
(obj.msg = message.msg
|
|
452
|
-
? tx_1.
|
|
374
|
+
? tx_1.SetRewardsWeightsParams.toJSON(message.msg)
|
|
453
375
|
: undefined);
|
|
454
376
|
return obj;
|
|
455
377
|
},
|
|
456
378
|
fromPartial(object) {
|
|
457
379
|
var _a, _b;
|
|
458
|
-
const message = Object.assign({},
|
|
380
|
+
const message = Object.assign({}, baseSetRewardsWeightsProposal);
|
|
459
381
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
460
382
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
461
383
|
message.msg =
|
|
462
384
|
object.msg !== undefined && object.msg !== null
|
|
463
|
-
? tx_1.
|
|
385
|
+
? tx_1.SetRewardsWeightsParams.fromPartial(object.msg)
|
|
464
386
|
: undefined;
|
|
465
387
|
return message;
|
|
466
388
|
},
|
|
467
389
|
};
|
|
468
|
-
const
|
|
469
|
-
exports.
|
|
390
|
+
const baseUpdatePoolProposal = { title: "", description: "" };
|
|
391
|
+
exports.UpdatePoolProposal = {
|
|
470
392
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
471
393
|
if (message.title !== "") {
|
|
472
394
|
writer.uint32(10).string(message.title);
|
|
@@ -475,14 +397,14 @@ exports.UpdatePoolRouteProposal = {
|
|
|
475
397
|
writer.uint32(18).string(message.description);
|
|
476
398
|
}
|
|
477
399
|
if (message.msg !== undefined) {
|
|
478
|
-
tx_1.
|
|
400
|
+
tx_1.UpdatePoolParams.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
479
401
|
}
|
|
480
402
|
return writer;
|
|
481
403
|
},
|
|
482
404
|
decode(input, length) {
|
|
483
405
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
484
406
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
485
|
-
const message = Object.assign({},
|
|
407
|
+
const message = Object.assign({}, baseUpdatePoolProposal);
|
|
486
408
|
while (reader.pos < end) {
|
|
487
409
|
const tag = reader.uint32();
|
|
488
410
|
switch (tag >>> 3) {
|
|
@@ -493,7 +415,7 @@ exports.UpdatePoolRouteProposal = {
|
|
|
493
415
|
message.description = reader.string();
|
|
494
416
|
break;
|
|
495
417
|
case 3:
|
|
496
|
-
message.msg = tx_1.
|
|
418
|
+
message.msg = tx_1.UpdatePoolParams.decode(reader, reader.uint32());
|
|
497
419
|
break;
|
|
498
420
|
default:
|
|
499
421
|
reader.skipType(tag & 7);
|
|
@@ -503,7 +425,7 @@ exports.UpdatePoolRouteProposal = {
|
|
|
503
425
|
return message;
|
|
504
426
|
},
|
|
505
427
|
fromJSON(object) {
|
|
506
|
-
const message = Object.assign({},
|
|
428
|
+
const message = Object.assign({}, baseUpdatePoolProposal);
|
|
507
429
|
message.title =
|
|
508
430
|
object.title !== undefined && object.title !== null
|
|
509
431
|
? String(object.title)
|
|
@@ -514,7 +436,7 @@ exports.UpdatePoolRouteProposal = {
|
|
|
514
436
|
: "";
|
|
515
437
|
message.msg =
|
|
516
438
|
object.msg !== undefined && object.msg !== null
|
|
517
|
-
? tx_1.
|
|
439
|
+
? tx_1.UpdatePoolParams.fromJSON(object.msg)
|
|
518
440
|
: undefined;
|
|
519
441
|
return message;
|
|
520
442
|
},
|
|
@@ -525,18 +447,18 @@ exports.UpdatePoolRouteProposal = {
|
|
|
525
447
|
(obj.description = message.description);
|
|
526
448
|
message.msg !== undefined &&
|
|
527
449
|
(obj.msg = message.msg
|
|
528
|
-
? tx_1.
|
|
450
|
+
? tx_1.UpdatePoolParams.toJSON(message.msg)
|
|
529
451
|
: undefined);
|
|
530
452
|
return obj;
|
|
531
453
|
},
|
|
532
454
|
fromPartial(object) {
|
|
533
455
|
var _a, _b;
|
|
534
|
-
const message = Object.assign({},
|
|
456
|
+
const message = Object.assign({}, baseUpdatePoolProposal);
|
|
535
457
|
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
536
458
|
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
537
459
|
message.msg =
|
|
538
460
|
object.msg !== undefined && object.msg !== null
|
|
539
|
-
? tx_1.
|
|
461
|
+
? tx_1.UpdatePoolParams.fromPartial(object.msg)
|
|
540
462
|
: undefined;
|
|
541
463
|
return message;
|
|
542
464
|
},
|