andrecronje / anyswap-v1-core Goto Github PK
View Code? Open in Web Editor NEWAnyswap core libraries and assets for permissionless cross-chain AMM swaps
Anyswap core libraries and assets for permissionless cross-chain AMM swaps
anyswap-v1-core/contracts/AnyswapV4CallProxy.sol
Lines 54 to 56 in 34d191d
Thanks for creating this method for us, it's very useful for us. And we also hope we can add a crosschainContextCall
method. As sometimes, we need to pass the trust from one contract to another contract, like contract a trust contract b. And this may happen between chains. Contract a is on chain a', and contract b is on chain b'. Therefore, could we add a crossChainContextCall
like the following pseudo code.
function crossChainContextCall(address memory to, bytes memory param, address memory callback, uint memory nonce, uint toChainID) external {
bytes[] memory data = encodeContextCall(param);
emit LogAnyCall(msg.sender, to, data, callbacks, nonces, cID(), toChainID);
}
function encodeContextCall(bytes param) external pure returns (bytes memory) {
return abi.encodeWithSignature("contextCall(address,address,bytes)", tx.origin, msg.sender, param);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.