From a6729e0f2b25a54ea5ff13991b840e4c35a50010 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 24 Jan 2025 14:44:59 +0800 Subject: [PATCH] build: add deploy script for root ip collection --- script/DeployIPRootCollectionAndMint.s.sol | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 script/DeployIPRootCollectionAndMint.s.sol diff --git a/script/DeployIPRootCollectionAndMint.s.sol b/script/DeployIPRootCollectionAndMint.s.sol new file mode 100644 index 0000000..6fd7ac0 --- /dev/null +++ b/script/DeployIPRootCollectionAndMint.s.sol @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-3.0 +pragma solidity ^0.8.13; + +import "../lib/forge-std/src/Script.sol"; +import {SpotlightRootIPCollection} from "../src/spotlight-root-ip-collection/SpotlightRootIPCollection.sol"; + +/* Deploy and verify with the following command: + forge script script/DeployIPRootCollectionAndMint.s.sol:Deploy --broadcast \ + --chain-id 1516 \ + --rpc-url https://odyssey.storyrpc.io \ + --verify \ + --verifier blockscout \ + --verifier-url 'https://odyssey.storyscan.xyz/api/' +*/ + +contract Deploy is Script { + function run() public { + vm.startBroadcast(vm.envUint("PRIVATE_KEY")); + SpotlightRootIPCollection ipCollection = new SpotlightRootIPCollection(); + ipCollection.mint(); + vm.stopBroadcast(); + } +}