Today, Fadroma levels up. Thanks to Secret Network Proposal #183 (SecretNodes, MintScan), after nearly a hundred beta versions, the long-awaited stable 1.0.0
build of our devtool and operations component, @hackbg/fadroma
, is now officially released on NPM.
This package defines a TypeScript framework implementing isolated builds and declarative deployments of smart contracts. This system is tailored for Secret Network and based on real experiences and workflows from the development and maintenance of a CosmWasm-based DEX and lending protocol.
The @hackbg/fadroma
tool serves as the missing link between smart contract platforms and twelve-factor applications. It automates repetitive tasks encountered during development and testing, and its script-friendly API enables you to orchestrate deployments, migrations and other on-chain actions with ease. The @fadroma/agent
library defines the backbone of @hackbg/fadroma
- a TypeScript API for integrating Secret Network smart contracts into any application.
The easiest way to get started with Fadroma, is to create a new project by running the following command in your trusty terminal:
npx @hackbg/fadroma create
This will download the latest version of Fadroma from NPM, and prompt you to name a project, define the contracts in it, etc.
Having created a project, you can compile your code with:
npm run rebuild
You can deploy your project to a localsecret instance with:
npm run devnet deploy
For writing smart contracts, we offer the Rust library, fadroma
. This will be automatically included in contracts created by the project creation utility, and you can add it manually to Cargo.toml
like this:
[dependencies]
fadroma = { version = "0.8.7", features = [ "scrt" ] }
For more information about the features offered by Fadroma, check out our documentation.
Now, what will you build with Fadroma?