-
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.
- modified infinitism `VerifyingPaymaster` to allow for updating `verifyingSigner` post deployment. - created deployment and verification scripts for `VerifyingPaymaster`. - deployed to Amoy. - updated typings. - added deployment info to DEPLOYMENTS.md.
- Loading branch information
1 parent
dfef1e4
commit 7a05d1e
Showing
73 changed files
with
8,093 additions
and
6,664 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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 = '0x09FD4F6088f2025427AB1e89257A44747081Ed59'; | ||
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 | ||
); | ||
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 = '0x810FA4C915015b703db0878CF2B9344bEB254a40'; // Add deployed paymaster address to verify | ||
const ENTRY_POINT_ADDRESS = '0x0000000071727De22E5E9d8BAf0edAc6f37da032'; | ||
const VERIFYING_SIGNER_ADDRESS = '0x09FD4F6088f2025427AB1e89257A44747081Ed59'; | ||
|
||
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.