Skip to content

LedgerHQ/app-reef

 
 

Repository files navigation

Ledger Reef App

License GithubActions


zondax_light zondax_dark

Please visit our website at zondax.ch


This project contains the Reef app (https://reef.io/) for Ledger Nano S+, X, Stax and Flex.

  • Ledger Nano S+/X/Stax/Flex BOLOS app
  • Specs / Documentation
  • C++ unit tests
  • Zemu tests

For more information: How to build

ATTENTION

Please:

  • Do not use in production
  • Do not use a Ledger device with funds for development purposes.
  • Have a separate and marked device that is used ONLY for development and testing

Reef 2.10.x

System

Name Nano SP/X Stax/Flex Nesting Arguments
fill_block ✔️ ✔️ ✔️ Perbill_ratio
remark ✔️ ✔️ ✔️ Bytes_remark
set_heap_pages ✔️ ✔️ ✔️ u64pages
set_code ✔️ ✔️ ✔️ Bytescode
set_code_without_checks ✔️ ✔️ ✔️ Bytescode
set_changes_trie_config Option<ChangesTrieConfiguration>changes_trie_config
set_storage Vec<KeyValue>items
kill_storage Vec<Key>keys
kill_prefix Keyprefix
u32_subkeys
remark_with_event ✔️ ✔️ ✔️ Bytesremark

RandomnessCollectiveFlip

Empty

Timestamp

Name Nano SP/X Stax/Flex Nesting Arguments
set ✔️ ✔️ Compact<Moment>now

Sudo

Name Nano SP/X Stax/Flex Nesting Arguments
sudo Callcall
sudo_unchecked_weight Callcall
Weight_weight
set_key LookupSourcenew
sudo_as LookupSourcewho
Callcall

Scheduler

Name Nano SP/X Stax/Flex Nesting Arguments
schedule BlockNumberwhen
Option<Period>maybe_periodic
Prioritypriority
Callcall
cancel BlockNumberwhen
u32index
schedule_named Bytesid
BlockNumberwhen
Option<Period>maybe_periodic
Prioritypriority
Callcall
cancel_named Bytesid
schedule_after BlockNumberafter
Option<Period>maybe_periodic
Prioritypriority
Callcall
schedule_named_after Bytesid
BlockNumberafter
Option<Period>maybe_periodic
Prioritypriority
Callcall

Indices

Name Nano SP/X Stax/Flex Nesting Arguments
claim ✔️ ✔️ AccountIndexindex
transfer ✔️ ✔️ AccountIdnew
AccountIndexindex
free ✔️ ✔️ AccountIndexindex
force_transfer ✔️ ✔️ AccountIdnew
AccountIndexindex
boolfreeze
freeze ✔️ ✔️ AccountIndexindex

Balances

Name Nano SP/X Stax/Flex Nesting Arguments
transfer ✔️ ✔️ ✔️ LookupSourcedest
Compact<Balance>value
set_balance ✔️ ✔️ ✔️ LookupSourcewho
Compact<Balance>new_free
Compact<Balance>new_reserved
force_transfer ✔️ ✔️ ✔️ LookupSourcesource
LookupSourcedest
Compact<Balance>value
transfer_keep_alive ✔️ ✔️ ✔️ LookupSourcedest
Compact<Balance>value
transfer_all ✔️ ✔️ ✔️ LookupSourcedest
boolkeep_alive

Currencies

Name Nano SP/X Stax/Flex Nesting Arguments
transfer LookupSourcedest
CurrencyIdOfcurrency_id
Compact<BalanceOf>amount
transfer_native_currency LookupSourcedest
Compact<BalanceOf>amount
update_balance LookupSourcewho
CurrencyIdOfcurrency_id
AmountOfamount

Tokens

Empty

TransactionPayment

Name Nano SP/X Stax/Flex Nesting Arguments
set_default_fee_token Option<CurrencyId>fee_token

Authority

Name Nano SP/X Stax/Flex Nesting Arguments
dispatch_as AsOriginIdas_origin
CallOfcall
schedule_dispatch DispatchTimewhen
Prioritypriority
boolwith_delayed_origin
CallOfcall
fast_track_scheduled_dispatch PalletsOrigininitial_origin
ScheduleTaskIndextask_id
DispatchTimewhen
delay_scheduled_dispatch PalletsOrigininitial_origin
ScheduleTaskIndextask_id
BlockNumberadditional_delay
cancel_scheduled_dispatch PalletsOrigininitial_origin
ScheduleTaskIndextask_id
authorize_call CallOfcall
Option<AccountId>caller
remove_authorized_call Hashhash
trigger_call Hashhash
Compact<Weight>call_weight_bound

Utility

Name Nano SP/X Stax/Flex Nesting Arguments
batch ✔️ ✔️ Vec<Call>calls
as_derivative u16index
Callcall
batch_all ✔️ ✔️ Vec<Call>calls

Multisig

Name Nano SP/X Stax/Flex Nesting Arguments
as_multi_threshold_1 Vec<AccountId>other_signatories
Callcall
as_multi u16threshold
Vec<AccountId>other_signatories
Option<Timepoint>maybe_timepoint
OpaqueCallcall
boolstore_call
Weightmax_weight
approve_as_multi u16threshold
Vec<AccountId>other_signatories
Option<Timepoint>maybe_timepoint
[u8;32]call_hash
Weightmax_weight
cancel_as_multi u16threshold
Vec<AccountId>other_signatories
Timepointtimepoint
[u8;32]call_hash

EvmAccounts

Name Nano SP/X Stax/Flex Nesting Arguments
claim_account EvmAddresseth_address
EcdsaSignatureeth_signature
claim_default_account

EVM

Name Nano SP/X Stax/Flex Nesting Arguments
call EvmAddresstarget
Bytesinput
BalanceOfvalue
u64gas_limit
u32storage_limit
scheduled_call EvmAddressfrom
EvmAddresstarget
Bytesinput
BalanceOfvalue
u64gas_limit
u32storage_limit
create Bytesinit
BalanceOfvalue
u64gas_limit
u32storage_limit
create2 Bytesinit
H256salt
BalanceOfvalue
u64gas_limit
u32storage_limit
create_network_contract Bytesinit
BalanceOfvalue
u64gas_limit
u32storage_limit
transfer_maintainer EvmAddresscontract
EvmAddressnew_maintainer
deploy EvmAddresscontract
deploy_free EvmAddresscontract
enable_contract_development
disable_contract_development
set_code EvmAddresscontract
Bytescode
selfdestruct EvmAddresscontract

EVMBridge

Empty

Authorship

Name Nano SP/X Stax/Flex Nesting Arguments
set_uncles Vec<Header>new_uncles

Babe

Name Nano SP/X Stax/Flex Nesting Arguments
report_equivocation BabeEquivocationProofequivocation_proof
KeyOwnerProofkey_owner_proof
report_equivocation_unsigned BabeEquivocationProofequivocation_proof
KeyOwnerProofkey_owner_proof
plan_config_change NextConfigDescriptorconfig

Grandpa

Name Nano SP/X Stax/Flex Nesting Arguments
report_equivocation GrandpaEquivocationProofequivocation_proof
KeyOwnerProofkey_owner_proof
report_equivocation_unsigned GrandpaEquivocationProofequivocation_proof
KeyOwnerProofkey_owner_proof
note_stalled BlockNumberdelay
BlockNumberbest_finalized_block_number

Staking

Name Nano SP/X Stax/Flex Nesting Arguments
bond ✔️ ✔️ ✔️ LookupSourcecontroller
Compact<BalanceOf>value
RewardDestinationpayee
bond_extra ✔️ ✔️ ✔️ Compact<BalanceOf>max_additional
unbond ✔️ ✔️ ✔️ Compact<BalanceOf>value
withdraw_unbonded ✔️ ✔️ ✔️ u32num_slashing_spans
validate ✔️ ✔️ ✔️ ValidatorPrefsprefs
nominate ✔️ ✔️ ✔️ Vec<LookupSource>targets
chill ✔️ ✔️ ✔️
set_payee ✔️ ✔️ ✔️ RewardDestinationpayee
set_controller ✔️ ✔️ ✔️ LookupSourcecontroller
set_validator_count ✔️ ✔️ Compact<u32>new
increase_validator_count ✔️ ✔️ Compact<u32>additional
scale_validator_count ✔️ ✔️ Percentfactor
force_no_eras ✔️ ✔️
force_new_era ✔️ ✔️
set_invulnerables ✔️ ✔️ Vec<AccountId>invulnerables
force_unstake ✔️ ✔️ AccountIdstash
u32num_slashing_spans
force_new_era_always ✔️ ✔️
cancel_deferred_slash ✔️ ✔️ EraIndexera
Vec<u32>slash_indices
payout_stakers ✔️ ✔️ ✔️ AccountIdvalidator_stash
EraIndexera
rebond ✔️ ✔️ ✔️ Compact<BalanceOf>value
set_history_depth ✔️ ✔️ Compact<EraIndex>new_history_depth
Compact<u32>_era_items_deleted
reap_stash ✔️ ✔️ AccountIdstash
u32num_slashing_spans
kick ✔️ ✔️ Vec<LookupSource>who
set_staking_limits ✔️ ✔️ BalanceOfmin_nominator_bond
BalanceOfmin_validator_bond
Option<u32>max_nominator_count
Option<u32>max_validator_count
Option<Percent>threshold
chill_other ✔️ ✔️ AccountIdcontroller

Session

Name Nano SP/X Stax/Flex Nesting Arguments
set_keys ✔️ ✔️ ✔️ Keyskeys
Bytesproof
purge_keys ✔️ ✔️ ✔️

Historical

Empty

Offences

Empty

ImOnline

Name Nano SP/X Stax/Flex Nesting Arguments
heartbeat Heartbeatheartbeat
Signature_signature

AuthorityDiscovery

Empty

Identity

Name Nano SP/X Stax/Flex Nesting Arguments
add_registrar ✔️ ✔️ AccountIdaccount
set_identity IdentityInfoinfo
set_subs Vec<(AccountId,Data)>subs
clear_identity ✔️ ✔️
request_judgement ✔️ ✔️ Compact<RegistrarIndex>reg_index
Compact<BalanceOf>max_fee
cancel_request ✔️ ✔️ RegistrarIndexreg_index
set_fee ✔️ ✔️ Compact<RegistrarIndex>index
Compact<BalanceOf>fee
set_account_id ✔️ ✔️ Compact<RegistrarIndex>index
AccountIdnew
set_fields Compact<RegistrarIndex>index
IdentityFieldsfields
provide_judgement Compact<RegistrarIndex>reg_index
LookupSourcetarget
IdentityJudgementjudgement
kill_identity ✔️ ✔️ LookupSourcetarget
add_sub LookupSourcesub
Datadata
rename_sub LookupSourcesub
Datadata
remove_sub ✔️ ✔️ LookupSourcesub
quit_sub ✔️ ✔️

TechCouncil

Name Nano SP/X Stax/Flex Nesting Arguments
set_members ✔️ ✔️ Vec<AccountId>new_members
Option<AccountId>prime
MemberCountold_count
execute ✔️ ✔️ Proposalproposal
Compact<u32>length_bound
propose ✔️ ✔️ Compact<MemberCount>threshold
Proposalproposal
Compact<u32>length_bound
vote ✔️ ✔️ Hashproposal
Compact<ProposalIndex>index
boolapprove
close ✔️ ✔️ Hashproposal_hash
Compact<ProposalIndex>index
Compact<Weight>proposal_weight_bound
Compact<u32>length_bound
disapprove_proposal ✔️ ✔️ Hashproposal_hash

Poc

Name Nano SP/X Stax/Flex Nesting Arguments
start_candidacy
stop_candidacy
commit Compact<BalanceOf>amount
LockDurationduration
AccountIdcandidate
add_funds Compact<BalanceOf>amount
unbond
withdraw
vote_candidate AccountIdcandidate

About

Reef app for Ledger Nano S and X

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 76.8%
  • C++ 6.6%
  • CMake 6.5%
  • TypeScript 4.6%
  • Linker Script 2.4%
  • Makefile 1.6%
  • Other 1.5%