-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from hyperledger-labs/improve-tests
Bump minimal solidity version to v0.8.20 and improve tests Signed-off-by: Jun Kimura <[email protected]>
- Loading branch information
Showing
67 changed files
with
2,695 additions
and
1,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,49 @@ | ||
IBCTest:testBenchmarkCreateMockClient() (gas: 209319) | ||
IBCTest:testBenchmarkCreateMockClient() (gas: 209341) | ||
IBCTest:testBenchmarkLCUpdateMockClient() (gas: 39935) | ||
IBCTest:testBenchmarkRecvPacket() (gas: 136859) | ||
IBCTest:testBenchmarkSendPacket() (gas: 85154) | ||
IBCTest:testBenchmarkUpdateMockClient() (gas: 137315) | ||
IBCTest:testBenchmarkRecvPacket() (gas: 137264) | ||
IBCTest:testBenchmarkSendPacket() (gas: 85111) | ||
IBCTest:testBenchmarkUpdateMockClient() (gas: 137380) | ||
IBCTest:testToUint128((uint64,uint64)) (runs: 256, μ: 947, ~: 947) | ||
TestICS02:testCreateClient() (gas: 24329382) | ||
TestICS02:testInvalidCreateClient() (gas: 24177244) | ||
TestICS02:testInvalidUpdateClient() (gas: 24179521) | ||
TestICS02:testRegisterClient() (gas: 23924001) | ||
TestICS02:testRegisterClientDuplicatedClientType() (gas: 23906051) | ||
TestICS02:testRegisterClientInvalidClientType() (gas: 23890923) | ||
TestICS02:testUpdateClient() (gas: 24345834) | ||
TestICS03Handshake:testConnOpenAck() (gas: 1631428) | ||
TestICS03Handshake:testConnOpenConfirm() (gas: 1764503) | ||
TestICS03Handshake:testConnOpenInit() (gas: 1279747) | ||
TestICS03Handshake:testConnOpenTry() (gas: 2124860) | ||
TestICS03Handshake:testInvalidConnOpenAck() (gas: 2001640) | ||
TestICS03Handshake:testInvalidConnOpenConfirm() (gas: 2007413) | ||
TestICS03Handshake:testInvalidConnOpenInit() (gas: 666565) | ||
TestICS03Handshake:testInvalidConnOpenTry() (gas: 2110651) | ||
TestICS03Version:testCopyVersions() (gas: 558658) | ||
TestICS03Version:testFindSupportedVersion() (gas: 19400) | ||
TestICS03Version:testIsSupportedVersion() (gas: 7864) | ||
TestICS03Version:testPickVersion() (gas: 25399) | ||
TestICS03Version:testVerifyProposedVersion() (gas: 11777) | ||
TestICS03Version:testVerifySupportedFeature() (gas: 4153) | ||
TestICS02:testCreateClient() (gas: 24828609) | ||
TestICS02:testInvalidCreateClient() (gas: 24676246) | ||
TestICS02:testInvalidUpdateClient() (gas: 24679444) | ||
TestICS02:testRegisterClient() (gas: 24423230) | ||
TestICS02:testRegisterClientDuplicatedClientType() (gas: 24405280) | ||
TestICS02:testRegisterClientInvalidClientType() (gas: 24390152) | ||
TestICS02:testUpdateClient() (gas: 24845663) | ||
TestICS03Handshake:testConnOpenAck() (gas: 1636277) | ||
TestICS03Handshake:testConnOpenConfirm() (gas: 1772310) | ||
TestICS03Handshake:testConnOpenInit() (gas: 1281190) | ||
TestICS03Handshake:testConnOpenTry() (gas: 2166092) | ||
TestICS03Handshake:testInvalidConnOpenAck() (gas: 1951642) | ||
TestICS03Handshake:testInvalidConnOpenConfirm() (gas: 2017044) | ||
TestICS03Handshake:testInvalidConnOpenInit() (gas: 666722) | ||
TestICS03Handshake:testInvalidConnOpenTry() (gas: 2079624) | ||
TestICS03Version:testCopyVersions() (gas: 560134) | ||
TestICS03Version:testFindSupportedVersion() (gas: 19740) | ||
TestICS03Version:testIsSupportedVersion() (gas: 8272) | ||
TestICS03Version:testPickVersion() (gas: 26823) | ||
TestICS03Version:testVerifyProposedVersion() (gas: 12185) | ||
TestICS03Version:testVerifySupportedFeature() (gas: 4357) | ||
TestICS04Handshake:testBindPort() (gas: 40333) | ||
TestICS04Handshake:testChanOpenAck() (gas: 2881255) | ||
TestICS04Handshake:testChanOpenConfirm() (gas: 3061061) | ||
TestICS04Handshake:testChanOpenInit() (gas: 2197808) | ||
TestICS04Handshake:testChanOpenTry() (gas: 2655241) | ||
TestICS04Handshake:testInvalidChanOpenAck() (gas: 2059020) | ||
TestICS04Handshake:testInvalidChanOpenConfirm() (gas: 2117109) | ||
TestICS04Handshake:testInvalidChanOpenInit() (gas: 1273682) | ||
TestICS04Handshake:testInvalidChanOpenTry() (gas: 1347330) | ||
TestICS04Packet:testInvalidSendPacket() (gas: 2207885) | ||
TestICS04Packet:testSendPacket() (gas: 2264031) | ||
TestICS20:testAddressToHex(address) (runs: 256, μ: 22673, ~: 22824) | ||
TestICS04Handshake:testChanClose() (gas: 8493283) | ||
TestICS04Handshake:testChanOpenAck() (gas: 2886058) | ||
TestICS04Handshake:testChanOpenConfirm() (gas: 3067098) | ||
TestICS04Handshake:testChanOpenInit() (gas: 2199573) | ||
TestICS04Handshake:testChanOpenTry() (gas: 2658841) | ||
TestICS04Handshake:testInvalidChanOpenAck() (gas: 2062335) | ||
TestICS04Handshake:testInvalidChanOpenConfirm() (gas: 2120446) | ||
TestICS04Handshake:testInvalidChanOpenInit() (gas: 1275021) | ||
TestICS04Handshake:testInvalidChanOpenTry() (gas: 1350509) | ||
TestICS04Packet:testAcknowledgementPacket() (gas: 2286474) | ||
TestICS04Packet:testInvalidSendPacket() (gas: 2297971) | ||
TestICS04Packet:testRecvPacket() (gas: 7973268) | ||
TestICS04Packet:testRecvPacketTimeoutHeight() (gas: 2323693) | ||
TestICS04Packet:testRecvPacketTimeoutTimestamp() (gas: 2322328) | ||
TestICS04Packet:testSendPacket() (gas: 5793531) | ||
TestICS04Packet:testTimeoutOnClose() (gas: 2512437) | ||
TestICS20:testAddressToHex(address) (runs: 256, μ: 22698, ~: 22824) | ||
TestICS20:testHexToAddress(string) (runs: 256, μ: 4776, ~: 4734) | ||
TestICS20:testIsEscapedString() (gas: 48979) | ||
TestICS20:testMarshaling() (gas: 148145) | ||
TestICS20:testParseAmount(uint256) (runs: 256, μ: 26683, ~: 21388) | ||
TestICS20:testParseAmount(uint256) (runs: 256, μ: 27053, ~: 22172) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
pull_request: | ||
|
||
env: | ||
MINIMAL_SOLC_VERSION: 0.8.12 | ||
MINIMAL_SOLC_VERSION: 0.8.20 | ||
|
||
jobs: | ||
contract-test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.12; | ||
pragma solidity ^0.8.20; | ||
|
||
library IBCMockLib { | ||
bytes public constant MOCK_PACKET_DATA = bytes("mock packet data"); | ||
bytes public constant MOCK_FAIL_PACKET_DATA = bytes("mock failed packet data"); | ||
bytes public constant MOCK_ASYNC_PACKET_DATA = bytes("mock async packet data"); | ||
|
||
bytes public constant SUCCESSFUL_ACKNOWLEDGEMENT_JSON = bytes('{"result":"bW9jayBhY2tub3dsZWRnZW1lbnQ="}'); | ||
bytes public constant SUCCESSFUL_ASYNC_ACKNOWLEDGEMENT_JSON = | ||
bytes('{"result":"bW9jayBhc3luYyBhY2tub3dsZWRnZW1lbnQ="}'); | ||
bytes public constant FAILED_ACKNOWLEDGEMENT_JSON = bytes('{"error":"mock failed acknowledgement"}'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
contracts/core/03-connection/IBCConnectionSelfStateNoValidation.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.