aboutsummaryrefslogtreecommitdiffstats
path: root/config/doom
diff options
context:
space:
mode:
Diffstat (limited to 'config/doom')
-rw-r--r--config/doom/config.org22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org
index 2fc8b7d..b2ec545 100644
--- a/config/doom/config.org
+++ b/config/doom/config.org
@@ -335,6 +335,28 @@ Emacs mode for managing ledger text files
#+begin_src emacs-lisp :tangle "packages.el"
(package! parse-csv)
#+end_src
+** Crypto
+#+begin_src emacs-lisp
+(use-package! cardano-tx
+ :commands (cardano-tx-new cardano-cli-tip)
+ :load-path "~/dev/cardano/emacs-wallet"
+ :init
+ (defun on/cardano-set-network ()
+ (interactive)
+ (let* ((networks '((:mainnet "/tmp/alinamn.socket" "--mainnet")
+ (:testnet "/tmp/sarahtn.socket" "--testnet-magic" "1097911063")
+ (:alonzo-purple "~/test-cardano/purple/socket" "--testnet-magic" "8")))
+ (pick
+ (alist-get
+ (completing-read "Pick network" networks)
+ networks nil nil #'string=)))
+ (setq cardano-cli-node-socket (expand-file-name (car pick))
+ cardano-cli-network-args (cdr pick))))
+ :config
+ (setq logger-level 'debug)
+ (setq cardano-cli-command (expand-file-name "~/dev/cardano/cardano-node/cli"))
+ (setq cardano-address-keyring-dir "~/dev/cardano/emacs-wallet/keys/demo"))
+#+end_src
* Books
#+begin_src emacs-lisp :tangle "packages.el"
(package! nov)