Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@tableland/hardhat
Advanced tools
Readme
Tableland support for Hardhat projects.
This plugin makes it easy to run and interact with a local Tableland node for development and testing purposes. Upcoming versions will expand functionality to include support for Tableland table creation and management, plus more.
npm install @tableland/hardhat --save-dev
Import the plugin in your hardhat.config.js
:
require("@tableland/hardhat");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "@tableland/hardhat";
This plugin extends the HardhatUserConfig
object with an optional
localTableland
field of type Config
, which allows you to configure how local Tableland will run.
This is an example of how to set it:
const config: HardhatUserConfig = {
...
localTableland: {
silent: false,
verbose: false,
},
...
};
export default config;
This plugin creates no additional tasks, but does add a new network called local-tablaland
that can be passed to any task that supports the --network
flag. For example:
npx hardhat test --network local-tableland
and:
npx hardhat run scripts/deploy.ts --network local-tableland
and:
npx hardhat node --network local-tableland
This plugin extends the Hardhat Runtime Environment by adding a localTableland
field whose type is:
{
start: (config?: Config) => Promise<void>;
stop: () => Promise<void>;
}
These functions allow you to progamatically interact with local Tableland, in a Hardhat script, for example.
There are no additional steps you need to take for this plugin to work. Simply use the local-tableland
network when running Hardhat tasks or interact with the Hardhat Runtime Environment's localTableland
API programmatically.
Important note: The @nomicfoundation/hardhat-network-helpers
package provides a useful function loadFixture
that will reset the state of the Hardhat network to a snapshot that your fixture captured. Unfortunately, Local Tablelend can't yet deal with this type of state reset, so avoid using loadFixture
when using Local Tableland.
FAQs
Hardhat TypeScript plugin boilerplate
The npm package @tableland/hardhat receives a total of 13 weekly downloads. As such, @tableland/hardhat popularity was classified as not popular.
We found that @tableland/hardhat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.