-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dafa007
commit bf5ea01
Showing
80 changed files
with
1,029 additions
and
262 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
6ed8d7bac0d49950f28394f623607c29d00896bcf1505d366717626babadd81f8f111f93afd1b991b7087d5ce0684b4bcc10124aad93b3876ba1aba600a09cb4 |
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,32 @@ | ||
#!/usr/bin/env bash | ||
root="$(git rev-parse --show-toplevel)" | ||
dot_git="$(git rev-parse --git-common-dir)" | ||
if [[ ! -d "${dot_git}/hooks" ]]; then mkdir -p "${dot_git}/hooks"; fi | ||
# fix old bug | ||
rm -f "${dot_git}/hooks/comit-msg" | ||
rm -f "${dot_git}/hooks/commit-msg" | ||
ln -sf "${root}/misc/git-hooks/commit-msg" "${dot_git}/hooks/commit-msg" | ||
|
||
root="$(git rev-parse --show-toplevel)" | ||
dot_git="$(git rev-parse --git-common-dir)" | ||
if [[ ! -d "${dot_git}/hooks" ]]; then mkdir -p "${dot_git}/hooks"; fi | ||
# fix old bug | ||
rm -f "${dot_git}/hooks/pre-comit" | ||
rm -f "${dot_git}/hooks/pre-commit" | ||
ln -sf "${root}/misc/git-hooks/pre-commit" "${dot_git}/hooks/pre-commit" | ||
|
||
# set template | ||
git config commit.template misc/git-hooks/commit-template.txt | ||
|
||
if ! flakebox lint --silent; then | ||
>&2 echo "ℹ️ Project recommendations detected. Run 'flakebox lint' for more info." | ||
fi | ||
|
||
if [ -n "${DIRENV_IN_ENVRC:-}" ]; then | ||
# and not set DIRENV_LOG_FORMAT | ||
if [ -n "${DIRENV_LOG_FORMAT:-}" ]; then | ||
>&2 echo "💡 Set 'DIRENV_LOG_FORMAT=\"\"' in your shell environment variables for a cleaner output of direnv" | ||
fi | ||
fi | ||
|
||
>&2 echo "💡 Run 'just' for a list of available 'just ...' helper recipes" |
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 @@ | ||
use flake |
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,78 @@ | ||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
- name: Magic Nix Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Build on ${{ matrix.host }} | ||
run: 'nix flake check -L .# | ||
' | ||
strategy: | ||
matrix: | ||
host: | ||
- macos | ||
- linux | ||
include: | ||
- host: linux | ||
runs-on: ubuntu-latest | ||
timeout: 60 | ||
- host: macos | ||
runs-on: macos-12 | ||
timeout: 60 | ||
timeout-minutes: ${{ matrix.timeout }} | ||
flake: | ||
name: Flake self-check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check Nix flake inputs | ||
uses: DeterminateSystems/flake-checker-action@v5 | ||
with: | ||
fail-mode: true | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
- name: Magic Nix Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Cargo Cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | ||
path: ~/.cargo | ||
- name: Commit Check | ||
run: '# run the same check that git `pre-commit` hook does | ||
nix develop --ignore-environment .#lint --command ./misc/git-hooks/pre-commit | ||
' | ||
name: CI | ||
'on': | ||
merge_group: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
push: | ||
branches: | ||
- master | ||
- main | ||
tags: | ||
- v* | ||
workflow_dispatch: {} | ||
|
||
|
||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION |
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,35 @@ | ||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION | ||
|
||
jobs: | ||
flakehub-publish: | ||
permissions: | ||
contents: read | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' | ||
}} | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
- name: Flakehub Push | ||
uses: DeterminateSystems/flakehub-push@main | ||
with: | ||
name: ${{ github.repository }} | ||
tag: ${{ inputs.tag }} | ||
visibility: public | ||
name: Publish to Flakehub | ||
'on': | ||
push: | ||
tags: | ||
- v?[0-9]+.[0-9]+.[0-9]+* | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: The existing tag to publish to FlakeHub | ||
required: true | ||
type: string | ||
|
||
|
||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION |
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,4 @@ | ||
group_imports = "StdExternalCrate" | ||
wrap_comments = true | ||
format_code_in_doc_comments = true | ||
imports_granularity = "Module" |
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
use std::{ops::Deref, sync::Arc}; | ||
use std::ops::Deref; | ||
use std::sync::Arc; | ||
|
||
use cashu::Amount as AmountSdk; | ||
|
||
|
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
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ function main() { | |
console.log(amount.toSat()) | ||
} | ||
|
||
main(); | ||
main(); |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ build: | |
wasm-pack build | ||
|
||
pack: | ||
npm run package | ||
npm run package |
Oops, something went wrong.