@autogames/sdk 1.1.1 → 1.2.4
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/autogames-sdk.esm.js +1 -1
- package/dist/autogames-sdk.js +582 -627
- package/dist/{basic-R2aK52rX.js → basic-CX_SLrXD.js} +6 -5
- package/dist/bridge-mount-CWHdoUW-.js +69650 -0
- package/dist/{ccip-CjgrAp_t.js → ccip-qoKRUuU4.js} +8 -8
- package/dist/chat-mount-gXq-EZa2.js +2744 -0
- package/dist/{core-CnCeDQAm.js → core-CvTNuh95.js} +32 -31
- package/dist/{features-BrlR4_0m.js → features-CvmBsK4Z.js} +1 -1
- package/dist/index-BDOF-uep.js +278 -0
- package/dist/index-BfOurzzw.js +10194 -0
- package/dist/{index-C9RsDt_J.js → index-CdNZo-Hc.js} +14 -14
- package/dist/{index-Chq42DrS.js → index-YZZeCzJW.js} +1 -1
- package/dist/main-DBE9yqee.js +2736 -0
- package/dist/main.d.ts +95 -0
- package/dist/parseSignature-Brkx4zaC.js +121 -0
- package/dist/{secp256k1-UpZfvHa8.js → secp256k1-BNkeet6Q.js} +1 -1
- package/dist/stats-confirm.html +1 -1
- package/dist/{w3m-modal-ClvdQLsb.js → w3m-modal-0BRLpsIo.js} +2 -2
- package/package.json +6 -7
- package/README.md +0 -732
- package/dist/bridge-mount-Bhf05oeO.js +0 -89817
- package/dist/ccip-Bg_nydEz.js +0 -145
- package/dist/index-zA8BVXWW.js +0 -264
- package/dist/main-oRLGGL0R.js +0 -2284
- package/dist/parseSignature-DFDCc7FD.js +0 -131
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
1
|
+
import { df as Ge, dg as Wn, dh as Et, di as Wi, dj as Ae, dk as Ji, dl as Yi, dm as ya, dn as Xi, dr as on, ds as Qi, bT as Ke, bX as he, ci as D, cM as Mt, bx as tt, cA as be, dt as xe, du as ha, dv as cn, p as $i, a6 as j, dw as es, d1 as wr, bt as ts, ah as ns, ag as rs, af as as, c7 as Pe, dx as Jn, dy as Yn, bB as Se, dz as is, dA as ss, dB as ga, dC as os, cr as cs, cw as us, cR as ds, dD as ls, dE as fs, h as ps, bR as ms, i as ys, n as xr, bI as St, bW as Le, dF as hs, dp as gs, dG as bs, dH as vs, cJ as ba, b$ as ws, ck as He, dI as va, ce as Er, cc as un, c2 as Sr, bv as wa, cj as xs, b_ as Es, ca as kr, bs as xa, o as Ss, c9 as Zt, bJ as ks } from "./bridge-mount-CWHdoUW-.js";
|
|
2
|
+
import { c as As, s as Wt, p as Os, e as Ps } from "./parseSignature-Brkx4zaC.js";
|
|
3
3
|
const Xn = /* @__PURE__ */ BigInt(0), dn = /* @__PURE__ */ BigInt(1);
|
|
4
4
|
function kt(e, t = "") {
|
|
5
5
|
if (typeof e != "boolean") {
|
|
@@ -4031,7 +4031,7 @@ function Wc(e) {
|
|
|
4031
4031
|
return be(tt([{ type: "bytes32" }, { type: "address" }, { type: "uint256" }], [be(y), n, BigInt(t)]));
|
|
4032
4032
|
}
|
|
4033
4033
|
async function Jc(e) {
|
|
4034
|
-
const { extend: t, nonceKeyManager: n =
|
|
4034
|
+
const { extend: t, nonceKeyManager: n = As({
|
|
4035
4035
|
source: {
|
|
4036
4036
|
get() {
|
|
4037
4037
|
return Date.now();
|
|
@@ -5404,7 +5404,7 @@ function ea(e) {
|
|
|
5404
5404
|
var n, r, a, i, s, o, c, u;
|
|
5405
5405
|
if (!t.rpcUrl)
|
|
5406
5406
|
return;
|
|
5407
|
-
const p =
|
|
5407
|
+
const p = ms({
|
|
5408
5408
|
id: t.id,
|
|
5409
5409
|
rpcUrls: {
|
|
5410
5410
|
default: {
|
|
@@ -5417,7 +5417,7 @@ function ea(e) {
|
|
|
5417
5417
|
symbol: (o = (s = t.nativeCurrency) === null || s === void 0 ? void 0 : s.symbol) !== null && o !== void 0 ? o : "",
|
|
5418
5418
|
decimals: (u = (c = t.nativeCurrency) === null || c === void 0 ? void 0 : c.decimal) !== null && u !== void 0 ? u : 18
|
|
5419
5419
|
}
|
|
5420
|
-
}), f =
|
|
5420
|
+
}), f = ys({
|
|
5421
5421
|
chain: p,
|
|
5422
5422
|
transport: xr(t.rpcUrl)
|
|
5423
5423
|
}), l = hu({
|
|
@@ -5948,7 +5948,7 @@ class Ui extends q {
|
|
|
5948
5948
|
}
|
|
5949
5949
|
}
|
|
5950
5950
|
function Di(e, t = {}) {
|
|
5951
|
-
const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r =
|
|
5951
|
+
const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = hs(ji(e));
|
|
5952
5952
|
return n === "Bytes" ? r : We(r);
|
|
5953
5953
|
}
|
|
5954
5954
|
function Mi(e, t = {}) {
|
|
@@ -6252,9 +6252,9 @@ const Gi = {
|
|
|
6252
6252
|
b: BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00"),
|
|
6253
6253
|
Gx: BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),
|
|
6254
6254
|
Gy: BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650")
|
|
6255
|
-
}, cd = De(Gi.p), ud = De(Ki.p), dd = De(Hi.p), ld = tr({ ...Gi, Fp: cd, lowS: !1 },
|
|
6256
|
-
tr({ ...Ki, Fp: ud, lowS: !1 },
|
|
6257
|
-
tr({ ...Hi, Fp: dd, lowS: !1, allowedPrivateKeyLengths: [130, 131, 132] },
|
|
6255
|
+
}, cd = De(Gi.p), ud = De(Ki.p), dd = De(Hi.p), ld = tr({ ...Gi, Fp: cd, lowS: !1 }, gs);
|
|
6256
|
+
tr({ ...Ki, Fp: ud, lowS: !1 }, bs);
|
|
6257
|
+
tr({ ...Hi, Fp: dd, lowS: !1, allowedPrivateKeyLengths: [130, 131, 132] }, vs);
|
|
6258
6258
|
const ca = ld;
|
|
6259
6259
|
Uint8Array.from([
|
|
6260
6260
|
105,
|
|
@@ -6746,7 +6746,7 @@ function Dd(e) {
|
|
|
6746
6746
|
return Array.isArray(e) && e.length === 1 && typeof e[0] == "object" && e[0] !== null && "to" in e[0];
|
|
6747
6747
|
}
|
|
6748
6748
|
function Md(e) {
|
|
6749
|
-
return
|
|
6749
|
+
return ws(be(He(e)), 0, 16);
|
|
6750
6750
|
}
|
|
6751
6751
|
function Ld({ attribution: e, dappOrigin: t }) {
|
|
6752
6752
|
if (e) {
|
|
@@ -6995,7 +6995,7 @@ function Zd({ webauthn: e, signature: t }) {
|
|
|
6995
6995
|
], [
|
|
6996
6996
|
{
|
|
6997
6997
|
authenticatorData: e.authenticatorData,
|
|
6998
|
-
clientDataJSON:
|
|
6998
|
+
clientDataJSON: xs(e.clientDataJSON),
|
|
6999
6999
|
challengeIndex: BigInt(e.challengeIndex),
|
|
7000
7000
|
typeIndex: BigInt(e.typeIndex),
|
|
7001
7001
|
r: n,
|
|
@@ -7005,7 +7005,7 @@ function Zd({ webauthn: e, signature: t }) {
|
|
|
7005
7005
|
}
|
|
7006
7006
|
function $e(e) {
|
|
7007
7007
|
const { ownerIndex: t = 0 } = e, n = (() => {
|
|
7008
|
-
if (
|
|
7008
|
+
if (Es(e.signature) !== 65)
|
|
7009
7009
|
return e.signature;
|
|
7010
7010
|
const r = Os(e.signature);
|
|
7011
7011
|
return Ps(["bytes32", "bytes32", "uint8"], [r.r, r.s, r.yParity === 0 ? 27 : 28]);
|
|
@@ -7396,7 +7396,7 @@ async function Xd({ errorData: e, globalAccountAddress: t, subAccountAddress: n,
|
|
|
7396
7396
|
to: k.token,
|
|
7397
7397
|
value: "0x0",
|
|
7398
7398
|
data: Se({
|
|
7399
|
-
abi:
|
|
7399
|
+
abi: Ss,
|
|
7400
7400
|
functionName: "transfer",
|
|
7401
7401
|
args: [n, k.requiredAmount]
|
|
7402
7402
|
})
|
|
@@ -7672,7 +7672,7 @@ class Qd {
|
|
|
7672
7672
|
async handleGetCapabilitiesRequest(t) {
|
|
7673
7673
|
_d(t.params);
|
|
7674
7674
|
const n = t.params[0], r = t.params[1];
|
|
7675
|
-
if (!this.accounts.some((o) =>
|
|
7675
|
+
if (!this.accounts.some((o) => ks(o, n)))
|
|
7676
7676
|
throw E.provider.unauthorized("no active account found when getting capabilities");
|
|
7677
7677
|
const a = x.getState().account.capabilities;
|
|
7678
7678
|
if (!a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as Q, L as ee, I as F, v as $, x as y, y as c, Q as te, U as h, D as p, V as ie, u as S, z as T } from "./core-
|
|
1
|
+
import { K as Q, L as ee, I as F, v as $, x as y, y as c, Q as te, U as h, D as p, V as ie, u as S, z as T } from "./core-CvTNuh95.js";
|
|
2
2
|
const O = ".", z = {
|
|
3
3
|
getSpacingStyles(e, t) {
|
|
4
4
|
if (Array.isArray(e))
|