-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade tests * updated weights * Mock upgrade contract * add smoketest for upgrade * remove verbose print * added smoketest * updated error logging * fixes * better messages * typos * update readme * moved file * ws * update paths * update cumulus
- Loading branch information
1 parent
be0ff69
commit 0cef959
Showing
14 changed files
with
597 additions
and
528 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
pragma solidity 0.8.20; | ||
|
||
import {Channel, InboundMessage, OperatingMode, ParaID, Config, Command} from "../../src/Types.sol"; | ||
import {IGateway} from "../../src/interfaces/IGateway.sol"; | ||
import {IInitializable} from "../../src/interfaces/IInitializable.sol"; | ||
import {Verification} from "../../src/Verification.sol"; | ||
|
||
contract GatewayUpgradeMock is IGateway, IInitializable { | ||
/** | ||
* Getters | ||
*/ | ||
|
||
function operatingMode() external pure returns (OperatingMode) { | ||
return OperatingMode.Normal; | ||
} | ||
|
||
function channelOperatingModeOf(ParaID) external pure returns (OperatingMode) { | ||
return OperatingMode.Normal; | ||
} | ||
|
||
function channelFeeRewardOf(ParaID) external pure returns (uint256, uint256) { | ||
return (0, 0); | ||
} | ||
|
||
function channelNoncesOf(ParaID) external pure returns (uint64, uint64) { | ||
return (0, 0); | ||
} | ||
|
||
function agentOf(bytes32) external pure returns (address) { | ||
return address(0); | ||
} | ||
|
||
function implementation() external pure returns (address) { | ||
return address(0); | ||
} | ||
|
||
function submitInbound(InboundMessage calldata, bytes32[] calldata, Verification.Proof calldata) external {} | ||
|
||
function registerToken(address) external payable {} | ||
function sendToken(address, ParaID, bytes32, uint128) external payable {} | ||
function sendToken(address, ParaID, address, uint128) external payable {} | ||
|
||
event Initialized(uint256 d0, uint256 d1); | ||
|
||
function initialize(bytes memory data) external { | ||
// Just decode and exit | ||
(uint256 d0, uint256 d1) = abi.decode(data, (uint256, uint256)); | ||
emit Initialized(d0, d1); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,4 +16,6 @@ | |
.local | ||
|
||
src/parachains/bridgehub.rs | ||
src/parachains/assethub.rs | ||
src/parachains/relaychain.rs | ||
src/contracts |
Oops, something went wrong.