-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: scaling ethereum hackathon updates (#19)
- Loading branch information
Showing
19 changed files
with
794 additions
and
391 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Lets 👏 get 👏 hacking 👏 | ||
|
||
## Steps | ||
|
||
1. [Receive Ether on the Taiko testnet](https://l2faucet.hackathon.taiko.xyz/) |
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 @@ | ||
# This file is meant to compatible with multiple shells, including: | ||
# bash, zsh and fish. For this reason, use this syntax: | ||
# export VARNAME=value | ||
export VITE_WEB3MODAL_PROJECT_ID="YOUR_PROJECT_ID_HERE" | ||
export VITE_WEB3MODAL_PROJECT_ID="YOUR_PROJECT_ID_HERE" |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
export const headerSyncABI = [ | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "srcHeight", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "bytes32", | ||
name: "srcHash", | ||
type: "bytes32", | ||
}, | ||
], | ||
name: "HeaderSynced", | ||
type: "event", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getLatestSyncedHeader", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "number", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "getSyncedHeader", | ||
outputs: [ | ||
{ | ||
internalType: "bytes32", | ||
name: "", | ||
type: "bytes32", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
]; |
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,117 @@ | ||
export const signalServiceABI = [ | ||
{ | ||
type: "function", | ||
stateMutability: "view", | ||
outputs: [{ type: "address", name: "", internalType: "address" }], | ||
name: "addressManager", | ||
inputs: [], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "pure", | ||
outputs: [{ type: "bytes32", name: "", internalType: "bytes32" }], | ||
name: "getSignalSlot", | ||
inputs: [ | ||
{ type: "address", name: "app", internalType: "address" }, | ||
{ type: "bytes32", name: "signal", internalType: "bytes32" }, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "nonpayable", | ||
outputs: [], | ||
name: "init", | ||
inputs: [{ type: "address", name: "_addressManager", internalType: "address" }], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "view", | ||
outputs: [{ type: "bool", name: "", internalType: "bool" }], | ||
name: "isSignalReceived", | ||
inputs: [ | ||
{ type: "uint256", name: "srcChainId", internalType: "uint256" }, | ||
{ type: "address", name: "app", internalType: "address" }, | ||
{ type: "bytes32", name: "signal", internalType: "bytes32" }, | ||
{ type: "bytes", name: "proof", internalType: "bytes" }, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "view", | ||
outputs: [{ type: "bool", name: "", internalType: "bool" }], | ||
name: "isSignalSent", | ||
inputs: [ | ||
{ type: "address", name: "app", internalType: "address" }, | ||
{ type: "bytes32", name: "signal", internalType: "bytes32" }, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "view", | ||
outputs: [{ type: "address", name: "", internalType: "address" }], | ||
name: "owner", | ||
inputs: [], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "nonpayable", | ||
outputs: [], | ||
name: "renounceOwnership", | ||
inputs: [], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "view", | ||
outputs: [{ type: "address", name: "", internalType: "address payable" }], | ||
name: "resolve", | ||
inputs: [ | ||
{ type: "string", name: "name", internalType: "string" }, | ||
{ type: "bool", name: "allowZeroAddress", internalType: "bool" }, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "view", | ||
outputs: [{ type: "address", name: "", internalType: "address payable" }], | ||
name: "resolve", | ||
inputs: [ | ||
{ type: "uint256", name: "chainId", internalType: "uint256" }, | ||
{ type: "string", name: "name", internalType: "string" }, | ||
{ type: "bool", name: "allowZeroAddress", internalType: "bool" }, | ||
], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "nonpayable", | ||
outputs: [{ type: "bytes32", name: "storageSlot", internalType: "bytes32" }], | ||
name: "sendSignal", | ||
inputs: [{ type: "bytes32", name: "signal", internalType: "bytes32" }], | ||
}, | ||
{ | ||
type: "function", | ||
stateMutability: "nonpayable", | ||
outputs: [], | ||
name: "transferOwnership", | ||
inputs: [{ type: "address", name: "newOwner", internalType: "address" }], | ||
}, | ||
{ | ||
type: "event", | ||
name: "Initialized", | ||
inputs: [{ type: "uint8", name: "version", indexed: false }], | ||
anonymous: false, | ||
}, | ||
{ | ||
type: "event", | ||
name: "OwnershipTransferred", | ||
inputs: [ | ||
{ type: "address", name: "previousOwner", indexed: true }, | ||
{ type: "address", name: "newOwner", indexed: true }, | ||
], | ||
anonymous: false, | ||
}, | ||
{ type: "error", name: "B_NULL_APP_ADDR", inputs: [] }, | ||
{ type: "error", name: "B_WRONG_CHAIN_ID", inputs: [] }, | ||
{ type: "error", name: "B_ZERO_SIGNAL", inputs: [] }, | ||
{ type: "error", name: "RESOLVER_DENIED", inputs: [] }, | ||
{ type: "error", name: "RESOLVER_INVALID_ADDR", inputs: [] }, | ||
]; |
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,2 @@ | ||
export { signalServiceABI } from "./SignalService"; | ||
export { headerSyncABI } from "./HeaderSync"; |
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.
de78c5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dapp-slaps – ./
dapp-slaps-git-main-d1onys1us.vercel.app
dapp-slaps-d1onys1us.vercel.app
dapp-slaps.vercel.app