-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from etherspot/deploy-verifying-paymaster-amoy
Deploy verifying paymaster on all testnets
- Loading branch information
Showing
108 changed files
with
35,502 additions
and
6,647 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
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/proxy/utils/Initializable.sol/Initializable.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol/UUPSUpgradeable.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
2 changes: 1 addition & 1 deletion
2
artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json
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,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../../../../build-info/11e946ee2480cfa4c23fb74059dc998f.json" | ||
"buildInfo": "../../../../../build-info/7810ea4a0b1001fe4f85cee7595e8e6b.json" | ||
} |
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,60 @@ | ||
import { ethers } from 'ethers'; | ||
import { HardhatRuntimeEnvironment } from 'hardhat/types'; | ||
import { DeployFunction } from 'hardhat-deploy/types'; | ||
|
||
const deployVerifyingPaymaster: DeployFunction = async function ( | ||
hre: HardhatRuntimeEnvironment | ||
) { | ||
const { deployments, getNamedAccounts } = hre; | ||
const { deploy, execute } = deployments; | ||
const { from } = await getNamedAccounts(); | ||
|
||
console.log('starting deployment of verifying paymaster...'); | ||
|
||
const entrypoint = '0x0000000071727De22E5E9d8BAf0edAc6f37da032'; | ||
const verifyingSigner = '0xaeAF09795d8C0e6fA4bB5f89dc9c15EC02021567'; | ||
const ret = await deploy('VerifyingPaymaster', { | ||
from, | ||
args: [entrypoint, verifyingSigner], | ||
gasLimit: 6e6, | ||
// gasLimit: 1000000000, // arbitrum | ||
// gasLimit: 10000000, // baseGoerli | ||
// gasLimit: 20000000, // kromaSepolia | ||
log: true, | ||
}); | ||
console.log('VerifyingPaymaster deployed at:', ret.address); | ||
|
||
console.log('staking paymaster with entry point...'); | ||
|
||
await execute( | ||
'VerifyingPaymaster', | ||
{ | ||
from, | ||
value: await ethers.utils.parseEther('0.01'), | ||
log: true, | ||
gasLimit: 6e6, | ||
}, | ||
'addStake', | ||
1 | ||
); | ||
|
||
await execute( | ||
'VerifyingPaymaster', | ||
{ | ||
from, | ||
value: await ethers.utils.parseEther('100'), | ||
log: true, | ||
gasLimit: 6e6, | ||
}, | ||
'deposit' | ||
); | ||
console.log('Done!'); | ||
}; | ||
|
||
deployVerifyingPaymaster.tags = [ | ||
'aa-4337', | ||
'deploy-verifying-paymaster', | ||
'required', | ||
]; | ||
|
||
module.exports = deployVerifyingPaymaster; |
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,23 @@ | ||
import { HardhatRuntimeEnvironment } from 'hardhat/types'; | ||
import { DeployFunction } from 'hardhat-deploy/types'; | ||
|
||
const verifyVerifyingPaymaster: DeployFunction = async function ( | ||
hre: HardhatRuntimeEnvironment | ||
) { | ||
const PAYMASTER_ADDRESS = ''; // Add deployed paymaster address to verify | ||
const ENTRY_POINT_ADDRESS = '0x0000000071727De22E5E9d8BAf0edAc6f37da032'; | ||
const VERIFYING_SIGNER_ADDRESS = ''; | ||
|
||
console.log('starting verification...'); | ||
|
||
await hre.run('verify:verify', { | ||
address: PAYMASTER_ADDRESS, | ||
contract: | ||
'src/etherspot-wallet-v1/paymaster/VerifyingPaymaster.sol:VerifyingPaymaster', | ||
constructorArguments: [ENTRY_POINT_ADDRESS, VERIFYING_SIGNER_ADDRESS], | ||
}); | ||
}; | ||
|
||
verifyVerifyingPaymaster.tags = ['aa-4337', 'verify-verifying-paymaster']; | ||
|
||
export default verifyVerifyingPaymaster; |
Oops, something went wrong.