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
23 changes: 23 additions & 0 deletions contracts/AcrossEventEmitter.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

/**
* @title AcrossEventEmitter
* @notice A simple contract that emits events with bytes encoded metadata
*/
contract AcrossEventEmitter {
/**
* @notice Emitted when metadata is stored
* @param data The metadata bytes emitted
*/
event MetadataEmitted(bytes data);

/**
* @notice Emits metadata as an event
* @param data The bytes data to emit
*/
function emitData(bytes calldata data) external {
require(data.length > 0, "Data cannot be empty");
emit MetadataEmitted(data);
}
}
15 changes: 15 additions & 0 deletions deploy/114_deploy_across_event_emitter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { DeployFunction } from "hardhat-deploy/types";
import { HardhatRuntimeEnvironment } from "hardhat/types";

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await hre.getNamedAccounts();
const instance = await hre.deployments.deploy("AcrossEventEmitter", {
from: deployer,
log: true,
skipIfAlreadyDeployed: true,
});
await hre.run("verify:verify", { address: instance.address });
};

module.exports = func;
func.tags = ["AcrossEventEmitter"];
2 changes: 1 addition & 1 deletion lib/forge-std
Submodule forge-std updated 53 files
+0 −1 .gitattributes
+0 −1 .github/CODEOWNERS
+67 −57 .github/workflows/ci.yml
+0 −31 .github/workflows/sync.yml
+3 −0 .gitmodules
+0 −193 CONTRIBUTING.md
+5 −21 README.md
+3 −5 foundry.toml
+1 −0 lib/ds-test
+2 −2 package.json
+0 −646 scripts/vm.py
+10 −19 src/Base.sol
+8 −38 src/InvariantTest.sol
+3 −5 src/Script.sol
+198 −637 src/StdAssertions.sol
+34 −97 src/StdChains.sol
+43 −300 src/StdCheats.sol
+0 −30 src/StdConstants.sol
+25 −129 src/StdJson.sol
+99 −245 src/StdStorage.sol
+0 −333 src/StdStyle.sol
+0 −283 src/StdToml.sol
+35 −75 src/StdUtils.sol
+5 −11 src/Test.sol
+322 −2,385 src/Vm.sol
+608 −635 src/console.sol
+1,543 −1 src/console2.sol
+1 −1 src/interfaces/IERC1155.sol
+3 −3 src/interfaces/IERC4626.sol
+0 −72 src/interfaces/IERC6909.sol
+1 −1 src/interfaces/IERC721.sol
+0 −150 src/interfaces/IERC7540.sol
+0 −241 src/interfaces/IERC7575.sol
+0 −13,937 src/safeconsole.sol
+0 −44 test/CommonBase.t.sol
+808 −126 test/StdAssertions.t.sol
+57 −137 test/StdChains.t.sol
+46 −356 test/StdCheats.t.sol
+0 −38 test/StdConstants.t.sol
+13 −15 test/StdError.t.sol
+0 −49 test/StdJson.t.sol
+26 −31 test/StdMath.t.sol
+46 −251 test/StdStorage.t.sol
+0 −110 test/StdStyle.t.sol
+0 −49 test/StdToml.t.sol
+35 −88 test/StdUtils.t.sol
+0 −18 test/Vm.t.sol
+1 −1 test/compilation/CompilationScript.sol
+1 −1 test/compilation/CompilationScriptBase.sol
+1 −1 test/compilation/CompilationTest.sol
+1 −1 test/compilation/CompilationTestBase.sol
+0 −8 test/fixtures/test.json
+0 −6 test/fixtures/test.toml
Loading