-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating script to lock funds into smart contract. issue with Blockfr…
…ost await resolution
- Loading branch information
1 parent
6f3dcde
commit 913a087
Showing
2 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ artifacts/ | |
build/ | ||
# Aiken's default documentation export | ||
docs/ | ||
|
||
.vscode |
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,21 @@ | ||
import { | ||
Blockfrost, | ||
C, | ||
Constr, | ||
Data, | ||
Lucid, | ||
SpendingValidator, | ||
TxHash, | ||
fromHex, | ||
toHex, | ||
utf8ToHex, | ||
} from "https://deno.land/x/lucid@0.8.3/mod.ts"; | ||
import * as cbor from "https://deno.land/x/cbor@v1.4.1/index.js"; | ||
|
||
const lucid = await Lucid.new( | ||
new Blockfrost( | ||
"https://cardano-preview.blockfrost.io/api/v0", | ||
Deno.env.get("BLOCKFROST_PROJECT_ID") | ||
), | ||
"Preview" | ||
); |