Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src-upgradeable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ Located at [`scripts/deploy.ts`](./scripts/deploy.ts)

Located at [`scripts/upgrade.ts`](./scripts/upgrade.ts)

## Testing

The upgradeable package now ships with a dedicated Hardhat test suite that
exercises the proxy workflow and SeaDrop integration mirrors. From the project
root execute:

```
yarn test:upgradeable
```

This command uses `src-upgradeable/hardhat.config.ts`, deploys mocks, and
verifies that upgradeable tokens retain configuration through proxy upgrades.

### Testnet / Mainnet

We will use the Sepolia testnet as an example.
Expand Down
2 changes: 1 addition & 1 deletion src-upgradeable/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ module.exports = {
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_API_KEY,
},
paths: { sources: "./src" },
paths: { sources: "./src", tests: "./test" },
};
14 changes: 14 additions & 0 deletions src-upgradeable/src/mocks/ERC721SeaDropUpgradeableV2.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "../ERC721SeaDropUpgradeable.sol";

/**
* @dev Simple extension of ERC721SeaDropUpgradeable used to verify upgrade
* safety during testing.
*/
contract ERC721SeaDropUpgradeableV2 is ERC721SeaDropUpgradeable {
function version() external pure returns (string memory) {
return "ERC721SeaDropUpgradeable_V2";
}
}
Loading