@@ -2,6 +2,7 @@ import hre, { ethers } from "hardhat";
22
33import {
44 DropERC1155 ,
5+ DropERC20 ,
56 DropERC721 ,
67 Marketplace ,
78 Split ,
@@ -36,6 +37,10 @@ async function main() {
3637 43113 : "0xd00ae08403B9bbb9124bB305C09058E32C39A48c" ,
3738 250 : "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83" ,
3839 4002 : "0xf1277d1Ed8AD466beddF92ef448A132661956621" ,
40+ 10 : "0x4200000000000000000000000000000000000006" , // optimism
41+ 69 : "0xbC6F6b680bc61e30dB47721c6D1c5cde19C1300d" , // optimism testnet
42+ 42161 : "0x82af49447d8a07e3bd95bd0d56f35241523fbab1" , // arbitrum
43+ 421611 : "0xEBbc3452Cc911591e4F18f3b36727Df45d6bd1f9" , // arbitrum testnet
3944 } ;
4045
4146 // Deploy FeeType
@@ -98,6 +103,14 @@ async function main() {
98103 console . log ( "Deploying Drop1155 at tx: " , drop1155 . deployTransaction . hash ) ;
99104 console . log ( "Drop1155 address: " , drop1155 . address ) ;
100105
106+ // Deploy a test implementation: DropERC20
107+ const drop20 : DropERC20 = await ethers
108+ . getContractFactory ( "DropERC20" )
109+ . then ( f => f . deploy ( thirdwebFee . address , options ) )
110+ . then ( f => f . deployed ( ) ) ;
111+ console . log ( "Deploying DropERC20 at tx: " , drop20 . deployTransaction . hash ) ;
112+ console . log ( "DropERC20 address: " , drop20 . address ) ;
113+
101114 // Deploy a test implementation: TokenERC20
102115 const tokenERC20 : TokenERC20 = await ethers
103116 . getContractFactory ( "TokenERC20" )
@@ -150,6 +163,7 @@ async function main() {
150163 [
151164 thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ drop721 . address ] ) ,
152165 thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ drop1155 . address ] ) ,
166+ thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ drop20 . address ] ) ,
153167 thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ tokenERC20 . address ] ) ,
154168 thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ tokenERC721 . address ] ) ,
155169 thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ tokenERC1155 . address ] ) ,
@@ -173,6 +187,7 @@ async function main() {
173187 await verify ( thirdwebFee . address , [ trustedForwarderAddress , thirdwebFactory . address ] ) ;
174188 await verify ( drop721 . address , [ thirdwebFee . address ] ) ;
175189 await verify ( drop1155 . address , [ thirdwebFee . address ] ) ;
190+ await verify ( drop20 . address , [ thirdwebFee . address ] ) ;
176191 await verify ( tokenERC20 . address , [ thirdwebFee . address ] ) ;
177192 await verify ( tokenERC721 . address , [ thirdwebFee . address ] ) ;
178193 await verify ( tokenERC1155 . address , [ thirdwebFee . address ] ) ;
0 commit comments