@evefrontier/dapp-kit 0.1.3 → 0.1.5
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 +13 -0
- package/hooks/useSponsoredTransaction.ts +11 -4
- package/package.json +11 -1
- package/types/sponsoredTransaction.ts +8 -0
- package/wallet/features.ts +5 -10
- package/CHANGELOG.md +0 -19
- package/docs/api/.nojekyll +0 -1
- package/docs/api/assets/hierarchy.js +0 -1
- package/docs/api/assets/highlight.css +0 -120
- package/docs/api/assets/icons.js +0 -18
- package/docs/api/assets/icons.svg +0 -1
- package/docs/api/assets/main.js +0 -60
- package/docs/api/assets/navigation.js +0 -1
- package/docs/api/assets/search.js +0 -1
- package/docs/api/assets/style.css +0 -1633
- package/docs/api/classes/WalletNoAccountSelectedError.html +0 -3
- package/docs/api/classes/WalletNotConnectedError.html +0 -3
- package/docs/api/classes/WalletSponsoredTransactionNotSupportedError.html +0 -5
- package/docs/api/enums/ActionTypes.html +0 -6
- package/docs/api/enums/Assemblies.html +0 -8
- package/docs/api/enums/QueryParams.html +0 -3
- package/docs/api/enums/Severity.html +0 -5
- package/docs/api/enums/SponsoredTransactionActions.html +0 -7
- package/docs/api/enums/State.html +0 -6
- package/docs/api/enums/SupportedWallets.html +0 -3
- package/docs/api/enums/TYPEIDS.html +0 -15
- package/docs/api/functions/EveFrontierProvider.html +0 -11
- package/docs/api/functions/NotificationProvider.html +0 -2
- package/docs/api/functions/SmartObjectProvider.html +0 -10
- package/docs/api/functions/VaultProvider.html +0 -1
- package/docs/api/functions/abbreviateAddress.html +0 -11
- package/docs/api/functions/assertAssemblyType.html +0 -9
- package/docs/api/functions/clickToCopy.html +0 -1
- package/docs/api/functions/executeGraphQLQuery.html +0 -12
- package/docs/api/functions/findOwnerByAddress.html +0 -5
- package/docs/api/functions/formatDuration.html +0 -8
- package/docs/api/functions/formatM3.html +0 -8
- package/docs/api/functions/getAdjustedBurnRate.html +0 -6
- package/docs/api/functions/getAssemblyType.html +0 -4
- package/docs/api/functions/getAssemblyTypeApiString.html +0 -2
- package/docs/api/functions/getAssemblyWithOwner.html +0 -18
- package/docs/api/functions/getCharacterAndOwnedObjects.html +0 -3
- package/docs/api/functions/getCharacterOwnedObjects.html +0 -5
- package/docs/api/functions/getCharacterOwnedObjectsJson.html +0 -5
- package/docs/api/functions/getCharacterOwnerCapType.html +0 -3
- package/docs/api/functions/getCharacterPlayerProfileType.html +0 -3
- package/docs/api/functions/getCommonItems.html +0 -1
- package/docs/api/functions/getDappUrl.html +0 -7
- package/docs/api/functions/getDatahubGameInfo.html +0 -13
- package/docs/api/functions/getEnergyConfig.html +0 -4
- package/docs/api/functions/getEnergyConfigType.html +0 -3
- package/docs/api/functions/getEnergyUsageForType.html +0 -5
- package/docs/api/functions/getEnv.html +0 -1
- package/docs/api/functions/getEveWorldPackageId.html +0 -4
- package/docs/api/functions/getFuelEfficiencyConfig.html +0 -4
- package/docs/api/functions/getFuelEfficiencyConfigType.html +0 -3
- package/docs/api/functions/getFuelEfficiencyForType.html +0 -5
- package/docs/api/functions/getObjectByAddress.html +0 -9
- package/docs/api/functions/getObjectId.html +0 -4
- package/docs/api/functions/getObjectOwnerAndOwnedObjectsByType.html +0 -10
- package/docs/api/functions/getObjectOwnerAndOwnedObjectsWithJson.html +0 -7
- package/docs/api/functions/getObjectRegistryType.html +0 -3
- package/docs/api/functions/getObjectWithDynamicFields.html +0 -10
- package/docs/api/functions/getObjectWithJson.html +0 -9
- package/docs/api/functions/getObjectsByType.html +0 -12
- package/docs/api/functions/getOwnedObjectsByPackage.html +0 -10
- package/docs/api/functions/getOwnedObjectsByType.html +0 -10
- package/docs/api/functions/getRegistryAddress.html +0 -3
- package/docs/api/functions/getSingletonObjectByType.html +0 -9
- package/docs/api/functions/getSponsoredTransactionFeature.html +0 -11
- package/docs/api/functions/getSuiGraphqlEndpoint.html +0 -4
- package/docs/api/functions/getTxUrl.html +0 -8
- package/docs/api/functions/getVolumeM3.html +0 -5
- package/docs/api/functions/getWalletCharacters.html +0 -3
- package/docs/api/functions/hasSponsoredTransactionFeature.html +0 -3
- package/docs/api/functions/isOwner.html +0 -10
- package/docs/api/functions/parseCharacterFromJson.html +0 -5
- package/docs/api/functions/parseErrorFromMessage.html +0 -1
- package/docs/api/functions/parseStatus.html +0 -2
- package/docs/api/functions/parseURL.html +0 -1
- package/docs/api/functions/removeTrailingZeros.html +0 -1
- package/docs/api/functions/transformToAssembly.html +0 -5
- package/docs/api/functions/transformToCharacter.html +0 -2
- package/docs/api/functions/useConnection.html +0 -21
- package/docs/api/functions/useNotification.html +0 -28
- package/docs/api/functions/useSmartObject.html +0 -21
- package/docs/api/functions/useSponsoredTransaction.html +0 -50
- package/docs/api/functions/walletSupportsSponsoredTransaction.html +0 -13
- package/docs/api/hierarchy.html +0 -1
- package/docs/api/index.html +0 -24
- package/docs/api/interfaces/AddressOwner.html +0 -2
- package/docs/api/interfaces/AddressOwnerWithJson.html +0 -2
- package/docs/api/interfaces/AddressWithObjects.html +0 -3
- package/docs/api/interfaces/AdjustedBurnRate.html +0 -8
- package/docs/api/interfaces/AsMoveObjectRef.html +0 -3
- package/docs/api/interfaces/AssemblyProperties.html +0 -17
- package/docs/api/interfaces/CharacterAndOwnedObjectsNode.html +0 -2
- package/docs/api/interfaces/CharacterInfo.html +0 -8
- package/docs/api/interfaces/CharacterOwnerNode.html +0 -3
- package/docs/api/interfaces/ConfigExtractDynamicFieldNode.html +0 -3
- package/docs/api/interfaces/ContentsBcs.html +0 -2
- package/docs/api/interfaces/ContentsJsonAndBcs.html +0 -3
- package/docs/api/interfaces/ContentsJsonOnly.html +0 -3
- package/docs/api/interfaces/ContentsTypeAndBcs.html +0 -3
- package/docs/api/interfaces/ContentsTypeJsonAndBcs.html +0 -4
- package/docs/api/interfaces/DatahubGameInfo.html +0 -28
- package/docs/api/interfaces/DetailedAssemblyResponse.html +0 -17
- package/docs/api/interfaces/DetailedSmartCharacterResponse.html +0 -7
- package/docs/api/interfaces/DynamicFieldNode.html +0 -3
- package/docs/api/interfaces/EphemeralInventory.html +0 -6
- package/docs/api/interfaces/EveFrontierSponsoredTransactionFeature.html +0 -7
- package/docs/api/interfaces/ExtractAsMoveObjectNode.html +0 -4
- package/docs/api/interfaces/GateModule.html +0 -2
- package/docs/api/interfaces/GetCharacterAndOwnedObjectsResponse.html +0 -2
- package/docs/api/interfaces/GetObjectAndCharacterOwnerResponse.html +0 -2
- package/docs/api/interfaces/GetObjectByAddressResponse.html +0 -2
- package/docs/api/interfaces/GetObjectOwnerAndOwnedObjectsResponse.html +0 -2
- package/docs/api/interfaces/GetObjectOwnerAndOwnedObjectsWithJsonResponse.html +0 -2
- package/docs/api/interfaces/GetObjectResponse.html +0 -2
- package/docs/api/interfaces/GetObjectWithJsonResponse.html +0 -2
- package/docs/api/interfaces/GetObjectsByTypeResponse.html +0 -2
- package/docs/api/interfaces/GetOwnedObjectsByPackageResponse.html +0 -2
- package/docs/api/interfaces/GetOwnedObjectsByTypeResponse.html +0 -2
- package/docs/api/interfaces/GetSingletonConfigObjectByTypeResponse.html +0 -2
- package/docs/api/interfaces/GetSingletonObjectByTypeResponse.html +0 -2
- package/docs/api/interfaces/GetWalletCharactersResponse.html +0 -2
- package/docs/api/interfaces/GraphQLResponse.html +0 -3
- package/docs/api/interfaces/InventoryItem.html +0 -8
- package/docs/api/interfaces/ManufacturingModule.html +0 -1
- package/docs/api/interfaces/MoveObjectContents.html +0 -4
- package/docs/api/interfaces/MoveObjectData.html +0 -3
- package/docs/api/interfaces/NetworkNodeModule.html +0 -6
- package/docs/api/interfaces/NotificationContextType.html +0 -4
- package/docs/api/interfaces/NotificationState.html +0 -6
- package/docs/api/interfaces/Notify.html +0 -6
- package/docs/api/interfaces/ObjectNodes.html +0 -2
- package/docs/api/interfaces/ObjectWithContentsNode.html +0 -4
- package/docs/api/interfaces/OwnedObjectAddressNode.html +0 -2
- package/docs/api/interfaces/OwnedObjectFullNode.html +0 -4
- package/docs/api/interfaces/OwnedObjectNode.html +0 -3
- package/docs/api/interfaces/OwnedObjectNodeWithJson.html +0 -4
- package/docs/api/interfaces/OwnerCapData.html +0 -5
- package/docs/api/interfaces/PageInfo.html +0 -3
- package/docs/api/interfaces/PreviousTransaction.html +0 -2
- package/docs/api/interfaces/RawCharacterData.html +0 -8
- package/docs/api/interfaces/RawSuiObjectData.html +0 -21
- package/docs/api/interfaces/RefineryModule.html +0 -1
- package/docs/api/interfaces/SmartAssemblyResponse.html +0 -15
- package/docs/api/interfaces/SmartObjectContextType.html +0 -7
- package/docs/api/interfaces/SponsoredTransactionInput.html +0 -14
- package/docs/api/interfaces/SponsoredTransactionOutput.html +0 -8
- package/docs/api/interfaces/StorageModule.html +0 -3
- package/docs/api/interfaces/SuiObjectResponse.html +0 -5
- package/docs/api/interfaces/TransformOptions.html +0 -10
- package/docs/api/interfaces/TurretModule.html +0 -1
- package/docs/api/interfaces/TypeRepr.html +0 -2
- package/docs/api/interfaces/TypeReprWithLayout.html +0 -3
- package/docs/api/interfaces/VaultContextType.html +0 -8
- package/docs/api/modules.html +0 -1
- package/docs/api/types/AssemblyType.html +0 -1
- package/docs/api/types/ContentsTypeAndJson.html +0 -2
- package/docs/api/types/ErrorType.html +0 -5
- package/docs/api/types/MoveObjectRefWithJson.html +0 -2
- package/docs/api/types/SendSponsoredTransactionFn.html +0 -1
- package/docs/api/types/SponsoredTransactionArgs.html +0 -2
- package/docs/api/types/SponsoredTransactionAssemblyType.html +0 -2
- package/docs/api/types/SponsoredTransactionMethod.html +0 -2
- package/docs/api/types/UseSponsoredTransactionArgs.html +0 -3
- package/docs/api/types/UseSponsoredTransactionError.html +0 -2
- package/docs/api/types/UseSponsoredTransactionMutationOptions.html +0 -2
- package/docs/api/variables/ASSEMBLY_TYPE_API_STRING.html +0 -2
- package/docs/api/variables/ERRORS.html +0 -1
- package/docs/api/variables/ERROR_MESSAGES.html +0 -1
- package/docs/api/variables/EVEFRONTIER_SPONSORED_TRANSACTION.html +0 -4
- package/docs/api/variables/EXCLUDED_TYPEIDS.html +0 -1
- package/docs/api/variables/GET_OBJECTS_BY_TYPE.html +0 -3
- package/docs/api/variables/GET_OBJECT_BY_ADDRESS.html +0 -3
- package/docs/api/variables/GET_OBJECT_OWNER_AND_OWNED_OBJECTS_BY_TYPE.html +0 -4
- package/docs/api/variables/GET_OBJECT_OWNER_AND_OWNED_OBJECTS_WITH_JSON.html +0 -3
- package/docs/api/variables/GET_OBJECT_WITH_DYNAMIC_FIELDS.html +0 -4
- package/docs/api/variables/GET_OBJECT_WITH_JSON.html +0 -3
- package/docs/api/variables/GET_OWNED_OBJECTS_BY_PACKAGE.html +0 -3
- package/docs/api/variables/GET_OWNED_OBJECTS_BY_TYPE.html +0 -3
- package/docs/api/variables/GET_SINGLETON_CONFIG_OBJECT_BY_TYPE.html +0 -2
- package/docs/api/variables/GET_SINGLETON_OBJECT_BY_TYPE.html +0 -3
- package/docs/api/variables/GET_WALLET_CHARACTERS.html +0 -3
- package/docs/api/variables/NotificationContext.html +0 -1
- package/docs/api/variables/ONE_M3.html +0 -2
- package/docs/api/variables/POLLING_INTERVAL.html +0 -2
- package/docs/api/variables/STORAGE_KEYS.html +0 -2
- package/docs/api/variables/SmartObjectContext.html +0 -1
- package/docs/api/variables/VaultContext.html +0 -1
- package/docs/api/variables/dAppKit.html +0 -2
- package/tsconfig.json +0 -22
- package/typedoc.json +0 -38
- package/vite-env.d.ts +0 -14
|
@@ -1,5 +0,0 @@
|
|
|
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>transformToAssembly | @evefrontier/dapp-kit - v0.1.3</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.3</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">transformToAssembly</a></li></ul><h1>Function transformToAssembly</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="transformtoassembly"><span class="tsd-kind-call-signature">transformToAssembly</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">objectId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">moveObject</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/MoveObjectData.html" class="tsd-signature-type tsd-kind-interface">MoveObjectData</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/TransformOptions.html" class="tsd-signature-type tsd-kind-interface">TransformOptions</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/AssemblyType.html" class="tsd-signature-type tsd-kind-type-alias">AssemblyType</a><span class="tsd-signature-symbol"><</span><a href="../enums/Assemblies.html" class="tsd-signature-type tsd-kind-enum">Assemblies</a><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">></span><a href="#transformtoassembly" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Transform raw Sui Move object data to AssemblyType</p>
|
|
2
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">objectId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The Sui object address</p>
|
|
3
|
-
</div></li><li><span><span class="tsd-kind-parameter">moveObject</span>: <a href="../interfaces/MoveObjectData.html" class="tsd-signature-type tsd-kind-interface">MoveObjectData</a></span><div class="tsd-comment tsd-typography"><p>The Move object data from GraphQL</p>
|
|
4
|
-
</div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/TransformOptions.html" class="tsd-signature-type tsd-kind-interface">TransformOptions</a></span><div class="tsd-comment tsd-typography"><p>Optional transform options including character info</p>
|
|
5
|
-
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/AssemblyType.html" class="tsd-signature-type tsd-kind-type-alias">AssemblyType</a><span class="tsd-signature-symbol"><</span><a href="../enums/Assemblies.html" class="tsd-signature-type tsd-kind-enum">Assemblies</a><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/utils/transforms.ts#L62">utils/transforms.ts:62</a></li></ul></aside></div></li></ul></section></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.3</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 +0,0 @@
|
|
|
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>transformToCharacter | @evefrontier/dapp-kit - v0.1.3</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.3</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">transformToCharacter</a></li></ul><h1>Function transformToCharacter</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="transformtocharacter"><span class="tsd-kind-call-signature">transformToCharacter</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">characterInfo</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/CharacterInfo.html" class="tsd-signature-type tsd-kind-interface">CharacterInfo</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/DetailedSmartCharacterResponse.html" class="tsd-signature-type tsd-kind-interface">DetailedSmartCharacterResponse</a><a href="#transformtocharacter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Transform CharacterInfo to DetailedSmartCharacterResponse</p>
|
|
2
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">characterInfo</span>: <a href="../interfaces/CharacterInfo.html" class="tsd-signature-type tsd-kind-interface">CharacterInfo</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/DetailedSmartCharacterResponse.html" class="tsd-signature-type tsd-kind-interface">DetailedSmartCharacterResponse</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/utils/transforms.ts#L26">utils/transforms.ts:26</a></li></ul></aside></div></li></ul></section></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.3</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,21 +0,0 @@
|
|
|
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>useConnection | @evefrontier/dapp-kit - v0.1.3</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.3</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">useConnection</a></li></ul><h1>Function useConnection</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="useconnection"><span class="tsd-kind-call-signature">useConnection</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/VaultContextType.html" class="tsd-signature-type tsd-kind-interface">VaultContextType</a><a href="#useconnection" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Hook for managing wallet connection state in EVE Frontier dApps.</p>
|
|
2
|
-
<p>Provides access to wallet connection status, current account information,
|
|
3
|
-
and methods to connect/disconnect wallets. Automatically detects EVE Vault
|
|
4
|
-
wallet availability.</p>
|
|
5
|
-
</div><h4 class="tsd-returns-title">Returns <a href="../interfaces/VaultContextType.html" class="tsd-signature-type tsd-kind-interface">VaultContextType</a></h4><p>Object containing wallet state and connection methods:</p>
|
|
6
|
-
<ul>
|
|
7
|
-
<li><code>currentAccount</code> - The currently connected wallet account (or null)</li>
|
|
8
|
-
<li><code>walletAddress</code> - The connected wallet's address string</li>
|
|
9
|
-
<li><code>isConnected</code> - Boolean indicating connection status</li>
|
|
10
|
-
<li><code>hasEveVault</code> - Boolean indicating if EVE Vault wallet is available</li>
|
|
11
|
-
<li><code>handleConnect</code> - Function to initiate wallet connection</li>
|
|
12
|
-
<li><code>handleDisconnect</code> - Function to disconnect the wallet</li>
|
|
13
|
-
</ul>
|
|
14
|
-
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If used outside of <code>EveFrontierProvider</code></p>
|
|
15
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-basic-usage">Example: Basic usage<a href="#example-basic-usage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">useConnection</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">'@evefrontier/dapp-kit'</span><span class="hl-1">;</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">WalletButton</span><span class="hl-1"> = () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">isConnected</span><span class="hl-1">, </span><span class="hl-7">walletAddress</span><span class="hl-1">, </span><span class="hl-7">handleConnect</span><span class="hl-1">, </span><span class="hl-7">handleDisconnect</span><span class="hl-1"> } = </span><span class="hl-0">useConnection</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (</span><span class="hl-5">isConnected</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">p</span><span class="hl-8">></span><span class="hl-1">Connected: </span><span class="hl-6">{</span><span class="hl-5">walletAddress</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">p</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">handleDisconnect</span><span class="hl-6">}</span><span class="hl-8">></span><span class="hl-1">Disconnect</span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><br/><span class="hl-1"> );</span><br/><span class="hl-1"> }</span><br/><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">handleConnect</span><span class="hl-6">}</span><span class="hl-8">></span><span class="hl-1">Connect Wallet</span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1">};</span>
|
|
16
|
-
</code><button type="button">Copy</button></pre>
|
|
17
|
-
|
|
18
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-check-for-eve-vault">Example: Check for EVE Vault<a href="#example-check-for-eve-vault" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">hasEveVault</span><span class="hl-1">, </span><span class="hl-7">handleConnect</span><span class="hl-1"> } = </span><span class="hl-0">useConnection</span><span class="hl-1">();</span><br/><br/><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">handleConnect</span><span class="hl-6">}</span><span class="hl-1"> </span><span class="hl-10">disabled</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-1">!</span><span class="hl-5">hasEveVault</span><span class="hl-6">}</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-6">{</span><span class="hl-5">hasEveVault</span><span class="hl-12"> </span><span class="hl-1">?</span><span class="hl-12"> </span><span class="hl-2">'Connect EVE Vault'</span><span class="hl-12"> </span><span class="hl-1">:</span><span class="hl-12"> </span><span class="hl-2">'Please install EVE Vault'</span><span class="hl-6">}</span><br/><span class="hl-1"> </span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><br/><span class="hl-1">);</span>
|
|
19
|
-
</code><button type="button">Copy</button></pre>
|
|
20
|
-
|
|
21
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/hooks/useConnection.ts#L53">hooks/useConnection.ts:53</a></li></ul></aside></div></li></ul></section></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.3</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,28 +0,0 @@
|
|
|
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>useNotification | @evefrontier/dapp-kit - v0.1.3</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.3</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">useNotification</a></li></ul><h1>Function useNotification</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="usenotification"><span class="tsd-kind-call-signature">useNotification</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/NotificationContextType.html" class="tsd-signature-type tsd-kind-interface">NotificationContextType</a><a href="#usenotification" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Hook for displaying user notifications in EVE Frontier dApps.</p>
|
|
2
|
-
<p>Provides a simple notification system for displaying success, error, warning,
|
|
3
|
-
and info messages to users. Commonly used after transaction completions
|
|
4
|
-
or to display important status updates.</p>
|
|
5
|
-
</div><h4 class="tsd-returns-title">Returns <a href="../interfaces/NotificationContextType.html" class="tsd-signature-type tsd-kind-interface">NotificationContextType</a></h4><p>Object containing notification state and methods:</p>
|
|
6
|
-
<ul>
|
|
7
|
-
<li><code>notify</code> - Function to trigger a notification</li>
|
|
8
|
-
<li><code>notification</code> - Current notification state object with:
|
|
9
|
-
<ul>
|
|
10
|
-
<li><code>isOpen</code> - Whether notification is visible</li>
|
|
11
|
-
<li><code>message</code> - The notification message</li>
|
|
12
|
-
<li><code>severity</code> - The notification type (success, error, warning, info)</li>
|
|
13
|
-
<li><code>txHash</code> - Optional transaction hash for linking</li>
|
|
14
|
-
<li><code>handleClose</code> - Function to close the notification</li>
|
|
15
|
-
</ul>
|
|
16
|
-
</li>
|
|
17
|
-
</ul>
|
|
18
|
-
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If used outside of <code>EveFrontierProvider</code></p>
|
|
19
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-basic-notification">Example: Basic notification<a href="#example-basic-notification" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">useNotification</span><span class="hl-1">, </span><span class="hl-5">Severity</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">'@evefrontier/dapp-kit'</span><span class="hl-1">;</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">MyComponent</span><span class="hl-1"> = () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">notify</span><span class="hl-1"> } = </span><span class="hl-0">useNotification</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">showSuccess</span><span class="hl-1"> = () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">notify</span><span class="hl-1">({ </span><span class="hl-5">type:</span><span class="hl-1"> </span><span class="hl-5">Severity</span><span class="hl-1">.</span><span class="hl-5">Success</span><span class="hl-1">, </span><span class="hl-5">message:</span><span class="hl-1"> </span><span class="hl-2">'Operation completed!'</span><span class="hl-1"> });</span><br/><span class="hl-1"> };</span><br/><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">showSuccess</span><span class="hl-6">}</span><span class="hl-8">></span><span class="hl-1">Complete</span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1">};</span>
|
|
20
|
-
</code><button type="button">Copy</button></pre>
|
|
21
|
-
|
|
22
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-transaction-notification-with-hash">Example: Transaction notification with hash<a href="#example-transaction-notification-with-hash" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">notify</span><span class="hl-1"> } = </span><span class="hl-0">useNotification</span><span class="hl-1">();</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">handleTransaction</span><span class="hl-1"> = </span><span class="hl-6">async</span><span class="hl-1"> () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">try</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">result</span><span class="hl-1"> = </span><span class="hl-4">await</span><span class="hl-1"> </span><span class="hl-0">sendTransaction</span><span class="hl-1">();</span><br/><span class="hl-1"> </span><span class="hl-0">notify</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-5">type:</span><span class="hl-1"> </span><span class="hl-5">Severity</span><span class="hl-1">.</span><span class="hl-5">Success</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">message:</span><span class="hl-1"> </span><span class="hl-2">'Transaction successful!'</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">txHash:</span><span class="hl-1"> </span><span class="hl-5">result</span><span class="hl-1">.</span><span class="hl-5">digest</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> } </span><span class="hl-4">catch</span><span class="hl-1"> (</span><span class="hl-5">error</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-0">notify</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-5">type:</span><span class="hl-1"> </span><span class="hl-5">Severity</span><span class="hl-1">.</span><span class="hl-5">Error</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">message:</span><span class="hl-1"> </span><span class="hl-2">'Transaction failed'</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">};</span>
|
|
23
|
-
</code><button type="button">Copy</button></pre>
|
|
24
|
-
|
|
25
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-displaying-notification-ui">Example: Displaying notification UI<a href="#example-displaying-notification-ui" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">notification</span><span class="hl-1"> } = </span><span class="hl-0">useNotification</span><span class="hl-1">();</span><br/><br/><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><></span><br/><span class="hl-1"> </span><span class="hl-6">{</span><span class="hl-5">notification</span><span class="hl-12">.</span><span class="hl-5">isOpen</span><span class="hl-12"> </span><span class="hl-1">&&</span><span class="hl-12"> (</span><br/><span class="hl-12"> </span><span class="hl-8"><</span><span class="hl-9">Alert</span><span class="hl-12"> </span><span class="hl-10">severity</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">notification</span><span class="hl-12">.</span><span class="hl-5">severity</span><span class="hl-6">}</span><span class="hl-12"> </span><span class="hl-10">onClose</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">notification</span><span class="hl-12">.</span><span class="hl-5">handleClose</span><span class="hl-6">}</span><span class="hl-8">></span><br/><span class="hl-12"> </span><span class="hl-6">{</span><span class="hl-5">notification</span><span class="hl-12">.</span><span class="hl-5">message</span><span class="hl-6">}</span><br/><span class="hl-12"> </span><span class="hl-8"></</span><span class="hl-9">Alert</span><span class="hl-8">></span><br/><span class="hl-12"> )</span><span class="hl-6">}</span><br/><span class="hl-1"> </span><span class="hl-8"></></span><br/><span class="hl-1">);</span>
|
|
26
|
-
</code><button type="button">Copy</button></pre>
|
|
27
|
-
|
|
28
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/hooks/useNotification.ts#L74">hooks/useNotification.ts:74</a></li></ul></aside></div></li></ul></section></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.3</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,21 +0,0 @@
|
|
|
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>useSmartObject | @evefrontier/dapp-kit - v0.1.3</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.3</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">useSmartObject</a></li></ul><h1>Function useSmartObject</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="usesmartobject"><span class="tsd-kind-call-signature">useSmartObject</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/SmartObjectContextType.html" class="tsd-signature-type tsd-kind-interface">SmartObjectContextType</a><a href="#usesmartobject" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Hook for accessing smart assembly data from the Sui GraphQL Indexer.</p>
|
|
2
|
-
<p>Provides reactive access to the currently selected smart assembly (Smart Storage Unit,
|
|
3
|
-
Smart Turret, Smart Gate, Network Node, etc.) with automatic polling for updates.
|
|
4
|
-
The assembly ID is determined from URL query parameters (<code>?itemId=</code> and <code>?tenant=</code>)
|
|
5
|
-
or environment variables as a Sui object ID (<code>VITE_OBJECT_ID</code>).</p>
|
|
6
|
-
</div><h4 class="tsd-returns-title">Returns <a href="../interfaces/SmartObjectContextType.html" class="tsd-signature-type tsd-kind-interface">SmartObjectContextType</a></h4><p>Object containing assembly state and methods:</p>
|
|
7
|
-
<ul>
|
|
8
|
-
<li><code>assembly</code> - The transformed assembly data (or null if not loaded)</li>
|
|
9
|
-
<li><code>character</code> - The owner character information (or null)</li>
|
|
10
|
-
<li><code>loading</code> - Boolean indicating if data is being fetched</li>
|
|
11
|
-
<li><code>error</code> - Error message string (or null)</li>
|
|
12
|
-
<li><code>refetch</code> - Function to manually refresh assembly data</li>
|
|
13
|
-
</ul>
|
|
14
|
-
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If used outside of <code>EveFrontierProvider</code></p>
|
|
15
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-basic-usage">Example: Basic usage<a href="#example-basic-usage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">useSmartObject</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">'@evefrontier/dapp-kit'</span><span class="hl-1">;</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">AssemblyInfo</span><span class="hl-1"> = () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">assembly</span><span class="hl-1">, </span><span class="hl-7">loading</span><span class="hl-1">, </span><span class="hl-7">error</span><span class="hl-1">, </span><span class="hl-7">refetch</span><span class="hl-1"> } = </span><span class="hl-0">useSmartObject</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (</span><span class="hl-5">loading</span><span class="hl-1">) </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">Loading...</span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (</span><span class="hl-5">error</span><span class="hl-1">) </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">Error: </span><span class="hl-6">{</span><span class="hl-5">error</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (!</span><span class="hl-5">assembly</span><span class="hl-1">) </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">No assembly found</span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">;</span><br/><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">h1</span><span class="hl-8">></span><span class="hl-6">{</span><span class="hl-5">assembly</span><span class="hl-12">.</span><span class="hl-5">name</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">h1</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">p</span><span class="hl-8">></span><span class="hl-1">Type: </span><span class="hl-6">{</span><span class="hl-5">assembly</span><span class="hl-12">.</span><span class="hl-5">type</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">p</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">p</span><span class="hl-8">></span><span class="hl-1">State: </span><span class="hl-6">{</span><span class="hl-5">assembly</span><span class="hl-12">.</span><span class="hl-5">state</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">p</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">p</span><span class="hl-8">></span><span class="hl-1">ID: </span><span class="hl-6">{</span><span class="hl-5">assembly</span><span class="hl-12">.</span><span class="hl-5">id</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">p</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">refetch</span><span class="hl-6">}</span><span class="hl-8">></span><span class="hl-1">Refresh</span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><br/><span class="hl-1"> );</span><br/><span class="hl-1">};</span>
|
|
16
|
-
</code><button type="button">Copy</button></pre>
|
|
17
|
-
|
|
18
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-accessing-owner-character">Example: Accessing owner character<a href="#example-accessing-owner-character" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">assembly</span><span class="hl-1">, </span><span class="hl-7">character</span><span class="hl-1"> } = </span><span class="hl-0">useSmartObject</span><span class="hl-1">();</span><br/><br/><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">p</span><span class="hl-8">></span><span class="hl-1">Assembly: </span><span class="hl-6">{</span><span class="hl-5">assembly</span><span class="hl-12">?.</span><span class="hl-5">name</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">p</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">p</span><span class="hl-8">></span><span class="hl-1">Owner: </span><span class="hl-6">{</span><span class="hl-5">character</span><span class="hl-12">?.</span><span class="hl-5">name</span><span class="hl-12"> </span><span class="hl-1">||</span><span class="hl-12"> </span><span class="hl-2">'Unknown'</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">p</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><br/><span class="hl-1">);</span>
|
|
19
|
-
</code><button type="button">Copy</button></pre>
|
|
20
|
-
|
|
21
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/hooks/useSmartObject.ts#L58">hooks/useSmartObject.ts:58</a></li></ul></aside></div></li></ul></section></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.3</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,50 +0,0 @@
|
|
|
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>useSponsoredTransaction | @evefrontier/dapp-kit - v0.1.3</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.3</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">useSponsoredTransaction</a></li></ul><h1>Function useSponsoredTransaction</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="usesponsoredtransaction"><span class="tsd-kind-call-signature">useSponsoredTransaction</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../types/UseSponsoredTransactionMutationOptions.html" class="tsd-signature-type tsd-kind-type-alias">UseSponsoredTransactionMutationOptions</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">UseMutationResult</span><span class="tsd-signature-symbol"><</span><br/> <a href="../interfaces/SponsoredTransactionOutput.html" class="tsd-signature-type tsd-kind-interface">SponsoredTransactionOutput</a><span class="tsd-signature-symbol">,</span><br/> <a href="../types/UseSponsoredTransactionError.html" class="tsd-signature-type tsd-kind-type-alias">UseSponsoredTransactionError</a><span class="tsd-signature-symbol">,</span><br/> <a href="../types/SponsoredTransactionArgs.html" class="tsd-signature-type tsd-kind-type-alias">SponsoredTransactionArgs</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><a href="#usesponsoredtransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Hook for executing gas-sponsored transactions via EVE Frontier.</p>
|
|
2
|
-
<p>This mutation hook enables dApps to send transactions where gas fees are paid
|
|
3
|
-
by the EVE Frontier backend service, eliminating the need for users to have SUI
|
|
4
|
-
tokens for gas. The wallet must support the <code>evefrontier:sponsoredTransaction</code> feature
|
|
5
|
-
(currently only EVE Vault).</p>
|
|
6
|
-
<p>The hook automatically uses the currently connected wallet and account (unless overridden)
|
|
7
|
-
and handles wallet feature detection and validation.</p>
|
|
8
|
-
<p><strong>Input</strong> (passed to <code>mutate</code> / <code>mutateAsync</code>):</p>
|
|
9
|
-
<ul>
|
|
10
|
-
<li><code>txAction</code> (required) – The sponsored action to run (e.g. BRING_ONLINE, BRING_OFFLINE).</li>
|
|
11
|
-
<li><code>chain</code> (required) – Sui chain id, e.g. <code>"sui:testnet"</code> or <code>"sui:mainnet"</code>.</li>
|
|
12
|
-
<li><code>assembly</code> (required) – Full assembly object (<code>AssemblyType<Assemblies></code>). Must include <code>type</code> and <code>item_id</code> (number). If <code>item_id</code> is missing or invalid, the hook falls back to the URL query param <code>itemId</code> (parsed as a non-negative integer). Fails with AssemblyIdRequiredError if neither source provides a valid id.</li>
|
|
13
|
-
<li><code>tenant</code> (optional) – Tenant ID. When omitted, the hook resolves it from the URL query param (e.g. <code>tenant</code>) with fallback to <code>"testevenet"</code>. Pass explicitly to override.</li>
|
|
14
|
-
<li><code>account</code> (optional) – Signer address. If omitted, the currently connected wallet account is used.</li>
|
|
15
|
-
</ul>
|
|
16
|
-
<p><strong>Output</strong> (on success, in <code>data</code> or resolved from <code>mutateAsync</code>):</p>
|
|
17
|
-
<ul>
|
|
18
|
-
<li><code>digest</code> (required) – Transaction digest.</li>
|
|
19
|
-
<li><code>effects</code> (optional) – Transaction effects, BCS encoded.</li>
|
|
20
|
-
<li><code>rawEffects</code> (optional) – Raw effects bytes.</li>
|
|
21
|
-
</ul>
|
|
22
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">options</span>: <a href="../types/UseSponsoredTransactionMutationOptions.html" class="tsd-signature-type tsd-kind-type-alias">UseSponsoredTransactionMutationOptions</a><span class="tsd-signature-symbol"> = {}</span></span><div class="tsd-comment tsd-typography"><p>React Query mutation options (optional)</p>
|
|
23
|
-
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">UseMutationResult</span><span class="tsd-signature-symbol"><</span><br/> <a href="../interfaces/SponsoredTransactionOutput.html" class="tsd-signature-type tsd-kind-interface">SponsoredTransactionOutput</a><span class="tsd-signature-symbol">,</span><br/> <a href="../types/UseSponsoredTransactionError.html" class="tsd-signature-type tsd-kind-type-alias">UseSponsoredTransactionError</a><span class="tsd-signature-symbol">,</span><br/> <a href="../types/SponsoredTransactionArgs.html" class="tsd-signature-type tsd-kind-type-alias">SponsoredTransactionArgs</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span></h4><p>React Query mutation result with:</p>
|
|
24
|
-
<ul>
|
|
25
|
-
<li><code>mutate(args, options?)</code> - Trigger transaction (fire-and-forget)</li>
|
|
26
|
-
<li><code>mutateAsync(args)</code> - Trigger transaction (returns Promise<SponsoredTransactionOutput>)</li>
|
|
27
|
-
<li><code>isPending</code> - True while the transaction is in progress</li>
|
|
28
|
-
<li><code>isError</code> - True if the last mutation failed</li>
|
|
29
|
-
<li><code>error</code> - Error from the last failed mutation</li>
|
|
30
|
-
<li><code>data</code> - Last successful result (<code>SponsoredTransactionOutput</code>)</li>
|
|
31
|
-
</ul>
|
|
32
|
-
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If no wallet is connected</p>
|
|
33
|
-
</div><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws-1">Throws<a href="#throws-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If no account is selected</p>
|
|
34
|
-
</div><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws-2">Throws<a href="#throws-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If wallet doesn't support sponsored transactions</p>
|
|
35
|
-
</div><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws-3">Throws<a href="#throws-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If assembly ID is missing or invalid (neither assembly.item_id nor itemId query param is a valid non-negative integer)</p>
|
|
36
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-basic-bring-online-transaction">Example: Basic bring online transaction<a href="#example-basic-bring-online-transaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">useSponsoredTransaction</span><span class="hl-1">, </span><span class="hl-5">SponsoredTransactionActions</span><span class="hl-1">, </span><span class="hl-5">useSmartObject</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">"@evefrontier/dapp-kit"</span><span class="hl-1">;</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">BringOnlineButton</span><span class="hl-1"> = () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">assembly</span><span class="hl-1"> } = </span><span class="hl-0">useSmartObject</span><span class="hl-1">();</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-5">mutateAsync</span><span class="hl-1">: </span><span class="hl-7">sendTx</span><span class="hl-1">, </span><span class="hl-7">isPending</span><span class="hl-1"> } = </span><span class="hl-0">useSponsoredTransaction</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-0">handleBringOnline</span><span class="hl-1"> = </span><span class="hl-6">async</span><span class="hl-1"> () </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (!</span><span class="hl-5">assembly</span><span class="hl-1">) </span><span class="hl-4">return</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-4">try</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">result</span><span class="hl-1"> = </span><span class="hl-4">await</span><span class="hl-1"> </span><span class="hl-0">sendTx</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-5">txAction:</span><span class="hl-1"> </span><span class="hl-5">SponsoredTransactionActions</span><span class="hl-1">.</span><span class="hl-7">BRING_ONLINE</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">assembly</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">chain:</span><span class="hl-1"> </span><span class="hl-2">"sui:testnet"</span><span class="hl-1">,</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-5">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-2">"Transaction digest:"</span><span class="hl-1">, </span><span class="hl-5">result</span><span class="hl-1">.</span><span class="hl-5">digest</span><span class="hl-1">);</span><br/><span class="hl-1"> } </span><span class="hl-4">catch</span><span class="hl-1"> (</span><span class="hl-5">error</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-5">console</span><span class="hl-1">.</span><span class="hl-0">error</span><span class="hl-1">(</span><span class="hl-2">"Transaction failed:"</span><span class="hl-1">, </span><span class="hl-5">error</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1"> };</span><br/><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">handleBringOnline</span><span class="hl-6">}</span><span class="hl-1"> </span><span class="hl-10">disabled</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">isPending</span><span class="hl-12"> </span><span class="hl-1">||</span><span class="hl-12"> </span><span class="hl-1">!</span><span class="hl-5">assembly</span><span class="hl-6">}</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-6">{</span><span class="hl-5">isPending</span><span class="hl-12"> </span><span class="hl-1">?</span><span class="hl-12"> </span><span class="hl-2">"Processing..."</span><span class="hl-12"> </span><span class="hl-1">:</span><span class="hl-12"> </span><span class="hl-2">"Bring Online"</span><span class="hl-6">}</span><br/><span class="hl-1"> </span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><br/><span class="hl-1"> );</span><br/><span class="hl-1">};</span>
|
|
37
|
-
</code><button type="button">Copy</button></pre>
|
|
38
|
-
|
|
39
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-with-callbacks">Example: With callbacks<a href="#example-with-callbacks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">assembly</span><span class="hl-1"> } = </span><span class="hl-0">useSmartObject</span><span class="hl-1">();</span><br/><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-5">mutate</span><span class="hl-1">: </span><span class="hl-7">sendTx</span><span class="hl-1"> } = </span><span class="hl-0">useSponsoredTransaction</span><span class="hl-1">();</span><br/><br/><span class="hl-0">sendTx</span><span class="hl-1">(</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-5">txAction:</span><span class="hl-1"> </span><span class="hl-5">SponsoredTransactionActions</span><span class="hl-1">.</span><span class="hl-7">BRING_ONLINE</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">assembly</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">chain:</span><span class="hl-1"> </span><span class="hl-2">"sui:testnet"</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">onSuccess</span><span class="hl-5">:</span><span class="hl-1"> (</span><span class="hl-5">result</span><span class="hl-1">) </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">notify</span><span class="hl-1">({ </span><span class="hl-5">type:</span><span class="hl-1"> </span><span class="hl-5">Severity</span><span class="hl-1">.</span><span class="hl-5">Success</span><span class="hl-1">, </span><span class="hl-5">txHash:</span><span class="hl-1"> </span><span class="hl-5">result</span><span class="hl-1">.</span><span class="hl-5">digest</span><span class="hl-1"> });</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-0">onError</span><span class="hl-5">:</span><span class="hl-1"> (</span><span class="hl-5">error</span><span class="hl-1">) </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">notify</span><span class="hl-1">({ </span><span class="hl-5">type:</span><span class="hl-1"> </span><span class="hl-5">Severity</span><span class="hl-1">.</span><span class="hl-5">Error</span><span class="hl-1">, </span><span class="hl-5">message:</span><span class="hl-1"> </span><span class="hl-5">error</span><span class="hl-1">.</span><span class="hl-5">message</span><span class="hl-1"> });</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">);</span>
|
|
40
|
-
</code><button type="button">Copy</button></pre>
|
|
41
|
-
|
|
42
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-with-assembly-and-optional-account">Example: With assembly and optional account<a href="#example-with-assembly-and-optional-account" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">result</span><span class="hl-1"> = </span><span class="hl-4">await</span><span class="hl-1"> </span><span class="hl-0">sendTx</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-5">txAction:</span><span class="hl-1"> </span><span class="hl-5">SponsoredTransactionActions</span><span class="hl-1">.</span><span class="hl-7">BRING_ONLINE</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">assembly</span><span class="hl-1">, </span><span class="hl-3">// full AssemblyType from useSmartObject() or similar</span><br/><span class="hl-1"> </span><span class="hl-5">chain:</span><span class="hl-1"> </span><span class="hl-2">"sui:testnet"</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-5">account:</span><span class="hl-1"> </span><span class="hl-2">"0x..."</span><span class="hl-1">, </span><span class="hl-3">// optional; defaults to connected wallet account</span><br/><span class="hl-1">});</span>
|
|
43
|
-
</code><button type="button">Copy</button></pre>
|
|
44
|
-
|
|
45
|
-
</div><div class="tsd-tag-see"><h4 class="tsd-anchor-link" id="see">See<a href="#see" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><ul>
|
|
46
|
-
<li><a href="../enums/SponsoredTransactionActions.html" class="tsd-kind-enum">SponsoredTransactionActions</a> for available transaction actions</li>
|
|
47
|
-
<li><a href="../interfaces/SponsoredTransactionInput.html" class="tsd-kind-interface">SponsoredTransactionInput</a> for full input type</li>
|
|
48
|
-
<li><a href="../interfaces/SponsoredTransactionOutput.html" class="tsd-kind-interface">SponsoredTransactionOutput</a> for full output type</li>
|
|
49
|
-
</ul>
|
|
50
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/hooks/useSponsoredTransaction.ts#L275">hooks/useSponsoredTransaction.ts:275</a></li></ul></aside></div></li></ul></section></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.3</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,13 +0,0 @@
|
|
|
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>walletSupportsSponsoredTransaction | @evefrontier/dapp-kit - v0.1.3</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.3</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">walletSupportsSponsoredTransaction</a></li></ul><h1>Function walletSupportsSponsoredTransaction</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="walletsupportssponsoredtransaction"><span class="tsd-kind-call-signature">walletSupportsSponsoredTransaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">wallet</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Wallet</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#walletsupportssponsoredtransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Check if a wallet supports the EVE Frontier sponsored transaction feature.</p>
|
|
2
|
-
<p>Use this to filter available wallets to only those that can execute
|
|
3
|
-
sponsored (gasless) transactions. Currently, only EVE Vault implements
|
|
4
|
-
this feature.</p>
|
|
5
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">wallet</span>: <span class="tsd-signature-type">Wallet</span></span><div class="tsd-comment tsd-typography"><p>The wallet object from wallet-standard</p>
|
|
6
|
-
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if the wallet implements the <code>evefrontier:sponsoredTransaction</code> feature</p>
|
|
7
|
-
<div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-filter-supported-wallets">Example: Filter supported wallets<a href="#example-filter-supported-wallets" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">useWallets</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">"@mysten/dapp-kit-react"</span><span class="hl-1">;</span><br/><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">walletSupportsSponsoredTransaction</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">"@evefrontier/dapp-kit"</span><span class="hl-1">;</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">wallets</span><span class="hl-1"> = </span><span class="hl-0">useWallets</span><span class="hl-1">();</span><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">supportedWallets</span><span class="hl-1"> = </span><span class="hl-5">wallets</span><span class="hl-1">.</span><span class="hl-0">filter</span><span class="hl-1">(</span><span class="hl-5">walletSupportsSponsoredTransaction</span><span class="hl-1">);</span><br/><br/><span class="hl-5">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-2">`</span><span class="hl-6">${</span><span class="hl-5">supportedWallets</span><span class="hl-12">.</span><span class="hl-5">length</span><span class="hl-6">}</span><span class="hl-2"> wallets support sponsored transactions`</span><span class="hl-1">);</span>
|
|
8
|
-
</code><button type="button">Copy</button></pre>
|
|
9
|
-
|
|
10
|
-
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-check-single-wallet">Example: Check single wallet<a href="#example-check-single-wallet" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="tsx"><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">currentWallet</span><span class="hl-1"> } = </span><span class="hl-0">useCurrentWallet</span><span class="hl-1">();</span><br/><br/><span class="hl-4">if</span><span class="hl-1"> (</span><span class="hl-5">currentWallet</span><span class="hl-1"> && </span><span class="hl-0">walletSupportsSponsoredTransaction</span><span class="hl-1">(</span><span class="hl-5">currentWallet</span><span class="hl-1">)) {</span><br/><span class="hl-1"> </span><span class="hl-3">// Wallet supports gasless transactions</span><br/><span class="hl-1">}</span>
|
|
11
|
-
</code><button type="button">Copy</button></pre>
|
|
12
|
-
|
|
13
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/evefrontier/eve-frontier-dapps/blob/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/wallet/utils.ts#L41">wallet/utils.ts:41</a></li></ul></aside></div></li></ul></section></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.3</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/docs/api/hierarchy.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
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>@evefrontier/dapp-kit - v0.1.3</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.3</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"><h1>@evefrontier/dapp-kit - v0.1.3</h1></div><h2>Hierarchy Summary</h2><ul class="tsd-full-hierarchy"><li data-refl="282" id="ContentsBcs"><a href="interfaces/ContentsBcs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>ContentsBcs</a><ul><li data-refl="284" id="ContentsTypeAndBcs"><a href="interfaces/ContentsTypeAndBcs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>ContentsTypeAndBcs</a></li><li data-refl="287" id="ContentsJsonAndBcs"><a href="interfaces/ContentsJsonAndBcs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>ContentsJsonAndBcs</a><ul><li data-refl="290" id="ContentsTypeJsonAndBcs"><a href="interfaces/ContentsTypeJsonAndBcs.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>ContentsTypeJsonAndBcs</a></li></ul></li></ul></li></ul><ul class="tsd-full-hierarchy"><li data-refl="148" id="SmartAssemblyResponse"><a href="interfaces/SmartAssemblyResponse.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>SmartAssemblyResponse</a><ul><li data-refl="163" id="DetailedAssemblyResponse"><a href="interfaces/DetailedAssemblyResponse.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>DetailedAssemblyResponse</a><ul><li data-refl="35" id="AssemblyProperties"><a href="interfaces/AssemblyProperties.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>AssemblyProperties</a></li></ul></li></ul></li></ul><ul class="tsd-full-hierarchy"><li data-refl="277" id="TypeRepr"><a href="interfaces/TypeRepr.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>TypeRepr</a><ul><li data-refl="279" id="TypeReprWithLayout"><a href="interfaces/TypeReprWithLayout.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>TypeReprWithLayout</a></li></ul></li></ul></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.3</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/docs/api/index.html
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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>@evefrontier/dapp-kit - v0.1.3</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.3</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"><h1>@evefrontier/dapp-kit - v0.1.3</h1></div><div class="tsd-panel tsd-typography"><h1 id="evefrontierdapp-kit" class="tsd-anchor-link">@evefrontier/dapp-kit<a href="#evefrontierdapp-kit" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1>
|
|
2
|
-
<p>React SDK for building EVE Frontier dApps on the Sui blockchain.</p>
|
|
3
|
-
<p><strong>Full API documentation (TypeDoc): <a href="http://sui-docs.evefrontier.com/">http://sui-docs.evefrontier.com/</a></strong></p>
|
|
4
|
-
<h2 id="install" class="tsd-anchor-link">Install<a href="#install" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2>
|
|
5
|
-
<pre><code class="bash"><span class="hl-0">pnpm</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@evefrontier/dapp-kit</span><br/><span class="hl-3"># peer deps</span><br/><span class="hl-0">pnpm</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@tanstack/react-query</span><span class="hl-1"> </span><span class="hl-2">react</span>
|
|
6
|
-
</code><button type="button">Copy</button></pre>
|
|
7
|
-
|
|
8
|
-
<blockquote>
|
|
9
|
-
<p>Keep your app’s versions of <strong>react</strong>, <strong>@mysten/dapp-kit-react</strong>, and <strong>@mysten/sui</strong> in sync with the versions used by this package to avoid type or runtime mismatches. Check <code>package.json</code> for the current ranges.</p>
|
|
10
|
-
</blockquote>
|
|
11
|
-
<h2 id="quick-start" class="tsd-anchor-link">Quick start<a href="#quick-start" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2>
|
|
12
|
-
<ol>
|
|
13
|
-
<li>Wrap your app with <code>EveFrontierProvider</code> (requires a <code>QueryClient</code>).</li>
|
|
14
|
-
<li>Use <code>useConnection</code>, <code>useSmartObject</code>, <code>useNotification</code>, and <code>useSponsoredTransaction</code> as needed.</li>
|
|
15
|
-
</ol>
|
|
16
|
-
<pre><code class="tsx"><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">EveFrontierProvider</span><span class="hl-1">, </span><span class="hl-5">useConnection</span><span class="hl-1">, </span><span class="hl-5">useSmartObject</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">"@evefrontier/dapp-kit"</span><span class="hl-1">;</span><br/><span class="hl-4">import</span><span class="hl-1"> { </span><span class="hl-5">QueryClient</span><span class="hl-1"> } </span><span class="hl-4">from</span><span class="hl-1"> </span><span class="hl-2">"@tanstack/react-query"</span><span class="hl-1">;</span><br/><br/><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">queryClient</span><span class="hl-1"> = </span><span class="hl-6">new</span><span class="hl-1"> </span><span class="hl-0">QueryClient</span><span class="hl-1">();</span><br/><br/><span class="hl-6">function</span><span class="hl-1"> </span><span class="hl-0">App</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> (</span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-9">EveFrontierProvider</span><span class="hl-1"> </span><span class="hl-10">queryClient</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">queryClient</span><span class="hl-6">}</span><span class="hl-8">></span><br/><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-9">MyDapp</span><span class="hl-1"> </span><span class="hl-8">/></span><br/><span class="hl-1"> </span><span class="hl-8"></</span><span class="hl-9">EveFrontierProvider</span><span class="hl-8">></span><br/><span class="hl-1"> );</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-6">function</span><span class="hl-1"> </span><span class="hl-0">MyDapp</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">isConnected</span><span class="hl-1">, </span><span class="hl-7">handleConnect</span><span class="hl-1"> } = </span><span class="hl-0">useConnection</span><span class="hl-1">();</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">assembly</span><span class="hl-1">, </span><span class="hl-7">loading</span><span class="hl-1"> } = </span><span class="hl-0">useSmartObject</span><span class="hl-1">();</span><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (!</span><span class="hl-5">isConnected</span><span class="hl-1">) </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">button</span><span class="hl-1"> </span><span class="hl-10">onClick</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-5">handleConnect</span><span class="hl-6">}</span><span class="hl-8">></span><span class="hl-1">Connect</span><span class="hl-8"></</span><span class="hl-11">button</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-4">if</span><span class="hl-1"> (</span><span class="hl-5">loading</span><span class="hl-1">) </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">Loading...</span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-8"><</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-6">{</span><span class="hl-5">assembly</span><span class="hl-12">?.</span><span class="hl-5">name</span><span class="hl-6">}</span><span class="hl-8"></</span><span class="hl-11">div</span><span class="hl-8">></span><span class="hl-1">;</span><br/><span class="hl-1">}</span>
|
|
17
|
-
</code><button type="button">Copy</button></pre>
|
|
18
|
-
|
|
19
|
-
<p>Configure assembly via env (<code>VITE_OBJECT_ID</code>, as Sui Object ID) or URL (<code>?itemId=...&tenant=...</code>, derived).</p>
|
|
20
|
-
<h2 id="more" class="tsd-anchor-link">More<a href="#more" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2>
|
|
21
|
-
<p>Hooks, types, GraphQL helpers, utilities, and wallet APIs are documented at <strong><a href="http://sui-docs.evefrontier.com/">http://sui-docs.evefrontier.com/</a></strong>.</p>
|
|
22
|
-
<h2 id="license" class="tsd-anchor-link">License<a href="#license" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2>
|
|
23
|
-
<p>MIT</p>
|
|
24
|
-
</div></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><details open class="tsd-accordion tsd-page-navigation"><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>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#evefrontierdapp-kit"><span>@evefrontier/dapp-<wbr/>kit</span></a><ul><li><a href="#install"><span>Install</span></a></li><li><a href="#quick-start"><span>Quick start</span></a></li><li><a href="#more"><span>More</span></a></li><li><a href="#license"><span>License</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@evefrontier/dapp-kit - v0.1.3</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 +0,0 @@
|
|
|
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>AddressOwner | @evefrontier/dapp-kit - v0.1.3</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.3</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">AddressOwner</a></li></ul><h1>Interface AddressOwner</h1></div><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">AddressOwner</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#address">address</a><span class="tsd-signature-symbol">:</span> <a href="AddressWithObjects.html" class="tsd-signature-type tsd-kind-interface">AddressWithObjects</a><span class="tsd-signature-symbol"><</span><a href="OwnedObjectNode.html" class="tsd-signature-type tsd-kind-interface">OwnedObjectNode</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/><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/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/graphql/types.ts#L186">graphql/types.ts:186</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-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><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#address" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>address</span></a>
|
|
2
|
-
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="address"><span>address</span><a href="#address" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">address</span><span class="tsd-signature-symbol">:</span> <a href="AddressWithObjects.html" class="tsd-signature-type tsd-kind-interface">AddressWithObjects</a><span class="tsd-signature-symbol"><</span><a href="OwnedObjectNode.html" class="tsd-signature-type tsd-kind-interface">OwnedObjectNode</a><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/a32bb86d61e5e22bb4d52b2e569087e7e5f6b83e/packages/libs/dapp-kit/graphql/types.ts#L187">graphql/types.ts:187</a></li></ul></aside></section></section></details></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><details open class="tsd-accordion tsd-page-navigation"><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>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#address"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>address</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@evefrontier/dapp-kit - v0.1.3</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>
|