Skip to content

Commit

Permalink
feat: use sdk for scs commands
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdha920 committed Dec 19, 2024
1 parent 71c4959 commit 797f5fe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"label": "Foundry - Build",
"type": "shell",
"command": "btp-scs foundry build",
"command": "bunx settlemint scs foundry build",
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -28,7 +28,7 @@
{
"label": "Hardhat - Build",
"type": "shell",
"command": "btp-scs hardhat build",
"command": "bunx settlemint scs hardhat build",
"group": {
"kind": "build",
"isDefault": false
Expand All @@ -38,59 +38,59 @@
{
"label": "Foundry - Test",
"type": "shell",
"command": "btp-scs foundry test",
"command": "bunx settlemint scs foundry test",
"group": "test",
"problemMatcher": []
},
{
"label": "Hardhat - Test",
"type": "shell",
"command": "btp-scs hardhat test",
"command": "bunx settlemint scs hardhat test",
"group": "test",
"problemMatcher": []
},
{
"label": "Foundry - Format",
"type": "shell",
"command": "btp-scs foundry format",
"command": "bunx settlemint scs foundry format",
"problemMatcher": []
},
{
"label": "Foundry - Start network",
"type": "shell",
"command": "btp-scs foundry network",
"command": "bunx settlemint scs foundry network",
"problemMatcher": [],
"isBackground": true
},
{
"label": "Hardhat - Start network",
"type": "shell",
"command": "btp-scs hardhat network",
"command": "bunx settlemint scs hardhat network",
"problemMatcher": [],
"isBackground": true,
},
{
"label": "Hardhat - Deploy to local network",
"type": "shell",
"command": "btp-scs hardhat deploy local ${input:extra-deployment} -m ${input:deployment-module}",
"command": "bunx settlemint scs hardhat deploy local ${input:extra-deployment} -m ${input:deployment-module}",
"problemMatcher": []
},
{
"label": "Hardhat - Reset & Deploy to local network",
"type": "shell",
"command": "btp-scs hardhat deploy local --reset ${input:extra-deployment} -m ${input:deployment-module}",
"command": "bunx settlemint scs hardhat deploy local --reset ${input:extra-deployment} -m ${input:deployment-module}",
"problemMatcher": []
},
{
"label": "Hardhat - Deploy to platform network",
"type": "shell",
"command": "btp-scs hardhat deploy remote ${input:extra-deployment} -m ${input:deployment-module}",
"command": "bunx settlemint scs hardhat deploy remote ${input:extra-deployment} -m ${input:deployment-module}",
"problemMatcher": []
},
{
"label": "Hardhat - Reset & Deploy to platform network",
"type": "shell",
"command": "btp-scs hardhat deploy remote --reset ${input:extra-deployment} -m ${input:deployment-module}",
"command": "bunx settlemint scs hardhat deploy remote --reset ${input:extra-deployment} -m ${input:deployment-module}",
"problemMatcher": []
},
{
Expand Down
16 changes: 8 additions & 8 deletions docs/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,57 @@
You can either use Forge:

```shell
btp-scs foundry build
bunx settlemint scs foundry build
```

or Hardhat:

```shell
btp-scs hardhat build
bunx settlemint scs hardhat build
```

## Test

With Forge:

```shell
btp-scs foundry test
bunx settlemint scs foundry test
```

or Hardhat:

```shell
btp-scs hardhat test
bunx settlemint scs hardhat test
```

## Format

To format your contracts, run

```shell
btp-scs foundry format
bunx settlemint scs foundry format
```

## Deploy to local network

You can deploy your contracts to a local network. First, run

```shell
btp-scs hardhat network
bunx settlemint scs hardhat network
```

then:

```shell
btp-scs hardhat deploy local -m ignition/modules/main.ts
bunx settlemint scs hardhat deploy local -m ignition/modules/main.ts
```

## Deploy to platform network

You can also deploy your contracts to the network running on the platform by executing the following command:

```shell
btp-scs hardhat deploy remote -m ignition/modules/main.ts
bunx settlemint scs hardhat deploy remote -m ignition/modules/main.ts
```

## Help
Expand Down

0 comments on commit 797f5fe

Please sign in to comment.