Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0800582
WIP: add mintlayer messages for public key
OBorce May 7, 2024
cedf915
add mintlayer sing tx messages
OBorce May 11, 2024
8161a69
WIP: more messages
OBorce May 14, 2024
308c808
correct hash and signatures
OBorce May 15, 2024
e460f16
remove dead code copied from bitcoin
OBorce May 16, 2024
cadd072
Fix compilation for trezor device with new mintlayer code
OBorce Jun 14, 2024
879ce41
Add support for all Mintlayer inputs and outputs
OBorce Jul 15, 2024
f26e15d
Add support for all Mintlayer inputs and outputs
OBorce Jul 15, 2024
c630455
Add support for all Mintlayer inputs and outputs
OBorce Jul 15, 2024
4501392
fix compilation with rust nightly
OBorce Jul 16, 2024
44ebcb6
update mintlayer messages
OBorce Jul 29, 2024
7b41de5
remove unused imports
OBorce Aug 6, 2024
603a5bd
remove unused argument
OBorce Aug 9, 2024
b41833e
handle token decimals and ticker on UI
OBorce Aug 19, 2024
9a75d70
add support for signing ML HTLC outputs
OBorce Aug 27, 2024
31ad7d7
Handle errors in Mintlayer rust code instead of panicing
OBorce Sep 5, 2024
eec3bc6
Clean up code Mintlayer
OBorce Sep 10, 2024
aa730ad
Regenerate with proto 3.19.6
OBorce Sep 10, 2024
b245562
add Mintlayer ChangeTokenMetadataUri command input
OBorce Sep 10, 2024
9dd4b6d
fix Python typings Mintlayer
OBorce Sep 11, 2024
03dfa69
fix confirm total after rebase
OBorce Sep 12, 2024
65059b0
add changelog for pipeline Mintlayer
OBorce Sep 15, 2024
c50da44
Add support for Mintlayer orders
OBorce Sep 16, 2024
3532bd6
fix errors in Mintlayer layout
OBorce Sep 19, 2024
3a985f3
Change fill order encoding to match the new changes in Mintlayer core
OBorce Oct 14, 2024
deaa4a1
Mintlayer proto changes
OBorce Oct 28, 2024
18e0e80
Refactor Mintlayer types from core repository
OBorce Nov 8, 2024
a3bbbce
Add device tests for Mintlayer python lib
OBorce Nov 12, 2024
957b7aa
Change mintlayer sing tx response message
OBorce Nov 14, 2024
315256a
fix CI pipeline warning
OBorce Nov 14, 2024
ad89c81
handle produce from block UTXO for tx fees
OBorce Dec 3, 2024
282a988
fix build warning
OBorce Dec 4, 2024
83029f0
Handle passphrase on the device
OBorce Dec 4, 2024
2d89e4d
Use enums from protos
OBorce Dec 13, 2024
602313d
fix comments
OBorce Dec 17, 2024
57d7353
roll back CHANGELOGS
OBorce Dec 19, 2024
9e65a59
fix styling
OBorce Dec 19, 2024
9ce2cfa
Handle Mintlayer order inputs and fees
OBorce Jan 8, 2025
4c5d084
add Mintlayer chain type to proto messages
OBorce Jan 12, 2025
e9d6bf2
fix new Flake8 warnings
OBorce Feb 10, 2025
bf2afd0
refactor Mintlayer messages and fix comments
OBorce Feb 17, 2025
1412336
fix mintlayer lock type checking
OBorce Feb 26, 2025
04f7132
fix mintlayer styling issues
OBorce Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ jobs:
comment-author: 'github-actions[bot]'
body-includes: cargolock-comment-${{ github.workflow }}

- name: Create comment
uses: peter-evans/create-or-update-comment@v4
if: ${{ env.cargo_modified == '1' && steps.fc.outputs.comment-id == '' }}
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
<!-- cargolock-comment-${{ github.workflow }} -->
${{ env.CARGOLOCK_COMMENT }}
edit-mode: replace
# - name: Create comment
# uses: peter-evans/create-or-update-comment@v4
# if: ${{ env.cargo_modified == '1' && steps.fc.outputs.comment-id == '' }}
# with:
# issue-number: ${{ github.event.pull_request.number }}
# body: |
# <!-- cargolock-comment-${{ github.workflow }} -->
# ${{ env.CARGOLOCK_COMMENT }}
# edit-mode: replace
2 changes: 1 addition & 1 deletion common/protob/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
check: messages.pb messages-binance.pb messages-bitcoin.pb messages-bootloader.pb messages-cardano.pb messages-common.pb messages-crypto.pb messages-debug.pb messages-ethereum.pb messages-management.pb messages-monero.pb messages-nem.pb messages-ripple.pb messages-stellar.pb messages-tezos.pb messages-eos.pb
check: messages.pb messages-binance.pb messages-bitcoin.pb messages-bootloader.pb messages-cardano.pb messages-common.pb messages-crypto.pb messages-debug.pb messages-ethereum.pb messages-management.pb messages-monero.pb messages-nem.pb messages-ripple.pb messages-stellar.pb messages-tezos.pb messages-eos.pb messages-mintlayer.pb messages-mintlayer-enums.pb

%.pb: %.proto
protoc -I/usr/include -I. $< -o $@
Expand Down
1 change: 1 addition & 0 deletions common/protob/messages-management.proto
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ message Features {
Capability_Translations = 19 [(bitcoin_only) = true];
Capability_Brightness = 20 [(bitcoin_only) = true];
Capability_Haptic = 21 [(bitcoin_only) = true];
Capability_Mintlayer = 22;
Comment on lines 168 to +169
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have a gap in values here as well?

}
}

Expand Down
31 changes: 31 additions & 0 deletions common/protob/messages-mintlayer-enums.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto2";
package hw.trezor.messages.mintlayer;

// Sugar for easier handling in Java
option java_package = "com.satoshilabs.trezor.lib.protobuf";
option java_outer_classname = "TrezorMessageMintlayer";

/**
* Enum for Account Command type passed between the Python and Rust code
*/
enum MintlayerAccountCommandType {
MINT_TOKENS = 0;
UNMINT_TOKENS = 1;
LOCK_TOKEN_SUPPLY = 2;
FREEZE_TOKEN = 3;
UNFREEZE_TOKEN = 4;
CHANGE_TOKEN_AUTHORITY = 5;
CONCLUDE_ORDER = 6;
FILL_ORDER = 7;
CHANGE_TOKEN_METADATA_URI = 8;
}

/**
* Enum for Output time lock type passed between the Python and Rust code
*/
enum MintlayerOutputTimeLockType {
UNTIL_HEIGHT = 0;
UNTIL_TIME = 1;
FOR_BLOCK_COUNT = 2;
FOR_SECONDS = 3;
}
Loading