Skip to content

Commit

Permalink
build(deps-dev): bump typedoc-plugin-missing-exports from 3.0.0 to 3.…
Browse files Browse the repository at this point in the history
…1.0 (#1619)

* build(deps-dev): bump typedoc-plugin-missing-exports from 3.0.0 to 3.1.0

Bumps [typedoc-plugin-missing-exports](https://github.com/Gerrit0/typedoc-plugin-missing-exports) from 3.0.0 to 3.1.0.
- [Changelog](https://github.com/Gerrit0/typedoc-plugin-missing-exports/blob/main/CHANGELOG.md)
- [Commits](Gerrit0/typedoc-plugin-missing-exports@v3.0.0...v3.1.0)

---
updated-dependencies:
- dependency-name: typedoc-plugin-missing-exports
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: fix warning

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fabio Rigamonti <73019897+fabiorigam@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and fabiorigam authored Dec 27, 2024
1 parent 58407ed commit 379fb28
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
32 changes: 14 additions & 18 deletions apps/sdk-vite-integration/src/components/TransferLogs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from "react";
import { useEffect, useState, useCallback } from "react";
import { Address, FixedPointNumber, Units } from '@vechain/sdk-core';
import {
FilterTransferLogsOptions
Expand Down Expand Up @@ -36,9 +36,8 @@ const TransferLogs = () => {
* Function to get the history for the provided address
* @param address The address to get the history for
*/
async function getHistoryFor(address: string): Promise<void> {
const getHistoryFor = useCallback(async (address: string) => {
try {

// Filter options for the transfer logs
const filterOptions: FilterTransferLogsOptions = {
criteriaSet: [
Expand All @@ -54,24 +53,21 @@ const TransferLogs = () => {
};

// Get the transfer logs
const logs =
await thorClient.logs.filterTransferLogs(filterOptions);
const logs = await thorClient.logs.filterTransferLogs(filterOptions);

// Map the logs to the transfer interface
const transfers = logs.map((log) => {
return {
from: log.sender,
to: log.recipient,
amount: log.amount,
meta: log.meta
};
});
const transfers = logs.map((log) => ({
from: log.sender,
to: log.recipient,
amount: log.amount,
meta: log.meta
}));
setTransfers(transfers);
} catch (error) {
setTransfers([]);
console.log(error);
console.error(error);
}
}
}, [fromBlock, toBlock]);

// Update the history when the address changes
useEffect(() => {
Expand All @@ -91,7 +87,7 @@ const TransferLogs = () => {
htmlFor="address"
className="block text-sm font-medium text-gray-700"
>
Address
Address
</label>
<input
type="text"
Expand All @@ -110,7 +106,7 @@ const TransferLogs = () => {
htmlFor="fromblock"
className="block text-sm font-medium text-gray-700"
>
FromBlock
FromBlock
</label>
<input
type="number"
Expand All @@ -129,7 +125,7 @@ const TransferLogs = () => {
htmlFor="Toblock"
className="block text-sm font-medium text-gray-700"
>
ToBlock
ToBlock
</label>
<input
type="number"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"tsup": "^8.3.0",
"turbo": "^2.3.0",
"typedoc": "^0.26.11",
"typedoc-plugin-missing-exports": "^3.0.0",
"typedoc-plugin-missing-exports": "^3.1.0",
"typescript": "^5.6.3",
"typescript-eslint": "8.16.0"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14267,10 +14267,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

typedoc-plugin-missing-exports@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/typedoc-plugin-missing-exports/-/typedoc-plugin-missing-exports-3.0.0.tgz#47ab7cf9b91967f50550b7f07549ed1b743f3726"
integrity sha512-R7D8fYrK34mBFZSlF1EqJxfqiUSlQSmyrCiQgTQD52nNm6+kUtqwiaqaNkuJ2rA2wBgWFecUA8JzHT7x2r7ePg==
typedoc-plugin-missing-exports@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/typedoc-plugin-missing-exports/-/typedoc-plugin-missing-exports-3.1.0.tgz#cab4952c19cae1ab3f91cbbf2d7d17564682b023"
integrity sha512-Sogbaj+qDa21NjB3SlIw4JXSwmcl/WOjwiPNaVEcPhpNG/MiRTtpwV81cT7h1cbu9StpONFPbddYWR0KV/fTWA==

typedoc@^0.26.11:
version "0.26.11"
Expand Down

1 comment on commit 379fb28

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 99%
99% (4371/4415) 97.55% (1399/1434) 99.01% (906/915)
Title Tests Skipped Failures Errors Time
core 836 0 💤 0 ❌ 0 🔥 2m 23s ⏱️
network 729 0 💤 0 ❌ 0 🔥 4m 52s ⏱️
errors 40 0 💤 0 ❌ 0 🔥 17.536s ⏱️
logging 3 0 💤 0 ❌ 0 🔥 18.659s ⏱️
hardhat-plugin 19 0 💤 0 ❌ 0 🔥 59.959s ⏱️
aws-kms-adapter 23 0 💤 0 ❌ 0 🔥 1m 16s ⏱️
ethers-adapter 5 0 💤 0 ❌ 0 🔥 1m 13s ⏱️
rpc-proxy 37 0 💤 0 ❌ 0 🔥 1m 4s ⏱️

Please sign in to comment.