fix: switch back to blockfrost kupmios + demeter setup showing strange behavior
This commit is contained in:
parent
c9a762a13c
commit
6ab42735b0
|
@ -4,14 +4,14 @@
|
|||
|
||||
import config from "./deno.json" assert { type: "json" };
|
||||
import * as $0 from "./routes/index.tsx";
|
||||
import * as $$0 from "./islands/App.tsx";
|
||||
import * as $$0 from "./islands/Oneshot.tsx";
|
||||
|
||||
const manifest = {
|
||||
routes: {
|
||||
"./routes/index.tsx": $0,
|
||||
},
|
||||
islands: {
|
||||
"./islands/App.tsx": $$0,
|
||||
"./islands/Oneshot.tsx": $$0,
|
||||
},
|
||||
baseUrl: import.meta.url,
|
||||
config,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useEffect, useState } from "preact/hooks";
|
||||
import { Constr, Data, fromText, Kupmios, Lucid } from "lucid/mod.ts";
|
||||
import { Blockfrost, Constr, Data, fromText, Lucid } from "lucid/mod.ts";
|
||||
|
||||
import { Input } from "~/components/Input.tsx";
|
||||
import { Button } from "~/components/Button.tsx";
|
||||
|
@ -17,8 +17,7 @@ export interface AppProps {
|
|||
|
||||
export default function App({ validators }: AppProps) {
|
||||
const [lucid, setLucid] = useState<Lucid | null>(null);
|
||||
const [kupoUrl, setKupoUrl] = useState<string>("");
|
||||
const [ogmiosUrl, setOgmiosUrl] = useState<string>("");
|
||||
const [blockfrostAPIKey, setBlockfrostAPIKey] = useState<string>("");
|
||||
const [tokenName, setTokenName] = useState<string>("");
|
||||
const [giftADA, setGiftADA] = useState<string | undefined>();
|
||||
const [lockTxHash, setLockTxHash] = useState<string | undefined>(undefined);
|
||||
|
@ -35,9 +34,9 @@ export default function App({ validators }: AppProps) {
|
|||
e.preventDefault();
|
||||
|
||||
const lucid = await Lucid.new(
|
||||
new Kupmios(
|
||||
kupoUrl,
|
||||
ogmiosUrl,
|
||||
new Blockfrost(
|
||||
"https://cardano-preprod.blockfrost.io/api/v0",
|
||||
blockfrostAPIKey,
|
||||
),
|
||||
"Preprod",
|
||||
);
|
||||
|
@ -209,18 +208,11 @@ export default function App({ validators }: AppProps) {
|
|||
onSubmit={setupLucid}
|
||||
>
|
||||
<Input
|
||||
type="text"
|
||||
type="password"
|
||||
id="kupoUrl"
|
||||
onInput={(e) => setKupoUrl(e.currentTarget.value)}
|
||||
onInput={(e) => setBlockfrostAPIKey(e.currentTarget.value)}
|
||||
>
|
||||
Kupo URL
|
||||
</Input>
|
||||
<Input
|
||||
type="text"
|
||||
id="ogmiosUrl"
|
||||
onInput={(e) => setOgmiosUrl(e.currentTarget.value)}
|
||||
>
|
||||
Ogmios URL
|
||||
Blockfrost API Key
|
||||
</Input>
|
||||
|
||||
<Button type="submit">Setup Lucid</Button>
|
||||
|
|
Loading…
Reference in New Issue