@flapsdk/vault-runtime 0.1.34 → 0.1.36-next.0
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/chunk-A3ER7XYN.js +408 -0
- package/chunk-A3ER7XYN.js.map +1 -0
- package/{chunk-22KTLOYH.js → chunk-FWYBGHBX.js} +17 -4
- package/chunk-FWYBGHBX.js.map +1 -0
- package/{chunk-CXCG5MGE.js → chunk-MLAOJT5Q.js} +138 -117
- package/chunk-MLAOJT5Q.js.map +1 -0
- package/{chunk-JVZ4TFPY.js → chunk-V7U4QTMT.js} +100 -86
- package/chunk-V7U4QTMT.js.map +1 -0
- package/host-client.d.mts +9 -2
- package/host-client.js +3 -3
- package/host.d.mts +5 -5
- package/host.js +4 -4
- package/{hostRuntimeConfig-Dl9t_R9u.d.mts → hostRuntimeConfig-DibvcxHE.d.mts} +1 -1
- package/{mpegts-6MFVUHRP.js → mpegts-J2J6JTD7.js} +6 -6
- package/{mpegts-6MFVUHRP.js.map → mpegts-J2J6JTD7.js.map} +1 -1
- package/package.json +4 -3
- package/runtime-contract.json +2 -1
- package/sdk.d.mts +40 -4
- package/sdk.js +37 -6
- package/sdk.js.map +1 -1
- package/server.d.mts +3 -3
- package/{txError-uPZICnzz.d.mts → txError-OBuRV8xN.d.mts} +15 -2
- package/{types-_ifYbddY.d.mts → types-DUZWZ3mC.d.mts} +98 -2
- package/ui.d.mts +1 -1
- package/ui.js +1 -1
- package/chunk-22KTLOYH.js.map +0 -1
- package/chunk-AGLB72HK.js +0 -61
- package/chunk-AGLB72HK.js.map +0 -1
- package/chunk-CXCG5MGE.js.map +0 -1
- package/chunk-JVZ4TFPY.js.map +0 -1
package/host.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as Address,
|
|
2
|
-
export { A as ActionAvailabilityStage, C as ContractEventRequest,
|
|
3
|
-
export { C as CreateTaxInfoHostContextInput, O as OracleReadError, R as ResolveRenderSurfaceInput, a as RuntimeMatchInput, T as TaxVaultHostSnapshot, b as TxErrorKind, V as VaultBindingPolicy, Z as ZERO_ADDRESS, c as buildLocalOracleUrl, d as createLocalOracleReader, e as createTaxInfoHostContext, f as fetchOracleJson, g as fetchProvisionedOracle, h as formatCountdown, i as formatPercentBps, j as formatTokenAmount, k as getTupleField, l as getTxErrorKind, m as handleTxError, n as isActionAvailableForPhase, o as isCustomVaultTaxToken, p as isManifestRuntimeMatch, q as
|
|
1
|
+
import { a as Address, ac as TokenRuntimeSnapshot, ab as TokenMetadataSnapshot, w as HostRuntimeInput, H as HostRuntimeAddresses, B as HostRuntimeResult, f as CreateVaultRuntimeContextInput, au as VaultRuntimeContext } from './types-DUZWZ3mC.mjs';
|
|
2
|
+
export { A as ActionAvailabilityStage, C as ContractEventRequest, d as ContractReadRequest, e as ContractWriteRequest, E as EndpointPolicy, F as FLAP_WALLET_RUNTIME_VERSION, g as FeeMode, h as FlapChainSdk, i as FlapFeeVaultInfo, j as FlapI18n, k as FlapNotify, l as FlapSendTransactionRequest, m as FlapTaxInfo, n as FlapTokenInfo, o as FlapTransactionReceipt, p as FlapVaultPortalInfo, q as FlapVaultSdk, r as FlapWallet, s as FlapWalletAccount, t as FlapWalletRuntime, u as HostRuntimeDataSource, v as HostRuntimeDegradeReason, x as HostRuntimePolicy, y as HostRuntimePresentationFetcher, z as HostRuntimePresentationRequest, D as HostRuntimeSources, G as HostRuntimeStatus, I as HostRuntimeWarning, J as HostTokenPresentation, K as IpfsUploadResult, M as ManifestBindingEntry, L as ManifestExternalContract, N as ManifestNftAccountWithdrawal, O as ManifestResolvedContract, P as MediaUploadOptions, Q as MediaUploadRequest, R as MediaUploader, S as NftAccountWithdrawalPolicy, T as NftAccountWithdrawalReceipt, U as NftAccountWithdrawalRequest, V as NftMetadataAttribute, W as NftMetadataReadRequest, X as NftMetadataReader, Y as NftMetadataReaderRequest, Z as NftMetadataSnapshot, _ as NftMetadataSource, $ as OracleProvision, a0 as OracleReadRequest, a1 as OracleReader, a2 as ParsedResolvedContract, a3 as PaymentToken, a4 as ResolvedContractCheck, a5 as ResolvedContractHandle, a6 as ReviewedBeaconPin, a7 as ReviewedContractPin, a8 as RuntimeOracleRegistry, a9 as SimulateResult, aa as TokenMarketPhase, ad as TxReceipt, ae as VaultArtifactSurface, af as VaultComponentProps, ag as VaultHostContext, ah as VaultLaunchConfigComponentProps, ai as VaultLaunchConfigContext, aj as VaultLaunchConfigResult, ak as VaultLaunchConfigSummaryItem, al as VaultLaunchConfigValues, am as VaultLaunchSchema, an as VaultLaunchSchemaField, ao as VaultManifest, ap as VaultManifestCapability, aq as VaultManifestDisplayTitle, ar as VaultManifestLayout, as as VaultManifestMode, at as VaultRenderSurface, av as VaultRuntimeContextOverrides, aw as VaultRuntimeExtraConfig, ax as createFlapChainSdk, ay as parseAppWalletContracts } from './types-DUZWZ3mC.mjs';
|
|
3
|
+
export { C as CreateTaxInfoHostContextInput, M as MINI_APP_SLUG_PATTERN, O as OracleReadError, R as ResolveRenderSurfaceInput, a as RuntimeMatchInput, T as TaxVaultHostSnapshot, b as TxErrorKind, V as VaultBindingPolicy, Z as ZERO_ADDRESS, c as buildLocalOracleUrl, d as createLocalOracleReader, e as createTaxInfoHostContext, f as fetchOracleJson, g as fetchProvisionedOracle, h as formatCountdown, i as formatPercentBps, j as formatTokenAmount, k as getTupleField, l as getTxErrorKind, m as handleTxError, n as isActionAvailableForPhase, o as isCustomVaultTaxToken, p as isManifestRuntimeMatch, q as isMiniAppSlug, r as isSameAddress, s as isStandaloneMiniApp, t as isValidAddress, u as isVaultBindingMatch, v as normalizeAddress, w as normalizeOnchainPortalTokenVersion, x as parseFeeVaultInfo, y as parsePortalTokenInfo, z as parseTaxTokenInfo, A as parseTokenAmount, B as parseVaultPortalInfo, D as readTaxVaultHostContext, E as resolveFeeMode, F as resolveManifestBinding, G as resolveTaxInfoRenderSurface, H as resolveTokenMarketPhase, I as resolveVaultBinding, J as shortenAddress, K as standardErc20Abi } from './txError-OBuRV8xN.mjs';
|
|
4
4
|
import { PublicClient } from 'viem';
|
|
5
5
|
export { erc20Abi } from 'viem';
|
|
6
|
-
export { L as LocalHostPresentationFetcherOptions, R as ResolveHostPresentationBatchInput, a as ResolveHostPresentationInput, T as TaxVaultHostChainConfig, c as createLocalHostPresentationFetcher, g as getTaxVaultHostChainConfig, l as loadFlapHostTokenPresentation, b as loadFlapHostTokenPresentationBatch } from './hostRuntimeConfig-
|
|
6
|
+
export { L as LocalHostPresentationFetcherOptions, R as ResolveHostPresentationBatchInput, a as ResolveHostPresentationInput, T as TaxVaultHostChainConfig, c as createLocalHostPresentationFetcher, g as getTaxVaultHostChainConfig, l as loadFlapHostTokenPresentation, b as loadFlapHostTokenPresentationBatch } from './hostRuntimeConfig-DibvcxHE.mjs';
|
|
7
7
|
|
|
8
8
|
declare function readErc20TokenMetadata(publicClient: PublicClient, tokenAddress?: Address | null): Promise<TokenMetadataSnapshot | null>;
|
|
9
9
|
declare function loadTokenRuntimeSnapshot(publicClient: PublicClient, chainId: number, tokenAddress?: Address | null): Promise<TokenRuntimeSnapshot | null>;
|
|
@@ -17,4 +17,4 @@ declare function createVaultRuntimeContext(input: CreateVaultRuntimeContextInput
|
|
|
17
17
|
|
|
18
18
|
export { Address, CreateVaultRuntimeContextInput, HostRuntimeAddresses, HostRuntimeInput, HostRuntimeResult, TokenMetadataSnapshot, TokenRuntimeSnapshot, VaultRuntimeContext, chainLabelForChain, createVaultRuntimeContext, explorerForChain, loadTokenRuntimeSnapshot, readErc20TokenMetadata, resolveHostRuntimeAddresses, runHostRuntime };
|
|
19
19
|
|
|
20
|
-
export { VaultRuntimeProvider, type RuntimeProviderProps } from "./host-client.mjs";
|
|
20
|
+
export { VaultRuntimeProvider, useFlapWalletRuntime, type RuntimeProviderProps } from "./host-client.mjs";
|
package/host.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { erc20Abi } from './chunk-
|
|
2
|
-
export { erc20Abi, getTxErrorKind, handleTxError, standardErc20Abi } from './chunk-
|
|
3
|
-
export { chainLabelForChain, createVaultRuntimeContext, explorerForChain } from './chunk-
|
|
1
|
+
import { erc20Abi } from './chunk-FWYBGHBX.js';
|
|
2
|
+
export { MINI_APP_SLUG_PATTERN, erc20Abi, getTxErrorKind, handleTxError, isMiniAppSlug, isStandaloneMiniApp, standardErc20Abi } from './chunk-FWYBGHBX.js';
|
|
3
|
+
export { FLAP_WALLET_RUNTIME_VERSION, chainLabelForChain, createFlapChainSdk, createVaultRuntimeContext, explorerForChain, parseAppWalletContracts } from './chunk-A3ER7XYN.js';
|
|
4
4
|
export { createLocalHostPresentationFetcher, loadFlapHostTokenPresentation, loadFlapHostTokenPresentationBatch } from './chunk-SDCB3RJS.js';
|
|
5
5
|
export { OracleReadError, buildLocalOracleUrl, createLocalOracleReader, fetchOracleJson, fetchProvisionedOracle } from './chunk-JLI25XFB.js';
|
|
6
6
|
import { isValidAddress, ZERO_ADDRESS, parsePortalTokenInfo, normalizeOnchainPortalTokenVersion, createTaxInfoHostContext, parseTaxTokenInfo, parseVaultPortalInfo, readTaxVaultHostContext } from './chunk-B4WKI3EW.js';
|
|
@@ -477,4 +477,4 @@ async function runHostRuntime(input) {
|
|
|
477
477
|
export { loadTokenRuntimeSnapshot, readErc20TokenMetadata, resolveHostRuntimeAddresses, runHostRuntime };
|
|
478
478
|
//# sourceMappingURL=host.js.map
|
|
479
479
|
//# sourceMappingURL=host.js.map
|
|
480
|
-
export { VaultRuntimeProvider } from "./host-client.js";
|
|
480
|
+
export { VaultRuntimeProvider, useFlapWalletRuntime } from "./host-client.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Address,
|
|
1
|
+
import { a as Address, y as HostRuntimePresentationFetcher, J as HostTokenPresentation } from './types-DUZWZ3mC.mjs';
|
|
2
2
|
|
|
3
3
|
interface ResolveHostPresentationInput {
|
|
4
4
|
chainId: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS } from './chunk-BUSYA2B4.js';
|
|
2
2
|
|
|
3
|
-
// ../../../Users/sen/
|
|
3
|
+
// ../../../Users/sen/.codex/worktrees/standalone-mini-apps/flap-vault-component-template/node_modules/mpegts.js/dist/mpegts.js
|
|
4
4
|
var require_mpegts = __commonJS({
|
|
5
|
-
"../../../Users/sen/
|
|
5
|
+
"../../../Users/sen/.codex/worktrees/standalone-mini-apps/flap-vault-component-template/node_modules/mpegts.js/dist/mpegts.js"(exports, module) {
|
|
6
6
|
!(function(e, t) {
|
|
7
7
|
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.mpegts = t() : e.mpegts = t();
|
|
8
8
|
})(exports, function() {
|
|
@@ -5152,13 +5152,13 @@ var require_mpegts = __commonJS({
|
|
|
5152
5152
|
});
|
|
5153
5153
|
}
|
|
5154
5154
|
});
|
|
5155
|
-
var
|
|
5155
|
+
var mpegtsJ2J6JTD7 = require_mpegts();
|
|
5156
5156
|
/*! Bundled license information:
|
|
5157
5157
|
|
|
5158
5158
|
mpegts.js/dist/mpegts.js:
|
|
5159
5159
|
(*! For license information please see mpegts.js.LICENSE.txt *)
|
|
5160
5160
|
*/
|
|
5161
5161
|
|
|
5162
|
-
export {
|
|
5163
|
-
//# sourceMappingURL=mpegts-
|
|
5164
|
-
//# sourceMappingURL=mpegts-
|
|
5162
|
+
export { mpegtsJ2J6JTD7 as default };
|
|
5163
|
+
//# sourceMappingURL=mpegts-J2J6JTD7.js.map
|
|
5164
|
+
//# sourceMappingURL=mpegts-J2J6JTD7.js.map
|