@@ -2,6 +2,7 @@ import hre, { ethers } from "hardhat";
2
2
3
3
import {
4
4
DropERC1155 ,
5
+ DropERC20 ,
5
6
DropERC721 ,
6
7
Marketplace ,
7
8
Split ,
@@ -36,6 +37,10 @@ async function main() {
36
37
43113 : "0xd00ae08403B9bbb9124bB305C09058E32C39A48c" ,
37
38
250 : "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83" ,
38
39
4002 : "0xf1277d1Ed8AD466beddF92ef448A132661956621" ,
40
+ 10 : "0x4200000000000000000000000000000000000006" , // optimism
41
+ 69 : "0xbC6F6b680bc61e30dB47721c6D1c5cde19C1300d" , // optimism testnet
42
+ 42161 : "0x82af49447d8a07e3bd95bd0d56f35241523fbab1" , // arbitrum
43
+ 421611 : "0xEBbc3452Cc911591e4F18f3b36727Df45d6bd1f9" , // arbitrum testnet
39
44
} ;
40
45
41
46
// Deploy FeeType
@@ -98,6 +103,14 @@ async function main() {
98
103
console . log ( "Deploying Drop1155 at tx: " , drop1155 . deployTransaction . hash ) ;
99
104
console . log ( "Drop1155 address: " , drop1155 . address ) ;
100
105
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
+
101
114
// Deploy a test implementation: TokenERC20
102
115
const tokenERC20 : TokenERC20 = await ethers
103
116
. getContractFactory ( "TokenERC20" )
@@ -150,6 +163,7 @@ async function main() {
150
163
[
151
164
thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ drop721 . address ] ) ,
152
165
thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ drop1155 . address ] ) ,
166
+ thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ drop20 . address ] ) ,
153
167
thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ tokenERC20 . address ] ) ,
154
168
thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ tokenERC721 . address ] ) ,
155
169
thirdwebFactory . interface . encodeFunctionData ( "addImplementation" , [ tokenERC1155 . address ] ) ,
@@ -173,6 +187,7 @@ async function main() {
173
187
await verify ( thirdwebFee . address , [ trustedForwarderAddress , thirdwebFactory . address ] ) ;
174
188
await verify ( drop721 . address , [ thirdwebFee . address ] ) ;
175
189
await verify ( drop1155 . address , [ thirdwebFee . address ] ) ;
190
+ await verify ( drop20 . address , [ thirdwebFee . address ] ) ;
176
191
await verify ( tokenERC20 . address , [ thirdwebFee . address ] ) ;
177
192
await verify ( tokenERC721 . address , [ thirdwebFee . address ] ) ;
178
193
await verify ( tokenERC1155 . address , [ thirdwebFee . address ] ) ;
0 commit comments