File tree Expand file tree Collapse file tree 6 files changed +34
-36
lines changed
Expand file tree Collapse file tree 6 files changed +34
-36
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Foundry CI
22
33on :
44 push :
5+ branches : [main]
56 pull_request :
6- workflow_dispatch :
7+ branches : [main]
78
89env :
910 FOUNDRY_PROFILE : ci
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.20 ;
2+ pragma solidity ^ 0.8.28 ;
33
44import "forge-std/Script.sol " ;
5- import {Vm} from "forge-std/Vm.sol " ;
6- import {BatchCallAndSponsor} from "../src/BatchCallAndSponsor.sol " ;
7- import {ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol " ;
8- import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol " ;
9-
10- contract MockERC20 is ERC20 {
11- constructor () ERC20 ("Mock Token " , "MOCK " ) {}
12-
13- function mint (address to , uint256 amount ) external {
14- _mint (to, amount);
15- }
16- }
5+ import "forge-std/Vm.sol " ;
6+ import "src/BatchCallAndSponsor.sol " ;
7+ import "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol " ;
8+ import "lib/openzeppelin-contracts/contracts/utils/cryptography/MessageHashUtils.sol " ;
9+ import "test/MockERC20.sol " ;
1710
1811contract BatchCallAndSponsorScript is Script {
1912 // Alice's address and private key (EOA with no initial contract code).
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.20 ;
2+ pragma solidity ^ 0.8.28 ;
33
44import "forge-std/Script.sol " ;
5- import {Vm} from "forge-std/Vm.sol " ;
6- import {BatchCallAndSponsor} from " ../ src/BatchCallAndSponsor.sol " ;
7- import { ERC20 } from " @ openzeppelin/contracts/token/ERC20/ERC20.sol " ;
8- import {MessageHashUtils} from " @ openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol " ;
5+ import "forge-std/Vm.sol " ;
6+ import " src/BatchCallAndSponsor.sol " ;
7+ import " lib/ openzeppelin-contracts /contracts/token/ERC20/ERC20.sol " ;
8+ import " lib/ openzeppelin-contracts /contracts/utils/cryptography/MessageHashUtils.sol " ;
99
1010contract DeployBatchCaller is Script {
1111 BatchCallAndSponsor public batchCaller;
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.20 ;
2+ pragma solidity ^ 0.8.28 ;
33
4- import "@ openzeppelin/contracts/utils/cryptography/ECDSA.sol " ;
5- import "@ openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol " ;
4+ import "lib/ openzeppelin-contracts /contracts/utils/cryptography/ECDSA.sol " ;
5+ import "lib/ openzeppelin-contracts /contracts/utils/cryptography/MessageHashUtils.sol " ;
66
77/**
88 * @title BatchCallAndSponsor
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.20 ;
2+ pragma solidity ^ 0.8.28 ;
33
44import {Test, console2} from "forge-std/Test.sol " ;
5- import {Vm} from "forge-std/Vm.sol " ;
6- import {BatchCallAndSponsor} from "../src/BatchCallAndSponsor.sol " ;
7- import {ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol " ;
8- import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol " ;
9-
10- contract MockERC20 is ERC20 {
11- constructor () ERC20 ("Mock Token " , "MOCK " ) {}
12-
13- function mint (address to , uint256 amount ) external {
14- _mint (to, amount);
15- }
16- }
5+ import "forge-std/Vm.sol " ;
6+ import "lib/openzeppelin-contracts/contracts/utils/cryptography/MessageHashUtils.sol " ;
7+ import "src/BatchCallAndSponsor.sol " ;
8+ import "test/MockERC20.sol " ;
179
1810contract BatchCallAndSponsorTest is Test {
1911 // Alice's address and private key (EOA with no initial contract code).
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: MIT
2+ pragma solidity ^ 0.8.28 ;
3+
4+ import "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol " ;
5+
6+ contract MockERC20 is ERC20 {
7+ constructor () ERC20 ("Mock Token " , "MOCK " ) {}
8+
9+ function mint (address to , uint256 amount ) external {
10+ _mint (to, amount);
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments