Skip to content

Commit b73e8d7

Browse files
committed
feat: use sdk for subgraph commands
1 parent 1acd7ac commit b73e8d7

File tree

6 files changed

+40
-18
lines changed

6 files changed

+40
-18
lines changed

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@
9696
{
9797
"label": "The Graph - Codegen the subgraph types",
9898
"type": "shell",
99-
"command": "btp-scs subgraph codegen",
99+
"command": "bunx settlemint scs subgraph codegen",
100100
"problemMatcher": []
101101
},
102102
{
103103
"label": "The Graph - Build the subgraph",
104104
"type": "shell",
105-
"command": "btp-scs subgraph build",
105+
"command": "bunx settlemint scs subgraph build",
106106
"problemMatcher": [],
107107
"group": {
108108
"kind": "build",
@@ -112,7 +112,7 @@
112112
{
113113
"label": "The Graph - Deploy or update the subgraph",
114114
"type": "shell",
115-
"command": "btp-scs subgraph deploy",
115+
"command": "bunx settlemint scs subgraph deploy",
116116
"problemMatcher": []
117117
}
118118
],

docs/subgraph.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,21 @@ To index your smart contract events, use The Graph middleware.
66
First, edit `subgraph.config.json` to set the addresses of your smart contracts. You can find them in the deployment folder created under `ignation`. Then, run:
77

88
```shell
9-
btp-scs subgraph deploy
10-
```
9+
bunx settlemint login
10+
```
11+
12+
This logs you in to the platform. This command only needs to be run once, so you can skip it if you've already logged in.
13+
14+
Then, run:
15+
16+
```shell
17+
bunx settlemint scs subgraph deploy
18+
```
19+
20+
## Help
21+
22+
To get info about the tasks, run:
23+
24+
```shell
25+
bunx settlemint scs subgraph --help
26+
```

lib/forge-std/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ contract TestContract is Test {
3838
3939
contract ErrorsTest {
4040
function arithmeticError(uint256 a) public {
41-
uint256 a = a - 100;
41+
a = a - 100;
4242
}
4343
}
4444
```

lib/forge-std/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "forge-std",
3-
"version": "1.9.4",
3+
"version": "1.9.5",
44
"description": "Forge Standard Library is a collection of helpful contracts and libraries for use with Forge and Foundry.",
55
"homepage": "https://book.getfoundry.sh/forge/forge-std",
66
"bugs": "https://github.com/foundry-rs/forge-std/issues",

lib/forge-std/src/Vm.sol

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/forge-std/test/Vm.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ contract VmTest is Test {
1313
}
1414

1515
function test_VmSafeInterfaceId() public pure {
16-
assertEq(type(VmSafe).interfaceId, bytes4(0x92fe99ad), "VmSafe");
16+
assertEq(type(VmSafe).interfaceId, bytes4(0xe76e7868), "VmSafe");
1717
}
1818
}

0 commit comments

Comments
 (0)