Skip to content

Zondax/ledger-centrifuge

Repository files navigation

Ledger Centrifuge App

License GithubActions


zondax_light zondax_dark

Please visit our website at zondax.ch


This project contains the Centrifuge app (https://centrifuge.io/) for Ledger Nano S and X.

  • Ledger Nano S/X 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

Centrifuge 1.1007.x

System

Name Light XL Nesting Arguments
Fill block Perbill ratio
Remark Vecu8 remark
Set heap pages u64 pages
Set code Vecu8 code
Set code without checks Vecu8 code
Set storage VecKeyValue items
Kill storage VecKey keys
Kill prefix Key prefix
u32 subkeys
Remark with event Vecu8 remark

ParachainSystem

Name Light XL Nesting Arguments
Set validation data ParachainInherentData data
Sudo send upward message UpwardMessage message
Authorize upgrade Hash code_hash
Enact authorized upgrade Vecu8 code

Timestamp

Name Light XL Nesting Arguments
Set Compactu64 now

Balances

Name Light XL Nesting Arguments
Transfer ✔️ ✔️ ✔️ LookupasStaticLookupSource dest
CompactBalance amount
Set balance ✔️ ✔️ LookupasStaticLookupSource who
CompactBalance new_free
CompactBalance new_reserved
Force transfer ✔️ ✔️ ✔️ LookupasStaticLookupSource source
LookupasStaticLookupSource dest
CompactBalance amount
Transfer keep alive ✔️ ✔️ ✔️ LookupasStaticLookupSource dest
CompactBalance amount
Transfer all ✔️ ✔️ LookupasStaticLookupSource dest
bool keep_alive
Force unreserve ✔️ LookupasStaticLookupSource who
Balance amount

Authorship

Name Light XL Nesting Arguments
Set uncles VecHeader new_uncles

Session

Name Light XL Nesting Arguments
Set keys Keys keys
Bytes proof
Purge keys

Multisig

Name Light XL Nesting Arguments
As multi threshold 1 VecAccountId other_signatories
Call call
As multi u16 threshold
VecAccountId other_signatories
OptionTimepoint maybe_timepoint
OpaqueCall call
bool store_call
Weight max_weight
Approve as multi u16 threshold
VecAccountId other_signatories
OptionTimepoint maybe_timepoint
H256 call_hash
Weight max_weight
Cancel as multi u16 threshold
VecAccountId other_signatories
Timepoint timepoint
H256 call_hash

Proxy

Name Light XL Nesting Arguments
Proxy AccountId real
OptionProxyType force_proxy_type
Call call
Add proxy AccountId delegate
ProxyType proxy_type
BlockNumber delay
Remove proxy AccountId delegate
ProxyType proxy_type
BlockNumber delay
Remove proxies
Anonymous ProxyType proxy_type
BlockNumber delay
u16 index
Kill anonymous AccountId spawner
ProxyType proxy_type
u16 index
Compactu32 height
Compactu32 ext_index
Announce AccountId real
CallHashOf call_hash
Remove announcement AccountId real
CallHashOf call_hash
Reject announcement AccountId delegate
CallHashOf call_hash
Proxy announced AccountId delegate
AccountId real
OptionProxyType force_proxy_type
Call call

Utility

Name Light XL Nesting Arguments
Batch VecCall calls
As derivative u16 index
Call call
Batch all VecCall calls
Dispatch as BoxPalletsOrigin as_origin
Call call
Force batch VecCall calls

Scheduler

Name Light XL Nesting Arguments
Schedule BlockNumber when
OptionschedulePeriodBlockNumber maybe_periodic
schedulePriority priority
BoxCallOrHashOfT call
Cancel BlockNumber when
u32 index
Schedule named Vecu8 id
BlockNumber when
OptionschedulePeriodBlockNumber maybe_periodic
schedulePriority priority
BoxCallOrHashOfT call
Cancel named Vecu8 id
Schedule after BlockNumber after
OptionschedulePeriodBlockNumber maybe_periodic
schedulePriority priority
BoxCallOrHashOfT call
Schedule named after Vecu8 id
BlockNumber after
OptionschedulePeriodBlockNumber maybe_periodic
schedulePriority priority
BoxCallOrHashOfT call

Council

Name Light XL Nesting Arguments
Set members VecAccountId new_members
OptionAccountId prime
MemberCount old_count
Execute Proposal proposal
Compactu32 length_bound
Propose Compactu32 threshold
Proposal proposal
Compactu32 length_bound
Vote Hash proposal
Compactu32 index
bool approve
Close Hash proposal_hash
Compactu32 index
Compactu64 proposal_weight_bound
Compactu32 length_bound
Disapprove proposal Hash proposal_hash

Elections

Name Light XL Nesting Arguments
Vote VecAccountId votes
Compactu128 amount
Remove voter
Submit candidacy Compactu32 candidate_count
Renounce candidacy Renouncing renouncing
Remove member LookupasStaticLookupSource who
bool has_replacement
Clean defunct voters u32 num_voters
u32 num_defunct

Democracy

Name Light XL Nesting Arguments
Propose Hash proposal_hash
CompactBalance amount
Second Compactu32 proposal
Compactu32 seconds_upper_bound
Vote Compactu32 ref_index
AccountVote vote
Emergency cancel ReferendumIndex ref_index
External propose Hash proposal_hash
External propose majority Hash proposal_hash
External propose default Hash proposal_hash
Fast track Hash proposal_hash
BlockNumber voting_period
BlockNumber delay
Veto external Hash proposal_hash
Cancel referendum Compactu32 ref_index
Cancel queued ReferendumIndex which
Delegate AccountId to
Conviction conviction
Balance balance
Undelegate
Clear public proposals
Note preimage Bytes encoded_proposal
Note preimage operational Bytes encoded_proposal
Note imminent preimage Bytes encoded_proposal
Note imminent preimage operational Bytes encoded_proposal
Reap preimage Hash proposal_hash
Compactu32 proposal_len_upper_bound
Unlock AccountId target
Remove vote ReferendumIndex index
Remove other vote AccountId target
ReferendumIndex index
Enact proposal Hash proposal_hash
ReferendumIndex index
Blacklist Hash proposal_hash
OptionReferendumIndex maybe_ref_index
Cancel proposal Compactu32 prop_index

Identity

Name Light XL Nesting Arguments
Add registrar AccountId account
Set identity BoxIdentityInfoMaxAdditionalFields info
Set subs VecTupleAccountIdData subs
Clear identity
Request judgement Compactu32 reg_index
Compactu128 max_fee
Cancel request RegistrarIndex reg_index
Set fee Compactu32 index
Compactu128 fee
Set account id Compactu32 index
AccountId new_
Set fields Compactu32 index
IdentityFields fields
Provide judgement Compactu32 reg_index
LookupasStaticLookupSource target
JudgementBalanceOfT judgement
Kill identity LookupasStaticLookupSource target
Add sub LookupasStaticLookupSource sub
Data data
Rename sub LookupasStaticLookupSource sub
Data data
Remove sub LookupasStaticLookupSource sub
Quit sub

Vesting

Name Light XL Nesting Arguments
Vest
Vest other LookupasStaticLookupSource target
Vested transfer LookupasStaticLookupSource target
VestingInfo schedule
Force vested transfer LookupasStaticLookupSource source
LookupasStaticLookupSource target
VestingInfo schedule
Merge schedules u32 schedule1_index
u32 schedule2_index

Preimage

Name Light XL Nesting Arguments
Note preimage Vecu8 bytes
Unnote preimage Hash hash
Request preimage Hash hash
Unrequest preimage Hash hash

Treasury

Name Light XL Nesting Arguments
Propose spend CompactBalance amount
LookupasStaticLookupSource beneficiary
Reject proposal Compactu32 proposal_id
Approve proposal Compactu32 proposal_id
Remove approval Compactu32 proposal_id

Fees

Name Light XL Nesting Arguments
Set fee Hash key
Balance new_price

Anchor

Name Light XL Nesting Arguments
Pre commit Hash anchor_id
Hash signing_root
Commit Hash anchor_id_preimage
Hash doc_root
Hash proof
Moment stored_until_date
Evict pre commits BlockNumber evict_bucket
Evict anchors

Claims

Name Light XL Nesting Arguments
Claim AccountId account_id
Balance amount
VecHash sorted_hashes
Set upload account AccountId account_id
Store root hash Hash root_hash

Nfts

Name Light XL Nesting Arguments
Validate mint SystemHashOfT anchor_id
DepositAddress deposit_address
VecProofHasherHashOfBundleHasher proofs
FixedArrayHasherHashOfBundleHasher3 static_proofs
TasConfigChainId dest_id

Bridge

Name Light XL Nesting Arguments
Transfer native Balance amount
Vecu8 recipient
ChainId dest_id
Transfer AccountId to
Balance amount
H256 r_id
Remark Hash hash
H256 r_id
Set native token transfer fee Balance new_fee
Set nft token transfer fee Balance new_fee

Migration

Name Light XL Nesting Arguments
Migrate system account VecTupleVecu8Vecu8 accounts
Migrate balances issuance Balance additional_issuance
Migrate vesting vesting VecTupleAccountIdVestingInfoBalanceOfTBlockNumber vestings
Migrate proxy proxies VecAccountIdTaspallet_proxyConfigCurrencyasframe_supporttraitsCurrencyTasframe_systemConfigAccountIdBalanceBoundedVecProxyDefinitionAccountIdProxyTypeBlockNumberTaspallet_proxyConfigMaxProxiesTaspallet_proxyConfigCurrencyasframe_supporttraitsCurrencyTasframe_systemConfigAccountIdBalance proxies
Finalize

CrowdloanClaim

Name Light XL Nesting Arguments
Claim reward RelayChainAccountId relaychain_account_id
ParachainAccountIdOfT parachain_account_id
MultiSignature identity_proof
ProofHash contribution_proof
Balance contribution
Initialize RootHashOfT contributions
BlockNumber locked_at
TrieIndex index
BlockNumber lease_start
BlockNumber lease_period
Set lease start BlockNumber start
Set lease period BlockNumber period
Set contributions root RootHashOfT root
Set locked at BlockNumber locked_at
Set crowdloan trie index TrieIndex trie_index

CrowdloanReward

Name Light XL Nesting Arguments
Initialize Perbill direct_payout_ratio
BlockNumber vesting_period
BlockNumber vesting_start
Set vesting start BlockNumber start
Set vesting period BlockNumber period
Set direct payout ratio Perbill ratio

ChainBridge

Name Light XL Nesting Arguments
Set threshold u32 threshold
Set resource H256 id
Vecu8 method
Remove resource H256 id
Whitelist chain ChainId id
Add relayer AccountId v
Remove relayer AccountId account_id
Acknowledge proposal DepositNonce nonce
ChainId src_id
H256 r_id
BoxTasConfigProposal call
Reject proposal DepositNonce nonce
ChainId src_id
H256 r_id
BoxTasConfigProposal call
Eval vote state DepositNonce nonce
ChainId src_id
BoxTasConfigProposal proposal

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors