Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hirosystems/clarinet-sdk

Package Overview
Dependencies
Maintainers
4
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hirosystems/clarinet-sdk - npm Package Compare versions

Comparing version 0.10.3 to 1.0.0

5

package.json
{
"name": "@hirosystems/clarinet-sdk",
"version": "0.10.3",
"version": "1.0.0",
"description": "A SDK to interact with Clarity Smart Contracts",
"homepage": "https://docs.hiro.so/clarinet/feature-guides/clarinet-js-sdk",
"repository": {

@@ -60,3 +61,3 @@ "type": "git",

"dependencies": {
"@hirosystems/clarinet-sdk-wasm": "^1.0.1",
"@hirosystems/clarinet-sdk-wasm": "^1.0.2",
"@stacks/transactions": "^6.9.0",

@@ -63,0 +64,0 @@ "kolorist": "^1.8.0",

19

README.md

@@ -5,8 +5,10 @@ # Clarinet SDK

Find the API references of the SDK in [our documentation](https://docs.hiro.so/clarinet/feature-guides/clarinet-js-sdk).
Learn more about unit testing Clarity smart contracts in [this guide](https://docs.hiro.so/clarinet/feature-guides/test-contract-with-clarinet-sdk).
You can use this SDK to:
- call public and read-only functions from smart contracts
- get clarity maps or data-var values
- deploy contracts
- get contract ABI
- write unit tests for Clarity smart contracts
- Call public and read-only functions from smart contracts
- Get clarity maps or data-var values
- Get contract interfaces (available functions and data)
- Write unit tests for Clarity smart contracts

@@ -29,5 +31,7 @@ ## Core

const accounts = simnet.getAccounts();
const w1 = accounts.get("wallet_1")!;
const address1 = accounts.get("wallet_1");
if (!address1) throw new Error("invalid wallet name.");
const call = simnet.callPublicFn("counter", "add", [Cl.uint(1)], w1);
const call = simnet.callPublicFn("counter", "add", [Cl.uint(1)], address1);
console.log(call.result); // Cl.int(Cl.ok(true))

@@ -42,2 +46,3 @@

By default, the SDK will look for a Clarinet.toml file in the current working directory.

@@ -44,0 +49,0 @@ It's also possible to provide the path to the manifest like so:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc