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