wallet-kit / shadow-cljs.edn
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
;; shadow-cljs build for the committed dist/ — deterministic ESM for browsers.
;;
;; One module per subpath export ("." -> dist/index.js, "./paylink" ->
;; dist/paylink.js, "./selftest" -> dist/selftest.js) over a :shared base.
;; :paylink sits BELOW :index in the graph, not beside it: a page that renders
;; an incoming `#pay=` link imports "./paylink" alone and never drags LedgerStore
;; or its localStorage fold in, while "." re-exports the same two functions by
;; importing that module. (Beside it does not work — shadow hoists a namespace
;; reachable from two modules into :shared, which would put the codec back in
;; front of every consumer.) Same split social-kit makes for its `./join` chip,
;; and for the same reason.
;;
;; id-kit and social-kit are consumed as SOURCE (see deps.edn) — their
;; namespaces are on the classpath and compile into these modules, DCE'd against
;; what this kit actually calls, so the dist imports neither package any more.
;; `canon` is not forked by that: there is one canon in the suite, social-kit's,
;; pinned by sha in package.json and compiled here from those very bytes. What
;; used to be a link to a second copy of its output is now the same function
;; compiled in. `:js-provider :import` still governs everything foreign — this
;; kit imports nothing foreign today, and the day it does, that import stays
;; external for the consumer's bundler to dedupe.
;;
;; There is no libp2p here and no optional peer family — this kit never opens a
;; socket. That is why it has no :net module and why its peerDependencies are
;; two entries long.
;;
;; Determinism (deploy/check-dist.sh depends on all of it): :source-map false,
;; :parallel-build false, never :module-hash-names, cold builds only (`npm run
;; build` rm -rf's .shadow-cljs), then scripts/normalize-gensyms.mjs.
{:deps {:aliases [:dev]}
 :builds
 {:lib
  {:target :esm
   :output-dir "dist"
   :compiler-options {:optimizations :advanced
                      :infer-externs :auto
                      :parallel-build false
                      :source-map false}
   :js-options {:js-provider :import}
   :modules
   {:shared {:entries []}
    :index {:entries [ardegazu.wallet.index]
            :depends-on #{:shared :paylink}
            :exports {DOM_PAY_REQ ardegazu.wallet.index/DOM-PAY-REQ
                      DOM_PAY_ORD ardegazu.wallet.index/DOM-PAY-ORD
                      DOM_PAY_RCP ardegazu.wallet.index/DOM-PAY-RCP
                      DOM_PAY_ISS ardegazu.wallet.index/DOM-PAY-ISS
                      DOM_PAY_LOCK ardegazu.wallet.index/DOM-PAY-LOCK
                      DOM_PAY_REL ardegazu.wallet.index/DOM-PAY-REL
                      AMT_MIN ardegazu.wallet.index/AMT-MIN
                      AMT_MAX ardegazu.wallet.index/AMT-MAX
                      CTX_MAX ardegazu.wallet.index/CTX-MAX
                      MEMO_MAX ardegazu.wallet.index/MEMO-MAX
                      PUB_RE ardegazu.wallet.index/PUB-RE
                      SIG_RE ardegazu.wallet.index/SIG-RE
                      ORDER_ID_RE ardegazu.wallet.index/ORDER-ID-RE
                      DIGEST_RE ardegazu.wallet.index/DIGEST-RE
                      CODE_RE ardegazu.wallet.index/CODE-RE
                      CUR_RE ardegazu.wallet.index/CUR-RE
                      NEUTRAL_BANKER ardegazu.wallet.index/NEUTRAL-BANKER
                      NEUTRAL_CODE ardegazu.wallet.index/NEUTRAL-CODE
                      NEUTRAL_UNIT ardegazu.wallet.index/NEUTRAL-UNIT
                      SKEW_MS ardegazu.wallet.index/SKEW-MS
                      REQ_TTL_MS ardegazu.wallet.index/REQ-TTL-MS
                      ORDER_TTL_MS ardegazu.wallet.index/ORDER-TTL-MS
                      MAX_TTL_MS ardegazu.wallet.index/MAX-TTL-MS
                      MAX_ARTIFACT_BYTES ardegazu.wallet.index/MAX-ARTIFACT-BYTES
                      MAX_SETTLEMENT_BYTES ardegazu.wallet.index/MAX-SETTLEMENT-BYTES
                      DECLINE_REASONS ardegazu.wallet.index/DECLINE-REASONS
                      LEDGER_KEY_PREFIX ardegazu.wallet.index/LEDGER-KEY-PREFIX
                      PAY_BASE_URL ardegazu.wallet.index/PAY-BASE-URL
                      PAY_FRAGMENT_KEY ardegazu.wallet.index/PAY-FRAGMENT-KEY
                      parseCurrency ardegazu.wallet.index/parse-currency
                      isPayableCurrency ardegazu.wallet.index/is-payable-currency
                      isNeutralUnit ardegazu.wallet.index/is-neutral-unit
                      bankerOf ardegazu.wallet.index/banker-of
                      sanitizeCtx ardegazu.wallet.index/sanitize-ctx
                      sanitizeMemo ardegazu.wallet.index/sanitize-memo
                      unsignedPayRequest ardegazu.wallet.index/unsigned-pay-request
                      unsignedOrder ardegazu.wallet.index/unsigned-order
                      unsignedSettlement ardegazu.wallet.index/unsigned-settlement
                      payRequestPreimage ardegazu.wallet.index/pay-request-preimage
                      orderPreimage ardegazu.wallet.index/order-preimage
                      settlementPreimage ardegazu.wallet.index/settlement-preimage
                      unsignedIssuance ardegazu.wallet.index/unsigned-issuance
                      issuancePreimage ardegazu.wallet.index/issuance-preimage
                      unsignedLock ardegazu.wallet.index/unsigned-lock
                      lockPreimage ardegazu.wallet.index/lock-preimage
                      unsignedLockReceipt ardegazu.wallet.index/unsigned-lock-receipt
                      lockReceiptPreimage ardegazu.wallet.index/lock-receipt-preimage
                      unsignedRelease ardegazu.wallet.index/unsigned-release
                      releasePreimage ardegazu.wallet.index/release-preimage
                      orderId ardegazu.wallet.index/order-id
                      receiptKey ardegazu.wallet.index/receipt-key
                      issuanceKey ardegazu.wallet.index/issuance-key
                      lockId ardegazu.wallet.index/lock-id
                      lockReceiptKey ardegazu.wallet.index/lock-receipt-key
                      newHashlock ardegazu.wallet.index/new-hashlock
                      hashlockMatches ardegazu.wallet.index/hashlock-matches
                      expired ardegazu.wallet.index/expired
                      payRequestShape ardegazu.wallet.index/pay-request-shape
                      orderShape ardegazu.wallet.index/order-shape
                      settlementShape ardegazu.wallet.index/settlement-shape
                      issuanceShape ardegazu.wallet.index/issuance-shape
                      lockShape ardegazu.wallet.index/lock-shape
                      lockReceiptShape ardegazu.wallet.index/lock-receipt-shape
                      releaseShape ardegazu.wallet.index/release-shape
                      buildPayRequest ardegazu.wallet.index/build-pay-request
                      verifyPayRequest ardegazu.wallet.index/verify-pay-request
                      buildOrder ardegazu.wallet.index/build-order
                      verifyOrder ardegazu.wallet.index/verify-order
                      buildSettlement ardegazu.wallet.index/build-settlement
                      verifySettlement ardegazu.wallet.index/verify-settlement
                      buildIssuanceReceipt ardegazu.wallet.index/build-issuance-receipt
                      verifyIssuanceReceipt ardegazu.wallet.index/verify-issuance-receipt
                      buildLock ardegazu.wallet.index/build-lock
                      verifyLock ardegazu.wallet.index/verify-lock
                      buildLockReceipt ardegazu.wallet.index/build-lock-receipt
                      verifyLockReceipt ardegazu.wallet.index/verify-lock-receipt
                      buildRelease ardegazu.wallet.index/build-release
                      verifyRelease ardegazu.wallet.index/verify-release
                      LedgerStore ardegazu.wallet.index/LedgerStore
                      payRequestUrl ardegazu.wallet.index/pay-request-url
                      parsePayFragment ardegazu.wallet.index/parse-pay-fragment}}
    :paylink {:entries [ardegazu.wallet.paylink]
              :depends-on #{:shared}
              :exports {payRequestUrl ardegazu.wallet.paylink/pay-request-url
                        parsePayFragment ardegazu.wallet.paylink/parse-pay-fragment}}
    :selftest {:entries [ardegazu.wallet.selftest]
               :depends-on #{:shared :paylink :index}
               :exports {runWalletKitSelfTest ardegazu.wallet.selftest/run-wallet-kit-self-test}}}}}}

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/wallet-kit.git