@flapsdk/vault-runtime 0.1.44-next.0 → 0.1.44

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/README.md CHANGED
@@ -4,9 +4,11 @@ Generated from `flap-vault-ui-template`.
4
4
 
5
5
 
6
6
 
7
+
8
+
7
9
  This package is the shared runtime surface that local preview, Artifact Workbench, and `flap.sh` should agree on.
8
10
 
9
- Package version: `0.1.44-next.0`. Source commit: `73389f0d53c53433cfb5ac6cf6c1ec0022e21dde`.
11
+ Package version: `0.1.44`. Source commit: `59b24eabed0c77a4793b421c7a44c26410d7bfdc`.
10
12
 
11
13
  ## Exports
12
14
 
@@ -17,13 +19,6 @@ Package version: `0.1.44-next.0`. Source commit: `73389f0d53c53433cfb5ac6cf6c1ec
17
19
 
18
20
  See `runtime-contract.json` for the machine-readable subpath contract.
19
21
 
20
- ## Presale quote approvals
21
-
22
- Standalone Mini Apps can use `sdk.approveQuote({ pool, amount })` with a genuine
23
- Launcher handle under a reviewed `walletContracts[].presaleApproval` policy.
24
- The host must provision the policy to resolve and authorize the pool's ERC20 quote
25
- token. This feature is advertised by `sdkFeatures.presaleApproval = 1`.
26
-
27
22
  ## Mini App subroutes
28
23
 
29
24
  Standalone Mini Apps use `useMiniAppRouter()` from `./sdk`. It returns
@@ -38,48 +33,62 @@ identify the feature. Hosts inject a `router` into `MiniAppRuntimeProvider`;
38
33
  explicitly if the host has not enabled routing. Deploy supporting hosts before
39
34
  accepting new route-dependent artifacts; source-package provenance is unchanged.
40
35
 
41
- ## Street maps
36
+ ## FSI queries
37
+
38
+ Declare the intended FSI root in `manifest.endpoints` to use
39
+ `sdk.readFsi(relativePath, params)`. Supported roots, in selection order, are
40
+ `https://fsi.taxed.fun/fsi/v1`, `https://bsc-debug.butterfly.army/fsi/v1`
41
+ and BSC Testnet `https://bsc-testnet-debug.butterfly.army/fsi/v1`.
42
+ When multiple roots are declared, this order applies regardless of array order
43
+ or `chainId`. Testnet packages should declare only the testnet FSI root.
44
+ Failed requests never fall back to another host. Exact reviewed root declarations,
45
+ HTTPS origin/path boundaries, GET, credential and redirect restrictions remain.
46
+ Hosts and Workbench must deploy a release containing the selected endpoint policy
47
+ and synchronize the Workbench source checker before accepting those packages.
48
+
49
+ ## Transaction confirmation
50
+
51
+ `waitForTx(hash)` polls the original transaction hash through the public client selected for that operation. It queries immediately, then every 2 seconds after a pending or transient-error response, with an 8-second deadline per query and a 180-second total deadline. It returns the original success/reverted status; applications must check `status === "success"` before showing success or refreshing as successful. A timeout means the result is unknown: retain the hash and reconcile it before offering another transaction. Polling does not follow sped-up or cancelled replacement transactions; the original hash can time out. The public API and receipt fields remain compatible.
42
52
 
43
- The `./ui` export `FlapStreetMap` requires `mapCapabilities: ["street-map-v1"]` and `uiFeatures.streetMap = 1`. Enhanced map artifacts also require the immutable `STREET_MAP_PRESENTATION_V1 = 1` UI export and `uiFeatures.streetMapPresentation = 1`; Workbench records this requirement so older hosts stop before importing an unsupported artifact. Existing basic map artifacts remain compatible. Hosts copy the packaged `runtime-map/maplibre-6.15.0-worker.mjs` to the exact same-origin path `/runtime-map/maplibre-6.15.0-worker.mjs`. The fixed MapLibre 6.15.0 engine is lazy bundled; there is no CDN loader, arbitrary style/URL/Worker/HTML API or automatic GPS request. The component supports four rarity colors (optional bounded hex palette), gray cooldown/expiry states, city bubbles through zoom 7.2, store labels above zoom 10.5, separate event points/countdowns, selection, a React details slot, a pulsing user marker and a range circle in meters. Navigation/metric scale are opt-in. Pass existing GPS coordinates, localized control labels and a list fallback. Timestamps are epoch milliseconds; client distance/range/time are display estimates, never claim authorization. Points are capped at 2000, zoom at 3..18, radius at 100000 meters. Fixed OpenFreeMap dark resources are requested without credentials; the provider sees the client IP and viewport. This direct-resource policy does not isolate redirects or guarantee upstream availability. WebGL2/Worker failure and a 15-second startup timeout show the fallback. Map-owned canvas/listeners/observers/clock are released on unmount; MapLibre retains its page-wide shared pool, capped at two Workers, for reuse. Preserve the package Worker license and fixed attribution links. Old UI remains compatible; deployed 0.1.39 hosts do not gain this testing feature. See template docs/street-map.md and docs/street-map.zh-CN.md.
53
+ ## Standalone resolved write constraints
44
54
 
45
- ## Location and motion sensors
55
+ Standalone Mini Apps can use `walletContracts[].resolvedContracts[].writeConstraints`
56
+ to declare exact lengths for top-level ABI `bytes` inputs. Each rule identifies
57
+ an allowed function selector and lists its constrained input positions and lengths.
58
+ Pin the resolver root and resolved target code hashes. A payable rule can require
59
+ an exact `valueWei` within the existing cap. The SDK checks the declared constraints
60
+ before simulation and wallet submission.
46
61
 
47
- This release adds `useGeolocation()`, `useDeviceMotion()` and
48
- `useDeviceOrientation()` to `./sdk`, with `DEVICE_SENSORS_VERSION = 1`
49
- and `sdkFeatures.deviceSensors = 1`. Declare only the channels used in
50
- `manifest.deviceCapabilities`: `location`, `motion`, `orientation`.
51
- Vault UI can also use `useFlapSdk().device`; standalone Mini Apps can use
52
- `useMiniAppSdk().device`. Each channel provides `getSnapshot()`,
53
- `subscribe(listener)`, `request(options?)` and `stop()`.
62
+ The supporting runtime advertises `sdkFeatures.resolvedWriteConstraints = 1`.
63
+ Deploy the matching Workbench checker and host runtime before accepting manifests
64
+ that use the field. See the [Mini App wallet guide](https://github.com/flap-sh/flap-vault-component-template/blob/main/docs/mini-app-wallet.md#fixed-length-inputs-declared-as-bytes).
65
+
66
+ ## Presale quote approvals
54
67
 
55
- Call `request()` directly from a user click. Mounting or subscribing never
56
- requests permission or starts collection. Permission and actual data are
57
- separate: use readings only after `status === "active"` and non-null data.
58
- Handle refusal, unsupported/insecure environments, policy restrictions,
59
- timeout, missing data and background pauses with usable click/touch/manual
60
- fallbacks. Location is a system estimate; inspect accuracy and timestamp.
68
+ Standalone Mini Apps can use `sdk.approveQuote({ pool, amount })` with a genuine
69
+ Launcher handle under a reviewed `walletContracts[].presaleApproval` policy.
70
+ The host must provision the policy to resolve and authorize the pool's ERC20 quote
71
+ token. This feature is advertised by `sdkFeatures.presaleApproval = 1`.
61
72
 
62
- The `./host` entry exports `createBrowserDeviceSensors` and
63
- `createMockDeviceSensors`; providers accept a host-owned `deviceSensors`
64
- adapter and scope it to the declaration. Mock values are explicitly marked.
65
- Components cannot create adapters or call raw browser permission APIs.
66
- Old manifests without device declarations retain their behavior and do not
67
- request permissions. Phone and wallet support still requires real-device tests.
73
+ ## BNB Chain gas overrides
68
74
 
69
- This package is an explicit next-channel testing release. Install its exact version; stable latest and deployed hosts are not upgraded by this publication.
75
+ Explicit contract-write gas overrides can be up to 15,000,000 on BNB Chain
76
+ mainnet and testnet. Other chains retain the existing 5,000,000 limit.
70
77
 
78
+ ## taxed.fun source-checker compatibility
71
79
 
72
- ## FSI queries
80
+ The official template source for stable `0.1.40` adds reviewed native-fetch
81
+ queries on every valid strict `taxed.fun` subdomain, including multi-level
82
+ subdomains. Hosts and paths must stay literal, query values must use the global
83
+ `encodeURIComponent`, and manifest endpoint declarations and safe GET options
84
+ remain required. The apex domain, dynamic hosts/paths and unsafe options do not
85
+ gain permission. Existing `sdk.readFsi` routing and the SDK exports are unchanged.
73
86
 
74
- Declare `https://fsi.taxed.fun/fsi/v1` in `manifest.endpoints` to use
75
- `sdk.readFsi(relativePath, params)` with the current FSI host. The legacy
76
- `https://bsc-debug.butterfly.army/fsi/v1` prefix remains supported. Only
77
- declaring the legacy prefix preserves legacy routing; declaring both selects
78
- the current host regardless of array order. Failed requests never fall back
79
- to the other host. Both require an exact reviewed root declaration and retain
80
- the HTTPS origin, path, GET, credential and redirect restrictions.
81
- Hosts and Workbench must deploy matching runtime and checker policies before
82
- accepting source packages that declare the new endpoint.
87
+ The source checker is not shipped in this npm package. Deploy the matching
88
+ template and Workbench checker policies separately; upgrading this package alone
89
+ does not enable the new native-fetch policy or approve an endpoint.
90
+ See the [0.1.40 release guide](https://github.com/flap-sh/flap-vault-component-template/blob/main/docs/releases/0.1.40.md)
91
+ and [request policy](https://github.com/flap-sh/flap-vault-component-template/blob/main/docs/taxed-endpoints.md).
83
92
 
84
93
  ## Shared Vault UI and Mini App v2
85
94
 
@@ -1,43 +1,130 @@
1
- import { unavailableDeviceSensors, scopeDeviceSensors, createBrowserDeviceSensors, createVaultRuntimeContext, chainLabelForChain, readContractEventsInBlockRanges, resolveSafeContractWriteFeeOverrides, createIpfsTextReader, readFsiJson, createFlapChainSdk } from './chunk-BIRAO6LU.js';
1
+ import { createVaultRuntimeContext, chainLabelForChain, readContractEventsInBlockRanges, resolveSafeContractWriteFeeOverrides, createIpfsTextReader, readFsiJson, createFlapChainSdk } from './chunk-SFUJ26PT.js';
2
2
  import { createLocalMediaUploader, createLocalNftMetadataReader, vaultV2NftAbi, nftTokenUriAbi } from './chunk-WN4MIMCY.js';
3
3
  import { fetchOracleJson } from './chunk-JLI25XFB.js';
4
- import { RuntimeContext, Alert, MiniAppContext } from './chunk-5DU4W4CK.js';
4
+ import { RuntimeContext, Alert } from './chunk-ZH7JPICS.js';
5
5
  import { isValidAddress, ZERO_ADDRESS } from './chunk-B4WKI3EW.js';
6
- import { useMemo, useEffect, useRef, useState, useCallback, useSyncExternalStore, useContext } from 'react';
6
+ import { useRef, useMemo, useState, useCallback, useEffect } from 'react';
7
7
  import { useConfig, useAccount, useChainId, useConnect, useDisconnect, useSwitchChain, usePublicClient, useWalletClient, useBalance } from 'wagmi';
8
8
  import { switchChain, disconnect, getAccount, getPublicClient, getWalletClient } from 'wagmi/actions';
9
9
  import { toFunctionSelector, parseAbi, encodeFunctionData, decodeFunctionResult, formatUnits, decodeAbiParameters, decodeEventLog, getContractAddress, concatHex, encodeAbiParameters, keccak256 } from 'viem';
10
10
  import { jsxs, jsx } from 'react/jsx-runtime';
11
11
 
12
- var unavailable = unavailableDeviceSensors();
13
- function useRuntimeDeviceSensors(manifest, injected) {
14
- const scopeKey = JSON.stringify([manifest.artifactId, manifest.deviceCapabilities ?? []]);
15
- const device = useMemo(() => {
16
- const [, capabilities] = JSON.parse(scopeKey);
17
- return scopeDeviceSensors(injected ?? createBrowserDeviceSensors({ capabilities }), capabilities);
18
- }, [scopeKey, injected]);
19
- useEffect(() => () => device.dispose(), [device]);
20
- return device;
21
- }
22
- function useDeviceSensors() {
23
- const vault = useContext(RuntimeContext), app = useContext(MiniAppContext);
24
- const runtime = app ?? vault;
25
- if (!runtime) throw new Error("Device sensors require a Flap runtime provider.");
26
- return runtime.device ?? unavailable;
27
- }
28
- function useSensor(sensor, options) {
29
- const state = useSyncExternalStore(sensor.subscribe, sensor.getSnapshot, sensor.getSnapshot);
30
- return { ...state, request: (overrides) => sensor.request({ ...options, ...overrides }), stop: sensor.stop };
12
+ // src/sdk/transactionReceipt.ts
13
+ var TransactionReceiptPollingTimeoutError = class extends Error {
14
+ constructor(hash2, lastError) {
15
+ super(`Transaction ${hash2} could not be confirmed before the deadline. Its result is unknown; check this hash before sending another transaction.`);
16
+ this.name = "TransactionReceiptPollingTimeoutError";
17
+ this.hash = hash2;
18
+ this.lastError = lastError;
19
+ }
20
+ };
21
+ var InvalidTransactionReceiptError = class extends Error {
22
+ constructor(hash2) {
23
+ super("The public RPC returned an invalid or mismatched transaction receipt.");
24
+ this.name = "InvalidTransactionReceiptError";
25
+ this.hash = hash2;
26
+ }
27
+ };
28
+ var TransactionReceiptRequestTimeoutError = class extends Error {
29
+ constructor() {
30
+ super("The public RPC receipt request exceeded its deadline.");
31
+ this.name = "TransactionReceiptRequestTimeoutError";
32
+ }
33
+ };
34
+ function assertTimer(value, name) {
35
+ if (!Number.isInteger(value) || value < 1 || value > 2147483647) {
36
+ throw new Error(`${name} must be a positive timer duration in milliseconds.`);
37
+ }
31
38
  }
32
- function useGeolocation(options) {
33
- return useSensor(useDeviceSensors().location, options);
39
+ function isPermanentRpcError(error) {
40
+ const seen = /* @__PURE__ */ new Set();
41
+ let current = error;
42
+ for (let depth = 0; depth < 8 && current && typeof current === "object" && !seen.has(current); depth += 1) {
43
+ seen.add(current);
44
+ const item = current;
45
+ if (item.code === -32600 || item.code === -32601 || item.code === -32602 || item.name === "InvalidParamsRpcError" || item.name === "InvalidRequestRpcError" || item.name === "MethodNotFoundRpcError") return true;
46
+ current = item.cause;
47
+ }
48
+ return false;
34
49
  }
35
- function useDeviceMotion(options) {
36
- return useSensor(useDeviceSensors().motion, options);
50
+ function validateReceipt(receipt, hash2) {
51
+ if (!receipt || typeof receipt !== "object") throw new InvalidTransactionReceiptError(hash2);
52
+ const item = receipt;
53
+ if (typeof item.transactionHash !== "string" || !/^0x[\da-f]{64}$/i.test(item.transactionHash) || item.transactionHash.toLowerCase() !== hash2.toLowerCase() || item.status !== "success" && item.status !== "reverted" || typeof item.blockNumber !== "bigint" || item.blockNumber < 0n || !Array.isArray(item.logs)) throw new InvalidTransactionReceiptError(hash2);
54
+ return receipt;
37
55
  }
38
- function useDeviceOrientation(options) {
39
- return useSensor(useDeviceSensors().orientation, options);
56
+ function pollTransactionReceipt(client, hash2, options = {}) {
57
+ const { timeout = 18e4, pollingInterval = 2e3, requestTimeout = 8e3 } = options;
58
+ if (typeof hash2 !== "string" || !/^0x[\da-f]{64}$/i.test(hash2)) return Promise.reject(new Error("A valid 32-byte transaction hash is required."));
59
+ if (!client || typeof client.getTransactionReceipt !== "function") return Promise.reject(new Error("A public client with getTransactionReceipt is required."));
60
+ try {
61
+ assertTimer(timeout, "timeout");
62
+ assertTimer(pollingInterval, "pollingInterval");
63
+ assertTimer(requestTimeout, "requestTimeout");
64
+ } catch (error) {
65
+ return Promise.reject(error);
66
+ }
67
+ return new Promise((resolve, reject) => {
68
+ let active = true;
69
+ let lastError;
70
+ let pollTimer;
71
+ let requestTimer;
72
+ const cleanup = () => {
73
+ active = false;
74
+ clearTimeout(deadlineTimer);
75
+ clearTimeout(pollTimer);
76
+ clearTimeout(requestTimer);
77
+ };
78
+ const fail = (error) => {
79
+ if (!active) return;
80
+ cleanup();
81
+ reject(error);
82
+ };
83
+ const deadlineTimer = setTimeout(() => fail(new TransactionReceiptPollingTimeoutError(hash2, lastError)), timeout);
84
+ const schedule = () => {
85
+ if (active) pollTimer = setTimeout(attempt, pollingInterval);
86
+ };
87
+ const attempt = () => {
88
+ if (!active) return;
89
+ let settled = false;
90
+ const finishRequest = () => {
91
+ if (!active || settled) return false;
92
+ settled = true;
93
+ clearTimeout(requestTimer);
94
+ requestTimer = void 0;
95
+ return true;
96
+ };
97
+ const onError = (error) => {
98
+ if (!finishRequest()) return;
99
+ lastError = error;
100
+ if (isPermanentRpcError(error)) fail(error);
101
+ else schedule();
102
+ };
103
+ requestTimer = setTimeout(() => onError(new TransactionReceiptRequestTimeoutError()), requestTimeout);
104
+ try {
105
+ Promise.resolve(client.getTransactionReceipt({ hash: hash2 })).then((receipt) => {
106
+ if (!finishRequest()) return;
107
+ if (receipt === null) {
108
+ schedule();
109
+ return;
110
+ }
111
+ try {
112
+ const valid = validateReceipt(receipt, hash2);
113
+ cleanup();
114
+ resolve(valid);
115
+ } catch (error) {
116
+ fail(error);
117
+ }
118
+ }, onError);
119
+ } catch (error) {
120
+ onError(error);
121
+ }
122
+ };
123
+ attempt();
124
+ });
40
125
  }
126
+
127
+ // src/sdk/useFlapWalletRuntime.ts
41
128
  var defaultUploader = createLocalMediaUploader();
42
129
  function useFlapWalletRuntime({ connect, readOnly = false, mediaUploader = defaultUploader, resolvePresaleApproval }) {
43
130
  const config = useConfig();
@@ -86,7 +173,7 @@ function useFlapWalletRuntime({ connect, readOnly = false, mediaUploader = defau
86
173
  writeContract: async (chainId, request) => (await walletClient(chainId, request.account)).writeContract(request),
87
174
  sendTransaction: async (chainId, request) => (await walletClient(chainId, request.account)).sendTransaction(request),
88
175
  waitForTx: async (chainId, hash2) => {
89
- const receipt = await publicClient(chainId).waitForTransactionReceipt({ hash: hash2 });
176
+ const receipt = await pollTransactionReceipt(publicClient(chainId), hash2);
90
177
  return { hash: receipt.transactionHash, status: receipt.status, blockNumber: receipt.blockNumber, logs: receipt.logs };
91
178
  },
92
179
  getCode: (chainId, address2) => publicClient(chainId).getCode({ address: address2 }),
@@ -514,8 +601,7 @@ function getPreviewOracleEndpoint(extraConfig, oracleId) {
514
601
  const endpoint = oracleEndpoints[oracleId];
515
602
  return typeof endpoint === "string" ? endpoint : void 0;
516
603
  }
517
- function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtimeOverrides, hostRuntimeResult, locale = "en", oracleReader, nftMetadataReader, mediaUploader, deviceSensors, nftAccountWithdrawalPolicies = EMPTY_NFT_ACCOUNT_POLICIES, contractTargetPolicy = "strict" }) {
518
- const device = useRuntimeDeviceSensors(manifest, deviceSensors);
604
+ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtimeOverrides, hostRuntimeResult, locale = "en", oracleReader, nftMetadataReader, mediaUploader, nftAccountWithdrawalPolicies = EMPTY_NFT_ACCOUNT_POLICIES, contractTargetPolicy = "strict" }) {
519
605
  const [version, setVersion] = useState(0);
520
606
  const [messages, setMessages] = useState([]);
521
607
  const toastTimersRef = useRef(/* @__PURE__ */ new Map());
@@ -743,7 +829,7 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
743
829
  const contract = input.contract;
744
830
  const prepared = contractRuntime.snapshot(input);
745
831
  if (!prepared.record) prepared.request = snapshotGenericContractWrite(prepared.request);
746
- const feeOverrides = await resolveSafeContractWriteFeeOverrides(prepared.request, getGasPrice);
832
+ const feeOverrides = await resolveSafeContractWriteFeeOverrides(prepared.request, getGasPrice, runtimeContext.chainId);
747
833
  const checked = await contractRuntime.validate(prepared, true);
748
834
  const request = checked.request;
749
835
  const simulation = await publicClient.simulateContract({
@@ -759,7 +845,7 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
759
845
  const resultRequest = prepared.record ? { ...request, address: void 0, contract } : request;
760
846
  return { request: resultRequest, result: simulation.result };
761
847
  },
762
- [assertWalletWriteReady, getGasPrice, publicClient, contractRuntime]
848
+ [assertWalletWriteReady, getGasPrice, publicClient, contractRuntime, runtimeContext.chainId]
763
849
  );
764
850
  const writeContract = useCallback(
765
851
  async (input) => {
@@ -767,7 +853,7 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
767
853
  if (!walletClient || !publicClient || !contractRuntime) throw new Error("resolved-contract/client-unavailable");
768
854
  const prepared = contractRuntime.snapshot(input);
769
855
  if (!prepared.record) prepared.request = snapshotGenericContractWrite(prepared.request);
770
- const feeOverrides = await resolveSafeContractWriteFeeOverrides(prepared.request, getGasPrice);
856
+ const feeOverrides = await resolveSafeContractWriteFeeOverrides(prepared.request, getGasPrice, runtimeContext.chainId);
771
857
  let checked = await contractRuntime.validate(prepared, true);
772
858
  if (prepared.record) {
773
859
  await publicClient.simulateContract({
@@ -796,13 +882,13 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
796
882
  });
797
883
  return hash2;
798
884
  },
799
- [assertWalletWriteReady, getGasPrice, walletClient, publicClient, contractRuntime]
885
+ [assertWalletWriteReady, getGasPrice, walletClient, publicClient, contractRuntime, runtimeContext.chainId]
800
886
  );
801
887
  const waitForTx = useCallback(
802
888
  async (hash2) => {
803
889
  if (!publicClient) throw new Error("Transaction receipt requires a public client.");
804
- const receipt = await publicClient.waitForTransactionReceipt({ hash: hash2 });
805
- return { hash: hash2, status: receipt.status === "success" ? "success" : "reverted" };
890
+ const receipt = await pollTransactionReceipt(publicClient, hash2);
891
+ return { hash: hash2, status: receipt.status };
806
892
  },
807
893
  [publicClient]
808
894
  );
@@ -959,7 +1045,6 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
959
1045
  }, { chainId, manifest, writableChains: [runtimeContext.chainId], i18n: i18nApi, notify, readIpfsText }), [chainRuntime, manifest, runtimeContext.chainId, i18nApi, notify, readIpfsText, simulateContract, writeContract]);
960
1046
  const sdk = useMemo(
961
1047
  () => ({
962
- device,
963
1048
  forChain,
964
1049
  context: componentContext,
965
1050
  i18n: i18nApi,
@@ -984,7 +1069,7 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
984
1069
  refetchNonce: version,
985
1070
  openExplorerTx
986
1071
  }),
987
- [device, forChain, getBlockNumber, getContractEvents, getGasPrice, i18nApi, notify, openExplorerTx, resolveContract, readContract, readNftMetadata, readOracle, readFsi, readIpfsText, refetch, componentContext, simulateContract, uploadImage, uploadText, version, waitForTx, wallet, withdrawNftAccount2, writeContract]
1072
+ [forChain, getBlockNumber, getContractEvents, getGasPrice, i18nApi, notify, openExplorerTx, resolveContract, readContract, readNftMetadata, readOracle, readFsi, readIpfsText, refetch, componentContext, simulateContract, uploadImage, uploadText, version, waitForTx, wallet, withdrawNftAccount2, writeContract]
988
1073
  );
989
1074
  return /* @__PURE__ */ jsxs(RuntimeContext.Provider, { value: sdk, children: [
990
1075
  children,
@@ -999,6 +1084,6 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
999
1084
  ] });
1000
1085
  }
1001
1086
 
1002
- export { VaultRuntimeProvider, useDeviceMotion, useDeviceOrientation, useFlapWalletRuntime, useGeolocation, useRuntimeDeviceSensors };
1003
- //# sourceMappingURL=chunk-ZLF6YGWQ.js.map
1004
- //# sourceMappingURL=chunk-ZLF6YGWQ.js.map
1087
+ export { VaultRuntimeProvider, useFlapWalletRuntime };
1088
+ //# sourceMappingURL=chunk-LSLJIASB.js.map
1089
+ //# sourceMappingURL=chunk-LSLJIASB.js.map