Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PaymentSplitterDeployer with new factory addresses #89

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/factories/PaymentSplitterDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ library PaymentSplitterDeployer {
switch chainid()
case 1 {
// mainnet
factory := 0xf034d6a4b1a64f0e6038632d87746ca24b79d325
factory := 0x10AF0996e2e289dC8f582e6510b0d251E061BFB5
}
case 5 {
// Görli
factory := 0x7F4Ae949da2eD37E0a4b37e0b15B22Ad5c94DE65
factory := 0x1353463A30F7A9Eb50A645F4D3950d5d5E41F1F4
}
case 1337 {
// The geth SimulatedBackend iff used with the ethier
Expand Down
12 changes: 10 additions & 2 deletions contracts/factories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ There is no need to import any of the code in `./factories/`. To deploy a new
proxy manually, use the exposed functions in the verified Etherscan contracts
(see below). To automate deployment, use a _Deployer_ contract.

#### Version

The deployed payment splitter is using v4.7.0 of OpenZeppelin. As of April 2023
the version deployed matches the interface on the [OZ docs page](https://docs.openzeppelin.com/contracts/4.x/api/finance#PaymentSplitter).

Note that it is possible for a new 4.x release of OZ to add extra functionality which
will not be included in this contract without a subsequent deploy of the factory.

### Deployers

Each factory has an equivalent _Deployer_ library in `./contracts/factories/`.
Expand Down Expand Up @@ -59,5 +67,5 @@ contract LookMaNoAddress {
### Verified Factories

* `PaymentSplitter`
* [Mainnet](https://etherscan.io/address/0xf034d6a4b1a64f0e6038632d87746ca24b79d325#code)
* [Goerli](https://goerli.etherscan.io/address/0x7F4Ae949da2eD37E0a4b37e0b15B22Ad5c94DE65#code)
* [Mainnet](https://etherscan.io/address/0x10af0996e2e289dc8f582e6510b0d251e061bfb5#code)
* [Goerli](https://goerli.etherscan.io/address/0x1353463A30F7A9Eb50A645F4D3950d5d5E41F1F4#code)