@evefrontier/dapp-kit 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -0
- package/docs/api/assets/hierarchy.js +1 -1
- package/docs/api/assets/navigation.js +1 -1
- package/docs/api/assets/search.js +1 -1
- package/docs/api/classes/WalletNoAccountSelectedError.html +3 -3
- package/docs/api/classes/WalletNotConnectedError.html +3 -3
- package/docs/api/classes/WalletSponsoredTransactionNotSupportedError.html +3 -3
- package/docs/api/enums/ActionTypes.html +2 -2
- package/docs/api/enums/Assemblies.html +2 -2
- package/docs/api/enums/QueryParams.html +2 -2
- package/docs/api/enums/Severity.html +2 -2
- package/docs/api/enums/SponsoredTransactionActions.html +3 -3
- package/docs/api/enums/State.html +2 -2
- package/docs/api/enums/SupportedWallets.html +3 -0
- package/docs/api/enums/TYPEIDS.html +3 -3
- package/docs/api/functions/EveFrontierProvider.html +2 -2
- package/docs/api/functions/NotificationProvider.html +2 -2
- package/docs/api/functions/SmartObjectProvider.html +2 -2
- package/docs/api/functions/VaultProvider.html +1 -1
- package/docs/api/functions/abbreviateAddress.html +2 -2
- package/docs/api/functions/assertAssemblyType.html +2 -2
- package/docs/api/functions/clickToCopy.html +1 -1
- package/docs/api/functions/executeGraphQLQuery.html +2 -2
- package/docs/api/functions/findOwnerByAddress.html +2 -2
- package/docs/api/functions/formatDuration.html +2 -2
- package/docs/api/functions/formatM3.html +2 -2
- package/docs/api/functions/getAssemblyType.html +2 -2
- package/docs/api/functions/getAssemblyTypeApiString.html +2 -2
- package/docs/api/functions/getAssemblyWithOwner.html +2 -2
- package/docs/api/functions/getCharacterOwnerCapType.html +2 -2
- package/docs/api/functions/getCommonItems.html +1 -1
- package/docs/api/functions/getDappUrl.html +2 -2
- package/docs/api/functions/getDatahubGameInfo.html +2 -2
- package/docs/api/functions/getEnv.html +1 -1
- package/docs/api/functions/getEveWorldPackageId.html +2 -2
- package/docs/api/functions/getObjectByAddress.html +2 -2
- package/docs/api/functions/getObjectId.html +2 -2
- package/docs/api/functions/getObjectOwnerAndOwnedObjectsByType.html +2 -2
- package/docs/api/functions/getObjectRegistryType.html +2 -2
- package/docs/api/functions/getObjectWithDynamicFields.html +2 -2
- package/docs/api/functions/getObjectWithJson.html +2 -2
- package/docs/api/functions/getObjectsByType.html +2 -2
- package/docs/api/functions/getOwnedObjectsByPackage.html +2 -2
- package/docs/api/functions/getOwnedObjectsByType.html +2 -2
- package/docs/api/functions/getRegistryAddress.html +2 -2
- package/docs/api/functions/getSingletonObjectByType.html +2 -2
- package/docs/api/functions/getSponsoredTransactionFeature.html +2 -2
- package/docs/api/functions/getSuiGraphqlEndpoint.html +2 -2
- package/docs/api/functions/getTxUrl.html +2 -2
- package/docs/api/functions/getVolumeM3.html +2 -2
- package/docs/api/functions/hasSponsoredTransactionFeature.html +2 -2
- package/docs/api/functions/isOwner.html +2 -2
- package/docs/api/functions/parseErrorFromMessage.html +1 -1
- package/docs/api/functions/parseStatus.html +2 -2
- package/docs/api/functions/parseURL.html +1 -1
- package/docs/api/functions/removeTrailingZeros.html +1 -1
- package/docs/api/functions/transformToAssembly.html +2 -2
- package/docs/api/functions/transformToCharacter.html +2 -2
- package/docs/api/functions/useConnection.html +2 -2
- package/docs/api/functions/useNotification.html +2 -2
- package/docs/api/functions/useSmartObject.html +2 -2
- package/docs/api/functions/useSponsoredTransaction.html +9 -9
- package/docs/api/functions/walletSupportsSponsoredTransaction.html +2 -2
- package/docs/api/hierarchy.html +1 -1
- package/docs/api/index.html +2 -2
- package/docs/api/interfaces/AddressOwner.html +2 -2
- package/docs/api/interfaces/AddressOwnerWithJson.html +2 -2
- package/docs/api/interfaces/AssemblyProperties.html +2 -2
- package/docs/api/interfaces/CharacterInfo.html +3 -3
- package/docs/api/interfaces/DatahubGameInfo.html +15 -15
- package/docs/api/interfaces/DetailedAssemblyResponse.html +2 -2
- package/docs/api/interfaces/DetailedSmartCharacterResponse.html +2 -2
- package/docs/api/interfaces/DynamicFieldNode.html +2 -2
- package/docs/api/interfaces/EphemeralInventory.html +2 -2
- package/docs/api/interfaces/EveFrontierSponsoredTransactionFeature.html +3 -3
- package/docs/api/interfaces/GameTypeResponse.html +2 -2
- package/docs/api/interfaces/GateModule.html +2 -2
- package/docs/api/interfaces/GetObjectByAddressResponse.html +2 -2
- package/docs/api/interfaces/GetObjectOwnerAndOwnedObjectsResponse.html +2 -2
- package/docs/api/interfaces/GetObjectOwnerAndOwnedObjectsWithJsonResponse.html +2 -2
- package/docs/api/interfaces/GetObjectResponse.html +2 -2
- package/docs/api/interfaces/GetObjectWithJsonResponse.html +2 -2
- package/docs/api/interfaces/GetObjectsByTypeResponse.html +2 -2
- package/docs/api/interfaces/GetOwnedObjectsByPackageResponse.html +2 -2
- package/docs/api/interfaces/GetOwnedObjectsByTypeResponse.html +2 -2
- package/docs/api/interfaces/GetSingletonObjectByTypeResponse.html +2 -2
- package/docs/api/interfaces/GraphQLResponse.html +2 -2
- package/docs/api/interfaces/InventoryItem.html +2 -2
- package/docs/api/interfaces/ManufacturingModule.html +2 -2
- package/docs/api/interfaces/MoveObjectContents.html +2 -2
- package/docs/api/interfaces/MoveObjectData.html +2 -2
- package/docs/api/interfaces/NetworkNodeModule.html +2 -3
- package/docs/api/interfaces/NotificationContextType.html +2 -2
- package/docs/api/interfaces/NotificationState.html +2 -2
- package/docs/api/interfaces/Notify.html +2 -2
- package/docs/api/interfaces/ObjectWithContentsNode.html +2 -2
- package/docs/api/interfaces/OwnedObjectAddressNode.html +2 -2
- package/docs/api/interfaces/OwnedObjectFullNode.html +2 -2
- package/docs/api/interfaces/OwnedObjectNode.html +2 -2
- package/docs/api/interfaces/OwnedObjectNodeWithJson.html +2 -2
- package/docs/api/interfaces/OwnerCapData.html +3 -3
- package/docs/api/interfaces/PageInfo.html +2 -2
- package/docs/api/interfaces/RawCharacterData.html +3 -3
- package/docs/api/interfaces/RawSuiObjectData.html +6 -6
- package/docs/api/interfaces/RefineryModule.html +2 -2
- package/docs/api/interfaces/SmartAssemblyResponse.html +2 -2
- package/docs/api/interfaces/SmartObjectContextType.html +3 -2
- package/docs/api/interfaces/SponsoredTransactionInput.html +8 -8
- package/docs/api/interfaces/SponsoredTransactionOutput.html +5 -5
- package/docs/api/interfaces/StorageModule.html +2 -2
- package/docs/api/interfaces/SuiObjectResponse.html +2 -2
- package/docs/api/interfaces/TransformOptions.html +4 -4
- package/docs/api/interfaces/TurretModule.html +2 -2
- package/docs/api/interfaces/VaultContextType.html +3 -2
- package/docs/api/modules.html +1 -1
- package/docs/api/types/AssemblyType.html +1 -1
- package/docs/api/types/ErrorType.html +2 -2
- package/docs/api/types/SendSponsoredTransactionFn.html +1 -1
- package/docs/api/types/SponsoredTransactionArgs.html +2 -2
- package/docs/api/types/SponsoredTransactionAssemblyType.html +2 -2
- package/docs/api/types/SponsoredTransactionMethod.html +2 -2
- package/docs/api/types/UseSponsoredTransactionArgs.html +2 -2
- package/docs/api/types/UseSponsoredTransactionError.html +2 -2
- package/docs/api/types/UseSponsoredTransactionMutationOptions.html +2 -2
- package/docs/api/variables/ASSEMBLY_TYPE_API_STRING.html +2 -0
- package/docs/api/variables/ERRORS.html +1 -1
- package/docs/api/variables/ERROR_MESSAGES.html +1 -1
- package/docs/api/variables/EVEFRONTIER_SPONSORED_TRANSACTION.html +2 -2
- package/docs/api/variables/EXCLUDED_TYPEIDS.html +1 -1
- package/docs/api/variables/GET_OBJECTS_BY_TYPE.html +2 -2
- package/docs/api/variables/GET_OBJECT_BY_ADDRESS.html +2 -2
- package/docs/api/variables/GET_OBJECT_OWNER_AND_OWNED_OBJECTS_BY_TYPE.html +2 -2
- package/docs/api/variables/GET_OBJECT_OWNER_AND_OWNED_OBJECTS_WITH_JSON.html +2 -2
- package/docs/api/variables/GET_OBJECT_WITH_DYNAMIC_FIELDS.html +2 -2
- package/docs/api/variables/GET_OBJECT_WITH_JSON.html +2 -2
- package/docs/api/variables/GET_OWNED_OBJECTS_BY_PACKAGE.html +2 -2
- package/docs/api/variables/GET_OWNED_OBJECTS_BY_TYPE.html +2 -2
- package/docs/api/variables/GET_SINGLETON_OBJECT_BY_TYPE.html +2 -2
- package/docs/api/variables/NotificationContext.html +1 -1
- package/docs/api/variables/ONE_M3.html +2 -2
- package/docs/api/variables/POLLING_INTERVAL.html +2 -2
- package/docs/api/variables/STORAGE_KEYS.html +2 -2
- package/docs/api/variables/SmartObjectContext.html +1 -1
- package/docs/api/variables/VaultContext.html +1 -1
- package/docs/api/variables/dAppKit.html +2 -2
- package/hooks/useConnection.ts +2 -1
- package/hooks/useNotification.ts +5 -3
- package/hooks/useSmartObject.ts +2 -4
- package/hooks/useSponsoredTransaction.ts +35 -17
- package/index.ts +0 -10
- package/package.json +1 -1
- package/providers/NotificationProvider.tsx +1 -20
- package/providers/SmartObjectProvider.tsx +1 -26
- package/providers/VaultProvider.tsx +6 -14
- package/providers/index.ts +1 -8
- package/types/contexts.ts +57 -0
- package/types/index.ts +1 -1
- package/types/sponsoredTransaction.ts +35 -0
- package/types/worldApiReturnTypes.ts +6 -4
- package/utils/transforms.ts +7 -8
- package/utils/utils.ts +1 -1
- package/vite-env.d.ts +0 -2
- package/wallet/features.ts +9 -38
- package/wallet/index.ts +0 -2
- package/wallet/utils.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NotificationContext | @evefrontier/dapp-kit - v0.1.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>NotificationContext | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">NotificationContext</a></li></ul><h1>Variable NotificationContext<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">NotificationContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/NotificationContextType.html" class="tsd-signature-type tsd-kind-interface">NotificationContextType</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/providers/NotificationProvider.tsx#L7">providers/NotificationProvider.tsx:7</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ONE_M3 | @evefrontier/dapp-kit - v0.1.
|
|
2
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ONE_M3 | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">ONE_M3</a></li></ul><h1>Variable ONE_M3<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">ONE_M3</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">1000000000000000000</span></div><div class="tsd-comment tsd-typography"><p>Volume - from wei units to m3.</p>
|
|
2
|
+
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/utils/constants.ts#L96">utils/constants.ts:96</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>POLLING_INTERVAL | @evefrontier/dapp-kit - v0.1.
|
|
2
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>POLLING_INTERVAL | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">POLLING_INTERVAL</a></li></ul><h1>Variable POLLING_INTERVAL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">POLLING_INTERVAL</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">10000</span></div><div class="tsd-comment tsd-typography"><p>Polling interval in milliseconds (10 seconds).</p>
|
|
2
|
+
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/utils/constants.ts#L62">utils/constants.ts:62</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>STORAGE_KEYS | @evefrontier/dapp-kit - v0.1.
|
|
2
|
-
</div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="connected"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CONNECTED</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"eve-dapp-connected"</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>STORAGE_KEYS | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">STORAGE_KEYS</a></li></ul><h1>Variable STORAGE_KEYS<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">STORAGE_KEYS</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">CONNECTED</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"eve-dapp-connected"</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>Local storage keys.</p>
|
|
2
|
+
</div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="connected"><code class="tsd-tag">Readonly</code><span class="tsd-kind-property">CONNECTED</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"eve-dapp-connected"</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/utils/constants.ts#L65">utils/constants.ts:65</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SmartObjectContext | @evefrontier/dapp-kit - v0.1.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SmartObjectContext | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">SmartObjectContext</a></li></ul><h1>Variable SmartObjectContext<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">SmartObjectContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/SmartObjectContextType.html" class="tsd-signature-type tsd-kind-interface">SmartObjectContextType</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/providers/SmartObjectProvider.tsx#L29">providers/SmartObjectProvider.tsx:29</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>VaultContext | @evefrontier/dapp-kit - v0.1.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>VaultContext | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">VaultContext</a></li></ul><h1>Variable VaultContext<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">VaultContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/VaultContextType.html" class="tsd-signature-type tsd-kind-interface">VaultContextType</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/providers/VaultProvider.tsx#L11">providers/VaultProvider.tsx:11</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>dAppKit | @evefrontier/dapp-kit - v0.1.
|
|
2
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>dAppKit | @evefrontier/dapp-kit - v0.1.1</title><meta name="description" content="Documentation for @evefrontier/dapp-kit"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@evefrontier/dapp-kit - v0.1.1</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">dAppKit</a></li></ul><h1>Variable dAppKit<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">dAppKit</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DAppKit</span><span class="tsd-signature-symbol"><</span>(<span class="tsd-signature-type">"testnet"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"devnet"</span>)<span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">SuiGrpcClient</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>DApp Kit instance for Sui wallet and network.</p>
|
|
2
|
+
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/c9a9e7b2be3286aab0f8dd4a613f019466e59829/packages/libs/dapp-kit/config/dapp-kit.ts#L12">config/dapp-kit.ts:12</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/hooks/useConnection.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { VaultContext
|
|
2
|
+
import { VaultContext } from "../providers/VaultProvider";
|
|
3
|
+
import { VaultContextType } from "../types";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Hook for managing wallet connection state in EVE Frontier dApps.
|
package/hooks/useNotification.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { NotificationContext
|
|
2
|
+
import { NotificationContext } from "../providers/NotificationProvider";
|
|
3
|
+
import { NotificationContextType } from "../types";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Hook for displaying user notifications in EVE Frontier dApps.
|
|
@@ -73,8 +74,9 @@ import { NotificationContext, NotificationContextType } from "../providers/Notif
|
|
|
73
74
|
export function useNotification(): NotificationContextType {
|
|
74
75
|
const context = useContext(NotificationContext);
|
|
75
76
|
if (!context) {
|
|
76
|
-
throw new Error(
|
|
77
|
+
throw new Error(
|
|
78
|
+
"useNotification must be used within an EveFrontierProvider",
|
|
79
|
+
);
|
|
77
80
|
}
|
|
78
81
|
return context;
|
|
79
82
|
}
|
|
80
|
-
|
package/hooks/useSmartObject.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
SmartObjectContextType,
|
|
5
|
-
} from "../providers/SmartObjectProvider";
|
|
2
|
+
import { SmartObjectContext } from "../providers/SmartObjectProvider";
|
|
3
|
+
import { SmartObjectContextType } from "../types";
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Hook for accessing smart assembly data from the Sui GraphQL Indexer.
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
type SponsoredTransactionOutput,
|
|
18
18
|
SponsoredTransactionArgs,
|
|
19
19
|
} from "../wallet";
|
|
20
|
-
import { SponsoredTransactionActions } from "../types";
|
|
20
|
+
import { QueryParams, SponsoredTransactionActions } from "../types";
|
|
21
21
|
|
|
22
22
|
/** Wallet-like shape from dApp Kit (UiWallet or connection store). */
|
|
23
23
|
type ResolvableWallet = {
|
|
@@ -129,10 +129,10 @@ export type UseSponsoredTransactionMutationOptions = Omit<
|
|
|
129
129
|
* **Input** (passed to `mutate` / `mutateAsync`):
|
|
130
130
|
* - `txAction` (required) – The sponsored action to run (e.g. BRING_ONLINE, BRING_OFFLINE).
|
|
131
131
|
* - `chain` (required) – Sui chain id, e.g. `"sui:testnet"` or `"sui:mainnet"`.
|
|
132
|
-
* - `
|
|
133
|
-
* - `
|
|
134
|
-
* - `
|
|
135
|
-
* - `
|
|
132
|
+
* - `assembly` (required) – Full assembly object (`AssemblyType<Assemblies>`). Must include `type` and `item_id`; `item_id` falls back to the URL query param (e.g. `item_id`) when present.
|
|
133
|
+
* - `tenant` (optional) – Tenant ID. When omitted, the hook resolves it from the URL query param (e.g. `tenant`) with fallback to `"testevenet"`. Pass explicitly to override.
|
|
134
|
+
* - `account` (optional) – Signer address. If omitted, the currently connected wallet account is used.
|
|
135
|
+
* - `destination` (optional) – Additional destination payload when required by the action.
|
|
136
136
|
*
|
|
137
137
|
* **Output** (on success, in `data` or resolved from `mutateAsync`):
|
|
138
138
|
* - `digest` (required) – Transaction digest.
|
|
@@ -155,18 +155,19 @@ export type UseSponsoredTransactionMutationOptions = Omit<
|
|
|
155
155
|
*
|
|
156
156
|
* @example Basic bring online transaction
|
|
157
157
|
* ```tsx
|
|
158
|
-
* import { useSponsoredTransaction, SponsoredTransactionActions } from "@evefrontier/dapp-kit";
|
|
158
|
+
* import { useSponsoredTransaction, SponsoredTransactionActions, useSmartObject } from "@evefrontier/dapp-kit";
|
|
159
159
|
*
|
|
160
160
|
* const BringOnlineButton = () => {
|
|
161
|
+
* const { assembly } = useSmartObject();
|
|
161
162
|
* const { mutateAsync: sendTx, isPending } = useSponsoredTransaction();
|
|
162
163
|
*
|
|
163
164
|
* const handleBringOnline = async () => {
|
|
165
|
+
* if (!assembly) return;
|
|
164
166
|
* try {
|
|
165
167
|
* const result = await sendTx({
|
|
166
168
|
* txAction: SponsoredTransactionActions.BRING_ONLINE,
|
|
167
|
-
* assembly
|
|
169
|
+
* assembly,
|
|
168
170
|
* chain: "sui:testnet",
|
|
169
|
-
* ownerId: "0x...",
|
|
170
171
|
* });
|
|
171
172
|
* console.log("Transaction digest:", result.digest);
|
|
172
173
|
* } catch (error) {
|
|
@@ -175,7 +176,7 @@ export type UseSponsoredTransactionMutationOptions = Omit<
|
|
|
175
176
|
* };
|
|
176
177
|
*
|
|
177
178
|
* return (
|
|
178
|
-
* <button onClick={handleBringOnline} disabled={isPending}>
|
|
179
|
+
* <button onClick={handleBringOnline} disabled={isPending || !assembly}>
|
|
179
180
|
* {isPending ? "Processing..." : "Bring Online"}
|
|
180
181
|
* </button>
|
|
181
182
|
* );
|
|
@@ -184,13 +185,13 @@ export type UseSponsoredTransactionMutationOptions = Omit<
|
|
|
184
185
|
*
|
|
185
186
|
* @example With callbacks
|
|
186
187
|
* ```tsx
|
|
188
|
+
* const { assembly } = useSmartObject();
|
|
187
189
|
* const { mutate: sendTx } = useSponsoredTransaction();
|
|
188
190
|
*
|
|
189
191
|
* sendTx(
|
|
190
192
|
* {
|
|
191
193
|
* txAction: SponsoredTransactionActions.BRING_ONLINE,
|
|
192
|
-
* assembly
|
|
193
|
-
* ownerId: "0x...",
|
|
194
|
+
* assembly,
|
|
194
195
|
* chain: "sui:testnet",
|
|
195
196
|
* },
|
|
196
197
|
* {
|
|
@@ -204,13 +205,13 @@ export type UseSponsoredTransactionMutationOptions = Omit<
|
|
|
204
205
|
* );
|
|
205
206
|
* ```
|
|
206
207
|
*
|
|
207
|
-
* @example With assembly
|
|
208
|
+
* @example With assembly and optional account
|
|
208
209
|
* ```tsx
|
|
209
210
|
* const result = await sendTx({
|
|
210
211
|
* txAction: SponsoredTransactionActions.BRING_ONLINE,
|
|
212
|
+
* assembly, // full AssemblyType from useSmartObject() or similar
|
|
211
213
|
* chain: "sui:testnet",
|
|
212
|
-
*
|
|
213
|
-
* assembly: "0x123...",
|
|
214
|
+
* account: "0x...", // optional; defaults to connected wallet account
|
|
214
215
|
* });
|
|
215
216
|
* ```
|
|
216
217
|
*
|
|
@@ -230,6 +231,13 @@ export function useSponsoredTransaction({
|
|
|
230
231
|
const wallets = useWallets();
|
|
231
232
|
const currentAccount = useCurrentAccount();
|
|
232
233
|
|
|
234
|
+
const queryParams = new URLSearchParams(window.location.search);
|
|
235
|
+
const queryItemId = queryParams.get(QueryParams.ITEM_ID);
|
|
236
|
+
const queryTenant = queryParams.get(QueryParams.TENANT);
|
|
237
|
+
|
|
238
|
+
console.log("queryItemId", queryItemId);
|
|
239
|
+
console.log("queryTenant", queryTenant);
|
|
240
|
+
|
|
233
241
|
return useMutation({
|
|
234
242
|
mutationKey: [
|
|
235
243
|
"evefrontier",
|
|
@@ -308,14 +316,24 @@ export function useSponsoredTransaction({
|
|
|
308
316
|
);
|
|
309
317
|
}
|
|
310
318
|
|
|
319
|
+
const tenant = (args.tenant ?? queryTenant ?? "testevenet").trim();
|
|
320
|
+
if (!tenant) {
|
|
321
|
+
throw new Error(
|
|
322
|
+
"Tenant could not be resolved; pass tenant or set the tenant query param",
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
|
|
311
326
|
const payload: SponsoredTransactionInput = {
|
|
312
|
-
txAction: args.txAction,
|
|
313
|
-
assembly: args.assembly.item_id,
|
|
327
|
+
txAction: args.txAction as SponsoredTransactionActions,
|
|
328
|
+
assembly: args.assembly.item_id ?? queryItemId,
|
|
314
329
|
assemblyType: getAssemblyTypeApiString(args.assembly.type),
|
|
315
|
-
chain: args.chain
|
|
330
|
+
chain: args.chain as `sui:${string}`,
|
|
331
|
+
tenant,
|
|
316
332
|
...(args.destination != null ? { destination: args.destination } : {}),
|
|
317
333
|
};
|
|
318
334
|
|
|
335
|
+
console.log("payload", payload);
|
|
336
|
+
|
|
319
337
|
return await signSponsoredTransaction(payload);
|
|
320
338
|
},
|
|
321
339
|
...mutationOptions,
|
package/index.ts
CHANGED
|
@@ -31,14 +31,6 @@ export {
|
|
|
31
31
|
NotificationContext,
|
|
32
32
|
} from "./providers";
|
|
33
33
|
|
|
34
|
-
// Types from providers
|
|
35
|
-
export type {
|
|
36
|
-
VaultContextType,
|
|
37
|
-
SmartObjectContextType,
|
|
38
|
-
NotificationContextType,
|
|
39
|
-
NotificationState,
|
|
40
|
-
} from "./providers";
|
|
41
|
-
|
|
42
34
|
// =========================================
|
|
43
35
|
// Types (re-exported from ./types)
|
|
44
36
|
// =========================================
|
|
@@ -145,7 +137,6 @@ export {
|
|
|
145
137
|
// Wallet Standard Extensions
|
|
146
138
|
// =========================================
|
|
147
139
|
export {
|
|
148
|
-
EVEFRONTIER_SPONSORED_TRANSACTION,
|
|
149
140
|
getAssemblyTypeApiString,
|
|
150
141
|
hasSponsoredTransactionFeature,
|
|
151
142
|
walletSupportsSponsoredTransaction,
|
|
@@ -155,7 +146,6 @@ export {
|
|
|
155
146
|
export type {
|
|
156
147
|
EveFrontierSponsoredTransactionFeature,
|
|
157
148
|
SponsoredTransactionArgs,
|
|
158
|
-
SponsoredTransactionAssemblyType,
|
|
159
149
|
SponsoredTransactionInput,
|
|
160
150
|
SponsoredTransactionOutput,
|
|
161
151
|
SponsoredTransactionMethod,
|
package/package.json
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
import { ReactNode, createContext, useCallback, useState } from "react";
|
|
2
2
|
|
|
3
3
|
import { Severity } from "../types";
|
|
4
|
-
|
|
5
|
-
/** @category Types */
|
|
6
|
-
export interface NotificationState {
|
|
7
|
-
message: string;
|
|
8
|
-
txHash: string;
|
|
9
|
-
severity: Severity;
|
|
10
|
-
handleClose: () => void;
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/** @category Types */
|
|
15
|
-
export interface NotificationContextType {
|
|
16
|
-
notify: (notification: {
|
|
17
|
-
type: Severity;
|
|
18
|
-
txHash?: string;
|
|
19
|
-
message?: string;
|
|
20
|
-
}) => void;
|
|
21
|
-
notification: NotificationState;
|
|
22
|
-
handleClose: () => void;
|
|
23
|
-
}
|
|
4
|
+
import { NotificationContextType, NotificationState } from "../types";
|
|
24
5
|
|
|
25
6
|
/** @category Providers */
|
|
26
7
|
export const NotificationContext = createContext<NotificationContextType>({
|
|
@@ -23,17 +23,7 @@ import {
|
|
|
23
23
|
} from "../utils";
|
|
24
24
|
import { getDatahubGameInfo } from "../utils/datahub";
|
|
25
25
|
import { useConnection } from "../hooks/useConnection";
|
|
26
|
-
|
|
27
|
-
/** @category Types */
|
|
28
|
-
export interface SmartObjectContextType {
|
|
29
|
-
assembly: AssemblyType<Assemblies> | null;
|
|
30
|
-
character: DetailedSmartCharacterResponse | null;
|
|
31
|
-
selectedObjectId: string;
|
|
32
|
-
loading: boolean;
|
|
33
|
-
error: string | null;
|
|
34
|
-
setSelectedObjectId: (id: string) => void;
|
|
35
|
-
refetch: () => Promise<void>;
|
|
36
|
-
}
|
|
26
|
+
import { SmartObjectContextType } from "../types";
|
|
37
27
|
|
|
38
28
|
/** @category Providers */
|
|
39
29
|
export const SmartObjectContext = createContext<SmartObjectContextType>({
|
|
@@ -174,7 +164,6 @@ const SmartObjectProvider = ({ children }: { children: ReactNode }) => {
|
|
|
174
164
|
|
|
175
165
|
// Check if an object ID exists in the .env file
|
|
176
166
|
const envItemId = import.meta.env.VITE_ITEM_ID;
|
|
177
|
-
const envTenant = import.meta.env.VITE_EVE_WORLD_TENANT;
|
|
178
167
|
|
|
179
168
|
if (envItemId) {
|
|
180
169
|
console.log(
|
|
@@ -182,20 +171,6 @@ const SmartObjectProvider = ({ children }: { children: ReactNode }) => {
|
|
|
182
171
|
envItemId,
|
|
183
172
|
);
|
|
184
173
|
setSelectedObjectId(envItemId);
|
|
185
|
-
|
|
186
|
-
if (envTenant) {
|
|
187
|
-
console.log(
|
|
188
|
-
"[DappKit] SmartObjectProvider: Using tenant from env:",
|
|
189
|
-
envTenant,
|
|
190
|
-
);
|
|
191
|
-
setSelectedTenant(envTenant);
|
|
192
|
-
} else {
|
|
193
|
-
console.error(
|
|
194
|
-
"[DappKit] SmartObjectProvider: VITE_ITEM_ID is set but VITE_EVE_WORLD_TENANT is missing. " +
|
|
195
|
-
"Both are required when using env-based configuration.",
|
|
196
|
-
);
|
|
197
|
-
setLoading(false);
|
|
198
|
-
}
|
|
199
174
|
return;
|
|
200
175
|
}
|
|
201
176
|
|
|
@@ -4,18 +4,8 @@ import {
|
|
|
4
4
|
useWallets,
|
|
5
5
|
useDAppKit,
|
|
6
6
|
} from "@mysten/dapp-kit-react";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
/** @category Types */
|
|
11
|
-
export interface VaultContextType {
|
|
12
|
-
currentAccount: WalletAccount | null;
|
|
13
|
-
walletAddress: string | undefined;
|
|
14
|
-
hasEveVault: boolean;
|
|
15
|
-
isConnected: boolean;
|
|
16
|
-
handleConnect: () => void;
|
|
17
|
-
handleDisconnect: () => void;
|
|
18
|
-
}
|
|
7
|
+
import { STORAGE_KEYS } from "../utils";
|
|
8
|
+
import { SupportedWallets, VaultContextType } from "../types";
|
|
19
9
|
|
|
20
10
|
/** @category Providers */
|
|
21
11
|
export const VaultContext = createContext<VaultContextType>({
|
|
@@ -44,8 +34,10 @@ const VaultProvider = ({ children }: { children: ReactNode }) => {
|
|
|
44
34
|
const wallets = useWallets();
|
|
45
35
|
|
|
46
36
|
// Find Eve Vault wallet if available
|
|
47
|
-
const eveVaultWallet = wallets.find(
|
|
48
|
-
wallet
|
|
37
|
+
const eveVaultWallet = wallets.find(
|
|
38
|
+
(wallet) =>
|
|
39
|
+
wallet.name.includes(SupportedWallets.EVE_FRONTIER_CLIENT_WALLET) ||
|
|
40
|
+
wallet.name.includes(SupportedWallets.EVE_VAULT),
|
|
49
41
|
);
|
|
50
42
|
|
|
51
43
|
// Track if auto-connect has been attempted to prevent infinite loops
|
package/providers/index.ts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
export { default as EveFrontierProvider } from "./EveFrontierProvider";
|
|
2
|
-
export {
|
|
3
|
-
default as VaultProvider,
|
|
4
|
-
VaultContext,
|
|
5
|
-
type VaultContextType,
|
|
6
|
-
} from "./VaultProvider";
|
|
2
|
+
export { default as VaultProvider, VaultContext } from "./VaultProvider";
|
|
7
3
|
export {
|
|
8
4
|
default as SmartObjectProvider,
|
|
9
5
|
SmartObjectContext,
|
|
10
|
-
type SmartObjectContextType,
|
|
11
6
|
} from "./SmartObjectProvider";
|
|
12
7
|
export {
|
|
13
8
|
default as NotificationProvider,
|
|
14
9
|
NotificationContext,
|
|
15
|
-
type NotificationContextType,
|
|
16
|
-
type NotificationState,
|
|
17
10
|
} from "./NotificationProvider";
|