denotify-client 1.1.26 → 1.1.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/denotify-client.cjs +1 -1
- package/dist/denotify-client.iife.js +2 -2
- package/dist/denotify-client.mjs +108 -108
- package/package.json +2 -1
package/dist/denotify-client.mjs
CHANGED
@@ -7442,7 +7442,7 @@ Je.register = function(n) {
|
|
7442
7442
|
Ri = n;
|
7443
7443
|
};
|
7444
7444
|
Object.freeze(Je);
|
7445
|
-
const sl = BigInt(0),
|
7445
|
+
const sl = {}, il = BigInt(0), ol = BigInt(36);
|
7446
7446
|
function _s(n) {
|
7447
7447
|
n = n.toLowerCase();
|
7448
7448
|
const e = n.substring(2).split(""), t = new Uint8Array(40);
|
@@ -7459,7 +7459,7 @@ for (let n = 0; n < 10; n++)
|
|
7459
7459
|
for (let n = 0; n < 26; n++)
|
7460
7460
|
Hn[String.fromCharCode(65 + n)] = String(10 + n);
|
7461
7461
|
const Es = 15;
|
7462
|
-
function
|
7462
|
+
function al(n) {
|
7463
7463
|
n = n.toUpperCase(), n = n.substring(4) + n.substring(0, 2) + "00";
|
7464
7464
|
let e = n.split("").map((r) => Hn[r]).join("");
|
7465
7465
|
for (; e.length >= Es; ) {
|
@@ -7471,7 +7471,7 @@ function ol(n) {
|
|
7471
7471
|
t = "0" + t;
|
7472
7472
|
return t;
|
7473
7473
|
}
|
7474
|
-
const
|
7474
|
+
const cl = function() {
|
7475
7475
|
const n = {};
|
7476
7476
|
for (let e = 0; e < 36; e++) {
|
7477
7477
|
const t = "0123456789abcdefghijklmnopqrstuvwxyz"[e];
|
@@ -7479,11 +7479,11 @@ const al = function() {
|
|
7479
7479
|
}
|
7480
7480
|
return n;
|
7481
7481
|
}();
|
7482
|
-
function
|
7482
|
+
function ul(n) {
|
7483
7483
|
n = n.toLowerCase();
|
7484
|
-
let e =
|
7484
|
+
let e = il;
|
7485
7485
|
for (let t = 0; t < n.length; t++)
|
7486
|
-
e = e *
|
7486
|
+
e = e * ol + cl[n[t]];
|
7487
7487
|
return e;
|
7488
7488
|
}
|
7489
7489
|
function lt(n) {
|
@@ -7493,15 +7493,15 @@ function lt(n) {
|
|
7493
7493
|
return _(!n.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || e === n, "bad address checksum", "address", n), e;
|
7494
7494
|
}
|
7495
7495
|
if (n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
|
7496
|
-
_(n.substring(2, 4) ===
|
7497
|
-
let e =
|
7496
|
+
_(n.substring(2, 4) === al(n), "bad icap checksum", "address", n);
|
7497
|
+
let e = ul(n.substring(4)).toString(16);
|
7498
7498
|
for (; e.length < 40; )
|
7499
7499
|
e = "0" + e;
|
7500
7500
|
return _s("0x" + e);
|
7501
7501
|
}
|
7502
7502
|
_(!1, "invalid address", "address", n);
|
7503
7503
|
}
|
7504
|
-
function
|
7504
|
+
function ll(n) {
|
7505
7505
|
return n && typeof n.getAddress == "function";
|
7506
7506
|
}
|
7507
7507
|
async function tn(n, e) {
|
@@ -7511,7 +7511,7 @@ async function tn(n, e) {
|
|
7511
7511
|
function Mn(n, e) {
|
7512
7512
|
if (typeof n == "string")
|
7513
7513
|
return n.match(/^0x[0-9a-f]{40}$/i) ? lt(n) : (x(e != null, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { operation: "resolveName" }), tn(n, e.resolveName(n)));
|
7514
|
-
if (
|
7514
|
+
if (ll(n))
|
7515
7515
|
return tn(n, n.getAddress());
|
7516
7516
|
if (n && typeof n.then == "function")
|
7517
7517
|
return tn(n, n);
|
@@ -7916,7 +7916,7 @@ const $e = class {
|
|
7916
7916
|
};
|
7917
7917
|
let K = $e;
|
7918
7918
|
it = new WeakMap();
|
7919
|
-
class
|
7919
|
+
class hl extends Be {
|
7920
7920
|
constructor(e) {
|
7921
7921
|
super("address", "address", e, !1);
|
7922
7922
|
}
|
@@ -7936,7 +7936,7 @@ class ll extends Be {
|
|
7936
7936
|
return lt(gi(e.readValue(), 20));
|
7937
7937
|
}
|
7938
7938
|
}
|
7939
|
-
class
|
7939
|
+
class fl extends Be {
|
7940
7940
|
constructor(t) {
|
7941
7941
|
super(t.name, t.type, "_", t.dynamic);
|
7942
7942
|
d(this, "coder");
|
@@ -8009,7 +8009,7 @@ function Pi(n, e) {
|
|
8009
8009
|
t.push(o), r.push(i.localName || null);
|
8010
8010
|
}), _r.fromItems(t, r);
|
8011
8011
|
}
|
8012
|
-
class
|
8012
|
+
class dl extends Be {
|
8013
8013
|
constructor(t, r, s) {
|
8014
8014
|
const i = t.type + "[" + (r >= 0 ? r : "") + "]", o = r === -1 || t.dynamic;
|
8015
8015
|
super("array", i, s, o);
|
@@ -8038,11 +8038,11 @@ class fl extends Be {
|
|
8038
8038
|
r === -1 && (r = t.readIndex(), x(r * Z <= t.dataLength, "insufficient data length", "BUFFER_OVERRUN", { buffer: t.bytes, offset: r * Z, length: t.dataLength }));
|
8039
8039
|
let s = [];
|
8040
8040
|
for (let i = 0; i < r; i++)
|
8041
|
-
s.push(new
|
8041
|
+
s.push(new fl(this.coder));
|
8042
8042
|
return Pi(t, s);
|
8043
8043
|
}
|
8044
8044
|
}
|
8045
|
-
class
|
8045
|
+
class pl extends Be {
|
8046
8046
|
constructor(e) {
|
8047
8047
|
super("bool", "bool", e, !1);
|
8048
8048
|
}
|
@@ -8073,7 +8073,7 @@ class Ni extends Be {
|
|
8073
8073
|
return e.readBytes(e.readIndex(), !0);
|
8074
8074
|
}
|
8075
8075
|
}
|
8076
|
-
class
|
8076
|
+
class yl extends Ni {
|
8077
8077
|
constructor(e) {
|
8078
8078
|
super("bytes", e);
|
8079
8079
|
}
|
@@ -8081,7 +8081,7 @@ class pl extends Ni {
|
|
8081
8081
|
return H(super.decode(e));
|
8082
8082
|
}
|
8083
8083
|
}
|
8084
|
-
class
|
8084
|
+
class ml extends Be {
|
8085
8085
|
constructor(t, r) {
|
8086
8086
|
let s = "bytes" + String(t);
|
8087
8087
|
super(s, s, r, !1);
|
@@ -8099,8 +8099,8 @@ class yl extends Be {
|
|
8099
8099
|
return H(t.readBytes(this.size));
|
8100
8100
|
}
|
8101
8101
|
}
|
8102
|
-
const
|
8103
|
-
class
|
8102
|
+
const gl = new Uint8Array([]);
|
8103
|
+
class wl extends Be {
|
8104
8104
|
constructor(e) {
|
8105
8105
|
super("null", "", e, !1);
|
8106
8106
|
}
|
@@ -8108,14 +8108,14 @@ class gl extends Be {
|
|
8108
8108
|
return null;
|
8109
8109
|
}
|
8110
8110
|
encode(e, t) {
|
8111
|
-
return t != null && this._throwError("not null", t), e.writeBytes(
|
8111
|
+
return t != null && this._throwError("not null", t), e.writeBytes(gl);
|
8112
8112
|
}
|
8113
8113
|
decode(e) {
|
8114
8114
|
return e.readBytes(0), null;
|
8115
8115
|
}
|
8116
8116
|
}
|
8117
|
-
const
|
8118
|
-
class
|
8117
|
+
const bl = BigInt(0), vl = BigInt(1), _l = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
8118
|
+
class El extends Be {
|
8119
8119
|
constructor(t, r, s) {
|
8120
8120
|
const i = (r ? "int" : "uint") + t * 8;
|
8121
8121
|
super(i, i, s, !1);
|
@@ -8127,12 +8127,12 @@ class _l extends Be {
|
|
8127
8127
|
return 0;
|
8128
8128
|
}
|
8129
8129
|
encode(t, r) {
|
8130
|
-
let s = mt(K.dereference(r, this.type)), i = cr(
|
8130
|
+
let s = mt(K.dereference(r, this.type)), i = cr(_l, Z * 8);
|
8131
8131
|
if (this.signed) {
|
8132
8132
|
let o = cr(i, this.size * 8 - 1);
|
8133
|
-
(s > o || s < -(o +
|
8133
|
+
(s > o || s < -(o + vl)) && this._throwError("value out-of-bounds", r), s = au(s, 8 * Z);
|
8134
8134
|
} else
|
8135
|
-
(s <
|
8135
|
+
(s < bl || s > cr(i, this.size * 8)) && this._throwError("value out-of-bounds", r);
|
8136
8136
|
return t.writeValue(s);
|
8137
8137
|
}
|
8138
8138
|
decode(t) {
|
@@ -8140,7 +8140,7 @@ class _l extends Be {
|
|
8140
8140
|
return this.signed && (r = ou(r, this.size * 8)), r;
|
8141
8141
|
}
|
8142
8142
|
}
|
8143
|
-
class
|
8143
|
+
class xl extends Ni {
|
8144
8144
|
constructor(e) {
|
8145
8145
|
super("string", e);
|
8146
8146
|
}
|
@@ -8197,7 +8197,7 @@ function rn(n, e) {
|
|
8197
8197
|
storageKeys: e.map((t, r) => (_(Ge(t, 32), "invalid slot", `storageKeys[${r}]`, t), t.toLowerCase()))
|
8198
8198
|
};
|
8199
8199
|
}
|
8200
|
-
function
|
8200
|
+
function Tl(n) {
|
8201
8201
|
if (Array.isArray(n))
|
8202
8202
|
return n.map((t, r) => Array.isArray(t) ? (_(t.length === 2, "invalid slot set", `value[${r}]`, t), rn(t[0], t[1])) : (_(t != null && typeof t == "object", "invalid address-slot set", "value", n), rn(t.address, t.storageKeys)));
|
8203
8203
|
_(n != null && typeof n == "object", "invalid access list", "value", n);
|
@@ -8211,14 +8211,14 @@ function Y(n) {
|
|
8211
8211
|
const e = /* @__PURE__ */ new Set();
|
8212
8212
|
return n.forEach((t) => e.add(t)), Object.freeze(e);
|
8213
8213
|
}
|
8214
|
-
const Ii = "constant external internal payable private public pure view",
|
8214
|
+
const Ii = "constant external internal payable private public pure view", Ol = Y(Ii.split(" ")), Ci = "constructor error event fallback function receive struct", Fi = Y(Ci.split(" ")), Di = "calldata memory storage payable indexed", kl = Y(Di.split(" ")), Al = "tuple returns", Sl = [Ci, Di, Al, Ii].join(" "), Rl = Y(Sl.split(" ")), $l = {
|
8215
8215
|
"(": "OPEN_PAREN",
|
8216
8216
|
")": "CLOSE_PAREN",
|
8217
8217
|
"[": "OPEN_BRACKET",
|
8218
8218
|
"]": "CLOSE_BRACKET",
|
8219
8219
|
",": "COMMA",
|
8220
8220
|
"@": "AT"
|
8221
|
-
},
|
8221
|
+
}, Pl = new RegExp("^(\\s*)"), Nl = new RegExp("^([0-9]+)"), Il = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"), Ui = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"), ji = new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");
|
8222
8222
|
var z, pe, Kt, vn;
|
8223
8223
|
const Or = class {
|
8224
8224
|
constructor(e) {
|
@@ -8319,11 +8319,11 @@ function Ke(n) {
|
|
8319
8319
|
};
|
8320
8320
|
let r = [], s = [], i = 0;
|
8321
8321
|
for (; i < n.length; ) {
|
8322
|
-
let o = n.substring(i), a = o.match(
|
8322
|
+
let o = n.substring(i), a = o.match(Pl);
|
8323
8323
|
a && (i += a[1].length, o = n.substring(i));
|
8324
8324
|
const c = { depth: r.length, linkBack: -1, linkNext: -1, match: -1, type: "", text: "", offset: i, value: -1 };
|
8325
8325
|
e.push(c);
|
8326
|
-
let u =
|
8326
|
+
let u = $l[o[0]] || "";
|
8327
8327
|
if (u) {
|
8328
8328
|
if (c.type = u, c.text = o[0], i++, u === "OPEN_PAREN")
|
8329
8329
|
r.push(e.length - 1), s.push(e.length - 1);
|
@@ -8345,8 +8345,8 @@ function Ke(n) {
|
|
8345
8345
|
}
|
8346
8346
|
continue;
|
8347
8347
|
}
|
8348
|
-
if (a = o.match(
|
8349
|
-
if (c.text = a[1], i += c.text.length,
|
8348
|
+
if (a = o.match(Il), a) {
|
8349
|
+
if (c.text = a[1], i += c.text.length, Rl.has(c.text)) {
|
8350
8350
|
c.type = "KEYWORD";
|
8351
8351
|
continue;
|
8352
8352
|
}
|
@@ -8357,7 +8357,7 @@ function Ke(n) {
|
|
8357
8357
|
c.type = "ID";
|
8358
8358
|
continue;
|
8359
8359
|
}
|
8360
|
-
if (a = o.match(
|
8360
|
+
if (a = o.match(Nl), a) {
|
8361
8361
|
c.text = a[1], c.type = "NUMBER", i += c.text.length;
|
8362
8362
|
continue;
|
8363
8363
|
}
|
@@ -8393,7 +8393,7 @@ function je(n, e) {
|
|
8393
8393
|
return Object.freeze(t);
|
8394
8394
|
}
|
8395
8395
|
function Li(n) {
|
8396
|
-
let e = je(n,
|
8396
|
+
let e = je(n, Ol);
|
8397
8397
|
return Ts(e, Y("constant payable nonpayable".split(" "))), Ts(e, Y("pure view payable nonpayable".split(" "))), e.has("view") ? "view" : e.has("pure") ? "pure" : e.has("payable") ? "payable" : e.has("nonpayable") ? "nonpayable" : e.has("constant") ? "view" : "nonpayable";
|
8398
8398
|
}
|
8399
8399
|
function De(n, e) {
|
@@ -8411,7 +8411,7 @@ function ht(n) {
|
|
8411
8411
|
if (n.length)
|
8412
8412
|
throw new Error(`unexpected tokens: ${n.toString()}`);
|
8413
8413
|
}
|
8414
|
-
const
|
8414
|
+
const Cl = new RegExp(/^(.*)\[([0-9]*)\]$/);
|
8415
8415
|
function Os(n) {
|
8416
8416
|
const e = n.match(ji);
|
8417
8417
|
if (_(e, "invalid type", "type", n), n === "uint")
|
@@ -8606,7 +8606,7 @@ const ue = class {
|
|
8606
8606
|
l = new ue(j, "", a, c, null, u, h, l), h = v.value, a += v.text, c = "array", u = null;
|
8607
8607
|
}
|
8608
8608
|
let y = null;
|
8609
|
-
if (je(e,
|
8609
|
+
if (je(e, kl).has("indexed")) {
|
8610
8610
|
if (!t)
|
8611
8611
|
throw new Error("");
|
8612
8612
|
y = !0;
|
@@ -8620,7 +8620,7 @@ const ue = class {
|
|
8620
8620
|
_(!r || typeof r == "string" && r.match(Ui), "invalid name", "obj.name", r);
|
8621
8621
|
let s = e.indexed;
|
8622
8622
|
s != null && (_(t, "parameter cannot be indexed", "obj.indexed", e.indexed), s = !!s);
|
8623
|
-
let i = e.type, o = i.match(
|
8623
|
+
let i = e.type, o = i.match(Cl);
|
8624
8624
|
if (o) {
|
8625
8625
|
const a = parseInt(o[2] || "-1"), c = ue.from({
|
8626
8626
|
type: o[1],
|
@@ -9080,9 +9080,9 @@ we.set(49, "STACK_UNDERFLOW");
|
|
9080
9080
|
we.set(50, "ARRAY_RANGE_ERROR");
|
9081
9081
|
we.set(65, "OUT_OF_MEMORY");
|
9082
9082
|
we.set(81, "UNINITIALIZED_FUNCTION_CALL");
|
9083
|
-
const
|
9083
|
+
const Fl = new RegExp(/^bytes([0-9]*)$/), Dl = new RegExp(/^(u?int)([0-9]*)$/);
|
9084
9084
|
let nn = null;
|
9085
|
-
function
|
9085
|
+
function Ul(n, e, t, r) {
|
9086
9086
|
let s = "missing revert data", i = null;
|
9087
9087
|
const o = null;
|
9088
9088
|
let a = null;
|
@@ -9180,39 +9180,39 @@ const kr = class {
|
|
9180
9180
|
* the Transaction %%tx%%.
|
9181
9181
|
*/
|
9182
9182
|
static getBuiltinCallException(e, t, r) {
|
9183
|
-
return
|
9183
|
+
return Ul(e, t, r, kr.defaultAbiCoder());
|
9184
9184
|
}
|
9185
9185
|
};
|
9186
9186
|
let Er = kr;
|
9187
9187
|
ze = new WeakSet(), xt = function(e) {
|
9188
9188
|
if (e.isArray())
|
9189
|
-
return new
|
9189
|
+
return new dl(B(this, ze, xt).call(this, e.arrayChildren), e.arrayLength, e.name);
|
9190
9190
|
if (e.isTuple())
|
9191
9191
|
return new fr(e.components.map((r) => B(this, ze, xt).call(this, r)), e.name);
|
9192
9192
|
switch (e.baseType) {
|
9193
9193
|
case "address":
|
9194
|
-
return new
|
9194
|
+
return new hl(e.name);
|
9195
9195
|
case "bool":
|
9196
|
-
return new
|
9196
|
+
return new pl(e.name);
|
9197
9197
|
case "string":
|
9198
|
-
return new
|
9198
|
+
return new xl(e.name);
|
9199
9199
|
case "bytes":
|
9200
|
-
return new
|
9200
|
+
return new yl(e.name);
|
9201
9201
|
case "":
|
9202
|
-
return new
|
9202
|
+
return new wl(e.name);
|
9203
9203
|
}
|
9204
|
-
let t = e.type.match(
|
9204
|
+
let t = e.type.match(Dl);
|
9205
9205
|
if (t) {
|
9206
9206
|
let r = parseInt(t[2] || "256");
|
9207
|
-
return _(r !== 0 && r <= 256 && r % 8 === 0, "invalid " + t[1] + " bit length", "param", e), new
|
9207
|
+
return _(r !== 0 && r <= 256 && r % 8 === 0, "invalid " + t[1] + " bit length", "param", e), new El(r / 8, t[1] === "int", e.name);
|
9208
9208
|
}
|
9209
|
-
if (t = e.type.match(
|
9209
|
+
if (t = e.type.match(Fl), t) {
|
9210
9210
|
let r = parseInt(t[1]);
|
9211
|
-
return _(r !== 0 && r <= 32, "invalid bytes length", "param", e), new
|
9211
|
+
return _(r !== 0 && r <= 32, "invalid bytes length", "param", e), new ml(r, e.name);
|
9212
9212
|
}
|
9213
9213
|
_(!1, "invalid type", "type", e.type);
|
9214
9214
|
};
|
9215
|
-
class
|
9215
|
+
class jl {
|
9216
9216
|
constructor(e, t, r) {
|
9217
9217
|
d(this, "fragment");
|
9218
9218
|
d(this, "name");
|
@@ -9229,7 +9229,7 @@ class Ul {
|
|
9229
9229
|
});
|
9230
9230
|
}
|
9231
9231
|
}
|
9232
|
-
class
|
9232
|
+
class Ll {
|
9233
9233
|
constructor(e, t, r, s) {
|
9234
9234
|
d(this, "fragment");
|
9235
9235
|
d(this, "name");
|
@@ -9248,7 +9248,7 @@ class jl {
|
|
9248
9248
|
});
|
9249
9249
|
}
|
9250
9250
|
}
|
9251
|
-
class
|
9251
|
+
class Bl {
|
9252
9252
|
constructor(e, t, r) {
|
9253
9253
|
d(this, "fragment");
|
9254
9254
|
d(this, "name");
|
@@ -9814,7 +9814,7 @@ const At = class {
|
|
9814
9814
|
if (!s)
|
9815
9815
|
return null;
|
9816
9816
|
const i = m(this, W).decode(s.inputs, t.slice(4));
|
9817
|
-
return new
|
9817
|
+
return new Ll(s, s.selector, i, r);
|
9818
9818
|
}
|
9819
9819
|
parseCallResult(e) {
|
9820
9820
|
throw new Error("@TODO");
|
@@ -9827,7 +9827,7 @@ const At = class {
|
|
9827
9827
|
*/
|
9828
9828
|
parseLog(e) {
|
9829
9829
|
const t = this.getEvent(e.topics[0]);
|
9830
|
-
return !t || t.anonymous ? null : new
|
9830
|
+
return !t || t.anonymous ? null : new jl(t, t.topicHash, this.decodeEventLog(t, e.data, e.topics));
|
9831
9831
|
}
|
9832
9832
|
/**
|
9833
9833
|
* Parses a revert data, finding the matching error and extracts
|
@@ -9840,7 +9840,7 @@ const At = class {
|
|
9840
9840
|
if (!r)
|
9841
9841
|
return null;
|
9842
9842
|
const s = m(this, W).decode(r.inputs, vt(t, 4));
|
9843
|
-
return new
|
9843
|
+
return new Bl(r, r.selector, s);
|
9844
9844
|
}
|
9845
9845
|
/**
|
9846
9846
|
* Creates a new [[Interface]] from the ABI %%value%%.
|
@@ -9945,11 +9945,11 @@ Ee = new WeakMap(), xe = new WeakMap(), Te = new WeakMap(), W = new WeakMap(), X
|
|
9945
9945
|
const s = m(this, xe).get(Oe.from(e).format());
|
9946
9946
|
return s || null;
|
9947
9947
|
};
|
9948
|
-
const
|
9948
|
+
const Hl = BigInt(0);
|
9949
9949
|
function Ne(n) {
|
9950
9950
|
return n == null ? null : n.toString();
|
9951
9951
|
}
|
9952
|
-
function
|
9952
|
+
function Ml(n) {
|
9953
9953
|
const e = {};
|
9954
9954
|
n.to && (e.to = n.to), n.from && (e.from = n.from), n.data && (e.data = H(n.data));
|
9955
9955
|
const t = "chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);
|
@@ -9958,7 +9958,7 @@ function Hl(n) {
|
|
9958
9958
|
const r = "type,nonce".split(/,/);
|
9959
9959
|
for (const s of r)
|
9960
9960
|
!(s in n) || n[s] == null || (e[s] = Le(n[s], `request.${s}`));
|
9961
|
-
return n.accessList && (e.accessList =
|
9961
|
+
return n.accessList && (e.accessList = Tl(n.accessList)), "blockTag" in n && (e.blockTag = n.blockTag), "enableCcipRead" in n && (e.enableCcipReadEnabled = !!n.enableCcipRead), "customData" in n && (e.customData = n.customData), e;
|
9962
9962
|
}
|
9963
9963
|
class Vn {
|
9964
9964
|
constructor(e, t) {
|
@@ -10014,11 +10014,11 @@ class Vn {
|
|
10014
10014
|
return x(!!e, "failed to find transaction receipt", "UNKNOWN_ERROR", {}), e;
|
10015
10015
|
}
|
10016
10016
|
removedEvent() {
|
10017
|
-
return
|
10017
|
+
return zl(this);
|
10018
10018
|
}
|
10019
10019
|
}
|
10020
10020
|
var Yt;
|
10021
|
-
class
|
10021
|
+
class Vl {
|
10022
10022
|
constructor(e, t) {
|
10023
10023
|
d(this, "provider");
|
10024
10024
|
d(this, "to");
|
@@ -10230,7 +10230,7 @@ const Kn = class {
|
|
10230
10230
|
if (A == null || h - A.blockNumber + 1 < r)
|
10231
10231
|
return;
|
10232
10232
|
let C = "replaced";
|
10233
|
-
g.data === this.data && g.to === this.to && g.value === this.value ? C = "repriced" : g.data === "0x" && g.from === g.to && g.value ===
|
10233
|
+
g.data === this.data && g.to === this.to && g.value === this.value ? C = "repriced" : g.data === "0x" && g.from === g.to && g.value === Hl && (C = "cancelled"), x(!1, "transaction was replaced", "TRANSACTION_REPLACED", {
|
10234
10234
|
cancelled: C === "replaced" || C === "cancelled",
|
10235
10235
|
reason: C,
|
10236
10236
|
replacement: g.replaceableTransaction(i),
|
@@ -10325,7 +10325,7 @@ function Hi(n, e) {
|
|
10325
10325
|
function Mi(n) {
|
10326
10326
|
return { orphan: "drop-transaction", tx: n };
|
10327
10327
|
}
|
10328
|
-
function
|
10328
|
+
function zl(n) {
|
10329
10329
|
return { orphan: "drop-log", log: {
|
10330
10330
|
transactionHash: n.transactionHash,
|
10331
10331
|
blockHash: n.blockHash,
|
@@ -10353,7 +10353,7 @@ class zn extends Vn {
|
|
10353
10353
|
}
|
10354
10354
|
}
|
10355
10355
|
var Nt;
|
10356
|
-
class
|
10356
|
+
class ql extends Vl {
|
10357
10357
|
constructor(t, r, s) {
|
10358
10358
|
super(s, r);
|
10359
10359
|
F(this, Nt, void 0);
|
@@ -10376,7 +10376,7 @@ class qn extends Tn {
|
|
10376
10376
|
}
|
10377
10377
|
async wait(t) {
|
10378
10378
|
const r = await super.wait();
|
10379
|
-
return r == null ? null : new
|
10379
|
+
return r == null ? null : new ql(m(this, Qt), this.provider, r);
|
10380
10380
|
}
|
10381
10381
|
}
|
10382
10382
|
Qt = new WeakMap();
|
@@ -10396,7 +10396,7 @@ class Vi extends lu {
|
|
10396
10396
|
return await this.log.getTransactionReceipt();
|
10397
10397
|
}
|
10398
10398
|
}
|
10399
|
-
class
|
10399
|
+
class Gl extends Vi {
|
10400
10400
|
constructor(e, t, r, s, i) {
|
10401
10401
|
super(e, t, r, new zn(i, e.interface, s));
|
10402
10402
|
const o = e.interface.decodeEventLog(s, this.log.data, this.log.topics);
|
@@ -10423,7 +10423,7 @@ function Gi(n) {
|
|
10423
10423
|
return n && typeof n.sendTransaction == "function";
|
10424
10424
|
}
|
10425
10425
|
var er;
|
10426
|
-
class
|
10426
|
+
class Jl {
|
10427
10427
|
constructor(e, t, r) {
|
10428
10428
|
F(this, er, void 0);
|
10429
10429
|
d(this, "fragment");
|
@@ -10440,7 +10440,7 @@ class Gl {
|
|
10440
10440
|
}
|
10441
10441
|
}
|
10442
10442
|
er = new WeakMap();
|
10443
|
-
function
|
10443
|
+
function Wl() {
|
10444
10444
|
return Function;
|
10445
10445
|
}
|
10446
10446
|
function dt(n, e) {
|
@@ -10450,14 +10450,14 @@ function nt(n) {
|
|
10450
10450
|
return n == null ? null : n.provider || null;
|
10451
10451
|
}
|
10452
10452
|
async function Ji(n, e) {
|
10453
|
-
const t =
|
10453
|
+
const t = Ml(K.dereference(n, "overrides"));
|
10454
10454
|
return _(t.to == null || (e || []).indexOf("to") >= 0, "cannot override to", "overrides.to", t.to), _(t.data == null || (e || []).indexOf("data") >= 0, "cannot override data", "overrides.data", t.data), t.from && (t.from = await Mn(t.from)), t;
|
10455
10455
|
}
|
10456
|
-
async function
|
10456
|
+
async function Kl(n, e, t) {
|
10457
10457
|
const r = dt(n, "resolveName"), s = Gn(r) ? r : null;
|
10458
10458
|
return await Promise.all(e.map((i, o) => i.walkAsync(t[o], (a, c) => (c = K.dereference(c, a), a === "address" ? Mn(c, s) : c))));
|
10459
10459
|
}
|
10460
|
-
class
|
10460
|
+
class Xl {
|
10461
10461
|
constructor(e) {
|
10462
10462
|
d(this, "_contract");
|
10463
10463
|
return S(this, { _contract: e }), new Proxy(this, {
|
@@ -10492,7 +10492,7 @@ class Kl {
|
|
10492
10492
|
return x(qi(t), "contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { operation: "estimateGas" }), await t.estimateGas(await this.populateTransaction(e));
|
10493
10493
|
}
|
10494
10494
|
}
|
10495
|
-
class
|
10495
|
+
class Zl extends Wl() {
|
10496
10496
|
constructor(t, r) {
|
10497
10497
|
super();
|
10498
10498
|
d(this, "name", "");
|
@@ -10526,7 +10526,7 @@ class Xl extends Jl() {
|
|
10526
10526
|
let s = {};
|
10527
10527
|
if (r.inputs.length + 1 === t.length && (s = await Ji(t.pop())), r.inputs.length !== t.length)
|
10528
10528
|
throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");
|
10529
|
-
const i = await
|
10529
|
+
const i = await Kl(this._contract.runner, r.inputs, t);
|
10530
10530
|
return Object.assign({}, s, await fi({
|
10531
10531
|
to: this._contract.getAddress(),
|
10532
10532
|
data: this._contract.interface.encodeFunctionData(r, i)
|
@@ -10560,10 +10560,10 @@ class Xl extends Jl() {
|
|
10560
10560
|
return this._contract.interface.decodeFunctionResult(o, i);
|
10561
10561
|
}
|
10562
10562
|
}
|
10563
|
-
function
|
10563
|
+
function Yl() {
|
10564
10564
|
return Function;
|
10565
10565
|
}
|
10566
|
-
class
|
10566
|
+
class Ql extends Yl() {
|
10567
10567
|
constructor(t, r) {
|
10568
10568
|
super();
|
10569
10569
|
d(this, "name", "");
|
@@ -10576,7 +10576,7 @@ class Yl extends Zl() {
|
|
10576
10576
|
_key: r
|
10577
10577
|
}), new Proxy(this, {
|
10578
10578
|
// Perform the default operation for this fragment type
|
10579
|
-
apply: (s, i, o) => new
|
10579
|
+
apply: (s, i, o) => new Jl(t, s.getFragment(...o), o)
|
10580
10580
|
});
|
10581
10581
|
}
|
10582
10582
|
// Only works on non-ambiguous keys
|
@@ -10594,13 +10594,13 @@ class Yl extends Zl() {
|
|
10594
10594
|
}
|
10595
10595
|
}
|
10596
10596
|
const xr = Symbol.for("_ethersInternal_contract"), Wi = /* @__PURE__ */ new WeakMap();
|
10597
|
-
function
|
10597
|
+
function eh(n, e) {
|
10598
10598
|
Wi.set(n[xr], e);
|
10599
10599
|
}
|
10600
10600
|
function ce(n) {
|
10601
10601
|
return Wi.get(n[xr]);
|
10602
10602
|
}
|
10603
|
-
function
|
10603
|
+
function th(n) {
|
10604
10604
|
return n && typeof n == "object" && "getTopicFilter" in n && typeof n.getTopicFilter == "function" && n.fragment;
|
10605
10605
|
}
|
10606
10606
|
async function Jn(n, e) {
|
@@ -10614,7 +10614,7 @@ async function Jn(n, e) {
|
|
10614
10614
|
};
|
10615
10615
|
t = e.map((o) => o == null ? null : Array.isArray(o) ? o.map(i) : i(o));
|
10616
10616
|
} else
|
10617
|
-
e === "*" ? t = [null] : typeof e == "string" ? Ge(e, 32) ? t = [e] : (r = n.interface.getEvent(e), _(r, "unknown fragment", "event", e), t = [r.topicHash]) :
|
10617
|
+
e === "*" ? t = [null] : typeof e == "string" ? Ge(e, 32) ? t = [e] : (r = n.interface.getEvent(e), _(r, "unknown fragment", "event", e), t = [r.topicHash]) : th(e) ? t = await e.getTopicFilter() : "fragment" in e ? (r = e.fragment, t = [r.topicHash]) : _(!1, "unknown event name", "event", e);
|
10618
10618
|
t = t.map((i) => {
|
10619
10619
|
if (i == null)
|
10620
10620
|
return null;
|
@@ -10646,7 +10646,7 @@ async function Us(n, e, t) {
|
|
10646
10646
|
}
|
10647
10647
|
if (A) {
|
10648
10648
|
const C = A, X = s ? n.interface.decodeEventLog(s, g.data, g.topics) : [];
|
10649
|
-
kn(n, t, X, (U) => new
|
10649
|
+
kn(n, t, X, (U) => new Gl(n, U, t, C, g));
|
10650
10650
|
} else
|
10651
10651
|
kn(n, t, [], (C) => new Vi(n, C, t, g));
|
10652
10652
|
};
|
@@ -10663,7 +10663,7 @@ async function Us(n, e, t) {
|
|
10663
10663
|
return u;
|
10664
10664
|
}
|
10665
10665
|
let On = Promise.resolve();
|
10666
|
-
async function
|
10666
|
+
async function rh(n, e, t, r) {
|
10667
10667
|
await On;
|
10668
10668
|
const s = await Bt(n, e);
|
10669
10669
|
if (!s)
|
@@ -10684,18 +10684,18 @@ async function kn(n, e, t, r) {
|
|
10684
10684
|
await On;
|
10685
10685
|
} catch {
|
10686
10686
|
}
|
10687
|
-
const s =
|
10687
|
+
const s = rh(n, e, t, r);
|
10688
10688
|
return On = s, await s;
|
10689
10689
|
}
|
10690
10690
|
const js = ["then"];
|
10691
|
-
var
|
10691
|
+
var hh;
|
10692
10692
|
const Ar = class {
|
10693
10693
|
constructor(e, t, r, s) {
|
10694
10694
|
d(this, "target");
|
10695
10695
|
d(this, "interface");
|
10696
10696
|
d(this, "runner");
|
10697
10697
|
d(this, "filters");
|
10698
|
-
d(this,
|
10698
|
+
d(this, hh);
|
10699
10699
|
d(this, "fallback");
|
10700
10700
|
r == null && (r = null);
|
10701
10701
|
const i = _n.from(t);
|
@@ -10727,7 +10727,7 @@ const Ar = class {
|
|
10727
10727
|
throw new Error("TODO");
|
10728
10728
|
return ce(this).addr = h, h;
|
10729
10729
|
});
|
10730
|
-
|
10730
|
+
eh(this, { addrPromise: o, addr: a, deployTx: c, subs: u });
|
10731
10731
|
const l = new Proxy({}, {
|
10732
10732
|
get: (h, y, p) => {
|
10733
10733
|
if (js.indexOf(y) >= 0)
|
@@ -10739,7 +10739,7 @@ const Ar = class {
|
|
10739
10739
|
}
|
10740
10740
|
});
|
10741
10741
|
return S(this, { filters: l }), S(this, {
|
10742
|
-
fallback: i.receive || i.fallback ? new
|
10742
|
+
fallback: i.receive || i.fallback ? new Xl(this) : null
|
10743
10743
|
}), new Proxy(this, {
|
10744
10744
|
get: (h, y, p) => {
|
10745
10745
|
if (y in h || js.indexOf(y) >= 0)
|
@@ -10787,10 +10787,10 @@ const Ar = class {
|
|
10787
10787
|
return ce(this).deployTx;
|
10788
10788
|
}
|
10789
10789
|
getFunction(e) {
|
10790
|
-
return typeof e != "string" && (e = e.format()), new
|
10790
|
+
return typeof e != "string" && (e = e.format()), new Zl(this, e);
|
10791
10791
|
}
|
10792
10792
|
getEvent(e) {
|
10793
|
-
return typeof e != "string" && (e = e.format()), new
|
10793
|
+
return typeof e != "string" && (e = e.format()), new Ql(this, e);
|
10794
10794
|
}
|
10795
10795
|
async queryTransaction(e) {
|
10796
10796
|
throw new Error("@TODO");
|
@@ -10885,11 +10885,11 @@ const Ar = class {
|
|
10885
10885
|
}
|
10886
10886
|
};
|
10887
10887
|
let An = Ar;
|
10888
|
-
|
10889
|
-
function
|
10888
|
+
hh = xr;
|
10889
|
+
function nh() {
|
10890
10890
|
return An;
|
10891
10891
|
}
|
10892
|
-
class
|
10892
|
+
class sh extends nh() {
|
10893
10893
|
}
|
10894
10894
|
class Ft {
|
10895
10895
|
constructor(e) {
|
@@ -10926,7 +10926,7 @@ class Ft {
|
|
10926
10926
|
}
|
10927
10927
|
async addFunction(e, t, r, s, i) {
|
10928
10928
|
console.log(i);
|
10929
|
-
const o = new
|
10929
|
+
const o = new sh(e, s);
|
10930
10930
|
return o.interface.encodeFunctionData(t, r), i = i || await this.getAbiHash(s), console.log(i), this.data.push({
|
10931
10931
|
address: e,
|
10932
10932
|
bytecode: o.interface.encodeFunctionData(t, r),
|
@@ -11150,14 +11150,14 @@ class Vr {
|
|
11150
11150
|
);
|
11151
11151
|
}
|
11152
11152
|
}
|
11153
|
-
const
|
11153
|
+
const ih = "handler_function_call_v2", oh = /^(\d+)([SMHD])$/i, Ls = re({
|
11154
11154
|
timeBase: T().oneOf(["blocks", "time"]).required(),
|
11155
11155
|
nBlocks: q().min(10).when(
|
11156
11156
|
"timeBase",
|
11157
11157
|
([n], e) => n === "blocks" ? e.required() : e
|
11158
11158
|
),
|
11159
11159
|
timePeriod: T().matches(
|
11160
|
-
|
11160
|
+
oh,
|
11161
11161
|
"timePeriod must be of the format n[s|m|h|d], eg 10s for 10 seconds"
|
11162
11162
|
).when(
|
11163
11163
|
"timeBase",
|
@@ -11184,7 +11184,7 @@ class sn {
|
|
11184
11184
|
// doesn't matter, deprecated
|
11185
11185
|
network: t,
|
11186
11186
|
nickname: e,
|
11187
|
-
type:
|
11187
|
+
type: ih,
|
11188
11188
|
handler: await this.validate(r)
|
11189
11189
|
};
|
11190
11190
|
}
|
@@ -11229,7 +11229,7 @@ class sn {
|
|
11229
11229
|
];
|
11230
11230
|
}
|
11231
11231
|
}
|
11232
|
-
const
|
11232
|
+
const ah = "handler_onchain_event_v2", ch = re({
|
11233
11233
|
addresses: ut().of(T().required()).required(),
|
11234
11234
|
abiHash: T().required(),
|
11235
11235
|
event: T().required(),
|
@@ -11242,7 +11242,7 @@ const oh = "handler_onchain_event_v2", ah = re({
|
|
11242
11242
|
"triggerOn",
|
11243
11243
|
([n], e) => n === "filter" ? e : e.nullable().default(null)
|
11244
11244
|
).required()
|
11245
|
-
}),
|
11245
|
+
}), uh = (n) => n, Ki = (n, e, t = [], r = "", s = "") => (n.forEach((i, o) => {
|
11246
11246
|
const a = i.type.includes("["), c = a ? "_[]" : "";
|
11247
11247
|
if (i.components) {
|
11248
11248
|
const u = i.name === "" ? `${o}` : i.name;
|
@@ -11257,7 +11257,7 @@ const oh = "handler_onchain_event_v2", ah = re({
|
|
11257
11257
|
t.push({
|
11258
11258
|
source: e,
|
11259
11259
|
label: `${s}${i.name}`,
|
11260
|
-
type:
|
11260
|
+
type: uh(i.type),
|
11261
11261
|
key: `${r}${o}${c}`,
|
11262
11262
|
index: o
|
11263
11263
|
});
|
@@ -11269,12 +11269,12 @@ class on {
|
|
11269
11269
|
// doesn't matter, deprecated
|
11270
11270
|
network: t,
|
11271
11271
|
nickname: e,
|
11272
|
-
type:
|
11272
|
+
type: ah,
|
11273
11273
|
handler: await this.validate(r)
|
11274
11274
|
};
|
11275
11275
|
}
|
11276
11276
|
static validate(e) {
|
11277
|
-
return
|
11277
|
+
return ch.validateSync(e);
|
11278
11278
|
}
|
11279
11279
|
static readFields(e, t) {
|
11280
11280
|
let r = [
|
@@ -11407,7 +11407,7 @@ class Ht {
|
|
11407
11407
|
}
|
11408
11408
|
}
|
11409
11409
|
}
|
11410
|
-
const Bs = (n) => `https://${n}.functions.supabase.co/`, Hs = (n) => `https://${n}.supabase.co/`, Ms = "fdgtrxmmrtlokhgkvcjz",
|
11410
|
+
const Bs = (n) => `https://${n}.functions.supabase.co/`, Hs = (n) => `https://${n}.supabase.co/`, Ms = "fdgtrxmmrtlokhgkvcjz", lh = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZkZ3RyeG1tcnRsb2toZ2t2Y2p6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2NzMwODcwNzYsImV4cCI6MTk4ODY2MzA3Nn0.sAMxjlcJSSozBGr-LNcsudyxzUEM9e-UspMHHQLqLr4";
|
11411
11411
|
class Xi {
|
11412
11412
|
constructor(e, t) {
|
11413
11413
|
d(this, "headers", {});
|
@@ -11421,7 +11421,7 @@ class Xi {
|
|
11421
11421
|
if (e.key)
|
11422
11422
|
throw new Error("Auth by key not yet supported");
|
11423
11423
|
if (e.email && e.password) {
|
11424
|
-
const s = e.projectId ? Hs(e.projectId) : Hs(Ms), i = e.projectId ? Bs(e.projectId) : Bs(Ms), o = e.anonKey ? e.anonKey :
|
11424
|
+
const s = e.projectId ? Hs(e.projectId) : Hs(Ms), i = e.projectId ? Bs(e.projectId) : Bs(Ms), o = e.anonKey ? e.anonKey : lh, a = nc(s, o), { data: c, error: u } = await a.auth.signInWithPassword({
|
11425
11425
|
email: e.email,
|
11426
11426
|
password: e.password
|
11427
11427
|
});
|
@@ -11495,7 +11495,7 @@ class Xi {
|
|
11495
11495
|
};
|
11496
11496
|
}
|
11497
11497
|
async request(e, t, r = {}) {
|
11498
|
-
const s = new URL((
|
11498
|
+
const s = new URL(sl.join(this.url, t));
|
11499
11499
|
if (r.params)
|
11500
11500
|
for (const a of Object.keys(r.params))
|
11501
11501
|
s.searchParams.append(a, r.params[a]);
|
@@ -11576,9 +11576,9 @@ class Zi {
|
|
11576
11576
|
};
|
11577
11577
|
}
|
11578
11578
|
}
|
11579
|
-
const
|
11579
|
+
const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
11580
11580
|
__proto__: null
|
11581
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
11581
|
+
}, Symbol.toStringTag, { value: "Module" })), ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
11582
11582
|
__proto__: null
|
11583
11583
|
}, Symbol.toStringTag, { value: "Module" }));
|
11584
11584
|
export {
|
@@ -11586,6 +11586,6 @@ export {
|
|
11586
11586
|
Xi as DeNotifyClient,
|
11587
11587
|
Vr as FilterBuilder,
|
11588
11588
|
Ft as FunctionBuilder,
|
11589
|
-
|
11590
|
-
|
11589
|
+
ph as Notification,
|
11590
|
+
dh as Trigger
|
11591
11591
|
};
|