-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
211e182
commit d61cb6b
Showing
23 changed files
with
987 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
WALLET_SECRET= | ||
WALLET_MNEMONIC= | ||
RELAYER_SECRET= | ||
|
||
GOERLI_CHAIN_URL= | ||
MUMBAI_CHAIN_URL= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { ethers, upgrades } from "hardhat"; | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
|
||
async function main(hre: HardhatRuntimeEnvironment) { | ||
const relayer = ethers.provider.getSigner(1); | ||
|
||
const wallet = await upgrades.deployProxy( | ||
await ethers.getContractFactory("MetaTransactionWallet", {}), | ||
[await relayer.getAddress()] | ||
); | ||
console.log("deployed wallet to:", wallet.address); | ||
|
||
const receipt1 = await wallet.deployTransaction.wait(); | ||
await ethers.provider.waitForTransaction(receipt1.transactionHash, 5); | ||
await hre.run("verify:verify", { | ||
address: wallet.address, | ||
}); | ||
|
||
const NftContract = await ethers.getContractFactory( | ||
"MetaTransactionalNft721" | ||
); | ||
const nft = await NftContract.deploy(wallet.address); | ||
await nft.deployed(); | ||
console.log("deployed nft to:", nft.address); | ||
|
||
const receipt2 = await nft.deployTransaction.wait(); | ||
await ethers.provider.waitForTransaction(receipt2.transactionHash, 5); | ||
await hre.run("verify:verify", { | ||
address: nft.address, | ||
constructorArguments: [wallet.address], | ||
}); | ||
} | ||
|
||
main(require("hardhat")).catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod client; |
Oops, something went wrong.