Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@thirdweb-dev/cli
Advanced tools
The thirdweb CLI is your one-stop-shop for publishing custom contracts for your team or the world to use. The CLI uploads all necessary data to decentralized storage and makes it available to deploy via the thirdweb sdk or thirdweb dashboard.
Publish and deploy smart contracts without dealing with private keys
The thirdweb CLI is your one-stop-shop for publishing custom contracts for your team or the world to use. The CLI uploads all necessary data to decentralized storage and makes it available to deploy via the thirdweb sdk or thirdweb dashboard.
This brings all the capabilities of thirdweb to your own custom contracts.
In order to publish a contract and get all the benefits of the thirdweb platform, your contract needs to extend ThirdwebContract
.
From your project, add the thirdweb contracts dependency:
npm i @thirdweb-dev/contracts
Once installed, in your Solidity contract you want to publish, import and extend ThirdwebContract
. Here's an example:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@thirdweb-dev/contracts/ThirdwebContract.sol";
contract HellowWorldContract is ThirdwebContract {
// your contract code
}
Once your contract code is setup like above, you can now publish it by running:
npx thirdweb deploy
Alternatively, you install the CLI as a global command on your machine:
npm i -g @thirdweb-dev/cli
thirdweb deploy
This command will:
ThirdwebContract
in your projectFrom the thirdweb dashboard, you can review and deploy your contracts.
thirdweb deploy
- Compile & deploy contracts through your dashboardthirdweb publish
- Compile & publish contracts, makes them available for easy deployment later directly from your dashboard.To publish, you need to be in a directory that contains a project which the CLI is compatible with. The projects we support so far:
Clone the repo and run this command after installing the CLI tool:
$ cd examples/hardhat
$ thirdweb publish
The simplest way to work on the CLI locally is to:
build:watch
command to compile any changes in realtime$ npm install -g ./
$ yarn run build:watch
FAQs
thirdweb CLI <a href="ht
The npm package @thirdweb-dev/cli receives a total of 198 weekly downloads. As such, @thirdweb-dev/cli popularity was classified as not popular.
We found that @thirdweb-dev/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.