-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix test, add downgrade verifier script, sync (#865)
upgrade playwright upgrade to node 20.18.0
- Loading branch information
Showing
25 changed files
with
970 additions
and
231 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.15.0 | ||
v20.18.0 |
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
21 changes: 21 additions & 0 deletions
21
...ages/app/features/account/sendtag/checkout/checkout-utils.fetchSendtagCheckoutReceipts.ts
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,21 @@ | ||
import type { Database } from '@my/supabase/database.types' | ||
import type { SupabaseClient } from '@supabase/supabase-js' | ||
|
||
/** | ||
* Fetches the sendtag checkout receipts. | ||
* Returns an array of receipts with numerics converted to strings to avoid overflows. | ||
* | ||
* @note this function is in it's own file to avoid playwright importing unnecessary modules | ||
* | ||
* @param supabase | ||
* @returns The sendtag checkout receipts. | ||
*/ | ||
export function fetchSendtagCheckoutReceipts(supabase: SupabaseClient<Database>) { | ||
return supabase.from('sendtag_checkout_receipts').select(` | ||
event_id, | ||
amount::text, | ||
referrer, | ||
reward::text, | ||
tx_hash | ||
`) | ||
} |
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
125 changes: 125 additions & 0 deletions
125
packages/contracts/broadcast/DeployFjordSendVerifier.s.sol/8453/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
packages/contracts/script/DowngradeFjordSendVerifier.s.sol
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,32 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.20; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
import {Helper} from "../src/Helper.sol"; | ||
|
||
import {SendVerifier, SendVerifierProxy} from "../src/SendVerifier.sol"; | ||
|
||
/** | ||
* Downgrades the SendVerifierProxy to the legacy verifier implementation. | ||
*/ | ||
contract DowngradeFjordSendVerifierScript is Script, Helper { | ||
function setUp() public { | ||
this.labels(); | ||
} | ||
|
||
function run() public { | ||
address svpAddr = vm.envAddress("SVP_ADDRESS"); // send verifier proxy address | ||
|
||
require(svpAddr != address(0), "SVP_ADDRESS env variable not set"); | ||
|
||
vm.startBroadcast(); | ||
|
||
SendVerifier sv = SendVerifier(svpAddr); | ||
sv.upgradeTo(0xE269194e41Cd50E2986f82Fc23A2B95D8bAFED2B); | ||
|
||
// solhint-disable-next-line no-console | ||
console2.log("Downgraded SendVerifierProxy address:", address(sv)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.