@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.
@@ -1,5 +1,5 @@
1
- import { db as Ge, dc as Wn, dd as Et, de as Wi, df as Ae, dg as Ji, dh as Yi, di as ya, dj as Xi, dn as on, dp as Qi, bN as Ke, bR as he, cc as D, cC as Mt, bs as tt, cq as be, dq as xe, dr as ha, ds as cn, p as $i, a4 as j, dt as es, cO as wr, bo as ts, ae as ns, ad as rs, ac as as, c1 as Pe, du as Jn, dv as Yn, bw as Se, dw as is, dx as ss, dy as ga, dz as os, ck as cs, cn as us, cH as ds, dA as ls, dB as fs, h as ps, i as ms, n as xr, bD as St, bQ as Le, dC as ys, dk as hs, dD as gs, dE as bs, cz as ba, bV as vs, ce as He, dF as va, c8 as Er, c6 as un, bY as Sr, bq as wa, cd as ws, bU as xs, c4 as kr, bn as xa, o as Es, c3 as Zt, bE as Ss } from "./bridge-mount-Bhf05oeO.js";
2
- import { c as ks, s as Wt, d as As, p as Os, e as Ps } from "./parseSignature-DFDCc7FD.js";
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 = ks({
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 = As({
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 = ms({
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 = ys(ji(e));
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 }, hs);
6256
- tr({ ...Ki, Fp: ud, lowS: !1 }, gs);
6257
- tr({ ...Hi, Fp: dd, lowS: !1, allowedPrivateKeyLengths: [130, 131, 132] }, bs);
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 vs(be(He(e)), 0, 16);
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: ws(e.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 (xs(e.signature) !== 65)
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: Es,
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) => Ss(o, n)))
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-CnCeDQAm.js";
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))