@hirosystems/clarinet-sdk
Advanced tools
Comparing version 0.10.3 to 1.0.0
{ | ||
"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", |
@@ -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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
93452
0
111