Skip to content

Commit

Permalink
deps: updated solidity-ibc, forge-std and alloy (#122)
Browse files Browse the repository at this point in the history
* imp: updated forge-std

* deps: updated solidity-ibc

* deps: require solidity version `^0.8.28`

* imp: fixed a solidity compiler version

* deps: updated solidity-ibc

* deps: updated alloy
  • Loading branch information
srdtrk authored Oct 28, 2024
1 parent 7b302f7 commit d5b686f
Show file tree
Hide file tree
Showing 24 changed files with 212 additions and 94 deletions.
257 changes: 187 additions & 70 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ reqwest = { version = "0.12", features = ["json"] }
tokio = { version = "1", features = ["full"] }
time = { version = "0.3", default-features = false, features = ["macros", "parsing"] }
alloy-primitives = "0.8"
alloy-contract = "0.4"
alloy-node-bindings = "0.4"
alloy = "0.4"
alloy-contract = "0.5"
alloy-node-bindings = "0.5"
alloy = "0.5"
bincode = "1.3"
dotenv = "0.15"
subtle-encoding = "0.5"
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion contracts/script/SP1ICS07Tendermint.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { Script } from "forge-std/Script.sol";
import { stdJson } from "forge-std/StdJson.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/ISP1ICS07Tendermint.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { ILightClient } from "solidity-ibc/interfaces/ILightClient.sol";
import { IICS07TendermintMsgs } from "../src/msgs/IICS07TendermintMsgs.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/SP1ICS07Tendermint.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { IICS07TendermintMsgs } from "./msgs/IICS07TendermintMsgs.sol";
import { IUpdateClientMsgs } from "./msgs/IUpdateClientMsgs.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/errors/ISP1ICS07TendermintErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

interface ISP1ICS07TendermintErrors {
/// @notice The error that is returned when the verification key does not match the expected value.
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/msgs/IICS07TendermintMsgs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { IICS02ClientMsgs } from "solidity-ibc/msgs/IICS02ClientMsgs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/src/msgs/IMembershipMsgs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { ISP1Msgs } from "./ISP1Msgs.sol";
import { IICS07TendermintMsgs } from "./IICS07TendermintMsgs.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/msgs/IMisbehaviourMsgs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { IICS07TendermintMsgs } from "./IICS07TendermintMsgs.sol";
import { ISP1Msgs } from "./ISP1Msgs.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/msgs/ISP1Msgs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

/// @title SP1 Messages
interface ISP1Msgs {
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/msgs/IUcAndMembershipMsgs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { IUpdateClientMsgs } from "./IUpdateClientMsgs.sol";
import { IMembershipMsgs } from "./IMembershipMsgs.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/msgs/IUpdateClientMsgs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { IICS07TendermintMsgs } from "./IICS07TendermintMsgs.sol";
import { ISP1Msgs } from "./ISP1Msgs.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/utils/Paths.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

library Paths {
/// @notice Compares two bytes arrays
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/utils/UnionMembership.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

import { Ics23, UnionIcs23 } from "union-lib/ICS23.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/Membership.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/MembershipTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/Misbehaviour.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/SP1ICS07TendermintTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/UcAndMembership.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/UnionMembership.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/UpdateClient.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25;
pragma solidity ^0.8.28;

// solhint-disable-next-line no-global-import
import "forge-std/console.sol";
Expand Down
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ libs = ["node_modules", "contracts/lib"]
fs_permissions = [{ access = "read-write", path = "./" },]
via_ir = true
no_match_path = "node_modules/**/test/**"
solc = "0.8.28"

[fmt]
bracket_spacing = true
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@openzeppelin/contracts": "^5.1.0",
"forge-std": "github:foundry-rs/forge-std#v1.9.2",
"sp1-contracts": "github:succinctlabs/sp1-contracts#v3.0.0",
"solidity-ibc": "github:cosmos/solidity-ibc-eureka#c3d851ff652a42e204846ce0ff60e373d477724d",
"solidity-ibc": "github:cosmos/solidity-ibc-eureka#e120d3168bbbde043e3c4a64c43ffebb36766c65",
"union": "github:unionlabs/union#4a6e7229b78de70742cf719fb26409cab3cca631"
},
"devDependencies": {
"forge-std": "github:foundry-rs/forge-std#v1.9.4",
"solhint": "^5.0.3",
"@defi-wonderland/natspec-smells": "^1.1.5"
},
Expand Down

0 comments on commit d5b686f

Please sign in to comment.