Skip to content

Commit

Permalink
Merge pull request #28 from exp-table/cleanup
Browse files Browse the repository at this point in the history
chore: upgrade to latest solady, use 0.8.21 in foundry.toml and other misc.
  • Loading branch information
0xTimepunk authored Sep 13, 2023
2 parents 9eed2aa + 5e0a5d2 commit ab99276
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 78 deletions.
60 changes: 30 additions & 30 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
AxelarHelperTest:testCustomOrderingAxelar() (gas: 341231)
AxelarHelperTest:testFancyAxelar() (gas: 234946)
AxelarHelperTest:testCustomOrderingAxelar() (gas: 341240)
AxelarHelperTest:testFancyAxelar() (gas: 234955)
AxelarHelperTest:testMultiDstAxelar() (gas: 390512)
AxelarHelperTest:testSimpleAxelar() (gas: 189522)
CelerHelperTest:testCustomOrderingCeler() (gas: 108322)
CelerHelperTest:testFancyCeler() (gas: 117841)
CelerHelperTest:testMultiDstCeler() (gas: 151149)
CelerHelperTest:testSimpleCeler() (gas: 71938)
CelerHelperTest:testSimpleCelerWithEstimates() (gas: 72328)
HyperlaneHelperTest:testCustomOrderingHL() (gas: 145179)
HyperlaneHelperTest:testFancyHL() (gas: 146237)
HyperlaneHelperTest:testMultiDstHL() (gas: 193359)
HyperlaneHelperTest:testSimpleHL() (gas: 98351)
HyperlaneHelperTest:testSimpleHLWithEstimates() (gas: 98836)
LayerZeroHelperTest:testCustomOrderingLZ() (gas: 339820)
LayerZeroHelperTest:testFancyLZ() (gas: 295097)
LayerZeroHelperTest:testMultiDstLZ() (gas: 475776)
LayerZeroHelperTest:testSimpleLZ() (gas: 245549)
LayerZeroHelperTest:testSimpleLZWithEstimates() (gas: 246017)
StargateHelperTest:testCustomOrderingSG() (gas: 797976)
StargateHelperTest:testFancySG() (gas: 589535)
StargateHelperTest:testSimpleSG() (gas: 537570)
StargateHelperTest:testSimpleSGWithEstimates() (gas: 538082)
WormholeAutomaticRelayerHelperTest:testCustomOrderingWormhole() (gas: 287323)
WormholeAutomaticRelayerHelperTest:testFancyWormhole() (gas: 226022)
WormholeAutomaticRelayerHelperTest:testMultiDstWormhole() (gas: 349780)
WormholeAutomaticRelayerHelperTest:testSimpleWormhole() (gas: 179638)
WormholeSpecializedRelayerHelperTest:testCustomOrderingWormhole() (gas: 595375)
WormholeSpecializedRelayerHelperTest:testFancyWormhole() (gas: 330260)
WormholeSpecializedRelayerHelperTest:testMultiDstWormhole() (gas: 631627)
WormholeSpecializedRelayerHelperTest:testSimpleWormhole() (gas: 333052)
AxelarHelperTest:testSimpleAxelar() (gas: 189531)
CelerHelperTest:testCustomOrderingCeler() (gas: 108266)
CelerHelperTest:testFancyCeler() (gas: 117863)
CelerHelperTest:testMultiDstCeler() (gas: 151193)
CelerHelperTest:testSimpleCeler() (gas: 71872)
CelerHelperTest:testSimpleCelerWithEstimates() (gas: 72350)
HyperlaneHelperTest:testCustomOrderingHL() (gas: 145211)
HyperlaneHelperTest:testFancyHL() (gas: 146259)
HyperlaneHelperTest:testMultiDstHL() (gas: 193293)
HyperlaneHelperTest:testSimpleHL() (gas: 98262)
HyperlaneHelperTest:testSimpleHLWithEstimates() (gas: 98880)
LayerZeroHelperTest:testCustomOrderingLZ() (gas: 339755)
LayerZeroHelperTest:testFancyLZ() (gas: 295099)
LayerZeroHelperTest:testMultiDstLZ() (gas: 475768)
LayerZeroHelperTest:testSimpleLZ() (gas: 245432)
LayerZeroHelperTest:testSimpleLZWithEstimates() (gas: 246032)
StargateHelperTest:testCustomOrderingSG() (gas: 798098)
StargateHelperTest:testFancySG() (gas: 589613)
StargateHelperTest:testSimpleSG() (gas: 537621)
StargateHelperTest:testSimpleSGWithEstimates() (gas: 538154)
WormholeAutomaticRelayerHelperTest:testCustomOrderingWormhole() (gas: 287327)
WormholeAutomaticRelayerHelperTest:testFancyWormhole() (gas: 226030)
WormholeAutomaticRelayerHelperTest:testMultiDstWormhole() (gas: 349810)
WormholeAutomaticRelayerHelperTest:testSimpleWormhole() (gas: 179646)
WormholeSpecializedRelayerHelperTest:testCustomOrderingWormhole() (gas: 595327)
WormholeSpecializedRelayerHelperTest:testFancyWormhole() (gas: 330251)
WormholeSpecializedRelayerHelperTest:testMultiDstWormhole() (gas: 631640)
WormholeSpecializedRelayerHelperTest:testSimpleWormhole() (gas: 333043)
34 changes: 1 addition & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,4 @@ jobs:
env:
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }}
POLYGON_MAINNET_RPC_URL: ${{ secrets.POLYGON_MAINNET_RPC_URL }}
ARBITRUM_MAINNET_RPC_URL: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }}

# slither:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: slither
# uses: crytic/[email protected]

scripts:
strategy:
fail-fast: true
name: Run Unix Scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: dependencies
run: forge build --sizes
continue-on-error: true
- name: Run scripts
run: |
ls -lsa
ls script/
for file in script/*; do
forge script $file
done
ARBITRUM_MAINNET_RPC_URL: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img align="right" width="150" height="150" top="100" src="./public/readme.png">

# pigeon • [![tests](https://github.com/exp-table/pigeon/actions/workflows/ci.yml/badge.svg?label=tests)](https://github.com/exp-table/pigeon/actions/workflows/ci.yml) ![license](https://img.shields.io/github/license/refcell/femplate?label=license) ![solidity](https://img.shields.io/badge/solidity-^0.8.17-lightgrey)
# pigeon • [![tests](https://github.com/exp-table/pigeon/actions/workflows/ci.yml/badge.svg?label=tests)](https://github.com/exp-table/pigeon/actions/workflows/ci.yml) ![license](https://img.shields.io/github/license/refcell/femplate?label=license) ![solidity](https://img.shields.io/badge/solidity-%5E0.8.21-lightgrey)

**Pigeon** is an open-source modular testing toolkit for cross-chain application development using Arbitray Message Bridges (AMBs).

Expand Down
5 changes: 4 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
# See more config options at: https://github.com/gakonst/foundry/tree/master/config

[profile.default]
solc_version = '0.8.19'
solc_version = "0.8.21" # Override for the solc version (setting this ignores `auto_detect_solc`)
evm_version = "paris" # to prevent usage of PUSH0, which is not supported on all chains

remappings = ["ds-test/=lib/forge-std/lib/ds-test/src/","forge-std/=lib/forge-std/src/","solady/=lib/solady/"]
2 changes: 1 addition & 1 deletion lib/solady
Submodule solady updated 69 files
+649 −546 .gas-snapshot
+49 −0 .github/workflows/ci-all-via-ir.yml
+2 −1 .github/workflows/ci-woke.yml
+18 −0 .github/workflows/ci.yml
+9 −6 README.md
+66 −0 js/solady.d.ts
+15 −3 js/solady.js
+6 −0 js/solady.test.js
+3 −2 package.json
+3 −0 src/Milady.sol
+6 −1 src/auth/Ownable.sol
+27 −37 src/tokens/ERC1155.sol
+61 −90 src/tokens/ERC20.sol
+548 −0 src/tokens/ERC6909.sol
+16 −14 src/tokens/ERC721.sol
+2 −4 src/tokens/WETH.sol
+15 −0 src/utils/Clone.sol
+137 −87 src/utils/DynamicBufferLib.sol
+53 −77 src/utils/ECDSA.sol
+20 −40 src/utils/ERC1967Factory.sol
+7 −2 src/utils/ERC1967FactoryConstants.sol
+150 −113 src/utils/FixedPointMathLib.sol
+788 −0 src/utils/JSONParserLib.sol
+53 −42 src/utils/LibBit.sol
+30 −12 src/utils/LibClone.sol
+146 −1 src/utils/LibMap.sol
+4 −4 src/utils/LibPRNG.sol
+2 −0 src/utils/LibRLP.sol
+54 −22 src/utils/LibString.sol
+21 −7 src/utils/MerkleProofLib.sol
+150 −0 src/utils/MetadataReaderLib.sol
+24 −14 src/utils/SSTORE2.sol
+151 −130 src/utils/SafeTransferLib.sol
+201 −213 src/utils/SignatureCheckerLib.sol
+10 −10 test/DateTimeLib.t.sol
+249 −41 test/DynamicBufferLib.t.sol
+46 −37 test/ECDSA.t.sol
+0 −52 test/ERC20.t.sol
+104 −91 test/ERC4626.t.sol
+471 −0 test/ERC6909.t.sol
+17 −21 test/ERC721.t.sol
+95 −10 test/FixedPointMathLib.t.sol
+712 −0 test/JSONParserLib.t.sol
+76 −0 test/LibBit.t.sol
+47 −27 test/LibClone.t.sol
+238 −0 test/LibMap.t.sol
+1 −1 test/LibPRNG.t.sol
+47 −13 test/LibString.t.sol
+9 −1 test/LibZip.t.sol
+305 −0 test/MetadataReaderLib.t.sol
+5 −0 test/README.md
+28 −0 test/SSTORE2.t.sol
+67 −0 test/SafeTransferLib.t.sol
+4 −0 test/utils/mocks/MockCd.sol
+2 −0 test/utils/mocks/MockEIP712.sol
+2 −0 test/utils/mocks/MockERC1155.sol
+2 −0 test/utils/mocks/MockERC1271Malicious.sol
+37 −1 test/utils/mocks/MockERC1271Wallet.sol
+8 −18 test/utils/mocks/MockERC20.sol
+16 −0 test/utils/mocks/MockERC20LikeUSDT.sol
+2 −0 test/utils/mocks/MockERC2981.sol
+2 −0 test/utils/mocks/MockERC4626.sol
+111 −0 test/utils/mocks/MockERC6909.sol
+2 −0 test/utils/mocks/MockERC721.sol
+2 −0 test/utils/mocks/MockETHRecipient.sol
+2 −0 test/utils/mocks/MockImplementation.sol
+2 −0 test/utils/mocks/MockMulticallable.sol
+6 −2 test/utils/mocks/MockOwnable.sol
+6 −2 test/utils/mocks/MockOwnableRoles.sol
3 changes: 0 additions & 3 deletions remappings.txt

This file was deleted.

7 changes: 0 additions & 7 deletions script/Script.s.sol

This file was deleted.

2 changes: 1 addition & 1 deletion src/layerzero/lib/LZPacket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ library LayerZeroPacket {
assembly {
toAdd := mload(add(data, i))
}
payloadBuffer.append(abi.encode(toAdd));
payloadBuffer.p(abi.encode(toAdd));
i += 32;
}
packet.nonce = nonce;
Expand Down

0 comments on commit ab99276

Please sign in to comment.