-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introduce new cardano-node api package
Using cardano-cli as the cardano-node interface, it's now possible to submit a signed transaction query the tip directly from the node. Closes #10
- Loading branch information
Showing
58 changed files
with
1,106 additions
and
36 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 |
---|---|---|
|
@@ -8,3 +8,5 @@ lerna-debug.log | |
*node_modules/ | ||
result* | ||
*yarn-error.log | ||
./node-ipc | ||
app/ |
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,2 @@ | ||
package cardano-crypto-praos | ||
flags: -external-libsodium-vrf |
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,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
# | ||
# In order to run the graphql tests you need some addresses set up on the testnet with funds | ||
# Copy this file into the ./app directory and then run it from inside the graphql docker container. e.g. docker exec -t ./app/mk-addresses.sh | ||
# You will then need to add some ada to the payment.addr using https://testnets.cardano.org/en/shelley/tools/faucet/ | ||
# | ||
|
||
# All taken from https://github.com/input-output-hk/cardano-tutorials/blob/master/node-setup/020_keys_and_addresses.md | ||
|
||
|
||
# build the stake address | ||
cardano-cli shelley stake-address key-gen \ | ||
--verification-key-file stake.vkey \ | ||
--signing-key-file stake.skey | ||
|
||
cardano-cli shelley stake-address build \ | ||
--stake-verification-key-file stake.vkey \ | ||
--out-file stake.addr \ | ||
--testnet-magic 42 | ||
|
||
# build the first payment address, this is the address that you will send payments from in the tests, it needs funds to be added | ||
cardano-cli shelley address key-gen \ | ||
--verification-key-file payment.vkey \ | ||
--signing-key-file payment.skey | ||
|
||
cardano-cli shelley address build \ | ||
--payment-verification-key-file payment.vkey \ | ||
--stake-verification-key-file stake.vkey \ | ||
--out-file payment.addr \ | ||
--testnet-magic 42 | ||
|
||
# build the second payment address, this is the address that you will send payments to in the tests and it needs no funds | ||
cardano-cli shelley address key-gen \ | ||
--verification-key-file payment2.vkey \ | ||
--signing-key-file payment2.skey | ||
|
||
cardano-cli shelley address build \ | ||
--payment-verification-key-file payment2.vkey \ | ||
--stake-verification-key-file stake.vkey \ | ||
--out-file payment2.addr \ | ||
--testnet-magic 42 | ||
|
||
# This is the address you need to add funds to using https://testnets.cardano.org/en/shelley/tools/faucet/ | ||
cat payment.addr |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
src/graphql_types.ts |
Oops, something went wrong.