Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@tableland/eth
Advanced tools
Tableland Tables contract and client components
This is the Tableland Tables contract and client components. This is the first pass, and is subject to wild changes without notice!
You can build the Typescript client locally:
npm install
npx hardhat compile
npm run build
Run the test suite:
npm test
Test with gas reporting:
REPORT_GAS=true npx hardhat test
Deployments are handled on a per-network basis:
npx hardhat run scripts/deploy.ts --network optimism
Network names may include context for the target Tableland network:
npx hardhat run scripts/deploy.ts --network optimism-kovan-staging
Where optimism-kovan-staging
indicates a deployment to the Optimism Kovan testnet for the Tableland staging network.
Refer to the proxies
entry in hardhat.config.js
for the list of current deployments.
The Tableland contracts are currently upgradeable at this early stage of development. Upgrades are handled much like deployments:
npx hardhat run scripts/upgrade.ts --network optimism
Upgrading on a network only works if a previous deployment already exists, referenced by a corresponding proxy address in the proxies
entry in hardhat.config.js
.
You can you grab the assets you need by compiling and then using some jq
magic:
cat artifacts/contracts/TablelandTables.sol/TablelandTables.json | jq '.abi' > abi.json
cat artifacts/contracts/TablelandTables.sol/TablelandTables.json | jq -r '.bytecode' > bytecode.bin
You can use the above abi.json
to build the Go client:
mkdir gobuild
abigen --abi ./abi.json --bin ./bytecode.bin --pkg contracts --out gobuild/Registry.go
To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Goerli.
In this project, copy the .env.example
file to a file named .env
, and then edit it to fill in the details. Enter your Etherscan API key, your Goerli node URL (e.g., from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env
file in place, first deploy your contract:
npx hardhat run scripts/deploy.ts --network ethereum-goerli
Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS
in this command:
npx hardhat verify DEPLOYED_CONTRACT_ADDRESS --network ethereum-goerli
For faster runs of your tests and scripts, consider skipping ts-node's type checking by setting the environment variable TS_NODE_TRANSPILE_ONLY
to 1
in hardhat's environment. For more details see the documentation.
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT AND Apache-2.0, © 2021-2022 Tableland Network Contributors
FAQs
On-chain ETH registry and client components for Tableland
We found that @tableland/eth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.