Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Statelens Client #3468

Merged
merged 4 commits into from
Jan 9, 2025

chore(move): fixed comments

87eea40
Select commit
Loading
Failed to load commit list.
Merged

Move Statelens Client #3468

chore(move): fixed comments
87eea40
Select commit
Loading
Failed to load commit list.
Garnix CI / package evm-contracts [x86_64-linux] succeeded Jan 9, 2025 in 1m 18s

Run results

Build succeeded

Details

Last 100 lines of logs:

[PASS] test_batchAcks_afterRecvPacket_ok_5(uint32,bytes,bytes) (runs: 256, μ: 228842, ~: 226658)
[PASS] test_batchAcks_afterRecvPacket_tamperedPacket(uint32,bytes,uint8,bytes) (runs: 256, μ: 4211218, ~: 2838067)
[PASS] test_batchAcks_packetNotReceived(uint32,bytes,uint8,bytes) (runs: 256, μ: 350164, ~: 272408)
[PASS] test_batchSend_commitmentSaved(uint64,uint64,uint8) (runs: 256, μ: 387249, ~: 267530)
[PASS] test_batchSend_ok(uint64,uint64,uint8) (runs: 256, μ: 351456, ~: 242606)
[PASS] test_batchSend_ok_10(uint64,uint64) (runs: 256, μ: 64046, ~: 64046)
[PASS] test_batchSend_ok_15(uint64,uint64) (runs: 256, μ: 81770, ~: 81770)
[PASS] test_batchSend_ok_2(uint64,uint64) (runs: 256, μ: 37499, ~: 37499)
[PASS] test_batchSend_ok_20(uint64,uint64) (runs: 256, μ: 98355, ~: 98355)
[PASS] test_batchSend_ok_25(uint64,uint64) (runs: 256, μ: 115210, ~: 115210)
[PASS] test_batchSend_ok_30(uint64,uint64) (runs: 256, μ: 133192, ~: 133192)
[PASS] test_batchSend_ok_5(uint64,uint64) (runs: 256, μ: 46701, ~: 46701)
[PASS] test_batchSend_packetNotSent(uint64,uint64,uint8) (runs: 256, μ: 81373, ~: 57000)
[PASS] test_recvIntentPacket_commitmentSaved(uint32,bytes,uint8) (runs: 256, μ: 3675405, ~: 2418948)
[PASS] test_recvIntentPacket_ok(uint32,bytes,uint8) (runs: 256, μ: 3537180, ~: 2297107)
[PASS] test_recvIntentPacket_ok_1(uint32,bytes) (runs: 256, μ: 61971, ~: 61948)
[PASS] test_recvIntentPacket_ok_10(uint32,bytes) (runs: 256, μ: 420705, ~: 420375)
[PASS] test_recvIntentPacket_ok_15(uint32,bytes) (runs: 256, μ: 620064, ~: 619674)
[PASS] test_recvIntentPacket_ok_20(uint32,bytes) (runs: 256, μ: 819013, ~: 817733)
[PASS] test_recvIntentPacket_ok_25(uint32,bytes) (runs: 256, μ: 1018497, ~: 1018139)
[PASS] test_recvIntentPacket_ok_30(uint32,bytes) (runs: 256, μ: 1217884, ~: 1217524)
[PASS] test_recvIntentPacket_ok_5(uint32,bytes) (runs: 256, μ: 220965, ~: 221001)
[PASS] test_recvIntentPacket_timeoutHeight(uint64,uint32,bytes,uint8) (runs: 256, μ: 264420, ~: 201607)
[PASS] test_recvIntentPacket_timeoutTimestamp(uint32,uint32,bytes,uint8) (runs: 256, μ: 240992, ~: 137606)
[PASS] test_recvPacket_ackCommitmentSaved(uint32,bytes,uint8) (runs: 256, μ: 3547391, ~: 1831552)
[PASS] test_recvPacket_invalidChannelState(uint32,uint32,bytes,uint8) (runs: 256, μ: 226173, ~: 129339)
[PASS] test_recvPacket_invalidProof(uint32,bytes,uint8) (runs: 256, μ: 350339, ~: 240954)
[PASS] test_recvPacket_noAck_receiptCommitmentSaved(uint32,bytes,uint8) (runs: 256, μ: 3052228, ~: 1432268)
[PASS] test_recvPacket_ok(uint32,bytes,uint8) (runs: 256, μ: 3200339, ~: 1775214)
[PASS] test_recvPacket_ok_1(uint32,bytes) (runs: 256, μ: 49418, ~: 49478)
[PASS] test_recvPacket_ok_10(uint32,bytes) (runs: 256, μ: 412309, ~: 411730)
[PASS] test_recvPacket_ok_15(uint32,bytes) (runs: 256, μ: 615118, ~: 614681)
[PASS] test_recvPacket_ok_20(uint32,bytes) (runs: 256, μ: 819624, ~: 819428)
[PASS] test_recvPacket_ok_25(uint32,bytes) (runs: 256, μ: 1021731, ~: 1020935)
[PASS] test_recvPacket_ok_30(uint32,bytes) (runs: 256, μ: 1225951, ~: 1225580)
[PASS] test_recvPacket_ok_5(uint32,bytes) (runs: 256, μ: 209479, ~: 209167)
[PASS] test_recvPacket_timeoutHeight(uint64,uint32,bytes,uint8) (runs: 256, μ: 357888, ~: 237698)
[PASS] test_recvPacket_timeoutTimestamp(uint32,uint32,bytes,uint8) (runs: 256, μ: 343931, ~: 187059)
[PASS] test_sendPacket_channelDoesntExist(uint32,uint64,uint64,bytes) (runs: 256, μ: 20700, ~: 20697)
[PASS] test_sendPacket_commitmentSaved(uint64,uint64,bytes) (runs: 256, μ: 51899, ~: 51502)
[PASS] test_sendPacket_missingTimeout(bytes) (runs: 256, μ: 16286, ~: 16285)
[PASS] test_sendPacket_moduleIsntChannelOwner(uint64,uint64,bytes,address) (runs: 256, μ: 19054, ~: 19050)
[PASS] test_sendPacket_ok(uint64,uint64,bytes) (runs: 256, μ: 44548, ~: 44208)
[PASS] test_timeoutPacket_height_commitmentRemoved(uint32,bytes,uint32,uint32) (runs: 256, μ: 6331, ~: 6284)
[PASS] test_timeoutPacket_height_invalidProof(uint32,bytes,uint32,uint32) (runs: 256, μ: 105499, ~: 105391)
[PASS] test_timeoutPacket_height_notReached(uint32,bytes,uint32,uint32) (runs: 256, μ: 101049, ~: 101052)
[PASS] test_timeoutPacket_height_ok(uint32,bytes,uint32,uint32) (runs: 256, μ: 7024, ~: 6991)
[PASS] test_timeoutPacket_timestamp_commitmentRemoved(uint32,bytes,uint32,uint32) (runs: 256, μ: 7533, ~: 7497)
[PASS] test_timeoutPacket_timestamp_invalidProof(uint32,bytes,uint32,uint32) (runs: 256, μ: 86253, ~: 86167)
[PASS] test_timeoutPacket_timestamp_notReached(uint32,bytes,uint32,uint32) (runs: 256, μ: 85204, ~: 85204)
[PASS] test_timeoutPacket_timestamp_ok(uint32,bytes,uint32,uint32) (runs: 256, μ: 7180, ~: 7145)
[PASS] test_writeAcknowledgement_alreadyExists(uint32,bytes,uint8) (runs: 256, μ: 3757252, ~: 2567316)
[PASS] test_writeAcknowledgement_commitmentSaved(uint32,bytes,uint8) (runs: 256, μ: 4166571, ~: 3131053)
[PASS] test_writeAcknowledgement_moduleIsntChannelOwner(uint32,bytes,uint8,address) (runs: 256, μ: 3965529, ~: 2122930)
[PASS] test_writeAcknowledgement_ok(uint32,bytes,uint8) (runs: 256, μ: 3965299, ~: 2650971)
[PASS] test_writeAcknowledgement_ok_1(uint32,bytes) (runs: 256, μ: 28372, ~: 28318)
[PASS] test_writeAcknowledgement_packetNotReceived(uint32,bytes,uint8) (runs: 256, μ: 1142629, ~: 826438)
Suite result: ok. 78 passed; 0 failed; 0 skipped; finished in 3.60s (75.25s CPU time)

Ran 12 tests for tests/src/03-connection/IBCConnection.t.sol:IBCConnectionTests
[PASS] test_connectionOpenInitOpenAck_commitmentSaved((uint32,uint32,address),(uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 102552, ~: 102491)
[PASS] test_connectionOpenInitOpenAck_invalidProof((uint32,uint32,address),(uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 95182, ~: 95123)
[PASS] test_connectionOpenInitOpenAck_ok((uint32,uint32,address),(uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 5431, ~: 5381)
[PASS] test_connectionOpenInit_commitmentSaved((uint32,uint32,address)) (runs: 256, μ: 81199, ~: 81199)
[PASS] test_connectionOpenInit_ok((uint32,uint32,address)) (runs: 256, μ: 79492, ~: 79492)
[PASS] test_connectionOpenTryConfirm_commitmentSaved((uint32,uint32,uint32,bytes,uint64,address),(uint32,bytes,uint64,address)) (runs: 256, μ: 113770, ~: 113733)
[PASS] test_connectionOpenTryConfirm_invalidProof((uint32,uint32,uint32,bytes,uint64,address),(uint32,bytes,uint64,address)) (runs: 256, μ: 102153, ~: 102128)
[PASS] test_connectionOpenTryConfirm_ok((uint32,uint32,uint32,bytes,uint64,address),(uint32,bytes,uint64,address)) (runs: 256, μ: 6468, ~: 6420)
[PASS] test_connectionOpenTry_clientNotFound((uint32,uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 61643, ~: 61597)
[PASS] test_connectionOpenTry_commitmentSaved((uint32,uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 97268, ~: 97209)
[PASS] test_connectionOpenTry_invalidProof((uint32,uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 68497, ~: 68431)
[PASS] test_connectionOpenTry_ok((uint32,uint32,uint32,bytes,uint64,address)) (runs: 256, μ: 67792, ~: 67727)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 3.60s (635.92ms CPU time)

Ran 14 tests for tests/src/02-client/CometblsClient.t.sol:CometblsClientTest
[PASS] test_createClient_success() (gas: 167314)
[PASS] test_initialize_ok() (gas: 18012)
[PASS] test_misbehaviour_freezesClient() (gas: 277486)
[PASS] test_misbehaviour_freezesClient_ErrHeaderExpired() (gas: 268947)
[PASS] test_misbehaviour_freezesClient_ErrInvalidMisbehaviourHeadersSequence() (gas: 267241)
[PASS] test_misbehaviour_freezesClient_ErrInvalidUntrustedValidatorsHash() (gas: 269939)
[PASS] test_misbehaviour_freezesClient_ErrInvalidZKP() (gas: 252169)
[PASS] test_misbehaviour_freezesClient_ErrMaxClockDriftExceeded() (gas: 269397)
[PASS] test_misbehaviour_freezesClient_ErrUntrustedHeightLTETrustedHeight() (gas: 268669)
[PASS] test_misbehaviour_freezesClient_ErrUntrustedTimestampLTETrustedTimestamp() (gas: 268724)
[PASS] test_misbehaviour_freezesClient_fraud() (gas: 272779)
[PASS] test_misbehaviour_freezesClient_fraud_different_hash() (gas: 274317)
[PASS] test_misbehaviour_freezesClient_headers_seq() (gas: 267162)
[PASS] test_updateClient_success() (gas: 348213)
Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 3.60s (8.12ms CPU time)

Ran 14 test suites in 3.63s (28.63s CPU time): 194 tests passed, 0 failed, 0 skipped (194 total tests)
checkPhase completed in 51 seconds
@nix {"action":"setPhase","phase":"installPhase"}
installing
@nix {"action":"setPhase","phase":"fixupPhase"}
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/g4kivkdphmg4yvf7dvsnqcq2hgjway0x-evm-contracts
checking for references to /build/ in /nix/store/g4kivkdphmg4yvf7dvsnqcq2hgjway0x-evm-contracts...
patching script interpreter paths in /nix/store/g4kivkdphmg4yvf7dvsnqcq2hgjway0x-evm-contracts