@kittycorn-labs/v4-sdk 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v4-sdk.esm.js
CHANGED
|
@@ -80,47 +80,77 @@ function _inheritsLoose(t, o) {
|
|
|
80
80
|
}
|
|
81
81
|
function _regeneratorRuntime() {
|
|
82
82
|
_regeneratorRuntime = function () {
|
|
83
|
-
return
|
|
83
|
+
return r;
|
|
84
84
|
};
|
|
85
85
|
var t,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
n =
|
|
89
|
-
o =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
configurable: !0,
|
|
101
|
-
writable: !0
|
|
102
|
-
}), t[e];
|
|
86
|
+
r = {},
|
|
87
|
+
e = Object.prototype,
|
|
88
|
+
n = e.hasOwnProperty,
|
|
89
|
+
o = "function" == typeof Symbol ? Symbol : {},
|
|
90
|
+
i = o.iterator || "@@iterator",
|
|
91
|
+
a = o.asyncIterator || "@@asyncIterator",
|
|
92
|
+
u = o.toStringTag || "@@toStringTag";
|
|
93
|
+
function c(t, r, e, n) {
|
|
94
|
+
return Object.defineProperty(t, r, {
|
|
95
|
+
value: e,
|
|
96
|
+
enumerable: !n,
|
|
97
|
+
configurable: !n,
|
|
98
|
+
writable: !n
|
|
99
|
+
});
|
|
103
100
|
}
|
|
104
101
|
try {
|
|
105
|
-
|
|
102
|
+
c({}, "");
|
|
106
103
|
} catch (t) {
|
|
107
|
-
|
|
108
|
-
return t[
|
|
104
|
+
c = function (t, r, e) {
|
|
105
|
+
return t[r] = e;
|
|
109
106
|
};
|
|
110
107
|
}
|
|
111
|
-
function
|
|
108
|
+
function h(r, e, n, o) {
|
|
112
109
|
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
113
|
-
a = Object.create(i.prototype)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
a = Object.create(i.prototype);
|
|
111
|
+
return c(a, "_invoke", function (r, e, n) {
|
|
112
|
+
var o = 1;
|
|
113
|
+
return function (i, a) {
|
|
114
|
+
if (3 === o) throw Error("Generator is already running");
|
|
115
|
+
if (4 === o) {
|
|
116
|
+
if ("throw" === i) throw a;
|
|
117
|
+
return {
|
|
118
|
+
value: t,
|
|
119
|
+
done: !0
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
for (n.method = i, n.arg = a;;) {
|
|
123
|
+
var u = n.delegate;
|
|
124
|
+
if (u) {
|
|
125
|
+
var c = d(u, n);
|
|
126
|
+
if (c) {
|
|
127
|
+
if (c === f) continue;
|
|
128
|
+
return c;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
132
|
+
if (1 === o) throw o = 4, n.arg;
|
|
133
|
+
n.dispatchException(n.arg);
|
|
134
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
135
|
+
o = 3;
|
|
136
|
+
var h = s(r, e, n);
|
|
137
|
+
if ("normal" === h.type) {
|
|
138
|
+
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
139
|
+
return {
|
|
140
|
+
value: h.arg,
|
|
141
|
+
done: n.done
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}(r, n, new Context(o || [])), !0), a;
|
|
118
148
|
}
|
|
119
|
-
function
|
|
149
|
+
function s(t, r, e) {
|
|
120
150
|
try {
|
|
121
151
|
return {
|
|
122
152
|
type: "normal",
|
|
123
|
-
arg: t.call(
|
|
153
|
+
arg: t.call(r, e)
|
|
124
154
|
};
|
|
125
155
|
} catch (t) {
|
|
126
156
|
return {
|
|
@@ -129,255 +159,193 @@ function _regeneratorRuntime() {
|
|
|
129
159
|
};
|
|
130
160
|
}
|
|
131
161
|
}
|
|
132
|
-
|
|
133
|
-
var
|
|
134
|
-
l = "suspendedYield",
|
|
135
|
-
f = "executing",
|
|
136
|
-
s = "completed",
|
|
137
|
-
y = {};
|
|
162
|
+
r.wrap = h;
|
|
163
|
+
var f = {};
|
|
138
164
|
function Generator() {}
|
|
139
165
|
function GeneratorFunction() {}
|
|
140
166
|
function GeneratorFunctionPrototype() {}
|
|
141
|
-
var
|
|
142
|
-
|
|
167
|
+
var l = {};
|
|
168
|
+
c(l, i, function () {
|
|
143
169
|
return this;
|
|
144
170
|
});
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
["next", "throw", "return"].forEach(function (
|
|
151
|
-
|
|
152
|
-
return this._invoke(
|
|
171
|
+
var p = Object.getPrototypeOf,
|
|
172
|
+
y = p && p(p(x([])));
|
|
173
|
+
y && y !== e && n.call(y, i) && (l = y);
|
|
174
|
+
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
175
|
+
function g(t) {
|
|
176
|
+
["next", "throw", "return"].forEach(function (r) {
|
|
177
|
+
c(t, r, function (t) {
|
|
178
|
+
return this._invoke(r, t);
|
|
153
179
|
});
|
|
154
180
|
});
|
|
155
181
|
}
|
|
156
|
-
function AsyncIterator(t,
|
|
157
|
-
function
|
|
158
|
-
var c =
|
|
182
|
+
function AsyncIterator(t, r) {
|
|
183
|
+
function e(o, i, a, u) {
|
|
184
|
+
var c = s(t[o], t, i);
|
|
159
185
|
if ("throw" !== c.type) {
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
return
|
|
163
|
-
|
|
186
|
+
var h = c.arg,
|
|
187
|
+
f = h.value;
|
|
188
|
+
return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
189
|
+
e("next", t, a, u);
|
|
164
190
|
}, function (t) {
|
|
165
|
-
|
|
166
|
-
}) :
|
|
167
|
-
|
|
191
|
+
e("throw", t, a, u);
|
|
192
|
+
}) : r.resolve(f).then(function (t) {
|
|
193
|
+
h.value = t, a(h);
|
|
168
194
|
}, function (t) {
|
|
169
|
-
return
|
|
195
|
+
return e("throw", t, a, u);
|
|
170
196
|
});
|
|
171
197
|
}
|
|
172
|
-
|
|
198
|
+
u(c.arg);
|
|
173
199
|
}
|
|
174
|
-
var
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
function makeInvokeMethod(e, r, n) {
|
|
187
|
-
var o = h;
|
|
188
|
-
return function (i, a) {
|
|
189
|
-
if (o === f) throw Error("Generator is already running");
|
|
190
|
-
if (o === s) {
|
|
191
|
-
if ("throw" === i) throw a;
|
|
192
|
-
return {
|
|
193
|
-
value: t,
|
|
194
|
-
done: !0
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
for (n.method = i, n.arg = a;;) {
|
|
198
|
-
var c = n.delegate;
|
|
199
|
-
if (c) {
|
|
200
|
-
var u = maybeInvokeDelegate(c, n);
|
|
201
|
-
if (u) {
|
|
202
|
-
if (u === y) continue;
|
|
203
|
-
return u;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
207
|
-
if (o === h) throw o = s, n.arg;
|
|
208
|
-
n.dispatchException(n.arg);
|
|
209
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
210
|
-
o = f;
|
|
211
|
-
var p = tryCatch(e, r, n);
|
|
212
|
-
if ("normal" === p.type) {
|
|
213
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
214
|
-
return {
|
|
215
|
-
value: p.arg,
|
|
216
|
-
done: n.done
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
200
|
+
var o;
|
|
201
|
+
c(this, "_invoke", function (t, n) {
|
|
202
|
+
function i() {
|
|
203
|
+
return new r(function (r, o) {
|
|
204
|
+
e(t, n, r, o);
|
|
205
|
+
});
|
|
220
206
|
}
|
|
221
|
-
|
|
207
|
+
return o = o ? o.then(i, i) : i();
|
|
208
|
+
}, !0);
|
|
222
209
|
}
|
|
223
|
-
function
|
|
224
|
-
var n =
|
|
225
|
-
o =
|
|
226
|
-
if (o === t) return
|
|
227
|
-
var i =
|
|
228
|
-
if ("throw" === i.type) return
|
|
210
|
+
function d(r, e) {
|
|
211
|
+
var n = e.method,
|
|
212
|
+
o = r.i[n];
|
|
213
|
+
if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
214
|
+
var i = s(o, r.i, e.arg);
|
|
215
|
+
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
229
216
|
var a = i.arg;
|
|
230
|
-
return a ? a.done ? (r
|
|
217
|
+
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
231
218
|
}
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
tryLoc: t[0]
|
|
235
|
-
};
|
|
236
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
219
|
+
function w(t) {
|
|
220
|
+
this.tryEntries.push(t);
|
|
237
221
|
}
|
|
238
|
-
function
|
|
239
|
-
var e =
|
|
240
|
-
e.type = "normal",
|
|
222
|
+
function m(r) {
|
|
223
|
+
var e = r[4] || {};
|
|
224
|
+
e.type = "normal", e.arg = t, r[4] = e;
|
|
241
225
|
}
|
|
242
226
|
function Context(t) {
|
|
243
|
-
this.tryEntries = [
|
|
244
|
-
tryLoc: "root"
|
|
245
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
227
|
+
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
246
228
|
}
|
|
247
|
-
function
|
|
248
|
-
if (
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
251
|
-
if ("function" == typeof
|
|
252
|
-
if (!isNaN(
|
|
229
|
+
function x(r) {
|
|
230
|
+
if (null != r) {
|
|
231
|
+
var e = r[i];
|
|
232
|
+
if (e) return e.call(r);
|
|
233
|
+
if ("function" == typeof r.next) return r;
|
|
234
|
+
if (!isNaN(r.length)) {
|
|
253
235
|
var o = -1,
|
|
254
|
-
|
|
255
|
-
for (; ++o <
|
|
256
|
-
return
|
|
236
|
+
a = function e() {
|
|
237
|
+
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
238
|
+
return e.value = t, e.done = !0, e;
|
|
257
239
|
};
|
|
258
|
-
return
|
|
240
|
+
return a.next = a;
|
|
259
241
|
}
|
|
260
242
|
}
|
|
261
|
-
throw new TypeError(typeof
|
|
243
|
+
throw new TypeError(typeof r + " is not iterable");
|
|
262
244
|
}
|
|
263
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
270
|
-
var e = "function" == typeof t && t.constructor;
|
|
271
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
272
|
-
}, e.mark = function (t) {
|
|
273
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
274
|
-
}, e.awrap = function (t) {
|
|
245
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
246
|
+
var r = "function" == typeof t && t.constructor;
|
|
247
|
+
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
248
|
+
}, r.mark = function (t) {
|
|
249
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
250
|
+
}, r.awrap = function (t) {
|
|
275
251
|
return {
|
|
276
252
|
__await: t
|
|
277
253
|
};
|
|
278
|
-
},
|
|
254
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
279
255
|
return this;
|
|
280
|
-
}),
|
|
256
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
281
257
|
void 0 === i && (i = Promise);
|
|
282
|
-
var a = new AsyncIterator(
|
|
283
|
-
return
|
|
258
|
+
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
259
|
+
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
284
260
|
return t.done ? t.value : a.next();
|
|
285
261
|
});
|
|
286
|
-
},
|
|
262
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
287
263
|
return this;
|
|
288
|
-
}),
|
|
264
|
+
}), c(v, "toString", function () {
|
|
289
265
|
return "[object Generator]";
|
|
290
|
-
}),
|
|
291
|
-
var
|
|
292
|
-
|
|
293
|
-
for (var n in
|
|
294
|
-
return
|
|
295
|
-
for (;
|
|
296
|
-
|
|
297
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
298
|
-
}
|
|
299
|
-
return next.done = !0, next;
|
|
266
|
+
}), r.keys = function (t) {
|
|
267
|
+
var r = Object(t),
|
|
268
|
+
e = [];
|
|
269
|
+
for (var n in r) e.unshift(n);
|
|
270
|
+
return function t() {
|
|
271
|
+
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
272
|
+
return t.done = !0, t;
|
|
300
273
|
};
|
|
301
|
-
},
|
|
274
|
+
}, r.values = x, Context.prototype = {
|
|
302
275
|
constructor: Context,
|
|
303
|
-
reset: function (
|
|
304
|
-
if (this.prev =
|
|
276
|
+
reset: function (r) {
|
|
277
|
+
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
305
278
|
},
|
|
306
279
|
stop: function () {
|
|
307
280
|
this.done = !0;
|
|
308
|
-
var t = this.tryEntries[0]
|
|
281
|
+
var t = this.tryEntries[0][4];
|
|
309
282
|
if ("throw" === t.type) throw t.arg;
|
|
310
283
|
return this.rval;
|
|
311
284
|
},
|
|
312
|
-
dispatchException: function (
|
|
313
|
-
if (this.done) throw
|
|
314
|
-
var
|
|
315
|
-
function
|
|
316
|
-
|
|
285
|
+
dispatchException: function (r) {
|
|
286
|
+
if (this.done) throw r;
|
|
287
|
+
var e = this;
|
|
288
|
+
function n(t) {
|
|
289
|
+
a.type = "throw", a.arg = r, e.next = t;
|
|
317
290
|
}
|
|
318
|
-
for (var o =
|
|
291
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
319
292
|
var i = this.tryEntries[o],
|
|
320
|
-
a = i
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
330
|
-
} else {
|
|
331
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
332
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
333
|
-
}
|
|
293
|
+
a = i[4],
|
|
294
|
+
u = this.prev,
|
|
295
|
+
c = i[1],
|
|
296
|
+
h = i[2];
|
|
297
|
+
if (-1 === i[0]) return n("end"), !1;
|
|
298
|
+
if (!c && !h) throw Error("try statement without catch or finally");
|
|
299
|
+
if (null != i[0] && i[0] <= u) {
|
|
300
|
+
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
301
|
+
if (u < h) return n(h), !1;
|
|
334
302
|
}
|
|
335
303
|
}
|
|
336
304
|
},
|
|
337
|
-
abrupt: function (t,
|
|
338
|
-
for (var
|
|
339
|
-
var
|
|
340
|
-
if (
|
|
341
|
-
var
|
|
305
|
+
abrupt: function (t, r) {
|
|
306
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
307
|
+
var n = this.tryEntries[e];
|
|
308
|
+
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
309
|
+
var o = n;
|
|
342
310
|
break;
|
|
343
311
|
}
|
|
344
312
|
}
|
|
345
|
-
|
|
346
|
-
var
|
|
347
|
-
return
|
|
313
|
+
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
314
|
+
var i = o ? o[4] : {};
|
|
315
|
+
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
348
316
|
},
|
|
349
|
-
complete: function (t,
|
|
317
|
+
complete: function (t, r) {
|
|
350
318
|
if ("throw" === t.type) throw t.arg;
|
|
351
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type &&
|
|
319
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
352
320
|
},
|
|
353
321
|
finish: function (t) {
|
|
354
|
-
for (var
|
|
355
|
-
var
|
|
356
|
-
if (
|
|
322
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
323
|
+
var e = this.tryEntries[r];
|
|
324
|
+
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
357
325
|
}
|
|
358
326
|
},
|
|
359
327
|
catch: function (t) {
|
|
360
|
-
for (var
|
|
361
|
-
var
|
|
362
|
-
if (
|
|
363
|
-
var n =
|
|
328
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
329
|
+
var e = this.tryEntries[r];
|
|
330
|
+
if (e[0] === t) {
|
|
331
|
+
var n = e[4];
|
|
364
332
|
if ("throw" === n.type) {
|
|
365
333
|
var o = n.arg;
|
|
366
|
-
|
|
334
|
+
m(e);
|
|
367
335
|
}
|
|
368
336
|
return o;
|
|
369
337
|
}
|
|
370
338
|
}
|
|
371
339
|
throw Error("illegal catch attempt");
|
|
372
340
|
},
|
|
373
|
-
delegateYield: function (
|
|
341
|
+
delegateYield: function (r, e, n) {
|
|
374
342
|
return this.delegate = {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}, "next" === this.method && (this.arg = t),
|
|
343
|
+
i: x(r),
|
|
344
|
+
r: e,
|
|
345
|
+
n: n
|
|
346
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
379
347
|
}
|
|
380
|
-
},
|
|
348
|
+
}, r;
|
|
381
349
|
}
|
|
382
350
|
function _setPrototypeOf(t, e) {
|
|
383
351
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -787,11 +755,12 @@ var Pool = /*#__PURE__*/function () {
|
|
|
787
755
|
|
|
788
756
|
var _BASE_TOKENIZE_UNDERL;
|
|
789
757
|
// Kittycorn: Tokenize Token
|
|
758
|
+
// This file contains the addresses of the Tokenize tokens on different networks.
|
|
790
759
|
// Mainnet
|
|
791
|
-
var TUSDC_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '
|
|
792
|
-
var TUSDT_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '
|
|
793
|
-
var TWETH_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '
|
|
794
|
-
var TWBTC_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '
|
|
760
|
+
var TUSDC_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '0xcc331eC1d6CF4542F9eB988B49249cfa163081dc', 6, 'Kittycorn Tokenize USDC', 'tUSDC');
|
|
761
|
+
var TUSDT_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '0x561A87303005D9C83FbD94dDEb80D63528fCD448', 6, 'Kittycorn Tokenize USDT', 'tUSDT');
|
|
762
|
+
var TWETH_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '0x8a2D75bAadcd2C71b2aCF715fc3Da68964CEA48e', 18, 'Kittycorn Tokenize WETH', 'tWETH');
|
|
763
|
+
var TWBTC_MAINNET = /*#__PURE__*/new Token(ChainId.MAINNET, '0x137a906E06EC20808c8F156F9024196427429220', 8, 'Kittycorn Tokenize WBTC', 'tWBTC');
|
|
795
764
|
// Sepolia
|
|
796
765
|
var TUSDC_SEPOLIA = /*#__PURE__*/new Token(ChainId.SEPOLIA, '0x1E271DB8D8B446A0DEe8e9D774f4213e9Bc1C6ba', 6, 'Kittycorn Tokenize USDC', 'tUSDC');
|
|
797
766
|
var TUSDT_SEPOLIA = /*#__PURE__*/new Token(ChainId.SEPOLIA, '0x137a906E06EC20808c8F156F9024196427429220', 6, 'Kittycorn Tokenize USDT', 'tUSDT');
|
|
@@ -1218,7 +1187,7 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1218
1187
|
}
|
|
1219
1188
|
}, _callee4);
|
|
1220
1189
|
}));
|
|
1221
|
-
return function (
|
|
1190
|
+
return function (_x0) {
|
|
1222
1191
|
return _ref6.apply(this, arguments);
|
|
1223
1192
|
};
|
|
1224
1193
|
}()));
|
|
@@ -1423,7 +1392,7 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1423
1392
|
}
|
|
1424
1393
|
}, _callee6, null, [[14, 22]]);
|
|
1425
1394
|
}));
|
|
1426
|
-
function bestTradeExactIn(_x11, _x12, _x13, _x14, _x15
|
|
1395
|
+
function bestTradeExactIn(_x1, _x10, _x11, _x12, _x13, _x14, _x15) {
|
|
1427
1396
|
return _bestTradeExactIn.apply(this, arguments);
|
|
1428
1397
|
}
|
|
1429
1398
|
return bestTradeExactIn;
|
|
@@ -1540,7 +1509,7 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1540
1509
|
}
|
|
1541
1510
|
}, _callee7, null, [[14, 22]]);
|
|
1542
1511
|
}));
|
|
1543
|
-
function bestTradeExactOut(_x18, _x19, _x20, _x21, _x22
|
|
1512
|
+
function bestTradeExactOut(_x16, _x17, _x18, _x19, _x20, _x21, _x22) {
|
|
1544
1513
|
return _bestTradeExactOut.apply(this, arguments);
|
|
1545
1514
|
}
|
|
1546
1515
|
return bestTradeExactOut;
|
|
@@ -1580,8 +1549,8 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1580
1549
|
return this._outputAmount;
|
|
1581
1550
|
}
|
|
1582
1551
|
var outputCurrency = this.swaps[0].outputAmount.currency;
|
|
1583
|
-
var totalOutputFromRoutes = this.swaps.map(function (
|
|
1584
|
-
var outputAmount =
|
|
1552
|
+
var totalOutputFromRoutes = this.swaps.map(function (_ref0) {
|
|
1553
|
+
var outputAmount = _ref0.outputAmount;
|
|
1585
1554
|
return outputAmount;
|
|
1586
1555
|
}).reduce(function (total, cur) {
|
|
1587
1556
|
return total.add(cur);
|