Skip to content

Commit 619f863

Browse files
committed
feat: update ide settings
1 parent ba37523 commit 619f863

23 files changed

+272
-52
lines changed

.github/workflows/solidity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
PAT_TOKEN: op://platform/github-commit-pat/credential
8383

8484
- name: Checkout
85-
uses: namespacelabs/nscloud-checkout-action@v5
85+
uses: namespacelabs/nscloud-checkout-action@v6
8686
with:
8787
token: ${{ env.PAT_TOKEN }}
8888

.vscode/extensions.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
{
22
"recommendations": [
33
"nomicfoundation.hardhat-solidity",
4-
"genieai.chatgpt-vscode",
54
"esbenp.prettier-vscode",
65
"cnshenj.vscode-task-manager",
76
"catppuccin.catppuccin-vsc-icons",
8-
"catppuccin.catppuccin-vsc"
7+
"catppuccin.catppuccin-vsc",
8+
"oven.bun-vscode",
9+
"editorconfig.editorconfig",
10+
"dbaeumer.vscode-eslint",
11+
"golang.go",
12+
"graphql.vscode-graphql-syntax",
13+
"yoavbls.pretty-ts-errors",
14+
"rooveterinaryinc.roo-cline",
15+
"bradlc.vscode-tailwindcss",
16+
"shardulm94.trailing-spaces"
917
]
1018
}

lib/forge-std/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ forge install foundry-rs/forge-std
1313
## Contracts
1414
### stdError
1515

16-
This is a helper contract for errors and reverts. In Forge, this contract is particularly helpful for the `expectRevert` cheatcode, as it provides all compiler builtin errors.
16+
This is a helper contract for errors and reverts. In Forge, this contract is particularly helpful for the `expectRevert` cheatcode, as it provides all compiler built-in errors.
1717

1818
See the contract itself for all error codes.
1919

lib/forge-std/foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ optimizer_runs = 200
55

66
[rpc_endpoints]
77
# The RPC URLs are modified versions of the default for testing initialization.
8-
mainnet = "https://eth-mainnet.alchemyapi.io/v2/WV407BEiBmjNJfKo9Uo_55u0z0ITyCOX" # Different API key.
8+
mainnet = "https://eth.merkle.io" # Different API key.
99
optimism_sepolia = "https://sepolia.optimism.io/" # Adds a trailing slash.
1010
arbitrum_one_sepolia = "https://sepolia-rollup.arbitrum.io/rpc/" # Adds a trailing slash.
1111
needs_undefined_env_var = "${UNDEFINED_RPC_URL_PLACEHOLDER}"

lib/forge-std/src/Base.sol

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,26 @@ import {StdStorage} from "./StdStorage.sol";
55
import {Vm, VmSafe} from "./Vm.sol";
66

77
abstract contract CommonBase {
8-
// Cheat code address, 0x7109709ECfa91a80626fF3989D68f67F5b1DD12D.
9-
address internal constant VM_ADDRESS = address(uint160(uint256(keccak256("hevm cheat code"))));
10-
// console.sol and console2.sol work by executing a staticcall to this address.
8+
/// @dev Cheat code address.
9+
/// Calculated as `address(uint160(uint256(keccak256("hevm cheat code"))))`.
10+
address internal constant VM_ADDRESS = 0x7109709ECfa91a80626fF3989D68f67F5b1DD12D;
11+
/// @dev console.sol and console2.sol work by executing a staticcall to this address.
12+
/// Calculated as `address(uint160(uint88(bytes11("console.log"))))`.
1113
address internal constant CONSOLE = 0x000000000000000000636F6e736F6c652e6c6f67;
12-
// Used when deploying with create2, https://github.com/Arachnid/deterministic-deployment-proxy.
14+
/// @dev Used when deploying with create2.
15+
/// Taken from https://github.com/Arachnid/deterministic-deployment-proxy.
1316
address internal constant CREATE2_FACTORY = 0x4e59b44847b379578588920cA78FbF26c0B4956C;
14-
// Default address for tx.origin and msg.sender, 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38.
15-
address internal constant DEFAULT_SENDER = address(uint160(uint256(keccak256("foundry default caller"))));
16-
// Address of the test contract, deployed by the DEFAULT_SENDER.
17+
/// @dev The default address for tx.origin and msg.sender.
18+
/// Calculated as `address(uint160(uint256(keccak256("foundry default caller"))))`.
19+
address internal constant DEFAULT_SENDER = 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38;
20+
/// @dev The address of the first contract `CREATE`d by a running test contract.
21+
/// When running tests, each test contract is `CREATE`d by `DEFAULT_SENDER` with nonce 1.
22+
/// Calculated as `VM.computeCreateAddress(VM.computeCreateAddress(DEFAULT_SENDER, 1), 1)`.
1723
address internal constant DEFAULT_TEST_CONTRACT = 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f;
18-
// Deterministic deployment address of the Multicall3 contract.
24+
/// @dev Deterministic deployment address of the Multicall3 contract.
25+
/// Taken from https://www.multicall3.com.
1926
address internal constant MULTICALL3_ADDRESS = 0xcA11bde05977b3631167028862bE2a173976CA11;
20-
// The order of the secp256k1 curve.
27+
/// @dev The order of the secp256k1 curve.
2128
uint256 internal constant SECP256K1_ORDER =
2229
115792089237316195423570985008687907852837564279074904382605163141518161494337;
2330

lib/forge-std/src/Script.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {console2} from "./console2.sol";
1010
import {safeconsole} from "./safeconsole.sol";
1111
import {StdChains} from "./StdChains.sol";
1212
import {StdCheatsSafe} from "./StdCheats.sol";
13+
import {StdConstants} from "./StdConstants.sol";
1314
import {stdJson} from "./StdJson.sol";
1415
import {stdMath} from "./StdMath.sol";
1516
import {StdStorage, stdStorageSafe} from "./StdStorage.sol";

lib/forge-std/src/StdChains.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ abstract contract StdChains {
196196

197197
// If adding an RPC here, make sure to test the default RPC URL in `test_Rpcs` in `StdChains.t.sol`
198198
setChainWithDefaultRpcUrl("anvil", ChainData("Anvil", 31337, "http://127.0.0.1:8545"));
199-
setChainWithDefaultRpcUrl(
200-
"mainnet", ChainData("Mainnet", 1, "https://eth-mainnet.alchemyapi.io/v2/pwc5rmJhrdoaSEfimoKEmsvOjKSmPDrP")
201-
);
199+
setChainWithDefaultRpcUrl("mainnet", ChainData("Mainnet", 1, "https://eth.llamarpc.com"));
202200
setChainWithDefaultRpcUrl(
203201
"sepolia", ChainData("Sepolia", 11155111, "https://sepolia.infura.io/v3/b9794ad1ddf84dfb8c34d6bb5dca2001")
204202
);

lib/forge-std/src/StdConstants.sol

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity >=0.6.2 <0.9.0;
3+
4+
import {IMulticall3} from "./interfaces/IMulticall3.sol";
5+
import {Vm} from "./Vm.sol";
6+
7+
library StdConstants {
8+
/// @dev Cheat code address.
9+
/// Calculated as `address(uint160(uint256(keccak256("hevm cheat code"))))`.
10+
Vm internal constant VM = Vm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
11+
/// @dev console.sol and console2.sol work by executing a staticcall to this address.
12+
/// Calculated as `address(uint160(uint88(bytes11("console.log"))))`.
13+
address internal constant CONSOLE = 0x000000000000000000636F6e736F6c652e6c6f67;
14+
/// @dev Used when deploying with create2.
15+
/// Taken from https://github.com/Arachnid/deterministic-deployment-proxy.
16+
address internal constant CREATE2_FACTORY = 0x4e59b44847b379578588920cA78FbF26c0B4956C;
17+
/// @dev The default address for tx.origin and msg.sender.
18+
/// Calculated as `address(uint160(uint256(keccak256("foundry default caller"))))`.
19+
address internal constant DEFAULT_SENDER = 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38;
20+
/// @dev The address of the first contract `CREATE`d by a running test contract.
21+
/// When running tests, each test contract is `CREATE`d by `DEFAULT_SENDER` with nonce 1.
22+
/// Calculated as `VM.computeCreateAddress(VM.computeCreateAddress(DEFAULT_SENDER, 1), 1)`.
23+
address internal constant DEFAULT_TEST_CONTRACT = 0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f;
24+
/// @dev Deterministic deployment address of the Multicall3 contract.
25+
/// Taken from https://www.multicall3.com.
26+
IMulticall3 internal constant MULTICALL3_ADDRESS = IMulticall3(0xcA11bde05977b3631167028862bE2a173976CA11);
27+
/// @dev The order of the secp256k1 curve.
28+
uint256 internal constant SECP256K1_ORDER =
29+
115792089237316195423570985008687907852837564279074904382605163141518161494337;
30+
}

lib/forge-std/src/Test.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {safeconsole} from "./safeconsole.sol";
1313
import {StdAssertions} from "./StdAssertions.sol";
1414
import {StdChains} from "./StdChains.sol";
1515
import {StdCheats} from "./StdCheats.sol";
16+
import {StdConstants} from "./StdConstants.sol";
1617
import {stdError} from "./StdError.sol";
1718
import {StdInvariant} from "./StdInvariant.sol";
1819
import {stdJson} from "./StdJson.sol";

lib/forge-std/src/interfaces/IERC1155.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.6.2;
33

4-
import "./IERC165.sol";
4+
import {IERC165} from "./IERC165.sol";
55

66
/// @title ERC-1155 Multi Token Standard
77
/// @dev See https://eips.ethereum.org/EIPS/eip-1155

0 commit comments

Comments
 (0)