Skip to content

Commit

Permalink
Do deployment on mainnet, adjust contract to have take function, depl…
Browse files Browse the repository at this point in the history
…oy proxy
  • Loading branch information
af-afk committed Sep 23, 2024
1 parent 0a1a554 commit bc4ea79
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@

# Purr Stream [![codecov](https://codecov.io/gh/fluidity-money/purr.stream/graph/badge.svg?token=P1AESWS7OT)](https://codecov.io/gh/fluidity-money/purr.stream)

## Deployment details

### Superposition mainnet

| Deployment name | Deployment address |
|-------------------|--------------------------------------------|
| Donation impl | 0x59E42D2f43D8684690257c6413947034A90ccAF9 |
| Proxy admin owner | 0x9ef9F76e5CC9Ce656f03c69B56fb6bdA1875f652 |
| Operator | 0x9ef9F76e5CC9Ce656f03c69B56fb6bdA1875f652 |
| Proxy admin | 0x2dfc133656cf80487672b518f8a4ae146f548b6c |
| Transparent proxy | 0x856257AdAA752CF59594551791bEfB3697f2ED39 |
8 changes: 8 additions & 0 deletions pkg/Donation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ contract Donation is IDonation {
donationEpoch_++;
}

function take() external {
require(msg.sender == operator_, "only operator");
uint256 bal = address(this).balance;
(bool rc,) = payable(operator_).call{value: bal}("");
assert(rc);
emit DonationsDrained(bal);
}

/**
* @notice updateOperator, with some controls for consistency with forking.
* @param _old operator to use.
Expand Down
2 changes: 2 additions & 0 deletions pkg/IDonation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ interface IDonation is IDonationView, IDonationMaker, IDonationAdmin {
address indexed donater,
uint256 indexed amount
);

event DonationsDrained(uint256 amount);
}
3 changes: 1 addition & 2 deletions web/src/components/googleAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export const deniedConsent = {
} as const;

export default function GoogleAnalytics() {
const gtmId = "GTM-KWBPC355";

const id = "GTM-KWBPC355";
return (
<>
<Script id="google-consent" strategy="afterInteractive">
Expand Down

0 comments on commit bc4ea79

Please sign in to comment.