Please visit our website at zondax.ch
This project contains the Astar app (https://astar.network/) 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
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
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Remark | ✔️ | ✔️ | ✔️ | Bytes 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 prefixu32 subkeys |
||||
Remark with event | Bytes remark |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Batch | ✔️ | ✔️ | ✔️ | VecCall calls |
|
As derivative | u16 indexCall call |
||||
Batch all | ✔️ | ✔️ | ✔️ | VecCall calls |
|
Dispatch as | BoxPalletsOrigin as_originCall call |
||||
Force batch | ✔️ | ✔️ | ✔️ | VecCall calls |
|
With weight | ✔️ | ✔️ | Call callWeight weight |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Add registrar | AccountIdLookupOfT account |
||||
Set identity | IdentityInfo info |
||||
Set subs | VecTupleAccountIdData subs |
||||
Clear identity | |||||
Request judgement | Compactu32 reg_indexCompactu128 max_fee |
||||
Cancel request | RegistrarIndex reg_index |
||||
Set fee | Compactu32 indexCompactu128 fee |
||||
Set account id | Compactu32 indexAccountIdLookupOfT new_ |
||||
Set fields | Compactu32 indexIdentityFields fields |
||||
Provide judgement | Compactu32 reg_indexAccountIdLookupOfT targetJudgementBalanceOfT judgementHash identity |
||||
Kill identity | AccountIdLookupOfT target |
||||
Add sub | AccountIdLookupOfT subData data |
||||
Rename sub | AccountIdLookupOfT subData data |
||||
Remove sub | AccountIdLookupOfT sub |
||||
Quit sub |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set | Compactu64 now |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
As multi threshold 1 | ✔️ | ✔️ | ✔️ | VecAccountId other_signatoriesCall call |
|
As multi | ✔️ | ✔️ | ✔️ | u16 thresholdVecAccountId other_signatoriesOptionTimepoint maybe_timepointCall callWeight max_weight |
|
Approve as multi | ✔️ | ✔️ | ✔️ | u16 thresholdVecAccountId other_signatoriesOptionTimepoint maybe_timepointH256 call_hashWeight max_weight |
|
Cancel as multi | ✔️ | ✔️ | ✔️ | u16 thresholdVecAccountId other_signatoriesTimepoint timepointH256 call_hash |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set validation data | ParachainInherentData data |
||||
Sudo send upward message | UpwardMessage message |
||||
Authorize upgrade | Hash code_hash |
||||
Enact authorized upgrade | Vecu8 code |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Transfer | ✔️ | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT destCompactBalance amount |
Set balance | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT whoCompactBalance new_freeCompactBalance new_reserved |
|
Force transfer | ✔️ | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT sourceAccountIdLookupOfT destCompactBalance amount |
Transfer keep alive | ✔️ | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT destCompactBalance amount |
Transfer all | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT destbool keep_alive |
|
Force unreserve | ✔️ | ✔️ | AccountIdLookupOfT whoBalance amount |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Vest | ✔️ | ✔️ | ✔️ | ✔️ | |
Vest other | ✔️ | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT target |
Vested transfer | ✔️ | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT targetVestingInfo schedule |
Force vested transfer | ✔️ | ✔️ | ✔️ | ✔️ | AccountIdLookupOfT sourceAccountIdLookupOfT targetVestingInfo schedule |
Merge schedules | ✔️ | ✔️ | ✔️ | ✔️ | u32 schedule1_indexu32 schedule2_index |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Register | ✔️ | ✔️ | ✔️ | AccountId developerSmartContract contract_id |
|
Unregister | ✔️ | ✔️ | ✔️ | SmartContract contract_id |
|
Withdraw from unregistered | ✔️ | ✔️ | ✔️ | SmartContract contract_id |
|
Bond and stake | ✔️ | ✔️ | ✔️ | SmartContract contract_idCompactu128 amount |
|
Unbond and unstake | ✔️ | ✔️ | ✔️ | SmartContract contract_idCompactu128 amount |
|
Withdraw Unbonded | ✔️ | ✔️ | ✔️ | ||
Nomination transfer | ✔️ | ✔️ | ✔️ | SmartContract origin_contract_idCompactu128 amountSmartContract target_contract_id |
|
Claim staker | ✔️ | ✔️ | ✔️ | ✔️ | SmartContract contract_id |
Claim dapp | ✔️ | ✔️ | ✔️ | ✔️ | SmartContract contract_idCompactu32 era |
Force new era | ✔️ | ✔️ | |||
Maintenance mode | ✔️ | ✔️ | bool enable_maintenance |
||
Set reward destination | ✔️ | ✔️ | DappsRewardDestination reward_destination |
||
Set contract stake info | ✔️ | ✔️ | SmartContract contractEraIndex eraContractStakeInfoBalanceOfT contract_stake_info |
||
Burn stale reward | ✔️ | ✔️ | SmartContract contract_idCompactu32 era |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set configuration | RewardDistributionConfig reward_distro_params |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Create | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT adminBalance min_balance |
||
Force create | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT ownerbool is_sufficientCompactBalance min_balance |
||
Start destroy | ✔️ | ✔️ | CompactBalance id |
||
Destroy accounts | ✔️ | ✔️ | CompactBalance id |
||
Destroy approvals | ✔️ | ✔️ | CompactBalance id |
||
Finish destroy | ✔️ | ✔️ | CompactBalance id |
||
Mint | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT beneficiaryCompactBalance amount |
||
Burn | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT whoCompactBalance amount |
||
Transfer | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT targetCompactBalance amount |
||
Transfer keep alive | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT targetCompactBalance amount |
||
Force transfer | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT sourceAccountIdLookupOfT destCompactBalance amount |
||
Freeze | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT who |
||
Thaw | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT who |
||
Freeze asset | ✔️ | ✔️ | CompactBalance id |
||
Thaw asset | ✔️ | ✔️ | CompactBalance id |
||
Transfer ownership | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT owner |
||
Set team | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT issuerAccountIdLookupOfT adminAccountIdLookupOfT freezer |
||
Set metadata | ✔️ | ✔️ | CompactBalance idVecu8 nameVecu8 symbolu8 decimals |
||
Clear metadata | ✔️ | ✔️ | CompactBalance id |
||
Force set metadata | ✔️ | ✔️ | CompactBalance idVecu8 nameVecu8 symbolu8 decimalsbool is_frozen |
||
Force clear metadata | ✔️ | ✔️ | CompactBalance id |
||
Force asset status | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT ownerAccountIdLookupOfT issuerAccountIdLookupOfT adminAccountIdLookupOfT freezerCompactBalance min_balancebool is_sufficientbool is_frozen |
||
Approve transfer | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT delegateCompactBalance amount |
||
Cancel approval | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT delegate |
||
Force cancel approval | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT ownerAccountIdLookupOfT delegate |
||
Transfer approved | ✔️ | ✔️ | CompactBalance idAccountIdLookupOfT ownerAccountIdLookupOfT destinationCompactBalance amount |
||
Touch | ✔️ | ✔️ | CompactBalance id |
||
Refund | ✔️ | ✔️ | CompactBalance idbool allow_burn |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set uncles | VecHeader new_uncles |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set invulnerables | VecAccountId new_ |
||||
Set desired candidates | u32 max |
||||
Set candidacy bond | Balance bond |
||||
Register as candidate | |||||
Leave intent |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set keys | Keys keysBytes proof |
||||
Purge keys |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Service overweight | OverweightIndex indexXcmWeight weight_limit |
||||
Suspend xcm execution | |||||
Resume xcm execution | |||||
Update suspend threshold | u32 new_ |
||||
Update drop threshold | u32 new_ |
||||
Update resume threshold | u32 new_ |
||||
Update threshold weight | XcmWeight new_ |
||||
Update weight restrict decay | XcmWeight new_ |
||||
Update xcmp max individual weight | XcmWeight new_ |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Send | BoxVersionedMultiLocation destBoxVersionedXcmTuple message |
||||
Teleport assets | BoxVersionedMultiLocation destBoxVersionedMultiLocation beneficiaryBoxVersionedMultiAssets assetsu32 fee_asset_item |
||||
Reserve transfer assets | BoxVersionedMultiLocation destBoxVersionedMultiLocation beneficiaryBoxVersionedMultiAssets assetsu32 fee_asset_item |
||||
Reserve withdraw assets | BoxVersionedMultiLocation destBoxVersionedMultiLocation beneficiaryBoxVersionedMultiAssets assetsu32 fee_asset_item |
||||
Execute | BoxVersionedXcmTasSysConfigRuntimeCall messageWeight max_weight |
||||
Force xcm version | BoxMultiLocation locationXcmVersion xcm_version |
||||
Force default xcm version | OptionXcmVersion maybe_xcm_version |
||||
Force subscribe version notify | BoxVersionedMultiLocation location |
||||
Force unsubscribe version notify | BoxVersionedMultiLocation location |
||||
Limited reserve transfer assets | BoxVersionedMultiLocation destBoxVersionedMultiLocation beneficiaryBoxVersionedMultiAssets assetsu32 fee_asset_itemWeightLimit weight_limit |
||||
Limited teleport assets | BoxVersionedMultiLocation destBoxVersionedMultiLocation beneficiaryBoxVersionedMultiAssets assetsu32 fee_asset_itemWeightLimit weight_limit |
||||
Limited reserve withdraw assets | BoxVersionedMultiLocation destBoxVersionedMultiLocation beneficiaryBoxVersionedMultiAssets assetsu32 fee_asset_itemWeightLimit weight_limit |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Service overweight | OverweightIndex indexXcmWeight weight_limit |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Register asset location | BoxVersionedMultiLocation asset_locationCompactu128 asset_id |
||||
Set asset units per second | BoxVersionedMultiLocation asset_locationCompactu128 units_per_second |
||||
Change existing asset location | BoxVersionedMultiLocation new_asset_locationCompactu128 asset_id |
||||
Remove payment asset | BoxVersionedMultiLocation asset_location |
||||
Remove asset | Compactu128 asset_id |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Withdraw | ✔️ | ✔️ | ✔️ | ✔️ | H160 addressBalance amount |
Call | H160 sourceH160 targetVecu8 inputU256 valueu64 gas_limitU256 max_fee_per_gasOptionU256 max_priority_fee_per_gasOptionU256 nonceVecTupleH160VecH256 access_list |
||||
Create | H160 sourceVecu8 initU256 valueu64 gas_limitU256 max_fee_per_gasOptionU256 max_priority_fee_per_gasOptionU256 nonceVecTupleH160VecH256 access_list |
||||
Create2 | H160 sourceVecu8 initH256 saltU256 valueu64 gas_limitU256 max_fee_per_gasOptionU256 max_priority_fee_per_gasOptionU256 nonceVecTupleH160VecH256 access_list |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Transact | Transaction transaction |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Call | Call callAccountId signerVecu8 signatureCompactu32 nonce |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Set base fee per gas | U256 fee |
||||
Set elasticity | Permill elasticity |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Call old weight | AccountIdLookupOfT destCompactBalance amountCompactu64 gas_limitOptionCompactBalanceOf storage_deposit_limitVecu8 data |
||||
Instantiate with code old weight | CompactBalance amountCompactu64 gas_limitOptionCompactBalanceOf storage_deposit_limitVecu8 codeVecu8 dataVecu8 salt |
||||
Instantiate old weight | CompactBalance amountCompactu64 gas_limitOptionCompactBalanceOf storage_deposit_limitCodeHash code_hashVecu8 dataVecu8 salt |
||||
Upload code | Vecu8 codeOptionCompactBalanceOf storage_deposit_limitDeterminism determinism |
||||
Remove code | CodeHash code_hash |
||||
Set code | AccountIdLookupOfT destCodeHash code_hash |
||||
Call | AccountIdLookupOfT destCompactBalance amountWeight gas_limitOptionCompactBalanceOf storage_deposit_limitVecu8 data |
||||
Instantiate with code | CompactBalance amountWeight gas_limitOptionCompactBalanceOf storage_deposit_limitVecu8 codeVecu8 dataVecu8 salt |
||||
Instantiate | CompactBalance amountWeight gas_limitOptionCompactBalanceOf storage_deposit_limitCodeHash code_hashBytes dataBytes salt |
Name | Nano S | Nano S XL | Nano SP/X | Nesting | Arguments |
---|---|---|---|---|---|
Sudo | Call call |
||||
Sudo unchecked weight | Call callWeight weight |
||||
Set key | AccountIdLookupOfT new_ |
||||
Sudo as | AccountIdLookupOfT whoCall call |