Skip to content

Commit

Permalink
Build: (6edcdba) v4.0.3
Browse files Browse the repository at this point in the history
* Updating to sequence.js v2.0.6
  • Loading branch information
corbanbrook committed Sep 13, 2024
1 parent 61389f5 commit f57a69b
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-veganpnv.js";
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./index-BzPqRlsG.js";
var events = { exports: {} };
var R = typeof Reflect === "object" ? Reflect : null;
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
Expand Down
2 changes: 1 addition & 1 deletion assets/ccip-BpL4z2WI.js → assets/ccip-DWFRyvlP.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { f as BaseError, h as getUrl, s as stringify, i as decodeErrorResult, j as isAddressEqual, k as call, l as concat, m as encodeAbiParameters, H as HttpRequestError, n as isHex } from "./index-veganpnv.js";
import { f as BaseError, h as getUrl, s as stringify, i as decodeErrorResult, j as isAddressEqual, k as call, l as concat, m as encodeAbiParameters, H as HttpRequestError, n as isHex } from "./index-BzPqRlsG.js";
class OffchainLookupError extends BaseError {
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
var _a;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { a as getAugmentedNamespace, d as dist, p as process$1, c as commonjsGlobal, B as Buffer$7 } from "./index-veganpnv.js";
import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-5e59GdWQ.js";
import { a as getAugmentedNamespace, d as dist, p as process$1, c as commonjsGlobal, B as Buffer$7 } from "./index-BzPqRlsG.js";
import { e as eventsExports, r as require$$3 } from "./___vite-browser-external_commonjs-proxy-BBNlhQUO.js";
var readableBrowser = { exports: {} };
var streamBrowser = eventsExports.EventEmitter;
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(dist);
Expand Down
4 changes: 2 additions & 2 deletions assets/index-JI99EnNo.js → assets/index-BIe9O6t-.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { n as ne$1, s as se$1, T as T$2, t as te$1, a as a$2, o as oe$1, R as R$1, p as p$1, y as y$1 } from "./index-DzdPNSh6.js";
import "./index-veganpnv.js";
import { n as ne$1, s as se$1, T as T$2, t as te$1, a as a$2, o as oe$1, R as R$1, p as p$1, y as y$1 } from "./index-CIeoByUV.js";
import "./index-BzPqRlsG.js";
function addUniqueItem(array, item) {
array.indexOf(item) === -1 && array.push(item);
}
Expand Down
69 changes: 54 additions & 15 deletions assets/index-veganpnv.js → assets/index-BzPqRlsG.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const __vite__fileDeps=["./index-CKTa-Wqf.js","./hooks.module-Gt_UBnF4.js","./___vite-browser-external_commonjs-proxy-5e59GdWQ.js","./index--cVnnVXZ.js","./index.es-DEYs7vDC.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
const __vite__fileDeps=["./index-DhrVQl1N.js","./hooks.module-B0yPPEfe.js","./___vite-browser-external_commonjs-proxy-BBNlhQUO.js","./index-CyfTH7LX.js","./index.es-C_0Ilmtr.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
Expand Down Expand Up @@ -52539,6 +52539,7 @@ let ChainId = /* @__PURE__ */ function(ChainId2) {
ChainId2[ChainId2["BLAST"] = 81457] = "BLAST";
ChainId2[ChainId2["BLAST_SEPOLIA"] = 168587773] = "BLAST_SEPOLIA";
ChainId2[ChainId2["BORNE_TESTNET"] = 94984] = "BORNE_TESTNET";
ChainId2[ChainId2["SKALE_NEBULA_TESTNET"] = 37084624] = "SKALE_NEBULA_TESTNET";
ChainId2[ChainId2["HARDHAT"] = 31337] = "HARDHAT";
ChainId2[ChainId2["HARDHAT_2"] = 31338] = "HARDHAT_2";
return ChainId2;
Expand Down Expand Up @@ -52669,8 +52670,8 @@ const networks = {
rootUrl: "https://polygonscan.com/"
},
nativeToken: {
symbol: "MATIC",
name: "Polygon",
symbol: "POL",
name: "POL",
decimals: 18
}
},
Expand Down Expand Up @@ -52704,8 +52705,8 @@ const networks = {
rootUrl: "https://www.oklink.com/amoy/"
},
nativeToken: {
symbol: "aMATIC",
name: "Amoy Polygon",
symbol: "aPOL",
name: "Amoy POL",
decimals: 18
}
},
Expand Down Expand Up @@ -53210,6 +53211,23 @@ const networks = {
decimals: 18
}
},
[ChainId.SKALE_NEBULA_TESTNET]: {
chainId: ChainId.SKALE_NEBULA_TESTNET,
type: NetworkType.TESTNET,
name: "skale-nebula-testnet",
title: "Skale Nebula Gaming Hub Testnet",
logoURI: `https://assets.sequence.info/images/networks/medium/${ChainId.SKALE_NEBULA_TESTNET}.webp`,
testnet: true,
blockExplorer: {
name: "Skale Nebula Gaming Hub Testnet Explorer",
rootUrl: "https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com/"
},
nativeToken: {
symbol: "sFUEL",
name: "SKALE Fuel",
decimals: 18
}
},
[ChainId.HARDHAT]: {
chainId: ChainId.HARDHAT,
name: "hardhat",
Expand Down Expand Up @@ -54290,7 +54308,7 @@ const allNetworks = validateAndSortNetworks([_extends$e({}, createNetworkConfig(
disabled: true
}), createNetworkConfig(ChainId.SEPOLIA), createNetworkConfig(ChainId.POLYGON_MUMBAI, {
disabled: true
}), createNetworkConfig(ChainId.POLYGON_AMOY), createNetworkConfig(ChainId.BSC_TESTNET), createNetworkConfig(ChainId.ARBITRUM_SEPOLIA), createNetworkConfig(ChainId.BASE), createNetworkConfig(ChainId.BASE_SEPOLIA), createNetworkConfig(ChainId.HOMEVERSE), createNetworkConfig(ChainId.HOMEVERSE_TESTNET), createNetworkConfig(ChainId.XAI), createNetworkConfig(ChainId.XAI_SEPOLIA), createNetworkConfig(ChainId.AVALANCHE_TESTNET), createNetworkConfig(ChainId.ASTAR_ZKEVM), createNetworkConfig(ChainId.ASTAR_ZKYOTO), createNetworkConfig(ChainId.XR_SEPOLIA), createNetworkConfig(ChainId.B3_SEPOLIA), createNetworkConfig(ChainId.APECHAIN_TESTNET), createNetworkConfig(ChainId.BLAST), createNetworkConfig(ChainId.BLAST_SEPOLIA), createNetworkConfig(ChainId.TELOS), createNetworkConfig(ChainId.BORNE_TESTNET), ...hardhatNetworks]);
}), createNetworkConfig(ChainId.POLYGON_AMOY), createNetworkConfig(ChainId.BSC_TESTNET), createNetworkConfig(ChainId.ARBITRUM_SEPOLIA), createNetworkConfig(ChainId.BASE), createNetworkConfig(ChainId.BASE_SEPOLIA), createNetworkConfig(ChainId.HOMEVERSE), createNetworkConfig(ChainId.HOMEVERSE_TESTNET), createNetworkConfig(ChainId.XAI), createNetworkConfig(ChainId.XAI_SEPOLIA), createNetworkConfig(ChainId.AVALANCHE_TESTNET), createNetworkConfig(ChainId.ASTAR_ZKEVM), createNetworkConfig(ChainId.ASTAR_ZKYOTO), createNetworkConfig(ChainId.XR_SEPOLIA), createNetworkConfig(ChainId.B3_SEPOLIA), createNetworkConfig(ChainId.APECHAIN_TESTNET), createNetworkConfig(ChainId.BLAST), createNetworkConfig(ChainId.BLAST_SEPOLIA), createNetworkConfig(ChainId.TELOS), createNetworkConfig(ChainId.BORNE_TESTNET), createNetworkConfig(ChainId.SKALE_NEBULA_TESTNET), ...hardhatNetworks]);
class JsonRpcRouter {
constructor(middlewares, sender) {
this.sender = void 0;
Expand Down Expand Up @@ -56981,7 +56999,7 @@ var index$6 = /* @__PURE__ */ Object.freeze({
coderFor,
genericCoderFor
});
const VERSION$1 = "2.0.1";
const VERSION$1 = "2.0.6";
const allVersions = [v1, v2];
const core$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
Expand Down Expand Up @@ -62328,7 +62346,7 @@ function recreateBigNumbers(object2) {
for (const key of Object.keys(object2)) {
const val = object2[key];
if (val._isBigNumber === true && val._hex !== void 0 && typeof val._hex === "string" && val._hex.length !== "") {
result[key] = BigInt(val);
result[key] = BigInt(val._hex);
} else if (Array.isArray(val)) {
result[key] = val.map((v3) => recreateBigNumbers(v3));
} else if (typeof val === "object" && val !== null) {
Expand Down Expand Up @@ -67107,7 +67125,7 @@ var webrpcErrorByCode$1 = {
};
var DatabeatRpcClient = class extends Databeat {
constructor(hostname, auth2) {
const globalFetch = typeof global$1 === "object" ? global$1.fetch.bind(global$1) : window.fetch.bind(window);
const globalFetch = globalThis.fetch.bind(globalThis);
super(hostname.endsWith("/") ? hostname.slice(0, -1) : hostname, globalFetch);
__publicField(this, "_globalFetch");
__publicField(this, "_fetch", (input2, init2) => {
Expand Down Expand Up @@ -67438,6 +67456,9 @@ var getDefaultProps = () => {
if (params.get("gclid") && params.get("gclid") !== "") {
props["gclid"] = params.get("gclid") || "";
}
if (params.get("wbraid") && params.get("wbraid") !== "") {
props["wbraid"] = params.get("wbraid") || "";
}
return props;
};
var storageKey = "_dbeat";
Expand Down Expand Up @@ -75881,7 +75902,7 @@ async function call(client2, args) {
return { data: response };
} catch (err) {
const data2 = getRevertErrorData(err);
const { offchainLookup, offchainLookupSignature } = await __vitePreload(() => import("./ccip-BpL4z2WI.js"), true ? [] : void 0, import.meta.url);
const { offchainLookup, offchainLookupSignature } = await __vitePreload(() => import("./ccip-DWFRyvlP.js"), true ? [] : void 0, import.meta.url);
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
return { data: await offchainLookup(client2, { data: data2, to }) };
throw getCallError(err, {
Expand Down Expand Up @@ -94858,7 +94879,25 @@ class SequenceWaaS {
throw e2;
}
}
async updateSessionStatus() {
if (await this.waas.isSignedIn() === false) {
return;
}
try {
await this.listSessions();
} catch (error) {
if (error instanceof WebrpcEndpointError7 && error.cause === "session invalid or not found") {
await this.dropSession({
sessionId: await this.waas.getSessionId(),
strict: false
});
} else {
throw error;
}
}
}
async isSignedIn() {
await this.updateSessionStatus();
return this.waas.isSignedIn();
}
signIn(creds, sessionName) {
Expand Down Expand Up @@ -97519,7 +97558,7 @@ function version4(parameters) {
},
async getProvider() {
if (!walletProvider) {
const { default: CoinbaseSDK_ } = await __vitePreload(() => import("./index-CKTa-Wqf.js").then((n2) => n2.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const { default: CoinbaseSDK_ } = await __vitePreload(() => import("./index-DhrVQl1N.js").then((n2) => n2.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const CoinbaseSDK = (() => {
if (typeof CoinbaseSDK_ !== "function" && typeof CoinbaseSDK_.default === "function")
return CoinbaseSDK_.default;
Expand Down Expand Up @@ -97696,7 +97735,7 @@ function version3(parameters) {
async getProvider() {
var _a2;
if (!walletProvider) {
const { default: SDK_ } = await __vitePreload(() => import("./index--cVnnVXZ.js").then((n2) => n2.i), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url);
const { default: SDK_ } = await __vitePreload(() => import("./index-CyfTH7LX.js").then((n2) => n2.i), true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url);
let SDK;
if (typeof SDK_ !== "function" && typeof SDK_.default === "function")
SDK = SDK_.default;
Expand Down Expand Up @@ -97930,7 +97969,7 @@ function walletConnect$1(parameters) {
const optionalChains = config2.chains.map((x2) => x2.id);
if (!optionalChains.length)
return;
const { EthereumProvider } = await __vitePreload(() => import("./index.es-DEYs7vDC.js"), true ? __vite__mapDeps([4,2]) : void 0, import.meta.url);
const { EthereumProvider } = await __vitePreload(() => import("./index.es-C_0Ilmtr.js"), true ? __vite__mapDeps([4,2]) : void 0, import.meta.url);
return await EthereumProvider.init({
...parameters,
disableProviderPing: true,
Expand Down Expand Up @@ -98874,7 +98913,7 @@ const TransactionSuccess = () => {
const nav = useNavigation$1();
const navigation = nav.navigation;
const chainId = ((_a2 = settings == null ? void 0 : settings.creditCardCheckout) == null ? void 0 : _a2.chainId) || ChainId.POLYGON;
const network2 = sequence$1.network.allNetworks.find((n2) => n2.chainId === chainId);
const network2 = allNetworks.find((n2) => n2.chainId === chainId);
reactExports.useEffect(() => {
var _a3, _b3, _c3, _d2;
((_a3 = settings == null ? void 0 : settings.creditCardCheckout) == null ? void 0 : _a3.onSuccess) && ((_b3 = settings == null ? void 0 : settings.creditCardCheckout) == null ? void 0 : _b3.onSuccess(navigation.params.transactionHash, settings == null ? void 0 : settings.creditCardCheckout));
Expand Down Expand Up @@ -109170,7 +109209,7 @@ const queryClient = new QueryClient();
const App = () => {
return /* @__PURE__ */ jsxRuntimeExports$1.jsx(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(KitProvider, { config: kitConfig, children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(KitWalletProvider, { children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(KitCheckoutProvider, { children: /* @__PURE__ */ jsxRuntimeExports$1.jsx("div", { id: "app", children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(ThemeProvider, { root: "#app", scope: "app", theme: "dark", children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(Homepage, {}) }) }) }) }) }) }) });
};
console.log("VERSION:", "1.0.2");
console.log("VERSION:", "1.0.3");
const root = client.createRoot(document.getElementById("root"));
root.render(
/* @__PURE__ */ jsxRuntimeExports$1.jsx(React.StrictMode, { children: /* @__PURE__ */ jsxRuntimeExports$1.jsx(App, {}) })
Expand Down
6 changes: 3 additions & 3 deletions assets/index-DzdPNSh6.js → assets/index-CIeoByUV.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const __vite__fileDeps=["./index-JI99EnNo.js","./index-veganpnv.js","./index-B7cGsFOk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-veganpnv.js";
const __vite__fileDeps=["./index-BIe9O6t-.js","./index-BzPqRlsG.js","./index-B7cGsFOk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { _ as __vitePreload } from "./index-BzPqRlsG.js";
const t = Symbol();
const s = Object.getPrototypeOf, c$1 = /* @__PURE__ */ new WeakMap(), l = (e) => e && (c$1.has(e) ? c$1.get(e) : s(e) === Object.prototype || s(e) === Array.prototype), y$1 = (e) => l(e) && e[t] || null, h = (e, t2 = true) => {
c$1.set(e, t2);
Expand Down Expand Up @@ -487,7 +487,7 @@ class d {
}
async initUi() {
if (typeof window < "u") {
await __vitePreload(() => import("./index-JI99EnNo.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
await __vitePreload(() => import("./index-BIe9O6t-.js"), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const e = document.createElement("wcm-modal");
document.body.insertAdjacentElement("beforeend", e), p.setIsUiLoaded(true);
}
Expand Down
6 changes: 3 additions & 3 deletions assets/index--cVnnVXZ.js → assets/index-CyfTH7LX.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-veganpnv.js";
import { c as require$$0$1, s as sha_jsExports, a as require$$1$1, b as require$$2, r as require$$0$2, j as js } from "./hooks.module-Gt_UBnF4.js";
import { e as eventsExports } from "./___vite-browser-external_commonjs-proxy-5e59GdWQ.js";
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, p as process$1, t as tslib_es6, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-BzPqRlsG.js";
import { c as require$$0$1, s as sha_jsExports, a as require$$1$1, b as require$$2, r as require$$0$2, j as js } from "./hooks.module-B0yPPEfe.js";
import { e as eventsExports } from "./___vite-browser-external_commonjs-proxy-BBNlhQUO.js";
function _mergeNamespaces(n, m) {
for (var i = 0; i < m.length; i++) {
const e = m[i];
Expand Down
4 changes: 2 additions & 2 deletions assets/index-CKTa-Wqf.js → assets/index-DhrVQl1N.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-veganpnv.js";
import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-Gt_UBnF4.js";
import { B as Buffer, c as commonjsGlobal, e as eventemitter3Exports, g as getDefaultExportFromCjs } from "./index-BzPqRlsG.js";
import { j as js, s as sha_jsExports, r as require$$0, a as require$$1, b as require$$2 } from "./hooks.module-B0yPPEfe.js";
function _mergeNamespaces(n, m) {
for (var i = 0; i < m.length; i++) {
const e = m[i];
Expand Down
8 changes: 4 additions & 4 deletions assets/index.es-DEYs7vDC.js → assets/index.es-C_0Ilmtr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const __vite__fileDeps=["./index-DzdPNSh6.js","./index-veganpnv.js","./index-B7cGsFOk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { p as process$1, r as require$$0$1, b as global, B as Buffer, g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, _ as __vitePreload } from "./index-veganpnv.js";
import { r as require$$3, e as eventsExports, W as Wg } from "./___vite-browser-external_commonjs-proxy-5e59GdWQ.js";
const __vite__fileDeps=["./index-CIeoByUV.js","./index-BzPqRlsG.js","./index-B7cGsFOk.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import { p as process$1, r as require$$0$1, b as global, B as Buffer, g as getDefaultExportFromCjs, c as commonjsGlobal, a as getAugmentedNamespace, _ as __vitePreload } from "./index-BzPqRlsG.js";
import { r as require$$3, e as eventsExports, W as Wg } from "./___vite-browser-external_commonjs-proxy-BBNlhQUO.js";
var __spreadArray = function(to2, from2, pack) {
if (pack || arguments.length === 2)
for (var i3 = 0, l2 = from2.length, ar2; i3 < l2; i3++) {
Expand Down Expand Up @@ -19748,7 +19748,7 @@ class C {
if (this.rpc = this.getRpcConfig(t), this.chainId = this.rpc.chains.length ? m2(this.rpc.chains) : m2(this.rpc.optionalChains), this.signer = await hv.init({ projectId: this.rpc.projectId, metadata: this.rpc.metadata, disableProviderPing: t.disableProviderPing, relayUrl: t.relayUrl, storageOptions: t.storageOptions }), this.registerEventListeners(), await this.loadPersistedSession(), this.rpc.showQrModal) {
let s2;
try {
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-DzdPNSh6.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
const { WalletConnectModal: i3 } = await __vitePreload(() => import("./index-CIeoByUV.js").then((n4) => n4.i), true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
s2 = i3;
} catch {
throw new Error("To use QR modal, please install @walletconnect/modal package");
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Sequence Kit Demo</title>
<script type="module" crossorigin src="./assets/index-veganpnv.js"></script>
<script type="module" crossorigin src="./assets/index-BzPqRlsG.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-B7cGsFOk.css">
</head>
<body>
Expand Down

0 comments on commit f57a69b

Please sign in to comment.