Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:

services:
mongo:
# pre-commit-checker: not a secret — sha256 image digest pin for supply-chain integrity, not a credential
image: mongo:7@sha256:43fddee7e532a920f3dfdee9e8f4834398c155c26bcb92d790cc1cd3c630fc40 # mongo:7
ports:
- 27017:27017
Expand Down Expand Up @@ -104,6 +105,7 @@ jobs:
run: |
set -euo pipefail
GUM_VERSION=0.14.5
# pre-commit-checker: not a secret — publisher-published sha256 checksum for the gum release tarball
EXPECTED_SHA256=fd1a34711ae724eb2a6c1a3209d57078d529575a03316e699054f2f5d3bcb2ba
curl -fsSLo /tmp/gum.deb "https://github.com/charmbracelet/gum/releases/download/v${GUM_VERSION}/gum_${GUM_VERSION}_amd64.deb"
echo "${EXPECTED_SHA256} /tmp/gum.deb" | sha256sum -c -
Expand Down
2 changes: 2 additions & 0 deletions script/demoScripts/demoPatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const ERC20_ABI = erc20Artifact.abi
* Execute CowSwap demo with Patcher contract
*
* Example successful transaction:
* pre-commit-checker: not a secret — public on-chain example transaction hash, not a credential
* - Arbitrum: https://arbiscan.io/tx/0x7536cd0d5175a6a985f6a0c5cbfaf63b573fe2300301c57e12cca4c8995fe891
*/
async function executeCowSwapDemo(options: {
Expand Down Expand Up @@ -96,6 +97,7 @@ async function executeCowSwapDemo(options: {
const approveTx = await wethContract.write?.approve?.([
VAULT_RELAYER_ARBITRUM as `0x${string}`,
BigInt(
// pre-commit-checker: not a secret — max uint256 constant, not a private key
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'
), // Max uint256
])
Expand Down
2 changes: 2 additions & 0 deletions script/demoScripts/utils/cowSwapHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ export async function setupCowShedPostHooks(config: ICowShedPostHooksConfig) {
const relayData = {
requestId: relayRequestId,
nonEVMReceiver:
// pre-commit-checker: not a secret — zero bytes32 sentinel (non-EVM bridging disabled)
'0x0000000000000000000000000000000000000000000000000000000000000000' as `0x${string}`, // Not bridging to non-EVM chain
receivingAssetId: pad(baseUsdcAddress as `0x${string}`), // Use viem's pad instead of manual padStart
signature: relaySignature, // Real signature from the Relay API
Expand Down Expand Up @@ -350,6 +351,7 @@ export async function setupCowShedPostHooks(config: ICowShedPostHooksConfig) {
args: [
lifiDiamondAddress as `0x${string}`, // spender - LiFi Diamond
BigInt(
// pre-commit-checker: not a secret — max uint256 constant, not a private key
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'
), // Max uint256 approval
],
Expand Down
1 change: 1 addition & 0 deletions script/deploy/safe/timelock-queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
} from './timelock-queue'

const ZERO_BYTES32 =
// pre-commit-checker: not a secret — zero bytes32 sentinel used as test fixture
'0x0000000000000000000000000000000000000000000000000000000000000000' as Hex

const SAMPLE_TARGET = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE' as Address
Expand Down
3 changes: 3 additions & 0 deletions test/solidity/Periphery/Patcher.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,7 @@ contract PatcherTest is TestBase {
);

bridgeData
// pre-commit-checker: not a secret — fixed test fixture marker used to locate the patched word
.minAmount = 0x1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF;
bytes memory calldataWithMarker = abi.encodeWithSelector(
relayDepositoryFacet.startBridgeTokensViaRelayDepository.selector,
Expand Down Expand Up @@ -1827,6 +1828,7 @@ contract PatcherTest is TestBase {
);

bridgeData
// pre-commit-checker: not a secret — fixed test fixture marker used to locate the patched word
.minAmount = 0x1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF;
bytes memory calldataWithMarker = abi.encodeWithSelector(
relayDepositoryFacet.startBridgeTokensViaRelayDepository.selector,
Expand Down Expand Up @@ -1912,6 +1914,7 @@ contract PatcherTest is TestBase {
);

bridgeData
// pre-commit-checker: not a secret — fixed test fixture marker used to locate the patched word
.minAmount = 0x1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890ABCDEF;
bytes memory calldataWithMarker = abi.encodeWithSelector(
relayDepositoryFacet.startBridgeTokensViaRelayDepository.selector,
Expand Down
Loading