Skip to content

Commit

Permalink
Update Deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Jun 2, 2024
1 parent 39cb1db commit 102a1da
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
33 changes: 31 additions & 2 deletions src/abi/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,29 @@ export const RESCUE_NAME_ABI = [
{
type: "function",
name: "execute",
inputs: [
{
name: "vaults",
type: "uint256[]",
internalType: "uint256[]"
},
{
name: "names",
type: "string[][]",
internalType: "string[][]"
},
{
name: "payee",
type: "address",
internalType: "address payable"
}
],
outputs: [],
stateMutability: "payable"
},
{
type: "function",
name: "getPrice",
inputs: [
{
name: "vaults",
Expand All @@ -99,8 +122,14 @@ export const RESCUE_NAME_ABI = [
internalType: "address payable"
}
],
outputs: [],
stateMutability: "payable"
outputs: [
{
name: "result",
type: "uint256",
internalType: "uint256"
}
],
stateMutability: "view"
},
{
type: "function",
Expand Down
3 changes: 1 addition & 2 deletions src/components/modals/RescueModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const RescueModal: FC<{
(accumulator, current) => accumulator + current.length,
0
);
const price = 0n;
const recipient = address!;

return (
Expand Down Expand Up @@ -72,7 +71,7 @@ export const RescueModal: FC<{
abi: RESCUE_NAME_ABI,
address: CONTRACT_ADDRESS[chainId],
functionName: "execute",
args: [vaults, labels, price, recipient]
args: [vaults, labels, recipient]
});
}}
>
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { mainnet, sepolia } from "wagmi/chains";

export const CONTRACT_ADDRESS: { [key: number]: Address } = {
[mainnet.id]: "0x0",
[sepolia.id]: "0x53d35F2735293Ca4b5599f378aC41a60b3910Ba5"
[sepolia.id]: "0x8c82dd2f5Ad2E4F70d2710Cc5290e0D80e42191B"
};
2 changes: 1 addition & 1 deletion src/hooks/useExpiryNames.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useExpiryNames = () => {
const x = await axios.post(
// Yes, this uses a cors-anywhere bypass. This is a demo.
// The streamingfast entrypoint doesnt output the right cors headers
"https://cors-anywhere.herokuapp.com/https://srv.streamingfast.io/b868bc69/graphql",
"https://cors-anywhere.herokuapp.com/https://srv.streamingfast.io/708f83b3/graphql",
{
query
}
Expand Down

0 comments on commit 102a1da

Please sign in to comment.