-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update
@hirosystems/clarinet-sdk
- Loading branch information
Showing
25 changed files
with
1,130 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'demo-project': minor | ||
'clarigen-docs': minor | ||
'@clarigen/test': minor | ||
'@clarigen/cli': minor | ||
'@clarigen/boot': minor | ||
'@clarigen/core': minor | ||
'@clarigen/node': minor | ||
'@clarigen/web': minor | ||
--- | ||
|
||
Updates `@hirosystems/clarinet-sdk` to work with Clarity version 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This file is automatically generated from the | ||
// version in `package.json` | ||
|
||
export const version = '2.0.4'; | ||
export const version = '2.0.5'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DefaultCommand } from '../src/commands/default-command'; | ||
import { getSession } from '../src/clarinet-sdk'; | ||
import { test, describe, expect } from 'vitest'; | ||
import { Config } from '../src/config'; | ||
|
||
test('getting a session with a project that has testnet requirements', async () => { | ||
const config = await Config.load('./test/dependencies'); | ||
// console.log('config', config); | ||
const session = await getSession(config); | ||
const testContract = session.contracts.find(c => c.contract_id.endsWith('.TB-test-3')); | ||
expect(testContract).toBeDefined(); | ||
// console.log('session', session); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
tests/** linguist-vendored | ||
vitest.config.js linguist-vendored | ||
* text=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
**/settings/Mainnet.toml | ||
**/settings/Testnet.toml | ||
.cache/** | ||
history.txt | ||
|
||
logs | ||
*.log | ||
npm-debug.log* | ||
coverage | ||
*.info | ||
costs-reports.json | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
{ | ||
"files.eol": "\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "check contracts", | ||
"group": "test", | ||
"type": "shell", | ||
"command": "clarinet check" | ||
}, | ||
{ | ||
"type": "npm", | ||
"script": "test", | ||
"group": "test", | ||
"problemMatcher": [], | ||
"label": "npm test" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[project] | ||
name = 'dependency-test' | ||
description = 'dependency-test' | ||
authors = [] | ||
telemetry = true | ||
cache_dir = './.cache' | ||
|
||
# [[project.requirements]] | ||
# contract_id = 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-oracle-v2' | ||
|
||
# [[project.requirements]] | ||
# contract_id = 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-store-v1' | ||
|
||
# [[project.requirements]] | ||
# contract_id = 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-pnau-decoder-v1' | ||
|
||
[[project.requirements]] | ||
contract_id = 'ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG.TB-test-3' | ||
|
||
[repl] | ||
clarity_wasm_mode = false | ||
show_timings = false | ||
|
||
[repl.analysis] | ||
# passes = ['check_checker'] | ||
|
||
[repl.analysis.check_checker] | ||
strict = false | ||
trusted_sender = false | ||
trusted_caller = false | ||
callee_filter = false |
67 changes: 67 additions & 0 deletions
67
packages/cli/test/dependencies/deployments/default.simnet-plan.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
id: 0 | ||
name: "Simulated deployment, used as a default for `clarinet console`, `clarinet test` and `clarinet check`" | ||
network: simnet | ||
genesis: | ||
wallets: | ||
- name: deployer | ||
address: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM | ||
balance: "100000000000000" | ||
- name: faucet | ||
address: STNHKEPYEPJ8ET55ZZ0M5A34J0R3N5FM2CMMMAZ6 | ||
balance: "100000000000000" | ||
- name: wallet_1 | ||
address: ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5 | ||
balance: "100000000000000" | ||
- name: wallet_2 | ||
address: ST2CY5V39NHDPWSXMW9QDT3HC3GD6Q6XX4CFRK9AG | ||
balance: "100000000000000" | ||
- name: wallet_3 | ||
address: ST2JHG361ZXG51QTKY2NQCVBPPRRE2KZB1HR05NNC | ||
balance: "100000000000000" | ||
- name: wallet_4 | ||
address: ST2NEB84ASENDXKYGJPQW86YXQCEFEX2ZQPG87ND | ||
balance: "100000000000000" | ||
- name: wallet_5 | ||
address: ST2REHHS5J3CERCRBEPMGH7921Q6PYKAADT7JP2VB | ||
balance: "100000000000000" | ||
- name: wallet_6 | ||
address: ST3AM1A56AK2C1XAFJ4115ZSV26EB49BVQ10MGCS0 | ||
balance: "100000000000000" | ||
- name: wallet_7 | ||
address: ST3PF13W7Z0RRM42A8VZRVFQ75SV1K26RXEP8YGKJ | ||
balance: "100000000000000" | ||
- name: wallet_8 | ||
address: ST3NBRSFKX28FQ2ZJ1MAKX58HKHSDGNV5N7R21XCP | ||
balance: "100000000000000" | ||
contracts: | ||
- costs | ||
- pox | ||
- pox-2 | ||
- pox-3 | ||
- pox-4 | ||
- lockup | ||
- costs-2 | ||
- costs-3 | ||
- cost-voting | ||
- bns | ||
plan: | ||
batches: | ||
- id: 0 | ||
transactions: | ||
- emulated-contract-publish: | ||
contract-name: commission-trait | ||
emulated-sender: ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG | ||
path: "./.cache/requirements/ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG.commission-trait.clar" | ||
clarity-version: 1 | ||
- emulated-contract-publish: | ||
contract-name: sip-09 | ||
emulated-sender: ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG | ||
path: "./.cache/requirements/ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG.sip-09.clar" | ||
clarity-version: 1 | ||
- emulated-contract-publish: | ||
contract-name: TB-test-3 | ||
emulated-sender: ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG | ||
path: "./.cache/requirements/ST3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3PXDYJG.TB-test-3.clar" | ||
clarity-version: 1 | ||
epoch: "2.1" |
Oops, something went wrong.