uhhh ohhhhh aaaaahhhhh
exp-table / pigeon Goto Github PK
View Code? Open in Web Editor NEWSimulate cross-chain protocols txs, easily.
License: MIT License
Simulate cross-chain protocols txs, easily.
License: MIT License
uhhh ohhhhh aaaaahhhhh
https://chain.link/cross-chain. mainnet access is still in closed beta.
Something similar to the following and ability to choose which occurrence to handle. This gives user more control over the ordering of which messages to process regardless of order of emitted logs.
function _findLog(Vm.Log[] memory logs, bytes32 topic) internal returns (Vm.Log memory) {}
function _findOneLog(Vm.Log[] memory logs, bytes32 topic, uint256 index) internal returns (Vm.Log memory) {}
Hi,
First of all, lovely library, thanks for creating it!
I have been using it in the tests of a cross chain protocol. In this protocol there is a cross chain function and I can't send just 1 eth as per your example in _someCrossChainFunctionInYourContract()
, otherwise I get the error trace below:
What is more funny is if I increase this value to 5 or even 25 eth it doesn't work (check the value field in UltraLightNodeV2::send
)
But if I increase it to 50 eth the msg.value, the test case passes and everything operates normally (helper function of pigeon is called after).
After a few test runs, eventually this needs to increase again to 100 ETH even to pass. I find this behaviour absurd and wonder if you have any insight at what might be at play here?
The adapterParam for layer zero is being sent as an empty bytes for this test, just like your test example.
Thank you
We have a couple of unused variables detected while building, as well as function which can be restricted to view
Warning (2072): Unused local variable.
--> lib/pigeon/src/hyperlane/HyperlaneHelper.sol:159:17:
|
159 | bytes32 sender = log.topics[1];
| ^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> lib/pigeon/src/hyperlane/HyperlaneHelper.sol:161:17:
|
161 | bytes32 recipient = log.topics[3];
| ^^^^^^^^^^^^^^^^^
Warning (2072): Unused local variable.
--> lib/pigeon/src/layerzero/lib/LZPacket.sol:101:9:
|
101 | uint256 payloadSize = realSize - nonPayloadSize;
Warning (2018): Function state mutability can be restricted to view
--> lib/pigeon/src/celer/CelerHelper.sol:269:5:
|
269 | function _estimateGas(
| ^ (Relevant source part starts here and spans across multiple lines).
Axelar message bridge provides a unique validation mechanism to receivers through the validateContractCall()
method. This method requires the validator set of axelar to approve each commandId. Hence users of Pigeon might face issues if they implement the validation on their receiving side. Pigeon should implement approveContractCall()
functionality to fix this issue.
3
and pigeon overrides the 19 guardians and helps process a payloadA 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.