-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into richardgreg/docs/contributing-giude-update
- Loading branch information
Showing
296 changed files
with
11,427 additions
and
6,335 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Linear Issue To PR Linker | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
link-pr-to-linear-issues: | ||
name: "Link PR to Linear issues" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: FuelLabs/github-actions/linear/link-pr-to-linear-issue@master | ||
with: | ||
pull_number: ${{ github.event.pull_request.number }} | ||
linear_api_key: ${{ secrets.LINEAR_TOKEN }} | ||
github_token: ${{ secrets.REPO_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
VITE_FUEL_NODE_PORT=4000 | ||
VITE_DAPP_ENVIRONMENT=local | ||
VITE_DAPP_ENVIRONMENT=local | ||
VITE_GENESIS_WALLET_PRIVATE_KEY=0x01 |
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 |
---|---|---|
|
@@ -33,5 +33,5 @@ src/sway-api/index.ts | |
sway-programs/**/out | ||
.turbo | ||
|
||
playwright-report | ||
test-results | ||
test-results | ||
playwright-report |
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
channel = "testnet" | ||
|
||
[components] | ||
forc = "0.63.1" | ||
fuel-core = "0.34.0" | ||
forc = "0.63.5" | ||
fuel-core = "0.35.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export default { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,102 @@ | ||
import { useConnectUI, useIsConnected, useNetwork } from "@fuels/react"; | ||
import { useEffect } from "react"; | ||
|
||
import { useRouter } from "./hooks/useRouter"; | ||
import Button from "./components/Button"; | ||
import Info from "./components/Info"; | ||
import Wallet from "./components/Wallet"; | ||
import Contract from "./components/Contract"; | ||
import Predicate from "./components/Predicate"; | ||
import Script from "./components/Script"; | ||
import Faucet from "./components/Faucet"; | ||
import { providerUrl } from './lib' | ||
|
||
function App() { | ||
const { connect } = useConnectUI(); | ||
const { isConnected, refetch } = useIsConnected(); | ||
const { network } = useNetwork(); | ||
const { view, views, setRoute } = useRouter(); | ||
const isConnectedToCorrectNetwork = network?.url === providerUrl; | ||
|
||
|
||
useEffect(() => { | ||
refetch(); | ||
}, [refetch]); | ||
|
||
return ( | ||
<main | ||
data-theme="dark" | ||
className="flex items-center justify-center lg:pt-6 text-zinc-50/90" | ||
> | ||
<div id="container" className="mx-8 mb-32 w-full max-w-6xl"> | ||
<nav id="nav" className="flex items-center justify-center py-1 md:py-6"> | ||
<a href="https://fuel.network/" target="_blank" rel="noreferrer"> | ||
<img src="./logo_white.png" alt="Fuel Logo" className="w-[124px]" /> | ||
</a> | ||
</nav> | ||
|
||
<div className="gradient-border rounded-2xl"> | ||
<div className="grain rounded-2xl p-1.5 drop-shadow-xl"> | ||
<div | ||
id="grid" | ||
className="lg:grid lg:grid-cols-7 lg:grid-rows-1 lg:gap-12" | ||
> | ||
<Info /> | ||
<div className="col-span-5"> | ||
<div className="gradient-border h-full rounded-xl bg-gradient-to-b from-zinc-900 to-zinc-950/80"> | ||
{!isConnected && ( | ||
<section className="flex h-full flex-col justify-center space-y-6 px-4 py-8 lg:px-[25%]"> | ||
<Button onClick={() => connect()}>Connect Wallet</Button> | ||
</section> | ||
)} | ||
|
||
{isConnected && !isConnectedToCorrectNetwork && ( | ||
<section className="flex h-full flex-col justify-center space-y-6 px-4 py-8"> | ||
<p className="text-center"> | ||
You are connected to the wrong network. Please switch to{" "} | ||
<a | ||
href={providerUrl} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="text-green-500/80 transition-colors hover:text-green-500" | ||
> | ||
{providerUrl} | ||
</a> | ||
in your wallet. | ||
</p> | ||
</section> | ||
)} | ||
|
||
{isConnected && isConnectedToCorrectNetwork && ( | ||
<section className="flex h-full flex-col justify-center space-y-6 px-4 py-8"> | ||
<div className="flex flex-col sm:flex-row gap-3"> | ||
{views.map((viewName) => ( | ||
<Button | ||
key={viewName} | ||
className="w-full sm:flex-1 capitalize" | ||
color={view === viewName ? "primary" : "inactive"} | ||
onClick={() => setRoute(viewName)} | ||
> | ||
{viewName} | ||
</Button> | ||
))} | ||
</div> | ||
|
||
{view === "wallet" && <Wallet />} | ||
{view === "contract" && <Contract />} | ||
{view === "predicate" && <Predicate />} | ||
{view === "script" && <Script />} | ||
{view === "faucet" && <Faucet />} | ||
</section> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
); | ||
} | ||
|
||
export default App; |
Oops, something went wrong.