-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/mintlayer pk #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
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 cedf915
add mintlayer sing tx messages
OBorce 8161a69
WIP: more messages
OBorce 308c808
correct hash and signatures
OBorce e460f16
remove dead code copied from bitcoin
OBorce cadd072
Fix compilation for trezor device with new mintlayer code
OBorce 879ce41
Add support for all Mintlayer inputs and outputs
OBorce f26e15d
Add support for all Mintlayer inputs and outputs
OBorce c630455
Add support for all Mintlayer inputs and outputs
OBorce 4501392
fix compilation with rust nightly
OBorce 44ebcb6
update mintlayer messages
OBorce 7b41de5
remove unused imports
OBorce 603a5bd
remove unused argument
OBorce b41833e
handle token decimals and ticker on UI
OBorce 9a75d70
add support for signing ML HTLC outputs
OBorce 31ad7d7
Handle errors in Mintlayer rust code instead of panicing
OBorce eec3bc6
Clean up code Mintlayer
OBorce aa730ad
Regenerate with proto 3.19.6
OBorce b245562
add Mintlayer ChangeTokenMetadataUri command input
OBorce 9dd4b6d
fix Python typings Mintlayer
OBorce 03dfa69
fix confirm total after rebase
OBorce 65059b0
add changelog for pipeline Mintlayer
OBorce c50da44
Add support for Mintlayer orders
OBorce 3532bd6
fix errors in Mintlayer layout
OBorce 3a985f3
Change fill order encoding to match the new changes in Mintlayer core
OBorce deaa4a1
Mintlayer proto changes
OBorce 18e0e80
Refactor Mintlayer types from core repository
OBorce a3bbbce
Add device tests for Mintlayer python lib
OBorce 957b7aa
Change mintlayer sing tx response message
OBorce 315256a
fix CI pipeline warning
OBorce ad89c81
handle produce from block UTXO for tx fees
OBorce 282a988
fix build warning
OBorce 83029f0
Handle passphrase on the device
OBorce 2d89e4d
Use enums from protos
OBorce 602313d
fix comments
OBorce 57d7353
roll back CHANGELOGS
OBorce 9e65a59
fix styling
OBorce 9ce2cfa
Handle Mintlayer order inputs and fees
OBorce 4c5d084
add Mintlayer chain type to proto messages
OBorce e9d6bf2
fix new Flake8 warnings
OBorce bf2afd0
refactor Mintlayer messages and fix comments
OBorce 1412336
fix mintlayer lock type checking
OBorce 04f7132
fix mintlayer styling issues
OBorce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,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; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?