Skip to content

Commit

Permalink
Remove storage migration
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Aug 29, 2024
1 parent 84bb52c commit 64b9ef4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 86 deletions.
7 changes: 4 additions & 3 deletions contracts/src/storage/AssetsStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {TokenInfo, ParaID} from "../Types.sol";

library AssetsStorage {
struct Layout {
// Native token registry by token address
mapping(address token => TokenInfo) tokenRegistry;
address assetHubAgent;
ParaID assetHubParaID;
// XCM fee charged by AssetHub for registering a token (DOT)
Expand All @@ -14,12 +16,11 @@ library AssetsStorage {
uint128 assetHubReserveTransferFee;
// Extra fee for registering a token, to discourage spamming (Ether)
uint256 registerTokenFee;
// Token registry by token address
mapping(address token => TokenInfo) tokenRegistry;
// Foreign token registry by token ID
mapping(bytes32 foreignID => address) tokenAddressOf;
}

bytes32 internal constant SLOT = keccak256("org.snowbridge.storage.assets.v2");
bytes32 internal constant SLOT = keccak256("org.snowbridge.storage.assets");

function layout() internal pure returns (Layout storage $) {
bytes32 slot = SLOT;
Expand Down
34 changes: 0 additions & 34 deletions contracts/src/storage/LegacyAssetsStorage.sol

This file was deleted.

49 changes: 0 additions & 49 deletions contracts/src/upgrades/rococo/GatewayWithAssetStorageV2.sol

This file was deleted.

0 comments on commit 64b9ef4

Please sign in to comment.