@mictonode/widget 0.3.9
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/.github/FUNDING.yml +3 -0
- package/.github/workflows/npm-publish.yml +34 -0
- package/.prettierrc.json +9 -0
- package/.vscode/extensions.json +3 -0
- package/README.md +41 -0
- package/dist/main-172a6585.js +404361 -0
- package/dist/ping-widget.js +13 -0
- package/dist/ping-widget.umd.cjs +96 -0
- package/dist/query.lcd-2adf1c0c.js +129 -0
- package/dist/query.rpc.Query-b53908e7.js +2316 -0
- package/dist/tx.rpc.msg-d234ff40.js +37 -0
- package/dist/tx.rpc.msg-f7a80a78.js +21 -0
- package/example/.vscode/extensions.json +3 -0
- package/example/README.md +7 -0
- package/example/index.html +12 -0
- package/example/package.json +19 -0
- package/example/pnpm-lock.yaml +465 -0
- package/example/public/cdn.html +19 -0
- package/example/src/App.vue +73 -0
- package/example/src/main.js +4 -0
- package/example/vite.config.js +7 -0
- package/index.html +12 -0
- package/lib/components/ConnectWallet/index.vue +267 -0
- package/lib/components/TokenConvert/index.vue +1033 -0
- package/lib/components/TokenConvert/tokens.ts +37 -0
- package/lib/components/TxDialog/index.vue +432 -0
- package/lib/components/TxDialog/messages/Delegate.vue +194 -0
- package/lib/components/TxDialog/messages/Deposit.vue +97 -0
- package/lib/components/TxDialog/messages/MsgDelegate.ts +0 -0
- package/lib/components/TxDialog/messages/Redelegate.vue +189 -0
- package/lib/components/TxDialog/messages/Send.vue +142 -0
- package/lib/components/TxDialog/messages/Transfer.vue +248 -0
- package/lib/components/TxDialog/messages/Unbond.vue +137 -0
- package/lib/components/TxDialog/messages/Vote.vue +63 -0
- package/lib/components/TxDialog/messages/Withdraw.vue +56 -0
- package/lib/components/TxDialog/messages/WithdrawCommission.vue +75 -0
- package/lib/components/TxDialog/wasm/ClearAdmin.vue +56 -0
- package/lib/components/TxDialog/wasm/ExecuteContract.vue +99 -0
- package/lib/components/TxDialog/wasm/InstantiateContract.vue +109 -0
- package/lib/components/TxDialog/wasm/MigrateContract.vue +77 -0
- package/lib/components/TxDialog/wasm/MigrateContract2.vue +77 -0
- package/lib/components/TxDialog/wasm/StoreCode.vue +101 -0
- package/lib/components/TxDialog/wasm/UpdateAdmin.vue +75 -0
- package/lib/main.css +7 -0
- package/lib/main.ts +23 -0
- package/lib/utils/TokenUnitConverter.ts +45 -0
- package/lib/utils/format.ts +16 -0
- package/lib/utils/http.ts +223 -0
- package/lib/utils/type.ts +77 -0
- package/lib/wallet/EthermintMessageAdapter.ts +136 -0
- package/lib/wallet/UniClient.ts +152 -0
- package/lib/wallet/Wallet.ts +138 -0
- package/lib/wallet/wallets/InitiaWallet.ts +189 -0
- package/lib/wallet/wallets/KeplerWallet.ts +158 -0
- package/lib/wallet/wallets/LeapWallet.ts +142 -0
- package/lib/wallet/wallets/LedgerWallet.ts +203 -0
- package/lib/wallet/wallets/MetamaskSnapWallet.ts +105 -0
- package/lib/wallet/wallets/MetamaskWallet.ts +173 -0
- package/lib/wallet/wallets/OKXWallet.ts +202 -0
- package/lib/wallet/wallets/UnisatWallet.ts +198 -0
- package/package.json +102 -0
- package/postcss.config.js +6 -0
- package/src/App.vue +241 -0
- package/src/main.ts +4 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +34 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.ts +62 -0
- package/vue-shim.d.ts +6 -0
|
@@ -0,0 +1,2316 @@
|
|
|
1
|
+
import { C as a, m as r, T as I, t as be, f as Me, L as s, D as u, a as J, P as l, b as c, A, c as K, d as V, e as Q, g as z, h as H, i as Ue, _ as Se } from "./main-172a6585.js";
|
|
2
|
+
import "@initia/initia.proto/ibc/applications/fetchprice/v1/tx";
|
|
3
|
+
import "@initia/initia.proto/ibc/applications/fetchprice/v1/types";
|
|
4
|
+
import "@initia/initia.proto/slinky/marketmap/v1/tx";
|
|
5
|
+
import "@initia/initia.proto/slinky/oracle/v1/tx";
|
|
6
|
+
import "@initia/initia.proto/slinky/types/v1/currency_pair";
|
|
7
|
+
import "@initia/initia.proto/slinky/oracle/v1/genesis";
|
|
8
|
+
import "@initia/initia.proto/slinky/marketmap/v1/market";
|
|
9
|
+
import "@initia/initia.proto/slinky/marketmap/v1/params";
|
|
10
|
+
function X() {
|
|
11
|
+
return {
|
|
12
|
+
positionId: s.UZERO,
|
|
13
|
+
address: "",
|
|
14
|
+
poolId: s.UZERO,
|
|
15
|
+
lowerTick: s.ZERO,
|
|
16
|
+
upperTick: s.ZERO,
|
|
17
|
+
joinTime: void 0,
|
|
18
|
+
liquidity: ""
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const f = {
|
|
22
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.Position",
|
|
23
|
+
encode(e, i = r.Writer.create()) {
|
|
24
|
+
return e.positionId.isZero() || i.uint32(8).uint64(e.positionId), e.address !== "" && i.uint32(18).string(e.address), e.poolId.isZero() || i.uint32(24).uint64(e.poolId), e.lowerTick.isZero() || i.uint32(32).int64(e.lowerTick), e.upperTick.isZero() || i.uint32(40).int64(e.upperTick), e.joinTime !== void 0 && I.encode(be(e.joinTime), i.uint32(50).fork()).ldelim(), e.liquidity !== "" && i.uint32(58).string(e.liquidity), i;
|
|
25
|
+
},
|
|
26
|
+
decode(e, i) {
|
|
27
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
28
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
29
|
+
const n = X();
|
|
30
|
+
for (; o.pos < t; ) {
|
|
31
|
+
const d = o.uint32();
|
|
32
|
+
switch (d >>> 3) {
|
|
33
|
+
case 1:
|
|
34
|
+
n.positionId = o.uint64();
|
|
35
|
+
break;
|
|
36
|
+
case 2:
|
|
37
|
+
n.address = o.string();
|
|
38
|
+
break;
|
|
39
|
+
case 3:
|
|
40
|
+
n.poolId = o.uint64();
|
|
41
|
+
break;
|
|
42
|
+
case 4:
|
|
43
|
+
n.lowerTick = o.int64();
|
|
44
|
+
break;
|
|
45
|
+
case 5:
|
|
46
|
+
n.upperTick = o.int64();
|
|
47
|
+
break;
|
|
48
|
+
case 6:
|
|
49
|
+
n.joinTime = Me(I.decode(o, o.uint32()));
|
|
50
|
+
break;
|
|
51
|
+
case 7:
|
|
52
|
+
n.liquidity = o.string();
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
o.skipType(d & 7);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return n;
|
|
60
|
+
},
|
|
61
|
+
fromPartial(e) {
|
|
62
|
+
var i, o, t;
|
|
63
|
+
const n = X();
|
|
64
|
+
return n.positionId = e.positionId !== void 0 && e.positionId !== null ? s.fromValue(e.positionId) : s.UZERO, n.address = (i = e.address) !== null && i !== void 0 ? i : "", n.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, n.lowerTick = e.lowerTick !== void 0 && e.lowerTick !== null ? s.fromValue(e.lowerTick) : s.ZERO, n.upperTick = e.upperTick !== void 0 && e.upperTick !== null ? s.fromValue(e.upperTick) : s.ZERO, n.joinTime = (o = e.joinTime) !== null && o !== void 0 ? o : void 0, n.liquidity = (t = e.liquidity) !== null && t !== void 0 ? t : "", n;
|
|
65
|
+
},
|
|
66
|
+
fromAmino(e) {
|
|
67
|
+
return {
|
|
68
|
+
positionId: s.fromString(e.position_id),
|
|
69
|
+
address: e.address,
|
|
70
|
+
poolId: s.fromString(e.pool_id),
|
|
71
|
+
lowerTick: s.fromString(e.lower_tick),
|
|
72
|
+
upperTick: s.fromString(e.upper_tick),
|
|
73
|
+
joinTime: e != null && e.join_time ? I.fromAmino(e.join_time) : void 0,
|
|
74
|
+
liquidity: e.liquidity
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
toAmino(e) {
|
|
78
|
+
const i = {};
|
|
79
|
+
return i.position_id = e.positionId ? e.positionId.toString() : void 0, i.address = e.address, i.pool_id = e.poolId ? e.poolId.toString() : void 0, i.lower_tick = e.lowerTick ? e.lowerTick.toString() : void 0, i.upper_tick = e.upperTick ? e.upperTick.toString() : void 0, i.join_time = e.joinTime ? I.toAmino(e.joinTime) : void 0, i.liquidity = e.liquidity, i;
|
|
80
|
+
},
|
|
81
|
+
fromAminoMsg(e) {
|
|
82
|
+
return f.fromAmino(e.value);
|
|
83
|
+
},
|
|
84
|
+
toAminoMsg(e) {
|
|
85
|
+
return {
|
|
86
|
+
type: "osmosis/concentratedliquidity/position",
|
|
87
|
+
value: f.toAmino(e)
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
fromProtoMsg(e) {
|
|
91
|
+
return f.decode(e.value);
|
|
92
|
+
},
|
|
93
|
+
toProto(e) {
|
|
94
|
+
return f.encode(e).finish();
|
|
95
|
+
},
|
|
96
|
+
toProtoMsg(e) {
|
|
97
|
+
return {
|
|
98
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.Position",
|
|
99
|
+
value: f.encode(e).finish()
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
function Y() {
|
|
104
|
+
return {
|
|
105
|
+
position: void 0,
|
|
106
|
+
asset0: void 0,
|
|
107
|
+
asset1: void 0,
|
|
108
|
+
claimableSpreadRewards: [],
|
|
109
|
+
claimableIncentives: [],
|
|
110
|
+
forfeitedIncentives: []
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
const m = {
|
|
114
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.FullPositionBreakdown",
|
|
115
|
+
encode(e, i = r.Writer.create()) {
|
|
116
|
+
e.position !== void 0 && f.encode(e.position, i.uint32(10).fork()).ldelim(), e.asset0 !== void 0 && a.encode(e.asset0, i.uint32(18).fork()).ldelim(), e.asset1 !== void 0 && a.encode(e.asset1, i.uint32(26).fork()).ldelim();
|
|
117
|
+
for (const o of e.claimableSpreadRewards)
|
|
118
|
+
a.encode(o, i.uint32(34).fork()).ldelim();
|
|
119
|
+
for (const o of e.claimableIncentives)
|
|
120
|
+
a.encode(o, i.uint32(42).fork()).ldelim();
|
|
121
|
+
for (const o of e.forfeitedIncentives)
|
|
122
|
+
a.encode(o, i.uint32(50).fork()).ldelim();
|
|
123
|
+
return i;
|
|
124
|
+
},
|
|
125
|
+
decode(e, i) {
|
|
126
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
127
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
128
|
+
const n = Y();
|
|
129
|
+
for (; o.pos < t; ) {
|
|
130
|
+
const d = o.uint32();
|
|
131
|
+
switch (d >>> 3) {
|
|
132
|
+
case 1:
|
|
133
|
+
n.position = f.decode(o, o.uint32());
|
|
134
|
+
break;
|
|
135
|
+
case 2:
|
|
136
|
+
n.asset0 = a.decode(o, o.uint32());
|
|
137
|
+
break;
|
|
138
|
+
case 3:
|
|
139
|
+
n.asset1 = a.decode(o, o.uint32());
|
|
140
|
+
break;
|
|
141
|
+
case 4:
|
|
142
|
+
n.claimableSpreadRewards.push(a.decode(o, o.uint32()));
|
|
143
|
+
break;
|
|
144
|
+
case 5:
|
|
145
|
+
n.claimableIncentives.push(a.decode(o, o.uint32()));
|
|
146
|
+
break;
|
|
147
|
+
case 6:
|
|
148
|
+
n.forfeitedIncentives.push(a.decode(o, o.uint32()));
|
|
149
|
+
break;
|
|
150
|
+
default:
|
|
151
|
+
o.skipType(d & 7);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return n;
|
|
156
|
+
},
|
|
157
|
+
fromPartial(e) {
|
|
158
|
+
var i, o, t;
|
|
159
|
+
const n = Y();
|
|
160
|
+
return n.position = e.position !== void 0 && e.position !== null ? f.fromPartial(e.position) : void 0, n.asset0 = e.asset0 !== void 0 && e.asset0 !== null ? a.fromPartial(e.asset0) : void 0, n.asset1 = e.asset1 !== void 0 && e.asset1 !== null ? a.fromPartial(e.asset1) : void 0, n.claimableSpreadRewards = ((i = e.claimableSpreadRewards) === null || i === void 0 ? void 0 : i.map((d) => a.fromPartial(d))) || [], n.claimableIncentives = ((o = e.claimableIncentives) === null || o === void 0 ? void 0 : o.map((d) => a.fromPartial(d))) || [], n.forfeitedIncentives = ((t = e.forfeitedIncentives) === null || t === void 0 ? void 0 : t.map((d) => a.fromPartial(d))) || [], n;
|
|
161
|
+
},
|
|
162
|
+
fromAmino(e) {
|
|
163
|
+
return {
|
|
164
|
+
position: e != null && e.position ? f.fromAmino(e.position) : void 0,
|
|
165
|
+
asset0: e != null && e.asset0 ? a.fromAmino(e.asset0) : void 0,
|
|
166
|
+
asset1: e != null && e.asset1 ? a.fromAmino(e.asset1) : void 0,
|
|
167
|
+
claimableSpreadRewards: Array.isArray(e == null ? void 0 : e.claimable_spread_rewards) ? e.claimable_spread_rewards.map((i) => a.fromAmino(i)) : [],
|
|
168
|
+
claimableIncentives: Array.isArray(e == null ? void 0 : e.claimable_incentives) ? e.claimable_incentives.map((i) => a.fromAmino(i)) : [],
|
|
169
|
+
forfeitedIncentives: Array.isArray(e == null ? void 0 : e.forfeited_incentives) ? e.forfeited_incentives.map((i) => a.fromAmino(i)) : []
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
toAmino(e) {
|
|
173
|
+
const i = {};
|
|
174
|
+
return i.position = e.position ? f.toAmino(e.position) : void 0, i.asset0 = e.asset0 ? a.toAmino(e.asset0) : void 0, i.asset1 = e.asset1 ? a.toAmino(e.asset1) : void 0, e.claimableSpreadRewards ? i.claimable_spread_rewards = e.claimableSpreadRewards.map((o) => o ? a.toAmino(o) : void 0) : i.claimable_spread_rewards = [], e.claimableIncentives ? i.claimable_incentives = e.claimableIncentives.map((o) => o ? a.toAmino(o) : void 0) : i.claimable_incentives = [], e.forfeitedIncentives ? i.forfeited_incentives = e.forfeitedIncentives.map((o) => o ? a.toAmino(o) : void 0) : i.forfeited_incentives = [], i;
|
|
175
|
+
},
|
|
176
|
+
fromAminoMsg(e) {
|
|
177
|
+
return m.fromAmino(e.value);
|
|
178
|
+
},
|
|
179
|
+
toAminoMsg(e) {
|
|
180
|
+
return {
|
|
181
|
+
type: "osmosis/concentratedliquidity/full-position-breakdown",
|
|
182
|
+
value: m.toAmino(e)
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
fromProtoMsg(e) {
|
|
186
|
+
return m.decode(e.value);
|
|
187
|
+
},
|
|
188
|
+
toProto(e) {
|
|
189
|
+
return m.encode(e).finish();
|
|
190
|
+
},
|
|
191
|
+
toProtoMsg(e) {
|
|
192
|
+
return {
|
|
193
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.FullPositionBreakdown",
|
|
194
|
+
value: m.encode(e).finish()
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
function j() {
|
|
199
|
+
return {
|
|
200
|
+
uptimeGrowthOutside: []
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
const p = {
|
|
204
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.UptimeTracker",
|
|
205
|
+
encode(e, i = r.Writer.create()) {
|
|
206
|
+
for (const o of e.uptimeGrowthOutside)
|
|
207
|
+
u.encode(o, i.uint32(10).fork()).ldelim();
|
|
208
|
+
return i;
|
|
209
|
+
},
|
|
210
|
+
decode(e, i) {
|
|
211
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
212
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
213
|
+
const n = j();
|
|
214
|
+
for (; o.pos < t; ) {
|
|
215
|
+
const d = o.uint32();
|
|
216
|
+
switch (d >>> 3) {
|
|
217
|
+
case 1:
|
|
218
|
+
n.uptimeGrowthOutside.push(u.decode(o, o.uint32()));
|
|
219
|
+
break;
|
|
220
|
+
default:
|
|
221
|
+
o.skipType(d & 7);
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return n;
|
|
226
|
+
},
|
|
227
|
+
fromPartial(e) {
|
|
228
|
+
var i;
|
|
229
|
+
const o = j();
|
|
230
|
+
return o.uptimeGrowthOutside = ((i = e.uptimeGrowthOutside) === null || i === void 0 ? void 0 : i.map((t) => u.fromPartial(t))) || [], o;
|
|
231
|
+
},
|
|
232
|
+
fromAmino(e) {
|
|
233
|
+
return {
|
|
234
|
+
uptimeGrowthOutside: Array.isArray(e == null ? void 0 : e.uptime_growth_outside) ? e.uptime_growth_outside.map((i) => u.fromAmino(i)) : []
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
toAmino(e) {
|
|
238
|
+
const i = {};
|
|
239
|
+
return e.uptimeGrowthOutside ? i.uptime_growth_outside = e.uptimeGrowthOutside.map((o) => o ? u.toAmino(o) : void 0) : i.uptime_growth_outside = [], i;
|
|
240
|
+
},
|
|
241
|
+
fromAminoMsg(e) {
|
|
242
|
+
return p.fromAmino(e.value);
|
|
243
|
+
},
|
|
244
|
+
toAminoMsg(e) {
|
|
245
|
+
return {
|
|
246
|
+
type: "osmosis/concentratedliquidity/uptime-tracker",
|
|
247
|
+
value: p.toAmino(e)
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
fromProtoMsg(e) {
|
|
251
|
+
return p.decode(e.value);
|
|
252
|
+
},
|
|
253
|
+
toProto(e) {
|
|
254
|
+
return p.encode(e).finish();
|
|
255
|
+
},
|
|
256
|
+
toProtoMsg(e) {
|
|
257
|
+
return {
|
|
258
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.UptimeTracker",
|
|
259
|
+
value: p.encode(e).finish()
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
function ee() {
|
|
264
|
+
return {
|
|
265
|
+
incentiveId: s.UZERO,
|
|
266
|
+
poolId: s.UZERO,
|
|
267
|
+
incentiveRecordBody: void 0,
|
|
268
|
+
minUptime: void 0
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
const v = {
|
|
272
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecord",
|
|
273
|
+
encode(e, i = r.Writer.create()) {
|
|
274
|
+
return e.incentiveId.isZero() || i.uint32(8).uint64(e.incentiveId), e.poolId.isZero() || i.uint32(16).uint64(e.poolId), e.incentiveRecordBody !== void 0 && y.encode(e.incentiveRecordBody, i.uint32(34).fork()).ldelim(), e.minUptime !== void 0 && J.encode(e.minUptime, i.uint32(42).fork()).ldelim(), i;
|
|
275
|
+
},
|
|
276
|
+
decode(e, i) {
|
|
277
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
278
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
279
|
+
const n = ee();
|
|
280
|
+
for (; o.pos < t; ) {
|
|
281
|
+
const d = o.uint32();
|
|
282
|
+
switch (d >>> 3) {
|
|
283
|
+
case 1:
|
|
284
|
+
n.incentiveId = o.uint64();
|
|
285
|
+
break;
|
|
286
|
+
case 2:
|
|
287
|
+
n.poolId = o.uint64();
|
|
288
|
+
break;
|
|
289
|
+
case 4:
|
|
290
|
+
n.incentiveRecordBody = y.decode(o, o.uint32());
|
|
291
|
+
break;
|
|
292
|
+
case 5:
|
|
293
|
+
n.minUptime = J.decode(o, o.uint32());
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
o.skipType(d & 7);
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return n;
|
|
301
|
+
},
|
|
302
|
+
fromPartial(e) {
|
|
303
|
+
const i = ee();
|
|
304
|
+
return i.incentiveId = e.incentiveId !== void 0 && e.incentiveId !== null ? s.fromValue(e.incentiveId) : s.UZERO, i.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, i.incentiveRecordBody = e.incentiveRecordBody !== void 0 && e.incentiveRecordBody !== null ? y.fromPartial(e.incentiveRecordBody) : void 0, i.minUptime = e.minUptime !== void 0 && e.minUptime !== null ? J.fromPartial(e.minUptime) : void 0, i;
|
|
305
|
+
},
|
|
306
|
+
fromAmino(e) {
|
|
307
|
+
return {
|
|
308
|
+
incentiveId: s.fromString(e.incentive_id),
|
|
309
|
+
poolId: s.fromString(e.pool_id),
|
|
310
|
+
incentiveRecordBody: e != null && e.incentive_record_body ? y.fromAmino(e.incentive_record_body) : void 0,
|
|
311
|
+
minUptime: e != null && e.min_uptime ? J.fromAmino(e.min_uptime) : void 0
|
|
312
|
+
};
|
|
313
|
+
},
|
|
314
|
+
toAmino(e) {
|
|
315
|
+
const i = {};
|
|
316
|
+
return i.incentive_id = e.incentiveId ? e.incentiveId.toString() : void 0, i.pool_id = e.poolId ? e.poolId.toString() : void 0, i.incentive_record_body = e.incentiveRecordBody ? y.toAmino(e.incentiveRecordBody) : void 0, i.min_uptime = e.minUptime ? J.toAmino(e.minUptime) : void 0, i;
|
|
317
|
+
},
|
|
318
|
+
fromAminoMsg(e) {
|
|
319
|
+
return v.fromAmino(e.value);
|
|
320
|
+
},
|
|
321
|
+
toAminoMsg(e) {
|
|
322
|
+
return {
|
|
323
|
+
type: "osmosis/concentratedliquidity/incentive-record",
|
|
324
|
+
value: v.toAmino(e)
|
|
325
|
+
};
|
|
326
|
+
},
|
|
327
|
+
fromProtoMsg(e) {
|
|
328
|
+
return v.decode(e.value);
|
|
329
|
+
},
|
|
330
|
+
toProto(e) {
|
|
331
|
+
return v.encode(e).finish();
|
|
332
|
+
},
|
|
333
|
+
toProtoMsg(e) {
|
|
334
|
+
return {
|
|
335
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecord",
|
|
336
|
+
value: v.encode(e).finish()
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
function ie() {
|
|
341
|
+
return {
|
|
342
|
+
remainingCoin: void 0,
|
|
343
|
+
emissionRate: "",
|
|
344
|
+
startTime: void 0
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
const y = {
|
|
348
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecordBody",
|
|
349
|
+
encode(e, i = r.Writer.create()) {
|
|
350
|
+
return e.remainingCoin !== void 0 && u.encode(e.remainingCoin, i.uint32(10).fork()).ldelim(), e.emissionRate !== "" && i.uint32(18).string(e.emissionRate), e.startTime !== void 0 && I.encode(be(e.startTime), i.uint32(26).fork()).ldelim(), i;
|
|
351
|
+
},
|
|
352
|
+
decode(e, i) {
|
|
353
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
354
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
355
|
+
const n = ie();
|
|
356
|
+
for (; o.pos < t; ) {
|
|
357
|
+
const d = o.uint32();
|
|
358
|
+
switch (d >>> 3) {
|
|
359
|
+
case 1:
|
|
360
|
+
n.remainingCoin = u.decode(o, o.uint32());
|
|
361
|
+
break;
|
|
362
|
+
case 2:
|
|
363
|
+
n.emissionRate = o.string();
|
|
364
|
+
break;
|
|
365
|
+
case 3:
|
|
366
|
+
n.startTime = Me(I.decode(o, o.uint32()));
|
|
367
|
+
break;
|
|
368
|
+
default:
|
|
369
|
+
o.skipType(d & 7);
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return n;
|
|
374
|
+
},
|
|
375
|
+
fromPartial(e) {
|
|
376
|
+
var i, o;
|
|
377
|
+
const t = ie();
|
|
378
|
+
return t.remainingCoin = e.remainingCoin !== void 0 && e.remainingCoin !== null ? u.fromPartial(e.remainingCoin) : void 0, t.emissionRate = (i = e.emissionRate) !== null && i !== void 0 ? i : "", t.startTime = (o = e.startTime) !== null && o !== void 0 ? o : void 0, t;
|
|
379
|
+
},
|
|
380
|
+
fromAmino(e) {
|
|
381
|
+
return {
|
|
382
|
+
remainingCoin: e != null && e.remaining_coin ? u.fromAmino(e.remaining_coin) : void 0,
|
|
383
|
+
emissionRate: e.emission_rate,
|
|
384
|
+
startTime: e != null && e.start_time ? I.fromAmino(e.start_time) : void 0
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
toAmino(e) {
|
|
388
|
+
const i = {};
|
|
389
|
+
return i.remaining_coin = e.remainingCoin ? u.toAmino(e.remainingCoin) : void 0, i.emission_rate = e.emissionRate, i.start_time = e.startTime ? I.toAmino(e.startTime) : void 0, i;
|
|
390
|
+
},
|
|
391
|
+
fromAminoMsg(e) {
|
|
392
|
+
return y.fromAmino(e.value);
|
|
393
|
+
},
|
|
394
|
+
toAminoMsg(e) {
|
|
395
|
+
return {
|
|
396
|
+
type: "osmosis/concentratedliquidity/incentive-record-body",
|
|
397
|
+
value: y.toAmino(e)
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
fromProtoMsg(e) {
|
|
401
|
+
return y.decode(e.value);
|
|
402
|
+
},
|
|
403
|
+
toProto(e) {
|
|
404
|
+
return y.encode(e).finish();
|
|
405
|
+
},
|
|
406
|
+
toProtoMsg(e) {
|
|
407
|
+
return {
|
|
408
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecordBody",
|
|
409
|
+
value: y.encode(e).finish()
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
function oe() {
|
|
414
|
+
return {
|
|
415
|
+
address: "",
|
|
416
|
+
poolId: s.UZERO,
|
|
417
|
+
pagination: void 0
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
const P = {
|
|
421
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.UserPositionsRequest",
|
|
422
|
+
encode(e, i = r.Writer.create()) {
|
|
423
|
+
return e.address !== "" && i.uint32(10).string(e.address), e.poolId.isZero() || i.uint32(16).uint64(e.poolId), e.pagination !== void 0 && l.encode(e.pagination, i.uint32(26).fork()).ldelim(), i;
|
|
424
|
+
},
|
|
425
|
+
decode(e, i) {
|
|
426
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
427
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
428
|
+
const n = oe();
|
|
429
|
+
for (; o.pos < t; ) {
|
|
430
|
+
const d = o.uint32();
|
|
431
|
+
switch (d >>> 3) {
|
|
432
|
+
case 1:
|
|
433
|
+
n.address = o.string();
|
|
434
|
+
break;
|
|
435
|
+
case 2:
|
|
436
|
+
n.poolId = o.uint64();
|
|
437
|
+
break;
|
|
438
|
+
case 3:
|
|
439
|
+
n.pagination = l.decode(o, o.uint32());
|
|
440
|
+
break;
|
|
441
|
+
default:
|
|
442
|
+
o.skipType(d & 7);
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return n;
|
|
447
|
+
},
|
|
448
|
+
fromPartial(e) {
|
|
449
|
+
var i;
|
|
450
|
+
const o = oe();
|
|
451
|
+
return o.address = (i = e.address) !== null && i !== void 0 ? i : "", o.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, o.pagination = e.pagination !== void 0 && e.pagination !== null ? l.fromPartial(e.pagination) : void 0, o;
|
|
452
|
+
},
|
|
453
|
+
fromAmino(e) {
|
|
454
|
+
return {
|
|
455
|
+
address: e.address,
|
|
456
|
+
poolId: s.fromString(e.pool_id),
|
|
457
|
+
pagination: e != null && e.pagination ? l.fromAmino(e.pagination) : void 0
|
|
458
|
+
};
|
|
459
|
+
},
|
|
460
|
+
toAmino(e) {
|
|
461
|
+
const i = {};
|
|
462
|
+
return i.address = e.address, i.pool_id = e.poolId ? e.poolId.toString() : void 0, i.pagination = e.pagination ? l.toAmino(e.pagination) : void 0, i;
|
|
463
|
+
},
|
|
464
|
+
fromAminoMsg(e) {
|
|
465
|
+
return P.fromAmino(e.value);
|
|
466
|
+
},
|
|
467
|
+
toAminoMsg(e) {
|
|
468
|
+
return {
|
|
469
|
+
type: "osmosis/concentratedliquidity/user-positions-request",
|
|
470
|
+
value: P.toAmino(e)
|
|
471
|
+
};
|
|
472
|
+
},
|
|
473
|
+
fromProtoMsg(e) {
|
|
474
|
+
return P.decode(e.value);
|
|
475
|
+
},
|
|
476
|
+
toProto(e) {
|
|
477
|
+
return P.encode(e).finish();
|
|
478
|
+
},
|
|
479
|
+
toProtoMsg(e) {
|
|
480
|
+
return {
|
|
481
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.UserPositionsRequest",
|
|
482
|
+
value: P.encode(e).finish()
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
function ne() {
|
|
487
|
+
return {
|
|
488
|
+
positions: [],
|
|
489
|
+
pagination: void 0
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
const q = {
|
|
493
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.UserPositionsResponse",
|
|
494
|
+
encode(e, i = r.Writer.create()) {
|
|
495
|
+
for (const o of e.positions)
|
|
496
|
+
m.encode(o, i.uint32(10).fork()).ldelim();
|
|
497
|
+
return e.pagination !== void 0 && c.encode(e.pagination, i.uint32(18).fork()).ldelim(), i;
|
|
498
|
+
},
|
|
499
|
+
decode(e, i) {
|
|
500
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
501
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
502
|
+
const n = ne();
|
|
503
|
+
for (; o.pos < t; ) {
|
|
504
|
+
const d = o.uint32();
|
|
505
|
+
switch (d >>> 3) {
|
|
506
|
+
case 1:
|
|
507
|
+
n.positions.push(m.decode(o, o.uint32()));
|
|
508
|
+
break;
|
|
509
|
+
case 2:
|
|
510
|
+
n.pagination = c.decode(o, o.uint32());
|
|
511
|
+
break;
|
|
512
|
+
default:
|
|
513
|
+
o.skipType(d & 7);
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return n;
|
|
518
|
+
},
|
|
519
|
+
fromPartial(e) {
|
|
520
|
+
var i;
|
|
521
|
+
const o = ne();
|
|
522
|
+
return o.positions = ((i = e.positions) === null || i === void 0 ? void 0 : i.map((t) => m.fromPartial(t))) || [], o.pagination = e.pagination !== void 0 && e.pagination !== null ? c.fromPartial(e.pagination) : void 0, o;
|
|
523
|
+
},
|
|
524
|
+
fromAmino(e) {
|
|
525
|
+
return {
|
|
526
|
+
positions: Array.isArray(e == null ? void 0 : e.positions) ? e.positions.map((i) => m.fromAmino(i)) : [],
|
|
527
|
+
pagination: e != null && e.pagination ? c.fromAmino(e.pagination) : void 0
|
|
528
|
+
};
|
|
529
|
+
},
|
|
530
|
+
toAmino(e) {
|
|
531
|
+
const i = {};
|
|
532
|
+
return e.positions ? i.positions = e.positions.map((o) => o ? m.toAmino(o) : void 0) : i.positions = [], i.pagination = e.pagination ? c.toAmino(e.pagination) : void 0, i;
|
|
533
|
+
},
|
|
534
|
+
fromAminoMsg(e) {
|
|
535
|
+
return q.fromAmino(e.value);
|
|
536
|
+
},
|
|
537
|
+
toAminoMsg(e) {
|
|
538
|
+
return {
|
|
539
|
+
type: "osmosis/concentratedliquidity/user-positions-response",
|
|
540
|
+
value: q.toAmino(e)
|
|
541
|
+
};
|
|
542
|
+
},
|
|
543
|
+
fromProtoMsg(e) {
|
|
544
|
+
return q.decode(e.value);
|
|
545
|
+
},
|
|
546
|
+
toProto(e) {
|
|
547
|
+
return q.encode(e).finish();
|
|
548
|
+
},
|
|
549
|
+
toProtoMsg(e) {
|
|
550
|
+
return {
|
|
551
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.UserPositionsResponse",
|
|
552
|
+
value: q.encode(e).finish()
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
function te() {
|
|
557
|
+
return {
|
|
558
|
+
positionId: s.UZERO
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
const h = {
|
|
562
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PositionByIdRequest",
|
|
563
|
+
encode(e, i = r.Writer.create()) {
|
|
564
|
+
return e.positionId.isZero() || i.uint32(8).uint64(e.positionId), i;
|
|
565
|
+
},
|
|
566
|
+
decode(e, i) {
|
|
567
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
568
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
569
|
+
const n = te();
|
|
570
|
+
for (; o.pos < t; ) {
|
|
571
|
+
const d = o.uint32();
|
|
572
|
+
switch (d >>> 3) {
|
|
573
|
+
case 1:
|
|
574
|
+
n.positionId = o.uint64();
|
|
575
|
+
break;
|
|
576
|
+
default:
|
|
577
|
+
o.skipType(d & 7);
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return n;
|
|
582
|
+
},
|
|
583
|
+
fromPartial(e) {
|
|
584
|
+
const i = te();
|
|
585
|
+
return i.positionId = e.positionId !== void 0 && e.positionId !== null ? s.fromValue(e.positionId) : s.UZERO, i;
|
|
586
|
+
},
|
|
587
|
+
fromAmino(e) {
|
|
588
|
+
return {
|
|
589
|
+
positionId: s.fromString(e.position_id)
|
|
590
|
+
};
|
|
591
|
+
},
|
|
592
|
+
toAmino(e) {
|
|
593
|
+
const i = {};
|
|
594
|
+
return i.position_id = e.positionId ? e.positionId.toString() : void 0, i;
|
|
595
|
+
},
|
|
596
|
+
fromAminoMsg(e) {
|
|
597
|
+
return h.fromAmino(e.value);
|
|
598
|
+
},
|
|
599
|
+
toAminoMsg(e) {
|
|
600
|
+
return {
|
|
601
|
+
type: "osmosis/concentratedliquidity/position-by-id-request",
|
|
602
|
+
value: h.toAmino(e)
|
|
603
|
+
};
|
|
604
|
+
},
|
|
605
|
+
fromProtoMsg(e) {
|
|
606
|
+
return h.decode(e.value);
|
|
607
|
+
},
|
|
608
|
+
toProto(e) {
|
|
609
|
+
return h.encode(e).finish();
|
|
610
|
+
},
|
|
611
|
+
toProtoMsg(e) {
|
|
612
|
+
return {
|
|
613
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PositionByIdRequest",
|
|
614
|
+
value: h.encode(e).finish()
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
function re() {
|
|
619
|
+
return {
|
|
620
|
+
position: void 0
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
const g = {
|
|
624
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PositionByIdResponse",
|
|
625
|
+
encode(e, i = r.Writer.create()) {
|
|
626
|
+
return e.position !== void 0 && m.encode(e.position, i.uint32(10).fork()).ldelim(), i;
|
|
627
|
+
},
|
|
628
|
+
decode(e, i) {
|
|
629
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
630
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
631
|
+
const n = re();
|
|
632
|
+
for (; o.pos < t; ) {
|
|
633
|
+
const d = o.uint32();
|
|
634
|
+
switch (d >>> 3) {
|
|
635
|
+
case 1:
|
|
636
|
+
n.position = m.decode(o, o.uint32());
|
|
637
|
+
break;
|
|
638
|
+
default:
|
|
639
|
+
o.skipType(d & 7);
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return n;
|
|
644
|
+
},
|
|
645
|
+
fromPartial(e) {
|
|
646
|
+
const i = re();
|
|
647
|
+
return i.position = e.position !== void 0 && e.position !== null ? m.fromPartial(e.position) : void 0, i;
|
|
648
|
+
},
|
|
649
|
+
fromAmino(e) {
|
|
650
|
+
return {
|
|
651
|
+
position: e != null && e.position ? m.fromAmino(e.position) : void 0
|
|
652
|
+
};
|
|
653
|
+
},
|
|
654
|
+
toAmino(e) {
|
|
655
|
+
const i = {};
|
|
656
|
+
return i.position = e.position ? m.toAmino(e.position) : void 0, i;
|
|
657
|
+
},
|
|
658
|
+
fromAminoMsg(e) {
|
|
659
|
+
return g.fromAmino(e.value);
|
|
660
|
+
},
|
|
661
|
+
toAminoMsg(e) {
|
|
662
|
+
return {
|
|
663
|
+
type: "osmosis/concentratedliquidity/position-by-id-response",
|
|
664
|
+
value: g.toAmino(e)
|
|
665
|
+
};
|
|
666
|
+
},
|
|
667
|
+
fromProtoMsg(e) {
|
|
668
|
+
return g.decode(e.value);
|
|
669
|
+
},
|
|
670
|
+
toProto(e) {
|
|
671
|
+
return g.encode(e).finish();
|
|
672
|
+
},
|
|
673
|
+
toProtoMsg(e) {
|
|
674
|
+
return {
|
|
675
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PositionByIdResponse",
|
|
676
|
+
value: g.encode(e).finish()
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
function de() {
|
|
681
|
+
return {
|
|
682
|
+
pagination: void 0
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
const _ = {
|
|
686
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolsRequest",
|
|
687
|
+
encode(e, i = r.Writer.create()) {
|
|
688
|
+
return e.pagination !== void 0 && l.encode(e.pagination, i.uint32(18).fork()).ldelim(), i;
|
|
689
|
+
},
|
|
690
|
+
decode(e, i) {
|
|
691
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
692
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
693
|
+
const n = de();
|
|
694
|
+
for (; o.pos < t; ) {
|
|
695
|
+
const d = o.uint32();
|
|
696
|
+
switch (d >>> 3) {
|
|
697
|
+
case 2:
|
|
698
|
+
n.pagination = l.decode(o, o.uint32());
|
|
699
|
+
break;
|
|
700
|
+
default:
|
|
701
|
+
o.skipType(d & 7);
|
|
702
|
+
break;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
return n;
|
|
706
|
+
},
|
|
707
|
+
fromPartial(e) {
|
|
708
|
+
const i = de();
|
|
709
|
+
return i.pagination = e.pagination !== void 0 && e.pagination !== null ? l.fromPartial(e.pagination) : void 0, i;
|
|
710
|
+
},
|
|
711
|
+
fromAmino(e) {
|
|
712
|
+
return {
|
|
713
|
+
pagination: e != null && e.pagination ? l.fromAmino(e.pagination) : void 0
|
|
714
|
+
};
|
|
715
|
+
},
|
|
716
|
+
toAmino(e) {
|
|
717
|
+
const i = {};
|
|
718
|
+
return i.pagination = e.pagination ? l.toAmino(e.pagination) : void 0, i;
|
|
719
|
+
},
|
|
720
|
+
fromAminoMsg(e) {
|
|
721
|
+
return _.fromAmino(e.value);
|
|
722
|
+
},
|
|
723
|
+
toAminoMsg(e) {
|
|
724
|
+
return {
|
|
725
|
+
type: "osmosis/concentratedliquidity/pools-request",
|
|
726
|
+
value: _.toAmino(e)
|
|
727
|
+
};
|
|
728
|
+
},
|
|
729
|
+
fromProtoMsg(e) {
|
|
730
|
+
return _.decode(e.value);
|
|
731
|
+
},
|
|
732
|
+
toProto(e) {
|
|
733
|
+
return _.encode(e).finish();
|
|
734
|
+
},
|
|
735
|
+
toProtoMsg(e) {
|
|
736
|
+
return {
|
|
737
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolsRequest",
|
|
738
|
+
value: _.encode(e).finish()
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
function se() {
|
|
743
|
+
return {
|
|
744
|
+
pools: [],
|
|
745
|
+
pagination: void 0
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
const w = {
|
|
749
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolsResponse",
|
|
750
|
+
encode(e, i = r.Writer.create()) {
|
|
751
|
+
for (const o of e.pools)
|
|
752
|
+
A.encode(o, i.uint32(10).fork()).ldelim();
|
|
753
|
+
return e.pagination !== void 0 && c.encode(e.pagination, i.uint32(18).fork()).ldelim(), i;
|
|
754
|
+
},
|
|
755
|
+
decode(e, i) {
|
|
756
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
757
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
758
|
+
const n = se();
|
|
759
|
+
for (; o.pos < t; ) {
|
|
760
|
+
const d = o.uint32();
|
|
761
|
+
switch (d >>> 3) {
|
|
762
|
+
case 1:
|
|
763
|
+
n.pools.push(Be(o));
|
|
764
|
+
break;
|
|
765
|
+
case 2:
|
|
766
|
+
n.pagination = c.decode(o, o.uint32());
|
|
767
|
+
break;
|
|
768
|
+
default:
|
|
769
|
+
o.skipType(d & 7);
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
return n;
|
|
774
|
+
},
|
|
775
|
+
fromPartial(e) {
|
|
776
|
+
var i;
|
|
777
|
+
const o = se();
|
|
778
|
+
return o.pools = ((i = e.pools) === null || i === void 0 ? void 0 : i.map((t) => A.fromPartial(t))) || [], o.pagination = e.pagination !== void 0 && e.pagination !== null ? c.fromPartial(e.pagination) : void 0, o;
|
|
779
|
+
},
|
|
780
|
+
fromAmino(e) {
|
|
781
|
+
return {
|
|
782
|
+
pools: Array.isArray(e == null ? void 0 : e.pools) ? e.pools.map((i) => Oe(i)) : [],
|
|
783
|
+
pagination: e != null && e.pagination ? c.fromAmino(e.pagination) : void 0
|
|
784
|
+
};
|
|
785
|
+
},
|
|
786
|
+
toAmino(e) {
|
|
787
|
+
const i = {};
|
|
788
|
+
return e.pools ? i.pools = e.pools.map((o) => o ? Ze(o) : void 0) : i.pools = [], i.pagination = e.pagination ? c.toAmino(e.pagination) : void 0, i;
|
|
789
|
+
},
|
|
790
|
+
fromAminoMsg(e) {
|
|
791
|
+
return w.fromAmino(e.value);
|
|
792
|
+
},
|
|
793
|
+
toAminoMsg(e) {
|
|
794
|
+
return {
|
|
795
|
+
type: "osmosis/concentratedliquidity/pools-response",
|
|
796
|
+
value: w.toAmino(e)
|
|
797
|
+
};
|
|
798
|
+
},
|
|
799
|
+
fromProtoMsg(e) {
|
|
800
|
+
return w.decode(e.value);
|
|
801
|
+
},
|
|
802
|
+
toProto(e) {
|
|
803
|
+
return w.encode(e).finish();
|
|
804
|
+
},
|
|
805
|
+
toProtoMsg(e) {
|
|
806
|
+
return {
|
|
807
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolsResponse",
|
|
808
|
+
value: w.encode(e).finish()
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
function ae() {
|
|
813
|
+
return {};
|
|
814
|
+
}
|
|
815
|
+
const T = {
|
|
816
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ParamsRequest",
|
|
817
|
+
encode(e, i = r.Writer.create()) {
|
|
818
|
+
return i;
|
|
819
|
+
},
|
|
820
|
+
decode(e, i) {
|
|
821
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
822
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
823
|
+
const n = ae();
|
|
824
|
+
for (; o.pos < t; ) {
|
|
825
|
+
const d = o.uint32();
|
|
826
|
+
switch (d >>> 3) {
|
|
827
|
+
default:
|
|
828
|
+
o.skipType(d & 7);
|
|
829
|
+
break;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
return n;
|
|
833
|
+
},
|
|
834
|
+
fromPartial(e) {
|
|
835
|
+
return ae();
|
|
836
|
+
},
|
|
837
|
+
fromAmino(e) {
|
|
838
|
+
return {};
|
|
839
|
+
},
|
|
840
|
+
toAmino(e) {
|
|
841
|
+
return {};
|
|
842
|
+
},
|
|
843
|
+
fromAminoMsg(e) {
|
|
844
|
+
return T.fromAmino(e.value);
|
|
845
|
+
},
|
|
846
|
+
toAminoMsg(e) {
|
|
847
|
+
return {
|
|
848
|
+
type: "osmosis/concentratedliquidity/params-request",
|
|
849
|
+
value: T.toAmino(e)
|
|
850
|
+
};
|
|
851
|
+
},
|
|
852
|
+
fromProtoMsg(e) {
|
|
853
|
+
return T.decode(e.value);
|
|
854
|
+
},
|
|
855
|
+
toProto(e) {
|
|
856
|
+
return T.encode(e).finish();
|
|
857
|
+
},
|
|
858
|
+
toProtoMsg(e) {
|
|
859
|
+
return {
|
|
860
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ParamsRequest",
|
|
861
|
+
value: T.encode(e).finish()
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
};
|
|
865
|
+
function ue() {
|
|
866
|
+
return {
|
|
867
|
+
params: void 0
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
const b = {
|
|
871
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ParamsResponse",
|
|
872
|
+
encode(e, i = r.Writer.create()) {
|
|
873
|
+
return e.params !== void 0 && K.encode(e.params, i.uint32(10).fork()).ldelim(), i;
|
|
874
|
+
},
|
|
875
|
+
decode(e, i) {
|
|
876
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
877
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
878
|
+
const n = ue();
|
|
879
|
+
for (; o.pos < t; ) {
|
|
880
|
+
const d = o.uint32();
|
|
881
|
+
switch (d >>> 3) {
|
|
882
|
+
case 1:
|
|
883
|
+
n.params = K.decode(o, o.uint32());
|
|
884
|
+
break;
|
|
885
|
+
default:
|
|
886
|
+
o.skipType(d & 7);
|
|
887
|
+
break;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
return n;
|
|
891
|
+
},
|
|
892
|
+
fromPartial(e) {
|
|
893
|
+
const i = ue();
|
|
894
|
+
return i.params = e.params !== void 0 && e.params !== null ? K.fromPartial(e.params) : void 0, i;
|
|
895
|
+
},
|
|
896
|
+
fromAmino(e) {
|
|
897
|
+
return {
|
|
898
|
+
params: e != null && e.params ? K.fromAmino(e.params) : void 0
|
|
899
|
+
};
|
|
900
|
+
},
|
|
901
|
+
toAmino(e) {
|
|
902
|
+
const i = {};
|
|
903
|
+
return i.params = e.params ? K.toAmino(e.params) : void 0, i;
|
|
904
|
+
},
|
|
905
|
+
fromAminoMsg(e) {
|
|
906
|
+
return b.fromAmino(e.value);
|
|
907
|
+
},
|
|
908
|
+
toAminoMsg(e) {
|
|
909
|
+
return {
|
|
910
|
+
type: "osmosis/concentratedliquidity/params-response",
|
|
911
|
+
value: b.toAmino(e)
|
|
912
|
+
};
|
|
913
|
+
},
|
|
914
|
+
fromProtoMsg(e) {
|
|
915
|
+
return b.decode(e.value);
|
|
916
|
+
},
|
|
917
|
+
toProto(e) {
|
|
918
|
+
return b.encode(e).finish();
|
|
919
|
+
},
|
|
920
|
+
toProtoMsg(e) {
|
|
921
|
+
return {
|
|
922
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ParamsResponse",
|
|
923
|
+
value: b.encode(e).finish()
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
function le() {
|
|
928
|
+
return {
|
|
929
|
+
liquidityNet: "",
|
|
930
|
+
tickIndex: s.ZERO
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
const k = {
|
|
934
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.TickLiquidityNet",
|
|
935
|
+
encode(e, i = r.Writer.create()) {
|
|
936
|
+
return e.liquidityNet !== "" && i.uint32(10).string(e.liquidityNet), e.tickIndex.isZero() || i.uint32(16).int64(e.tickIndex), i;
|
|
937
|
+
},
|
|
938
|
+
decode(e, i) {
|
|
939
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
940
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
941
|
+
const n = le();
|
|
942
|
+
for (; o.pos < t; ) {
|
|
943
|
+
const d = o.uint32();
|
|
944
|
+
switch (d >>> 3) {
|
|
945
|
+
case 1:
|
|
946
|
+
n.liquidityNet = o.string();
|
|
947
|
+
break;
|
|
948
|
+
case 2:
|
|
949
|
+
n.tickIndex = o.int64();
|
|
950
|
+
break;
|
|
951
|
+
default:
|
|
952
|
+
o.skipType(d & 7);
|
|
953
|
+
break;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
return n;
|
|
957
|
+
},
|
|
958
|
+
fromPartial(e) {
|
|
959
|
+
var i;
|
|
960
|
+
const o = le();
|
|
961
|
+
return o.liquidityNet = (i = e.liquidityNet) !== null && i !== void 0 ? i : "", o.tickIndex = e.tickIndex !== void 0 && e.tickIndex !== null ? s.fromValue(e.tickIndex) : s.ZERO, o;
|
|
962
|
+
},
|
|
963
|
+
fromAmino(e) {
|
|
964
|
+
return {
|
|
965
|
+
liquidityNet: e.liquidity_net,
|
|
966
|
+
tickIndex: s.fromString(e.tick_index)
|
|
967
|
+
};
|
|
968
|
+
},
|
|
969
|
+
toAmino(e) {
|
|
970
|
+
const i = {};
|
|
971
|
+
return i.liquidity_net = e.liquidityNet, i.tick_index = e.tickIndex ? e.tickIndex.toString() : void 0, i;
|
|
972
|
+
},
|
|
973
|
+
fromAminoMsg(e) {
|
|
974
|
+
return k.fromAmino(e.value);
|
|
975
|
+
},
|
|
976
|
+
toAminoMsg(e) {
|
|
977
|
+
return {
|
|
978
|
+
type: "osmosis/concentratedliquidity/tick-liquidity-net",
|
|
979
|
+
value: k.toAmino(e)
|
|
980
|
+
};
|
|
981
|
+
},
|
|
982
|
+
fromProtoMsg(e) {
|
|
983
|
+
return k.decode(e.value);
|
|
984
|
+
},
|
|
985
|
+
toProto(e) {
|
|
986
|
+
return k.encode(e).finish();
|
|
987
|
+
},
|
|
988
|
+
toProtoMsg(e) {
|
|
989
|
+
return {
|
|
990
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.TickLiquidityNet",
|
|
991
|
+
value: k.encode(e).finish()
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
function ce() {
|
|
996
|
+
return {
|
|
997
|
+
liquidityAmount: "",
|
|
998
|
+
lowerTick: s.ZERO,
|
|
999
|
+
upperTick: s.ZERO
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
const R = {
|
|
1003
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityDepthWithRange",
|
|
1004
|
+
encode(e, i = r.Writer.create()) {
|
|
1005
|
+
return e.liquidityAmount !== "" && i.uint32(10).string(e.liquidityAmount), e.lowerTick.isZero() || i.uint32(16).int64(e.lowerTick), e.upperTick.isZero() || i.uint32(24).int64(e.upperTick), i;
|
|
1006
|
+
},
|
|
1007
|
+
decode(e, i) {
|
|
1008
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1009
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1010
|
+
const n = ce();
|
|
1011
|
+
for (; o.pos < t; ) {
|
|
1012
|
+
const d = o.uint32();
|
|
1013
|
+
switch (d >>> 3) {
|
|
1014
|
+
case 1:
|
|
1015
|
+
n.liquidityAmount = o.string();
|
|
1016
|
+
break;
|
|
1017
|
+
case 2:
|
|
1018
|
+
n.lowerTick = o.int64();
|
|
1019
|
+
break;
|
|
1020
|
+
case 3:
|
|
1021
|
+
n.upperTick = o.int64();
|
|
1022
|
+
break;
|
|
1023
|
+
default:
|
|
1024
|
+
o.skipType(d & 7);
|
|
1025
|
+
break;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return n;
|
|
1029
|
+
},
|
|
1030
|
+
fromPartial(e) {
|
|
1031
|
+
var i;
|
|
1032
|
+
const o = ce();
|
|
1033
|
+
return o.liquidityAmount = (i = e.liquidityAmount) !== null && i !== void 0 ? i : "", o.lowerTick = e.lowerTick !== void 0 && e.lowerTick !== null ? s.fromValue(e.lowerTick) : s.ZERO, o.upperTick = e.upperTick !== void 0 && e.upperTick !== null ? s.fromValue(e.upperTick) : s.ZERO, o;
|
|
1034
|
+
},
|
|
1035
|
+
fromAmino(e) {
|
|
1036
|
+
return {
|
|
1037
|
+
liquidityAmount: e.liquidity_amount,
|
|
1038
|
+
lowerTick: s.fromString(e.lower_tick),
|
|
1039
|
+
upperTick: s.fromString(e.upper_tick)
|
|
1040
|
+
};
|
|
1041
|
+
},
|
|
1042
|
+
toAmino(e) {
|
|
1043
|
+
const i = {};
|
|
1044
|
+
return i.liquidity_amount = e.liquidityAmount, i.lower_tick = e.lowerTick ? e.lowerTick.toString() : void 0, i.upper_tick = e.upperTick ? e.upperTick.toString() : void 0, i;
|
|
1045
|
+
},
|
|
1046
|
+
fromAminoMsg(e) {
|
|
1047
|
+
return R.fromAmino(e.value);
|
|
1048
|
+
},
|
|
1049
|
+
toAminoMsg(e) {
|
|
1050
|
+
return {
|
|
1051
|
+
type: "osmosis/concentratedliquidity/liquidity-depth-with-range",
|
|
1052
|
+
value: R.toAmino(e)
|
|
1053
|
+
};
|
|
1054
|
+
},
|
|
1055
|
+
fromProtoMsg(e) {
|
|
1056
|
+
return R.decode(e.value);
|
|
1057
|
+
},
|
|
1058
|
+
toProto(e) {
|
|
1059
|
+
return R.encode(e).finish();
|
|
1060
|
+
},
|
|
1061
|
+
toProtoMsg(e) {
|
|
1062
|
+
return {
|
|
1063
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityDepthWithRange",
|
|
1064
|
+
value: R.encode(e).finish()
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
function me() {
|
|
1069
|
+
return {
|
|
1070
|
+
poolId: s.UZERO,
|
|
1071
|
+
tokenIn: "",
|
|
1072
|
+
startTick: s.ZERO,
|
|
1073
|
+
useCurTick: !1,
|
|
1074
|
+
boundTick: s.ZERO,
|
|
1075
|
+
useNoBound: !1
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
const M = {
|
|
1079
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionRequest",
|
|
1080
|
+
encode(e, i = r.Writer.create()) {
|
|
1081
|
+
return e.poolId.isZero() || i.uint32(8).uint64(e.poolId), e.tokenIn !== "" && i.uint32(18).string(e.tokenIn), e.startTick.isZero() || i.uint32(24).int64(e.startTick), e.useCurTick === !0 && i.uint32(32).bool(e.useCurTick), e.boundTick.isZero() || i.uint32(40).int64(e.boundTick), e.useNoBound === !0 && i.uint32(48).bool(e.useNoBound), i;
|
|
1082
|
+
},
|
|
1083
|
+
decode(e, i) {
|
|
1084
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1085
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1086
|
+
const n = me();
|
|
1087
|
+
for (; o.pos < t; ) {
|
|
1088
|
+
const d = o.uint32();
|
|
1089
|
+
switch (d >>> 3) {
|
|
1090
|
+
case 1:
|
|
1091
|
+
n.poolId = o.uint64();
|
|
1092
|
+
break;
|
|
1093
|
+
case 2:
|
|
1094
|
+
n.tokenIn = o.string();
|
|
1095
|
+
break;
|
|
1096
|
+
case 3:
|
|
1097
|
+
n.startTick = o.int64();
|
|
1098
|
+
break;
|
|
1099
|
+
case 4:
|
|
1100
|
+
n.useCurTick = o.bool();
|
|
1101
|
+
break;
|
|
1102
|
+
case 5:
|
|
1103
|
+
n.boundTick = o.int64();
|
|
1104
|
+
break;
|
|
1105
|
+
case 6:
|
|
1106
|
+
n.useNoBound = o.bool();
|
|
1107
|
+
break;
|
|
1108
|
+
default:
|
|
1109
|
+
o.skipType(d & 7);
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
return n;
|
|
1114
|
+
},
|
|
1115
|
+
fromPartial(e) {
|
|
1116
|
+
var i, o, t;
|
|
1117
|
+
const n = me();
|
|
1118
|
+
return n.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, n.tokenIn = (i = e.tokenIn) !== null && i !== void 0 ? i : "", n.startTick = e.startTick !== void 0 && e.startTick !== null ? s.fromValue(e.startTick) : s.ZERO, n.useCurTick = (o = e.useCurTick) !== null && o !== void 0 ? o : !1, n.boundTick = e.boundTick !== void 0 && e.boundTick !== null ? s.fromValue(e.boundTick) : s.ZERO, n.useNoBound = (t = e.useNoBound) !== null && t !== void 0 ? t : !1, n;
|
|
1119
|
+
},
|
|
1120
|
+
fromAmino(e) {
|
|
1121
|
+
return {
|
|
1122
|
+
poolId: s.fromString(e.pool_id),
|
|
1123
|
+
tokenIn: e.token_in,
|
|
1124
|
+
startTick: s.fromString(e.start_tick),
|
|
1125
|
+
useCurTick: e.use_cur_tick,
|
|
1126
|
+
boundTick: s.fromString(e.bound_tick),
|
|
1127
|
+
useNoBound: e.use_no_bound
|
|
1128
|
+
};
|
|
1129
|
+
},
|
|
1130
|
+
toAmino(e) {
|
|
1131
|
+
const i = {};
|
|
1132
|
+
return i.pool_id = e.poolId ? e.poolId.toString() : void 0, i.token_in = e.tokenIn, i.start_tick = e.startTick ? e.startTick.toString() : void 0, i.use_cur_tick = e.useCurTick, i.bound_tick = e.boundTick ? e.boundTick.toString() : void 0, i.use_no_bound = e.useNoBound, i;
|
|
1133
|
+
},
|
|
1134
|
+
fromAminoMsg(e) {
|
|
1135
|
+
return M.fromAmino(e.value);
|
|
1136
|
+
},
|
|
1137
|
+
toAminoMsg(e) {
|
|
1138
|
+
return {
|
|
1139
|
+
type: "osmosis/concentratedliquidity/liquidity-net-in-direction-request",
|
|
1140
|
+
value: M.toAmino(e)
|
|
1141
|
+
};
|
|
1142
|
+
},
|
|
1143
|
+
fromProtoMsg(e) {
|
|
1144
|
+
return M.decode(e.value);
|
|
1145
|
+
},
|
|
1146
|
+
toProto(e) {
|
|
1147
|
+
return M.encode(e).finish();
|
|
1148
|
+
},
|
|
1149
|
+
toProtoMsg(e) {
|
|
1150
|
+
return {
|
|
1151
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionRequest",
|
|
1152
|
+
value: M.encode(e).finish()
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
function pe() {
|
|
1157
|
+
return {
|
|
1158
|
+
liquidityDepths: [],
|
|
1159
|
+
currentTick: s.ZERO,
|
|
1160
|
+
currentLiquidity: ""
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
const U = {
|
|
1164
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionResponse",
|
|
1165
|
+
encode(e, i = r.Writer.create()) {
|
|
1166
|
+
for (const o of e.liquidityDepths)
|
|
1167
|
+
k.encode(o, i.uint32(10).fork()).ldelim();
|
|
1168
|
+
return e.currentTick.isZero() || i.uint32(16).int64(e.currentTick), e.currentLiquidity !== "" && i.uint32(26).string(e.currentLiquidity), i;
|
|
1169
|
+
},
|
|
1170
|
+
decode(e, i) {
|
|
1171
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1172
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1173
|
+
const n = pe();
|
|
1174
|
+
for (; o.pos < t; ) {
|
|
1175
|
+
const d = o.uint32();
|
|
1176
|
+
switch (d >>> 3) {
|
|
1177
|
+
case 1:
|
|
1178
|
+
n.liquidityDepths.push(k.decode(o, o.uint32()));
|
|
1179
|
+
break;
|
|
1180
|
+
case 2:
|
|
1181
|
+
n.currentTick = o.int64();
|
|
1182
|
+
break;
|
|
1183
|
+
case 3:
|
|
1184
|
+
n.currentLiquidity = o.string();
|
|
1185
|
+
break;
|
|
1186
|
+
default:
|
|
1187
|
+
o.skipType(d & 7);
|
|
1188
|
+
break;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
return n;
|
|
1192
|
+
},
|
|
1193
|
+
fromPartial(e) {
|
|
1194
|
+
var i, o;
|
|
1195
|
+
const t = pe();
|
|
1196
|
+
return t.liquidityDepths = ((i = e.liquidityDepths) === null || i === void 0 ? void 0 : i.map((n) => k.fromPartial(n))) || [], t.currentTick = e.currentTick !== void 0 && e.currentTick !== null ? s.fromValue(e.currentTick) : s.ZERO, t.currentLiquidity = (o = e.currentLiquidity) !== null && o !== void 0 ? o : "", t;
|
|
1197
|
+
},
|
|
1198
|
+
fromAmino(e) {
|
|
1199
|
+
return {
|
|
1200
|
+
liquidityDepths: Array.isArray(e == null ? void 0 : e.liquidity_depths) ? e.liquidity_depths.map((i) => k.fromAmino(i)) : [],
|
|
1201
|
+
currentTick: s.fromString(e.current_tick),
|
|
1202
|
+
currentLiquidity: e.current_liquidity
|
|
1203
|
+
};
|
|
1204
|
+
},
|
|
1205
|
+
toAmino(e) {
|
|
1206
|
+
const i = {};
|
|
1207
|
+
return e.liquidityDepths ? i.liquidity_depths = e.liquidityDepths.map((o) => o ? k.toAmino(o) : void 0) : i.liquidity_depths = [], i.current_tick = e.currentTick ? e.currentTick.toString() : void 0, i.current_liquidity = e.currentLiquidity, i;
|
|
1208
|
+
},
|
|
1209
|
+
fromAminoMsg(e) {
|
|
1210
|
+
return U.fromAmino(e.value);
|
|
1211
|
+
},
|
|
1212
|
+
toAminoMsg(e) {
|
|
1213
|
+
return {
|
|
1214
|
+
type: "osmosis/concentratedliquidity/liquidity-net-in-direction-response",
|
|
1215
|
+
value: U.toAmino(e)
|
|
1216
|
+
};
|
|
1217
|
+
},
|
|
1218
|
+
fromProtoMsg(e) {
|
|
1219
|
+
return U.decode(e.value);
|
|
1220
|
+
},
|
|
1221
|
+
toProto(e) {
|
|
1222
|
+
return U.encode(e).finish();
|
|
1223
|
+
},
|
|
1224
|
+
toProtoMsg(e) {
|
|
1225
|
+
return {
|
|
1226
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionResponse",
|
|
1227
|
+
value: U.encode(e).finish()
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
function fe() {
|
|
1232
|
+
return {
|
|
1233
|
+
poolId: s.UZERO
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
const S = {
|
|
1237
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeRequest",
|
|
1238
|
+
encode(e, i = r.Writer.create()) {
|
|
1239
|
+
return e.poolId.isZero() || i.uint32(8).uint64(e.poolId), i;
|
|
1240
|
+
},
|
|
1241
|
+
decode(e, i) {
|
|
1242
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1243
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1244
|
+
const n = fe();
|
|
1245
|
+
for (; o.pos < t; ) {
|
|
1246
|
+
const d = o.uint32();
|
|
1247
|
+
switch (d >>> 3) {
|
|
1248
|
+
case 1:
|
|
1249
|
+
n.poolId = o.uint64();
|
|
1250
|
+
break;
|
|
1251
|
+
default:
|
|
1252
|
+
o.skipType(d & 7);
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
return n;
|
|
1257
|
+
},
|
|
1258
|
+
fromPartial(e) {
|
|
1259
|
+
const i = fe();
|
|
1260
|
+
return i.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, i;
|
|
1261
|
+
},
|
|
1262
|
+
fromAmino(e) {
|
|
1263
|
+
return {
|
|
1264
|
+
poolId: s.fromString(e.pool_id)
|
|
1265
|
+
};
|
|
1266
|
+
},
|
|
1267
|
+
toAmino(e) {
|
|
1268
|
+
const i = {};
|
|
1269
|
+
return i.pool_id = e.poolId ? e.poolId.toString() : void 0, i;
|
|
1270
|
+
},
|
|
1271
|
+
fromAminoMsg(e) {
|
|
1272
|
+
return S.fromAmino(e.value);
|
|
1273
|
+
},
|
|
1274
|
+
toAminoMsg(e) {
|
|
1275
|
+
return {
|
|
1276
|
+
type: "osmosis/concentratedliquidity/liquidity-per-tick-range-request",
|
|
1277
|
+
value: S.toAmino(e)
|
|
1278
|
+
};
|
|
1279
|
+
},
|
|
1280
|
+
fromProtoMsg(e) {
|
|
1281
|
+
return S.decode(e.value);
|
|
1282
|
+
},
|
|
1283
|
+
toProto(e) {
|
|
1284
|
+
return S.encode(e).finish();
|
|
1285
|
+
},
|
|
1286
|
+
toProtoMsg(e) {
|
|
1287
|
+
return {
|
|
1288
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeRequest",
|
|
1289
|
+
value: S.encode(e).finish()
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
function ve() {
|
|
1294
|
+
return {
|
|
1295
|
+
liquidity: []
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
const B = {
|
|
1299
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeResponse",
|
|
1300
|
+
encode(e, i = r.Writer.create()) {
|
|
1301
|
+
for (const o of e.liquidity)
|
|
1302
|
+
R.encode(o, i.uint32(10).fork()).ldelim();
|
|
1303
|
+
return i;
|
|
1304
|
+
},
|
|
1305
|
+
decode(e, i) {
|
|
1306
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1307
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1308
|
+
const n = ve();
|
|
1309
|
+
for (; o.pos < t; ) {
|
|
1310
|
+
const d = o.uint32();
|
|
1311
|
+
switch (d >>> 3) {
|
|
1312
|
+
case 1:
|
|
1313
|
+
n.liquidity.push(R.decode(o, o.uint32()));
|
|
1314
|
+
break;
|
|
1315
|
+
default:
|
|
1316
|
+
o.skipType(d & 7);
|
|
1317
|
+
break;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
return n;
|
|
1321
|
+
},
|
|
1322
|
+
fromPartial(e) {
|
|
1323
|
+
var i;
|
|
1324
|
+
const o = ve();
|
|
1325
|
+
return o.liquidity = ((i = e.liquidity) === null || i === void 0 ? void 0 : i.map((t) => R.fromPartial(t))) || [], o;
|
|
1326
|
+
},
|
|
1327
|
+
fromAmino(e) {
|
|
1328
|
+
return {
|
|
1329
|
+
liquidity: Array.isArray(e == null ? void 0 : e.liquidity) ? e.liquidity.map((i) => R.fromAmino(i)) : []
|
|
1330
|
+
};
|
|
1331
|
+
},
|
|
1332
|
+
toAmino(e) {
|
|
1333
|
+
const i = {};
|
|
1334
|
+
return e.liquidity ? i.liquidity = e.liquidity.map((o) => o ? R.toAmino(o) : void 0) : i.liquidity = [], i;
|
|
1335
|
+
},
|
|
1336
|
+
fromAminoMsg(e) {
|
|
1337
|
+
return B.fromAmino(e.value);
|
|
1338
|
+
},
|
|
1339
|
+
toAminoMsg(e) {
|
|
1340
|
+
return {
|
|
1341
|
+
type: "osmosis/concentratedliquidity/liquidity-per-tick-range-response",
|
|
1342
|
+
value: B.toAmino(e)
|
|
1343
|
+
};
|
|
1344
|
+
},
|
|
1345
|
+
fromProtoMsg(e) {
|
|
1346
|
+
return B.decode(e.value);
|
|
1347
|
+
},
|
|
1348
|
+
toProto(e) {
|
|
1349
|
+
return B.encode(e).finish();
|
|
1350
|
+
},
|
|
1351
|
+
toProtoMsg(e) {
|
|
1352
|
+
return {
|
|
1353
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeResponse",
|
|
1354
|
+
value: B.encode(e).finish()
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
};
|
|
1358
|
+
function ye() {
|
|
1359
|
+
return {
|
|
1360
|
+
positionId: s.UZERO
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
const O = {
|
|
1364
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsRequest",
|
|
1365
|
+
encode(e, i = r.Writer.create()) {
|
|
1366
|
+
return e.positionId.isZero() || i.uint32(8).uint64(e.positionId), i;
|
|
1367
|
+
},
|
|
1368
|
+
decode(e, i) {
|
|
1369
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1370
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1371
|
+
const n = ye();
|
|
1372
|
+
for (; o.pos < t; ) {
|
|
1373
|
+
const d = o.uint32();
|
|
1374
|
+
switch (d >>> 3) {
|
|
1375
|
+
case 1:
|
|
1376
|
+
n.positionId = o.uint64();
|
|
1377
|
+
break;
|
|
1378
|
+
default:
|
|
1379
|
+
o.skipType(d & 7);
|
|
1380
|
+
break;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
return n;
|
|
1384
|
+
},
|
|
1385
|
+
fromPartial(e) {
|
|
1386
|
+
const i = ye();
|
|
1387
|
+
return i.positionId = e.positionId !== void 0 && e.positionId !== null ? s.fromValue(e.positionId) : s.UZERO, i;
|
|
1388
|
+
},
|
|
1389
|
+
fromAmino(e) {
|
|
1390
|
+
return {
|
|
1391
|
+
positionId: s.fromString(e.position_id)
|
|
1392
|
+
};
|
|
1393
|
+
},
|
|
1394
|
+
toAmino(e) {
|
|
1395
|
+
const i = {};
|
|
1396
|
+
return i.position_id = e.positionId ? e.positionId.toString() : void 0, i;
|
|
1397
|
+
},
|
|
1398
|
+
fromAminoMsg(e) {
|
|
1399
|
+
return O.fromAmino(e.value);
|
|
1400
|
+
},
|
|
1401
|
+
toAminoMsg(e) {
|
|
1402
|
+
return {
|
|
1403
|
+
type: "osmosis/concentratedliquidity/claimable-spread-rewards-request",
|
|
1404
|
+
value: O.toAmino(e)
|
|
1405
|
+
};
|
|
1406
|
+
},
|
|
1407
|
+
fromProtoMsg(e) {
|
|
1408
|
+
return O.decode(e.value);
|
|
1409
|
+
},
|
|
1410
|
+
toProto(e) {
|
|
1411
|
+
return O.encode(e).finish();
|
|
1412
|
+
},
|
|
1413
|
+
toProtoMsg(e) {
|
|
1414
|
+
return {
|
|
1415
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsRequest",
|
|
1416
|
+
value: O.encode(e).finish()
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
function ke() {
|
|
1421
|
+
return {
|
|
1422
|
+
claimableSpreadRewards: []
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
const Z = {
|
|
1426
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsResponse",
|
|
1427
|
+
encode(e, i = r.Writer.create()) {
|
|
1428
|
+
for (const o of e.claimableSpreadRewards)
|
|
1429
|
+
a.encode(o, i.uint32(10).fork()).ldelim();
|
|
1430
|
+
return i;
|
|
1431
|
+
},
|
|
1432
|
+
decode(e, i) {
|
|
1433
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1434
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1435
|
+
const n = ke();
|
|
1436
|
+
for (; o.pos < t; ) {
|
|
1437
|
+
const d = o.uint32();
|
|
1438
|
+
switch (d >>> 3) {
|
|
1439
|
+
case 1:
|
|
1440
|
+
n.claimableSpreadRewards.push(a.decode(o, o.uint32()));
|
|
1441
|
+
break;
|
|
1442
|
+
default:
|
|
1443
|
+
o.skipType(d & 7);
|
|
1444
|
+
break;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
return n;
|
|
1448
|
+
},
|
|
1449
|
+
fromPartial(e) {
|
|
1450
|
+
var i;
|
|
1451
|
+
const o = ke();
|
|
1452
|
+
return o.claimableSpreadRewards = ((i = e.claimableSpreadRewards) === null || i === void 0 ? void 0 : i.map((t) => a.fromPartial(t))) || [], o;
|
|
1453
|
+
},
|
|
1454
|
+
fromAmino(e) {
|
|
1455
|
+
return {
|
|
1456
|
+
claimableSpreadRewards: Array.isArray(e == null ? void 0 : e.claimable_spread_rewards) ? e.claimable_spread_rewards.map((i) => a.fromAmino(i)) : []
|
|
1457
|
+
};
|
|
1458
|
+
},
|
|
1459
|
+
toAmino(e) {
|
|
1460
|
+
const i = {};
|
|
1461
|
+
return e.claimableSpreadRewards ? i.claimable_spread_rewards = e.claimableSpreadRewards.map((o) => o ? a.toAmino(o) : void 0) : i.claimable_spread_rewards = [], i;
|
|
1462
|
+
},
|
|
1463
|
+
fromAminoMsg(e) {
|
|
1464
|
+
return Z.fromAmino(e.value);
|
|
1465
|
+
},
|
|
1466
|
+
toAminoMsg(e) {
|
|
1467
|
+
return {
|
|
1468
|
+
type: "osmosis/concentratedliquidity/claimable-spread-rewards-response",
|
|
1469
|
+
value: Z.toAmino(e)
|
|
1470
|
+
};
|
|
1471
|
+
},
|
|
1472
|
+
fromProtoMsg(e) {
|
|
1473
|
+
return Z.decode(e.value);
|
|
1474
|
+
},
|
|
1475
|
+
toProto(e) {
|
|
1476
|
+
return Z.encode(e).finish();
|
|
1477
|
+
},
|
|
1478
|
+
toProtoMsg(e) {
|
|
1479
|
+
return {
|
|
1480
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsResponse",
|
|
1481
|
+
value: Z.encode(e).finish()
|
|
1482
|
+
};
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
function Re() {
|
|
1486
|
+
return {
|
|
1487
|
+
positionId: s.UZERO
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
const C = {
|
|
1491
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesRequest",
|
|
1492
|
+
encode(e, i = r.Writer.create()) {
|
|
1493
|
+
return e.positionId.isZero() || i.uint32(8).uint64(e.positionId), i;
|
|
1494
|
+
},
|
|
1495
|
+
decode(e, i) {
|
|
1496
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1497
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1498
|
+
const n = Re();
|
|
1499
|
+
for (; o.pos < t; ) {
|
|
1500
|
+
const d = o.uint32();
|
|
1501
|
+
switch (d >>> 3) {
|
|
1502
|
+
case 1:
|
|
1503
|
+
n.positionId = o.uint64();
|
|
1504
|
+
break;
|
|
1505
|
+
default:
|
|
1506
|
+
o.skipType(d & 7);
|
|
1507
|
+
break;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
return n;
|
|
1511
|
+
},
|
|
1512
|
+
fromPartial(e) {
|
|
1513
|
+
const i = Re();
|
|
1514
|
+
return i.positionId = e.positionId !== void 0 && e.positionId !== null ? s.fromValue(e.positionId) : s.UZERO, i;
|
|
1515
|
+
},
|
|
1516
|
+
fromAmino(e) {
|
|
1517
|
+
return {
|
|
1518
|
+
positionId: s.fromString(e.position_id)
|
|
1519
|
+
};
|
|
1520
|
+
},
|
|
1521
|
+
toAmino(e) {
|
|
1522
|
+
const i = {};
|
|
1523
|
+
return i.position_id = e.positionId ? e.positionId.toString() : void 0, i;
|
|
1524
|
+
},
|
|
1525
|
+
fromAminoMsg(e) {
|
|
1526
|
+
return C.fromAmino(e.value);
|
|
1527
|
+
},
|
|
1528
|
+
toAminoMsg(e) {
|
|
1529
|
+
return {
|
|
1530
|
+
type: "osmosis/concentratedliquidity/claimable-incentives-request",
|
|
1531
|
+
value: C.toAmino(e)
|
|
1532
|
+
};
|
|
1533
|
+
},
|
|
1534
|
+
fromProtoMsg(e) {
|
|
1535
|
+
return C.decode(e.value);
|
|
1536
|
+
},
|
|
1537
|
+
toProto(e) {
|
|
1538
|
+
return C.encode(e).finish();
|
|
1539
|
+
},
|
|
1540
|
+
toProtoMsg(e) {
|
|
1541
|
+
return {
|
|
1542
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesRequest",
|
|
1543
|
+
value: C.encode(e).finish()
|
|
1544
|
+
};
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
function Ae() {
|
|
1548
|
+
return {
|
|
1549
|
+
claimableIncentives: [],
|
|
1550
|
+
forfeitedIncentives: []
|
|
1551
|
+
};
|
|
1552
|
+
}
|
|
1553
|
+
const L = {
|
|
1554
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesResponse",
|
|
1555
|
+
encode(e, i = r.Writer.create()) {
|
|
1556
|
+
for (const o of e.claimableIncentives)
|
|
1557
|
+
a.encode(o, i.uint32(10).fork()).ldelim();
|
|
1558
|
+
for (const o of e.forfeitedIncentives)
|
|
1559
|
+
a.encode(o, i.uint32(18).fork()).ldelim();
|
|
1560
|
+
return i;
|
|
1561
|
+
},
|
|
1562
|
+
decode(e, i) {
|
|
1563
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1564
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1565
|
+
const n = Ae();
|
|
1566
|
+
for (; o.pos < t; ) {
|
|
1567
|
+
const d = o.uint32();
|
|
1568
|
+
switch (d >>> 3) {
|
|
1569
|
+
case 1:
|
|
1570
|
+
n.claimableIncentives.push(a.decode(o, o.uint32()));
|
|
1571
|
+
break;
|
|
1572
|
+
case 2:
|
|
1573
|
+
n.forfeitedIncentives.push(a.decode(o, o.uint32()));
|
|
1574
|
+
break;
|
|
1575
|
+
default:
|
|
1576
|
+
o.skipType(d & 7);
|
|
1577
|
+
break;
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
return n;
|
|
1581
|
+
},
|
|
1582
|
+
fromPartial(e) {
|
|
1583
|
+
var i, o;
|
|
1584
|
+
const t = Ae();
|
|
1585
|
+
return t.claimableIncentives = ((i = e.claimableIncentives) === null || i === void 0 ? void 0 : i.map((n) => a.fromPartial(n))) || [], t.forfeitedIncentives = ((o = e.forfeitedIncentives) === null || o === void 0 ? void 0 : o.map((n) => a.fromPartial(n))) || [], t;
|
|
1586
|
+
},
|
|
1587
|
+
fromAmino(e) {
|
|
1588
|
+
return {
|
|
1589
|
+
claimableIncentives: Array.isArray(e == null ? void 0 : e.claimable_incentives) ? e.claimable_incentives.map((i) => a.fromAmino(i)) : [],
|
|
1590
|
+
forfeitedIncentives: Array.isArray(e == null ? void 0 : e.forfeited_incentives) ? e.forfeited_incentives.map((i) => a.fromAmino(i)) : []
|
|
1591
|
+
};
|
|
1592
|
+
},
|
|
1593
|
+
toAmino(e) {
|
|
1594
|
+
const i = {};
|
|
1595
|
+
return e.claimableIncentives ? i.claimable_incentives = e.claimableIncentives.map((o) => o ? a.toAmino(o) : void 0) : i.claimable_incentives = [], e.forfeitedIncentives ? i.forfeited_incentives = e.forfeitedIncentives.map((o) => o ? a.toAmino(o) : void 0) : i.forfeited_incentives = [], i;
|
|
1596
|
+
},
|
|
1597
|
+
fromAminoMsg(e) {
|
|
1598
|
+
return L.fromAmino(e.value);
|
|
1599
|
+
},
|
|
1600
|
+
toAminoMsg(e) {
|
|
1601
|
+
return {
|
|
1602
|
+
type: "osmosis/concentratedliquidity/claimable-incentives-response",
|
|
1603
|
+
value: L.toAmino(e)
|
|
1604
|
+
};
|
|
1605
|
+
},
|
|
1606
|
+
fromProtoMsg(e) {
|
|
1607
|
+
return L.decode(e.value);
|
|
1608
|
+
},
|
|
1609
|
+
toProto(e) {
|
|
1610
|
+
return L.encode(e).finish();
|
|
1611
|
+
},
|
|
1612
|
+
toProtoMsg(e) {
|
|
1613
|
+
return {
|
|
1614
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesResponse",
|
|
1615
|
+
value: L.encode(e).finish()
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
function Ie() {
|
|
1620
|
+
return {
|
|
1621
|
+
poolId: s.UZERO
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
const G = {
|
|
1625
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsRequest",
|
|
1626
|
+
encode(e, i = r.Writer.create()) {
|
|
1627
|
+
return e.poolId.isZero() || i.uint32(8).uint64(e.poolId), i;
|
|
1628
|
+
},
|
|
1629
|
+
decode(e, i) {
|
|
1630
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1631
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1632
|
+
const n = Ie();
|
|
1633
|
+
for (; o.pos < t; ) {
|
|
1634
|
+
const d = o.uint32();
|
|
1635
|
+
switch (d >>> 3) {
|
|
1636
|
+
case 1:
|
|
1637
|
+
n.poolId = o.uint64();
|
|
1638
|
+
break;
|
|
1639
|
+
default:
|
|
1640
|
+
o.skipType(d & 7);
|
|
1641
|
+
break;
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
return n;
|
|
1645
|
+
},
|
|
1646
|
+
fromPartial(e) {
|
|
1647
|
+
const i = Ie();
|
|
1648
|
+
return i.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, i;
|
|
1649
|
+
},
|
|
1650
|
+
fromAmino(e) {
|
|
1651
|
+
return {
|
|
1652
|
+
poolId: s.fromString(e.pool_id)
|
|
1653
|
+
};
|
|
1654
|
+
},
|
|
1655
|
+
toAmino(e) {
|
|
1656
|
+
const i = {};
|
|
1657
|
+
return i.pool_id = e.poolId ? e.poolId.toString() : void 0, i;
|
|
1658
|
+
},
|
|
1659
|
+
fromAminoMsg(e) {
|
|
1660
|
+
return G.fromAmino(e.value);
|
|
1661
|
+
},
|
|
1662
|
+
toAminoMsg(e) {
|
|
1663
|
+
return {
|
|
1664
|
+
type: "osmosis/concentratedliquidity/pool-accumulator-rewards-request",
|
|
1665
|
+
value: G.toAmino(e)
|
|
1666
|
+
};
|
|
1667
|
+
},
|
|
1668
|
+
fromProtoMsg(e) {
|
|
1669
|
+
return G.decode(e.value);
|
|
1670
|
+
},
|
|
1671
|
+
toProto(e) {
|
|
1672
|
+
return G.encode(e).finish();
|
|
1673
|
+
},
|
|
1674
|
+
toProtoMsg(e) {
|
|
1675
|
+
return {
|
|
1676
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsRequest",
|
|
1677
|
+
value: G.encode(e).finish()
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
};
|
|
1681
|
+
function Pe() {
|
|
1682
|
+
return {
|
|
1683
|
+
spreadRewardGrowthGlobal: [],
|
|
1684
|
+
uptimeGrowthGlobal: []
|
|
1685
|
+
};
|
|
1686
|
+
}
|
|
1687
|
+
const E = {
|
|
1688
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsResponse",
|
|
1689
|
+
encode(e, i = r.Writer.create()) {
|
|
1690
|
+
for (const o of e.spreadRewardGrowthGlobal)
|
|
1691
|
+
u.encode(o, i.uint32(10).fork()).ldelim();
|
|
1692
|
+
for (const o of e.uptimeGrowthGlobal)
|
|
1693
|
+
p.encode(o, i.uint32(18).fork()).ldelim();
|
|
1694
|
+
return i;
|
|
1695
|
+
},
|
|
1696
|
+
decode(e, i) {
|
|
1697
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1698
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1699
|
+
const n = Pe();
|
|
1700
|
+
for (; o.pos < t; ) {
|
|
1701
|
+
const d = o.uint32();
|
|
1702
|
+
switch (d >>> 3) {
|
|
1703
|
+
case 1:
|
|
1704
|
+
n.spreadRewardGrowthGlobal.push(u.decode(o, o.uint32()));
|
|
1705
|
+
break;
|
|
1706
|
+
case 2:
|
|
1707
|
+
n.uptimeGrowthGlobal.push(p.decode(o, o.uint32()));
|
|
1708
|
+
break;
|
|
1709
|
+
default:
|
|
1710
|
+
o.skipType(d & 7);
|
|
1711
|
+
break;
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
return n;
|
|
1715
|
+
},
|
|
1716
|
+
fromPartial(e) {
|
|
1717
|
+
var i, o;
|
|
1718
|
+
const t = Pe();
|
|
1719
|
+
return t.spreadRewardGrowthGlobal = ((i = e.spreadRewardGrowthGlobal) === null || i === void 0 ? void 0 : i.map((n) => u.fromPartial(n))) || [], t.uptimeGrowthGlobal = ((o = e.uptimeGrowthGlobal) === null || o === void 0 ? void 0 : o.map((n) => p.fromPartial(n))) || [], t;
|
|
1720
|
+
},
|
|
1721
|
+
fromAmino(e) {
|
|
1722
|
+
return {
|
|
1723
|
+
spreadRewardGrowthGlobal: Array.isArray(e == null ? void 0 : e.spread_reward_growth_global) ? e.spread_reward_growth_global.map((i) => u.fromAmino(i)) : [],
|
|
1724
|
+
uptimeGrowthGlobal: Array.isArray(e == null ? void 0 : e.uptime_growth_global) ? e.uptime_growth_global.map((i) => p.fromAmino(i)) : []
|
|
1725
|
+
};
|
|
1726
|
+
},
|
|
1727
|
+
toAmino(e) {
|
|
1728
|
+
const i = {};
|
|
1729
|
+
return e.spreadRewardGrowthGlobal ? i.spread_reward_growth_global = e.spreadRewardGrowthGlobal.map((o) => o ? u.toAmino(o) : void 0) : i.spread_reward_growth_global = [], e.uptimeGrowthGlobal ? i.uptime_growth_global = e.uptimeGrowthGlobal.map((o) => o ? p.toAmino(o) : void 0) : i.uptime_growth_global = [], i;
|
|
1730
|
+
},
|
|
1731
|
+
fromAminoMsg(e) {
|
|
1732
|
+
return E.fromAmino(e.value);
|
|
1733
|
+
},
|
|
1734
|
+
toAminoMsg(e) {
|
|
1735
|
+
return {
|
|
1736
|
+
type: "osmosis/concentratedliquidity/pool-accumulator-rewards-response",
|
|
1737
|
+
value: E.toAmino(e)
|
|
1738
|
+
};
|
|
1739
|
+
},
|
|
1740
|
+
fromProtoMsg(e) {
|
|
1741
|
+
return E.decode(e.value);
|
|
1742
|
+
},
|
|
1743
|
+
toProto(e) {
|
|
1744
|
+
return E.encode(e).finish();
|
|
1745
|
+
},
|
|
1746
|
+
toProtoMsg(e) {
|
|
1747
|
+
return {
|
|
1748
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsResponse",
|
|
1749
|
+
value: E.encode(e).finish()
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
};
|
|
1753
|
+
function qe() {
|
|
1754
|
+
return {
|
|
1755
|
+
poolId: s.UZERO,
|
|
1756
|
+
tickIndex: s.ZERO
|
|
1757
|
+
};
|
|
1758
|
+
}
|
|
1759
|
+
const D = {
|
|
1760
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersRequest",
|
|
1761
|
+
encode(e, i = r.Writer.create()) {
|
|
1762
|
+
return e.poolId.isZero() || i.uint32(8).uint64(e.poolId), e.tickIndex.isZero() || i.uint32(16).int64(e.tickIndex), i;
|
|
1763
|
+
},
|
|
1764
|
+
decode(e, i) {
|
|
1765
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1766
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1767
|
+
const n = qe();
|
|
1768
|
+
for (; o.pos < t; ) {
|
|
1769
|
+
const d = o.uint32();
|
|
1770
|
+
switch (d >>> 3) {
|
|
1771
|
+
case 1:
|
|
1772
|
+
n.poolId = o.uint64();
|
|
1773
|
+
break;
|
|
1774
|
+
case 2:
|
|
1775
|
+
n.tickIndex = o.int64();
|
|
1776
|
+
break;
|
|
1777
|
+
default:
|
|
1778
|
+
o.skipType(d & 7);
|
|
1779
|
+
break;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
return n;
|
|
1783
|
+
},
|
|
1784
|
+
fromPartial(e) {
|
|
1785
|
+
const i = qe();
|
|
1786
|
+
return i.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, i.tickIndex = e.tickIndex !== void 0 && e.tickIndex !== null ? s.fromValue(e.tickIndex) : s.ZERO, i;
|
|
1787
|
+
},
|
|
1788
|
+
fromAmino(e) {
|
|
1789
|
+
return {
|
|
1790
|
+
poolId: s.fromString(e.pool_id),
|
|
1791
|
+
tickIndex: s.fromString(e.tick_index)
|
|
1792
|
+
};
|
|
1793
|
+
},
|
|
1794
|
+
toAmino(e) {
|
|
1795
|
+
const i = {};
|
|
1796
|
+
return i.pool_id = e.poolId ? e.poolId.toString() : void 0, i.tick_index = e.tickIndex ? e.tickIndex.toString() : void 0, i;
|
|
1797
|
+
},
|
|
1798
|
+
fromAminoMsg(e) {
|
|
1799
|
+
return D.fromAmino(e.value);
|
|
1800
|
+
},
|
|
1801
|
+
toAminoMsg(e) {
|
|
1802
|
+
return {
|
|
1803
|
+
type: "osmosis/concentratedliquidity/tick-accumulator-trackers-request",
|
|
1804
|
+
value: D.toAmino(e)
|
|
1805
|
+
};
|
|
1806
|
+
},
|
|
1807
|
+
fromProtoMsg(e) {
|
|
1808
|
+
return D.decode(e.value);
|
|
1809
|
+
},
|
|
1810
|
+
toProto(e) {
|
|
1811
|
+
return D.encode(e).finish();
|
|
1812
|
+
},
|
|
1813
|
+
toProtoMsg(e) {
|
|
1814
|
+
return {
|
|
1815
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersRequest",
|
|
1816
|
+
value: D.encode(e).finish()
|
|
1817
|
+
};
|
|
1818
|
+
}
|
|
1819
|
+
};
|
|
1820
|
+
function he() {
|
|
1821
|
+
return {
|
|
1822
|
+
spreadRewardGrowthOppositeDirectionOfLastTraversal: [],
|
|
1823
|
+
uptimeTrackers: []
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
const W = {
|
|
1827
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersResponse",
|
|
1828
|
+
encode(e, i = r.Writer.create()) {
|
|
1829
|
+
for (const o of e.spreadRewardGrowthOppositeDirectionOfLastTraversal)
|
|
1830
|
+
u.encode(o, i.uint32(10).fork()).ldelim();
|
|
1831
|
+
for (const o of e.uptimeTrackers)
|
|
1832
|
+
p.encode(o, i.uint32(18).fork()).ldelim();
|
|
1833
|
+
return i;
|
|
1834
|
+
},
|
|
1835
|
+
decode(e, i) {
|
|
1836
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1837
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1838
|
+
const n = he();
|
|
1839
|
+
for (; o.pos < t; ) {
|
|
1840
|
+
const d = o.uint32();
|
|
1841
|
+
switch (d >>> 3) {
|
|
1842
|
+
case 1:
|
|
1843
|
+
n.spreadRewardGrowthOppositeDirectionOfLastTraversal.push(u.decode(o, o.uint32()));
|
|
1844
|
+
break;
|
|
1845
|
+
case 2:
|
|
1846
|
+
n.uptimeTrackers.push(p.decode(o, o.uint32()));
|
|
1847
|
+
break;
|
|
1848
|
+
default:
|
|
1849
|
+
o.skipType(d & 7);
|
|
1850
|
+
break;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
return n;
|
|
1854
|
+
},
|
|
1855
|
+
fromPartial(e) {
|
|
1856
|
+
var i, o;
|
|
1857
|
+
const t = he();
|
|
1858
|
+
return t.spreadRewardGrowthOppositeDirectionOfLastTraversal = ((i = e.spreadRewardGrowthOppositeDirectionOfLastTraversal) === null || i === void 0 ? void 0 : i.map((n) => u.fromPartial(n))) || [], t.uptimeTrackers = ((o = e.uptimeTrackers) === null || o === void 0 ? void 0 : o.map((n) => p.fromPartial(n))) || [], t;
|
|
1859
|
+
},
|
|
1860
|
+
fromAmino(e) {
|
|
1861
|
+
return {
|
|
1862
|
+
spreadRewardGrowthOppositeDirectionOfLastTraversal: Array.isArray(e == null ? void 0 : e.spread_reward_growth_opposite_direction_of_last_traversal) ? e.spread_reward_growth_opposite_direction_of_last_traversal.map((i) => u.fromAmino(i)) : [],
|
|
1863
|
+
uptimeTrackers: Array.isArray(e == null ? void 0 : e.uptime_trackers) ? e.uptime_trackers.map((i) => p.fromAmino(i)) : []
|
|
1864
|
+
};
|
|
1865
|
+
},
|
|
1866
|
+
toAmino(e) {
|
|
1867
|
+
const i = {};
|
|
1868
|
+
return e.spreadRewardGrowthOppositeDirectionOfLastTraversal ? i.spread_reward_growth_opposite_direction_of_last_traversal = e.spreadRewardGrowthOppositeDirectionOfLastTraversal.map((o) => o ? u.toAmino(o) : void 0) : i.spread_reward_growth_opposite_direction_of_last_traversal = [], e.uptimeTrackers ? i.uptime_trackers = e.uptimeTrackers.map((o) => o ? p.toAmino(o) : void 0) : i.uptime_trackers = [], i;
|
|
1869
|
+
},
|
|
1870
|
+
fromAminoMsg(e) {
|
|
1871
|
+
return W.fromAmino(e.value);
|
|
1872
|
+
},
|
|
1873
|
+
toAminoMsg(e) {
|
|
1874
|
+
return {
|
|
1875
|
+
type: "osmosis/concentratedliquidity/tick-accumulator-trackers-response",
|
|
1876
|
+
value: W.toAmino(e)
|
|
1877
|
+
};
|
|
1878
|
+
},
|
|
1879
|
+
fromProtoMsg(e) {
|
|
1880
|
+
return W.decode(e.value);
|
|
1881
|
+
},
|
|
1882
|
+
toProto(e) {
|
|
1883
|
+
return W.encode(e).finish();
|
|
1884
|
+
},
|
|
1885
|
+
toProtoMsg(e) {
|
|
1886
|
+
return {
|
|
1887
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersResponse",
|
|
1888
|
+
value: W.encode(e).finish()
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
};
|
|
1892
|
+
function ge() {
|
|
1893
|
+
return {
|
|
1894
|
+
poolId: s.UZERO,
|
|
1895
|
+
pagination: void 0
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1898
|
+
const N = {
|
|
1899
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecordsRequest",
|
|
1900
|
+
encode(e, i = r.Writer.create()) {
|
|
1901
|
+
return e.poolId.isZero() || i.uint32(8).uint64(e.poolId), e.pagination !== void 0 && l.encode(e.pagination, i.uint32(18).fork()).ldelim(), i;
|
|
1902
|
+
},
|
|
1903
|
+
decode(e, i) {
|
|
1904
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1905
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1906
|
+
const n = ge();
|
|
1907
|
+
for (; o.pos < t; ) {
|
|
1908
|
+
const d = o.uint32();
|
|
1909
|
+
switch (d >>> 3) {
|
|
1910
|
+
case 1:
|
|
1911
|
+
n.poolId = o.uint64();
|
|
1912
|
+
break;
|
|
1913
|
+
case 2:
|
|
1914
|
+
n.pagination = l.decode(o, o.uint32());
|
|
1915
|
+
break;
|
|
1916
|
+
default:
|
|
1917
|
+
o.skipType(d & 7);
|
|
1918
|
+
break;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
return n;
|
|
1922
|
+
},
|
|
1923
|
+
fromPartial(e) {
|
|
1924
|
+
const i = ge();
|
|
1925
|
+
return i.poolId = e.poolId !== void 0 && e.poolId !== null ? s.fromValue(e.poolId) : s.UZERO, i.pagination = e.pagination !== void 0 && e.pagination !== null ? l.fromPartial(e.pagination) : void 0, i;
|
|
1926
|
+
},
|
|
1927
|
+
fromAmino(e) {
|
|
1928
|
+
return {
|
|
1929
|
+
poolId: s.fromString(e.pool_id),
|
|
1930
|
+
pagination: e != null && e.pagination ? l.fromAmino(e.pagination) : void 0
|
|
1931
|
+
};
|
|
1932
|
+
},
|
|
1933
|
+
toAmino(e) {
|
|
1934
|
+
const i = {};
|
|
1935
|
+
return i.pool_id = e.poolId ? e.poolId.toString() : void 0, i.pagination = e.pagination ? l.toAmino(e.pagination) : void 0, i;
|
|
1936
|
+
},
|
|
1937
|
+
fromAminoMsg(e) {
|
|
1938
|
+
return N.fromAmino(e.value);
|
|
1939
|
+
},
|
|
1940
|
+
toAminoMsg(e) {
|
|
1941
|
+
return {
|
|
1942
|
+
type: "osmosis/concentratedliquidity/incentive-records-request",
|
|
1943
|
+
value: N.toAmino(e)
|
|
1944
|
+
};
|
|
1945
|
+
},
|
|
1946
|
+
fromProtoMsg(e) {
|
|
1947
|
+
return N.decode(e.value);
|
|
1948
|
+
},
|
|
1949
|
+
toProto(e) {
|
|
1950
|
+
return N.encode(e).finish();
|
|
1951
|
+
},
|
|
1952
|
+
toProtoMsg(e) {
|
|
1953
|
+
return {
|
|
1954
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecordsRequest",
|
|
1955
|
+
value: N.encode(e).finish()
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1959
|
+
function _e() {
|
|
1960
|
+
return {
|
|
1961
|
+
incentiveRecords: [],
|
|
1962
|
+
pagination: void 0
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1965
|
+
const F = {
|
|
1966
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecordsResponse",
|
|
1967
|
+
encode(e, i = r.Writer.create()) {
|
|
1968
|
+
for (const o of e.incentiveRecords)
|
|
1969
|
+
v.encode(o, i.uint32(10).fork()).ldelim();
|
|
1970
|
+
return e.pagination !== void 0 && c.encode(e.pagination, i.uint32(18).fork()).ldelim(), i;
|
|
1971
|
+
},
|
|
1972
|
+
decode(e, i) {
|
|
1973
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
1974
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
1975
|
+
const n = _e();
|
|
1976
|
+
for (; o.pos < t; ) {
|
|
1977
|
+
const d = o.uint32();
|
|
1978
|
+
switch (d >>> 3) {
|
|
1979
|
+
case 1:
|
|
1980
|
+
n.incentiveRecords.push(v.decode(o, o.uint32()));
|
|
1981
|
+
break;
|
|
1982
|
+
case 2:
|
|
1983
|
+
n.pagination = c.decode(o, o.uint32());
|
|
1984
|
+
break;
|
|
1985
|
+
default:
|
|
1986
|
+
o.skipType(d & 7);
|
|
1987
|
+
break;
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
return n;
|
|
1991
|
+
},
|
|
1992
|
+
fromPartial(e) {
|
|
1993
|
+
var i;
|
|
1994
|
+
const o = _e();
|
|
1995
|
+
return o.incentiveRecords = ((i = e.incentiveRecords) === null || i === void 0 ? void 0 : i.map((t) => v.fromPartial(t))) || [], o.pagination = e.pagination !== void 0 && e.pagination !== null ? c.fromPartial(e.pagination) : void 0, o;
|
|
1996
|
+
},
|
|
1997
|
+
fromAmino(e) {
|
|
1998
|
+
return {
|
|
1999
|
+
incentiveRecords: Array.isArray(e == null ? void 0 : e.incentive_records) ? e.incentive_records.map((i) => v.fromAmino(i)) : [],
|
|
2000
|
+
pagination: e != null && e.pagination ? c.fromAmino(e.pagination) : void 0
|
|
2001
|
+
};
|
|
2002
|
+
},
|
|
2003
|
+
toAmino(e) {
|
|
2004
|
+
const i = {};
|
|
2005
|
+
return e.incentiveRecords ? i.incentive_records = e.incentiveRecords.map((o) => o ? v.toAmino(o) : void 0) : i.incentive_records = [], i.pagination = e.pagination ? c.toAmino(e.pagination) : void 0, i;
|
|
2006
|
+
},
|
|
2007
|
+
fromAminoMsg(e) {
|
|
2008
|
+
return F.fromAmino(e.value);
|
|
2009
|
+
},
|
|
2010
|
+
toAminoMsg(e) {
|
|
2011
|
+
return {
|
|
2012
|
+
type: "osmosis/concentratedliquidity/incentive-records-response",
|
|
2013
|
+
value: F.toAmino(e)
|
|
2014
|
+
};
|
|
2015
|
+
},
|
|
2016
|
+
fromProtoMsg(e) {
|
|
2017
|
+
return F.decode(e.value);
|
|
2018
|
+
},
|
|
2019
|
+
toProto(e) {
|
|
2020
|
+
return F.encode(e).finish();
|
|
2021
|
+
},
|
|
2022
|
+
toProtoMsg(e) {
|
|
2023
|
+
return {
|
|
2024
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.IncentiveRecordsResponse",
|
|
2025
|
+
value: F.encode(e).finish()
|
|
2026
|
+
};
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
function we() {
|
|
2030
|
+
return {
|
|
2031
|
+
concentratedPoolId: s.UZERO
|
|
2032
|
+
};
|
|
2033
|
+
}
|
|
2034
|
+
const $ = {
|
|
2035
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdRequest",
|
|
2036
|
+
encode(e, i = r.Writer.create()) {
|
|
2037
|
+
return e.concentratedPoolId.isZero() || i.uint32(8).uint64(e.concentratedPoolId), i;
|
|
2038
|
+
},
|
|
2039
|
+
decode(e, i) {
|
|
2040
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
2041
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
2042
|
+
const n = we();
|
|
2043
|
+
for (; o.pos < t; ) {
|
|
2044
|
+
const d = o.uint32();
|
|
2045
|
+
switch (d >>> 3) {
|
|
2046
|
+
case 1:
|
|
2047
|
+
n.concentratedPoolId = o.uint64();
|
|
2048
|
+
break;
|
|
2049
|
+
default:
|
|
2050
|
+
o.skipType(d & 7);
|
|
2051
|
+
break;
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
return n;
|
|
2055
|
+
},
|
|
2056
|
+
fromPartial(e) {
|
|
2057
|
+
const i = we();
|
|
2058
|
+
return i.concentratedPoolId = e.concentratedPoolId !== void 0 && e.concentratedPoolId !== null ? s.fromValue(e.concentratedPoolId) : s.UZERO, i;
|
|
2059
|
+
},
|
|
2060
|
+
fromAmino(e) {
|
|
2061
|
+
return {
|
|
2062
|
+
concentratedPoolId: s.fromString(e.concentrated_pool_id)
|
|
2063
|
+
};
|
|
2064
|
+
},
|
|
2065
|
+
toAmino(e) {
|
|
2066
|
+
const i = {};
|
|
2067
|
+
return i.concentrated_pool_id = e.concentratedPoolId ? e.concentratedPoolId.toString() : void 0, i;
|
|
2068
|
+
},
|
|
2069
|
+
fromAminoMsg(e) {
|
|
2070
|
+
return $.fromAmino(e.value);
|
|
2071
|
+
},
|
|
2072
|
+
toAminoMsg(e) {
|
|
2073
|
+
return {
|
|
2074
|
+
type: "osmosis/concentratedliquidity/cfmmpool-id-link-from-concentrated-pool-id-request",
|
|
2075
|
+
value: $.toAmino(e)
|
|
2076
|
+
};
|
|
2077
|
+
},
|
|
2078
|
+
fromProtoMsg(e) {
|
|
2079
|
+
return $.decode(e.value);
|
|
2080
|
+
},
|
|
2081
|
+
toProto(e) {
|
|
2082
|
+
return $.encode(e).finish();
|
|
2083
|
+
},
|
|
2084
|
+
toProtoMsg(e) {
|
|
2085
|
+
return {
|
|
2086
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdRequest",
|
|
2087
|
+
value: $.encode(e).finish()
|
|
2088
|
+
};
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
function Te() {
|
|
2092
|
+
return {
|
|
2093
|
+
cfmmPoolId: s.UZERO
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
const x = {
|
|
2097
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdResponse",
|
|
2098
|
+
encode(e, i = r.Writer.create()) {
|
|
2099
|
+
return e.cfmmPoolId.isZero() || i.uint32(8).uint64(e.cfmmPoolId), i;
|
|
2100
|
+
},
|
|
2101
|
+
decode(e, i) {
|
|
2102
|
+
const o = e instanceof r.Reader ? e : new r.Reader(e);
|
|
2103
|
+
let t = i === void 0 ? o.len : o.pos + i;
|
|
2104
|
+
const n = Te();
|
|
2105
|
+
for (; o.pos < t; ) {
|
|
2106
|
+
const d = o.uint32();
|
|
2107
|
+
switch (d >>> 3) {
|
|
2108
|
+
case 1:
|
|
2109
|
+
n.cfmmPoolId = o.uint64();
|
|
2110
|
+
break;
|
|
2111
|
+
default:
|
|
2112
|
+
o.skipType(d & 7);
|
|
2113
|
+
break;
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
return n;
|
|
2117
|
+
},
|
|
2118
|
+
fromPartial(e) {
|
|
2119
|
+
const i = Te();
|
|
2120
|
+
return i.cfmmPoolId = e.cfmmPoolId !== void 0 && e.cfmmPoolId !== null ? s.fromValue(e.cfmmPoolId) : s.UZERO, i;
|
|
2121
|
+
},
|
|
2122
|
+
fromAmino(e) {
|
|
2123
|
+
return {
|
|
2124
|
+
cfmmPoolId: s.fromString(e.cfmm_pool_id)
|
|
2125
|
+
};
|
|
2126
|
+
},
|
|
2127
|
+
toAmino(e) {
|
|
2128
|
+
const i = {};
|
|
2129
|
+
return i.cfmm_pool_id = e.cfmmPoolId ? e.cfmmPoolId.toString() : void 0, i;
|
|
2130
|
+
},
|
|
2131
|
+
fromAminoMsg(e) {
|
|
2132
|
+
return x.fromAmino(e.value);
|
|
2133
|
+
},
|
|
2134
|
+
toAminoMsg(e) {
|
|
2135
|
+
return {
|
|
2136
|
+
type: "osmosis/concentratedliquidity/cfmmpool-id-link-from-concentrated-pool-id-response",
|
|
2137
|
+
value: x.toAmino(e)
|
|
2138
|
+
};
|
|
2139
|
+
},
|
|
2140
|
+
fromProtoMsg(e) {
|
|
2141
|
+
return x.decode(e.value);
|
|
2142
|
+
},
|
|
2143
|
+
toProto(e) {
|
|
2144
|
+
return x.encode(e).finish();
|
|
2145
|
+
},
|
|
2146
|
+
toProtoMsg(e) {
|
|
2147
|
+
return {
|
|
2148
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdResponse",
|
|
2149
|
+
value: x.encode(e).finish()
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
}, Be = (e) => {
|
|
2153
|
+
const i = e instanceof r.Reader ? e : new r.Reader(e), o = A.decode(i, i.uint32());
|
|
2154
|
+
switch (o.typeUrl) {
|
|
2155
|
+
case "/osmosis.concentratedliquidity.v1beta1.Pool":
|
|
2156
|
+
return H.decode(o.value);
|
|
2157
|
+
case "/osmosis.cosmwasmpool.v1beta1.CosmWasmPool":
|
|
2158
|
+
return z.decode(o.value);
|
|
2159
|
+
case "/osmosis.gamm.v1beta1.Pool":
|
|
2160
|
+
return Q.decode(o.value);
|
|
2161
|
+
case "/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool":
|
|
2162
|
+
return V.decode(o.value);
|
|
2163
|
+
default:
|
|
2164
|
+
return o;
|
|
2165
|
+
}
|
|
2166
|
+
}, Oe = (e) => {
|
|
2167
|
+
switch (e.type) {
|
|
2168
|
+
case "osmosis/concentratedliquidity/pool":
|
|
2169
|
+
return A.fromPartial({
|
|
2170
|
+
typeUrl: "/osmosis.concentratedliquidity.v1beta1.Pool",
|
|
2171
|
+
value: H.encode(H.fromPartial(H.fromAmino(e.value))).finish()
|
|
2172
|
+
});
|
|
2173
|
+
case "osmosis/cosmwasmpool/cosm-wasm-pool":
|
|
2174
|
+
return A.fromPartial({
|
|
2175
|
+
typeUrl: "/osmosis.cosmwasmpool.v1beta1.CosmWasmPool",
|
|
2176
|
+
value: z.encode(z.fromPartial(z.fromAmino(e.value))).finish()
|
|
2177
|
+
});
|
|
2178
|
+
case "osmosis/gamm/BalancerPool":
|
|
2179
|
+
return A.fromPartial({
|
|
2180
|
+
typeUrl: "/osmosis.gamm.v1beta1.Pool",
|
|
2181
|
+
value: Q.encode(Q.fromPartial(Q.fromAmino(e.value))).finish()
|
|
2182
|
+
});
|
|
2183
|
+
case "osmosis/gamm/StableswapPool":
|
|
2184
|
+
return A.fromPartial({
|
|
2185
|
+
typeUrl: "/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool",
|
|
2186
|
+
value: V.encode(V.fromPartial(V.fromAmino(e.value))).finish()
|
|
2187
|
+
});
|
|
2188
|
+
default:
|
|
2189
|
+
return A.fromAmino(e);
|
|
2190
|
+
}
|
|
2191
|
+
}, Ze = (e) => {
|
|
2192
|
+
switch (e.typeUrl) {
|
|
2193
|
+
case "/osmosis.concentratedliquidity.v1beta1.Pool":
|
|
2194
|
+
return {
|
|
2195
|
+
type: "osmosis/concentratedliquidity/pool",
|
|
2196
|
+
value: H.toAmino(H.decode(e.value))
|
|
2197
|
+
};
|
|
2198
|
+
case "/osmosis.cosmwasmpool.v1beta1.CosmWasmPool":
|
|
2199
|
+
return {
|
|
2200
|
+
type: "osmosis/cosmwasmpool/cosm-wasm-pool",
|
|
2201
|
+
value: z.toAmino(z.decode(e.value))
|
|
2202
|
+
};
|
|
2203
|
+
case "/osmosis.gamm.v1beta1.Pool":
|
|
2204
|
+
return {
|
|
2205
|
+
type: "osmosis/gamm/BalancerPool",
|
|
2206
|
+
value: Q.toAmino(Q.decode(e.value))
|
|
2207
|
+
};
|
|
2208
|
+
case "/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool":
|
|
2209
|
+
return {
|
|
2210
|
+
type: "osmosis/gamm/StableswapPool",
|
|
2211
|
+
value: V.toAmino(V.decode(e.value))
|
|
2212
|
+
};
|
|
2213
|
+
default:
|
|
2214
|
+
return A.toAmino(e);
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
class Ce {
|
|
2218
|
+
constructor(i) {
|
|
2219
|
+
Se(this, "rpc", void 0), this.rpc = i, this.pools = this.pools.bind(this), this.params = this.params.bind(this), this.userPositions = this.userPositions.bind(this), this.liquidityPerTickRange = this.liquidityPerTickRange.bind(this), this.liquidityNetInDirection = this.liquidityNetInDirection.bind(this), this.claimableSpreadRewards = this.claimableSpreadRewards.bind(this), this.claimableIncentives = this.claimableIncentives.bind(this), this.positionById = this.positionById.bind(this), this.poolAccumulatorRewards = this.poolAccumulatorRewards.bind(this), this.incentiveRecords = this.incentiveRecords.bind(this), this.tickAccumulatorTrackers = this.tickAccumulatorTrackers.bind(this), this.cFMMPoolIdLinkFromConcentratedPoolId = this.cFMMPoolIdLinkFromConcentratedPoolId.bind(this);
|
|
2220
|
+
}
|
|
2221
|
+
pools(i = {
|
|
2222
|
+
pagination: void 0
|
|
2223
|
+
}) {
|
|
2224
|
+
const o = _.encode(i).finish();
|
|
2225
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "Pools", o).then((n) => w.decode(new r.Reader(n)));
|
|
2226
|
+
}
|
|
2227
|
+
params(i = {}) {
|
|
2228
|
+
const o = T.encode(i).finish();
|
|
2229
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "Params", o).then((n) => b.decode(new r.Reader(n)));
|
|
2230
|
+
}
|
|
2231
|
+
userPositions(i) {
|
|
2232
|
+
const o = P.encode(i).finish();
|
|
2233
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "UserPositions", o).then((n) => q.decode(new r.Reader(n)));
|
|
2234
|
+
}
|
|
2235
|
+
liquidityPerTickRange(i) {
|
|
2236
|
+
const o = S.encode(i).finish();
|
|
2237
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "LiquidityPerTickRange", o).then((n) => B.decode(new r.Reader(n)));
|
|
2238
|
+
}
|
|
2239
|
+
liquidityNetInDirection(i) {
|
|
2240
|
+
const o = M.encode(i).finish();
|
|
2241
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "LiquidityNetInDirection", o).then((n) => U.decode(new r.Reader(n)));
|
|
2242
|
+
}
|
|
2243
|
+
claimableSpreadRewards(i) {
|
|
2244
|
+
const o = O.encode(i).finish();
|
|
2245
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "ClaimableSpreadRewards", o).then((n) => Z.decode(new r.Reader(n)));
|
|
2246
|
+
}
|
|
2247
|
+
claimableIncentives(i) {
|
|
2248
|
+
const o = C.encode(i).finish();
|
|
2249
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "ClaimableIncentives", o).then((n) => L.decode(new r.Reader(n)));
|
|
2250
|
+
}
|
|
2251
|
+
positionById(i) {
|
|
2252
|
+
const o = h.encode(i).finish();
|
|
2253
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "PositionById", o).then((n) => g.decode(new r.Reader(n)));
|
|
2254
|
+
}
|
|
2255
|
+
poolAccumulatorRewards(i) {
|
|
2256
|
+
const o = G.encode(i).finish();
|
|
2257
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "PoolAccumulatorRewards", o).then((n) => E.decode(new r.Reader(n)));
|
|
2258
|
+
}
|
|
2259
|
+
incentiveRecords(i) {
|
|
2260
|
+
const o = N.encode(i).finish();
|
|
2261
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "IncentiveRecords", o).then((n) => F.decode(new r.Reader(n)));
|
|
2262
|
+
}
|
|
2263
|
+
tickAccumulatorTrackers(i) {
|
|
2264
|
+
const o = D.encode(i).finish();
|
|
2265
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "TickAccumulatorTrackers", o).then((n) => W.decode(new r.Reader(n)));
|
|
2266
|
+
}
|
|
2267
|
+
cFMMPoolIdLinkFromConcentratedPoolId(i) {
|
|
2268
|
+
const o = $.encode(i).finish();
|
|
2269
|
+
return this.rpc.request("osmosis.concentratedliquidity.v1beta1.Query", "CFMMPoolIdLinkFromConcentratedPoolId", o).then((n) => x.decode(new r.Reader(n)));
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
const Ve = (e) => {
|
|
2273
|
+
const i = Ue.createProtobufRpcClient(e), o = new Ce(i);
|
|
2274
|
+
return {
|
|
2275
|
+
pools(t) {
|
|
2276
|
+
return o.pools(t);
|
|
2277
|
+
},
|
|
2278
|
+
params(t) {
|
|
2279
|
+
return o.params(t);
|
|
2280
|
+
},
|
|
2281
|
+
userPositions(t) {
|
|
2282
|
+
return o.userPositions(t);
|
|
2283
|
+
},
|
|
2284
|
+
liquidityPerTickRange(t) {
|
|
2285
|
+
return o.liquidityPerTickRange(t);
|
|
2286
|
+
},
|
|
2287
|
+
liquidityNetInDirection(t) {
|
|
2288
|
+
return o.liquidityNetInDirection(t);
|
|
2289
|
+
},
|
|
2290
|
+
claimableSpreadRewards(t) {
|
|
2291
|
+
return o.claimableSpreadRewards(t);
|
|
2292
|
+
},
|
|
2293
|
+
claimableIncentives(t) {
|
|
2294
|
+
return o.claimableIncentives(t);
|
|
2295
|
+
},
|
|
2296
|
+
positionById(t) {
|
|
2297
|
+
return o.positionById(t);
|
|
2298
|
+
},
|
|
2299
|
+
poolAccumulatorRewards(t) {
|
|
2300
|
+
return o.poolAccumulatorRewards(t);
|
|
2301
|
+
},
|
|
2302
|
+
incentiveRecords(t) {
|
|
2303
|
+
return o.incentiveRecords(t);
|
|
2304
|
+
},
|
|
2305
|
+
tickAccumulatorTrackers(t) {
|
|
2306
|
+
return o.tickAccumulatorTrackers(t);
|
|
2307
|
+
},
|
|
2308
|
+
cFMMPoolIdLinkFromConcentratedPoolId(t) {
|
|
2309
|
+
return o.cFMMPoolIdLinkFromConcentratedPoolId(t);
|
|
2310
|
+
}
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
export {
|
|
2314
|
+
Ce as QueryClientImpl,
|
|
2315
|
+
Ve as createRpcQueryExtension
|
|
2316
|
+
};
|