-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modification of Elements blockchain to support paying the transaction fees in any asset that is issued on chain. Includes features like: - Switch variable in chainparams for any_asset_fees feature - Exchange rates to compare assets value in order to calculate fees - Denomination field in issue asset to interpret the amount with different decimals in clients - Initial testnet parameters for Sequentia network ...
- Loading branch information
Showing
255 changed files
with
37,333 additions
and
5,738 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
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,23 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run lint | ||
run: | | ||
sudo ./ci/lint_run_all.sh |
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,7 +1,7 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
|
||
[bitcoin.qt-translation-023x] | ||
[o:bitcoin:p:bitcoin:r:qt-translation-023x] | ||
file_filter = src/qt/locale/bitcoin_<lang>.xlf | ||
source_file = src/qt/locale/bitcoin_en.xlf | ||
source_lang = en |
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,81 @@ | ||
# Building and Running with Nix | ||
|
||
## Setup | ||
|
||
### Installing Nix | ||
|
||
If you aren't using Nix yet, install it from the | ||
[Nix download page](https://nixos.org/download/). | ||
|
||
On Linux (or Windows using WSL), this is typically as follows | ||
(on macOS, omit the `--daemon`): | ||
``` | ||
sh <(curl -L https://nixos.org/nix/install) --daemon | ||
``` | ||
|
||
Another option is the | ||
[Determinate Nix Installer](https://determinate.systems/posts/determinate-nix-installer/). | ||
|
||
### Configuring Nix | ||
|
||
Once you installed Nix, you can configure it to use our pre-compiled packages | ||
instead of recompiling everything from source, | ||
by creating or editing your `~/.config/nix/nix.conf` and adding these lines: | ||
``` | ||
substituters = https://cache.nixos.org https://cache.nixos.org/ https://mukn.cachix.org | ||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= mukn.cachix.org-1:ujoZLZMpGNQMeZbLBxmOcO7aj+7E5XSnZxwFpuhhsqs= | ||
``` | ||
|
||
## Building and Running the Software with Nix | ||
|
||
### Building the Software | ||
|
||
You can build the whole software package with: | ||
``` | ||
nix-build | ||
``` | ||
|
||
This will create a package under your `/nix/store/` and a symlink to it as `./result`. | ||
|
||
### Running the Software as Built | ||
|
||
After building the software as above, you can invoke the binaries directly with commands such as: | ||
``` | ||
./result/bin/elements-cli | ||
``` | ||
|
||
You can also install the package in your nix profile with either | ||
`nix-env -i result` (if you use `nix-env`) or | ||
`nix profile install result` (if you use `nix profile`). | ||
|
||
TODO: In the future, we will also make it work with `nix flake`, and | ||
when the project is stable and launched maybe submit it upstream onto Nixpkgs. | ||
|
||
### Using a Nix shell for Development | ||
|
||
To modify the source code and interactively build with all the dependencies | ||
that would be used by Nix, you may enter a nix shell as follows: | ||
```shell | ||
nix-shell | ||
``` | ||
|
||
You may then configure with the following command: | ||
```bash | ||
configurePhase | ||
``` | ||
|
||
And build with this one: | ||
```bash | ||
buildPhase | ||
``` | ||
|
||
Finally, you can run the tests with: | ||
```bash | ||
checkPhase | ||
``` | ||
|
||
The `./src/` directory will have been added to your `PATH` | ||
so you can run commands simply with: | ||
```bash | ||
elements-cli -? | ||
``` |
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
Oops, something went wrong.