diff --git a/.github/workflows/check_version.yml b/.github/workflows/check_version.yml
index 85e7bb4..94b30bb 100644
--- a/.github/workflows/check_version.yml
+++ b/.github/workflows/check_version.yml
@@ -1,9 +1,9 @@
-name: "Verify PRs to master"
+name: "Verify PRs to main"
on:
pull_request:
branches:
- - master
+ - main
jobs:
configure:
@@ -55,4 +55,5 @@ jobs:
- name: Tag exists
if: ${{ steps.checkTag.outputs.exists == 'true' }}
- run: exit 1
\ No newline at end of file
+ run: exit 1
+
diff --git a/.github/workflows/ledger.yml b/.github/workflows/ledger.yml
index 200bb66..14029c3 100644
--- a/.github/workflows/ledger.yml
+++ b/.github/workflows/ledger.yml
@@ -1,11 +1,11 @@
name: CI
on:
- # Triggers the workflow on push or pull request events but only for the master branch
+ # Triggers the workflow on push or pull request events but only for the main branch
push:
- branches: [ master ]
+ branches: [main]
pull_request:
- branches: [ master ]
+ branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -20,6 +20,8 @@ jobs:
steps:
- uses: actions/checkout@v2
+ with:
+ submodules: true
- name: Build with Clang Static Analyzer
run: |
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 45fe030..b281474 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -1,5 +1,5 @@
name: Build
-on: [ push ]
+on: [push]
jobs:
configure:
@@ -139,7 +139,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v2
with:
- node-version: '14.17.0'
+ node-version: "14.17.0"
- name: Install yarn
run: |
npm install -g yarn
@@ -171,7 +171,7 @@ jobs:
- name: Install node
uses: actions/setup-node@v2
with:
- node-version: '14.17.0'
+ node-version: "14.17.0"
- name: Install yarn
run: |
npm install -g yarn
@@ -188,8 +188,17 @@ jobs:
cd tests_zemu && yarn testSR25519
build_package_0:
- needs: [configure, build, build_nano_S, build_nano_SP, build_nano_X, test_zemu, test_zemu_sr25519]
- if: ${{ github.ref == 'refs/heads/master' }}
+ needs:
+ [
+ configure,
+ build,
+ build_nano_S,
+ build_nano_SP,
+ build_nano_X,
+ test_zemu,
+ test_zemu_sr25519,
+ ]
+ if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
container:
image: zondax/builder-bolos:latest
@@ -227,8 +236,17 @@ jobs:
prerelease: false
build_package_1:
- needs: [configure, build, build_nano_S, build_nano_SP, build_nano_X, test_zemu, test_zemu_sr25519]
- if: ${{ github.ref == 'refs/heads/master' }}
+ needs:
+ [
+ configure,
+ build,
+ build_nano_S,
+ build_nano_SP,
+ build_nano_X,
+ test_zemu,
+ test_zemu_sr25519,
+ ]
+ if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
container:
image: zondax/builder-bolos:latest
@@ -266,8 +284,17 @@ jobs:
prerelease: false
build_package_2:
- needs: [configure, build, build_nano_S, build_nano_SP, build_nano_X, test_zemu, test_zemu_sr25519]
- if: ${{ github.ref == 'refs/heads/master' }}
+ needs:
+ [
+ configure,
+ build,
+ build_nano_S,
+ build_nano_SP,
+ build_nano_X,
+ test_zemu,
+ test_zemu_sr25519,
+ ]
+ if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
container:
image: zondax/builder-bolos:latest
diff --git a/.gitmodules b/.gitmodules
index b88a7f6..e371fe2 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -13,3 +13,6 @@
[submodule "deps/nanosplus-secure-sdk"]
path = deps/nanosplus-secure-sdk
url = https://github.com/LedgerHQ/nanosplus-secure-sdk
+[submodule "deps/ledger-zxlib"]
+ path = deps/ledger-zxlib
+ url = https://github.com/zondax/ledger-zxlib
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 46a8b39..56c20eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -115,6 +115,7 @@ file(GLOB_RECURSE LIB_SRC
####
${CMAKE_CURRENT_SOURCE_DIR}/app/src/crypto_helper.c
${CMAKE_CURRENT_SOURCE_DIR}/app/src/parser.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/app/src/parser_impl_common.c
${CMAKE_CURRENT_SOURCE_DIR}/app/src/parser_impl.c
${CMAKE_CURRENT_SOURCE_DIR}/app/src/parser_txdef.c
${CMAKE_CURRENT_SOURCE_DIR}/app/src/substrate/substrate*.c
diff --git a/README.md b/README.md
index 6276465..db8591f 100644
--- a/README.md
+++ b/README.md
@@ -28,495 +28,479 @@ 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**
-# Polymesh 2.3010.x
+# Polymesh 3.5000001.x
## System
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|fill_block | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` _ratio
|
-|remark | | :heavy_check_mark: | :heavy_check_mark: | `Bytes` _remark
|
-|set_heap_pages | | :heavy_check_mark: | :heavy_check_mark: | `u64` pages
|
-|set_code | | :heavy_check_mark: | :heavy_check_mark: | `Bytes` code
|
-|set_code_without_checks | | :heavy_check_mark: | :heavy_check_mark: | `Bytes` code
|
-|set_changes_trie_config | | | | `Option` changes_trie_config
|
-|set_storage | | | | `Vec` items
|
-|kill_storage | | | | `Vec` keys
|
-|kill_prefix | | | | `Key` prefix
`u32` _subkeys
|
+|Fill block | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` ratio
|
+|Remark | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` remark
|
+|Set heap pages | | :heavy_check_mark: | :heavy_check_mark: | `u64` pages
|
+|Set code | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` code
|
+|Set code without checks | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` code
|
+|Set storage | | | | `VecKeyValue` items
|
+|Kill storage | | | | `VecKey` keys
|
+|Kill prefix | | | | `Key` prefix
`u32` subkeys
|
+|Remark with event | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` remark
|
## Babe
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|report_equivocation | | | | `BabeEquivocationProof` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
-|report_equivocation_unsigned | | | | `BabeEquivocationProof` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation | | | | `BoxEquivocationProofHeader` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation unsigned | | | | `BoxEquivocationProofHeader` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Plan config change | | | | `NextConfigDescriptor` config
|
## Timestamp
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set | | :heavy_check_mark: | :heavy_check_mark: | `Compact` now
|
+|Set | | :heavy_check_mark: | :heavy_check_mark: | `Compactu64` now
|
## Indices
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|claim | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
-|transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new
`AccountIndex` index
|
-|free | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
-|force_transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new
`AccountIndex` index
`bool` freeze
|
-|freeze | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Claim | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new_
`AccountIndex` index
|
+|Free | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Force transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new_
`AccountIndex` index
`bool` freeze
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
## Authorship
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_uncles | | | | `Vec` new_uncles
|
+|Set uncles | | | | `VecHeader` new_uncles
|
## Balances
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|transfer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` dest
`Compact` value
|
-|transfer_with_memo | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` dest
`Compact` value
`Option` memo
|
-|deposit_block_reward_reserve_balance | | :heavy_check_mark: | :heavy_check_mark: | `Compact` value
|
-|set_balance | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` who
`Compact` new_free
`Compact` new_reserved
|
-|force_transfer | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` source
`LookupSource` dest
`Compact` value
|
-|burn_account_balance | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
-
-## TransactionPayment
-
-Empty
+|Transfer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
|
+|Transfer with memo | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
`OptionMemo` memo
|
+|Deposit block reward reserve balance | | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Set balance | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` who
`CompactBalance` new_free
`CompactBalance` new_reserved
|
+|Force transfer | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` source
`LookupasStaticLookupSource` dest
`CompactBalance` amount
|
+|Burn account balance | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
## Identity
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|cdd_register_did | | | | `AccountId` target_account
`Vec` secondary_keys
|
-|invalidate_cdd_claims | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` cdd
`Moment` disable_from
`Option` expiry
|
-|remove_secondary_keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` signers_to_remove
|
-|accept_primary_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` rotation_auth_id
`Option` optional_cdd_auth_id
|
-|change_cdd_requirement_for_mk_rotation | | :heavy_check_mark: | :heavy_check_mark: | `bool` auth_required
|
-|join_identity_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
-|leave_identity_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|add_claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`Option` expiry
|
-|revoke_claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
|
-|set_permission_to_signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` signer
`Permissions` perms
|
-|legacy_set_permission_to_signer | | | | `Signatory` signer
`LegacyPermissions` permissions
|
-|freeze_secondary_keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|unfreeze_secondary_keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|add_authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` target
`AuthorizationData` data
`Option` expiry
|
-|remove_authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` target
`u64` auth_id
`bool` _auth_issuer_pays
|
-|add_secondary_keys_with_authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` additional_keys
`Moment` expires_at
|
-|add_investor_uniqueness_claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`InvestorZKProofData` proof
`Option` expiry
|
-|gc_add_cdd_claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
-|gc_revoke_cdd_claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
-|add_investor_uniqueness_claim_v2 | | | | `IdentityId` target
`Scope` scope
`Claim` claim
`ScopeClaimProof` proof
`Option` expiry
|
-|revoke_claim_by_index | | :heavy_check_mark: | | `IdentityId` target
`ClaimType` claim_type
`Option` scope
|
-|rotate_primary_key_to_secondary | | :heavy_check_mark: | | `u64` auth_id
`Option` optional_cdd_auth_id
|
+|Cdd register did | | | | `AccountId` target_account
`VecSecondaryKeyAccountId` secondary_keys
|
+|Invalidate cdd claims | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` cdd
`Moment` disable_from
`OptionMoment` expiry
|
+|Remove secondary keys old | | | | `VecSignatoryAccountId` keys_to_remove
|
+|Accept primary key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` rotation_auth_id
`Optionu64` optional_cdd_auth_id
|
+|Change cdd requirement for mk rotation | | :heavy_check_mark: | :heavy_check_mark: | `bool` auth_required
|
+|Join identity as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Leave identity as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Add claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`OptionMoment` expiry
|
+|Revoke claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
|
+|Set permission to signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` key
`Permissions` perms
|
+|Placeholder legacy set permission to signer | | :heavy_check_mark: | | |
+|Freeze secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Unfreeze secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Add authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` target
`AuthorizationDataAccountId` data
`OptionMoment` expiry
|
+|Remove authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` target
`u64` auth_id
`bool` _auth_issuer_pays
|
+|Add secondary keys with authorization old | | | | `VecSecondaryKeyWithAuthV1AccountId` additional_keys
`Moment` expires_at
|
+|Add investor uniqueness claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`InvestorZKProofData` proof
`OptionMoment` expiry
|
+|Gc add cdd claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
+|Gc revoke cdd claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
+|Add investor uniqueness claim v2 | | | | `IdentityId` target
`Scope` scope
`Claim` claim
`ScopeClaimProof` proof
`OptionMoment` expiry
|
+|Revoke claim by index | | :heavy_check_mark: | | `IdentityId` target
`ClaimType` claim_type
`OptionScope` scope
|
+|Rotate primary key to secondary | | :heavy_check_mark: | | `u64` auth_id
`Optionu64` optional_cdd_auth_id
|
+|Add secondary keys with authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecSecondaryKeyWithAuthAccountId` additional_keys
`Moment` expires_at
|
+|Set secondary key permissions | | :heavy_check_mark: | | `AccountId` key
`Permissions` perms
|
+|Remove secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` keys_to_remove
|
## CddServiceProviders
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_active_members_limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
-|disable_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`Option` expiry
`Option` at
|
-|add_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|remove_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|swap_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
-|reset_members | | :heavy_check_mark: | :heavy_check_mark: | `Vec` members
|
-|abdicate_membership | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
## PolymeshCommittee
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_vote_threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
-|set_release_coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
-|set_expires_after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlock` expiry
|
-|vote_or_propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
-|vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
## CommitteeMembership
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_active_members_limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
-|disable_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`Option` expiry
`Option` at
|
-|add_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|remove_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|swap_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
-|reset_members | | :heavy_check_mark: | :heavy_check_mark: | `Vec` members
|
-|abdicate_membership | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
## TechnicalCommittee
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_vote_threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
-|set_release_coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
-|set_expires_after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlock` expiry
|
-|vote_or_propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
-|vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
## TechnicalCommitteeMembership
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_active_members_limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
-|disable_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`Option` expiry
`Option` at
|
-|add_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|remove_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|swap_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
-|reset_members | | :heavy_check_mark: | :heavy_check_mark: | `Vec` members
|
-|abdicate_membership | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
## UpgradeCommittee
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_vote_threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
-|set_release_coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
-|set_expires_after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlock` expiry
|
-|vote_or_propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
-|vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
## UpgradeCommitteeMembership
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_active_members_limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
-|disable_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`Option` expiry
`Option` at
|
-|add_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|remove_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|swap_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
-|reset_members | | :heavy_check_mark: | :heavy_check_mark: | `Vec` members
|
-|abdicate_membership | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
## MultiSig
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|create_multisig | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` signers
`u64` sigs_required
|
-|create_or_approve_proposal_as_identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`Option` expiry
`bool` auto_close
|
-|create_or_approve_proposal_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`Option` expiry
`bool` auto_close
|
-|create_proposal_as_identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`Option` expiry
`bool` auto_close
|
-|create_proposal_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`Option` expiry
`bool` auto_close
|
-|approve_as_identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
-|approve_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
-|reject_as_identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
-|reject_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
-|accept_multisig_signer_as_identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
-|accept_multisig_signer_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
-|add_multisig_signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` signer
|
-|remove_multisig_signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` signer
|
-|add_multisig_signers_via_creator | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Vec` signers
|
-|remove_multisig_signers_via_creator | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Vec` signers
|
-|change_sigs_required | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` sigs_required
|
-|make_multisig_signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
|
-|make_multisig_primary | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Option` optional_cdd_auth_id
|
-|execute_scheduled_proposal | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
`IdentityId` multisig_did
`Weight` _proposal_weight
|
+|Create multisig | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecSignatoryAccountId` signers
`u64` sigs_required
|
+|Create or approve proposal as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Create or approve proposal as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Create proposal as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Create proposal as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Approve as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Approve as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Reject as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Reject as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Accept multisig signer as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Accept multisig signer as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Add multisig signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` signer
|
+|Remove multisig signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` signer
|
+|Add multisig signers via creator | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`VecSignatoryAccountId` signers
|
+|Remove multisig signers via creator | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`VecSignatoryAccountId` signers
|
+|Change sigs required | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` sigs_required
|
+|Make multisig secondary | | :heavy_check_mark: | | `AccountId` multisig
|
+|Make multisig primary | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Optionu64` optional_cdd_auth_id
|
+|Execute scheduled proposal | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
`IdentityId` multisig_did
`Weight` _proposal_weight
|
## Bridge
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|change_controller | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` controller
|
-|change_admin | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` admin
|
-|change_timelock | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` timelock
|
-|freeze | | :heavy_check_mark: | :heavy_check_mark: | |
-|unfreeze | | :heavy_check_mark: | :heavy_check_mark: | |
-|change_bridge_limit | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
`BlockNumber` duration
|
-|change_bridge_exempted | | :heavy_check_mark: | :heavy_check_mark: | `Vec<(IdentityId,bool)>` exempted
|
-|force_handle_bridge_tx | | :heavy_check_mark: | | `BridgeTx` bridge_tx
|
-|batch_propose_bridge_tx | | :heavy_check_mark: | | `Vec` bridge_txs
|
-|propose_bridge_tx | | :heavy_check_mark: | | `BridgeTx` bridge_tx
|
-|handle_bridge_tx | | :heavy_check_mark: | | `BridgeTx` bridge_tx
|
-|freeze_txs | | :heavy_check_mark: | | `Vec` bridge_txs
|
-|unfreeze_txs | | :heavy_check_mark: | | `Vec` bridge_txs
|
-|handle_scheduled_bridge_tx | | :heavy_check_mark: | | `BridgeTx` bridge_tx
|
-|add_freeze_admin | | :heavy_check_mark: | | `AccountId` freeze_admin
|
-|remove_freeze_admin | | :heavy_check_mark: | | `AccountId` freeze_admin
|
-|remove_txs | | :heavy_check_mark: | | `Vec` bridge_txs
|
+|Change controller | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` controller
|
+|Change admin | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` admin
|
+|Change timelock | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` timelock
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | |
+|Unfreeze | | :heavy_check_mark: | :heavy_check_mark: | |
+|Change bridge limit | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
`BlockNumber` duration
|
+|Change bridge exempted | | :heavy_check_mark: | :heavy_check_mark: | `VecTupleIdentityIdbool` exempted
|
+|Force handle bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Batch propose bridge tx | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+|Propose bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Handle bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Freeze txs | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+|Unfreeze txs | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+|Handle scheduled bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Add freeze admin | | :heavy_check_mark: | | `AccountId` freeze_admin
|
+|Remove freeze admin | | :heavy_check_mark: | | `AccountId` freeze_admin
|
+|Remove txs | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
## Staking
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|bond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` controller
`Compact` value
`RewardDestination` payee
|
-|bond_extra | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Compact` max_additional
|
-|unbond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Compact` value
|
-|withdraw_unbonded | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u32` num_slashing_spans
|
-|validate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `ValidatorPrefs` prefs
|
-|nominate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` targets
|
-|chill | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|set_payee | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `RewardDestination` payee
|
-|set_controller | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` controller
|
-|set_validator_count | | :heavy_check_mark: | :heavy_check_mark: | `Compact` new
|
-|increase_validator_count | | :heavy_check_mark: | :heavy_check_mark: | `Compact` additional
|
-|scale_validator_count | | | | `Percent` factor
|
-|add_permissioned_validator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
`Option` intended_count
|
-|remove_permissioned_validator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
|
-|validate_cdd_expiry_nominators | | :heavy_check_mark: | :heavy_check_mark: | `Vec` targets
|
-|set_commission_cap | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` new_cap
|
-|set_min_bond_threshold | | :heavy_check_mark: | :heavy_check_mark: | `BalanceOf` new_value
|
-|force_no_eras | | :heavy_check_mark: | :heavy_check_mark: | |
-|force_new_era | | :heavy_check_mark: | :heavy_check_mark: | |
-|set_invulnerables | | :heavy_check_mark: | :heavy_check_mark: | `Vec` invulnerables
|
-|force_unstake | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` stash
`u32` num_slashing_spans
|
-|force_new_era_always | | :heavy_check_mark: | :heavy_check_mark: | |
-|cancel_deferred_slash | | :heavy_check_mark: | :heavy_check_mark: | `EraIndex` era
`Vec` slash_indices
|
-|payout_stakers | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` validator_stash
`EraIndex` era
|
-|rebond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Compact` value
|
-|set_history_depth | | :heavy_check_mark: | :heavy_check_mark: | `Compact` new_history_depth
`Compact` _era_items_deleted
|
-|reap_stash | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` stash
`u32` num_slashing_spans
|
-|submit_election_solution | | | | `Vec` winners
`CompactAssignments` compact
`ElectionScore` score
`EraIndex` era
`ElectionSize` size
|
-|submit_election_solution_unsigned | | | | `Vec` winners
`CompactAssignments` compact
`ElectionScore` score
`EraIndex` era
`ElectionSize` size
|
-|payout_stakers_by_system | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` validator_stash
`EraIndex` era
|
-|change_slashing_allowed_for | | :heavy_check_mark: | :heavy_check_mark: | `SlashingSwitch` slashing_switch
|
-|update_permissioned_validator_intended_count | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
`u32` new_intended_count
|
-
-## Offences
-
-| Name | Light | XL | Nesting | Arguments |
-| :---------- |:------------:|:--------:|:--------:|:--------|
+|Bond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` controller
`CompactBalance` amount
`RewardDestination` payee
|
+|Bond extra | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Unbond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Withdraw Unbonded | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u32` num_slashing_spans
|
+|Validate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `ValidatorPrefs` prefs
|
+|Nominate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecLookupasStaticLookupSource` targets
|
+|Chill | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Set payee | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `RewardDestination` payee
|
+|Set controller | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` controller
|
+|Set validator count | | :heavy_check_mark: | :heavy_check_mark: | `Compactu32` new_
|
+|Increase validator count | | :heavy_check_mark: | :heavy_check_mark: | `Compactu32` additional
|
+|Scale validator count | | | | `Percent` factor
|
+|Add permissioned validator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
`Optionu32` intended_count
|
+|Remove permissioned validator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
|
+|Validate cdd expiry nominators | | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` targets
|
+|Set commission cap | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` new_cap
|
+|Set min bond threshold | | :heavy_check_mark: | :heavy_check_mark: | `Balance` new_value
|
+|Force no eras | | :heavy_check_mark: | :heavy_check_mark: | |
+|Force new era | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set invulnerables | | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` invulnerables
|
+|Force unstake | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` stash
`u32` num_slashing_spans
|
+|Force new era always | | :heavy_check_mark: | :heavy_check_mark: | |
+|Cancel deferred slash | | :heavy_check_mark: | :heavy_check_mark: | `EraIndex` era
`Vecu32` slash_indices
|
+|Payout stakers | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` validator_stash
`EraIndex` era
|
+|Rebond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Set history depth | | :heavy_check_mark: | :heavy_check_mark: | `Compactu32` new_history_depth
`Compactu32` _era_items_deleted
|
+|Reap stash | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` stash
`u32` num_slashing_spans
|
+|Submit election solution | | | | `VecValidatorIndex` winners
`CompactAssignments` compact
`ElectionScore` score
`EraIndex` era
`ElectionSize` size
|
+|Submit election solution unsigned | | | | `VecValidatorIndex` winners
`CompactAssignments` compact
`ElectionScore` score
`EraIndex` era
`ElectionSize` size
|
+|Payout stakers by system | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` validator_stash
`EraIndex` era
|
+|Change slashing allowed for | | :heavy_check_mark: | :heavy_check_mark: | `SlashingSwitch` slashing_switch
|
+|Update permissioned validator intended count | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
`u32` new_intended_count
|
## Session
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_keys | | :heavy_check_mark: | :heavy_check_mark: | `Keys` keys
`Bytes` proof
|
-|purge_keys | | :heavy_check_mark: | :heavy_check_mark: | |
-
-## AuthorityDiscovery
-
-| Name | Light | XL | Nesting | Arguments |
-| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set keys | | :heavy_check_mark: | :heavy_check_mark: | `Keys` keys
`Bytes` proof
|
+|Purge keys | | :heavy_check_mark: | :heavy_check_mark: | |
## Grandpa
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|report_equivocation | | | | `GrandpaEquivocationProof` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
-|report_equivocation_unsigned | | | | `GrandpaEquivocationProof` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
-|note_stalled | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` delay
`BlockNumber` best_finalized_block_number
|
-
-## Historical
-
-Empty
+|Report equivocation | | | | `BoxEquivocationProofHashBlockNumber` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation unsigned | | | | `BoxEquivocationProofHashBlockNumber` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Note stalled | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` delay
`BlockNumber` best_finalized_block_number
|
## ImOnline
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|heartbeat | | | | `Heartbeat` heartbeat
`Signature` _signature
|
-
-## RandomnessCollectiveFlip
-
-| Name | Light | XL | Nesting | Arguments |
-| :---------- |:------------:|:--------:|:--------:|:--------|
+|Heartbeat | | | | `HeartbeatBlockNumber` heartbeat
`AuthorityIdasRuntimeAppPublicSignature` signature
|
## Sudo
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|sudo | | | | `Call` call
|
-|sudo_unchecked_weight | | | | `Call` call
`Weight` _weight
|
-|set_key | | | | `LookupSource` new
|
-|sudo_as | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` who
`Call` call
|
+|Sudo | | | | `Call` call
|
+|Sudo unchecked weight | | | | `Call` call
`Weight` _weight
|
+|Set key | | | | `LookupasStaticLookupSource` new_
|
+|Sudo as | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` who
`Call` call
|
## Asset
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|register_ticker | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|accept_ticker_transfer | | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
-|accept_asset_ownership_transfer | | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
-|create_asset | | :heavy_check_mark: | :heavy_check_mark: | `AssetName` name
`Ticker` ticker
`bool` divisible
`AssetType` asset_type
`Vec` identifiers
`Option` funding_round
`bool` disable_iu
|
-|freeze | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|unfreeze | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|rename_asset | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`AssetName` name
|
-|issue | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Balance` amount
|
-|redeem | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Balance` value
|
-|make_divisible | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|add_documents | | :heavy_check_mark: | :heavy_check_mark: | `Vec` docs
`Ticker` ticker
|
-|remove_documents | | :heavy_check_mark: | :heavy_check_mark: | `Vec` ids
`Ticker` ticker
|
-|set_funding_round | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`FundingRoundName` name
|
-|update_identifiers | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Vec` identifiers
|
-|claim_classic_ticker | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`EcdsaSignature` ethereum_signature
|
-|reserve_classic_ticker | | :heavy_check_mark: | :heavy_check_mark: | `ClassicTickerImport` classic_ticker_import
`IdentityId` contract_did
`TickerRegistrationConfig` config
|
-|controller_transfer | | :heavy_check_mark: | | `Ticker` ticker
`Balance` value
`PortfolioId` from_portfolio
|
-|register_custom_asset_type | | :heavy_check_mark: | | `Bytes` ty
|
+|Register ticker | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Accept ticker transfer | | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Accept asset ownership transfer | | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Create asset | | :heavy_check_mark: | :heavy_check_mark: | `AssetName` name
`Ticker` ticker
`bool` divisible
`AssetType` asset_type
`VecAssetIdentifier` identifiers
`OptionFundingRoundName` funding_round
`bool` disable_iu
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Unfreeze | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Rename asset | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`AssetName` name
|
+|Issue | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`BalanceNoSymbol` amount
|
+|Redeem | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`BalanceNoSymbol` amount
|
+|Make divisible | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Add documents | | :heavy_check_mark: | :heavy_check_mark: | `VecDocument` docs
`Ticker` ticker
|
+|Remove documents | | :heavy_check_mark: | :heavy_check_mark: | `VecDocumentId` ids
`Ticker` ticker
|
+|Set funding round | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`FundingRoundName` name
|
+|Update identifiers | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecAssetIdentifier` identifiers
|
+|Claim classic ticker | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`EcdsaSignature` ethereum_signature
|
+|Reserve classic ticker | | :heavy_check_mark: | :heavy_check_mark: | `ClassicTickerImport` classic_ticker_import
`IdentityId` contract_did
`TickerRegistrationConfigMoment` config
|
+|Controller transfer | | :heavy_check_mark: | | `Ticker` ticker
`BalanceNoSymbol` amount
`PortfolioId` from_portfolio
|
+|Register custom asset type | | :heavy_check_mark: | | `Vecu8` ty
|
+|Create asset with custom type | | :heavy_check_mark: | | `AssetName` name
`Ticker` ticker
`bool` divisible
`Vecu8` custom_asset_type
`VecAssetIdentifier` identifiers
`OptionFundingRoundName` funding_round
`bool` disable_iu
|
+|Set asset metadata | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataKey` key
`AssetMetadataValue` value
`OptionAssetMetadataValueDetailMoment` detail
|
+|Set asset metadata details | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataKey` key
`AssetMetadataValueDetailMoment` detail
|
+|Register and set local asset metadata | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataName` name
`AssetMetadataSpec` spec
`AssetMetadataValue` value
`OptionAssetMetadataValueDetailMoment` detail
|
+|Register asset metadata local type | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataName` name
`AssetMetadataSpec` spec
|
+|Register asset metadata global type | | :heavy_check_mark: | | `AssetMetadataName` name
`AssetMetadataSpec` spec
|
## CapitalDistribution
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|distribute | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`Option` portfolio
`Ticker` currency
`Balance` per_share
`Balance` amount
`Moment` payment_at
`Option` expires_at
|
-|claim | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
-|push_benefit | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`IdentityId` holder
|
-|reclaim | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
-|remove_distribution | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Distribute | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`OptionPortfolioNumber` portfolio
`Ticker` currency
`Balance` per_share
`Balance` amount
`Moment` payment_at
`OptionMoment` expires_at
|
+|Claim | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Push benefit | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`IdentityId` holder
|
+|Reclaim | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Remove distribution | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
## Checkpoint
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|create_checkpoint | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|set_schedules_max_complexity | | :heavy_check_mark: | :heavy_check_mark: | `u64` max_complexity
|
-|create_schedule | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ScheduleSpec` schedule
|
-|remove_schedule | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ScheduleId` id
|
+|Create checkpoint | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Set schedules max complexity | | :heavy_check_mark: | :heavy_check_mark: | `u64` max_complexity
|
+|Create schedule | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ScheduleSpec` schedule
|
+|Remove schedule | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ScheduleId` id
|
## ComplianceManager
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|add_compliance_requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Vec` sender_conditions
`Vec` receiver_conditions
|
-|remove_compliance_requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`u32` id
|
-|replace_asset_compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Vec` asset_compliance
|
-|reset_asset_compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|pause_asset_compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|resume_asset_compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
-|add_default_trusted_claim_issuer | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TrustedIssuer` issuer
|
-|remove_default_trusted_claim_issuer | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`IdentityId` issuer
|
-|change_compliance_requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ComplianceRequirement` new_req
|
+|Add compliance requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecCondition` sender_conditions
`VecCondition` receiver_conditions
|
+|Remove compliance requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`u32` id
|
+|Replace asset compliance | | | | `Ticker` ticker
`VecComplianceRequirement` asset_compliance
|
+|Reset asset compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Pause asset compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Resume asset compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Add default trusted claim issuer | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TrustedIssuer` issuer
|
+|Remove default trusted claim issuer | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`IdentityId` issuer
|
+|Change compliance requirement | | | | `Ticker` ticker
`ComplianceRequirement` new_req
|
## CorporateAction
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_max_details_length | | :heavy_check_mark: | :heavy_check_mark: | `u32` length
|
-|set_default_targets | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TargetIdentities` targets
|
-|set_default_withholding_tax | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Tax` tax
|
-|set_did_withholding_tax | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`IdentityId` taxed_did
`Option` tax
|
-|initiate_corporate_action | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`CAKind` kind
`Moment` decl_date
`Option` record_date
`CADetails` details
`Option` targets
`Option` default_withholding_tax
`Option>` withholding_tax
|
-|link_ca_doc | | :heavy_check_mark: | :heavy_check_mark: | `CAId` id
`Vec` docs
|
-|remove_ca | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
-|change_record_date | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`Option` record_date
|
+|Set max details length | | :heavy_check_mark: | :heavy_check_mark: | `u32` length
|
+|Set default targets | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TargetIdentities` targets
|
+|Set default withholding tax | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Tax` tax
|
+|Set did withholding tax | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`IdentityId` taxed_did
`OptionTax` tax
|
+|Initiate corporate action | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`CAKind` kind
`Moment` decl_date
`OptionRecordDateSpec` record_date
`CADetails` details
`OptionTargetIdentities` targets
`OptionTax` default_withholding_tax
`OptionVecTupleIdentityIdTax` withholding_tax
|
+|Link ca doc | | :heavy_check_mark: | :heavy_check_mark: | `CAId` id
`VecDocumentId` docs
|
+|Remove ca | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Change record date | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`OptionRecordDateSpec` record_date
|
+|Initiate corporate action and distribute | | | | `InitiateCorporateActionArgs` ca_args
`OptionPortfolioNumber` portfolio
`Ticker` currency
`Balance` per_share
`Balance` amount
`Moment` payment_at
`OptionMoment` expires_at
|
## CorporateBallot
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|attach_ballot | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`BallotTimeRange` range
`BallotMeta` meta
`bool` rcv
|
-|vote | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`Vec` votes
|
-|change_end | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`Moment` end
|
-|change_meta | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`BallotMeta` meta
|
-|change_rcv | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`bool` rcv
|
-|remove_ballot | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
-
-## Permissions
-
-Empty
+|Attach ballot | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`BallotTimeRange` range
`BallotMeta` meta
`bool` rcv
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`VecBallotVote` votes
|
+|Change end | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`Moment` end
|
+|Change meta | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`BallotMeta` meta
|
+|Change rcv | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`bool` rcv
|
+|Remove ballot | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
## Pips
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_prune_historical_pips | | :heavy_check_mark: | :heavy_check_mark: | `bool` prune
|
-|set_min_proposal_deposit | | :heavy_check_mark: | :heavy_check_mark: | `Balance` deposit
|
-|set_default_enactment_period | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` duration
|
-|set_pending_pip_expiry | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlock` expiry
|
-|set_max_pip_skip_count | | :heavy_check_mark: | :heavy_check_mark: | `SkippedCount` max
|
-|set_active_pip_limit | | :heavy_check_mark: | :heavy_check_mark: | `u32` limit
|
-|propose | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Proposal` proposal
`Balance` deposit
`Option` url
`Option` description
|
-|vote | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
`bool` aye_or_nay
`Balance` deposit
|
-|approve_committee_proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
-|reject_proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
-|prune_proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
-|reschedule_execution | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
`Option` until
|
-|clear_snapshot | | :heavy_check_mark: | :heavy_check_mark: | |
-|snapshot | | :heavy_check_mark: | :heavy_check_mark: | |
-|enact_snapshot_results | | :heavy_check_mark: | :heavy_check_mark: | `Vec<(PipId,SnapshotResult)>` results
|
-|execute_scheduled_pip | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
-|expire_scheduled_pip | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` did
`PipId` id
|
+|Set prune historical pips | | :heavy_check_mark: | :heavy_check_mark: | `bool` prune
|
+|Set min proposal deposit | | :heavy_check_mark: | :heavy_check_mark: | `Balance` deposit
|
+|Set default enactment period | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` duration
|
+|Set pending pip expiry | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Set max pip skip count | | :heavy_check_mark: | :heavy_check_mark: | `SkippedCount` max
|
+|Set active pip limit | | :heavy_check_mark: | :heavy_check_mark: | `u32` limit
|
+|Propose | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Proposal` proposal
`Balance` deposit
`OptionUrl` url
`OptionPipDescription` description
|
+|Vote | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
`bool` aye_or_nay
`Balance` deposit
|
+|Approve committee proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Reject proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Prune proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Reschedule execution | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
`OptionBlockNumber` until
|
+|Clear snapshot | | :heavy_check_mark: | :heavy_check_mark: | |
+|Snapshot | | :heavy_check_mark: | :heavy_check_mark: | |
+|Enact snapshot results | | :heavy_check_mark: | :heavy_check_mark: | `VecTuplePipIdSnapshotResult` results
|
+|Execute scheduled pip | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Expire scheduled pip | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` did
`PipId` id
|
## Portfolio
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|create_portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioName` name
|
-|delete_portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioNumber` num
|
-|move_portfolio_funds | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioId` from
`PortfolioId` to
`Vec` items
|
-|rename_portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioNumber` num
`PortfolioName` to_name
|
-|quit_portfolio_custody | | :heavy_check_mark: | | `PortfolioId` pid
|
-|accept_portfolio_custody | | :heavy_check_mark: | | `u64` auth_id
|
+|Create portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioName` name
|
+|Delete portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioNumber` num
|
+|Move portfolio funds | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioId` from
`PortfolioId` to
`VecMovePortfolioItem` items
|
+|Rename portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioNumber` num
`PortfolioName` to_name
|
+|Quit portfolio custody | | :heavy_check_mark: | | `PortfolioId` pid
|
+|Accept portfolio custody | | :heavy_check_mark: | | `u64` auth_id
|
## ProtocolFee
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|change_coefficient | | :heavy_check_mark: | :heavy_check_mark: | `PosRatio` coefficient
|
-|change_base_fee | | | | `ProtocolOp` op
`Balance` base_fee
|
+|Change coefficient | | :heavy_check_mark: | :heavy_check_mark: | `PosRatio` coefficient
|
+|Change base fee | | | | `ProtocolOp` op
`Balance` base_fee
|
## Scheduler
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|schedule | | | | `BlockNumber` when
`Option` maybe_periodic
`Priority` priority
`Call` call
|
-|cancel | | | | `BlockNumber` when
`u32` index
|
-|schedule_named | | | | `Bytes` id
`BlockNumber` when
`Option` maybe_periodic
`Priority` priority
`Call` call
|
-|cancel_named | | | | `Bytes` id
|
-|schedule_after | | | | `BlockNumber` after
`Option` maybe_periodic
`Priority` priority
`Call` call
|
-|schedule_named_after | | | | `Bytes` id
`BlockNumber` after
`Option` maybe_periodic
`Priority` priority
`Call` call
|
+|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
|
## Settlement
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|create_venue | | :heavy_check_mark: | :heavy_check_mark: | `VenueDetails` details
`Vec` signers
`VenueType` typ
|
-|update_venue_details | | :heavy_check_mark: | | `VenueId` id
`VenueDetails` details
|
-|update_venue_type | | :heavy_check_mark: | | `VenueId` id
`VenueType` typ
|
-|add_instruction | | :heavy_check_mark: | :heavy_check_mark: | `VenueId` venue_id
`SettlementType` settlement_type
`Option` trade_date
`Option` value_date
`Vec` legs
|
-|add_and_affirm_instruction | | :heavy_check_mark: | :heavy_check_mark: | `VenueId` venue_id
`SettlementType` settlement_type
`Option` trade_date
`Option` value_date
`Vec` legs
`Vec` portfolios
|
-|affirm_instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`Vec` portfolios
`u32` max_legs_count
|
-|withdraw_affirmation | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`Vec` portfolios
`u32` max_legs_count
|
-|reject_instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`PortfolioId` portfolio
`u32` num_of_legs
|
-|affirm_with_receipts | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`Vec` receipt_details
`Vec` portfolios
`u32` max_legs_count
|
-|claim_receipt | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`ReceiptDetails` receipt_details
|
-|unclaim_receipt | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` instruction_id
`LegId` leg_id
|
-|set_venue_filtering | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`bool` enabled
|
-|allow_venues | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Vec` venues
|
-|disallow_venues | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Vec` venues
|
-|change_receipt_validity | | :heavy_check_mark: | | `u64` receipt_uid
`bool` validity
|
-|execute_scheduled_instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`u32` _legs_count
|
-|reschedule_instruction | | :heavy_check_mark: | | `InstructionId` id
|
+|Create venue | | :heavy_check_mark: | :heavy_check_mark: | `VenueDetails` details
`VecAccountId` signers
`VenueType` typ
|
+|Update venue details | | :heavy_check_mark: | | `VenueId` id
`VenueDetails` details
|
+|Update venue type | | :heavy_check_mark: | | `VenueId` id
`VenueType` typ
|
+|Add instruction | | :heavy_check_mark: | :heavy_check_mark: | `VenueId` venue_id
`SettlementTypeBlockNumber` settlement_type
`OptionMoment` trade_date
`OptionMoment` value_date
`VecLeg` legs
|
+|Add and affirm instruction | | :heavy_check_mark: | :heavy_check_mark: | `VenueId` venue_id
`SettlementTypeBlockNumber` settlement_type
`OptionMoment` trade_date
`OptionMoment` value_date
`VecLeg` legs
`VecPortfolioId` portfolios
|
+|Affirm instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`VecPortfolioId` portfolios
`u32` max_legs_count
|
+|Withdraw affirmation | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`VecPortfolioId` portfolios
`u32` max_legs_count
|
+|Reject instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`PortfolioId` portfolio
`u32` num_of_legs
|
+|Affirm with receipts | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`VecReceiptDetails` receipt_details
`VecPortfolioId` portfolios
`u32` max_legs_count
|
+|Claim receipt | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`ReceiptDetails` receipt_details
|
+|Unclaim receipt | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` instruction_id
`LegId` leg_id
|
+|Set venue filtering | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`bool` enabled
|
+|Allow venues | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecVenueId` venues
|
+|Disallow venues | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecVenueId` venues
|
+|Change receipt validity | | :heavy_check_mark: | | `u64` receipt_uid
`bool` validity
|
+|Execute scheduled instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`u32` _legs_count
|
+|Reschedule instruction | | :heavy_check_mark: | | `InstructionId` id
|
## Statistics
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|add_transfer_manager | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TransferManager` new_transfer_manager
|
-|remove_transfer_manager | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TransferManager` transfer_manager
|
-|add_exempted_entities | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TransferManager` transfer_manager
`Vec` exempted_entities
|
-|remove_exempted_entities | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TransferManager` transfer_manager
`Vec` entities
|
+|Set active asset stats | | | | `AssetScope` asset
`BTreeSetStatType` stat_types
|
+|Batch update asset stats | | | | `AssetScope` asset
`StatType` stat_type
`BTreeSetStatUpdate` values
|
+|Set asset transfer compliance | | | | `AssetScope` asset
`BTreeSetTransferCondition` transfer_conditions
|
+|Set entities exempt | | | | `bool` is_exempt
`TransferConditionExemptKey` exempt_key
`BTreeSetScopeId` entities
|
## Sto
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|create_fundraiser | | :heavy_check_mark: | | `PortfolioId` offering_portfolio
`Ticker` offering_asset
`PortfolioId` raising_portfolio
`Ticker` raising_asset
`Vec` tiers
`VenueId` venue_id
`Option` start
`Option` end
`Balance` minimum_investment
`FundraiserName` fundraiser_name
|
-|invest | | :heavy_check_mark: | | `PortfolioId` investment_portfolio
`PortfolioId` funding_portfolio
`Ticker` offering_asset
`FundraiserId` id
`Balance` purchase_amount
`Option` max_price
`Option` receipt
|
-|freeze_fundraiser | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
-|unfreeze_fundraiser | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
-|modify_fundraiser_window | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
`Moment` start
`Option` end
|
-|stop | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
+|Create fundraiser | | :heavy_check_mark: | | `PortfolioId` offering_portfolio
`Ticker` offering_asset
`PortfolioId` raising_portfolio
`Ticker` raising_asset
`VecPriceTier` tiers
`VenueId` venue_id
`OptionMoment` start
`OptionMoment` end
`BalanceNoSymbol` minimum_investment
`FundraiserName` fundraiser_name
|
+|Invest | | :heavy_check_mark: | | `PortfolioId` investment_portfolio
`PortfolioId` funding_portfolio
`Ticker` offering_asset
`FundraiserId` id
`BalanceNoSymbol` purchase_amount
`OptionBalance` max_price
`OptionReceiptDetails` receipt
|
+|Freeze fundraiser | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
+|Unfreeze fundraiser | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
+|Modify fundraiser window | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
`Moment` start
`OptionMoment` end
|
+|Stop | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
## Treasury
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|disbursement | | :heavy_check_mark: | :heavy_check_mark: | `Vec` beneficiaries
|
-|reimbursement | | :heavy_check_mark: | :heavy_check_mark: | `BalanceOf` amount
|
+|Disbursement | | :heavy_check_mark: | :heavy_check_mark: | `VecBeneficiary` beneficiaries
|
+|Reimbursement | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
## Utility
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|batch | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` calls
|
-|batch_atomic | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` calls
|
-|batch_optimistic | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` calls
|
-|relay_tx | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` target
`OffChainSignature` signature
`UniqueCall` call
|
+|Batch | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecCall` calls
|
+|Batch atomic | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecCall` calls
|
+|Batch optimistic | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecCall` calls
|
+|Relay tx | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` target
`OffChainSignature` signature
`UniqueCall` call
|
## Base
@@ -527,28 +511,65 @@ Empty
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|create_group | | | | `Ticker` ticker
`ExtrinsicPermissions` perms
|
-|set_group_permissions | | | | `Ticker` ticker
`AGId` id
`ExtrinsicPermissions` perms
|
-|remove_agent | | :heavy_check_mark: | | `Ticker` ticker
`IdentityId` agent
|
-|abdicate | | :heavy_check_mark: | | `Ticker` ticker
|
-|change_group | | | | `Ticker` ticker
`IdentityId` agent
`AgentGroup` group
|
-|accept_become_agent | | :heavy_check_mark: | | `u64` auth_id
|
+|Create group | | | | `Ticker` ticker
`ExtrinsicPermissions` perms
|
+|Set group permissions | | | | `Ticker` ticker
`AGId` id
`ExtrinsicPermissions` perms
|
+|Remove agent | | :heavy_check_mark: | | `Ticker` ticker
`IdentityId` agent
|
+|Abdicate | | :heavy_check_mark: | | `Ticker` ticker
|
+|Change group | | | | `Ticker` ticker
`IdentityId` agent
`AgentGroup` group
|
+|Accept become agent | | :heavy_check_mark: | | `u64` auth_id
|
+|Create group and add auth | | :heavy_check_mark: | | `Ticker` ticker
`ExtrinsicPermissions` perms
`IdentityId` target
`OptionMoment` expiry
|
+|Create and change custom group | | :heavy_check_mark: | | `Ticker` ticker
`ExtrinsicPermissions` perms
`IdentityId` agent
|
## Relayer
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_paying_key | | :heavy_check_mark: | | `AccountId` user_key
`Balance` polyx_limit
|
-|accept_paying_key | | :heavy_check_mark: | | `u64` auth_id
|
-|remove_paying_key | | :heavy_check_mark: | | `AccountId` user_key
`AccountId` paying_key
|
-|update_polyx_limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` polyx_limit
|
-|increase_polyx_limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` amount
|
-|decrease_polyx_limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` amount
|
+|Set paying key | | :heavy_check_mark: | | `AccountId` user_key
`Balance` polyx_limit
|
+|Accept paying key | | :heavy_check_mark: | | `u64` auth_id
|
+|Remove paying key | | :heavy_check_mark: | | `AccountId` user_key
`AccountId` paying_key
|
+|Update polyx limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` polyx_limit
|
+|Increase polyx limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` amount
|
+|Decrease polyx limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` amount
|
## Rewards
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|claim_itn_reward | | :heavy_check_mark: | | `AccountId` reward_address
`AccountId` itn_address
`OffChainSignature` signature
|
-|set_itn_reward_status | | | | `AccountId` itn_address
`ItnRewardStatus` status
|
+|Claim itn reward | | :heavy_check_mark: | | `AccountId` reward_address
`AccountId` itn_address
`OffChainSignature` signature
|
+|Set itn reward status | | | | `AccountId` itn_address
`ItnRewardStatus` status
|
+
+## Contracts
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Call | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
`Compactu64` gas_limit
`OptionCompactBalanceOf` storage_deposit_limit
`Vecu8` data
|
+|Instantiate with code | | :heavy_check_mark: | | `CompactBalance` amount
`Compactu64` gas_limit
`OptionCompactBalanceOf` storage_deposit_limit
`Vecu8` code
`Vecu8` data
`Vecu8` salt
|
+|Instantiate | | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
`Compactu64` gas_limit
`OptionCompactBalanceOf` storage_deposit_limit
`CodeHash` code_hash
`Bytes` data
`Bytes` salt
|
+|Upload code | | :heavy_check_mark: | | `Vecu8` code
`OptionCompactBalanceOf` storage_deposit_limit
|
+|Remove code | | :heavy_check_mark: | | `CodeHash` code_hash
|
+
+## PolymeshContracts
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Instantiate with code perms | | :heavy_check_mark: | | `Balance` endowment
`Weight` gas_limit
`OptionBalance` storage_deposit_limit
`Vecu8` code
`Vecu8` data
`Vecu8` salt
`Permissions` perms
|
+|Instantiate with hash perms | | :heavy_check_mark: | | `Balance` endowment
`Weight` gas_limit
`OptionBalance` storage_deposit_limit
`CodeHash` code_hash
`Vecu8` data
`Vecu8` salt
`Permissions` perms
|
+
+## Preimage
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Note preimage | | :heavy_check_mark: | | `Vecu8` bytes
|
+|Unnote preimage | | :heavy_check_mark: | | `Hash` hash
|
+|Request preimage | | :heavy_check_mark: | | `Hash` hash
|
+|Unrequest preimage | | :heavy_check_mark: | | `Hash` hash
|
+
+## TestUtils
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Register did | | | | `InvestorUid` uid
`VecSecondaryKeyAccountId` secondary_keys
|
+|Mock cdd register did | | | | `AccountId` target_account
|
+|Get my did | | | | |
+|Get cdd of | | | | `AccountId` of
|
diff --git a/app/Makefile b/app/Makefile
index 5761c0f..5ff6b95 100755
--- a/app/Makefile
+++ b/app/Makefile
@@ -1,7 +1,7 @@
#*******************************************************************************
-# Ledger App
-# (c) 2018 - 2022 Zondax GmbH
-# (c) 2017 Ledger
+# Ledger App
+# (c) 2019 - 2022 Zondax GmbH
+# (c) 2017 Ledger
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@ all: bin/app.elf
@echo "APPNAME=\"${APPNAME}\"" >> $(OUTPUT_INSTALLER)
@echo "APPVERSION=\"${APPVERSION}\"" >> $(OUTPUT_INSTALLER)
@echo "APPPATH=\""${APPPATH}"\"" >> $(OUTPUT_INSTALLER)
- @echo "LOAD_PARAMS=\"${COMMON_LOAD_PARAMS}\"" >> $(OUTPUT_INSTALLER)
- @echo "DELETE_PARAMS=\"${COMMON_DELETE_PARAMS}\"" >> $(OUTPUT_INSTALLER)
+ @echo "LOAD_PARAMS=($$(echo "${APP_LOAD_PARAMS}" | sed -e "s|"${APPNAME}"|\""${APPNAME}"\"|"))" >> $(OUTPUT_INSTALLER)
+ @echo "DELETE_PARAMS=($$(echo "${COMMON_DELETE_PARAMS}" | sed -e "s|"${APPNAME}"|\""${APPNAME}"\"|"))" >> $(OUTPUT_INSTALLER)
@echo "APPHEX=\"" >> $(OUTPUT_INSTALLER)
@cat $(CURDIR)/bin/app.hex >> $(OUTPUT_INSTALLER)
@echo "\"" >> $(OUTPUT_INSTALLER)
@@ -40,8 +40,6 @@ all: bin/app.elf
include $(BOLOS_SDK)/Makefile.defines
-#DEFINES += APP_SECRET_MODE_ENABLED
-
$(info ************ TARGET_NAME = [$(TARGET_NAME)])
ifeq ($(APP_TESTING),1)
@@ -82,7 +80,7 @@ $(info COIN = [$(COIN)])
ifeq ($(COIN),POLYX)
# Main app configuration
DEFINES += APP_STANDARD
-ifeq ($(TARGET_NAME),TARGET_NANOX)
+ifneq ($(TARGET_NAME),TARGET_NANOS)
DEFINES += SUBSTRATE_PARSER_FULL
endif
APPNAME = "Polymesh"
@@ -105,11 +103,11 @@ endef
$(error "$(error_message)")
endif
-APP_LOAD_PARAMS = --delete $(COMMON_LOAD_PARAMS) --path $(APPPATH) --curve ed25519
+APP_LOAD_PARAMS = --curve ed25519 $(COMMON_LOAD_PARAMS) --path $(APPPATH)
ifeq ($(TARGET_NAME),TARGET_NANOS)
APP_LOAD_PARAMS += --appFlags 0x000
-APP_STACK_SIZE:=3172
+APP_STACK_SIZE:=3160
ICONNAME:=$(CURDIR)/nanos_icon.gif
OUTPUT_ELF ?= $(CURDIR)/output/app_s.elf
OUTPUT_INSTALLER := $(CURDIR)/pkg/installer_s.sh
@@ -138,10 +136,6 @@ ifndef ICONNAME
$(error ICONNAME is not set)
endif
-# Ledger: add the "Pending security review" disclaimer
-APP_LOAD_PARAMS += --tlvraw 9F:01
-DEFINES += HAVE_PENDING_REVIEW_SCREEN
-
############
# Platform
@@ -269,7 +263,7 @@ dep/%.d: %.c Makefile
listvariants:
ifeq ($(TARGET_NAME),TARGET_NANOS)
@echo VARIANTS COIN POLYX POLYX_XL
-else ifeq ($(TARGET_NAME),TARGET_NANOX)
+else
@echo VARIANTS COIN POLYX
endif
diff --git a/app/Makefile.version b/app/Makefile.version
index 9797ac9..c0c17d3 100644
--- a/app/Makefile.version
+++ b/app/Makefile.version
@@ -1,6 +1,6 @@
# This is the `transaction_version` field of `Runtime`
-APPVERSION_M=2
+APPVERSION_M=3
# This is the `spec_version` field of `Runtime`
-APPVERSION_N=3010
+APPVERSION_N=5000001
# This is the patch version of this release
-APPVERSION_P=1
+APPVERSION_P=0
diff --git a/app/rust/Cargo.lock b/app/rust/Cargo.lock
index 7a143ef..4da829d 100644
--- a/app/rust/Cargo.lock
+++ b/app/rust/Cargo.lock
@@ -1,10 +1,12 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "aho-corasick"
-version = "0.7.15"
+version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5"
+checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
dependencies = [
"memchr",
]
@@ -73,9 +75,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "curve25519-dalek"
-version = "2.1.2"
+version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "434e1720189a637d44fe464f4df1e6eb900b4835255b14354497c78af37d9bb8"
+checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216"
dependencies = [
"byteorder",
"digest 0.8.1",
@@ -86,9 +88,9 @@ dependencies = [
[[package]]
name = "curve25519-dalek"
-version = "3.1.0"
+version = "3.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3"
+checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0"
dependencies = [
"byteorder",
"digest 0.9.0",
@@ -112,7 +114,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
dependencies = [
- "generic-array 0.14.4",
+ "generic-array 0.14.5",
]
[[package]]
@@ -145,9 +147,9 @@ dependencies = [
[[package]]
name = "generic-array"
-version = "0.14.4"
+version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
+checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803"
dependencies = [
"typenum",
"version_check",
@@ -166,9 +168,9 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.1.18"
+version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
@@ -181,9 +183,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hex-literal"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "961de220ec9a91af2e1e5bd80d02109155695e516771762381ef8581317066e0"
+checksum = "d70693199b3cf4552f3fa720b54163927a3ebed2aef240efaf556033ab336a11"
dependencies = [
"hex-literal-impl",
"proc-macro-hack",
@@ -191,9 +193,9 @@ dependencies = [
[[package]]
name = "hex-literal-impl"
-version = "0.2.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "853f769599eb31de176303197b7ba4973299c38c7a7604a6bc88c3eef05b9b46"
+checksum = "59448fc2f82a5fb6907f78c3d69d843e82ff5b051923313cc4438cb0c7b745a8"
dependencies = [
"proc-macro-hack",
]
@@ -209,30 +211,30 @@ dependencies = [
[[package]]
name = "keccak"
-version = "0.1.0"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7"
+checksum = "f9b7d56ba4a8344d6be9729995e6b06f928af29998cdf79fe390cbf6b1fee838"
[[package]]
name = "libc"
-version = "0.2.93"
+version = "0.2.126"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
+checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
[[package]]
name = "log"
-version = "0.4.14"
+version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
dependencies = [
"cfg-if",
]
[[package]]
name = "memchr"
-version = "2.3.4"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
+checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
[[package]]
name = "merlin"
@@ -260,9 +262,9 @@ checksum = "de96540e0ebde571dc55c73d60ef407c653844e6f9a1e2fdbd40c07b9252d812"
[[package]]
name = "ppv-lite86"
-version = "0.2.10"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
+checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
[[package]]
name = "proc-macro-hack"
@@ -272,11 +274,11 @@ checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
[[package]]
name = "proc-macro2"
-version = "1.0.26"
+version = "1.0.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec"
+checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f"
dependencies = [
- "unicode-xid",
+ "unicode-ident",
]
[[package]]
@@ -287,9 +289,9 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
[[package]]
name = "quote"
-version = "1.0.9"
+version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7"
+checksum = "f53dc8cf16a769a6f677e09e7ff2cd4be1ea0f48754aac39520536962011de0d"
dependencies = [
"proc-macro2",
]
@@ -332,9 +334,9 @@ dependencies = [
[[package]]
name = "regex"
-version = "1.4.5"
+version = "1.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19"
+checksum = "d83f127d94bdbcda4c8cc2e50f6f84f4b611f69c902699ca385a39c3a75f9ff1"
dependencies = [
"aho-corasick",
"memchr",
@@ -343,15 +345,15 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.6.23"
+version = "0.6.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548"
+checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64"
[[package]]
name = "rslib"
version = "0.1.0"
dependencies = [
- "curve25519-dalek 3.1.0",
+ "curve25519-dalek 3.2.1",
"env_logger",
"getrandom",
"hex",
@@ -372,7 +374,7 @@ checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862"
dependencies = [
"arrayref",
"arrayvec",
- "curve25519-dalek 2.1.2",
+ "curve25519-dalek 2.1.3",
"merlin",
"rand_core",
"sha2",
@@ -394,26 +396,26 @@ dependencies = [
[[package]]
name = "subtle"
-version = "2.4.0"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2"
+checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601"
[[package]]
name = "syn"
-version = "1.0.69"
+version = "1.0.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48fe99c6bd8b1cc636890bcc071842de909d902c81ac7dab53ba33c421ab8ffb"
+checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd"
dependencies = [
"proc-macro2",
"quote",
- "unicode-xid",
+ "unicode-ident",
]
[[package]]
name = "synstructure"
-version = "0.12.4"
+version = "0.12.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
+checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
dependencies = [
"proc-macro2",
"quote",
@@ -423,30 +425,36 @@ dependencies = [
[[package]]
name = "termcolor"
-version = "1.1.2"
+version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
+checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
dependencies = [
"winapi-util",
]
[[package]]
name = "typenum"
-version = "1.13.0"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06"
+checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c"
[[package]]
name = "unicode-xid"
-version = "0.2.1"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
+checksum = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04"
[[package]]
name = "version_check"
-version = "0.9.3"
+version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "wasi"
@@ -487,18 +495,18 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "zeroize"
-version = "1.2.0"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81a974bcdd357f0dca4d41677db03436324d45a4c9ed2d0b873a5a360ce41c36"
+checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd"
dependencies = [
"zeroize_derive",
]
[[package]]
name = "zeroize_derive"
-version = "1.0.1"
+version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3f369ddb18862aba61aa49bf31e74d29f0f162dec753063200e1dc084345d16"
+checksum = "3f8f187641dad4f680d25c4bfc4225b418165984179f26ca76ec4fb6441d3a17"
dependencies = [
"proc-macro2",
"quote",
diff --git a/app/src/apdu_handler.c b/app/src/apdu_handler.c
index c71539c..bb2a3b0 100644
--- a/app/src/apdu_handler.c
+++ b/app/src/apdu_handler.c
@@ -29,7 +29,6 @@
#include "crypto.h"
#include "coin.h"
#include "zxmacros.h"
-#include "secret.h"
#include "app_mode.h"
static bool tx_initialized = false;
@@ -49,12 +48,6 @@ void extractHDPath(uint32_t rx, uint32_t offset) {
if (!mainnet) {
THROW(APDU_CODE_DATA_INVALID);
}
-
-#ifdef APP_SECRET_MODE_ENABLED
- if (app_mode_secret()) {
- hdPath[1] = HDPATH_1_RECOVERY;
- }
-#endif
}
__Z_INLINE bool process_chunk(uint32_t rx) {
@@ -144,7 +137,7 @@ __Z_INLINE void handleGetAddr(volatile uint32_t *flags, volatile uint32_t *tx, u
}
if (requireConfirmation) {
view_review_init(addr_getItem, addr_getNumItems, app_reply_address);
- view_review_show();
+ view_review_show(0x03);
*flags |= IO_ASYNCH_REPLY;
return;
}
@@ -173,7 +166,7 @@ __Z_INLINE void handleSignSr25519(volatile uint32_t *flags, volatile uint32_t *t
}
view_review_init(tx_getItem, tx_getNumItems, app_return_sr25519);
- view_review_show();
+ view_review_show(0x03);
*flags |= IO_ASYNCH_REPLY;
}
#endif
@@ -189,7 +182,7 @@ __Z_INLINE void handleSignEd25519(volatile uint32_t *flags, volatile uint32_t *t
}
view_review_init(tx_getItem, tx_getNumItems, app_sign_ed25519);
- view_review_show();
+ view_review_show(0x03);
*flags |= IO_ASYNCH_REPLY;
}
diff --git a/app/src/common/parser_common.h b/app/src/common/parser_common.h
index f0cc29d..c4d6cb2 100644
--- a/app/src/common/parser_common.h
+++ b/app/src/common/parser_common.h
@@ -1,5 +1,5 @@
/*******************************************************************************
-* (c) 2019 Zondax GmbH
+* (c) 2019 - 2022 Zondax GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
diff --git a/app/src/crypto.h b/app/src/crypto.h
index 7296902..48dfb9b 100644
--- a/app/src/crypto.h
+++ b/app/src/crypto.h
@@ -39,7 +39,7 @@ extern "C" {
extern uint32_t hdPath[HDPATH_LEN_DEFAULT];
uint8_t crypto_SS58EncodePubkey(uint8_t *buffer, uint16_t buffer_len,
- uint8_t addressType, const uint8_t *pubkey);
+ uint16_t addressType, const uint8_t *pubkey);
zxerr_t crypto_fillAddress(key_kind_e addressKind, uint8_t *buffer, uint16_t bufferLen, uint16_t *addrResponseLen);
diff --git a/app/src/crypto_helper.c b/app/src/crypto_helper.c
index 0833a0b..64b30d1 100644
--- a/app/src/crypto_helper.c
+++ b/app/src/crypto_helper.c
@@ -47,8 +47,24 @@ int ss58hash(const unsigned char *in, unsigned int inLen,
#endif
+uint8_t crypto_SS58CalculatePrefix(uint16_t addressType, uint8_t *prefixBytes) {
+ if (addressType > 16383) {
+ return 0;
+ }
+
+ if (addressType > 63) {
+ prefixBytes[0] = 0x40 | ((addressType >> 2) & 0x3F);
+ prefixBytes[1] = ((addressType & 0x3) << 6) + ((addressType >> 8) & 0x3F);
+ return 2;
+ }
+
+ prefixBytes[0] = addressType & 0x3F; // address type
+ return 1;
+}
+
uint8_t crypto_SS58EncodePubkey(uint8_t *buffer, uint16_t buffer_len,
- uint8_t addressType, const uint8_t *pubkey) {
+ uint16_t addressType, const uint8_t *pubkey) {
+ // based on https://docs.substrate.io/v3/advanced/ss58/
if (buffer == NULL || buffer_len < SS58_ADDRESS_MAX_LEN) {
return 0;
}
@@ -57,17 +73,21 @@ uint8_t crypto_SS58EncodePubkey(uint8_t *buffer, uint16_t buffer_len,
}
MEMZERO(buffer, buffer_len);
- uint8_t unencoded[35];
uint8_t hash[64];
+ uint8_t unencoded[36];
+
+ const uint8_t prefixSize = crypto_SS58CalculatePrefix(addressType, unencoded);
+ if (prefixSize == 0) {
+ return 0;
+ }
- unencoded[0] = addressType; // address type
- memcpy(unencoded + 1, pubkey, 32); // account id
- ss58hash((uint8_t *) unencoded, 33, hash, 64);
- unencoded[33] = hash[0];
- unencoded[34] = hash[1];
+ memcpy(unencoded + prefixSize, pubkey, 32); // account id
+ ss58hash((uint8_t *) unencoded, 32 + prefixSize, hash, 64);
+ unencoded[32 + prefixSize] = hash[0];
+ unencoded[33 + prefixSize] = hash[1];
size_t outLen = buffer_len;
- encode_base58(unencoded, 35, buffer, &outLen);
+ encode_base58(unencoded, 34 + prefixSize, buffer, &outLen);
return outLen;
}
diff --git a/app/src/crypto_helper.h b/app/src/crypto_helper.h
index 090875f..d7b0f68 100644
--- a/app/src/crypto_helper.h
+++ b/app/src/crypto_helper.h
@@ -30,8 +30,10 @@ extern "C" {
#define SS58_BLAKE_PREFIX_LEN 7
#define SS58_ADDRESS_MAX_LEN 60u
+uint8_t crypto_SS58CalculatePrefix(uint16_t addressType, uint8_t *prefixBytes);
+
uint8_t crypto_SS58EncodePubkey(uint8_t *buffer, uint16_t buffer_len,
- uint8_t addressType, const uint8_t *pubkey);
+ uint16_t addressType, const uint8_t *pubkey);
#ifdef __cplusplus
}
diff --git a/app/src/parser_impl.c b/app/src/parser_impl.c
index 746e398..bc5e2f1 100644
--- a/app/src/parser_impl.c
+++ b/app/src/parser_impl.c
@@ -24,359 +24,7 @@
#include "substrate_types.h"
#include "substrate_dispatch.h"
-parser_error_t parser_init_context(parser_context_t *ctx,
- const uint8_t *buffer,
- uint16_t bufferSize) {
- ctx->offset = 0;
- ctx->buffer = NULL;
- ctx->bufferLen = 0;
-
- if (bufferSize == 0 || buffer == NULL) {
- // Not available, use defaults
- return parser_init_context_empty;
- }
-
- ctx->buffer = buffer;
- ctx->bufferLen = bufferSize;
- return parser_ok;
-}
-
-parser_error_t parser_init(parser_context_t *ctx, const uint8_t *buffer, uint16_t bufferSize) {
- CHECK_PARSER_ERR(parser_init_context(ctx, buffer, bufferSize))
- return parser_ok;
-}
-
-const char *parser_getErrorDescription(parser_error_t err) {
- switch (err) {
- // General errors
- case parser_ok:
- return "No error";
- case parser_no_data:
- return "No more data";
- case parser_init_context_empty:
- return "Initialized empty context";
- case parser_display_idx_out_of_range:
- return "display_idx_out_of_range";
- case parser_display_page_out_of_range:
- return "display_page_out_of_range";
- // Coin specific
- case parser_spec_not_supported:
- return "Spec version not supported";
- case parser_tx_version_not_supported:
- return "Txn version not supported";
- case parser_not_allowed:
- return "Not allowed";
- case parser_not_supported:
- return "Not supported";
- case parser_unexpected_buffer_end:
- return "Unexpected buffer end";
- case parser_unexpected_value:
- return "Unexpected value";
- case parser_value_out_of_range:
- return "Value out of range";
- case parser_value_too_many_bytes:
- return "Value too many bytes";
- case parser_unexpected_module:
- return "Unexpected module";
- case parser_unexpected_callIndex:
- return "Unexpected call index";
- case parser_unexpected_unparsed_bytes:
- return "Unexpected unparsed bytes";
- case parser_print_not_supported:
- return "Value cannot be printed";
- case parser_tx_nesting_not_supported:
- return "Call nesting not supported";
- case parser_tx_nesting_limit_reached:
- return "Max nested calls reached";
- case parser_tx_call_vec_too_large:
- return "Call vector exceeds limit";
- default:
- return "Unrecognized error code";
- }
-}
-
-GEN_DEF_READFIX_UNSIGNED(8)
-
-GEN_DEF_READFIX_UNSIGNED(16)
-
-GEN_DEF_READFIX_UNSIGNED(32)
-
-GEN_DEF_READFIX_UNSIGNED(64)
-
-parser_error_t _readBool(parser_context_t *c, pd_bool_t *v) {
- CHECK_INPUT()
-
- const uint8_t p = *(c->buffer + c->offset);
- CTX_CHECK_AND_ADVANCE(c, 1)
-
- switch (p) {
- case 0x00:
- *v = bool_false;
- break;
- case 0x01:
- *v = bool_true;
- break;
- default:
- return parser_unexpected_value;
- }
- return parser_ok;
-}
-
-parser_error_t _readCompactInt(parser_context_t *c, compactInt_t *v) {
- CHECK_INPUT()
-
- v->ptr = c->buffer + c->offset;
- const uint8_t mode = *v->ptr & 0x03u; // get mode from two least significant bits
-
- uint64_t tmp;
- switch (mode) {
- case 0: // single byte
- v->len = 1;
- CTX_CHECK_AND_ADVANCE(c, v->len)
- _getValue(v, &tmp);
- break;
- case 1: // 2-byte
- v->len = 2;
- CTX_CHECK_AND_ADVANCE(c, v->len)
- _getValue(v, &tmp);
- break;
- case 2: // 4-byte
- v->len = 4;
- CTX_CHECK_AND_ADVANCE(c, v->len)
- _getValue(v, &tmp);
- break;
- case 3: // bigint
- v->len = (*v->ptr >> 2u) + 4 + 1;
- CTX_CHECK_AND_ADVANCE(c, v->len)
- break;
- default:
- // this is actually impossible
- return parser_unexpected_value;
- }
-
- return parser_ok;
-}
-
-parser_error_t _getValue(const compactInt_t *c, uint64_t *v) {
- *v = 0;
-
- switch (c->len) {
- case 1:
- *v = (*c->ptr) >> 2u;
- break;
- case 2:
- *v = (*c->ptr) >> 2u;
- *v += *(c->ptr + 1) << 6u;
- if (*v < 64) {
- return parser_value_out_of_range;
- }
- break;
- case 4:
- *v = (*c->ptr) >> 2u;
- *v += *(c->ptr + 1) << 6u;
- *v += *(c->ptr + 2) << (8u + 6u);
- *v += *(c->ptr + 3) << (16u + 6u);
- if (*v < 16383) {
- return parser_value_out_of_range;
- }
- break;
- default:
- return parser_value_out_of_range;
- }
-
- return parser_ok;
-}
-
-parser_error_t _toStringCompactInt(const compactInt_t *c,
- uint8_t decimalPlaces,
- char postfix[],
- char prefix[],
- char *outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- char bufferUI[200];
- MEMZERO(outValue, outValueLen);
- MEMZERO(bufferUI, sizeof(bufferUI));
- *pageCount = 1;
-
- if (c->len <= 4) {
- uint64_t v;
- _getValue(c, &v);
- if (uint64_to_str(bufferUI, sizeof(bufferUI), v) != NULL) {
- return parser_unexpected_value;
- }
- } else {
- // This is longer number
- uint8_t bcdOut[100];
- const uint16_t bcdOutLen = sizeof(bcdOut);
-
- bignumLittleEndian_to_bcd(bcdOut, bcdOutLen, c->ptr + 1, c->len - 1);
- if (!bignumLittleEndian_bcdprint(bufferUI, sizeof(bufferUI), bcdOut, bcdOutLen))
- return parser_unexpected_buffer_end;
- }
-
- // Format number
- if (intstr_to_fpstr_inplace(bufferUI, sizeof(bufferUI), decimalPlaces) == 0) {
- return parser_unexpected_value;
- }
-
- if (z_str3join(bufferUI, sizeof(bufferUI), prefix, postfix) != zxerr_ok) {
- return parser_unexpected_buffer_end;
- }
-
- pageString(outValue, outValueLen, bufferUI, pageIdx, pageCount);
-
- return parser_ok;
-}
-
-//////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////
-
-parser_error_t _readCallIndex(parser_context_t *c, pd_CallIndex_t *v) {
- CHECK_INPUT()
-
- CHECK_ERROR(_readUInt8(c, &v->moduleIdx))
- CHECK_ERROR(_readUInt8(c, &v->idx))
- return parser_ok;
-}
-
-parser_error_t _readEra(parser_context_t *c, pd_ExtrinsicEra_t *v) {
- CHECK_INPUT()
- // https://github.com/paritytech/substrate/blob/fc3adc87dc806237eb7371c1d21055eea1702be0/core/sr-primitives/src/generic/era.rs#L117
-
- v->type = eEraImmortal;
- v->period = 0;
- v->phase = 0;
-
- uint8_t first;
- CHECK_ERROR(_readUInt8(c, &first))
- if (first == 0) { return parser_ok; }
-
- v->type = eEraMortal;
- uint64_t encoded = first;
- CHECK_ERROR(_readUInt8(c, &first))
- encoded += (uint64_t) first << 8u;
-
- v->period = 2U << (encoded % (1u << 4u));
- uint64_t quantize_factor = (v->period >> 12u);
- quantize_factor = (quantize_factor == 0 ? 1 : quantize_factor);
-
- v->phase = (encoded >> 4u) * quantize_factor;
-
- if (v->period >= 4 && v->phase < v->period) {
- return parser_ok;
- }
-
- return parser_unexpected_value;
-}
-
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-
-parser_error_t _readCompactIndex(parser_context_t *c, pd_CompactIndex_t *v) {
- CHECK_INPUT()
- CHECK_ERROR(_readCompactInt(c, &v->index))
- return parser_ok;
-}
-
-parser_error_t _readCompactBalance(parser_context_t *c, pd_CompactBalance_t *v) {
- CHECK_INPUT()
- CHECK_ERROR(_readCompactInt(c, &v->value))
- return parser_ok;
-}
-
-parser_error_t _toStringCompactIndex(const pd_CompactIndex_t *v,
- char *outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- return _toStringCompactInt(&v->index, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringCompactBalance(const pd_CompactBalance_t *v,
- char *outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- CHECK_ERROR(_toStringCompactInt(
- &v->value,
- COIN_AMOUNT_DECIMAL_PLACES, "", COIN_TICKER,
- outValue, outValueLen, pageIdx, pageCount))
- number_inplace_trimming(outValue, 1);
- return parser_ok;
-}
-
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-
-parser_error_t _checkVersions(parser_context_t *c) {
- // Methods are not length delimited so in order to retrieve the specVersion
- // it is necessary to parse from the back.
- // The transaction is expect to end in
- // [4 bytes] specVersion
- // [4 bytes] transactionVersion
- // [32 bytes] genesisHash
- // [32 bytes] blockHash
- const uint16_t specOffsetFromBack = 4 + 4 + 32 + 32;
- if (c->bufferLen < specOffsetFromBack) {
- return parser_unexpected_buffer_end;
- }
-
- uint8_t *p = (uint8_t *) (c->buffer + c->bufferLen - specOffsetFromBack);
- uint32_t specVersion = 0;
- specVersion += (uint32_t) p[0] << 0u;
- specVersion += (uint32_t) p[1] << 8u;
- specVersion += (uint32_t) p[2] << 16u;
- specVersion += (uint32_t) p[3] << 24u;
-
- p += 4;
- uint32_t transactionVersion = 0;
- transactionVersion += (uint32_t) p[0] << 0u;
- transactionVersion += (uint32_t) p[1] << 8u;
- transactionVersion += (uint32_t) p[2] << 16u;
- transactionVersion += (uint32_t) p[3] << 24u;
-
- if (transactionVersion != (SUPPORTED_TX_VERSION_CURRENT) &&
- transactionVersion != (SUPPORTED_TX_VERSION_PREVIOUS)) {
- return parser_tx_version_not_supported;
- }
-
- if (specVersion < SUPPORTED_MINIMUM_SPEC_VERSION) {
- return parser_spec_not_supported;
- }
-
- c->tx_obj->specVersion = specVersion;
- c->tx_obj->transactionVersion = transactionVersion;
-
- return parser_ok;
-}
-
-uint8_t __address_type;
-
-uint8_t _getAddressType() {
- return __address_type;
-}
-
-uint8_t _detectAddressType(const parser_context_t *c) {
- char hashstr[65];
- uint8_t pc;
-
- if (c->tx_obj->genesisHash._ptr != NULL) {
- _toStringHash(&c->tx_obj->genesisHash, hashstr, 65, 0, &pc);
-
- // Compare with known genesis hashes
- if (strcmp(hashstr, COIN_GENESIS_HASH) == 0) {
- return PK_ADDRESS_TYPE;
- }
- }
-
- return 42;
-}
+extern uint16_t __address_type;
parser_error_t _readTx(parser_context_t *c, parser_tx_t *v) {
CHECK_INPUT()
@@ -407,108 +55,3 @@ parser_error_t _readTx(parser_context_t *c, parser_tx_t *v) {
return parser_ok;
}
-
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////
-
-parser_error_t _readAddress(parser_context_t *c, pd_Address_t *v) {
- CHECK_INPUT()
- // Based on
- // https://github.com/paritytech/substrate/blob/fc3adc87dc806237eb7371c1d21055eea1702be0/srml/indices/src/address.rs#L66
-
- uint8_t tmp;
- CHECK_ERROR(_readUInt8(c, &tmp))
-
- switch (tmp) {
- case 0xFF: {
- v->type = eAddressId;
- v->idPtr = c->buffer + c->offset;
- CTX_CHECK_AND_ADVANCE(c, 32)
- break;
- }
- case 0xFE: {
- compactInt_t ci;
- CHECK_ERROR(_readCompactInt(c, &ci))
-
- v->type = eAddressIndex;
- CHECK_ERROR(_getValue(&ci, &v->idx))
-
- if (v->idx <= 0xffffffffu) {
- return parser_unexpected_value;
- }
- break;
- }
- case 0xFD: {
- uint32_t tmpval;
- CHECK_ERROR(_readUInt32(c, &tmpval))
- v->type = eAddressIndex;
- v->idx = tmpval;
- if (v->idx <= 0xFFFF) {
- return parser_unexpected_value;
- }
- break;
- }
- case 0xFC: {
- uint16_t tmpval;
- CHECK_ERROR(_readUInt16(c, &tmpval))
- v->type = eAddressIndex;
- v->idx = tmpval;
- if (v->idx <= 0xEF) {
- return parser_unexpected_value;
- }
- break;
- }
- default:
- if (tmp <= 0xEF) {
- v->type = eAddressIndex;
- v->idx = tmp;
- return parser_ok;
- }
-
- return parser_unexpected_value;
- }
-
- return parser_ok;
-}
-
-parser_error_t _toStringPubkeyAsAddress(const uint8_t *pubkey,
- char *outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- char bufferUI[200];
-
- if (crypto_SS58EncodePubkey((uint8_t *) bufferUI, sizeof(bufferUI), __address_type, pubkey) == 0) {
- return parser_no_data;
- }
-
- pageString(outValue, outValueLen, bufferUI, pageIdx, pageCount);
- if (pageIdx >= *pageCount) {
- return parser_no_data;
- }
- return parser_ok;
-}
-
-parser_error_t _toStringAddress(const pd_Address_t *v,
- char *outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- MEMZERO(outValue, outValueLen);
- if (v == NULL) {
- return parser_ok;
- }
-
- *pageCount = 1;
- switch (v->type) {
- case eAddressIndex:
- return parser_not_supported;
- case eAddressId: {
- return _toStringPubkeyAsAddress(v->idPtr,
- outValue, outValueLen,
- pageIdx, pageCount);
- }
- }
-
- return parser_ok;
-}
diff --git a/app/src/parser_impl.h b/app/src/parser_impl.h
index 2d1b77d..b5436f2 100644
--- a/app/src/parser_impl.h
+++ b/app/src/parser_impl.h
@@ -1,5 +1,5 @@
/*******************************************************************************
-* (c) 2019 Zondax GmbH
+* (c) 2019 - 2022 Zondax GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -174,9 +174,16 @@ parser_error_t _readEra(parser_context_t *c, pd_ExtrinsicEra_t *v);
parser_error_t _readTx(parser_context_t *c, parser_tx_t *v);
-uint8_t _getAddressType();
+parser_error_t _checkVersions(parser_context_t *c);
+
+uint16_t _getAddressType();
+
+parser_error_t _readCompactIndex(parser_context_t *c, pd_CompactIndex_t *v);
+
+uint16_t _detectAddressType(const parser_context_t *c);
parser_error_t _toStringCompactInt(const compactInt_t *c, uint8_t decimalPlaces,
+ bool trimTrailingZeros,
char postfix[],
char prefix[],
char *outValue, uint16_t outValueLen,
diff --git a/app/src/parser_impl_common.c b/app/src/parser_impl_common.c
new file mode 100644
index 0000000..7f2bccb
--- /dev/null
+++ b/app/src/parser_impl_common.c
@@ -0,0 +1,488 @@
+/*******************************************************************************
+* (c) 2019 - 2022 Zondax GmbH
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+********************************************************************************/
+
+#include
+#include
+#include "parser_impl.h"
+#include "parser_txdef.h"
+#include "coin.h"
+#include "crypto_helper.h"
+#include "bignum.h"
+#include "substrate_types.h"
+#include "substrate_dispatch.h"
+
+parser_error_t parser_init_context(parser_context_t *ctx,
+ const uint8_t *buffer,
+ uint16_t bufferSize) {
+ ctx->offset = 0;
+ ctx->buffer = NULL;
+ ctx->bufferLen = 0;
+
+ if (bufferSize == 0 || buffer == NULL) {
+ // Not available, use defaults
+ return parser_init_context_empty;
+ }
+
+ ctx->buffer = buffer;
+ ctx->bufferLen = bufferSize;
+ return parser_ok;
+}
+
+parser_error_t parser_init(parser_context_t *ctx, const uint8_t *buffer, uint16_t bufferSize) {
+ CHECK_PARSER_ERR(parser_init_context(ctx, buffer, bufferSize))
+ return parser_ok;
+}
+
+const char *parser_getErrorDescription(parser_error_t err) {
+ switch (err) {
+ // General errors
+ case parser_ok:
+ return "No error";
+ case parser_no_data:
+ return "No more data";
+ case parser_init_context_empty:
+ return "Initialized empty context";
+ case parser_display_idx_out_of_range:
+ return "display_idx_out_of_range";
+ case parser_display_page_out_of_range:
+ return "display_page_out_of_range";
+ // Coin specific
+ case parser_spec_not_supported:
+ return "Spec version not supported";
+ case parser_tx_version_not_supported:
+ return "Txn version not supported";
+ case parser_not_allowed:
+ return "Not allowed";
+ case parser_not_supported:
+ return "Not supported";
+ case parser_unexpected_buffer_end:
+ return "Unexpected buffer end";
+ case parser_unexpected_value:
+ return "Unexpected value";
+ case parser_value_out_of_range:
+ return "Value out of range";
+ case parser_value_too_many_bytes:
+ return "Value too many bytes";
+ case parser_unexpected_module:
+ return "Unexpected module index";
+ case parser_unexpected_callIndex:
+ return "Method not supported";
+ case parser_unexpected_unparsed_bytes:
+ return "Unexpected unparsed bytes";
+ case parser_print_not_supported:
+ return "Value cannot be printed";
+ case parser_tx_nesting_not_supported:
+ return "Call nesting not supported";
+ case parser_tx_nesting_limit_reached:
+ return "Max nested calls reached";
+ case parser_tx_call_vec_too_large:
+ return "Call vector exceeds limit";
+ default:
+ return "Unrecognized error code";
+ }
+}
+
+GEN_DEF_READFIX_UNSIGNED(8)
+
+GEN_DEF_READFIX_UNSIGNED(16)
+
+GEN_DEF_READFIX_UNSIGNED(32)
+
+GEN_DEF_READFIX_UNSIGNED(64)
+
+parser_error_t _readBool(parser_context_t *c, pd_bool_t *v) {
+ CHECK_INPUT()
+
+ const uint8_t p = *(c->buffer + c->offset);
+ CTX_CHECK_AND_ADVANCE(c, 1)
+
+ switch (p) {
+ case 0x00:
+ *v = bool_false;
+ break;
+ case 0x01:
+ *v = bool_true;
+ break;
+ default:
+ return parser_unexpected_value;
+ }
+ return parser_ok;
+}
+
+parser_error_t _readCompactInt(parser_context_t *c, compactInt_t *v) {
+ CHECK_INPUT()
+
+ v->ptr = c->buffer + c->offset;
+ const uint8_t mode = *v->ptr & 0x03u; // get mode from two least significant bits
+
+ uint64_t tmp;
+ switch (mode) {
+ case 0: // single byte
+ v->len = 1;
+ CTX_CHECK_AND_ADVANCE(c, v->len)
+ _getValue(v, &tmp);
+ break;
+ case 1: // 2-byte
+ v->len = 2;
+ CTX_CHECK_AND_ADVANCE(c, v->len)
+ _getValue(v, &tmp);
+ break;
+ case 2: // 4-byte
+ v->len = 4;
+ CTX_CHECK_AND_ADVANCE(c, v->len)
+ _getValue(v, &tmp);
+ break;
+ case 3: // bigint
+ v->len = (*v->ptr >> 2u) + 4 + 1;
+ CTX_CHECK_AND_ADVANCE(c, v->len)
+ break;
+ default:
+ // this is actually impossible
+ return parser_unexpected_value;
+ }
+
+ return parser_ok;
+}
+
+parser_error_t _getValue(const compactInt_t *c, uint64_t *v) {
+ *v = 0;
+
+ switch (c->len) {
+ case 1:
+ *v = (*c->ptr) >> 2u;
+ break;
+ case 2:
+ *v = (*c->ptr) >> 2u;
+ *v += *(c->ptr + 1) << 6u;
+ if (*v < 64) {
+ return parser_value_out_of_range;
+ }
+ break;
+ case 4:
+ *v = (*c->ptr) >> 2u;
+ *v += *(c->ptr + 1) << 6u;
+ *v += *(c->ptr + 2) << (8u + 6u);
+ *v += *(c->ptr + 3) << (16u + 6u);
+ if (*v < 16383) {
+ return parser_value_out_of_range;
+ }
+ break;
+ default:
+ return parser_value_out_of_range;
+ }
+
+ return parser_ok;
+}
+
+parser_error_t _toStringCompactInt(const compactInt_t *c,
+ uint8_t decimalPlaces,
+ bool trimTrailingZeros,
+ char postfix[],
+ char prefix[],
+ char *outValue, uint16_t outValueLen,
+ uint8_t pageIdx, uint8_t *pageCount) {
+ char bufferUI[200];
+ MEMZERO(outValue, outValueLen);
+ MEMZERO(bufferUI, sizeof(bufferUI));
+ *pageCount = 1;
+
+ if (c->len <= 4) {
+ uint64_t v;
+ _getValue(c, &v);
+ if (uint64_to_str(bufferUI, sizeof(bufferUI), v) != NULL) {
+ return parser_unexpected_value;
+ }
+ } else {
+ // This is longer number
+ uint8_t bcdOut[100];
+ const uint16_t bcdOutLen = sizeof(bcdOut);
+
+ bignumLittleEndian_to_bcd(bcdOut, bcdOutLen, c->ptr + 1, c->len - 1);
+ if (!bignumLittleEndian_bcdprint(bufferUI, sizeof(bufferUI), bcdOut, bcdOutLen))
+ return parser_unexpected_buffer_end;
+ }
+
+ // Format number
+ if (intstr_to_fpstr_inplace(bufferUI, sizeof(bufferUI), decimalPlaces) == 0) {
+ return parser_unexpected_value;
+ }
+
+ if (z_str3join(bufferUI, sizeof(bufferUI), prefix, postfix) != zxerr_ok) {
+ return parser_unexpected_buffer_end;
+ }
+
+ if(trimTrailingZeros) {
+ number_inplace_trimming(bufferUI, 1);
+ }
+
+ pageString(outValue, outValueLen, bufferUI, pageIdx, pageCount);
+
+ return parser_ok;
+}
+
+//////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////
+
+parser_error_t _readCallIndex(parser_context_t *c, pd_CallIndex_t *v) {
+ CHECK_INPUT()
+
+ CHECK_ERROR(_readUInt8(c, &v->moduleIdx))
+ CHECK_ERROR(_readUInt8(c, &v->idx))
+ return parser_ok;
+}
+
+parser_error_t _readEra(parser_context_t *c, pd_ExtrinsicEra_t *v) {
+ CHECK_INPUT()
+ // https://github.com/paritytech/substrate/blob/fc3adc87dc806237eb7371c1d21055eea1702be0/core/sr-primitives/src/generic/era.rs#L117
+
+ v->type = eEraImmortal;
+ v->period = 0;
+ v->phase = 0;
+
+ uint8_t first;
+ CHECK_ERROR(_readUInt8(c, &first))
+ if (first == 0) { return parser_ok; }
+
+ v->type = eEraMortal;
+ uint64_t encoded = first;
+ CHECK_ERROR(_readUInt8(c, &first))
+ encoded += (uint64_t) first << 8u;
+
+ v->period = 2U << (encoded % (1u << 4u));
+ uint64_t quantize_factor = (v->period >> 12u);
+ quantize_factor = (quantize_factor == 0 ? 1 : quantize_factor);
+
+ v->phase = (encoded >> 4u) * quantize_factor;
+
+ if (v->period >= 4 && v->phase < v->period) {
+ return parser_ok;
+ }
+
+ return parser_unexpected_value;
+}
+
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+
+parser_error_t _readCompactIndex(parser_context_t *c, pd_CompactIndex_t *v) {
+ CHECK_INPUT()
+ CHECK_ERROR(_readCompactInt(c, &v->index))
+ return parser_ok;
+}
+
+parser_error_t _readCompactBalance(parser_context_t *c, pd_CompactBalance_t *v) {
+ CHECK_INPUT()
+ CHECK_ERROR(_readCompactInt(c, &v->value))
+ return parser_ok;
+}
+
+parser_error_t _toStringCompactIndex(const pd_CompactIndex_t *v,
+ char *outValue, uint16_t outValueLen,
+ uint8_t pageIdx, uint8_t *pageCount) {
+ return _toStringCompactInt(&v->index, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
+}
+
+parser_error_t _toStringCompactBalance(const pd_CompactBalance_t *v,
+ char *outValue, uint16_t outValueLen,
+ uint8_t pageIdx, uint8_t *pageCount) {
+ CHECK_ERROR(_toStringCompactInt(
+ &v->value,
+ COIN_AMOUNT_DECIMAL_PLACES, true, "", COIN_TICKER,
+ outValue, outValueLen, pageIdx, pageCount))
+ return parser_ok;
+}
+
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+
+parser_error_t _checkVersions(parser_context_t *c) {
+ // Methods are not length delimited so in order to retrieve the specVersion
+ // it is necessary to parse from the back.
+ // The transaction is expect to end in
+ // [4 bytes] specVersion
+ // [4 bytes] transactionVersion
+ // [32 bytes] genesisHash
+ // [32 bytes] blockHash
+ const uint16_t specOffsetFromBack = 4 + 4 + 32 + 32;
+ if (c->bufferLen < specOffsetFromBack) {
+ return parser_unexpected_buffer_end;
+ }
+
+ uint8_t *p = (uint8_t *) (c->buffer + c->bufferLen - specOffsetFromBack);
+ uint32_t specVersion = 0;
+ specVersion += (uint32_t) p[0] << 0u;
+ specVersion += (uint32_t) p[1] << 8u;
+ specVersion += (uint32_t) p[2] << 16u;
+ specVersion += (uint32_t) p[3] << 24u;
+
+ p += 4;
+ uint32_t transactionVersion = 0;
+ transactionVersion += (uint32_t) p[0] << 0u;
+ transactionVersion += (uint32_t) p[1] << 8u;
+ transactionVersion += (uint32_t) p[2] << 16u;
+ transactionVersion += (uint32_t) p[3] << 24u;
+
+ if (transactionVersion != (SUPPORTED_TX_VERSION_CURRENT) &&
+ transactionVersion != (SUPPORTED_TX_VERSION_PREVIOUS)) {
+ return parser_tx_version_not_supported;
+ }
+
+ if (specVersion < SUPPORTED_MINIMUM_SPEC_VERSION) {
+ return parser_spec_not_supported;
+ }
+
+ c->tx_obj->specVersion = specVersion;
+ c->tx_obj->transactionVersion = transactionVersion;
+
+ return parser_ok;
+}
+
+uint16_t __address_type;
+
+uint16_t _getAddressType() {
+ return __address_type;
+}
+
+uint16_t _detectAddressType(const parser_context_t *c) {
+ char hashstr[65];
+ uint8_t pc;
+
+ if (c->tx_obj->genesisHash._ptr != NULL) {
+ _toStringHash(&c->tx_obj->genesisHash, hashstr, 65, 0, &pc);
+
+ // Compare with known genesis hashes
+ if (strcmp(hashstr, COIN_GENESIS_HASH) == 0) {
+ return PK_ADDRESS_TYPE;
+ }
+ }
+
+ return 42;
+}
+
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////
+
+parser_error_t _readAddress(parser_context_t *c, pd_Address_t *v) {
+ CHECK_INPUT()
+ // Based on
+ // https://github.com/paritytech/substrate/blob/fc3adc87dc806237eb7371c1d21055eea1702be0/srml/indices/src/address.rs#L66
+
+ uint8_t tmp;
+ CHECK_ERROR(_readUInt8(c, &tmp))
+
+ switch (tmp) {
+ case 0xFF: {
+ v->type = eAddressId;
+ v->idPtr = c->buffer + c->offset;
+ CTX_CHECK_AND_ADVANCE(c, 32)
+ break;
+ }
+ case 0xFE: {
+ compactInt_t ci;
+ CHECK_ERROR(_readCompactInt(c, &ci))
+
+ v->type = eAddressIndex;
+ CHECK_ERROR(_getValue(&ci, &v->idx))
+
+ if (v->idx <= 0xffffffffu) {
+ return parser_unexpected_value;
+ }
+ break;
+ }
+ case 0xFD: {
+ uint32_t tmpval;
+ CHECK_ERROR(_readUInt32(c, &tmpval))
+ v->type = eAddressIndex;
+ v->idx = tmpval;
+ if (v->idx <= 0xFFFF) {
+ return parser_unexpected_value;
+ }
+ break;
+ }
+ case 0xFC: {
+ uint16_t tmpval;
+ CHECK_ERROR(_readUInt16(c, &tmpval))
+ v->type = eAddressIndex;
+ v->idx = tmpval;
+ if (v->idx <= 0xEF) {
+ return parser_unexpected_value;
+ }
+ break;
+ }
+ default:
+ if (tmp <= 0xEF) {
+ v->type = eAddressIndex;
+ v->idx = tmp;
+ return parser_ok;
+ }
+
+ return parser_unexpected_value;
+ }
+
+ return parser_ok;
+}
+
+parser_error_t _toStringPubkeyAsAddress(const uint8_t *pubkey,
+ char *outValue, uint16_t outValueLen,
+ uint8_t pageIdx, uint8_t *pageCount) {
+ char bufferUI[200];
+
+ if (crypto_SS58EncodePubkey((uint8_t *) bufferUI, sizeof(bufferUI), __address_type, pubkey) == 0) {
+ return parser_no_data;
+ }
+
+ pageString(outValue, outValueLen, bufferUI, pageIdx, pageCount);
+ if (pageIdx >= *pageCount) {
+ return parser_no_data;
+ }
+ return parser_ok;
+}
+
+parser_error_t _toStringAddress(const pd_Address_t *v,
+ char *outValue, uint16_t outValueLen,
+ uint8_t pageIdx, uint8_t *pageCount) {
+ MEMZERO(outValue, outValueLen);
+ if (v == NULL) {
+ return parser_ok;
+ }
+
+ *pageCount = 1;
+ switch (v->type) {
+ case eAddressIndex:
+ return parser_not_supported;
+ case eAddressId: {
+ return _toStringPubkeyAsAddress(v->idPtr,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ }
+ }
+
+ return parser_ok;
+}
diff --git a/app/src/secret.c b/app/src/secret.c
deleted file mode 100644
index 78f0c8e..0000000
--- a/app/src/secret.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "os.h"
-#include "cx.h"
-#include "coin.h"
-#include "app_main.h"
-#include "tx.h"
-#include "view.h"
-#include "app_mode.h"
-#include "zxformat.h"
-
-void secret_accept() {
-#ifdef APP_SECRET_MODE_ENABLED
- app_mode_set_secret(true);
- view_idle_show(0, NULL);
-#endif
-}
-
-static char *secret_message =
- "USE AT YOUR OWN RISK!! "
- "You are about to enable the KSM recovery mode."
- "If you are not sure why you are here, reject or unplug your device immediately."
- "Activating this mode will temporarily allow you to sign transactions using Polkadot keys";
-
-zxerr_t secret_getNumItems(uint8_t *num_items) {
- zemu_log_stack("secret_getNumItems");
- *num_items = 1;
- return zxerr_ok;
-}
-
-zxerr_t secret_getItem(int8_t displayIdx,
- char *outKey, uint16_t outKeyLen,
- char *outVal, uint16_t outValLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- if (displayIdx != 0) {
- return zxerr_no_data;
- }
-
- snprintf(outKey, outKeyLen, "WARNING!");
- pageString(outVal, outValLen, (char *) PIC(secret_message), pageIdx, pageCount);
- return zxerr_ok;
-}
-
-zxerr_t secret_enabled() {
-#ifdef APP_SECRET_MODE_ENABLED
- zemu_log("RECOVERY TRIGGERED");
- view_review_init(secret_getItem, secret_getNumItems, secret_accept);
- view_review_show();
-#endif
- return zxerr_ok;
-}
diff --git a/app/src/secret.h b/app/src/secret.h
deleted file mode 100644
index 678d40c..0000000
--- a/app/src/secret.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#include "zxmacros.h"
-#include
-#include "zxerror.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-zxerr_t secret_enabled();
-
-zxerr_t secret_getNumItems(uint8_t *num_items);
-
-zxerr_t secret_getItem(int8_t displayIdx,
- char *outKey, uint16_t outKeyLen,
- char *outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t *pageCount);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/app/src/substrate/substrate_coin.h b/app/src/substrate/substrate_coin.h
index e5fc52b..48b6bfb 100644
--- a/app/src/substrate/substrate_coin.h
+++ b/app/src/substrate/substrate_coin.h
@@ -25,7 +25,7 @@ extern "C" {
#define HDPATH_LEN_DEFAULT 5
#define HDPATH_0_DEFAULT (0x80000000 | 0x2c)
#define HDPATH_1_DEFAULT (0x80000000 | 0x253)
-#define HDPATH_1_RECOVERY (0x80000000 | 0x162)
+#define HDPATH_1_RECOVERY (0x80000000 | 0x253)
#define HDPATH_2_DEFAULT (0x80000000u | 0u)
#define HDPATH_3_DEFAULT (0u)
@@ -61,11 +61,8 @@ typedef enum {
#define COIN_NAME "Polymesh"
#define COIN_TICKER "POLYX "
-#define COIN_SECRET_REQUIRED_CLICKS 10
-
#define MENU_MAIN_APP_LINE1 "Polymesh"
#define MENU_MAIN_APP_LINE2 "Ready"
-#define MENU_MAIN_APP_LINE2_SECRET "POLYX RECOVERY"
#define APPVERSION_LINE1 "Polymesh"
#define APPVERSION_LINE2 "v" APPVERSION
diff --git a/app/src/substrate/substrate_dispatch.c b/app/src/substrate/substrate_dispatch.c
index 27aba0d..bb7c129 100644
--- a/app/src/substrate/substrate_dispatch.c
+++ b/app/src/substrate/substrate_dispatch.c
@@ -27,12 +27,12 @@ parser_error_t _readMethod(
{
switch (c->tx_obj->transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _readMethod_V2(c, moduleIdx, callIdx, &method->V2);
+ case 3:
+ return _readMethod_V3(c, moduleIdx, callIdx, &method->V3);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _readMethod_V1(c, moduleIdx, callIdx, &method->V1);
+ case 2:
+ return _readMethod_V2(c, moduleIdx, callIdx, &method->V2);
#endif
default:
return parser_tx_version_not_supported;
@@ -43,12 +43,12 @@ uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_NumItems_V2(moduleIdx, callIdx);
+ case 3:
+ return _getMethod_NumItems_V3(moduleIdx, callIdx);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_NumItems_V1(moduleIdx, callIdx);
+ case 2:
+ return _getMethod_NumItems_V2(moduleIdx, callIdx);
#endif
default:
return parser_tx_version_not_supported;
@@ -59,12 +59,12 @@ const char* _getMethod_ModuleName(uint32_t transactionVersion, uint8_t moduleIdx
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_ModuleName_V2(moduleIdx);
+ case 3:
+ return _getMethod_ModuleName_V3(moduleIdx);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_ModuleName_V1(moduleIdx);
+ case 2:
+ return _getMethod_ModuleName_V2(moduleIdx);
#endif
default:
return NULL;
@@ -75,12 +75,12 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_Name_V2(moduleIdx, callIdx);
+ case 3:
+ return _getMethod_Name_V3(moduleIdx, callIdx);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_Name_V1(moduleIdx, callIdx);
+ case 2:
+ return _getMethod_Name_V2(moduleIdx, callIdx);
#endif
default:
return 0;
@@ -91,12 +91,12 @@ const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx,
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_ItemName_V2(moduleIdx, callIdx, itemIdx);
+ case 3:
+ return _getMethod_ItemName_V3(moduleIdx, callIdx, itemIdx);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_ItemName_V1(moduleIdx, callIdx, itemIdx);
+ case 2:
+ return _getMethod_ItemName_V2(moduleIdx, callIdx, itemIdx);
#endif
default:
return NULL;
@@ -109,13 +109,13 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_ItemValue_V2(&m->V2, moduleIdx, callIdx, itemIdx, outValue,
+ case 3:
+ return _getMethod_ItemValue_V3(&m->V3, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_ItemValue_V1(&m->V1, moduleIdx, callIdx, itemIdx, outValue,
+ case 2:
+ return _getMethod_ItemValue_V2(&m->V2, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
#endif
default:
@@ -127,12 +127,12 @@ bool _getMethod_ItemIsExpert(uint32_t transactionVersion, uint8_t moduleIdx, uin
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_ItemIsExpert_V2(moduleIdx, callIdx, itemIdx);
+ case 3:
+ return _getMethod_ItemIsExpert_V3(moduleIdx, callIdx, itemIdx);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_ItemIsExpert_V1(moduleIdx, callIdx, itemIdx);
+ case 2:
+ return _getMethod_ItemIsExpert_V2(moduleIdx, callIdx, itemIdx);
#endif
default:
return false;
@@ -143,12 +143,12 @@ bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleId
{
switch (transactionVersion) {
#ifndef DISABLE_CURRENT
- case 2:
- return _getMethod_IsNestingSupported_V2(moduleIdx, callIdx);
+ case 3:
+ return _getMethod_IsNestingSupported_V3(moduleIdx, callIdx);
#endif
#ifndef DISABLE_PREVIOUS
- case 1:
- return _getMethod_IsNestingSupported_V1(moduleIdx, callIdx);
+ case 2:
+ return _getMethod_IsNestingSupported_V2(moduleIdx, callIdx);
#endif
default:
return false;
diff --git a/app/src/substrate/substrate_dispatch.h b/app/src/substrate/substrate_dispatch.h
index 102943c..8a3294d 100644
--- a/app/src/substrate/substrate_dispatch.h
+++ b/app/src/substrate/substrate_dispatch.h
@@ -21,8 +21,8 @@ extern "C" {
#include "parser_common.h"
#include "stdbool.h"
-#include "substrate_dispatch_V1.h"
#include "substrate_dispatch_V2.h"
+#include "substrate_dispatch_V3.h"
#include
#include
@@ -33,12 +33,12 @@ extern "C" {
{ \
switch (txVersion) { \
\
+ case 3: \
+ return PD_CALL_##CALL##_V3; \
+ \
case 2: \
return PD_CALL_##CALL##_V2; \
\
- case 1: \
- return PD_CALL_##CALL##_V1; \
- \
default: \
return 0; \
} \
diff --git a/app/src/substrate/substrate_dispatch_V2.c b/app/src/substrate/substrate_dispatch_V2.c
index 659585e..aa6e01c 100644
--- a/app/src/substrate/substrate_dispatch_V2.c
+++ b/app/src/substrate/substrate_dispatch_V2.c
@@ -3085,6 +3085,16 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_BATCH_ATOMIC;
case 10498: /* module 41 call 2 */
return STR_ME_BATCH_OPTIMISTIC;
+ default:
+ return _getMethod_Name_V2_ParserFull(callPrivIdx);
+ }
+
+ return NULL;
+}
+
+const char* _getMethod_Name_V2_ParserFull(uint16_t callPrivIdx)
+{
+ switch (callPrivIdx) {
#ifdef SUBSTRATE_PARSER_FULL
case 0: /* module 0 call 0 */
return STR_ME_FILL_BLOCK;
@@ -3096,18 +3106,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_CODE;
case 4: /* module 0 call 4 */
return STR_ME_SET_CODE_WITHOUT_CHECKS;
- case 5: /* module 0 call 5 */
- return STR_ME_SET_CHANGES_TRIE_CONFIG;
- case 6: /* module 0 call 6 */
- return STR_ME_SET_STORAGE;
- case 7: /* module 0 call 7 */
- return STR_ME_KILL_STORAGE;
- case 8: /* module 0 call 8 */
- return STR_ME_KILL_PREFIX;
- case 256: /* module 1 call 0 */
- return STR_ME_REPORT_EQUIVOCATION;
- case 257: /* module 1 call 1 */
- return STR_ME_REPORT_EQUIVOCATION_UNSIGNED;
case 512: /* module 2 call 0 */
return STR_ME_SET;
case 768: /* module 3 call 0 */
@@ -3120,8 +3118,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_FORCE_TRANSFER;
case 772: /* module 3 call 4 */
return STR_ME_FREEZE;
- case 1024: /* module 4 call 0 */
- return STR_ME_SET_UNCLES;
case 1281: /* module 5 call 1 */
return STR_ME_TRANSFER_WITH_MEMO;
case 1282: /* module 5 call 2 */
@@ -3132,8 +3128,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_FORCE_TRANSFER;
case 1285: /* module 5 call 5 */
return STR_ME_BURN_ACCOUNT_BALANCE;
- case 1792: /* module 7 call 0 */
- return STR_ME_CDD_REGISTER_DID;
case 1793: /* module 7 call 1 */
return STR_ME_INVALIDATE_CDD_CLAIMS;
case 1796: /* module 7 call 4 */
@@ -3142,8 +3136,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_GC_ADD_CDD_CLAIM;
case 1810: /* module 7 call 18 */
return STR_ME_GC_REVOKE_CDD_CLAIM;
- case 1811: /* module 7 call 19 */
- return STR_ME_ADD_INVESTOR_UNIQUENESS_CLAIM_V2;
case 1812: /* module 7 call 20 */
return STR_ME_REVOKE_CLAIM_BY_INDEX;
case 1813: /* module 7 call 21 */
@@ -3272,8 +3264,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_VALIDATOR_COUNT;
case 4362: /* module 17 call 10 */
return STR_ME_INCREASE_VALIDATOR_COUNT;
- case 4363: /* module 17 call 11 */
- return STR_ME_SCALE_VALIDATOR_COUNT;
case 4364: /* module 17 call 12 */
return STR_ME_ADD_PERMISSIONED_VALIDATOR;
case 4365: /* module 17 call 13 */
@@ -3302,10 +3292,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_HISTORY_DEPTH;
case 4378: /* module 17 call 26 */
return STR_ME_REAP_STASH;
- case 4379: /* module 17 call 27 */
- return STR_ME_SUBMIT_ELECTION_SOLUTION;
- case 4380: /* module 17 call 28 */
- return STR_ME_SUBMIT_ELECTION_SOLUTION_UNSIGNED;
case 4381: /* module 17 call 29 */
return STR_ME_PAYOUT_STAKERS_BY_SYSTEM;
case 4382: /* module 17 call 30 */
@@ -3316,20 +3302,8 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_KEYS;
case 4865: /* module 19 call 1 */
return STR_ME_PURGE_KEYS;
- case 5376: /* module 21 call 0 */
- return STR_ME_REPORT_EQUIVOCATION;
- case 5377: /* module 21 call 1 */
- return STR_ME_REPORT_EQUIVOCATION_UNSIGNED;
case 5378: /* module 21 call 2 */
return STR_ME_NOTE_STALLED;
- case 5888: /* module 23 call 0 */
- return STR_ME_HEARTBEAT;
- case 6400: /* module 25 call 0 */
- return STR_ME_SUDO;
- case 6401: /* module 25 call 1 */
- return STR_ME_SUDO_UNCHECKED_WEIGHT;
- case 6402: /* module 25 call 2 */
- return STR_ME_SET_KEY;
case 6403: /* module 25 call 3 */
return STR_ME_SUDO_AS;
case 6656: /* module 26 call 0 */
@@ -3476,20 +3450,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_ACCEPT_PORTFOLIO_CUSTODY;
case 8960: /* module 35 call 0 */
return STR_ME_CHANGE_COEFFICIENT;
- case 8961: /* module 35 call 1 */
- return STR_ME_CHANGE_BASE_FEE;
- case 9216: /* module 36 call 0 */
- return STR_ME_SCHEDULE;
- case 9217: /* module 36 call 1 */
- return STR_ME_CANCEL;
- case 9218: /* module 36 call 2 */
- return STR_ME_SCHEDULE_NAMED;
- case 9219: /* module 36 call 3 */
- return STR_ME_CANCEL_NAMED;
- case 9220: /* module 36 call 4 */
- return STR_ME_SCHEDULE_AFTER;
- case 9221: /* module 36 call 5 */
- return STR_ME_SCHEDULE_NAMED_AFTER;
case 9472: /* module 37 call 0 */
return STR_ME_CREATE_VENUE;
case 9473: /* module 37 call 1 */
@@ -3550,16 +3510,10 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_REIMBURSEMENT;
case 10499: /* module 41 call 3 */
return STR_ME_RELAY_TX;
- case 11008: /* module 43 call 0 */
- return STR_ME_CREATE_GROUP;
- case 11009: /* module 43 call 1 */
- return STR_ME_SET_GROUP_PERMISSIONS;
case 11010: /* module 43 call 2 */
return STR_ME_REMOVE_AGENT;
case 11011: /* module 43 call 3 */
return STR_ME_ABDICATE;
- case 11012: /* module 43 call 4 */
- return STR_ME_CHANGE_GROUP;
case 11013: /* module 43 call 5 */
return STR_ME_ACCEPT_BECOME_AGENT;
case 11264: /* module 44 call 0 */
@@ -3576,8 +3530,6 @@ const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_DECREASE_POLYX_LIMIT;
case 11520: /* module 45 call 0 */
return STR_ME_CLAIM_ITN_REWARD;
- case 11521: /* module 45 call 1 */
- return STR_ME_SET_ITN_REWARD_STATUS;
#endif
default:
return NULL;
diff --git a/app/src/substrate/substrate_dispatch_V2.h b/app/src/substrate/substrate_dispatch_V2.h
index a9f571b..8b2d2c1 100644
--- a/app/src/substrate/substrate_dispatch_V2.h
+++ b/app/src/substrate/substrate_dispatch_V2.h
@@ -31,6 +31,7 @@ parser_error_t _readMethod_V2(parser_context_t* c, uint8_t moduleIdx, uint8_t ca
const char* _getMethod_ModuleName_V2(uint8_t moduleIdx);
const char* _getMethod_Name_V2(uint8_t moduleIdx, uint8_t callIdx);
+const char* _getMethod_Name_V2_ParserFull(uint16_t callPrivIdx);
const char* _getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx);
diff --git a/app/src/substrate/substrate_dispatch_V1.c b/app/src/substrate/substrate_dispatch_V3.c
similarity index 53%
rename from app/src/substrate/substrate_dispatch_V1.c
rename to app/src/substrate/substrate_dispatch_V3.c
index 7bb70d8..b25f98c 100644
--- a/app/src/substrate/substrate_dispatch_V1.c
+++ b/app/src/substrate/substrate_dispatch_V3.c
@@ -14,2628 +14,3095 @@
* limitations under the License.
********************************************************************************/
-#include "substrate_dispatch_V1.h"
+#include "substrate_dispatch_V3.h"
#include "substrate_strings.h"
#include "zxmacros.h"
#include
-#ifndef DISABLE_PREVIOUS
-
-__Z_INLINE parser_error_t _readMethod_balances_transfer_V1(
- parser_context_t* c, pd_balances_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_balances_transfer_V3(
+ parser_context_t* c, pd_balances_transfer_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->dest))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->dest))
CHECK_ERROR(_readCompactBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_remove_secondary_keys_V1(
- parser_context_t* c, pd_identity_remove_secondary_keys_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_balances_transfer_with_memo_V3(
+ parser_context_t* c, pd_balances_transfer_with_memo_V3_t* m)
{
- CHECK_ERROR(_readVecSignatory_V1(c, &m->signers_to_remove))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->dest))
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
+ CHECK_ERROR(_readOptionMemo_V3(c, &m->memo))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_accept_primary_key_V1(
- parser_context_t* c, pd_identity_accept_primary_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_accept_primary_key_V3(
+ parser_context_t* c, pd_identity_accept_primary_key_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->rotation_auth_id))
CHECK_ERROR(_readOptionu64(c, &m->optional_cdd_auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_join_identity_as_key_V1(
- parser_context_t* c, pd_identity_join_identity_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_join_identity_as_key_V3(
+ parser_context_t* c, pd_identity_join_identity_as_key_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_leave_identity_as_key_V1(
- parser_context_t* c, pd_identity_leave_identity_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_leave_identity_as_key_V3(
+ parser_context_t* c, pd_identity_leave_identity_as_key_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_add_claim_V1(
- parser_context_t* c, pd_identity_add_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_add_claim_V3(
+ parser_context_t* c, pd_identity_add_claim_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->target))
- CHECK_ERROR(_readClaim_V1(c, &m->claim))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ CHECK_ERROR(_readClaim_V3(c, &m->claim))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_revoke_claim_V1(
- parser_context_t* c, pd_identity_revoke_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_revoke_claim_V3(
+ parser_context_t* c, pd_identity_revoke_claim_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->target))
- CHECK_ERROR(_readClaim_V1(c, &m->claim))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ CHECK_ERROR(_readClaim_V3(c, &m->claim))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_set_permission_to_signer_V1(
- parser_context_t* c, pd_identity_set_permission_to_signer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_set_permission_to_signer_V3(
+ parser_context_t* c, pd_identity_set_permission_to_signer_V3_t* m)
{
- CHECK_ERROR(_readSignatory_V1(c, &m->signer))
- CHECK_ERROR(_readPermissions_V1(c, &m->permissions))
+ CHECK_ERROR(_readSignatoryAccountId_V3(c, &m->key))
+ CHECK_ERROR(_readPermissions_V3(c, &m->perms))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_freeze_secondary_keys_V1(
- parser_context_t* c, pd_identity_freeze_secondary_keys_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_freeze_secondary_keys_V3(
+ parser_context_t* c, pd_identity_freeze_secondary_keys_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_unfreeze_secondary_keys_V1(
- parser_context_t* c, pd_identity_unfreeze_secondary_keys_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_unfreeze_secondary_keys_V3(
+ parser_context_t* c, pd_identity_unfreeze_secondary_keys_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_add_authorization_V1(
- parser_context_t* c, pd_identity_add_authorization_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_add_authorization_V3(
+ parser_context_t* c, pd_identity_add_authorization_V3_t* m)
{
- CHECK_ERROR(_readSignatory_V1(c, &m->target))
- CHECK_ERROR(_readAuthorizationData_V1(c, &m->authorization_data))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readSignatoryAccountId_V3(c, &m->target))
+ CHECK_ERROR(_readAuthorizationDataAccountId_V3(c, &m->data))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_remove_authorization_V1(
- parser_context_t* c, pd_identity_remove_authorization_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_remove_authorization_V3(
+ parser_context_t* c, pd_identity_remove_authorization_V3_t* m)
{
- CHECK_ERROR(_readSignatory_V1(c, &m->target))
+ CHECK_ERROR(_readSignatoryAccountId_V3(c, &m->target))
CHECK_ERROR(_readu64(c, &m->auth_id))
CHECK_ERROR(_readbool(c, &m->_auth_issuer_pays))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_add_secondary_keys_with_authorization_V1(
- parser_context_t* c, pd_identity_add_secondary_keys_with_authorization_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_add_investor_uniqueness_claim_V3(
+ parser_context_t* c, pd_identity_add_investor_uniqueness_claim_V3_t* m)
+{
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ CHECK_ERROR(_readClaim_V3(c, &m->claim))
+ CHECK_ERROR(_readInvestorZKProofData_V3(c, &m->proof))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_identity_add_secondary_keys_with_authorization_V3(
+ parser_context_t* c, pd_identity_add_secondary_keys_with_authorization_V3_t* m)
{
- CHECK_ERROR(_readVecSecondaryKeyWithAuth_V1(c, &m->additional_keys))
- CHECK_ERROR(_readMoment_V1(c, &m->expires_at))
+ CHECK_ERROR(_readVecSecondaryKeyWithAuthAccountId_V3(c, &m->additional_keys))
+ CHECK_ERROR(_readMoment_V3(c, &m->expires_at))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_add_investor_uniqueness_claim_V1(
- parser_context_t* c, pd_identity_add_investor_uniqueness_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_remove_secondary_keys_V3(
+ parser_context_t* c, pd_identity_remove_secondary_keys_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->target))
- CHECK_ERROR(_readClaim_V1(c, &m->claim))
- CHECK_ERROR(_readInvestorZKProofData_V1(c, &m->proof))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readVecAccountId_V3(c, &m->keys_to_remove))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_create_multisig_V1(
- parser_context_t* c, pd_multisig_create_multisig_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_create_multisig_V3(
+ parser_context_t* c, pd_multisig_create_multisig_V3_t* m)
{
- CHECK_ERROR(_readVecSignatory_V1(c, &m->signers))
+ CHECK_ERROR(_readVecSignatoryAccountId_V3(c, &m->signers))
CHECK_ERROR(_readu64(c, &m->sigs_required))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_create_or_approve_proposal_as_identity_V1(
- parser_context_t* c, pd_multisig_create_or_approve_proposal_as_identity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_create_or_approve_proposal_as_identity_V3(
+ parser_context_t* c, pd_multisig_create_or_approve_proposal_as_identity_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readProposal(c, &m->proposal))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
CHECK_ERROR(_readbool(c, &m->auto_close))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_create_or_approve_proposal_as_key_V1(
- parser_context_t* c, pd_multisig_create_or_approve_proposal_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_create_or_approve_proposal_as_key_V3(
+ parser_context_t* c, pd_multisig_create_or_approve_proposal_as_key_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readProposal(c, &m->proposal))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
CHECK_ERROR(_readbool(c, &m->auto_close))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_create_proposal_as_identity_V1(
- parser_context_t* c, pd_multisig_create_proposal_as_identity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_create_proposal_as_identity_V3(
+ parser_context_t* c, pd_multisig_create_proposal_as_identity_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readProposal(c, &m->proposal))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
CHECK_ERROR(_readbool(c, &m->auto_close))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_create_proposal_as_key_V1(
- parser_context_t* c, pd_multisig_create_proposal_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_create_proposal_as_key_V3(
+ parser_context_t* c, pd_multisig_create_proposal_as_key_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readProposal(c, &m->proposal))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
CHECK_ERROR(_readbool(c, &m->auto_close))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_approve_as_identity_V1(
- parser_context_t* c, pd_multisig_approve_as_identity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_approve_as_identity_V3(
+ parser_context_t* c, pd_multisig_approve_as_identity_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readu64(c, &m->proposal_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_approve_as_key_V1(
- parser_context_t* c, pd_multisig_approve_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_approve_as_key_V3(
+ parser_context_t* c, pd_multisig_approve_as_key_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readu64(c, &m->proposal_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_reject_as_identity_V1(
- parser_context_t* c, pd_multisig_reject_as_identity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_reject_as_identity_V3(
+ parser_context_t* c, pd_multisig_reject_as_identity_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readu64(c, &m->proposal_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_reject_as_key_V1(
- parser_context_t* c, pd_multisig_reject_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_reject_as_key_V3(
+ parser_context_t* c, pd_multisig_reject_as_key_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readu64(c, &m->proposal_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_accept_multisig_signer_as_identity_V1(
- parser_context_t* c, pd_multisig_accept_multisig_signer_as_identity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_accept_multisig_signer_as_identity_V3(
+ parser_context_t* c, pd_multisig_accept_multisig_signer_as_identity_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_accept_multisig_signer_as_key_V1(
- parser_context_t* c, pd_multisig_accept_multisig_signer_as_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_accept_multisig_signer_as_key_V3(
+ parser_context_t* c, pd_multisig_accept_multisig_signer_as_key_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_add_multisig_signer_V1(
- parser_context_t* c, pd_multisig_add_multisig_signer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_add_multisig_signer_V3(
+ parser_context_t* c, pd_multisig_add_multisig_signer_V3_t* m)
{
- CHECK_ERROR(_readSignatory_V1(c, &m->signer))
+ CHECK_ERROR(_readSignatoryAccountId_V3(c, &m->signer))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_remove_multisig_signer_V1(
- parser_context_t* c, pd_multisig_remove_multisig_signer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_remove_multisig_signer_V3(
+ parser_context_t* c, pd_multisig_remove_multisig_signer_V3_t* m)
{
- CHECK_ERROR(_readSignatory_V1(c, &m->signer))
+ CHECK_ERROR(_readSignatoryAccountId_V3(c, &m->signer))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_add_multisig_signers_via_creator_V1(
- parser_context_t* c, pd_multisig_add_multisig_signers_via_creator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_add_multisig_signers_via_creator_V3(
+ parser_context_t* c, pd_multisig_add_multisig_signers_via_creator_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
- CHECK_ERROR(_readVecSignatory_V1(c, &m->signers))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
+ CHECK_ERROR(_readVecSignatoryAccountId_V3(c, &m->signers))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_remove_multisig_signers_via_creator_V1(
- parser_context_t* c, pd_multisig_remove_multisig_signers_via_creator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_remove_multisig_signers_via_creator_V3(
+ parser_context_t* c, pd_multisig_remove_multisig_signers_via_creator_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
- CHECK_ERROR(_readVecSignatory_V1(c, &m->signers))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
+ CHECK_ERROR(_readVecSignatoryAccountId_V3(c, &m->signers))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_change_sigs_required_V1(
- parser_context_t* c, pd_multisig_change_sigs_required_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_change_sigs_required_V3(
+ parser_context_t* c, pd_multisig_change_sigs_required_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->sigs_required))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_make_multisig_signer_V1(
- parser_context_t* c, pd_multisig_make_multisig_signer_V1_t* m)
-{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
- return parser_ok;
-}
-
-__Z_INLINE parser_error_t _readMethod_multisig_make_multisig_primary_V1(
- parser_context_t* c, pd_multisig_make_multisig_primary_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_make_multisig_primary_V3(
+ parser_context_t* c, pd_multisig_make_multisig_primary_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readOptionu64(c, &m->optional_cdd_auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_multisig_execute_scheduled_proposal_V1(
- parser_context_t* c, pd_multisig_execute_scheduled_proposal_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_execute_scheduled_proposal_V3(
+ parser_context_t* c, pd_multisig_execute_scheduled_proposal_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->multisig))
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
CHECK_ERROR(_readu64(c, &m->proposal_id))
- CHECK_ERROR(_readIdentityId_V1(c, &m->multisig_did))
- CHECK_ERROR(_readWeight_V1(c, &m->_proposal_weight))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->multisig_did))
+ CHECK_ERROR(_readWeight_V3(c, &m->_proposal_weight))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_bond_V1(
- parser_context_t* c, pd_staking_bond_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_bond_V3(
+ parser_context_t* c, pd_staking_bond_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->controller))
- CHECK_ERROR(_readCompactBalanceOf(c, &m->amount))
- CHECK_ERROR(_readRewardDestination_V1(c, &m->payee))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->controller))
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
+ CHECK_ERROR(_readRewardDestination_V3(c, &m->payee))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_bond_extra_V1(
- parser_context_t* c, pd_staking_bond_extra_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_bond_extra_V3(
+ parser_context_t* c, pd_staking_bond_extra_V3_t* m)
{
- CHECK_ERROR(_readCompactBalanceOf(c, &m->amount))
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_unbond_V1(
- parser_context_t* c, pd_staking_unbond_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_unbond_V3(
+ parser_context_t* c, pd_staking_unbond_V3_t* m)
{
- CHECK_ERROR(_readCompactBalanceOf(c, &m->amount))
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_withdraw_unbonded_V1(
- parser_context_t* c, pd_staking_withdraw_unbonded_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_withdraw_unbonded_V3(
+ parser_context_t* c, pd_staking_withdraw_unbonded_V3_t* m)
{
CHECK_ERROR(_readu32(c, &m->num_slashing_spans))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_validate_V1(
- parser_context_t* c, pd_staking_validate_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_validate_V3(
+ parser_context_t* c, pd_staking_validate_V3_t* m)
{
- CHECK_ERROR(_readValidatorPrefs_V1(c, &m->prefs))
+ CHECK_ERROR(_readValidatorPrefs_V3(c, &m->prefs))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_nominate_V1(
- parser_context_t* c, pd_staking_nominate_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_nominate_V3(
+ parser_context_t* c, pd_staking_nominate_V3_t* m)
{
- CHECK_ERROR(_readVecLookupSource_V1(c, &m->targets))
+ CHECK_ERROR(_readVecLookupasStaticLookupSource_V3(c, &m->targets))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_chill_V1(
- parser_context_t* c, pd_staking_chill_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_chill_V3(
+ parser_context_t* c, pd_staking_chill_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_payee_V1(
- parser_context_t* c, pd_staking_set_payee_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_payee_V3(
+ parser_context_t* c, pd_staking_set_payee_V3_t* m)
{
- CHECK_ERROR(_readRewardDestination_V1(c, &m->payee))
+ CHECK_ERROR(_readRewardDestination_V3(c, &m->payee))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_controller_V1(
- parser_context_t* c, pd_staking_set_controller_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_controller_V3(
+ parser_context_t* c, pd_staking_set_controller_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->controller))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->controller))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_rebond_V1(
- parser_context_t* c, pd_staking_rebond_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_rebond_V3(
+ parser_context_t* c, pd_staking_rebond_V3_t* m)
{
- CHECK_ERROR(_readCompactBalanceOf(c, &m->amount))
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_propose_V1(
- parser_context_t* c, pd_pips_propose_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_propose_V3(
+ parser_context_t* c, pd_pips_propose_V3_t* m)
{
CHECK_ERROR(_readProposal(c, &m->proposal))
CHECK_ERROR(_readBalance(c, &m->deposit))
- CHECK_ERROR(_readOptionUrl_V1(c, &m->url))
- CHECK_ERROR(_readOptionPipDescription_V1(c, &m->description))
+ CHECK_ERROR(_readOptionUrl_V3(c, &m->url))
+ CHECK_ERROR(_readOptionPipDescription_V3(c, &m->description))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_vote_V1(
- parser_context_t* c, pd_pips_vote_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_vote_V3(
+ parser_context_t* c, pd_pips_vote_V3_t* m)
{
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
CHECK_ERROR(_readbool(c, &m->aye_or_nay))
CHECK_ERROR(_readBalance(c, &m->deposit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_utility_batch_V1(
- parser_context_t* c, pd_utility_batch_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_utility_batch_V3(
+ parser_context_t* c, pd_utility_batch_V3_t* m)
{
CHECK_ERROR(_readVecCall(c, &m->calls))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_utility_batch_atomic_V1(
- parser_context_t* c, pd_utility_batch_atomic_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_utility_batch_atomic_V3(
+ parser_context_t* c, pd_utility_batch_atomic_V3_t* m)
{
CHECK_ERROR(_readVecCall(c, &m->calls))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_utility_batch_optimistic_V1(
- parser_context_t* c, pd_utility_batch_optimistic_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_utility_batch_optimistic_V3(
+ parser_context_t* c, pd_utility_batch_optimistic_V3_t* m)
{
CHECK_ERROR(_readVecCall(c, &m->calls))
return parser_ok;
}
#ifdef SUBSTRATE_PARSER_FULL
-__Z_INLINE parser_error_t _readMethod_system_fill_block_V1(
- parser_context_t* c, pd_system_fill_block_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_system_fill_block_V3(
+ parser_context_t* c, pd_system_fill_block_V3_t* m)
{
- CHECK_ERROR(_readPerbill_V1(c, &m->_ratio))
+ CHECK_ERROR(_readPerbill_V3(c, &m->ratio))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_system_remark_V1(
- parser_context_t* c, pd_system_remark_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_system_remark_V3(
+ parser_context_t* c, pd_system_remark_V3_t* m)
{
- CHECK_ERROR(_readBytes(c, &m->_remark))
+ CHECK_ERROR(_readVecu8(c, &m->remark))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_system_set_heap_pages_V1(
- parser_context_t* c, pd_system_set_heap_pages_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_system_set_heap_pages_V3(
+ parser_context_t* c, pd_system_set_heap_pages_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->pages))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_system_set_code_V1(
- parser_context_t* c, pd_system_set_code_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_system_set_code_V3(
+ parser_context_t* c, pd_system_set_code_V3_t* m)
{
- CHECK_ERROR(_readBytes(c, &m->code))
+ CHECK_ERROR(_readVecu8(c, &m->code))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_system_set_code_without_checks_V1(
- parser_context_t* c, pd_system_set_code_without_checks_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_system_set_code_without_checks_V3(
+ parser_context_t* c, pd_system_set_code_without_checks_V3_t* m)
{
- CHECK_ERROR(_readBytes(c, &m->code))
+ CHECK_ERROR(_readVecu8(c, &m->code))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_timestamp_set_V1(
- parser_context_t* c, pd_timestamp_set_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_system_remark_with_event_V3(
+ parser_context_t* c, pd_system_remark_with_event_V3_t* m)
{
- CHECK_ERROR(_readCompactMoment_V1(c, &m->now))
+ CHECK_ERROR(_readVecu8(c, &m->remark))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_indices_claim_V1(
- parser_context_t* c, pd_indices_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_timestamp_set_V3(
+ parser_context_t* c, pd_timestamp_set_V3_t* m)
{
- CHECK_ERROR(_readAccountIndex_V1(c, &m->index))
+ CHECK_ERROR(_readCompactu64(c, &m->now))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_indices_transfer_V1(
- parser_context_t* c, pd_indices_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_indices_claim_V3(
+ parser_context_t* c, pd_indices_claim_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->new_))
- CHECK_ERROR(_readAccountIndex_V1(c, &m->index))
+ CHECK_ERROR(_readAccountIndex_V3(c, &m->index))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_indices_free_V1(
- parser_context_t* c, pd_indices_free_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_indices_transfer_V3(
+ parser_context_t* c, pd_indices_transfer_V3_t* m)
{
- CHECK_ERROR(_readAccountIndex_V1(c, &m->index))
+ CHECK_ERROR(_readAccountId_V3(c, &m->new_))
+ CHECK_ERROR(_readAccountIndex_V3(c, &m->index))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_indices_force_transfer_V1(
- parser_context_t* c, pd_indices_force_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_indices_free_V3(
+ parser_context_t* c, pd_indices_free_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->new_))
- CHECK_ERROR(_readAccountIndex_V1(c, &m->index))
- CHECK_ERROR(_readbool(c, &m->freeze))
+ CHECK_ERROR(_readAccountIndex_V3(c, &m->index))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_indices_freeze_V1(
- parser_context_t* c, pd_indices_freeze_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_indices_force_transfer_V3(
+ parser_context_t* c, pd_indices_force_transfer_V3_t* m)
{
- CHECK_ERROR(_readAccountIndex_V1(c, &m->index))
+ CHECK_ERROR(_readAccountId_V3(c, &m->new_))
+ CHECK_ERROR(_readAccountIndex_V3(c, &m->index))
+ CHECK_ERROR(_readbool(c, &m->freeze))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_balances_transfer_with_memo_V1(
- parser_context_t* c, pd_balances_transfer_with_memo_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_indices_freeze_V3(
+ parser_context_t* c, pd_indices_freeze_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->dest))
- CHECK_ERROR(_readCompactBalance(c, &m->amount))
- CHECK_ERROR(_readOptionMemo_V1(c, &m->memo))
+ CHECK_ERROR(_readAccountIndex_V3(c, &m->index))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_balances_deposit_block_reward_reserve_balance_V1(
- parser_context_t* c, pd_balances_deposit_block_reward_reserve_balance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_balances_deposit_block_reward_reserve_balance_V3(
+ parser_context_t* c, pd_balances_deposit_block_reward_reserve_balance_V3_t* m)
{
CHECK_ERROR(_readCompactBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_balances_set_balance_V1(
- parser_context_t* c, pd_balances_set_balance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_balances_set_balance_V3(
+ parser_context_t* c, pd_balances_set_balance_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->who))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->who))
CHECK_ERROR(_readCompactBalance(c, &m->new_free))
CHECK_ERROR(_readCompactBalance(c, &m->new_reserved))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_balances_force_transfer_V1(
- parser_context_t* c, pd_balances_force_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_balances_force_transfer_V3(
+ parser_context_t* c, pd_balances_force_transfer_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->source))
- CHECK_ERROR(_readLookupSource_V1(c, &m->dest))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->source))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->dest))
CHECK_ERROR(_readCompactBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_balances_burn_account_balance_V1(
- parser_context_t* c, pd_balances_burn_account_balance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_balances_burn_account_balance_V3(
+ parser_context_t* c, pd_balances_burn_account_balance_V3_t* m)
{
CHECK_ERROR(_readBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_invalidate_cdd_claims_V1(
- parser_context_t* c, pd_identity_invalidate_cdd_claims_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_invalidate_cdd_claims_V3(
+ parser_context_t* c, pd_identity_invalidate_cdd_claims_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->cdd))
- CHECK_ERROR(_readMoment_V1(c, &m->disable_from))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->cdd))
+ CHECK_ERROR(_readMoment_V3(c, &m->disable_from))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_change_cdd_requirement_for_mk_rotation_V1(
- parser_context_t* c, pd_identity_change_cdd_requirement_for_mk_rotation_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_change_cdd_requirement_for_mk_rotation_V3(
+ parser_context_t* c, pd_identity_change_cdd_requirement_for_mk_rotation_V3_t* m)
{
CHECK_ERROR(_readbool(c, &m->auth_required))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_gc_add_cdd_claim_V1(
- parser_context_t* c, pd_identity_gc_add_cdd_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_placeholder_legacy_set_permission_to_signer_V3(
+ parser_context_t* c, pd_identity_placeholder_legacy_set_permission_to_signer_V3_t* m)
+{
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_identity_gc_add_cdd_claim_V3(
+ parser_context_t* c, pd_identity_gc_add_cdd_claim_V3_t* m)
+{
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_identity_gc_revoke_cdd_claim_V3(
+ parser_context_t* c, pd_identity_gc_revoke_cdd_claim_V3_t* m)
+{
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_identity_revoke_claim_by_index_V3(
+ parser_context_t* c, pd_identity_revoke_claim_by_index_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->target))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ CHECK_ERROR(_readClaimType_V3(c, &m->claim_type))
+ CHECK_ERROR(_readOptionScope_V3(c, &m->scope))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_gc_revoke_cdd_claim_V1(
- parser_context_t* c, pd_identity_gc_revoke_cdd_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_rotate_primary_key_to_secondary_V3(
+ parser_context_t* c, pd_identity_rotate_primary_key_to_secondary_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->target))
+ CHECK_ERROR(_readu64(c, &m->auth_id))
+ CHECK_ERROR(_readOptionu64(c, &m->optional_cdd_auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_identity_revoke_claim_by_index_V1(
- parser_context_t* c, pd_identity_revoke_claim_by_index_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_identity_set_secondary_key_permissions_V3(
+ parser_context_t* c, pd_identity_set_secondary_key_permissions_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->target))
- CHECK_ERROR(_readClaimType_V1(c, &m->claim_type))
- CHECK_ERROR(_readOptionScope_V1(c, &m->scope))
+ CHECK_ERROR(_readAccountId_V3(c, &m->key))
+ CHECK_ERROR(_readPermissions_V3(c, &m->perms))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_set_active_members_limit_V1(
- parser_context_t* c, pd_cddserviceproviders_set_active_members_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_set_active_members_limit_V3(
+ parser_context_t* c, pd_cddserviceproviders_set_active_members_limit_V3_t* m)
{
- CHECK_ERROR(_readMemberCount_V1(c, &m->limit))
+ CHECK_ERROR(_readMemberCount_V3(c, &m->limit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_disable_member_V1(
- parser_context_t* c, pd_cddserviceproviders_disable_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_disable_member_V3(
+ parser_context_t* c, pd_cddserviceproviders_disable_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->at))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->at))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_add_member_V1(
- parser_context_t* c, pd_cddserviceproviders_add_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_add_member_V3(
+ parser_context_t* c, pd_cddserviceproviders_add_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_remove_member_V1(
- parser_context_t* c, pd_cddserviceproviders_remove_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_remove_member_V3(
+ parser_context_t* c, pd_cddserviceproviders_remove_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_swap_member_V1(
- parser_context_t* c, pd_cddserviceproviders_swap_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_swap_member_V3(
+ parser_context_t* c, pd_cddserviceproviders_swap_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->remove))
- CHECK_ERROR(_readIdentityId_V1(c, &m->add))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->remove))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->add))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_reset_members_V1(
- parser_context_t* c, pd_cddserviceproviders_reset_members_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_reset_members_V3(
+ parser_context_t* c, pd_cddserviceproviders_reset_members_V3_t* m)
{
- CHECK_ERROR(_readVecIdentityId_V1(c, &m->members))
+ CHECK_ERROR(_readVecIdentityId_V3(c, &m->members))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_cddserviceproviders_abdicate_membership_V1(
- parser_context_t* c, pd_cddserviceproviders_abdicate_membership_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_cddserviceproviders_abdicate_membership_V3(
+ parser_context_t* c, pd_cddserviceproviders_abdicate_membership_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_polymeshcommittee_set_vote_threshold_V1(
- parser_context_t* c, pd_polymeshcommittee_set_vote_threshold_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_polymeshcommittee_set_vote_threshold_V3(
+ parser_context_t* c, pd_polymeshcommittee_set_vote_threshold_V3_t* m)
{
CHECK_ERROR(_readu32(c, &m->n))
CHECK_ERROR(_readu32(c, &m->d))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_polymeshcommittee_set_release_coordinator_V1(
- parser_context_t* c, pd_polymeshcommittee_set_release_coordinator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_polymeshcommittee_set_release_coordinator_V3(
+ parser_context_t* c, pd_polymeshcommittee_set_release_coordinator_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->id))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_polymeshcommittee_set_expires_after_V1(
- parser_context_t* c, pd_polymeshcommittee_set_expires_after_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_polymeshcommittee_set_expires_after_V3(
+ parser_context_t* c, pd_polymeshcommittee_set_expires_after_V3_t* m)
{
- CHECK_ERROR(_readMaybeBlock_V1(c, &m->expiry))
+ CHECK_ERROR(_readMaybeBlockBlockNumber_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_polymeshcommittee_vote_or_propose_V1(
- parser_context_t* c, pd_polymeshcommittee_vote_or_propose_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_polymeshcommittee_vote_or_propose_V3(
+ parser_context_t* c, pd_polymeshcommittee_vote_or_propose_V3_t* m)
{
CHECK_ERROR(_readbool(c, &m->approve))
CHECK_ERROR(_readCall(c, &m->call))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_polymeshcommittee_vote_V1(
- parser_context_t* c, pd_polymeshcommittee_vote_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_polymeshcommittee_vote_V3(
+ parser_context_t* c, pd_polymeshcommittee_vote_V3_t* m)
{
CHECK_ERROR(_readHash(c, &m->proposal))
- CHECK_ERROR(_readProposalIndex_V1(c, &m->index))
+ CHECK_ERROR(_readProposalIndex_V3(c, &m->index))
CHECK_ERROR(_readbool(c, &m->approve))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_set_active_members_limit_V1(
- parser_context_t* c, pd_committeemembership_set_active_members_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_set_active_members_limit_V3(
+ parser_context_t* c, pd_committeemembership_set_active_members_limit_V3_t* m)
{
- CHECK_ERROR(_readMemberCount_V1(c, &m->limit))
+ CHECK_ERROR(_readMemberCount_V3(c, &m->limit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_disable_member_V1(
- parser_context_t* c, pd_committeemembership_disable_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_disable_member_V3(
+ parser_context_t* c, pd_committeemembership_disable_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->at))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->at))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_add_member_V1(
- parser_context_t* c, pd_committeemembership_add_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_add_member_V3(
+ parser_context_t* c, pd_committeemembership_add_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_remove_member_V1(
- parser_context_t* c, pd_committeemembership_remove_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_remove_member_V3(
+ parser_context_t* c, pd_committeemembership_remove_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_swap_member_V1(
- parser_context_t* c, pd_committeemembership_swap_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_swap_member_V3(
+ parser_context_t* c, pd_committeemembership_swap_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->remove))
- CHECK_ERROR(_readIdentityId_V1(c, &m->add))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->remove))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->add))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_reset_members_V1(
- parser_context_t* c, pd_committeemembership_reset_members_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_reset_members_V3(
+ parser_context_t* c, pd_committeemembership_reset_members_V3_t* m)
{
- CHECK_ERROR(_readVecIdentityId_V1(c, &m->members))
+ CHECK_ERROR(_readVecIdentityId_V3(c, &m->members))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_committeemembership_abdicate_membership_V1(
- parser_context_t* c, pd_committeemembership_abdicate_membership_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_committeemembership_abdicate_membership_V3(
+ parser_context_t* c, pd_committeemembership_abdicate_membership_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommittee_set_vote_threshold_V1(
- parser_context_t* c, pd_technicalcommittee_set_vote_threshold_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommittee_set_vote_threshold_V3(
+ parser_context_t* c, pd_technicalcommittee_set_vote_threshold_V3_t* m)
{
CHECK_ERROR(_readu32(c, &m->n))
CHECK_ERROR(_readu32(c, &m->d))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommittee_set_release_coordinator_V1(
- parser_context_t* c, pd_technicalcommittee_set_release_coordinator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommittee_set_release_coordinator_V3(
+ parser_context_t* c, pd_technicalcommittee_set_release_coordinator_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->id))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommittee_set_expires_after_V1(
- parser_context_t* c, pd_technicalcommittee_set_expires_after_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommittee_set_expires_after_V3(
+ parser_context_t* c, pd_technicalcommittee_set_expires_after_V3_t* m)
{
- CHECK_ERROR(_readMaybeBlock_V1(c, &m->expiry))
+ CHECK_ERROR(_readMaybeBlockBlockNumber_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommittee_vote_or_propose_V1(
- parser_context_t* c, pd_technicalcommittee_vote_or_propose_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommittee_vote_or_propose_V3(
+ parser_context_t* c, pd_technicalcommittee_vote_or_propose_V3_t* m)
{
CHECK_ERROR(_readbool(c, &m->approve))
CHECK_ERROR(_readCall(c, &m->call))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommittee_vote_V1(
- parser_context_t* c, pd_technicalcommittee_vote_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommittee_vote_V3(
+ parser_context_t* c, pd_technicalcommittee_vote_V3_t* m)
{
CHECK_ERROR(_readHash(c, &m->proposal))
- CHECK_ERROR(_readProposalIndex_V1(c, &m->index))
+ CHECK_ERROR(_readProposalIndex_V3(c, &m->index))
CHECK_ERROR(_readbool(c, &m->approve))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_set_active_members_limit_V1(
- parser_context_t* c, pd_technicalcommitteemembership_set_active_members_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_set_active_members_limit_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_set_active_members_limit_V3_t* m)
{
- CHECK_ERROR(_readMemberCount_V1(c, &m->limit))
+ CHECK_ERROR(_readMemberCount_V3(c, &m->limit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_disable_member_V1(
- parser_context_t* c, pd_technicalcommitteemembership_disable_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_disable_member_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_disable_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->at))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->at))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_add_member_V1(
- parser_context_t* c, pd_technicalcommitteemembership_add_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_add_member_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_add_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_remove_member_V1(
- parser_context_t* c, pd_technicalcommitteemembership_remove_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_remove_member_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_remove_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_swap_member_V1(
- parser_context_t* c, pd_technicalcommitteemembership_swap_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_swap_member_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_swap_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->remove))
- CHECK_ERROR(_readIdentityId_V1(c, &m->add))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->remove))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->add))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_reset_members_V1(
- parser_context_t* c, pd_technicalcommitteemembership_reset_members_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_reset_members_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_reset_members_V3_t* m)
{
- CHECK_ERROR(_readVecIdentityId_V1(c, &m->members))
+ CHECK_ERROR(_readVecIdentityId_V3(c, &m->members))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_abdicate_membership_V1(
- parser_context_t* c, pd_technicalcommitteemembership_abdicate_membership_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_technicalcommitteemembership_abdicate_membership_V3(
+ parser_context_t* c, pd_technicalcommitteemembership_abdicate_membership_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommittee_set_vote_threshold_V1(
- parser_context_t* c, pd_upgradecommittee_set_vote_threshold_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommittee_set_vote_threshold_V3(
+ parser_context_t* c, pd_upgradecommittee_set_vote_threshold_V3_t* m)
{
CHECK_ERROR(_readu32(c, &m->n))
CHECK_ERROR(_readu32(c, &m->d))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommittee_set_release_coordinator_V1(
- parser_context_t* c, pd_upgradecommittee_set_release_coordinator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommittee_set_release_coordinator_V3(
+ parser_context_t* c, pd_upgradecommittee_set_release_coordinator_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->id))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommittee_set_expires_after_V1(
- parser_context_t* c, pd_upgradecommittee_set_expires_after_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommittee_set_expires_after_V3(
+ parser_context_t* c, pd_upgradecommittee_set_expires_after_V3_t* m)
{
- CHECK_ERROR(_readMaybeBlock_V1(c, &m->expiry))
+ CHECK_ERROR(_readMaybeBlockBlockNumber_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommittee_vote_or_propose_V1(
- parser_context_t* c, pd_upgradecommittee_vote_or_propose_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommittee_vote_or_propose_V3(
+ parser_context_t* c, pd_upgradecommittee_vote_or_propose_V3_t* m)
{
CHECK_ERROR(_readbool(c, &m->approve))
CHECK_ERROR(_readCall(c, &m->call))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommittee_vote_V1(
- parser_context_t* c, pd_upgradecommittee_vote_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommittee_vote_V3(
+ parser_context_t* c, pd_upgradecommittee_vote_V3_t* m)
{
CHECK_ERROR(_readHash(c, &m->proposal))
- CHECK_ERROR(_readProposalIndex_V1(c, &m->index))
+ CHECK_ERROR(_readProposalIndex_V3(c, &m->index))
CHECK_ERROR(_readbool(c, &m->approve))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_set_active_members_limit_V1(
- parser_context_t* c, pd_upgradecommitteemembership_set_active_members_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_set_active_members_limit_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_set_active_members_limit_V3_t* m)
+{
+ CHECK_ERROR(_readMemberCount_V3(c, &m->limit))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_disable_member_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_disable_member_V3_t* m)
{
- CHECK_ERROR(_readMemberCount_V1(c, &m->limit))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->at))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_disable_member_V1(
- parser_context_t* c, pd_upgradecommitteemembership_disable_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_add_member_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_add_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expiry))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->at))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_add_member_V1(
- parser_context_t* c, pd_upgradecommitteemembership_add_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_remove_member_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_remove_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->who))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_remove_member_V1(
- parser_context_t* c, pd_upgradecommitteemembership_remove_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_swap_member_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_swap_member_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->who))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->remove))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->add))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_swap_member_V1(
- parser_context_t* c, pd_upgradecommitteemembership_swap_member_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_reset_members_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_reset_members_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->remove))
- CHECK_ERROR(_readIdentityId_V1(c, &m->add))
+ CHECK_ERROR(_readVecIdentityId_V3(c, &m->members))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_reset_members_V1(
- parser_context_t* c, pd_upgradecommitteemembership_reset_members_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_abdicate_membership_V3(
+ parser_context_t* c, pd_upgradecommitteemembership_abdicate_membership_V3_t* m)
{
- CHECK_ERROR(_readVecIdentityId_V1(c, &m->members))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_upgradecommitteemembership_abdicate_membership_V1(
- parser_context_t* c, pd_upgradecommitteemembership_abdicate_membership_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_multisig_make_multisig_secondary_V3(
+ parser_context_t* c, pd_multisig_make_multisig_secondary_V3_t* m)
{
+ CHECK_ERROR(_readAccountId_V3(c, &m->multisig))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_change_controller_V1(
- parser_context_t* c, pd_bridge_change_controller_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_change_controller_V3(
+ parser_context_t* c, pd_bridge_change_controller_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->controller))
+ CHECK_ERROR(_readAccountId_V3(c, &m->controller))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_change_admin_V1(
- parser_context_t* c, pd_bridge_change_admin_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_change_admin_V3(
+ parser_context_t* c, pd_bridge_change_admin_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->admin))
+ CHECK_ERROR(_readAccountId_V3(c, &m->admin))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_change_timelock_V1(
- parser_context_t* c, pd_bridge_change_timelock_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_change_timelock_V3(
+ parser_context_t* c, pd_bridge_change_timelock_V3_t* m)
{
CHECK_ERROR(_readBlockNumber(c, &m->timelock))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_freeze_V1(
- parser_context_t* c, pd_bridge_freeze_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_freeze_V3(
+ parser_context_t* c, pd_bridge_freeze_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_unfreeze_V1(
- parser_context_t* c, pd_bridge_unfreeze_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_unfreeze_V3(
+ parser_context_t* c, pd_bridge_unfreeze_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_change_bridge_limit_V1(
- parser_context_t* c, pd_bridge_change_bridge_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_change_bridge_limit_V3(
+ parser_context_t* c, pd_bridge_change_bridge_limit_V3_t* m)
{
CHECK_ERROR(_readBalance(c, &m->amount))
CHECK_ERROR(_readBlockNumber(c, &m->duration))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_change_bridge_exempted_V1(
- parser_context_t* c, pd_bridge_change_bridge_exempted_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_change_bridge_exempted_V3(
+ parser_context_t* c, pd_bridge_change_bridge_exempted_V3_t* m)
+{
+ CHECK_ERROR(_readVecTupleIdentityIdbool_V3(c, &m->exempted))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_bridge_force_handle_bridge_tx_V3(
+ parser_context_t* c, pd_bridge_force_handle_bridge_tx_V3_t* m)
{
- CHECK_ERROR(_readVecTupleIdentityIdbool_V1(c, &m->exempted))
+ CHECK_ERROR(_readBridgeTxAccountId_V3(c, &m->bridge_tx))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_force_handle_bridge_tx_V1(
- parser_context_t* c, pd_bridge_force_handle_bridge_tx_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_batch_propose_bridge_tx_V3(
+ parser_context_t* c, pd_bridge_batch_propose_bridge_tx_V3_t* m)
{
- CHECK_ERROR(_readBridgeTx_V1(c, &m->bridge_tx))
+ CHECK_ERROR(_readVecBridgeTxAccountId_V3(c, &m->bridge_txs))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_batch_propose_bridge_tx_V1(
- parser_context_t* c, pd_bridge_batch_propose_bridge_tx_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_propose_bridge_tx_V3(
+ parser_context_t* c, pd_bridge_propose_bridge_tx_V3_t* m)
{
- CHECK_ERROR(_readVecBridgeTx_V1(c, &m->bridge_txs))
+ CHECK_ERROR(_readBridgeTxAccountId_V3(c, &m->bridge_tx))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_propose_bridge_tx_V1(
- parser_context_t* c, pd_bridge_propose_bridge_tx_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_handle_bridge_tx_V3(
+ parser_context_t* c, pd_bridge_handle_bridge_tx_V3_t* m)
{
- CHECK_ERROR(_readBridgeTx_V1(c, &m->bridge_tx))
+ CHECK_ERROR(_readBridgeTxAccountId_V3(c, &m->bridge_tx))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_handle_bridge_tx_V1(
- parser_context_t* c, pd_bridge_handle_bridge_tx_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_freeze_txs_V3(
+ parser_context_t* c, pd_bridge_freeze_txs_V3_t* m)
{
- CHECK_ERROR(_readBridgeTx_V1(c, &m->bridge_tx))
+ CHECK_ERROR(_readVecBridgeTxAccountId_V3(c, &m->bridge_txs))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_freeze_txs_V1(
- parser_context_t* c, pd_bridge_freeze_txs_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_unfreeze_txs_V3(
+ parser_context_t* c, pd_bridge_unfreeze_txs_V3_t* m)
{
- CHECK_ERROR(_readVecBridgeTx_V1(c, &m->bridge_txs))
+ CHECK_ERROR(_readVecBridgeTxAccountId_V3(c, &m->bridge_txs))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_unfreeze_txs_V1(
- parser_context_t* c, pd_bridge_unfreeze_txs_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_handle_scheduled_bridge_tx_V3(
+ parser_context_t* c, pd_bridge_handle_scheduled_bridge_tx_V3_t* m)
{
- CHECK_ERROR(_readVecBridgeTx_V1(c, &m->bridge_txs))
+ CHECK_ERROR(_readBridgeTxAccountId_V3(c, &m->bridge_tx))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_handle_scheduled_bridge_tx_V1(
- parser_context_t* c, pd_bridge_handle_scheduled_bridge_tx_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_add_freeze_admin_V3(
+ parser_context_t* c, pd_bridge_add_freeze_admin_V3_t* m)
{
- CHECK_ERROR(_readBridgeTx_V1(c, &m->bridge_tx))
+ CHECK_ERROR(_readAccountId_V3(c, &m->freeze_admin))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_add_freeze_admin_V1(
- parser_context_t* c, pd_bridge_add_freeze_admin_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_remove_freeze_admin_V3(
+ parser_context_t* c, pd_bridge_remove_freeze_admin_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->freeze_admin))
+ CHECK_ERROR(_readAccountId_V3(c, &m->freeze_admin))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_bridge_remove_freeze_admin_V1(
- parser_context_t* c, pd_bridge_remove_freeze_admin_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_bridge_remove_txs_V3(
+ parser_context_t* c, pd_bridge_remove_txs_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->freeze_admin))
+ CHECK_ERROR(_readVecBridgeTxAccountId_V3(c, &m->bridge_txs))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_validator_count_V1(
- parser_context_t* c, pd_staking_set_validator_count_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_validator_count_V3(
+ parser_context_t* c, pd_staking_set_validator_count_V3_t* m)
{
CHECK_ERROR(_readCompactu32(c, &m->new_))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_increase_validator_count_V1(
- parser_context_t* c, pd_staking_increase_validator_count_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_increase_validator_count_V3(
+ parser_context_t* c, pd_staking_increase_validator_count_V3_t* m)
{
CHECK_ERROR(_readCompactu32(c, &m->additional))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_add_permissioned_validator_V1(
- parser_context_t* c, pd_staking_add_permissioned_validator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_add_permissioned_validator_V3(
+ parser_context_t* c, pd_staking_add_permissioned_validator_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->identity))
CHECK_ERROR(_readOptionu32(c, &m->intended_count))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_remove_permissioned_validator_V1(
- parser_context_t* c, pd_staking_remove_permissioned_validator_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_remove_permissioned_validator_V3(
+ parser_context_t* c, pd_staking_remove_permissioned_validator_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->identity))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_validate_cdd_expiry_nominators_V1(
- parser_context_t* c, pd_staking_validate_cdd_expiry_nominators_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_validate_cdd_expiry_nominators_V3(
+ parser_context_t* c, pd_staking_validate_cdd_expiry_nominators_V3_t* m)
{
- CHECK_ERROR(_readVecAccountId_V1(c, &m->targets))
+ CHECK_ERROR(_readVecAccountId_V3(c, &m->targets))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_commission_cap_V1(
- parser_context_t* c, pd_staking_set_commission_cap_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_commission_cap_V3(
+ parser_context_t* c, pd_staking_set_commission_cap_V3_t* m)
{
- CHECK_ERROR(_readPerbill_V1(c, &m->new_cap))
+ CHECK_ERROR(_readPerbill_V3(c, &m->new_cap))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_min_bond_threshold_V1(
- parser_context_t* c, pd_staking_set_min_bond_threshold_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_min_bond_threshold_V3(
+ parser_context_t* c, pd_staking_set_min_bond_threshold_V3_t* m)
{
- CHECK_ERROR(_readBalanceOf(c, &m->new_value))
+ CHECK_ERROR(_readBalance(c, &m->new_value))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_force_no_eras_V1(
- parser_context_t* c, pd_staking_force_no_eras_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_force_no_eras_V3(
+ parser_context_t* c, pd_staking_force_no_eras_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_force_new_era_V1(
- parser_context_t* c, pd_staking_force_new_era_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_force_new_era_V3(
+ parser_context_t* c, pd_staking_force_new_era_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_invulnerables_V1(
- parser_context_t* c, pd_staking_set_invulnerables_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_invulnerables_V3(
+ parser_context_t* c, pd_staking_set_invulnerables_V3_t* m)
{
- CHECK_ERROR(_readVecAccountId_V1(c, &m->invulnerables))
+ CHECK_ERROR(_readVecAccountId_V3(c, &m->invulnerables))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_force_unstake_V1(
- parser_context_t* c, pd_staking_force_unstake_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_force_unstake_V3(
+ parser_context_t* c, pd_staking_force_unstake_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->stash))
+ CHECK_ERROR(_readAccountId_V3(c, &m->stash))
CHECK_ERROR(_readu32(c, &m->num_slashing_spans))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_force_new_era_always_V1(
- parser_context_t* c, pd_staking_force_new_era_always_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_force_new_era_always_V3(
+ parser_context_t* c, pd_staking_force_new_era_always_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_cancel_deferred_slash_V1(
- parser_context_t* c, pd_staking_cancel_deferred_slash_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_cancel_deferred_slash_V3(
+ parser_context_t* c, pd_staking_cancel_deferred_slash_V3_t* m)
{
- CHECK_ERROR(_readEraIndex_V1(c, &m->era))
+ CHECK_ERROR(_readEraIndex_V3(c, &m->era))
CHECK_ERROR(_readVecu32(c, &m->slash_indices))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_payout_stakers_V1(
- parser_context_t* c, pd_staking_payout_stakers_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_payout_stakers_V3(
+ parser_context_t* c, pd_staking_payout_stakers_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->validator_stash))
- CHECK_ERROR(_readEraIndex_V1(c, &m->era))
+ CHECK_ERROR(_readAccountId_V3(c, &m->validator_stash))
+ CHECK_ERROR(_readEraIndex_V3(c, &m->era))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_set_history_depth_V1(
- parser_context_t* c, pd_staking_set_history_depth_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_set_history_depth_V3(
+ parser_context_t* c, pd_staking_set_history_depth_V3_t* m)
{
- CHECK_ERROR(_readCompactEraIndex_V1(c, &m->new_history_depth))
+ CHECK_ERROR(_readCompactu32(c, &m->new_history_depth))
CHECK_ERROR(_readCompactu32(c, &m->_era_items_deleted))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_reap_stash_V1(
- parser_context_t* c, pd_staking_reap_stash_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_reap_stash_V3(
+ parser_context_t* c, pd_staking_reap_stash_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->stash))
+ CHECK_ERROR(_readAccountId_V3(c, &m->stash))
CHECK_ERROR(_readu32(c, &m->num_slashing_spans))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_payout_stakers_by_system_V1(
- parser_context_t* c, pd_staking_payout_stakers_by_system_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_payout_stakers_by_system_V3(
+ parser_context_t* c, pd_staking_payout_stakers_by_system_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->validator_stash))
- CHECK_ERROR(_readEraIndex_V1(c, &m->era))
+ CHECK_ERROR(_readAccountId_V3(c, &m->validator_stash))
+ CHECK_ERROR(_readEraIndex_V3(c, &m->era))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_change_slashing_allowed_for_V1(
- parser_context_t* c, pd_staking_change_slashing_allowed_for_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_change_slashing_allowed_for_V3(
+ parser_context_t* c, pd_staking_change_slashing_allowed_for_V3_t* m)
{
- CHECK_ERROR(_readSlashingSwitch_V1(c, &m->slashing_switch))
+ CHECK_ERROR(_readSlashingSwitch_V3(c, &m->slashing_switch))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_staking_update_permissioned_validator_intended_count_V1(
- parser_context_t* c, pd_staking_update_permissioned_validator_intended_count_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_staking_update_permissioned_validator_intended_count_V3(
+ parser_context_t* c, pd_staking_update_permissioned_validator_intended_count_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->identity))
CHECK_ERROR(_readu32(c, &m->new_intended_count))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_session_set_keys_V1(
- parser_context_t* c, pd_session_set_keys_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_session_set_keys_V3(
+ parser_context_t* c, pd_session_set_keys_V3_t* m)
{
- CHECK_ERROR(_readKeys_V1(c, &m->keys))
+ CHECK_ERROR(_readKeys_V3(c, &m->keys))
CHECK_ERROR(_readBytes(c, &m->proof))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_session_purge_keys_V1(
- parser_context_t* c, pd_session_purge_keys_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_session_purge_keys_V3(
+ parser_context_t* c, pd_session_purge_keys_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_grandpa_note_stalled_V1(
- parser_context_t* c, pd_grandpa_note_stalled_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_grandpa_note_stalled_V3(
+ parser_context_t* c, pd_grandpa_note_stalled_V3_t* m)
{
CHECK_ERROR(_readBlockNumber(c, &m->delay))
CHECK_ERROR(_readBlockNumber(c, &m->best_finalized_block_number))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_sudo_sudo_as_V1(
- parser_context_t* c, pd_sudo_sudo_as_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_sudo_sudo_as_V3(
+ parser_context_t* c, pd_sudo_sudo_as_V3_t* m)
{
- CHECK_ERROR(_readLookupSource_V1(c, &m->who))
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->who))
CHECK_ERROR(_readCall(c, &m->call))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_register_ticker_V1(
- parser_context_t* c, pd_asset_register_ticker_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_register_ticker_V3(
+ parser_context_t* c, pd_asset_register_ticker_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_accept_ticker_transfer_V1(
- parser_context_t* c, pd_asset_accept_ticker_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_accept_ticker_transfer_V3(
+ parser_context_t* c, pd_asset_accept_ticker_transfer_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_accept_asset_ownership_transfer_V1(
- parser_context_t* c, pd_asset_accept_asset_ownership_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_accept_asset_ownership_transfer_V3(
+ parser_context_t* c, pd_asset_accept_asset_ownership_transfer_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_create_asset_V1(
- parser_context_t* c, pd_asset_create_asset_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_create_asset_V3(
+ parser_context_t* c, pd_asset_create_asset_V3_t* m)
{
- CHECK_ERROR(_readAssetName_V1(c, &m->name))
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readAssetName_V3(c, &m->name))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
CHECK_ERROR(_readbool(c, &m->divisible))
- CHECK_ERROR(_readAssetType_V1(c, &m->asset_type))
- CHECK_ERROR(_readVecAssetIdentifier_V1(c, &m->identifiers))
- CHECK_ERROR(_readOptionFundingRoundName_V1(c, &m->funding_round))
+ CHECK_ERROR(_readAssetType_V3(c, &m->asset_type))
+ CHECK_ERROR(_readVecAssetIdentifier_V3(c, &m->identifiers))
+ CHECK_ERROR(_readOptionFundingRoundName_V3(c, &m->funding_round))
CHECK_ERROR(_readbool(c, &m->disable_iu))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_freeze_V1(
- parser_context_t* c, pd_asset_freeze_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_freeze_V3(
+ parser_context_t* c, pd_asset_freeze_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_unfreeze_V1(
- parser_context_t* c, pd_asset_unfreeze_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_unfreeze_V3(
+ parser_context_t* c, pd_asset_unfreeze_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_rename_asset_V1(
- parser_context_t* c, pd_asset_rename_asset_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_rename_asset_V3(
+ parser_context_t* c, pd_asset_rename_asset_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readAssetName_V1(c, &m->name))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readAssetName_V3(c, &m->name))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_issue_V1(
- parser_context_t* c, pd_asset_issue_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_issue_V3(
+ parser_context_t* c, pd_asset_issue_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
CHECK_ERROR(_readBalanceNoSymbol(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_redeem_V1(
- parser_context_t* c, pd_asset_redeem_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_redeem_V3(
+ parser_context_t* c, pd_asset_redeem_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
CHECK_ERROR(_readBalanceNoSymbol(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_make_divisible_V1(
- parser_context_t* c, pd_asset_make_divisible_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_make_divisible_V3(
+ parser_context_t* c, pd_asset_make_divisible_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_add_documents_V1(
- parser_context_t* c, pd_asset_add_documents_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_add_documents_V3(
+ parser_context_t* c, pd_asset_add_documents_V3_t* m)
{
- CHECK_ERROR(_readVecDocument_V1(c, &m->docs))
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readVecDocument_V3(c, &m->docs))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_remove_documents_V1(
- parser_context_t* c, pd_asset_remove_documents_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_remove_documents_V3(
+ parser_context_t* c, pd_asset_remove_documents_V3_t* m)
{
- CHECK_ERROR(_readVecDocumentId_V1(c, &m->ids))
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readVecDocumentId_V3(c, &m->ids))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_set_funding_round_V1(
- parser_context_t* c, pd_asset_set_funding_round_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_set_funding_round_V3(
+ parser_context_t* c, pd_asset_set_funding_round_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readFundingRoundName_V1(c, &m->name))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readFundingRoundName_V3(c, &m->name))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_update_identifiers_V1(
- parser_context_t* c, pd_asset_update_identifiers_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_update_identifiers_V3(
+ parser_context_t* c, pd_asset_update_identifiers_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readVecAssetIdentifier_V1(c, &m->identifiers))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readVecAssetIdentifier_V3(c, &m->identifiers))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_claim_classic_ticker_V1(
- parser_context_t* c, pd_asset_claim_classic_ticker_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_claim_classic_ticker_V3(
+ parser_context_t* c, pd_asset_claim_classic_ticker_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readEcdsaSignature_V1(c, &m->ethereum_signature))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readEcdsaSignature_V3(c, &m->ethereum_signature))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_reserve_classic_ticker_V1(
- parser_context_t* c, pd_asset_reserve_classic_ticker_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_reserve_classic_ticker_V3(
+ parser_context_t* c, pd_asset_reserve_classic_ticker_V3_t* m)
{
- CHECK_ERROR(_readClassicTickerImport_V1(c, &m->classic_ticker_import))
- CHECK_ERROR(_readIdentityId_V1(c, &m->contract_did))
- CHECK_ERROR(_readTickerRegistrationConfig_V1(c, &m->config))
+ CHECK_ERROR(_readClassicTickerImport_V3(c, &m->classic_ticker_import))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->contract_did))
+ CHECK_ERROR(_readTickerRegistrationConfigMoment_V3(c, &m->config))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_controller_transfer_V1(
- parser_context_t* c, pd_asset_controller_transfer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_controller_transfer_V3(
+ parser_context_t* c, pd_asset_controller_transfer_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
CHECK_ERROR(_readBalanceNoSymbol(c, &m->amount))
- CHECK_ERROR(_readPortfolioId_V1(c, &m->from_portfolio))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->from_portfolio))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_asset_register_custom_asset_type_V1(
- parser_context_t* c, pd_asset_register_custom_asset_type_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_register_custom_asset_type_V3(
+ parser_context_t* c, pd_asset_register_custom_asset_type_V3_t* m)
{
- CHECK_ERROR(_readBytes(c, &m->ty))
+ CHECK_ERROR(_readVecu8(c, &m->ty))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_capitaldistribution_distribute_V1(
- parser_context_t* c, pd_capitaldistribution_distribute_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_create_asset_with_custom_type_V3(
+ parser_context_t* c, pd_asset_create_asset_with_custom_type_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readOptionPortfolioNumber_V1(c, &m->portfolio))
- CHECK_ERROR(_readTicker_V1(c, &m->currency))
- CHECK_ERROR(_readBalance(c, &m->per_share))
- CHECK_ERROR(_readBalance(c, &m->amount))
- CHECK_ERROR(_readMoment_V1(c, &m->payment_at))
- CHECK_ERROR(_readOptionMoment_V1(c, &m->expires_at))
+ CHECK_ERROR(_readAssetName_V3(c, &m->name))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readbool(c, &m->divisible))
+ CHECK_ERROR(_readVecu8(c, &m->custom_asset_type))
+ CHECK_ERROR(_readVecAssetIdentifier_V3(c, &m->identifiers))
+ CHECK_ERROR(_readOptionFundingRoundName_V3(c, &m->funding_round))
+ CHECK_ERROR(_readbool(c, &m->disable_iu))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_capitaldistribution_claim_V1(
- parser_context_t* c, pd_capitaldistribution_claim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_set_asset_metadata_V3(
+ parser_context_t* c, pd_asset_set_asset_metadata_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readAssetMetadataKey_V3(c, &m->key))
+ CHECK_ERROR(_readAssetMetadataValue_V3(c, &m->value))
+ CHECK_ERROR(_readOptionAssetMetadataValueDetailMoment_V3(c, &m->detail))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_capitaldistribution_push_benefit_V1(
- parser_context_t* c, pd_capitaldistribution_push_benefit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_set_asset_metadata_details_V3(
+ parser_context_t* c, pd_asset_set_asset_metadata_details_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readIdentityId_V1(c, &m->holder))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readAssetMetadataKey_V3(c, &m->key))
+ CHECK_ERROR(_readAssetMetadataValueDetailMoment_V3(c, &m->detail))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_capitaldistribution_reclaim_V1(
- parser_context_t* c, pd_capitaldistribution_reclaim_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_register_and_set_local_asset_metadata_V3(
+ parser_context_t* c, pd_asset_register_and_set_local_asset_metadata_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readAssetMetadataName_V3(c, &m->name))
+ CHECK_ERROR(_readAssetMetadataSpec_V3(c, &m->spec))
+ CHECK_ERROR(_readAssetMetadataValue_V3(c, &m->value))
+ CHECK_ERROR(_readOptionAssetMetadataValueDetailMoment_V3(c, &m->detail))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_capitaldistribution_remove_distribution_V1(
- parser_context_t* c, pd_capitaldistribution_remove_distribution_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_register_asset_metadata_local_type_V3(
+ parser_context_t* c, pd_asset_register_asset_metadata_local_type_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readAssetMetadataName_V3(c, &m->name))
+ CHECK_ERROR(_readAssetMetadataSpec_V3(c, &m->spec))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_checkpoint_create_checkpoint_V1(
- parser_context_t* c, pd_checkpoint_create_checkpoint_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_asset_register_asset_metadata_global_type_V3(
+ parser_context_t* c, pd_asset_register_asset_metadata_global_type_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readAssetMetadataName_V3(c, &m->name))
+ CHECK_ERROR(_readAssetMetadataSpec_V3(c, &m->spec))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_checkpoint_set_schedules_max_complexity_V1(
- parser_context_t* c, pd_checkpoint_set_schedules_max_complexity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_capitaldistribution_distribute_V3(
+ parser_context_t* c, pd_capitaldistribution_distribute_V3_t* m)
{
- CHECK_ERROR(_readu64(c, &m->max_complexity))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readOptionPortfolioNumber_V3(c, &m->portfolio))
+ CHECK_ERROR(_readTicker_V3(c, &m->currency))
+ CHECK_ERROR(_readBalance(c, &m->per_share))
+ CHECK_ERROR(_readBalance(c, &m->amount))
+ CHECK_ERROR(_readMoment_V3(c, &m->payment_at))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expires_at))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_checkpoint_create_schedule_V1(
- parser_context_t* c, pd_checkpoint_create_schedule_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_capitaldistribution_claim_V3(
+ parser_context_t* c, pd_capitaldistribution_claim_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readScheduleSpec_V1(c, &m->schedule))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_checkpoint_remove_schedule_V1(
- parser_context_t* c, pd_checkpoint_remove_schedule_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_capitaldistribution_push_benefit_V3(
+ parser_context_t* c, pd_capitaldistribution_push_benefit_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readScheduleId_V1(c, &m->id))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->holder))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_add_compliance_requirement_V1(
- parser_context_t* c, pd_compliancemanager_add_compliance_requirement_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_capitaldistribution_reclaim_V3(
+ parser_context_t* c, pd_capitaldistribution_reclaim_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readVecCondition_V1(c, &m->sender_conditions))
- CHECK_ERROR(_readVecCondition_V1(c, &m->receiver_conditions))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_remove_compliance_requirement_V1(
- parser_context_t* c, pd_compliancemanager_remove_compliance_requirement_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_capitaldistribution_remove_distribution_V3(
+ parser_context_t* c, pd_capitaldistribution_remove_distribution_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readu32(c, &m->id))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_checkpoint_create_checkpoint_V3(
+ parser_context_t* c, pd_checkpoint_create_checkpoint_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_checkpoint_set_schedules_max_complexity_V3(
+ parser_context_t* c, pd_checkpoint_set_schedules_max_complexity_V3_t* m)
+{
+ CHECK_ERROR(_readu64(c, &m->max_complexity))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_checkpoint_create_schedule_V3(
+ parser_context_t* c, pd_checkpoint_create_schedule_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readScheduleSpec_V3(c, &m->schedule))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_checkpoint_remove_schedule_V3(
+ parser_context_t* c, pd_checkpoint_remove_schedule_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readScheduleId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_replace_asset_compliance_V1(
- parser_context_t* c, pd_compliancemanager_replace_asset_compliance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_add_compliance_requirement_V3(
+ parser_context_t* c, pd_compliancemanager_add_compliance_requirement_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readVecComplianceRequirement_V1(c, &m->asset_compliance))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readVecCondition_V3(c, &m->sender_conditions))
+ CHECK_ERROR(_readVecCondition_V3(c, &m->receiver_conditions))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_reset_asset_compliance_V1(
- parser_context_t* c, pd_compliancemanager_reset_asset_compliance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_remove_compliance_requirement_V3(
+ parser_context_t* c, pd_compliancemanager_remove_compliance_requirement_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readu32(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_pause_asset_compliance_V1(
- parser_context_t* c, pd_compliancemanager_pause_asset_compliance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_reset_asset_compliance_V3(
+ parser_context_t* c, pd_compliancemanager_reset_asset_compliance_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_resume_asset_compliance_V1(
- parser_context_t* c, pd_compliancemanager_resume_asset_compliance_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_pause_asset_compliance_V3(
+ parser_context_t* c, pd_compliancemanager_pause_asset_compliance_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_add_default_trusted_claim_issuer_V1(
- parser_context_t* c, pd_compliancemanager_add_default_trusted_claim_issuer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_resume_asset_compliance_V3(
+ parser_context_t* c, pd_compliancemanager_resume_asset_compliance_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTrustedIssuer_V1(c, &m->issuer))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_remove_default_trusted_claim_issuer_V1(
- parser_context_t* c, pd_compliancemanager_remove_default_trusted_claim_issuer_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_add_default_trusted_claim_issuer_V3(
+ parser_context_t* c, pd_compliancemanager_add_default_trusted_claim_issuer_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readIdentityId_V1(c, &m->issuer))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readTrustedIssuer_V3(c, &m->issuer))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_compliancemanager_change_compliance_requirement_V1(
- parser_context_t* c, pd_compliancemanager_change_compliance_requirement_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_compliancemanager_remove_default_trusted_claim_issuer_V3(
+ parser_context_t* c, pd_compliancemanager_remove_default_trusted_claim_issuer_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readComplianceRequirement_V1(c, &m->new_req))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->issuer))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_set_max_details_length_V1(
- parser_context_t* c, pd_corporateaction_set_max_details_length_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_set_max_details_length_V3(
+ parser_context_t* c, pd_corporateaction_set_max_details_length_V3_t* m)
{
CHECK_ERROR(_readu32(c, &m->length))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_set_default_targets_V1(
- parser_context_t* c, pd_corporateaction_set_default_targets_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_set_default_targets_V3(
+ parser_context_t* c, pd_corporateaction_set_default_targets_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTargetIdentities_V1(c, &m->targets))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readTargetIdentities_V3(c, &m->targets))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_set_default_withholding_tax_V1(
- parser_context_t* c, pd_corporateaction_set_default_withholding_tax_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_set_default_withholding_tax_V3(
+ parser_context_t* c, pd_corporateaction_set_default_withholding_tax_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTax_V1(c, &m->tax))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readTax_V3(c, &m->tax))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_set_did_withholding_tax_V1(
- parser_context_t* c, pd_corporateaction_set_did_withholding_tax_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_set_did_withholding_tax_V3(
+ parser_context_t* c, pd_corporateaction_set_did_withholding_tax_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readIdentityId_V1(c, &m->taxed_did))
- CHECK_ERROR(_readOptionTax_V1(c, &m->tax))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->taxed_did))
+ CHECK_ERROR(_readOptionTax_V3(c, &m->tax))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_initiate_corporate_action_V1(
- parser_context_t* c, pd_corporateaction_initiate_corporate_action_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_initiate_corporate_action_V3(
+ parser_context_t* c, pd_corporateaction_initiate_corporate_action_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readCAKind_V1(c, &m->kind))
- CHECK_ERROR(_readMoment_V1(c, &m->decl_date))
- CHECK_ERROR(_readOptionRecordDateSpec_V1(c, &m->record_date))
- CHECK_ERROR(_readCADetails_V1(c, &m->details))
- CHECK_ERROR(_readOptionTargetIdentities_V1(c, &m->targets))
- CHECK_ERROR(_readOptionTax_V1(c, &m->default_withholding_tax))
- CHECK_ERROR(_readOptionVecTupleIdentityIdTax_V1(c, &m->withholding_tax))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readCAKind_V3(c, &m->kind))
+ CHECK_ERROR(_readMoment_V3(c, &m->decl_date))
+ CHECK_ERROR(_readOptionRecordDateSpec_V3(c, &m->record_date))
+ CHECK_ERROR(_readCADetails_V3(c, &m->details))
+ CHECK_ERROR(_readOptionTargetIdentities_V3(c, &m->targets))
+ CHECK_ERROR(_readOptionTax_V3(c, &m->default_withholding_tax))
+ CHECK_ERROR(_readOptionVecTupleIdentityIdTax_V3(c, &m->withholding_tax))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_link_ca_doc_V1(
- parser_context_t* c, pd_corporateaction_link_ca_doc_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_link_ca_doc_V3(
+ parser_context_t* c, pd_corporateaction_link_ca_doc_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->id))
- CHECK_ERROR(_readVecDocumentId_V1(c, &m->docs))
+ CHECK_ERROR(_readCAId_V3(c, &m->id))
+ CHECK_ERROR(_readVecDocumentId_V3(c, &m->docs))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_remove_ca_V1(
- parser_context_t* c, pd_corporateaction_remove_ca_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_remove_ca_V3(
+ parser_context_t* c, pd_corporateaction_remove_ca_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateaction_change_record_date_V1(
- parser_context_t* c, pd_corporateaction_change_record_date_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateaction_change_record_date_V3(
+ parser_context_t* c, pd_corporateaction_change_record_date_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readOptionRecordDateSpec_V1(c, &m->record_date))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readOptionRecordDateSpec_V3(c, &m->record_date))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateballot_attach_ballot_V1(
- parser_context_t* c, pd_corporateballot_attach_ballot_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateballot_attach_ballot_V3(
+ parser_context_t* c, pd_corporateballot_attach_ballot_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readBallotTimeRange_V1(c, &m->range))
- CHECK_ERROR(_readBallotMeta_V1(c, &m->meta))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readBallotTimeRange_V3(c, &m->range))
+ CHECK_ERROR(_readBallotMeta_V3(c, &m->meta))
CHECK_ERROR(_readbool(c, &m->rcv))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateballot_vote_V1(
- parser_context_t* c, pd_corporateballot_vote_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateballot_vote_V3(
+ parser_context_t* c, pd_corporateballot_vote_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readVecBallotVote_V1(c, &m->votes))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readVecBallotVote_V3(c, &m->votes))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateballot_change_end_V1(
- parser_context_t* c, pd_corporateballot_change_end_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateballot_change_end_V3(
+ parser_context_t* c, pd_corporateballot_change_end_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readMoment_V1(c, &m->end))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readMoment_V3(c, &m->end))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateballot_change_meta_V1(
- parser_context_t* c, pd_corporateballot_change_meta_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateballot_change_meta_V3(
+ parser_context_t* c, pd_corporateballot_change_meta_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
- CHECK_ERROR(_readBallotMeta_V1(c, &m->meta))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
+ CHECK_ERROR(_readBallotMeta_V3(c, &m->meta))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateballot_change_rcv_V1(
- parser_context_t* c, pd_corporateballot_change_rcv_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateballot_change_rcv_V3(
+ parser_context_t* c, pd_corporateballot_change_rcv_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
CHECK_ERROR(_readbool(c, &m->rcv))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_corporateballot_remove_ballot_V1(
- parser_context_t* c, pd_corporateballot_remove_ballot_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_corporateballot_remove_ballot_V3(
+ parser_context_t* c, pd_corporateballot_remove_ballot_V3_t* m)
{
- CHECK_ERROR(_readCAId_V1(c, &m->ca_id))
+ CHECK_ERROR(_readCAId_V3(c, &m->ca_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_set_prune_historical_pips_V1(
- parser_context_t* c, pd_pips_set_prune_historical_pips_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_set_prune_historical_pips_V3(
+ parser_context_t* c, pd_pips_set_prune_historical_pips_V3_t* m)
{
CHECK_ERROR(_readbool(c, &m->prune))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_set_min_proposal_deposit_V1(
- parser_context_t* c, pd_pips_set_min_proposal_deposit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_set_min_proposal_deposit_V3(
+ parser_context_t* c, pd_pips_set_min_proposal_deposit_V3_t* m)
{
CHECK_ERROR(_readBalance(c, &m->deposit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_set_default_enactment_period_V1(
- parser_context_t* c, pd_pips_set_default_enactment_period_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_set_default_enactment_period_V3(
+ parser_context_t* c, pd_pips_set_default_enactment_period_V3_t* m)
{
CHECK_ERROR(_readBlockNumber(c, &m->duration))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_set_pending_pip_expiry_V1(
- parser_context_t* c, pd_pips_set_pending_pip_expiry_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_set_pending_pip_expiry_V3(
+ parser_context_t* c, pd_pips_set_pending_pip_expiry_V3_t* m)
{
- CHECK_ERROR(_readMaybeBlock_V1(c, &m->expiry))
+ CHECK_ERROR(_readMaybeBlockBlockNumber_V3(c, &m->expiry))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_set_max_pip_skip_count_V1(
- parser_context_t* c, pd_pips_set_max_pip_skip_count_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_set_max_pip_skip_count_V3(
+ parser_context_t* c, pd_pips_set_max_pip_skip_count_V3_t* m)
{
- CHECK_ERROR(_readSkippedCount_V1(c, &m->max))
+ CHECK_ERROR(_readSkippedCount_V3(c, &m->max))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_set_active_pip_limit_V1(
- parser_context_t* c, pd_pips_set_active_pip_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_set_active_pip_limit_V3(
+ parser_context_t* c, pd_pips_set_active_pip_limit_V3_t* m)
{
CHECK_ERROR(_readu32(c, &m->limit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_approve_committee_proposal_V1(
- parser_context_t* c, pd_pips_approve_committee_proposal_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_approve_committee_proposal_V3(
+ parser_context_t* c, pd_pips_approve_committee_proposal_V3_t* m)
{
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_reject_proposal_V1(
- parser_context_t* c, pd_pips_reject_proposal_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_reject_proposal_V3(
+ parser_context_t* c, pd_pips_reject_proposal_V3_t* m)
{
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_prune_proposal_V1(
- parser_context_t* c, pd_pips_prune_proposal_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_prune_proposal_V3(
+ parser_context_t* c, pd_pips_prune_proposal_V3_t* m)
{
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_reschedule_execution_V1(
- parser_context_t* c, pd_pips_reschedule_execution_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_reschedule_execution_V3(
+ parser_context_t* c, pd_pips_reschedule_execution_V3_t* m)
{
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
CHECK_ERROR(_readOptionBlockNumber(c, &m->until))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_clear_snapshot_V1(
- parser_context_t* c, pd_pips_clear_snapshot_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_clear_snapshot_V3(
+ parser_context_t* c, pd_pips_clear_snapshot_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_snapshot_V1(
- parser_context_t* c, pd_pips_snapshot_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_snapshot_V3(
+ parser_context_t* c, pd_pips_snapshot_V3_t* m)
{
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_enact_snapshot_results_V1(
- parser_context_t* c, pd_pips_enact_snapshot_results_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_enact_snapshot_results_V3(
+ parser_context_t* c, pd_pips_enact_snapshot_results_V3_t* m)
{
- CHECK_ERROR(_readVecTuplePipIdSnapshotResult_V1(c, &m->results))
+ CHECK_ERROR(_readVecTuplePipIdSnapshotResult_V3(c, &m->results))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_execute_scheduled_pip_V1(
- parser_context_t* c, pd_pips_execute_scheduled_pip_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_execute_scheduled_pip_V3(
+ parser_context_t* c, pd_pips_execute_scheduled_pip_V3_t* m)
{
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_pips_expire_scheduled_pip_V1(
- parser_context_t* c, pd_pips_expire_scheduled_pip_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_pips_expire_scheduled_pip_V3(
+ parser_context_t* c, pd_pips_expire_scheduled_pip_V3_t* m)
{
- CHECK_ERROR(_readIdentityId_V1(c, &m->did))
- CHECK_ERROR(_readPipId_V1(c, &m->id))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->did))
+ CHECK_ERROR(_readPipId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_portfolio_create_portfolio_V1(
- parser_context_t* c, pd_portfolio_create_portfolio_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_portfolio_create_portfolio_V3(
+ parser_context_t* c, pd_portfolio_create_portfolio_V3_t* m)
{
- CHECK_ERROR(_readPortfolioName_V1(c, &m->name))
+ CHECK_ERROR(_readPortfolioName_V3(c, &m->name))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_portfolio_delete_portfolio_V1(
- parser_context_t* c, pd_portfolio_delete_portfolio_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_portfolio_delete_portfolio_V3(
+ parser_context_t* c, pd_portfolio_delete_portfolio_V3_t* m)
{
- CHECK_ERROR(_readPortfolioNumber_V1(c, &m->num))
+ CHECK_ERROR(_readPortfolioNumber_V3(c, &m->num))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_portfolio_move_portfolio_funds_V1(
- parser_context_t* c, pd_portfolio_move_portfolio_funds_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_portfolio_move_portfolio_funds_V3(
+ parser_context_t* c, pd_portfolio_move_portfolio_funds_V3_t* m)
{
- CHECK_ERROR(_readPortfolioId_V1(c, &m->from))
- CHECK_ERROR(_readPortfolioId_V1(c, &m->to))
- CHECK_ERROR(_readVecMovePortfolioItem_V1(c, &m->items))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->from))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->to))
+ CHECK_ERROR(_readVecMovePortfolioItem_V3(c, &m->items))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_portfolio_rename_portfolio_V1(
- parser_context_t* c, pd_portfolio_rename_portfolio_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_portfolio_rename_portfolio_V3(
+ parser_context_t* c, pd_portfolio_rename_portfolio_V3_t* m)
{
- CHECK_ERROR(_readPortfolioNumber_V1(c, &m->num))
- CHECK_ERROR(_readPortfolioName_V1(c, &m->to_name))
+ CHECK_ERROR(_readPortfolioNumber_V3(c, &m->num))
+ CHECK_ERROR(_readPortfolioName_V3(c, &m->to_name))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_portfolio_quit_portfolio_custody_V1(
- parser_context_t* c, pd_portfolio_quit_portfolio_custody_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_portfolio_quit_portfolio_custody_V3(
+ parser_context_t* c, pd_portfolio_quit_portfolio_custody_V3_t* m)
{
- CHECK_ERROR(_readPortfolioId_V1(c, &m->pid))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->pid))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_portfolio_accept_portfolio_custody_V1(
- parser_context_t* c, pd_portfolio_accept_portfolio_custody_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_portfolio_accept_portfolio_custody_V3(
+ parser_context_t* c, pd_portfolio_accept_portfolio_custody_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_protocolfee_change_coefficient_V1(
- parser_context_t* c, pd_protocolfee_change_coefficient_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_protocolfee_change_coefficient_V3(
+ parser_context_t* c, pd_protocolfee_change_coefficient_V3_t* m)
+{
+ CHECK_ERROR(_readPosRatio_V3(c, &m->coefficient))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_create_venue_V3(
+ parser_context_t* c, pd_settlement_create_venue_V3_t* m)
+{
+ CHECK_ERROR(_readVenueDetails_V3(c, &m->details))
+ CHECK_ERROR(_readVecAccountId_V3(c, &m->signers))
+ CHECK_ERROR(_readVenueType_V3(c, &m->typ))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_update_venue_details_V3(
+ parser_context_t* c, pd_settlement_update_venue_details_V3_t* m)
+{
+ CHECK_ERROR(_readVenueId_V3(c, &m->id))
+ CHECK_ERROR(_readVenueDetails_V3(c, &m->details))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_update_venue_type_V3(
+ parser_context_t* c, pd_settlement_update_venue_type_V3_t* m)
+{
+ CHECK_ERROR(_readVenueId_V3(c, &m->id))
+ CHECK_ERROR(_readVenueType_V3(c, &m->typ))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_add_instruction_V3(
+ parser_context_t* c, pd_settlement_add_instruction_V3_t* m)
+{
+ CHECK_ERROR(_readVenueId_V3(c, &m->venue_id))
+ CHECK_ERROR(_readSettlementTypeBlockNumber_V3(c, &m->settlement_type))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->trade_date))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->value_date))
+ CHECK_ERROR(_readVecLeg_V3(c, &m->legs))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_add_and_affirm_instruction_V3(
+ parser_context_t* c, pd_settlement_add_and_affirm_instruction_V3_t* m)
+{
+ CHECK_ERROR(_readVenueId_V3(c, &m->venue_id))
+ CHECK_ERROR(_readSettlementTypeBlockNumber_V3(c, &m->settlement_type))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->trade_date))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->value_date))
+ CHECK_ERROR(_readVecLeg_V3(c, &m->legs))
+ CHECK_ERROR(_readVecPortfolioId_V3(c, &m->portfolios))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_affirm_instruction_V3(
+ parser_context_t* c, pd_settlement_affirm_instruction_V3_t* m)
+{
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ CHECK_ERROR(_readVecPortfolioId_V3(c, &m->portfolios))
+ CHECK_ERROR(_readu32(c, &m->max_legs_count))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_withdraw_affirmation_V3(
+ parser_context_t* c, pd_settlement_withdraw_affirmation_V3_t* m)
+{
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ CHECK_ERROR(_readVecPortfolioId_V3(c, &m->portfolios))
+ CHECK_ERROR(_readu32(c, &m->max_legs_count))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_reject_instruction_V3(
+ parser_context_t* c, pd_settlement_reject_instruction_V3_t* m)
+{
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->portfolio))
+ CHECK_ERROR(_readu32(c, &m->num_of_legs))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_affirm_with_receipts_V3(
+ parser_context_t* c, pd_settlement_affirm_with_receipts_V3_t* m)
+{
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ CHECK_ERROR(_readVecReceiptDetails_V3(c, &m->receipt_details))
+ CHECK_ERROR(_readVecPortfolioId_V3(c, &m->portfolios))
+ CHECK_ERROR(_readu32(c, &m->max_legs_count))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_claim_receipt_V3(
+ parser_context_t* c, pd_settlement_claim_receipt_V3_t* m)
{
- CHECK_ERROR(_readPosRatio_V1(c, &m->coefficient))
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ CHECK_ERROR(_readReceiptDetails_V3(c, &m->receipt_details))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_settlement_create_venue_V1(
- parser_context_t* c, pd_settlement_create_venue_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_settlement_unclaim_receipt_V3(
+ parser_context_t* c, pd_settlement_unclaim_receipt_V3_t* m)
{
- CHECK_ERROR(_readVenueDetails_V1(c, &m->details))
- CHECK_ERROR(_readVecAccountId_V1(c, &m->signers))
- CHECK_ERROR(_readVenueType_V1(c, &m->typ))
+ CHECK_ERROR(_readInstructionId_V3(c, &m->instruction_id))
+ CHECK_ERROR(_readLegId_V3(c, &m->leg_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_settlement_set_venue_filtering_V1(
- parser_context_t* c, pd_settlement_set_venue_filtering_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_settlement_set_venue_filtering_V3(
+ parser_context_t* c, pd_settlement_set_venue_filtering_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
CHECK_ERROR(_readbool(c, &m->enabled))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_settlement_change_receipt_validity_V1(
- parser_context_t* c, pd_settlement_change_receipt_validity_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_settlement_allow_venues_V3(
+ parser_context_t* c, pd_settlement_allow_venues_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readVecVenueId_V3(c, &m->venues))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_disallow_venues_V3(
+ parser_context_t* c, pd_settlement_disallow_venues_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readVecVenueId_V3(c, &m->venues))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_change_receipt_validity_V3(
+ parser_context_t* c, pd_settlement_change_receipt_validity_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->receipt_uid))
CHECK_ERROR(_readbool(c, &m->validity))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_statistics_add_transfer_manager_V1(
- parser_context_t* c, pd_statistics_add_transfer_manager_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_settlement_execute_scheduled_instruction_V3(
+ parser_context_t* c, pd_settlement_execute_scheduled_instruction_V3_t* m)
+{
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ CHECK_ERROR(_readu32(c, &m->_legs_count))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_settlement_reschedule_instruction_V3(
+ parser_context_t* c, pd_settlement_reschedule_instruction_V3_t* m)
+{
+ CHECK_ERROR(_readInstructionId_V3(c, &m->id))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_sto_create_fundraiser_V3(
+ parser_context_t* c, pd_sto_create_fundraiser_V3_t* m)
+{
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->offering_portfolio))
+ CHECK_ERROR(_readTicker_V3(c, &m->offering_asset))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->raising_portfolio))
+ CHECK_ERROR(_readTicker_V3(c, &m->raising_asset))
+ CHECK_ERROR(_readVecPriceTier_V3(c, &m->tiers))
+ CHECK_ERROR(_readVenueId_V3(c, &m->venue_id))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->start))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->end))
+ CHECK_ERROR(_readBalanceNoSymbol(c, &m->minimum_investment))
+ CHECK_ERROR(_readFundraiserName_V3(c, &m->fundraiser_name))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_sto_invest_V3(
+ parser_context_t* c, pd_sto_invest_V3_t* m)
+{
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->investment_portfolio))
+ CHECK_ERROR(_readPortfolioId_V3(c, &m->funding_portfolio))
+ CHECK_ERROR(_readTicker_V3(c, &m->offering_asset))
+ CHECK_ERROR(_readFundraiserId_V3(c, &m->id))
+ CHECK_ERROR(_readBalanceNoSymbol(c, &m->purchase_amount))
+ CHECK_ERROR(_readOptionBalance(c, &m->max_price))
+ CHECK_ERROR(_readOptionReceiptDetails_V3(c, &m->receipt))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_sto_freeze_fundraiser_V3(
+ parser_context_t* c, pd_sto_freeze_fundraiser_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTransferManager_V1(c, &m->new_transfer_manager))
+ CHECK_ERROR(_readTicker_V3(c, &m->offering_asset))
+ CHECK_ERROR(_readFundraiserId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_statistics_remove_transfer_manager_V1(
- parser_context_t* c, pd_statistics_remove_transfer_manager_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_sto_unfreeze_fundraiser_V3(
+ parser_context_t* c, pd_sto_unfreeze_fundraiser_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTransferManager_V1(c, &m->transfer_manager))
+ CHECK_ERROR(_readTicker_V3(c, &m->offering_asset))
+ CHECK_ERROR(_readFundraiserId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_statistics_add_exempted_entities_V1(
- parser_context_t* c, pd_statistics_add_exempted_entities_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_sto_modify_fundraiser_window_V3(
+ parser_context_t* c, pd_sto_modify_fundraiser_window_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTransferManager_V1(c, &m->transfer_manager))
- CHECK_ERROR(_readVecScopeId_V1(c, &m->exempted_entities))
+ CHECK_ERROR(_readTicker_V3(c, &m->offering_asset))
+ CHECK_ERROR(_readFundraiserId_V3(c, &m->id))
+ CHECK_ERROR(_readMoment_V3(c, &m->start))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->end))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_statistics_remove_exempted_entities_V1(
- parser_context_t* c, pd_statistics_remove_exempted_entities_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_sto_stop_V3(
+ parser_context_t* c, pd_sto_stop_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readTransferManager_V1(c, &m->transfer_manager))
- CHECK_ERROR(_readVecScopeId_V1(c, &m->entities))
+ CHECK_ERROR(_readTicker_V3(c, &m->offering_asset))
+ CHECK_ERROR(_readFundraiserId_V3(c, &m->id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_treasury_disbursement_V1(
- parser_context_t* c, pd_treasury_disbursement_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_treasury_disbursement_V3(
+ parser_context_t* c, pd_treasury_disbursement_V3_t* m)
{
- CHECK_ERROR(_readVecBeneficiary_V1(c, &m->beneficiaries))
+ CHECK_ERROR(_readVecBeneficiary_V3(c, &m->beneficiaries))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_treasury_reimbursement_V1(
- parser_context_t* c, pd_treasury_reimbursement_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_treasury_reimbursement_V3(
+ parser_context_t* c, pd_treasury_reimbursement_V3_t* m)
{
- CHECK_ERROR(_readBalanceOf(c, &m->amount))
+ CHECK_ERROR(_readBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_utility_relay_tx_V1(
- parser_context_t* c, pd_utility_relay_tx_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_utility_relay_tx_V3(
+ parser_context_t* c, pd_utility_relay_tx_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->target))
- CHECK_ERROR(_readOffChainSignature_V1(c, &m->signature))
- CHECK_ERROR(_readUniqueCall_V1(c, &m->call))
+ CHECK_ERROR(_readAccountId_V3(c, &m->target))
+ CHECK_ERROR(_readOffChainSignature_V3(c, &m->signature))
+ CHECK_ERROR(_readUniqueCall_V3(c, &m->call))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_externalagents_remove_agent_V1(
- parser_context_t* c, pd_externalagents_remove_agent_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_externalagents_remove_agent_V3(
+ parser_context_t* c, pd_externalagents_remove_agent_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
- CHECK_ERROR(_readIdentityId_V1(c, &m->agent))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->agent))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_externalagents_abdicate_V1(
- parser_context_t* c, pd_externalagents_abdicate_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_externalagents_abdicate_V3(
+ parser_context_t* c, pd_externalagents_abdicate_V3_t* m)
{
- CHECK_ERROR(_readTicker_V1(c, &m->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_externalagents_accept_become_agent_V1(
- parser_context_t* c, pd_externalagents_accept_become_agent_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_externalagents_accept_become_agent_V3(
+ parser_context_t* c, pd_externalagents_accept_become_agent_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_relayer_set_paying_key_V1(
- parser_context_t* c, pd_relayer_set_paying_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_externalagents_create_group_and_add_auth_V3(
+ parser_context_t* c, pd_externalagents_create_group_and_add_auth_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readExtrinsicPermissions_V3(c, &m->perms))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->target))
+ CHECK_ERROR(_readOptionMoment_V3(c, &m->expiry))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_externalagents_create_and_change_custom_group_V3(
+ parser_context_t* c, pd_externalagents_create_and_change_custom_group_V3_t* m)
+{
+ CHECK_ERROR(_readTicker_V3(c, &m->ticker))
+ CHECK_ERROR(_readExtrinsicPermissions_V3(c, &m->perms))
+ CHECK_ERROR(_readIdentityId_V3(c, &m->agent))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_relayer_set_paying_key_V3(
+ parser_context_t* c, pd_relayer_set_paying_key_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->user_key))
+ CHECK_ERROR(_readAccountId_V3(c, &m->user_key))
CHECK_ERROR(_readBalance(c, &m->polyx_limit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_relayer_accept_paying_key_V1(
- parser_context_t* c, pd_relayer_accept_paying_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_relayer_accept_paying_key_V3(
+ parser_context_t* c, pd_relayer_accept_paying_key_V3_t* m)
{
CHECK_ERROR(_readu64(c, &m->auth_id))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_relayer_remove_paying_key_V1(
- parser_context_t* c, pd_relayer_remove_paying_key_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_relayer_remove_paying_key_V3(
+ parser_context_t* c, pd_relayer_remove_paying_key_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->user_key))
- CHECK_ERROR(_readAccountId_V1(c, &m->paying_key))
+ CHECK_ERROR(_readAccountId_V3(c, &m->user_key))
+ CHECK_ERROR(_readAccountId_V3(c, &m->paying_key))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_relayer_update_polyx_limit_V1(
- parser_context_t* c, pd_relayer_update_polyx_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_relayer_update_polyx_limit_V3(
+ parser_context_t* c, pd_relayer_update_polyx_limit_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->user_key))
+ CHECK_ERROR(_readAccountId_V3(c, &m->user_key))
CHECK_ERROR(_readBalance(c, &m->polyx_limit))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_relayer_increase_polyx_limit_V1(
- parser_context_t* c, pd_relayer_increase_polyx_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_relayer_increase_polyx_limit_V3(
+ parser_context_t* c, pd_relayer_increase_polyx_limit_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->user_key))
+ CHECK_ERROR(_readAccountId_V3(c, &m->user_key))
CHECK_ERROR(_readBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_relayer_decrease_polyx_limit_V1(
- parser_context_t* c, pd_relayer_decrease_polyx_limit_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_relayer_decrease_polyx_limit_V3(
+ parser_context_t* c, pd_relayer_decrease_polyx_limit_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->user_key))
+ CHECK_ERROR(_readAccountId_V3(c, &m->user_key))
CHECK_ERROR(_readBalance(c, &m->amount))
return parser_ok;
}
-__Z_INLINE parser_error_t _readMethod_rewards_claim_itn_reward_V1(
- parser_context_t* c, pd_rewards_claim_itn_reward_V1_t* m)
+__Z_INLINE parser_error_t _readMethod_rewards_claim_itn_reward_V3(
+ parser_context_t* c, pd_rewards_claim_itn_reward_V3_t* m)
+{
+ CHECK_ERROR(_readAccountId_V3(c, &m->reward_address))
+ CHECK_ERROR(_readAccountId_V3(c, &m->itn_address))
+ CHECK_ERROR(_readOffChainSignature_V3(c, &m->signature))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_contracts_call_V3(
+ parser_context_t* c, pd_contracts_call_V3_t* m)
+{
+ CHECK_ERROR(_readLookupasStaticLookupSource_V3(c, &m->dest))
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
+ CHECK_ERROR(_readCompactu64(c, &m->gas_limit))
+ CHECK_ERROR(_readOptionCompactBalanceOf(c, &m->storage_deposit_limit))
+ CHECK_ERROR(_readVecu8(c, &m->data))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_contracts_instantiate_with_code_V3(
+ parser_context_t* c, pd_contracts_instantiate_with_code_V3_t* m)
+{
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
+ CHECK_ERROR(_readCompactu64(c, &m->gas_limit))
+ CHECK_ERROR(_readOptionCompactBalanceOf(c, &m->storage_deposit_limit))
+ CHECK_ERROR(_readVecu8(c, &m->code))
+ CHECK_ERROR(_readVecu8(c, &m->data))
+ CHECK_ERROR(_readVecu8(c, &m->salt))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_contracts_instantiate_V3(
+ parser_context_t* c, pd_contracts_instantiate_V3_t* m)
+{
+ CHECK_ERROR(_readCompactBalance(c, &m->amount))
+ CHECK_ERROR(_readCompactu64(c, &m->gas_limit))
+ CHECK_ERROR(_readOptionCompactBalanceOf(c, &m->storage_deposit_limit))
+ CHECK_ERROR(_readCodeHash_V3(c, &m->code_hash))
+ CHECK_ERROR(_readBytes(c, &m->data))
+ CHECK_ERROR(_readBytes(c, &m->salt))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_contracts_upload_code_V3(
+ parser_context_t* c, pd_contracts_upload_code_V3_t* m)
+{
+ CHECK_ERROR(_readVecu8(c, &m->code))
+ CHECK_ERROR(_readOptionCompactBalanceOf(c, &m->storage_deposit_limit))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_contracts_remove_code_V3(
+ parser_context_t* c, pd_contracts_remove_code_V3_t* m)
+{
+ CHECK_ERROR(_readCodeHash_V3(c, &m->code_hash))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_polymeshcontracts_instantiate_with_code_perms_V3(
+ parser_context_t* c, pd_polymeshcontracts_instantiate_with_code_perms_V3_t* m)
+{
+ CHECK_ERROR(_readBalance(c, &m->endowment))
+ CHECK_ERROR(_readWeight_V3(c, &m->gas_limit))
+ CHECK_ERROR(_readOptionBalance(c, &m->storage_deposit_limit))
+ CHECK_ERROR(_readVecu8(c, &m->code))
+ CHECK_ERROR(_readVecu8(c, &m->data))
+ CHECK_ERROR(_readVecu8(c, &m->salt))
+ CHECK_ERROR(_readPermissions_V3(c, &m->perms))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_polymeshcontracts_instantiate_with_hash_perms_V3(
+ parser_context_t* c, pd_polymeshcontracts_instantiate_with_hash_perms_V3_t* m)
+{
+ CHECK_ERROR(_readBalance(c, &m->endowment))
+ CHECK_ERROR(_readWeight_V3(c, &m->gas_limit))
+ CHECK_ERROR(_readOptionBalance(c, &m->storage_deposit_limit))
+ CHECK_ERROR(_readCodeHash_V3(c, &m->code_hash))
+ CHECK_ERROR(_readVecu8(c, &m->data))
+ CHECK_ERROR(_readVecu8(c, &m->salt))
+ CHECK_ERROR(_readPermissions_V3(c, &m->perms))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_preimage_note_preimage_V3(
+ parser_context_t* c, pd_preimage_note_preimage_V3_t* m)
+{
+ CHECK_ERROR(_readVecu8(c, &m->bytes))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_preimage_unnote_preimage_V3(
+ parser_context_t* c, pd_preimage_unnote_preimage_V3_t* m)
+{
+ CHECK_ERROR(_readHash(c, &m->hash))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_preimage_request_preimage_V3(
+ parser_context_t* c, pd_preimage_request_preimage_V3_t* m)
+{
+ CHECK_ERROR(_readHash(c, &m->hash))
+ return parser_ok;
+}
+
+__Z_INLINE parser_error_t _readMethod_preimage_unrequest_preimage_V3(
+ parser_context_t* c, pd_preimage_unrequest_preimage_V3_t* m)
{
- CHECK_ERROR(_readAccountId_V1(c, &m->reward_address))
- CHECK_ERROR(_readAccountId_V1(c, &m->itn_address))
- CHECK_ERROR(_readOffChainSignature_V1(c, &m->signature))
+ CHECK_ERROR(_readHash(c, &m->hash))
return parser_ok;
}
#endif
-parser_error_t _readMethod_V1(
+parser_error_t _readMethod_V3(
parser_context_t* c,
uint8_t moduleIdx,
uint8_t callIdx,
- pd_Method_V1_t* method)
+ pd_Method_V3_t* method)
{
uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
switch (callPrivIdx) {
case 1280: /* module 5 call 0 */
- CHECK_ERROR(_readMethod_balances_transfer_V1(c, &method->nested.balances_transfer_V1))
+ CHECK_ERROR(_readMethod_balances_transfer_V3(c, &method->nested.balances_transfer_V3))
break;
- case 1794: /* module 7 call 2 */
- CHECK_ERROR(_readMethod_identity_remove_secondary_keys_V1(c, &method->nested.identity_remove_secondary_keys_V1))
+ case 1281: /* module 5 call 1 */
+ CHECK_ERROR(_readMethod_balances_transfer_with_memo_V3(c, &method->nested.balances_transfer_with_memo_V3))
break;
case 1795: /* module 7 call 3 */
- CHECK_ERROR(_readMethod_identity_accept_primary_key_V1(c, &method->nested.identity_accept_primary_key_V1))
+ CHECK_ERROR(_readMethod_identity_accept_primary_key_V3(c, &method->nested.identity_accept_primary_key_V3))
break;
case 1797: /* module 7 call 5 */
- CHECK_ERROR(_readMethod_identity_join_identity_as_key_V1(c, &method->nested.identity_join_identity_as_key_V1))
+ CHECK_ERROR(_readMethod_identity_join_identity_as_key_V3(c, &method->nested.identity_join_identity_as_key_V3))
break;
case 1798: /* module 7 call 6 */
- CHECK_ERROR(_readMethod_identity_leave_identity_as_key_V1(c, &method->nested.identity_leave_identity_as_key_V1))
+ CHECK_ERROR(_readMethod_identity_leave_identity_as_key_V3(c, &method->nested.identity_leave_identity_as_key_V3))
break;
case 1799: /* module 7 call 7 */
- CHECK_ERROR(_readMethod_identity_add_claim_V1(c, &method->nested.identity_add_claim_V1))
+ CHECK_ERROR(_readMethod_identity_add_claim_V3(c, &method->nested.identity_add_claim_V3))
break;
case 1800: /* module 7 call 8 */
- CHECK_ERROR(_readMethod_identity_revoke_claim_V1(c, &method->nested.identity_revoke_claim_V1))
+ CHECK_ERROR(_readMethod_identity_revoke_claim_V3(c, &method->nested.identity_revoke_claim_V3))
break;
case 1801: /* module 7 call 9 */
- CHECK_ERROR(_readMethod_identity_set_permission_to_signer_V1(c, &method->nested.identity_set_permission_to_signer_V1))
+ CHECK_ERROR(_readMethod_identity_set_permission_to_signer_V3(c, &method->nested.identity_set_permission_to_signer_V3))
break;
case 1803: /* module 7 call 11 */
- CHECK_ERROR(_readMethod_identity_freeze_secondary_keys_V1(c, &method->nested.identity_freeze_secondary_keys_V1))
+ CHECK_ERROR(_readMethod_identity_freeze_secondary_keys_V3(c, &method->nested.identity_freeze_secondary_keys_V3))
break;
case 1804: /* module 7 call 12 */
- CHECK_ERROR(_readMethod_identity_unfreeze_secondary_keys_V1(c, &method->nested.identity_unfreeze_secondary_keys_V1))
+ CHECK_ERROR(_readMethod_identity_unfreeze_secondary_keys_V3(c, &method->nested.identity_unfreeze_secondary_keys_V3))
break;
case 1805: /* module 7 call 13 */
- CHECK_ERROR(_readMethod_identity_add_authorization_V1(c, &method->nested.identity_add_authorization_V1))
+ CHECK_ERROR(_readMethod_identity_add_authorization_V3(c, &method->nested.identity_add_authorization_V3))
break;
case 1806: /* module 7 call 14 */
- CHECK_ERROR(_readMethod_identity_remove_authorization_V1(c, &method->nested.identity_remove_authorization_V1))
- break;
- case 1807: /* module 7 call 15 */
- CHECK_ERROR(_readMethod_identity_add_secondary_keys_with_authorization_V1(c, &method->nested.identity_add_secondary_keys_with_authorization_V1))
+ CHECK_ERROR(_readMethod_identity_remove_authorization_V3(c, &method->nested.identity_remove_authorization_V3))
break;
case 1808: /* module 7 call 16 */
- CHECK_ERROR(_readMethod_identity_add_investor_uniqueness_claim_V1(c, &method->nested.identity_add_investor_uniqueness_claim_V1))
+ CHECK_ERROR(_readMethod_identity_add_investor_uniqueness_claim_V3(c, &method->nested.identity_add_investor_uniqueness_claim_V3))
+ break;
+ case 1814: /* module 7 call 22 */
+ CHECK_ERROR(_readMethod_identity_add_secondary_keys_with_authorization_V3(c, &method->nested.identity_add_secondary_keys_with_authorization_V3))
+ break;
+ case 1816: /* module 7 call 24 */
+ CHECK_ERROR(_readMethod_identity_remove_secondary_keys_V3(c, &method->nested.identity_remove_secondary_keys_V3))
break;
case 3840: /* module 15 call 0 */
- CHECK_ERROR(_readMethod_multisig_create_multisig_V1(c, &method->nested.multisig_create_multisig_V1))
+ CHECK_ERROR(_readMethod_multisig_create_multisig_V3(c, &method->nested.multisig_create_multisig_V3))
break;
case 3841: /* module 15 call 1 */
- CHECK_ERROR(_readMethod_multisig_create_or_approve_proposal_as_identity_V1(c, &method->nested.multisig_create_or_approve_proposal_as_identity_V1))
+ CHECK_ERROR(_readMethod_multisig_create_or_approve_proposal_as_identity_V3(c, &method->nested.multisig_create_or_approve_proposal_as_identity_V3))
break;
case 3842: /* module 15 call 2 */
- CHECK_ERROR(_readMethod_multisig_create_or_approve_proposal_as_key_V1(c, &method->nested.multisig_create_or_approve_proposal_as_key_V1))
+ CHECK_ERROR(_readMethod_multisig_create_or_approve_proposal_as_key_V3(c, &method->nested.multisig_create_or_approve_proposal_as_key_V3))
break;
case 3843: /* module 15 call 3 */
- CHECK_ERROR(_readMethod_multisig_create_proposal_as_identity_V1(c, &method->nested.multisig_create_proposal_as_identity_V1))
+ CHECK_ERROR(_readMethod_multisig_create_proposal_as_identity_V3(c, &method->nested.multisig_create_proposal_as_identity_V3))
break;
case 3844: /* module 15 call 4 */
- CHECK_ERROR(_readMethod_multisig_create_proposal_as_key_V1(c, &method->nested.multisig_create_proposal_as_key_V1))
+ CHECK_ERROR(_readMethod_multisig_create_proposal_as_key_V3(c, &method->nested.multisig_create_proposal_as_key_V3))
break;
case 3845: /* module 15 call 5 */
- CHECK_ERROR(_readMethod_multisig_approve_as_identity_V1(c, &method->nested.multisig_approve_as_identity_V1))
+ CHECK_ERROR(_readMethod_multisig_approve_as_identity_V3(c, &method->nested.multisig_approve_as_identity_V3))
break;
case 3846: /* module 15 call 6 */
- CHECK_ERROR(_readMethod_multisig_approve_as_key_V1(c, &method->nested.multisig_approve_as_key_V1))
+ CHECK_ERROR(_readMethod_multisig_approve_as_key_V3(c, &method->nested.multisig_approve_as_key_V3))
break;
case 3847: /* module 15 call 7 */
- CHECK_ERROR(_readMethod_multisig_reject_as_identity_V1(c, &method->nested.multisig_reject_as_identity_V1))
+ CHECK_ERROR(_readMethod_multisig_reject_as_identity_V3(c, &method->nested.multisig_reject_as_identity_V3))
break;
case 3848: /* module 15 call 8 */
- CHECK_ERROR(_readMethod_multisig_reject_as_key_V1(c, &method->nested.multisig_reject_as_key_V1))
+ CHECK_ERROR(_readMethod_multisig_reject_as_key_V3(c, &method->nested.multisig_reject_as_key_V3))
break;
case 3849: /* module 15 call 9 */
- CHECK_ERROR(_readMethod_multisig_accept_multisig_signer_as_identity_V1(c, &method->nested.multisig_accept_multisig_signer_as_identity_V1))
+ CHECK_ERROR(_readMethod_multisig_accept_multisig_signer_as_identity_V3(c, &method->nested.multisig_accept_multisig_signer_as_identity_V3))
break;
case 3850: /* module 15 call 10 */
- CHECK_ERROR(_readMethod_multisig_accept_multisig_signer_as_key_V1(c, &method->nested.multisig_accept_multisig_signer_as_key_V1))
+ CHECK_ERROR(_readMethod_multisig_accept_multisig_signer_as_key_V3(c, &method->nested.multisig_accept_multisig_signer_as_key_V3))
break;
case 3851: /* module 15 call 11 */
- CHECK_ERROR(_readMethod_multisig_add_multisig_signer_V1(c, &method->nested.multisig_add_multisig_signer_V1))
+ CHECK_ERROR(_readMethod_multisig_add_multisig_signer_V3(c, &method->nested.multisig_add_multisig_signer_V3))
break;
case 3852: /* module 15 call 12 */
- CHECK_ERROR(_readMethod_multisig_remove_multisig_signer_V1(c, &method->nested.multisig_remove_multisig_signer_V1))
+ CHECK_ERROR(_readMethod_multisig_remove_multisig_signer_V3(c, &method->nested.multisig_remove_multisig_signer_V3))
break;
case 3853: /* module 15 call 13 */
- CHECK_ERROR(_readMethod_multisig_add_multisig_signers_via_creator_V1(c, &method->nested.multisig_add_multisig_signers_via_creator_V1))
+ CHECK_ERROR(_readMethod_multisig_add_multisig_signers_via_creator_V3(c, &method->nested.multisig_add_multisig_signers_via_creator_V3))
break;
case 3854: /* module 15 call 14 */
- CHECK_ERROR(_readMethod_multisig_remove_multisig_signers_via_creator_V1(c, &method->nested.multisig_remove_multisig_signers_via_creator_V1))
+ CHECK_ERROR(_readMethod_multisig_remove_multisig_signers_via_creator_V3(c, &method->nested.multisig_remove_multisig_signers_via_creator_V3))
break;
case 3855: /* module 15 call 15 */
- CHECK_ERROR(_readMethod_multisig_change_sigs_required_V1(c, &method->nested.multisig_change_sigs_required_V1))
- break;
- case 3856: /* module 15 call 16 */
- CHECK_ERROR(_readMethod_multisig_make_multisig_signer_V1(c, &method->nested.multisig_make_multisig_signer_V1))
+ CHECK_ERROR(_readMethod_multisig_change_sigs_required_V3(c, &method->nested.multisig_change_sigs_required_V3))
break;
case 3857: /* module 15 call 17 */
- CHECK_ERROR(_readMethod_multisig_make_multisig_primary_V1(c, &method->nested.multisig_make_multisig_primary_V1))
+ CHECK_ERROR(_readMethod_multisig_make_multisig_primary_V3(c, &method->nested.multisig_make_multisig_primary_V3))
break;
case 3858: /* module 15 call 18 */
- CHECK_ERROR(_readMethod_multisig_execute_scheduled_proposal_V1(c, &method->nested.multisig_execute_scheduled_proposal_V1))
+ CHECK_ERROR(_readMethod_multisig_execute_scheduled_proposal_V3(c, &method->nested.multisig_execute_scheduled_proposal_V3))
break;
case 4352: /* module 17 call 0 */
- CHECK_ERROR(_readMethod_staking_bond_V1(c, &method->nested.staking_bond_V1))
+ CHECK_ERROR(_readMethod_staking_bond_V3(c, &method->nested.staking_bond_V3))
break;
case 4353: /* module 17 call 1 */
- CHECK_ERROR(_readMethod_staking_bond_extra_V1(c, &method->nested.staking_bond_extra_V1))
+ CHECK_ERROR(_readMethod_staking_bond_extra_V3(c, &method->nested.staking_bond_extra_V3))
break;
case 4354: /* module 17 call 2 */
- CHECK_ERROR(_readMethod_staking_unbond_V1(c, &method->nested.staking_unbond_V1))
+ CHECK_ERROR(_readMethod_staking_unbond_V3(c, &method->nested.staking_unbond_V3))
break;
case 4355: /* module 17 call 3 */
- CHECK_ERROR(_readMethod_staking_withdraw_unbonded_V1(c, &method->nested.staking_withdraw_unbonded_V1))
+ CHECK_ERROR(_readMethod_staking_withdraw_unbonded_V3(c, &method->nested.staking_withdraw_unbonded_V3))
break;
case 4356: /* module 17 call 4 */
- CHECK_ERROR(_readMethod_staking_validate_V1(c, &method->nested.staking_validate_V1))
+ CHECK_ERROR(_readMethod_staking_validate_V3(c, &method->nested.staking_validate_V3))
break;
case 4357: /* module 17 call 5 */
- CHECK_ERROR(_readMethod_staking_nominate_V1(c, &method->nested.staking_nominate_V1))
+ CHECK_ERROR(_readMethod_staking_nominate_V3(c, &method->nested.staking_nominate_V3))
break;
case 4358: /* module 17 call 6 */
- CHECK_ERROR(_readMethod_staking_chill_V1(c, &method->nested.staking_chill_V1))
+ CHECK_ERROR(_readMethod_staking_chill_V3(c, &method->nested.staking_chill_V3))
break;
case 4359: /* module 17 call 7 */
- CHECK_ERROR(_readMethod_staking_set_payee_V1(c, &method->nested.staking_set_payee_V1))
+ CHECK_ERROR(_readMethod_staking_set_payee_V3(c, &method->nested.staking_set_payee_V3))
break;
case 4360: /* module 17 call 8 */
- CHECK_ERROR(_readMethod_staking_set_controller_V1(c, &method->nested.staking_set_controller_V1))
+ CHECK_ERROR(_readMethod_staking_set_controller_V3(c, &method->nested.staking_set_controller_V3))
break;
case 4376: /* module 17 call 24 */
- CHECK_ERROR(_readMethod_staking_rebond_V1(c, &method->nested.staking_rebond_V1))
+ CHECK_ERROR(_readMethod_staking_rebond_V3(c, &method->nested.staking_rebond_V3))
break;
case 8454: /* module 33 call 6 */
- CHECK_ERROR(_readMethod_pips_propose_V1(c, &method->nested.pips_propose_V1))
+ CHECK_ERROR(_readMethod_pips_propose_V3(c, &method->nested.pips_propose_V3))
break;
case 8455: /* module 33 call 7 */
- CHECK_ERROR(_readMethod_pips_vote_V1(c, &method->nested.pips_vote_V1))
+ CHECK_ERROR(_readMethod_pips_vote_V3(c, &method->nested.pips_vote_V3))
break;
case 10496: /* module 41 call 0 */
- CHECK_ERROR(_readMethod_utility_batch_V1(c, &method->nested.utility_batch_V1))
+ CHECK_ERROR(_readMethod_utility_batch_V3(c, &method->nested.utility_batch_V3))
break;
case 10497: /* module 41 call 1 */
- CHECK_ERROR(_readMethod_utility_batch_atomic_V1(c, &method->nested.utility_batch_atomic_V1))
+ CHECK_ERROR(_readMethod_utility_batch_atomic_V3(c, &method->nested.utility_batch_atomic_V3))
break;
case 10498: /* module 41 call 2 */
- CHECK_ERROR(_readMethod_utility_batch_optimistic_V1(c, &method->nested.utility_batch_optimistic_V1))
+ CHECK_ERROR(_readMethod_utility_batch_optimistic_V3(c, &method->nested.utility_batch_optimistic_V3))
break;
#ifdef SUBSTRATE_PARSER_FULL
case 0: /* module 0 call 0 */
- CHECK_ERROR(_readMethod_system_fill_block_V1(c, &method->nested.system_fill_block_V1))
+ CHECK_ERROR(_readMethod_system_fill_block_V3(c, &method->nested.system_fill_block_V3))
break;
case 1: /* module 0 call 1 */
- CHECK_ERROR(_readMethod_system_remark_V1(c, &method->nested.system_remark_V1))
+ CHECK_ERROR(_readMethod_system_remark_V3(c, &method->nested.system_remark_V3))
break;
case 2: /* module 0 call 2 */
- CHECK_ERROR(_readMethod_system_set_heap_pages_V1(c, &method->nested.system_set_heap_pages_V1))
+ CHECK_ERROR(_readMethod_system_set_heap_pages_V3(c, &method->nested.system_set_heap_pages_V3))
break;
case 3: /* module 0 call 3 */
- CHECK_ERROR(_readMethod_system_set_code_V1(c, &method->nested.system_set_code_V1))
+ CHECK_ERROR(_readMethod_system_set_code_V3(c, &method->nested.system_set_code_V3))
break;
case 4: /* module 0 call 4 */
- CHECK_ERROR(_readMethod_system_set_code_without_checks_V1(c, &method->nested.system_set_code_without_checks_V1))
+ CHECK_ERROR(_readMethod_system_set_code_without_checks_V3(c, &method->nested.system_set_code_without_checks_V3))
+ break;
+ case 8: /* module 0 call 8 */
+ CHECK_ERROR(_readMethod_system_remark_with_event_V3(c, &method->nested.system_remark_with_event_V3))
break;
case 512: /* module 2 call 0 */
- CHECK_ERROR(_readMethod_timestamp_set_V1(c, &method->nested.timestamp_set_V1))
+ CHECK_ERROR(_readMethod_timestamp_set_V3(c, &method->nested.timestamp_set_V3))
break;
case 768: /* module 3 call 0 */
- CHECK_ERROR(_readMethod_indices_claim_V1(c, &method->nested.indices_claim_V1))
+ CHECK_ERROR(_readMethod_indices_claim_V3(c, &method->nested.indices_claim_V3))
break;
case 769: /* module 3 call 1 */
- CHECK_ERROR(_readMethod_indices_transfer_V1(c, &method->nested.indices_transfer_V1))
+ CHECK_ERROR(_readMethod_indices_transfer_V3(c, &method->nested.indices_transfer_V3))
break;
case 770: /* module 3 call 2 */
- CHECK_ERROR(_readMethod_indices_free_V1(c, &method->nested.indices_free_V1))
+ CHECK_ERROR(_readMethod_indices_free_V3(c, &method->nested.indices_free_V3))
break;
case 771: /* module 3 call 3 */
- CHECK_ERROR(_readMethod_indices_force_transfer_V1(c, &method->nested.indices_force_transfer_V1))
+ CHECK_ERROR(_readMethod_indices_force_transfer_V3(c, &method->nested.indices_force_transfer_V3))
break;
case 772: /* module 3 call 4 */
- CHECK_ERROR(_readMethod_indices_freeze_V1(c, &method->nested.indices_freeze_V1))
- break;
- case 1281: /* module 5 call 1 */
- CHECK_ERROR(_readMethod_balances_transfer_with_memo_V1(c, &method->nested.balances_transfer_with_memo_V1))
+ CHECK_ERROR(_readMethod_indices_freeze_V3(c, &method->nested.indices_freeze_V3))
break;
case 1282: /* module 5 call 2 */
- CHECK_ERROR(_readMethod_balances_deposit_block_reward_reserve_balance_V1(c, &method->nested.balances_deposit_block_reward_reserve_balance_V1))
+ CHECK_ERROR(_readMethod_balances_deposit_block_reward_reserve_balance_V3(c, &method->nested.balances_deposit_block_reward_reserve_balance_V3))
break;
case 1283: /* module 5 call 3 */
- CHECK_ERROR(_readMethod_balances_set_balance_V1(c, &method->nested.balances_set_balance_V1))
+ CHECK_ERROR(_readMethod_balances_set_balance_V3(c, &method->nested.balances_set_balance_V3))
break;
case 1284: /* module 5 call 4 */
- CHECK_ERROR(_readMethod_balances_force_transfer_V1(c, &method->nested.balances_force_transfer_V1))
+ CHECK_ERROR(_readMethod_balances_force_transfer_V3(c, &method->nested.balances_force_transfer_V3))
break;
case 1285: /* module 5 call 5 */
- CHECK_ERROR(_readMethod_balances_burn_account_balance_V1(c, &method->nested.balances_burn_account_balance_V1))
+ CHECK_ERROR(_readMethod_balances_burn_account_balance_V3(c, &method->nested.balances_burn_account_balance_V3))
break;
case 1793: /* module 7 call 1 */
- CHECK_ERROR(_readMethod_identity_invalidate_cdd_claims_V1(c, &method->nested.identity_invalidate_cdd_claims_V1))
+ CHECK_ERROR(_readMethod_identity_invalidate_cdd_claims_V3(c, &method->nested.identity_invalidate_cdd_claims_V3))
break;
case 1796: /* module 7 call 4 */
- CHECK_ERROR(_readMethod_identity_change_cdd_requirement_for_mk_rotation_V1(c, &method->nested.identity_change_cdd_requirement_for_mk_rotation_V1))
+ CHECK_ERROR(_readMethod_identity_change_cdd_requirement_for_mk_rotation_V3(c, &method->nested.identity_change_cdd_requirement_for_mk_rotation_V3))
+ break;
+ case 1802: /* module 7 call 10 */
+ CHECK_ERROR(_readMethod_identity_placeholder_legacy_set_permission_to_signer_V3(c, &method->basic.identity_placeholder_legacy_set_permission_to_signer_V3))
break;
case 1809: /* module 7 call 17 */
- CHECK_ERROR(_readMethod_identity_gc_add_cdd_claim_V1(c, &method->nested.identity_gc_add_cdd_claim_V1))
+ CHECK_ERROR(_readMethod_identity_gc_add_cdd_claim_V3(c, &method->nested.identity_gc_add_cdd_claim_V3))
break;
case 1810: /* module 7 call 18 */
- CHECK_ERROR(_readMethod_identity_gc_revoke_cdd_claim_V1(c, &method->nested.identity_gc_revoke_cdd_claim_V1))
+ CHECK_ERROR(_readMethod_identity_gc_revoke_cdd_claim_V3(c, &method->nested.identity_gc_revoke_cdd_claim_V3))
break;
case 1812: /* module 7 call 20 */
- CHECK_ERROR(_readMethod_identity_revoke_claim_by_index_V1(c, &method->basic.identity_revoke_claim_by_index_V1))
+ CHECK_ERROR(_readMethod_identity_revoke_claim_by_index_V3(c, &method->basic.identity_revoke_claim_by_index_V3))
+ break;
+ case 1813: /* module 7 call 21 */
+ CHECK_ERROR(_readMethod_identity_rotate_primary_key_to_secondary_V3(c, &method->basic.identity_rotate_primary_key_to_secondary_V3))
+ break;
+ case 1815: /* module 7 call 23 */
+ CHECK_ERROR(_readMethod_identity_set_secondary_key_permissions_V3(c, &method->basic.identity_set_secondary_key_permissions_V3))
break;
case 2048: /* module 8 call 0 */
- CHECK_ERROR(_readMethod_cddserviceproviders_set_active_members_limit_V1(c, &method->nested.cddserviceproviders_set_active_members_limit_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_set_active_members_limit_V3(c, &method->nested.cddserviceproviders_set_active_members_limit_V3))
break;
case 2049: /* module 8 call 1 */
- CHECK_ERROR(_readMethod_cddserviceproviders_disable_member_V1(c, &method->nested.cddserviceproviders_disable_member_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_disable_member_V3(c, &method->nested.cddserviceproviders_disable_member_V3))
break;
case 2050: /* module 8 call 2 */
- CHECK_ERROR(_readMethod_cddserviceproviders_add_member_V1(c, &method->nested.cddserviceproviders_add_member_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_add_member_V3(c, &method->nested.cddserviceproviders_add_member_V3))
break;
case 2051: /* module 8 call 3 */
- CHECK_ERROR(_readMethod_cddserviceproviders_remove_member_V1(c, &method->nested.cddserviceproviders_remove_member_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_remove_member_V3(c, &method->nested.cddserviceproviders_remove_member_V3))
break;
case 2052: /* module 8 call 4 */
- CHECK_ERROR(_readMethod_cddserviceproviders_swap_member_V1(c, &method->nested.cddserviceproviders_swap_member_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_swap_member_V3(c, &method->nested.cddserviceproviders_swap_member_V3))
break;
case 2053: /* module 8 call 5 */
- CHECK_ERROR(_readMethod_cddserviceproviders_reset_members_V1(c, &method->nested.cddserviceproviders_reset_members_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_reset_members_V3(c, &method->nested.cddserviceproviders_reset_members_V3))
break;
case 2054: /* module 8 call 6 */
- CHECK_ERROR(_readMethod_cddserviceproviders_abdicate_membership_V1(c, &method->nested.cddserviceproviders_abdicate_membership_V1))
+ CHECK_ERROR(_readMethod_cddserviceproviders_abdicate_membership_V3(c, &method->nested.cddserviceproviders_abdicate_membership_V3))
break;
case 2304: /* module 9 call 0 */
- CHECK_ERROR(_readMethod_polymeshcommittee_set_vote_threshold_V1(c, &method->nested.polymeshcommittee_set_vote_threshold_V1))
+ CHECK_ERROR(_readMethod_polymeshcommittee_set_vote_threshold_V3(c, &method->nested.polymeshcommittee_set_vote_threshold_V3))
break;
case 2305: /* module 9 call 1 */
- CHECK_ERROR(_readMethod_polymeshcommittee_set_release_coordinator_V1(c, &method->nested.polymeshcommittee_set_release_coordinator_V1))
+ CHECK_ERROR(_readMethod_polymeshcommittee_set_release_coordinator_V3(c, &method->nested.polymeshcommittee_set_release_coordinator_V3))
break;
case 2306: /* module 9 call 2 */
- CHECK_ERROR(_readMethod_polymeshcommittee_set_expires_after_V1(c, &method->nested.polymeshcommittee_set_expires_after_V1))
+ CHECK_ERROR(_readMethod_polymeshcommittee_set_expires_after_V3(c, &method->nested.polymeshcommittee_set_expires_after_V3))
break;
case 2307: /* module 9 call 3 */
- CHECK_ERROR(_readMethod_polymeshcommittee_vote_or_propose_V1(c, &method->nested.polymeshcommittee_vote_or_propose_V1))
+ CHECK_ERROR(_readMethod_polymeshcommittee_vote_or_propose_V3(c, &method->nested.polymeshcommittee_vote_or_propose_V3))
break;
case 2308: /* module 9 call 4 */
- CHECK_ERROR(_readMethod_polymeshcommittee_vote_V1(c, &method->nested.polymeshcommittee_vote_V1))
+ CHECK_ERROR(_readMethod_polymeshcommittee_vote_V3(c, &method->nested.polymeshcommittee_vote_V3))
break;
case 2560: /* module 10 call 0 */
- CHECK_ERROR(_readMethod_committeemembership_set_active_members_limit_V1(c, &method->nested.committeemembership_set_active_members_limit_V1))
+ CHECK_ERROR(_readMethod_committeemembership_set_active_members_limit_V3(c, &method->nested.committeemembership_set_active_members_limit_V3))
break;
case 2561: /* module 10 call 1 */
- CHECK_ERROR(_readMethod_committeemembership_disable_member_V1(c, &method->nested.committeemembership_disable_member_V1))
+ CHECK_ERROR(_readMethod_committeemembership_disable_member_V3(c, &method->nested.committeemembership_disable_member_V3))
break;
case 2562: /* module 10 call 2 */
- CHECK_ERROR(_readMethod_committeemembership_add_member_V1(c, &method->nested.committeemembership_add_member_V1))
+ CHECK_ERROR(_readMethod_committeemembership_add_member_V3(c, &method->nested.committeemembership_add_member_V3))
break;
case 2563: /* module 10 call 3 */
- CHECK_ERROR(_readMethod_committeemembership_remove_member_V1(c, &method->nested.committeemembership_remove_member_V1))
+ CHECK_ERROR(_readMethod_committeemembership_remove_member_V3(c, &method->nested.committeemembership_remove_member_V3))
break;
case 2564: /* module 10 call 4 */
- CHECK_ERROR(_readMethod_committeemembership_swap_member_V1(c, &method->nested.committeemembership_swap_member_V1))
+ CHECK_ERROR(_readMethod_committeemembership_swap_member_V3(c, &method->nested.committeemembership_swap_member_V3))
break;
case 2565: /* module 10 call 5 */
- CHECK_ERROR(_readMethod_committeemembership_reset_members_V1(c, &method->nested.committeemembership_reset_members_V1))
+ CHECK_ERROR(_readMethod_committeemembership_reset_members_V3(c, &method->nested.committeemembership_reset_members_V3))
break;
case 2566: /* module 10 call 6 */
- CHECK_ERROR(_readMethod_committeemembership_abdicate_membership_V1(c, &method->nested.committeemembership_abdicate_membership_V1))
+ CHECK_ERROR(_readMethod_committeemembership_abdicate_membership_V3(c, &method->nested.committeemembership_abdicate_membership_V3))
break;
case 2816: /* module 11 call 0 */
- CHECK_ERROR(_readMethod_technicalcommittee_set_vote_threshold_V1(c, &method->nested.technicalcommittee_set_vote_threshold_V1))
+ CHECK_ERROR(_readMethod_technicalcommittee_set_vote_threshold_V3(c, &method->nested.technicalcommittee_set_vote_threshold_V3))
break;
case 2817: /* module 11 call 1 */
- CHECK_ERROR(_readMethod_technicalcommittee_set_release_coordinator_V1(c, &method->nested.technicalcommittee_set_release_coordinator_V1))
+ CHECK_ERROR(_readMethod_technicalcommittee_set_release_coordinator_V3(c, &method->nested.technicalcommittee_set_release_coordinator_V3))
break;
case 2818: /* module 11 call 2 */
- CHECK_ERROR(_readMethod_technicalcommittee_set_expires_after_V1(c, &method->nested.technicalcommittee_set_expires_after_V1))
+ CHECK_ERROR(_readMethod_technicalcommittee_set_expires_after_V3(c, &method->nested.technicalcommittee_set_expires_after_V3))
break;
case 2819: /* module 11 call 3 */
- CHECK_ERROR(_readMethod_technicalcommittee_vote_or_propose_V1(c, &method->nested.technicalcommittee_vote_or_propose_V1))
+ CHECK_ERROR(_readMethod_technicalcommittee_vote_or_propose_V3(c, &method->nested.technicalcommittee_vote_or_propose_V3))
break;
case 2820: /* module 11 call 4 */
- CHECK_ERROR(_readMethod_technicalcommittee_vote_V1(c, &method->nested.technicalcommittee_vote_V1))
+ CHECK_ERROR(_readMethod_technicalcommittee_vote_V3(c, &method->nested.technicalcommittee_vote_V3))
break;
case 3072: /* module 12 call 0 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_set_active_members_limit_V1(c, &method->nested.technicalcommitteemembership_set_active_members_limit_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_set_active_members_limit_V3(c, &method->nested.technicalcommitteemembership_set_active_members_limit_V3))
break;
case 3073: /* module 12 call 1 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_disable_member_V1(c, &method->nested.technicalcommitteemembership_disable_member_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_disable_member_V3(c, &method->nested.technicalcommitteemembership_disable_member_V3))
break;
case 3074: /* module 12 call 2 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_add_member_V1(c, &method->nested.technicalcommitteemembership_add_member_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_add_member_V3(c, &method->nested.technicalcommitteemembership_add_member_V3))
break;
case 3075: /* module 12 call 3 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_remove_member_V1(c, &method->nested.technicalcommitteemembership_remove_member_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_remove_member_V3(c, &method->nested.technicalcommitteemembership_remove_member_V3))
break;
case 3076: /* module 12 call 4 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_swap_member_V1(c, &method->nested.technicalcommitteemembership_swap_member_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_swap_member_V3(c, &method->nested.technicalcommitteemembership_swap_member_V3))
break;
case 3077: /* module 12 call 5 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_reset_members_V1(c, &method->nested.technicalcommitteemembership_reset_members_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_reset_members_V3(c, &method->nested.technicalcommitteemembership_reset_members_V3))
break;
case 3078: /* module 12 call 6 */
- CHECK_ERROR(_readMethod_technicalcommitteemembership_abdicate_membership_V1(c, &method->nested.technicalcommitteemembership_abdicate_membership_V1))
+ CHECK_ERROR(_readMethod_technicalcommitteemembership_abdicate_membership_V3(c, &method->nested.technicalcommitteemembership_abdicate_membership_V3))
break;
case 3328: /* module 13 call 0 */
- CHECK_ERROR(_readMethod_upgradecommittee_set_vote_threshold_V1(c, &method->nested.upgradecommittee_set_vote_threshold_V1))
+ CHECK_ERROR(_readMethod_upgradecommittee_set_vote_threshold_V3(c, &method->nested.upgradecommittee_set_vote_threshold_V3))
break;
case 3329: /* module 13 call 1 */
- CHECK_ERROR(_readMethod_upgradecommittee_set_release_coordinator_V1(c, &method->nested.upgradecommittee_set_release_coordinator_V1))
+ CHECK_ERROR(_readMethod_upgradecommittee_set_release_coordinator_V3(c, &method->nested.upgradecommittee_set_release_coordinator_V3))
break;
case 3330: /* module 13 call 2 */
- CHECK_ERROR(_readMethod_upgradecommittee_set_expires_after_V1(c, &method->nested.upgradecommittee_set_expires_after_V1))
+ CHECK_ERROR(_readMethod_upgradecommittee_set_expires_after_V3(c, &method->nested.upgradecommittee_set_expires_after_V3))
break;
case 3331: /* module 13 call 3 */
- CHECK_ERROR(_readMethod_upgradecommittee_vote_or_propose_V1(c, &method->nested.upgradecommittee_vote_or_propose_V1))
+ CHECK_ERROR(_readMethod_upgradecommittee_vote_or_propose_V3(c, &method->nested.upgradecommittee_vote_or_propose_V3))
break;
case 3332: /* module 13 call 4 */
- CHECK_ERROR(_readMethod_upgradecommittee_vote_V1(c, &method->nested.upgradecommittee_vote_V1))
+ CHECK_ERROR(_readMethod_upgradecommittee_vote_V3(c, &method->nested.upgradecommittee_vote_V3))
break;
case 3584: /* module 14 call 0 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_set_active_members_limit_V1(c, &method->nested.upgradecommitteemembership_set_active_members_limit_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_set_active_members_limit_V3(c, &method->nested.upgradecommitteemembership_set_active_members_limit_V3))
break;
case 3585: /* module 14 call 1 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_disable_member_V1(c, &method->nested.upgradecommitteemembership_disable_member_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_disable_member_V3(c, &method->nested.upgradecommitteemembership_disable_member_V3))
break;
case 3586: /* module 14 call 2 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_add_member_V1(c, &method->nested.upgradecommitteemembership_add_member_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_add_member_V3(c, &method->nested.upgradecommitteemembership_add_member_V3))
break;
case 3587: /* module 14 call 3 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_remove_member_V1(c, &method->nested.upgradecommitteemembership_remove_member_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_remove_member_V3(c, &method->nested.upgradecommitteemembership_remove_member_V3))
break;
case 3588: /* module 14 call 4 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_swap_member_V1(c, &method->nested.upgradecommitteemembership_swap_member_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_swap_member_V3(c, &method->nested.upgradecommitteemembership_swap_member_V3))
break;
case 3589: /* module 14 call 5 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_reset_members_V1(c, &method->nested.upgradecommitteemembership_reset_members_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_reset_members_V3(c, &method->nested.upgradecommitteemembership_reset_members_V3))
break;
case 3590: /* module 14 call 6 */
- CHECK_ERROR(_readMethod_upgradecommitteemembership_abdicate_membership_V1(c, &method->nested.upgradecommitteemembership_abdicate_membership_V1))
+ CHECK_ERROR(_readMethod_upgradecommitteemembership_abdicate_membership_V3(c, &method->nested.upgradecommitteemembership_abdicate_membership_V3))
+ break;
+ case 3856: /* module 15 call 16 */
+ CHECK_ERROR(_readMethod_multisig_make_multisig_secondary_V3(c, &method->basic.multisig_make_multisig_secondary_V3))
break;
case 4096: /* module 16 call 0 */
- CHECK_ERROR(_readMethod_bridge_change_controller_V1(c, &method->nested.bridge_change_controller_V1))
+ CHECK_ERROR(_readMethod_bridge_change_controller_V3(c, &method->nested.bridge_change_controller_V3))
break;
case 4097: /* module 16 call 1 */
- CHECK_ERROR(_readMethod_bridge_change_admin_V1(c, &method->nested.bridge_change_admin_V1))
+ CHECK_ERROR(_readMethod_bridge_change_admin_V3(c, &method->nested.bridge_change_admin_V3))
break;
case 4098: /* module 16 call 2 */
- CHECK_ERROR(_readMethod_bridge_change_timelock_V1(c, &method->nested.bridge_change_timelock_V1))
+ CHECK_ERROR(_readMethod_bridge_change_timelock_V3(c, &method->nested.bridge_change_timelock_V3))
break;
case 4099: /* module 16 call 3 */
- CHECK_ERROR(_readMethod_bridge_freeze_V1(c, &method->nested.bridge_freeze_V1))
+ CHECK_ERROR(_readMethod_bridge_freeze_V3(c, &method->nested.bridge_freeze_V3))
break;
case 4100: /* module 16 call 4 */
- CHECK_ERROR(_readMethod_bridge_unfreeze_V1(c, &method->nested.bridge_unfreeze_V1))
+ CHECK_ERROR(_readMethod_bridge_unfreeze_V3(c, &method->nested.bridge_unfreeze_V3))
break;
case 4101: /* module 16 call 5 */
- CHECK_ERROR(_readMethod_bridge_change_bridge_limit_V1(c, &method->nested.bridge_change_bridge_limit_V1))
+ CHECK_ERROR(_readMethod_bridge_change_bridge_limit_V3(c, &method->nested.bridge_change_bridge_limit_V3))
break;
case 4102: /* module 16 call 6 */
- CHECK_ERROR(_readMethod_bridge_change_bridge_exempted_V1(c, &method->nested.bridge_change_bridge_exempted_V1))
+ CHECK_ERROR(_readMethod_bridge_change_bridge_exempted_V3(c, &method->nested.bridge_change_bridge_exempted_V3))
break;
case 4103: /* module 16 call 7 */
- CHECK_ERROR(_readMethod_bridge_force_handle_bridge_tx_V1(c, &method->basic.bridge_force_handle_bridge_tx_V1))
+ CHECK_ERROR(_readMethod_bridge_force_handle_bridge_tx_V3(c, &method->basic.bridge_force_handle_bridge_tx_V3))
break;
case 4104: /* module 16 call 8 */
- CHECK_ERROR(_readMethod_bridge_batch_propose_bridge_tx_V1(c, &method->basic.bridge_batch_propose_bridge_tx_V1))
+ CHECK_ERROR(_readMethod_bridge_batch_propose_bridge_tx_V3(c, &method->basic.bridge_batch_propose_bridge_tx_V3))
break;
case 4105: /* module 16 call 9 */
- CHECK_ERROR(_readMethod_bridge_propose_bridge_tx_V1(c, &method->basic.bridge_propose_bridge_tx_V1))
+ CHECK_ERROR(_readMethod_bridge_propose_bridge_tx_V3(c, &method->basic.bridge_propose_bridge_tx_V3))
break;
case 4106: /* module 16 call 10 */
- CHECK_ERROR(_readMethod_bridge_handle_bridge_tx_V1(c, &method->basic.bridge_handle_bridge_tx_V1))
+ CHECK_ERROR(_readMethod_bridge_handle_bridge_tx_V3(c, &method->basic.bridge_handle_bridge_tx_V3))
break;
case 4107: /* module 16 call 11 */
- CHECK_ERROR(_readMethod_bridge_freeze_txs_V1(c, &method->basic.bridge_freeze_txs_V1))
+ CHECK_ERROR(_readMethod_bridge_freeze_txs_V3(c, &method->basic.bridge_freeze_txs_V3))
break;
case 4108: /* module 16 call 12 */
- CHECK_ERROR(_readMethod_bridge_unfreeze_txs_V1(c, &method->basic.bridge_unfreeze_txs_V1))
+ CHECK_ERROR(_readMethod_bridge_unfreeze_txs_V3(c, &method->basic.bridge_unfreeze_txs_V3))
break;
case 4109: /* module 16 call 13 */
- CHECK_ERROR(_readMethod_bridge_handle_scheduled_bridge_tx_V1(c, &method->basic.bridge_handle_scheduled_bridge_tx_V1))
+ CHECK_ERROR(_readMethod_bridge_handle_scheduled_bridge_tx_V3(c, &method->basic.bridge_handle_scheduled_bridge_tx_V3))
break;
case 4110: /* module 16 call 14 */
- CHECK_ERROR(_readMethod_bridge_add_freeze_admin_V1(c, &method->basic.bridge_add_freeze_admin_V1))
+ CHECK_ERROR(_readMethod_bridge_add_freeze_admin_V3(c, &method->basic.bridge_add_freeze_admin_V3))
break;
case 4111: /* module 16 call 15 */
- CHECK_ERROR(_readMethod_bridge_remove_freeze_admin_V1(c, &method->basic.bridge_remove_freeze_admin_V1))
+ CHECK_ERROR(_readMethod_bridge_remove_freeze_admin_V3(c, &method->basic.bridge_remove_freeze_admin_V3))
+ break;
+ case 4112: /* module 16 call 16 */
+ CHECK_ERROR(_readMethod_bridge_remove_txs_V3(c, &method->basic.bridge_remove_txs_V3))
break;
case 4361: /* module 17 call 9 */
- CHECK_ERROR(_readMethod_staking_set_validator_count_V1(c, &method->nested.staking_set_validator_count_V1))
+ CHECK_ERROR(_readMethod_staking_set_validator_count_V3(c, &method->nested.staking_set_validator_count_V3))
break;
case 4362: /* module 17 call 10 */
- CHECK_ERROR(_readMethod_staking_increase_validator_count_V1(c, &method->nested.staking_increase_validator_count_V1))
+ CHECK_ERROR(_readMethod_staking_increase_validator_count_V3(c, &method->nested.staking_increase_validator_count_V3))
break;
case 4364: /* module 17 call 12 */
- CHECK_ERROR(_readMethod_staking_add_permissioned_validator_V1(c, &method->nested.staking_add_permissioned_validator_V1))
+ CHECK_ERROR(_readMethod_staking_add_permissioned_validator_V3(c, &method->nested.staking_add_permissioned_validator_V3))
break;
case 4365: /* module 17 call 13 */
- CHECK_ERROR(_readMethod_staking_remove_permissioned_validator_V1(c, &method->nested.staking_remove_permissioned_validator_V1))
+ CHECK_ERROR(_readMethod_staking_remove_permissioned_validator_V3(c, &method->nested.staking_remove_permissioned_validator_V3))
break;
case 4366: /* module 17 call 14 */
- CHECK_ERROR(_readMethod_staking_validate_cdd_expiry_nominators_V1(c, &method->nested.staking_validate_cdd_expiry_nominators_V1))
+ CHECK_ERROR(_readMethod_staking_validate_cdd_expiry_nominators_V3(c, &method->nested.staking_validate_cdd_expiry_nominators_V3))
break;
case 4367: /* module 17 call 15 */
- CHECK_ERROR(_readMethod_staking_set_commission_cap_V1(c, &method->nested.staking_set_commission_cap_V1))
+ CHECK_ERROR(_readMethod_staking_set_commission_cap_V3(c, &method->nested.staking_set_commission_cap_V3))
break;
case 4368: /* module 17 call 16 */
- CHECK_ERROR(_readMethod_staking_set_min_bond_threshold_V1(c, &method->nested.staking_set_min_bond_threshold_V1))
+ CHECK_ERROR(_readMethod_staking_set_min_bond_threshold_V3(c, &method->nested.staking_set_min_bond_threshold_V3))
break;
case 4369: /* module 17 call 17 */
- CHECK_ERROR(_readMethod_staking_force_no_eras_V1(c, &method->nested.staking_force_no_eras_V1))
+ CHECK_ERROR(_readMethod_staking_force_no_eras_V3(c, &method->nested.staking_force_no_eras_V3))
break;
case 4370: /* module 17 call 18 */
- CHECK_ERROR(_readMethod_staking_force_new_era_V1(c, &method->nested.staking_force_new_era_V1))
+ CHECK_ERROR(_readMethod_staking_force_new_era_V3(c, &method->nested.staking_force_new_era_V3))
break;
case 4371: /* module 17 call 19 */
- CHECK_ERROR(_readMethod_staking_set_invulnerables_V1(c, &method->nested.staking_set_invulnerables_V1))
+ CHECK_ERROR(_readMethod_staking_set_invulnerables_V3(c, &method->nested.staking_set_invulnerables_V3))
break;
case 4372: /* module 17 call 20 */
- CHECK_ERROR(_readMethod_staking_force_unstake_V1(c, &method->nested.staking_force_unstake_V1))
+ CHECK_ERROR(_readMethod_staking_force_unstake_V3(c, &method->nested.staking_force_unstake_V3))
break;
case 4373: /* module 17 call 21 */
- CHECK_ERROR(_readMethod_staking_force_new_era_always_V1(c, &method->nested.staking_force_new_era_always_V1))
+ CHECK_ERROR(_readMethod_staking_force_new_era_always_V3(c, &method->nested.staking_force_new_era_always_V3))
break;
case 4374: /* module 17 call 22 */
- CHECK_ERROR(_readMethod_staking_cancel_deferred_slash_V1(c, &method->nested.staking_cancel_deferred_slash_V1))
+ CHECK_ERROR(_readMethod_staking_cancel_deferred_slash_V3(c, &method->nested.staking_cancel_deferred_slash_V3))
break;
case 4375: /* module 17 call 23 */
- CHECK_ERROR(_readMethod_staking_payout_stakers_V1(c, &method->nested.staking_payout_stakers_V1))
+ CHECK_ERROR(_readMethod_staking_payout_stakers_V3(c, &method->nested.staking_payout_stakers_V3))
break;
case 4377: /* module 17 call 25 */
- CHECK_ERROR(_readMethod_staking_set_history_depth_V1(c, &method->nested.staking_set_history_depth_V1))
+ CHECK_ERROR(_readMethod_staking_set_history_depth_V3(c, &method->nested.staking_set_history_depth_V3))
break;
case 4378: /* module 17 call 26 */
- CHECK_ERROR(_readMethod_staking_reap_stash_V1(c, &method->nested.staking_reap_stash_V1))
+ CHECK_ERROR(_readMethod_staking_reap_stash_V3(c, &method->nested.staking_reap_stash_V3))
break;
case 4381: /* module 17 call 29 */
- CHECK_ERROR(_readMethod_staking_payout_stakers_by_system_V1(c, &method->nested.staking_payout_stakers_by_system_V1))
+ CHECK_ERROR(_readMethod_staking_payout_stakers_by_system_V3(c, &method->nested.staking_payout_stakers_by_system_V3))
break;
case 4382: /* module 17 call 30 */
- CHECK_ERROR(_readMethod_staking_change_slashing_allowed_for_V1(c, &method->nested.staking_change_slashing_allowed_for_V1))
+ CHECK_ERROR(_readMethod_staking_change_slashing_allowed_for_V3(c, &method->nested.staking_change_slashing_allowed_for_V3))
break;
case 4383: /* module 17 call 31 */
- CHECK_ERROR(_readMethod_staking_update_permissioned_validator_intended_count_V1(c, &method->nested.staking_update_permissioned_validator_intended_count_V1))
+ CHECK_ERROR(_readMethod_staking_update_permissioned_validator_intended_count_V3(c, &method->nested.staking_update_permissioned_validator_intended_count_V3))
break;
case 4864: /* module 19 call 0 */
- CHECK_ERROR(_readMethod_session_set_keys_V1(c, &method->nested.session_set_keys_V1))
+ CHECK_ERROR(_readMethod_session_set_keys_V3(c, &method->nested.session_set_keys_V3))
break;
case 4865: /* module 19 call 1 */
- CHECK_ERROR(_readMethod_session_purge_keys_V1(c, &method->nested.session_purge_keys_V1))
+ CHECK_ERROR(_readMethod_session_purge_keys_V3(c, &method->nested.session_purge_keys_V3))
break;
case 5378: /* module 21 call 2 */
- CHECK_ERROR(_readMethod_grandpa_note_stalled_V1(c, &method->nested.grandpa_note_stalled_V1))
+ CHECK_ERROR(_readMethod_grandpa_note_stalled_V3(c, &method->nested.grandpa_note_stalled_V3))
break;
case 6403: /* module 25 call 3 */
- CHECK_ERROR(_readMethod_sudo_sudo_as_V1(c, &method->nested.sudo_sudo_as_V1))
+ CHECK_ERROR(_readMethod_sudo_sudo_as_V3(c, &method->nested.sudo_sudo_as_V3))
break;
case 6656: /* module 26 call 0 */
- CHECK_ERROR(_readMethod_asset_register_ticker_V1(c, &method->nested.asset_register_ticker_V1))
+ CHECK_ERROR(_readMethod_asset_register_ticker_V3(c, &method->nested.asset_register_ticker_V3))
break;
case 6657: /* module 26 call 1 */
- CHECK_ERROR(_readMethod_asset_accept_ticker_transfer_V1(c, &method->nested.asset_accept_ticker_transfer_V1))
+ CHECK_ERROR(_readMethod_asset_accept_ticker_transfer_V3(c, &method->nested.asset_accept_ticker_transfer_V3))
break;
case 6658: /* module 26 call 2 */
- CHECK_ERROR(_readMethod_asset_accept_asset_ownership_transfer_V1(c, &method->nested.asset_accept_asset_ownership_transfer_V1))
+ CHECK_ERROR(_readMethod_asset_accept_asset_ownership_transfer_V3(c, &method->nested.asset_accept_asset_ownership_transfer_V3))
break;
case 6659: /* module 26 call 3 */
- CHECK_ERROR(_readMethod_asset_create_asset_V1(c, &method->nested.asset_create_asset_V1))
+ CHECK_ERROR(_readMethod_asset_create_asset_V3(c, &method->nested.asset_create_asset_V3))
break;
case 6660: /* module 26 call 4 */
- CHECK_ERROR(_readMethod_asset_freeze_V1(c, &method->nested.asset_freeze_V1))
+ CHECK_ERROR(_readMethod_asset_freeze_V3(c, &method->nested.asset_freeze_V3))
break;
case 6661: /* module 26 call 5 */
- CHECK_ERROR(_readMethod_asset_unfreeze_V1(c, &method->nested.asset_unfreeze_V1))
+ CHECK_ERROR(_readMethod_asset_unfreeze_V3(c, &method->nested.asset_unfreeze_V3))
break;
case 6662: /* module 26 call 6 */
- CHECK_ERROR(_readMethod_asset_rename_asset_V1(c, &method->nested.asset_rename_asset_V1))
+ CHECK_ERROR(_readMethod_asset_rename_asset_V3(c, &method->nested.asset_rename_asset_V3))
break;
case 6663: /* module 26 call 7 */
- CHECK_ERROR(_readMethod_asset_issue_V1(c, &method->nested.asset_issue_V1))
+ CHECK_ERROR(_readMethod_asset_issue_V3(c, &method->nested.asset_issue_V3))
break;
case 6664: /* module 26 call 8 */
- CHECK_ERROR(_readMethod_asset_redeem_V1(c, &method->nested.asset_redeem_V1))
+ CHECK_ERROR(_readMethod_asset_redeem_V3(c, &method->nested.asset_redeem_V3))
break;
case 6665: /* module 26 call 9 */
- CHECK_ERROR(_readMethod_asset_make_divisible_V1(c, &method->nested.asset_make_divisible_V1))
+ CHECK_ERROR(_readMethod_asset_make_divisible_V3(c, &method->nested.asset_make_divisible_V3))
break;
case 6666: /* module 26 call 10 */
- CHECK_ERROR(_readMethod_asset_add_documents_V1(c, &method->nested.asset_add_documents_V1))
+ CHECK_ERROR(_readMethod_asset_add_documents_V3(c, &method->nested.asset_add_documents_V3))
break;
case 6667: /* module 26 call 11 */
- CHECK_ERROR(_readMethod_asset_remove_documents_V1(c, &method->nested.asset_remove_documents_V1))
+ CHECK_ERROR(_readMethod_asset_remove_documents_V3(c, &method->nested.asset_remove_documents_V3))
break;
case 6668: /* module 26 call 12 */
- CHECK_ERROR(_readMethod_asset_set_funding_round_V1(c, &method->nested.asset_set_funding_round_V1))
+ CHECK_ERROR(_readMethod_asset_set_funding_round_V3(c, &method->nested.asset_set_funding_round_V3))
break;
case 6669: /* module 26 call 13 */
- CHECK_ERROR(_readMethod_asset_update_identifiers_V1(c, &method->nested.asset_update_identifiers_V1))
+ CHECK_ERROR(_readMethod_asset_update_identifiers_V3(c, &method->nested.asset_update_identifiers_V3))
break;
case 6670: /* module 26 call 14 */
- CHECK_ERROR(_readMethod_asset_claim_classic_ticker_V1(c, &method->nested.asset_claim_classic_ticker_V1))
+ CHECK_ERROR(_readMethod_asset_claim_classic_ticker_V3(c, &method->nested.asset_claim_classic_ticker_V3))
break;
case 6671: /* module 26 call 15 */
- CHECK_ERROR(_readMethod_asset_reserve_classic_ticker_V1(c, &method->nested.asset_reserve_classic_ticker_V1))
+ CHECK_ERROR(_readMethod_asset_reserve_classic_ticker_V3(c, &method->nested.asset_reserve_classic_ticker_V3))
break;
case 6672: /* module 26 call 16 */
- CHECK_ERROR(_readMethod_asset_controller_transfer_V1(c, &method->basic.asset_controller_transfer_V1))
+ CHECK_ERROR(_readMethod_asset_controller_transfer_V3(c, &method->basic.asset_controller_transfer_V3))
break;
case 6673: /* module 26 call 17 */
- CHECK_ERROR(_readMethod_asset_register_custom_asset_type_V1(c, &method->basic.asset_register_custom_asset_type_V1))
+ CHECK_ERROR(_readMethod_asset_register_custom_asset_type_V3(c, &method->basic.asset_register_custom_asset_type_V3))
+ break;
+ case 6674: /* module 26 call 18 */
+ CHECK_ERROR(_readMethod_asset_create_asset_with_custom_type_V3(c, &method->basic.asset_create_asset_with_custom_type_V3))
+ break;
+ case 6675: /* module 26 call 19 */
+ CHECK_ERROR(_readMethod_asset_set_asset_metadata_V3(c, &method->basic.asset_set_asset_metadata_V3))
+ break;
+ case 6676: /* module 26 call 20 */
+ CHECK_ERROR(_readMethod_asset_set_asset_metadata_details_V3(c, &method->basic.asset_set_asset_metadata_details_V3))
+ break;
+ case 6677: /* module 26 call 21 */
+ CHECK_ERROR(_readMethod_asset_register_and_set_local_asset_metadata_V3(c, &method->basic.asset_register_and_set_local_asset_metadata_V3))
+ break;
+ case 6678: /* module 26 call 22 */
+ CHECK_ERROR(_readMethod_asset_register_asset_metadata_local_type_V3(c, &method->basic.asset_register_asset_metadata_local_type_V3))
+ break;
+ case 6679: /* module 26 call 23 */
+ CHECK_ERROR(_readMethod_asset_register_asset_metadata_global_type_V3(c, &method->basic.asset_register_asset_metadata_global_type_V3))
break;
case 6912: /* module 27 call 0 */
- CHECK_ERROR(_readMethod_capitaldistribution_distribute_V1(c, &method->nested.capitaldistribution_distribute_V1))
+ CHECK_ERROR(_readMethod_capitaldistribution_distribute_V3(c, &method->nested.capitaldistribution_distribute_V3))
break;
case 6913: /* module 27 call 1 */
- CHECK_ERROR(_readMethod_capitaldistribution_claim_V1(c, &method->nested.capitaldistribution_claim_V1))
+ CHECK_ERROR(_readMethod_capitaldistribution_claim_V3(c, &method->nested.capitaldistribution_claim_V3))
break;
case 6914: /* module 27 call 2 */
- CHECK_ERROR(_readMethod_capitaldistribution_push_benefit_V1(c, &method->nested.capitaldistribution_push_benefit_V1))
+ CHECK_ERROR(_readMethod_capitaldistribution_push_benefit_V3(c, &method->nested.capitaldistribution_push_benefit_V3))
break;
case 6915: /* module 27 call 3 */
- CHECK_ERROR(_readMethod_capitaldistribution_reclaim_V1(c, &method->nested.capitaldistribution_reclaim_V1))
+ CHECK_ERROR(_readMethod_capitaldistribution_reclaim_V3(c, &method->nested.capitaldistribution_reclaim_V3))
break;
case 6916: /* module 27 call 4 */
- CHECK_ERROR(_readMethod_capitaldistribution_remove_distribution_V1(c, &method->nested.capitaldistribution_remove_distribution_V1))
+ CHECK_ERROR(_readMethod_capitaldistribution_remove_distribution_V3(c, &method->nested.capitaldistribution_remove_distribution_V3))
break;
case 7168: /* module 28 call 0 */
- CHECK_ERROR(_readMethod_checkpoint_create_checkpoint_V1(c, &method->nested.checkpoint_create_checkpoint_V1))
+ CHECK_ERROR(_readMethod_checkpoint_create_checkpoint_V3(c, &method->nested.checkpoint_create_checkpoint_V3))
break;
case 7169: /* module 28 call 1 */
- CHECK_ERROR(_readMethod_checkpoint_set_schedules_max_complexity_V1(c, &method->nested.checkpoint_set_schedules_max_complexity_V1))
+ CHECK_ERROR(_readMethod_checkpoint_set_schedules_max_complexity_V3(c, &method->nested.checkpoint_set_schedules_max_complexity_V3))
break;
case 7170: /* module 28 call 2 */
- CHECK_ERROR(_readMethod_checkpoint_create_schedule_V1(c, &method->nested.checkpoint_create_schedule_V1))
+ CHECK_ERROR(_readMethod_checkpoint_create_schedule_V3(c, &method->nested.checkpoint_create_schedule_V3))
break;
case 7171: /* module 28 call 3 */
- CHECK_ERROR(_readMethod_checkpoint_remove_schedule_V1(c, &method->nested.checkpoint_remove_schedule_V1))
+ CHECK_ERROR(_readMethod_checkpoint_remove_schedule_V3(c, &method->nested.checkpoint_remove_schedule_V3))
break;
case 7424: /* module 29 call 0 */
- CHECK_ERROR(_readMethod_compliancemanager_add_compliance_requirement_V1(c, &method->nested.compliancemanager_add_compliance_requirement_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_add_compliance_requirement_V3(c, &method->nested.compliancemanager_add_compliance_requirement_V3))
break;
case 7425: /* module 29 call 1 */
- CHECK_ERROR(_readMethod_compliancemanager_remove_compliance_requirement_V1(c, &method->nested.compliancemanager_remove_compliance_requirement_V1))
- break;
- case 7426: /* module 29 call 2 */
- CHECK_ERROR(_readMethod_compliancemanager_replace_asset_compliance_V1(c, &method->nested.compliancemanager_replace_asset_compliance_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_remove_compliance_requirement_V3(c, &method->nested.compliancemanager_remove_compliance_requirement_V3))
break;
case 7427: /* module 29 call 3 */
- CHECK_ERROR(_readMethod_compliancemanager_reset_asset_compliance_V1(c, &method->nested.compliancemanager_reset_asset_compliance_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_reset_asset_compliance_V3(c, &method->nested.compliancemanager_reset_asset_compliance_V3))
break;
case 7428: /* module 29 call 4 */
- CHECK_ERROR(_readMethod_compliancemanager_pause_asset_compliance_V1(c, &method->nested.compliancemanager_pause_asset_compliance_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_pause_asset_compliance_V3(c, &method->nested.compliancemanager_pause_asset_compliance_V3))
break;
case 7429: /* module 29 call 5 */
- CHECK_ERROR(_readMethod_compliancemanager_resume_asset_compliance_V1(c, &method->nested.compliancemanager_resume_asset_compliance_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_resume_asset_compliance_V3(c, &method->nested.compliancemanager_resume_asset_compliance_V3))
break;
case 7430: /* module 29 call 6 */
- CHECK_ERROR(_readMethod_compliancemanager_add_default_trusted_claim_issuer_V1(c, &method->nested.compliancemanager_add_default_trusted_claim_issuer_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_add_default_trusted_claim_issuer_V3(c, &method->nested.compliancemanager_add_default_trusted_claim_issuer_V3))
break;
case 7431: /* module 29 call 7 */
- CHECK_ERROR(_readMethod_compliancemanager_remove_default_trusted_claim_issuer_V1(c, &method->nested.compliancemanager_remove_default_trusted_claim_issuer_V1))
- break;
- case 7432: /* module 29 call 8 */
- CHECK_ERROR(_readMethod_compliancemanager_change_compliance_requirement_V1(c, &method->nested.compliancemanager_change_compliance_requirement_V1))
+ CHECK_ERROR(_readMethod_compliancemanager_remove_default_trusted_claim_issuer_V3(c, &method->nested.compliancemanager_remove_default_trusted_claim_issuer_V3))
break;
case 7680: /* module 30 call 0 */
- CHECK_ERROR(_readMethod_corporateaction_set_max_details_length_V1(c, &method->nested.corporateaction_set_max_details_length_V1))
+ CHECK_ERROR(_readMethod_corporateaction_set_max_details_length_V3(c, &method->nested.corporateaction_set_max_details_length_V3))
break;
case 7681: /* module 30 call 1 */
- CHECK_ERROR(_readMethod_corporateaction_set_default_targets_V1(c, &method->nested.corporateaction_set_default_targets_V1))
+ CHECK_ERROR(_readMethod_corporateaction_set_default_targets_V3(c, &method->nested.corporateaction_set_default_targets_V3))
break;
case 7682: /* module 30 call 2 */
- CHECK_ERROR(_readMethod_corporateaction_set_default_withholding_tax_V1(c, &method->nested.corporateaction_set_default_withholding_tax_V1))
+ CHECK_ERROR(_readMethod_corporateaction_set_default_withholding_tax_V3(c, &method->nested.corporateaction_set_default_withholding_tax_V3))
break;
case 7683: /* module 30 call 3 */
- CHECK_ERROR(_readMethod_corporateaction_set_did_withholding_tax_V1(c, &method->nested.corporateaction_set_did_withholding_tax_V1))
+ CHECK_ERROR(_readMethod_corporateaction_set_did_withholding_tax_V3(c, &method->nested.corporateaction_set_did_withholding_tax_V3))
break;
case 7684: /* module 30 call 4 */
- CHECK_ERROR(_readMethod_corporateaction_initiate_corporate_action_V1(c, &method->nested.corporateaction_initiate_corporate_action_V1))
+ CHECK_ERROR(_readMethod_corporateaction_initiate_corporate_action_V3(c, &method->nested.corporateaction_initiate_corporate_action_V3))
break;
case 7685: /* module 30 call 5 */
- CHECK_ERROR(_readMethod_corporateaction_link_ca_doc_V1(c, &method->nested.corporateaction_link_ca_doc_V1))
+ CHECK_ERROR(_readMethod_corporateaction_link_ca_doc_V3(c, &method->nested.corporateaction_link_ca_doc_V3))
break;
case 7686: /* module 30 call 6 */
- CHECK_ERROR(_readMethod_corporateaction_remove_ca_V1(c, &method->nested.corporateaction_remove_ca_V1))
+ CHECK_ERROR(_readMethod_corporateaction_remove_ca_V3(c, &method->nested.corporateaction_remove_ca_V3))
break;
case 7687: /* module 30 call 7 */
- CHECK_ERROR(_readMethod_corporateaction_change_record_date_V1(c, &method->nested.corporateaction_change_record_date_V1))
+ CHECK_ERROR(_readMethod_corporateaction_change_record_date_V3(c, &method->nested.corporateaction_change_record_date_V3))
break;
case 7936: /* module 31 call 0 */
- CHECK_ERROR(_readMethod_corporateballot_attach_ballot_V1(c, &method->nested.corporateballot_attach_ballot_V1))
+ CHECK_ERROR(_readMethod_corporateballot_attach_ballot_V3(c, &method->nested.corporateballot_attach_ballot_V3))
break;
case 7937: /* module 31 call 1 */
- CHECK_ERROR(_readMethod_corporateballot_vote_V1(c, &method->nested.corporateballot_vote_V1))
+ CHECK_ERROR(_readMethod_corporateballot_vote_V3(c, &method->nested.corporateballot_vote_V3))
break;
case 7938: /* module 31 call 2 */
- CHECK_ERROR(_readMethod_corporateballot_change_end_V1(c, &method->nested.corporateballot_change_end_V1))
+ CHECK_ERROR(_readMethod_corporateballot_change_end_V3(c, &method->nested.corporateballot_change_end_V3))
break;
case 7939: /* module 31 call 3 */
- CHECK_ERROR(_readMethod_corporateballot_change_meta_V1(c, &method->nested.corporateballot_change_meta_V1))
+ CHECK_ERROR(_readMethod_corporateballot_change_meta_V3(c, &method->nested.corporateballot_change_meta_V3))
break;
case 7940: /* module 31 call 4 */
- CHECK_ERROR(_readMethod_corporateballot_change_rcv_V1(c, &method->nested.corporateballot_change_rcv_V1))
+ CHECK_ERROR(_readMethod_corporateballot_change_rcv_V3(c, &method->nested.corporateballot_change_rcv_V3))
break;
case 7941: /* module 31 call 5 */
- CHECK_ERROR(_readMethod_corporateballot_remove_ballot_V1(c, &method->nested.corporateballot_remove_ballot_V1))
+ CHECK_ERROR(_readMethod_corporateballot_remove_ballot_V3(c, &method->nested.corporateballot_remove_ballot_V3))
break;
case 8448: /* module 33 call 0 */
- CHECK_ERROR(_readMethod_pips_set_prune_historical_pips_V1(c, &method->nested.pips_set_prune_historical_pips_V1))
+ CHECK_ERROR(_readMethod_pips_set_prune_historical_pips_V3(c, &method->nested.pips_set_prune_historical_pips_V3))
break;
case 8449: /* module 33 call 1 */
- CHECK_ERROR(_readMethod_pips_set_min_proposal_deposit_V1(c, &method->nested.pips_set_min_proposal_deposit_V1))
+ CHECK_ERROR(_readMethod_pips_set_min_proposal_deposit_V3(c, &method->nested.pips_set_min_proposal_deposit_V3))
break;
case 8450: /* module 33 call 2 */
- CHECK_ERROR(_readMethod_pips_set_default_enactment_period_V1(c, &method->nested.pips_set_default_enactment_period_V1))
+ CHECK_ERROR(_readMethod_pips_set_default_enactment_period_V3(c, &method->nested.pips_set_default_enactment_period_V3))
break;
case 8451: /* module 33 call 3 */
- CHECK_ERROR(_readMethod_pips_set_pending_pip_expiry_V1(c, &method->nested.pips_set_pending_pip_expiry_V1))
+ CHECK_ERROR(_readMethod_pips_set_pending_pip_expiry_V3(c, &method->nested.pips_set_pending_pip_expiry_V3))
break;
case 8452: /* module 33 call 4 */
- CHECK_ERROR(_readMethod_pips_set_max_pip_skip_count_V1(c, &method->nested.pips_set_max_pip_skip_count_V1))
+ CHECK_ERROR(_readMethod_pips_set_max_pip_skip_count_V3(c, &method->nested.pips_set_max_pip_skip_count_V3))
break;
case 8453: /* module 33 call 5 */
- CHECK_ERROR(_readMethod_pips_set_active_pip_limit_V1(c, &method->nested.pips_set_active_pip_limit_V1))
+ CHECK_ERROR(_readMethod_pips_set_active_pip_limit_V3(c, &method->nested.pips_set_active_pip_limit_V3))
break;
case 8456: /* module 33 call 8 */
- CHECK_ERROR(_readMethod_pips_approve_committee_proposal_V1(c, &method->nested.pips_approve_committee_proposal_V1))
+ CHECK_ERROR(_readMethod_pips_approve_committee_proposal_V3(c, &method->nested.pips_approve_committee_proposal_V3))
break;
case 8457: /* module 33 call 9 */
- CHECK_ERROR(_readMethod_pips_reject_proposal_V1(c, &method->nested.pips_reject_proposal_V1))
+ CHECK_ERROR(_readMethod_pips_reject_proposal_V3(c, &method->nested.pips_reject_proposal_V3))
break;
case 8458: /* module 33 call 10 */
- CHECK_ERROR(_readMethod_pips_prune_proposal_V1(c, &method->nested.pips_prune_proposal_V1))
+ CHECK_ERROR(_readMethod_pips_prune_proposal_V3(c, &method->nested.pips_prune_proposal_V3))
break;
case 8459: /* module 33 call 11 */
- CHECK_ERROR(_readMethod_pips_reschedule_execution_V1(c, &method->nested.pips_reschedule_execution_V1))
+ CHECK_ERROR(_readMethod_pips_reschedule_execution_V3(c, &method->nested.pips_reschedule_execution_V3))
break;
case 8460: /* module 33 call 12 */
- CHECK_ERROR(_readMethod_pips_clear_snapshot_V1(c, &method->nested.pips_clear_snapshot_V1))
+ CHECK_ERROR(_readMethod_pips_clear_snapshot_V3(c, &method->nested.pips_clear_snapshot_V3))
break;
case 8461: /* module 33 call 13 */
- CHECK_ERROR(_readMethod_pips_snapshot_V1(c, &method->nested.pips_snapshot_V1))
+ CHECK_ERROR(_readMethod_pips_snapshot_V3(c, &method->nested.pips_snapshot_V3))
break;
case 8462: /* module 33 call 14 */
- CHECK_ERROR(_readMethod_pips_enact_snapshot_results_V1(c, &method->nested.pips_enact_snapshot_results_V1))
+ CHECK_ERROR(_readMethod_pips_enact_snapshot_results_V3(c, &method->nested.pips_enact_snapshot_results_V3))
break;
case 8463: /* module 33 call 15 */
- CHECK_ERROR(_readMethod_pips_execute_scheduled_pip_V1(c, &method->nested.pips_execute_scheduled_pip_V1))
+ CHECK_ERROR(_readMethod_pips_execute_scheduled_pip_V3(c, &method->nested.pips_execute_scheduled_pip_V3))
break;
case 8464: /* module 33 call 16 */
- CHECK_ERROR(_readMethod_pips_expire_scheduled_pip_V1(c, &method->nested.pips_expire_scheduled_pip_V1))
+ CHECK_ERROR(_readMethod_pips_expire_scheduled_pip_V3(c, &method->nested.pips_expire_scheduled_pip_V3))
break;
case 8704: /* module 34 call 0 */
- CHECK_ERROR(_readMethod_portfolio_create_portfolio_V1(c, &method->nested.portfolio_create_portfolio_V1))
+ CHECK_ERROR(_readMethod_portfolio_create_portfolio_V3(c, &method->nested.portfolio_create_portfolio_V3))
break;
case 8705: /* module 34 call 1 */
- CHECK_ERROR(_readMethod_portfolio_delete_portfolio_V1(c, &method->nested.portfolio_delete_portfolio_V1))
+ CHECK_ERROR(_readMethod_portfolio_delete_portfolio_V3(c, &method->nested.portfolio_delete_portfolio_V3))
break;
case 8706: /* module 34 call 2 */
- CHECK_ERROR(_readMethod_portfolio_move_portfolio_funds_V1(c, &method->nested.portfolio_move_portfolio_funds_V1))
+ CHECK_ERROR(_readMethod_portfolio_move_portfolio_funds_V3(c, &method->nested.portfolio_move_portfolio_funds_V3))
break;
case 8707: /* module 34 call 3 */
- CHECK_ERROR(_readMethod_portfolio_rename_portfolio_V1(c, &method->nested.portfolio_rename_portfolio_V1))
+ CHECK_ERROR(_readMethod_portfolio_rename_portfolio_V3(c, &method->nested.portfolio_rename_portfolio_V3))
break;
case 8708: /* module 34 call 4 */
- CHECK_ERROR(_readMethod_portfolio_quit_portfolio_custody_V1(c, &method->basic.portfolio_quit_portfolio_custody_V1))
+ CHECK_ERROR(_readMethod_portfolio_quit_portfolio_custody_V3(c, &method->basic.portfolio_quit_portfolio_custody_V3))
break;
case 8709: /* module 34 call 5 */
- CHECK_ERROR(_readMethod_portfolio_accept_portfolio_custody_V1(c, &method->basic.portfolio_accept_portfolio_custody_V1))
+ CHECK_ERROR(_readMethod_portfolio_accept_portfolio_custody_V3(c, &method->basic.portfolio_accept_portfolio_custody_V3))
break;
case 8960: /* module 35 call 0 */
- CHECK_ERROR(_readMethod_protocolfee_change_coefficient_V1(c, &method->nested.protocolfee_change_coefficient_V1))
+ CHECK_ERROR(_readMethod_protocolfee_change_coefficient_V3(c, &method->nested.protocolfee_change_coefficient_V3))
break;
case 9472: /* module 37 call 0 */
- CHECK_ERROR(_readMethod_settlement_create_venue_V1(c, &method->nested.settlement_create_venue_V1))
+ CHECK_ERROR(_readMethod_settlement_create_venue_V3(c, &method->nested.settlement_create_venue_V3))
+ break;
+ case 9473: /* module 37 call 1 */
+ CHECK_ERROR(_readMethod_settlement_update_venue_details_V3(c, &method->basic.settlement_update_venue_details_V3))
+ break;
+ case 9474: /* module 37 call 2 */
+ CHECK_ERROR(_readMethod_settlement_update_venue_type_V3(c, &method->basic.settlement_update_venue_type_V3))
+ break;
+ case 9475: /* module 37 call 3 */
+ CHECK_ERROR(_readMethod_settlement_add_instruction_V3(c, &method->nested.settlement_add_instruction_V3))
+ break;
+ case 9476: /* module 37 call 4 */
+ CHECK_ERROR(_readMethod_settlement_add_and_affirm_instruction_V3(c, &method->nested.settlement_add_and_affirm_instruction_V3))
+ break;
+ case 9477: /* module 37 call 5 */
+ CHECK_ERROR(_readMethod_settlement_affirm_instruction_V3(c, &method->nested.settlement_affirm_instruction_V3))
+ break;
+ case 9478: /* module 37 call 6 */
+ CHECK_ERROR(_readMethod_settlement_withdraw_affirmation_V3(c, &method->nested.settlement_withdraw_affirmation_V3))
+ break;
+ case 9479: /* module 37 call 7 */
+ CHECK_ERROR(_readMethod_settlement_reject_instruction_V3(c, &method->nested.settlement_reject_instruction_V3))
+ break;
+ case 9480: /* module 37 call 8 */
+ CHECK_ERROR(_readMethod_settlement_affirm_with_receipts_V3(c, &method->nested.settlement_affirm_with_receipts_V3))
+ break;
+ case 9481: /* module 37 call 9 */
+ CHECK_ERROR(_readMethod_settlement_claim_receipt_V3(c, &method->nested.settlement_claim_receipt_V3))
+ break;
+ case 9482: /* module 37 call 10 */
+ CHECK_ERROR(_readMethod_settlement_unclaim_receipt_V3(c, &method->nested.settlement_unclaim_receipt_V3))
break;
case 9483: /* module 37 call 11 */
- CHECK_ERROR(_readMethod_settlement_set_venue_filtering_V1(c, &method->nested.settlement_set_venue_filtering_V1))
+ CHECK_ERROR(_readMethod_settlement_set_venue_filtering_V3(c, &method->nested.settlement_set_venue_filtering_V3))
+ break;
+ case 9484: /* module 37 call 12 */
+ CHECK_ERROR(_readMethod_settlement_allow_venues_V3(c, &method->nested.settlement_allow_venues_V3))
+ break;
+ case 9485: /* module 37 call 13 */
+ CHECK_ERROR(_readMethod_settlement_disallow_venues_V3(c, &method->nested.settlement_disallow_venues_V3))
break;
case 9486: /* module 37 call 14 */
- CHECK_ERROR(_readMethod_settlement_change_receipt_validity_V1(c, &method->basic.settlement_change_receipt_validity_V1))
+ CHECK_ERROR(_readMethod_settlement_change_receipt_validity_V3(c, &method->basic.settlement_change_receipt_validity_V3))
+ break;
+ case 9487: /* module 37 call 15 */
+ CHECK_ERROR(_readMethod_settlement_execute_scheduled_instruction_V3(c, &method->nested.settlement_execute_scheduled_instruction_V3))
+ break;
+ case 9488: /* module 37 call 16 */
+ CHECK_ERROR(_readMethod_settlement_reschedule_instruction_V3(c, &method->basic.settlement_reschedule_instruction_V3))
+ break;
+ case 9984: /* module 39 call 0 */
+ CHECK_ERROR(_readMethod_sto_create_fundraiser_V3(c, &method->basic.sto_create_fundraiser_V3))
+ break;
+ case 9985: /* module 39 call 1 */
+ CHECK_ERROR(_readMethod_sto_invest_V3(c, &method->basic.sto_invest_V3))
break;
- case 9728: /* module 38 call 0 */
- CHECK_ERROR(_readMethod_statistics_add_transfer_manager_V1(c, &method->nested.statistics_add_transfer_manager_V1))
+ case 9986: /* module 39 call 2 */
+ CHECK_ERROR(_readMethod_sto_freeze_fundraiser_V3(c, &method->basic.sto_freeze_fundraiser_V3))
break;
- case 9729: /* module 38 call 1 */
- CHECK_ERROR(_readMethod_statistics_remove_transfer_manager_V1(c, &method->nested.statistics_remove_transfer_manager_V1))
+ case 9987: /* module 39 call 3 */
+ CHECK_ERROR(_readMethod_sto_unfreeze_fundraiser_V3(c, &method->basic.sto_unfreeze_fundraiser_V3))
break;
- case 9730: /* module 38 call 2 */
- CHECK_ERROR(_readMethod_statistics_add_exempted_entities_V1(c, &method->nested.statistics_add_exempted_entities_V1))
+ case 9988: /* module 39 call 4 */
+ CHECK_ERROR(_readMethod_sto_modify_fundraiser_window_V3(c, &method->basic.sto_modify_fundraiser_window_V3))
break;
- case 9731: /* module 38 call 3 */
- CHECK_ERROR(_readMethod_statistics_remove_exempted_entities_V1(c, &method->nested.statistics_remove_exempted_entities_V1))
+ case 9989: /* module 39 call 5 */
+ CHECK_ERROR(_readMethod_sto_stop_V3(c, &method->basic.sto_stop_V3))
break;
case 10240: /* module 40 call 0 */
- CHECK_ERROR(_readMethod_treasury_disbursement_V1(c, &method->nested.treasury_disbursement_V1))
+ CHECK_ERROR(_readMethod_treasury_disbursement_V3(c, &method->nested.treasury_disbursement_V3))
break;
case 10241: /* module 40 call 1 */
- CHECK_ERROR(_readMethod_treasury_reimbursement_V1(c, &method->nested.treasury_reimbursement_V1))
+ CHECK_ERROR(_readMethod_treasury_reimbursement_V3(c, &method->nested.treasury_reimbursement_V3))
break;
case 10499: /* module 41 call 3 */
- CHECK_ERROR(_readMethod_utility_relay_tx_V1(c, &method->nested.utility_relay_tx_V1))
+ CHECK_ERROR(_readMethod_utility_relay_tx_V3(c, &method->nested.utility_relay_tx_V3))
break;
case 11010: /* module 43 call 2 */
- CHECK_ERROR(_readMethod_externalagents_remove_agent_V1(c, &method->basic.externalagents_remove_agent_V1))
+ CHECK_ERROR(_readMethod_externalagents_remove_agent_V3(c, &method->basic.externalagents_remove_agent_V3))
break;
case 11011: /* module 43 call 3 */
- CHECK_ERROR(_readMethod_externalagents_abdicate_V1(c, &method->basic.externalagents_abdicate_V1))
+ CHECK_ERROR(_readMethod_externalagents_abdicate_V3(c, &method->basic.externalagents_abdicate_V3))
break;
case 11013: /* module 43 call 5 */
- CHECK_ERROR(_readMethod_externalagents_accept_become_agent_V1(c, &method->basic.externalagents_accept_become_agent_V1))
+ CHECK_ERROR(_readMethod_externalagents_accept_become_agent_V3(c, &method->basic.externalagents_accept_become_agent_V3))
+ break;
+ case 11014: /* module 43 call 6 */
+ CHECK_ERROR(_readMethod_externalagents_create_group_and_add_auth_V3(c, &method->basic.externalagents_create_group_and_add_auth_V3))
+ break;
+ case 11015: /* module 43 call 7 */
+ CHECK_ERROR(_readMethod_externalagents_create_and_change_custom_group_V3(c, &method->basic.externalagents_create_and_change_custom_group_V3))
break;
case 11264: /* module 44 call 0 */
- CHECK_ERROR(_readMethod_relayer_set_paying_key_V1(c, &method->basic.relayer_set_paying_key_V1))
+ CHECK_ERROR(_readMethod_relayer_set_paying_key_V3(c, &method->basic.relayer_set_paying_key_V3))
break;
case 11265: /* module 44 call 1 */
- CHECK_ERROR(_readMethod_relayer_accept_paying_key_V1(c, &method->basic.relayer_accept_paying_key_V1))
+ CHECK_ERROR(_readMethod_relayer_accept_paying_key_V3(c, &method->basic.relayer_accept_paying_key_V3))
break;
case 11266: /* module 44 call 2 */
- CHECK_ERROR(_readMethod_relayer_remove_paying_key_V1(c, &method->basic.relayer_remove_paying_key_V1))
+ CHECK_ERROR(_readMethod_relayer_remove_paying_key_V3(c, &method->basic.relayer_remove_paying_key_V3))
break;
case 11267: /* module 44 call 3 */
- CHECK_ERROR(_readMethod_relayer_update_polyx_limit_V1(c, &method->basic.relayer_update_polyx_limit_V1))
+ CHECK_ERROR(_readMethod_relayer_update_polyx_limit_V3(c, &method->basic.relayer_update_polyx_limit_V3))
break;
case 11268: /* module 44 call 4 */
- CHECK_ERROR(_readMethod_relayer_increase_polyx_limit_V1(c, &method->basic.relayer_increase_polyx_limit_V1))
+ CHECK_ERROR(_readMethod_relayer_increase_polyx_limit_V3(c, &method->basic.relayer_increase_polyx_limit_V3))
break;
case 11269: /* module 44 call 5 */
- CHECK_ERROR(_readMethod_relayer_decrease_polyx_limit_V1(c, &method->basic.relayer_decrease_polyx_limit_V1))
+ CHECK_ERROR(_readMethod_relayer_decrease_polyx_limit_V3(c, &method->basic.relayer_decrease_polyx_limit_V3))
break;
case 11520: /* module 45 call 0 */
- CHECK_ERROR(_readMethod_rewards_claim_itn_reward_V1(c, &method->basic.rewards_claim_itn_reward_V1))
+ CHECK_ERROR(_readMethod_rewards_claim_itn_reward_V3(c, &method->basic.rewards_claim_itn_reward_V3))
break;
-#endif
- default:
- return parser_unexpected_callIndex;
- }
-
- return parser_ok;
-}
-
-/////////////////////////////////////////////////////////////////////////////////
+ case 11776: /* module 46 call 0 */
+ CHECK_ERROR(_readMethod_contracts_call_V3(c, &method->nested.contracts_call_V3))
+ break;
+ case 11777: /* module 46 call 1 */
+ CHECK_ERROR(_readMethod_contracts_instantiate_with_code_V3(c, &method->basic.contracts_instantiate_with_code_V3))
+ break;
+ case 11778: /* module 46 call 2 */
+ CHECK_ERROR(_readMethod_contracts_instantiate_V3(c, &method->nested.contracts_instantiate_V3))
+ break;
+ case 11779: /* module 46 call 3 */
+ CHECK_ERROR(_readMethod_contracts_upload_code_V3(c, &method->basic.contracts_upload_code_V3))
+ break;
+ case 11780: /* module 46 call 4 */
+ CHECK_ERROR(_readMethod_contracts_remove_code_V3(c, &method->basic.contracts_remove_code_V3))
+ break;
+ case 12032: /* module 47 call 0 */
+ CHECK_ERROR(_readMethod_polymeshcontracts_instantiate_with_code_perms_V3(c, &method->basic.polymeshcontracts_instantiate_with_code_perms_V3))
+ break;
+ case 12033: /* module 47 call 1 */
+ CHECK_ERROR(_readMethod_polymeshcontracts_instantiate_with_hash_perms_V3(c, &method->basic.polymeshcontracts_instantiate_with_hash_perms_V3))
+ break;
+ case 12288: /* module 48 call 0 */
+ CHECK_ERROR(_readMethod_preimage_note_preimage_V3(c, &method->basic.preimage_note_preimage_V3))
+ break;
+ case 12289: /* module 48 call 1 */
+ CHECK_ERROR(_readMethod_preimage_unnote_preimage_V3(c, &method->basic.preimage_unnote_preimage_V3))
+ break;
+ case 12290: /* module 48 call 2 */
+ CHECK_ERROR(_readMethod_preimage_request_preimage_V3(c, &method->basic.preimage_request_preimage_V3))
+ break;
+ case 12291: /* module 48 call 3 */
+ CHECK_ERROR(_readMethod_preimage_unrequest_preimage_V3(c, &method->basic.preimage_unrequest_preimage_V3))
+ break;
+#endif
+ default:
+ return parser_unexpected_callIndex;
+ }
+
+ return parser_ok;
+}
+
+/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
-const char* _getMethod_ModuleName_V1(uint8_t moduleIdx)
+const char* _getMethod_ModuleName_V3(uint8_t moduleIdx)
{
switch (moduleIdx) {
case 5:
@@ -2697,8 +3164,8 @@ const char* _getMethod_ModuleName_V1(uint8_t moduleIdx)
return STR_MO_PROTOCOLFEE;
case 37:
return STR_MO_SETTLEMENT;
- case 38:
- return STR_MO_STATISTICS;
+ case 39:
+ return STR_MO_STO;
case 40:
return STR_MO_TREASURY;
case 43:
@@ -2707,6 +3174,12 @@ const char* _getMethod_ModuleName_V1(uint8_t moduleIdx)
return STR_MO_RELAYER;
case 45:
return STR_MO_REWARDS;
+ case 46:
+ return STR_MO_CONTRACTS;
+ case 47:
+ return STR_MO_POLYMESHCONTRACTS;
+ case 48:
+ return STR_MO_PREIMAGE;
#endif
default:
return NULL;
@@ -2715,15 +3188,15 @@ const char* _getMethod_ModuleName_V1(uint8_t moduleIdx)
return NULL;
}
-const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
+const char* _getMethod_Name_V3(uint8_t moduleIdx, uint8_t callIdx)
{
uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
switch (callPrivIdx) {
case 1280: /* module 5 call 0 */
return STR_ME_TRANSFER;
- case 1794: /* module 7 call 2 */
- return STR_ME_REMOVE_SECONDARY_KEYS;
+ case 1281: /* module 5 call 1 */
+ return STR_ME_TRANSFER_WITH_MEMO;
case 1795: /* module 7 call 3 */
return STR_ME_ACCEPT_PRIMARY_KEY;
case 1797: /* module 7 call 5 */
@@ -2744,10 +3217,12 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_ADD_AUTHORIZATION;
case 1806: /* module 7 call 14 */
return STR_ME_REMOVE_AUTHORIZATION;
- case 1807: /* module 7 call 15 */
- return STR_ME_ADD_SECONDARY_KEYS_WITH_AUTHORIZATION;
case 1808: /* module 7 call 16 */
return STR_ME_ADD_INVESTOR_UNIQUENESS_CLAIM;
+ case 1814: /* module 7 call 22 */
+ return STR_ME_ADD_SECONDARY_KEYS_WITH_AUTHORIZATION;
+ case 1816: /* module 7 call 24 */
+ return STR_ME_REMOVE_SECONDARY_KEYS;
case 3840: /* module 15 call 0 */
return STR_ME_CREATE_MULTISIG;
case 3841: /* module 15 call 1 */
@@ -2780,8 +3255,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_REMOVE_MULTISIG_SIGNERS_VIA_CREATOR;
case 3855: /* module 15 call 15 */
return STR_ME_CHANGE_SIGS_REQUIRED;
- case 3856: /* module 15 call 16 */
- return STR_ME_MAKE_MULTISIG_SIGNER;
case 3857: /* module 15 call 17 */
return STR_ME_MAKE_MULTISIG_PRIMARY;
case 3858: /* module 15 call 18 */
@@ -2816,6 +3289,16 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_BATCH_ATOMIC;
case 10498: /* module 41 call 2 */
return STR_ME_BATCH_OPTIMISTIC;
+ default:
+ return _getMethod_Name_V3_ParserFull(callPrivIdx);
+ }
+
+ return NULL;
+}
+
+const char* _getMethod_Name_V3_ParserFull(uint16_t callPrivIdx)
+{
+ switch (callPrivIdx) {
#ifdef SUBSTRATE_PARSER_FULL
case 0: /* module 0 call 0 */
return STR_ME_FILL_BLOCK;
@@ -2827,18 +3310,8 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_CODE;
case 4: /* module 0 call 4 */
return STR_ME_SET_CODE_WITHOUT_CHECKS;
- case 5: /* module 0 call 5 */
- return STR_ME_SET_CHANGES_TRIE_CONFIG;
- case 6: /* module 0 call 6 */
- return STR_ME_SET_STORAGE;
- case 7: /* module 0 call 7 */
- return STR_ME_KILL_STORAGE;
case 8: /* module 0 call 8 */
- return STR_ME_KILL_PREFIX;
- case 256: /* module 1 call 0 */
- return STR_ME_REPORT_EQUIVOCATION;
- case 257: /* module 1 call 1 */
- return STR_ME_REPORT_EQUIVOCATION_UNSIGNED;
+ return STR_ME_REMARK_WITH_EVENT;
case 512: /* module 2 call 0 */
return STR_ME_SET;
case 768: /* module 3 call 0 */
@@ -2851,10 +3324,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_FORCE_TRANSFER;
case 772: /* module 3 call 4 */
return STR_ME_FREEZE;
- case 1024: /* module 4 call 0 */
- return STR_ME_SET_UNCLES;
- case 1281: /* module 5 call 1 */
- return STR_ME_TRANSFER_WITH_MEMO;
case 1282: /* module 5 call 2 */
return STR_ME_DEPOSIT_BLOCK_REWARD_RESERVE_BALANCE;
case 1283: /* module 5 call 3 */
@@ -2863,20 +3332,22 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_FORCE_TRANSFER;
case 1285: /* module 5 call 5 */
return STR_ME_BURN_ACCOUNT_BALANCE;
- case 1792: /* module 7 call 0 */
- return STR_ME_CDD_REGISTER_DID;
case 1793: /* module 7 call 1 */
return STR_ME_INVALIDATE_CDD_CLAIMS;
case 1796: /* module 7 call 4 */
return STR_ME_CHANGE_CDD_REQUIREMENT_FOR_MK_ROTATION;
+ case 1802: /* module 7 call 10 */
+ return STR_ME_PLACEHOLDER_LEGACY_SET_PERMISSION_TO_SIGNER;
case 1809: /* module 7 call 17 */
return STR_ME_GC_ADD_CDD_CLAIM;
case 1810: /* module 7 call 18 */
return STR_ME_GC_REVOKE_CDD_CLAIM;
- case 1811: /* module 7 call 19 */
- return STR_ME_ADD_INVESTOR_UNIQUENESS_CLAIM_V2;
case 1812: /* module 7 call 20 */
return STR_ME_REVOKE_CLAIM_BY_INDEX;
+ case 1813: /* module 7 call 21 */
+ return STR_ME_ROTATE_PRIMARY_KEY_TO_SECONDARY;
+ case 1815: /* module 7 call 23 */
+ return STR_ME_SET_SECONDARY_KEY_PERMISSIONS;
case 2048: /* module 8 call 0 */
return STR_ME_SET_ACTIVE_MEMBERS_LIMIT;
case 2049: /* module 8 call 1 */
@@ -2963,6 +3434,8 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_RESET_MEMBERS;
case 3590: /* module 14 call 6 */
return STR_ME_ABDICATE_MEMBERSHIP;
+ case 3856: /* module 15 call 16 */
+ return STR_ME_MAKE_MULTISIG_SECONDARY;
case 4096: /* module 16 call 0 */
return STR_ME_CHANGE_CONTROLLER;
case 4097: /* module 16 call 1 */
@@ -2995,12 +3468,12 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_ADD_FREEZE_ADMIN;
case 4111: /* module 16 call 15 */
return STR_ME_REMOVE_FREEZE_ADMIN;
+ case 4112: /* module 16 call 16 */
+ return STR_ME_REMOVE_TXS;
case 4361: /* module 17 call 9 */
return STR_ME_SET_VALIDATOR_COUNT;
case 4362: /* module 17 call 10 */
return STR_ME_INCREASE_VALIDATOR_COUNT;
- case 4363: /* module 17 call 11 */
- return STR_ME_SCALE_VALIDATOR_COUNT;
case 4364: /* module 17 call 12 */
return STR_ME_ADD_PERMISSIONED_VALIDATOR;
case 4365: /* module 17 call 13 */
@@ -3029,10 +3502,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_HISTORY_DEPTH;
case 4378: /* module 17 call 26 */
return STR_ME_REAP_STASH;
- case 4379: /* module 17 call 27 */
- return STR_ME_SUBMIT_ELECTION_SOLUTION;
- case 4380: /* module 17 call 28 */
- return STR_ME_SUBMIT_ELECTION_SOLUTION_UNSIGNED;
case 4381: /* module 17 call 29 */
return STR_ME_PAYOUT_STAKERS_BY_SYSTEM;
case 4382: /* module 17 call 30 */
@@ -3043,20 +3512,8 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_SET_KEYS;
case 4865: /* module 19 call 1 */
return STR_ME_PURGE_KEYS;
- case 5376: /* module 21 call 0 */
- return STR_ME_REPORT_EQUIVOCATION;
- case 5377: /* module 21 call 1 */
- return STR_ME_REPORT_EQUIVOCATION_UNSIGNED;
case 5378: /* module 21 call 2 */
return STR_ME_NOTE_STALLED;
- case 5888: /* module 23 call 0 */
- return STR_ME_HEARTBEAT;
- case 6400: /* module 25 call 0 */
- return STR_ME_SUDO;
- case 6401: /* module 25 call 1 */
- return STR_ME_SUDO_UNCHECKED_WEIGHT;
- case 6402: /* module 25 call 2 */
- return STR_ME_SET_KEY;
case 6403: /* module 25 call 3 */
return STR_ME_SUDO_AS;
case 6656: /* module 26 call 0 */
@@ -3095,6 +3552,18 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_CONTROLLER_TRANSFER;
case 6673: /* module 26 call 17 */
return STR_ME_REGISTER_CUSTOM_ASSET_TYPE;
+ case 6674: /* module 26 call 18 */
+ return STR_ME_CREATE_ASSET_WITH_CUSTOM_TYPE;
+ case 6675: /* module 26 call 19 */
+ return STR_ME_SET_ASSET_METADATA;
+ case 6676: /* module 26 call 20 */
+ return STR_ME_SET_ASSET_METADATA_DETAILS;
+ case 6677: /* module 26 call 21 */
+ return STR_ME_REGISTER_AND_SET_LOCAL_ASSET_METADATA;
+ case 6678: /* module 26 call 22 */
+ return STR_ME_REGISTER_ASSET_METADATA_LOCAL_TYPE;
+ case 6679: /* module 26 call 23 */
+ return STR_ME_REGISTER_ASSET_METADATA_GLOBAL_TYPE;
case 6912: /* module 27 call 0 */
return STR_ME_DISTRIBUTE;
case 6913: /* module 27 call 1 */
@@ -3117,8 +3586,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_ADD_COMPLIANCE_REQUIREMENT;
case 7425: /* module 29 call 1 */
return STR_ME_REMOVE_COMPLIANCE_REQUIREMENT;
- case 7426: /* module 29 call 2 */
- return STR_ME_REPLACE_ASSET_COMPLIANCE;
case 7427: /* module 29 call 3 */
return STR_ME_RESET_ASSET_COMPLIANCE;
case 7428: /* module 29 call 4 */
@@ -3129,8 +3596,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_ADD_DEFAULT_TRUSTED_CLAIM_ISSUER;
case 7431: /* module 29 call 7 */
return STR_ME_REMOVE_DEFAULT_TRUSTED_CLAIM_ISSUER;
- case 7432: /* module 29 call 8 */
- return STR_ME_CHANGE_COMPLIANCE_REQUIREMENT;
case 7680: /* module 30 call 0 */
return STR_ME_SET_MAX_DETAILS_LENGTH;
case 7681: /* module 30 call 1 */
@@ -3203,20 +3668,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_ACCEPT_PORTFOLIO_CUSTODY;
case 8960: /* module 35 call 0 */
return STR_ME_CHANGE_COEFFICIENT;
- case 8961: /* module 35 call 1 */
- return STR_ME_CHANGE_BASE_FEE;
- case 9216: /* module 36 call 0 */
- return STR_ME_SCHEDULE;
- case 9217: /* module 36 call 1 */
- return STR_ME_CANCEL;
- case 9218: /* module 36 call 2 */
- return STR_ME_SCHEDULE_NAMED;
- case 9219: /* module 36 call 3 */
- return STR_ME_CANCEL_NAMED;
- case 9220: /* module 36 call 4 */
- return STR_ME_SCHEDULE_AFTER;
- case 9221: /* module 36 call 5 */
- return STR_ME_SCHEDULE_NAMED_AFTER;
case 9472: /* module 37 call 0 */
return STR_ME_CREATE_VENUE;
case 9473: /* module 37 call 1 */
@@ -3251,14 +3702,6 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_EXECUTE_SCHEDULED_INSTRUCTION;
case 9488: /* module 37 call 16 */
return STR_ME_RESCHEDULE_INSTRUCTION;
- case 9728: /* module 38 call 0 */
- return STR_ME_ADD_TRANSFER_MANAGER;
- case 9729: /* module 38 call 1 */
- return STR_ME_REMOVE_TRANSFER_MANAGER;
- case 9730: /* module 38 call 2 */
- return STR_ME_ADD_EXEMPTED_ENTITIES;
- case 9731: /* module 38 call 3 */
- return STR_ME_REMOVE_EXEMPTED_ENTITIES;
case 9984: /* module 39 call 0 */
return STR_ME_CREATE_FUNDRAISER;
case 9985: /* module 39 call 1 */
@@ -3277,18 +3720,16 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_REIMBURSEMENT;
case 10499: /* module 41 call 3 */
return STR_ME_RELAY_TX;
- case 11008: /* module 43 call 0 */
- return STR_ME_CREATE_GROUP;
- case 11009: /* module 43 call 1 */
- return STR_ME_SET_GROUP_PERMISSIONS;
case 11010: /* module 43 call 2 */
return STR_ME_REMOVE_AGENT;
case 11011: /* module 43 call 3 */
return STR_ME_ABDICATE;
- case 11012: /* module 43 call 4 */
- return STR_ME_CHANGE_GROUP;
case 11013: /* module 43 call 5 */
return STR_ME_ACCEPT_BECOME_AGENT;
+ case 11014: /* module 43 call 6 */
+ return STR_ME_CREATE_GROUP_AND_ADD_AUTH;
+ case 11015: /* module 43 call 7 */
+ return STR_ME_CREATE_AND_CHANGE_CUSTOM_GROUP;
case 11264: /* module 44 call 0 */
return STR_ME_SET_PAYING_KEY;
case 11265: /* module 44 call 1 */
@@ -3303,8 +3744,28 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return STR_ME_DECREASE_POLYX_LIMIT;
case 11520: /* module 45 call 0 */
return STR_ME_CLAIM_ITN_REWARD;
- case 11521: /* module 45 call 1 */
- return STR_ME_SET_ITN_REWARD_STATUS;
+ case 11776: /* module 46 call 0 */
+ return STR_ME_CALL;
+ case 11777: /* module 46 call 1 */
+ return STR_ME_INSTANTIATE_WITH_CODE;
+ case 11778: /* module 46 call 2 */
+ return STR_ME_INSTANTIATE;
+ case 11779: /* module 46 call 3 */
+ return STR_ME_UPLOAD_CODE;
+ case 11780: /* module 46 call 4 */
+ return STR_ME_REMOVE_CODE;
+ case 12032: /* module 47 call 0 */
+ return STR_ME_INSTANTIATE_WITH_CODE_PERMS;
+ case 12033: /* module 47 call 1 */
+ return STR_ME_INSTANTIATE_WITH_HASH_PERMS;
+ case 12288: /* module 48 call 0 */
+ return STR_ME_NOTE_PREIMAGE;
+ case 12289: /* module 48 call 1 */
+ return STR_ME_UNNOTE_PREIMAGE;
+ case 12290: /* module 48 call 2 */
+ return STR_ME_REQUEST_PREIMAGE;
+ case 12291: /* module 48 call 3 */
+ return STR_ME_UNREQUEST_PREIMAGE;
#endif
default:
return NULL;
@@ -3313,15 +3774,15 @@ const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx)
return NULL;
}
-uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
+uint8_t _getMethod_NumItems_V3(uint8_t moduleIdx, uint8_t callIdx)
{
uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
switch (callPrivIdx) {
case 1280: /* module 5 call 0 */
return 2;
- case 1794: /* module 7 call 2 */
- return 1;
+ case 1281: /* module 5 call 1 */
+ return 3;
case 1795: /* module 7 call 3 */
return 2;
case 1797: /* module 7 call 5 */
@@ -3342,10 +3803,12 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 3;
case 1806: /* module 7 call 14 */
return 3;
- case 1807: /* module 7 call 15 */
- return 2;
case 1808: /* module 7 call 16 */
return 4;
+ case 1814: /* module 7 call 22 */
+ return 2;
+ case 1816: /* module 7 call 24 */
+ return 1;
case 3840: /* module 15 call 0 */
return 2;
case 3841: /* module 15 call 1 */
@@ -3378,8 +3841,6 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 2;
case 3855: /* module 15 call 15 */
return 1;
- case 3856: /* module 15 call 16 */
- return 1;
case 3857: /* module 15 call 17 */
return 2;
case 3858: /* module 15 call 18 */
@@ -3425,6 +3886,8 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 1;
case 4: /* module 0 call 4 */
return 1;
+ case 8: /* module 0 call 8 */
+ return 1;
case 512: /* module 2 call 0 */
return 1;
case 768: /* module 3 call 0 */
@@ -3437,8 +3900,6 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 3;
case 772: /* module 3 call 4 */
return 1;
- case 1281: /* module 5 call 1 */
- return 3;
case 1282: /* module 5 call 2 */
return 1;
case 1283: /* module 5 call 3 */
@@ -3451,12 +3912,18 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 3;
case 1796: /* module 7 call 4 */
return 1;
+ case 1802: /* module 7 call 10 */
+ return 0;
case 1809: /* module 7 call 17 */
return 1;
case 1810: /* module 7 call 18 */
return 1;
case 1812: /* module 7 call 20 */
return 3;
+ case 1813: /* module 7 call 21 */
+ return 2;
+ case 1815: /* module 7 call 23 */
+ return 2;
case 2048: /* module 8 call 0 */
return 1;
case 2049: /* module 8 call 1 */
@@ -3543,6 +4010,8 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 1;
case 3590: /* module 14 call 6 */
return 0;
+ case 3856: /* module 15 call 16 */
+ return 1;
case 4096: /* module 16 call 0 */
return 1;
case 4097: /* module 16 call 1 */
@@ -3575,6 +4044,8 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 1;
case 4111: /* module 16 call 15 */
return 1;
+ case 4112: /* module 16 call 16 */
+ return 1;
case 4361: /* module 17 call 9 */
return 1;
case 4362: /* module 17 call 10 */
@@ -3657,6 +4128,18 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 3;
case 6673: /* module 26 call 17 */
return 1;
+ case 6674: /* module 26 call 18 */
+ return 7;
+ case 6675: /* module 26 call 19 */
+ return 4;
+ case 6676: /* module 26 call 20 */
+ return 3;
+ case 6677: /* module 26 call 21 */
+ return 5;
+ case 6678: /* module 26 call 22 */
+ return 3;
+ case 6679: /* module 26 call 23 */
+ return 2;
case 6912: /* module 27 call 0 */
return 7;
case 6913: /* module 27 call 1 */
@@ -3679,8 +4162,6 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 3;
case 7425: /* module 29 call 1 */
return 2;
- case 7426: /* module 29 call 2 */
- return 2;
case 7427: /* module 29 call 3 */
return 1;
case 7428: /* module 29 call 4 */
@@ -3691,8 +4172,6 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 2;
case 7431: /* module 29 call 7 */
return 2;
- case 7432: /* module 29 call 8 */
- return 2;
case 7680: /* module 30 call 0 */
return 1;
case 7681: /* module 30 call 1 */
@@ -3767,18 +4246,50 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 1;
case 9472: /* module 37 call 0 */
return 3;
+ case 9473: /* module 37 call 1 */
+ return 2;
+ case 9474: /* module 37 call 2 */
+ return 2;
+ case 9475: /* module 37 call 3 */
+ return 5;
+ case 9476: /* module 37 call 4 */
+ return 6;
+ case 9477: /* module 37 call 5 */
+ return 3;
+ case 9478: /* module 37 call 6 */
+ return 3;
+ case 9479: /* module 37 call 7 */
+ return 3;
+ case 9480: /* module 37 call 8 */
+ return 4;
+ case 9481: /* module 37 call 9 */
+ return 2;
+ case 9482: /* module 37 call 10 */
+ return 2;
case 9483: /* module 37 call 11 */
return 2;
+ case 9484: /* module 37 call 12 */
+ return 2;
+ case 9485: /* module 37 call 13 */
+ return 2;
case 9486: /* module 37 call 14 */
return 2;
- case 9728: /* module 38 call 0 */
+ case 9487: /* module 37 call 15 */
+ return 2;
+ case 9488: /* module 37 call 16 */
+ return 1;
+ case 9984: /* module 39 call 0 */
+ return 10;
+ case 9985: /* module 39 call 1 */
+ return 7;
+ case 9986: /* module 39 call 2 */
return 2;
- case 9729: /* module 38 call 1 */
+ case 9987: /* module 39 call 3 */
+ return 2;
+ case 9988: /* module 39 call 4 */
+ return 4;
+ case 9989: /* module 39 call 5 */
return 2;
- case 9730: /* module 38 call 2 */
- return 3;
- case 9731: /* module 38 call 3 */
- return 3;
case 10240: /* module 40 call 0 */
return 1;
case 10241: /* module 40 call 1 */
@@ -3791,6 +4302,10 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 1;
case 11013: /* module 43 call 5 */
return 1;
+ case 11014: /* module 43 call 6 */
+ return 4;
+ case 11015: /* module 43 call 7 */
+ return 3;
case 11264: /* module 44 call 0 */
return 2;
case 11265: /* module 44 call 1 */
@@ -3805,6 +4320,28 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 2;
case 11520: /* module 45 call 0 */
return 3;
+ case 11776: /* module 46 call 0 */
+ return 5;
+ case 11777: /* module 46 call 1 */
+ return 6;
+ case 11778: /* module 46 call 2 */
+ return 6;
+ case 11779: /* module 46 call 3 */
+ return 2;
+ case 11780: /* module 46 call 4 */
+ return 1;
+ case 12032: /* module 47 call 0 */
+ return 7;
+ case 12033: /* module 47 call 1 */
+ return 7;
+ case 12288: /* module 48 call 0 */
+ return 1;
+ case 12289: /* module 48 call 1 */
+ return 1;
+ case 12290: /* module 48 call 2 */
+ return 1;
+ case 12291: /* module 48 call 3 */
+ return 1;
#endif
default:
return 0;
@@ -3813,7 +4350,7 @@ uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx)
return 0;
}
-const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx)
+const char* _getMethod_ItemName_V3(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx)
{
uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
@@ -3827,10 +4364,14 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 1794: /* module 7 call 2 */
+ case 1281: /* module 5 call 1 */
switch (itemIdx) {
case 0:
- return STR_IT_signers_to_remove;
+ return STR_IT_dest;
+ case 1:
+ return STR_IT_amount;
+ case 2:
+ return STR_IT_memo;
default:
return NULL;
}
@@ -3878,9 +4419,9 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
case 1801: /* module 7 call 9 */
switch (itemIdx) {
case 0:
- return STR_IT_signer;
+ return STR_IT_key;
case 1:
- return STR_IT_permissions;
+ return STR_IT_perms;
default:
return NULL;
}
@@ -3899,7 +4440,7 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
case 0:
return STR_IT_target;
case 1:
- return STR_IT_authorization_data;
+ return STR_IT_data;
case 2:
return STR_IT_expiry;
default:
@@ -3916,15 +4457,6 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 1807: /* module 7 call 15 */
- switch (itemIdx) {
- case 0:
- return STR_IT_additional_keys;
- case 1:
- return STR_IT_expires_at;
- default:
- return NULL;
- }
case 1808: /* module 7 call 16 */
switch (itemIdx) {
case 0:
@@ -3938,6 +4470,22 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 1814: /* module 7 call 22 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_additional_keys;
+ case 1:
+ return STR_IT_expires_at;
+ default:
+ return NULL;
+ }
+ case 1816: /* module 7 call 24 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_keys_to_remove;
+ default:
+ return NULL;
+ }
case 3840: /* module 15 call 0 */
switch (itemIdx) {
case 0:
@@ -4088,13 +4636,6 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 3856: /* module 15 call 16 */
- switch (itemIdx) {
- case 0:
- return STR_IT_multisig;
- default:
- return NULL;
- }
case 3857: /* module 15 call 17 */
switch (itemIdx) {
case 0:
@@ -4238,14 +4779,14 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
case 0: /* module 0 call 0 */
switch (itemIdx) {
case 0:
- return STR_IT__ratio;
+ return STR_IT_ratio;
default:
return NULL;
}
case 1: /* module 0 call 1 */
switch (itemIdx) {
case 0:
- return STR_IT__remark;
+ return STR_IT_remark;
default:
return NULL;
}
@@ -4270,6 +4811,13 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 8: /* module 0 call 8 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_remark;
+ default:
+ return NULL;
+ }
case 512: /* module 2 call 0 */
switch (itemIdx) {
case 0:
@@ -4318,17 +4866,6 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 1281: /* module 5 call 1 */
- switch (itemIdx) {
- case 0:
- return STR_IT_dest;
- case 1:
- return STR_IT_amount;
- case 2:
- return STR_IT_memo;
- default:
- return NULL;
- }
case 1282: /* module 5 call 2 */
switch (itemIdx) {
case 0:
@@ -4383,6 +4920,11 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 1802: /* module 7 call 10 */
+ switch (itemIdx) {
+ default:
+ return NULL;
+ }
case 1809: /* module 7 call 17 */
switch (itemIdx) {
case 0:
@@ -4408,6 +4950,24 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 1813: /* module 7 call 21 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_auth_id;
+ case 1:
+ return STR_IT_optional_cdd_auth_id;
+ default:
+ return NULL;
+ }
+ case 1815: /* module 7 call 23 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_key;
+ case 1:
+ return STR_IT_perms;
+ default:
+ return NULL;
+ }
case 2048: /* module 8 call 0 */
switch (itemIdx) {
case 0:
@@ -4749,6 +5309,13 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 3856: /* module 15 call 16 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_multisig;
+ default:
+ return NULL;
+ }
case 4096: /* module 16 call 0 */
switch (itemIdx) {
case 0:
@@ -4859,6 +5426,13 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 4112: /* module 16 call 16 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_bridge_txs;
+ default:
+ return NULL;
+ }
case 4361: /* module 17 call 9 */
switch (itemIdx) {
case 0:
@@ -5196,6 +5770,84 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 6674: /* module 26 call 18 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_name;
+ case 1:
+ return STR_IT_ticker;
+ case 2:
+ return STR_IT_divisible;
+ case 3:
+ return STR_IT_custom_asset_type;
+ case 4:
+ return STR_IT_identifiers;
+ case 5:
+ return STR_IT_funding_round;
+ case 6:
+ return STR_IT_disable_iu;
+ default:
+ return NULL;
+ }
+ case 6675: /* module 26 call 19 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_key;
+ case 2:
+ return STR_IT_value;
+ case 3:
+ return STR_IT_detail;
+ default:
+ return NULL;
+ }
+ case 6676: /* module 26 call 20 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_key;
+ case 2:
+ return STR_IT_detail;
+ default:
+ return NULL;
+ }
+ case 6677: /* module 26 call 21 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_name;
+ case 2:
+ return STR_IT_spec;
+ case 3:
+ return STR_IT_value;
+ case 4:
+ return STR_IT_detail;
+ default:
+ return NULL;
+ }
+ case 6678: /* module 26 call 22 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_name;
+ case 2:
+ return STR_IT_spec;
+ default:
+ return NULL;
+ }
+ case 6679: /* module 26 call 23 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_name;
+ case 1:
+ return STR_IT_spec;
+ default:
+ return NULL;
+ }
case 6912: /* module 27 call 0 */
switch (itemIdx) {
case 0:
@@ -5297,16 +5949,7 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 7426: /* module 29 call 2 */
- switch (itemIdx) {
- case 0:
- return STR_IT_ticker;
- case 1:
- return STR_IT_asset_compliance;
- default:
- return NULL;
- }
- case 7427: /* module 29 call 3 */
+ case 7427: /* module 29 call 3 */
switch (itemIdx) {
case 0:
return STR_IT_ticker;
@@ -5345,15 +5988,6 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 7432: /* module 29 call 8 */
- switch (itemIdx) {
- case 0:
- return STR_IT_ticker;
- case 1:
- return STR_IT_new_req;
- default:
- return NULL;
- }
case 7680: /* module 30 call 0 */
switch (itemIdx) {
case 0:
@@ -5663,6 +6297,120 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 9473: /* module 37 call 1 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_details;
+ default:
+ return NULL;
+ }
+ case 9474: /* module 37 call 2 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_typ;
+ default:
+ return NULL;
+ }
+ case 9475: /* module 37 call 3 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_venue_id;
+ case 1:
+ return STR_IT_settlement_type;
+ case 2:
+ return STR_IT_trade_date;
+ case 3:
+ return STR_IT_value_date;
+ case 4:
+ return STR_IT_legs;
+ default:
+ return NULL;
+ }
+ case 9476: /* module 37 call 4 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_venue_id;
+ case 1:
+ return STR_IT_settlement_type;
+ case 2:
+ return STR_IT_trade_date;
+ case 3:
+ return STR_IT_value_date;
+ case 4:
+ return STR_IT_legs;
+ case 5:
+ return STR_IT_portfolios;
+ default:
+ return NULL;
+ }
+ case 9477: /* module 37 call 5 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_portfolios;
+ case 2:
+ return STR_IT_max_legs_count;
+ default:
+ return NULL;
+ }
+ case 9478: /* module 37 call 6 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_portfolios;
+ case 2:
+ return STR_IT_max_legs_count;
+ default:
+ return NULL;
+ }
+ case 9479: /* module 37 call 7 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_portfolio;
+ case 2:
+ return STR_IT_num_of_legs;
+ default:
+ return NULL;
+ }
+ case 9480: /* module 37 call 8 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_receipt_details;
+ case 2:
+ return STR_IT_portfolios;
+ case 3:
+ return STR_IT_max_legs_count;
+ default:
+ return NULL;
+ }
+ case 9481: /* module 37 call 9 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_id;
+ case 1:
+ return STR_IT_receipt_details;
+ default:
+ return NULL;
+ }
+ case 9482: /* module 37 call 10 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_instruction_id;
+ case 1:
+ return STR_IT_leg_id;
+ default:
+ return NULL;
+ }
case 9483: /* module 37 call 11 */
switch (itemIdx) {
case 0:
@@ -5672,6 +6420,24 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 9484: /* module 37 call 12 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_venues;
+ default:
+ return NULL;
+ }
+ case 9485: /* module 37 call 13 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_venues;
+ default:
+ return NULL;
+ }
case 9486: /* module 37 call 14 */
switch (itemIdx) {
case 0:
@@ -5681,43 +6447,103 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
- case 9728: /* module 38 call 0 */
+ case 9487: /* module 37 call 15 */
switch (itemIdx) {
case 0:
- return STR_IT_ticker;
+ return STR_IT_id;
case 1:
- return STR_IT_new_transfer_manager;
+ return STR_IT__legs_count;
default:
return NULL;
}
- case 9729: /* module 38 call 1 */
+ case 9488: /* module 37 call 16 */
switch (itemIdx) {
case 0:
- return STR_IT_ticker;
+ return STR_IT_id;
+ default:
+ return NULL;
+ }
+ case 9984: /* module 39 call 0 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_offering_portfolio;
case 1:
- return STR_IT_transfer_manager;
+ return STR_IT_offering_asset;
+ case 2:
+ return STR_IT_raising_portfolio;
+ case 3:
+ return STR_IT_raising_asset;
+ case 4:
+ return STR_IT_tiers;
+ case 5:
+ return STR_IT_venue_id;
+ case 6:
+ return STR_IT_start;
+ case 7:
+ return STR_IT_end;
+ case 8:
+ return STR_IT_minimum_investment;
+ case 9:
+ return STR_IT_fundraiser_name;
default:
return NULL;
}
- case 9730: /* module 38 call 2 */
+ case 9985: /* module 39 call 1 */
switch (itemIdx) {
case 0:
- return STR_IT_ticker;
+ return STR_IT_investment_portfolio;
case 1:
- return STR_IT_transfer_manager;
+ return STR_IT_funding_portfolio;
case 2:
- return STR_IT_exempted_entities;
+ return STR_IT_offering_asset;
+ case 3:
+ return STR_IT_id;
+ case 4:
+ return STR_IT_purchase_amount;
+ case 5:
+ return STR_IT_max_price;
+ case 6:
+ return STR_IT_receipt;
default:
return NULL;
}
- case 9731: /* module 38 call 3 */
+ case 9986: /* module 39 call 2 */
switch (itemIdx) {
case 0:
- return STR_IT_ticker;
+ return STR_IT_offering_asset;
+ case 1:
+ return STR_IT_id;
+ default:
+ return NULL;
+ }
+ case 9987: /* module 39 call 3 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_offering_asset;
+ case 1:
+ return STR_IT_id;
+ default:
+ return NULL;
+ }
+ case 9988: /* module 39 call 4 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_offering_asset;
case 1:
- return STR_IT_transfer_manager;
+ return STR_IT_id;
case 2:
- return STR_IT_entities;
+ return STR_IT_start;
+ case 3:
+ return STR_IT_end;
+ default:
+ return NULL;
+ }
+ case 9989: /* module 39 call 5 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_offering_asset;
+ case 1:
+ return STR_IT_id;
default:
return NULL;
}
@@ -5769,6 +6595,30 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
+ case 11014: /* module 43 call 6 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_perms;
+ case 2:
+ return STR_IT_target;
+ case 3:
+ return STR_IT_expiry;
+ default:
+ return NULL;
+ }
+ case 11015: /* module 43 call 7 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_ticker;
+ case 1:
+ return STR_IT_perms;
+ case 2:
+ return STR_IT_agent;
+ default:
+ return NULL;
+ }
case 11264: /* module 44 call 0 */
switch (itemIdx) {
case 0:
@@ -5832,68 +6682,209 @@ const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t i
default:
return NULL;
}
-#endif
- default:
- return NULL;
- }
-
- return NULL;
-}
-
-parser_error_t _getMethod_ItemValue_V1(
- pd_Method_V1_t* m,
- uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx,
- char* outValue, uint16_t outValueLen,
- uint8_t pageIdx, uint8_t* pageCount)
-{
- uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
-
- switch (callPrivIdx) {
- case 1280: /* module 5 call 0 */
+ case 11776: /* module 46 call 0 */
switch (itemIdx) {
- case 0: /* balances_transfer_V1 - dest */;
- return _toStringLookupSource_V1(
- &m->nested.balances_transfer_V1.dest,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 1: /* balances_transfer_V1 - amount */;
- return _toStringCompactBalance(
- &m->nested.balances_transfer_V1.amount,
- outValue, outValueLen,
- pageIdx, pageCount);
+ case 0:
+ return STR_IT_dest;
+ case 1:
+ return STR_IT_amount;
+ case 2:
+ return STR_IT_gas_limit;
+ case 3:
+ return STR_IT_storage_deposit_limit;
+ case 4:
+ return STR_IT_data;
default:
- return parser_no_data;
+ return NULL;
}
- case 1794: /* module 7 call 2 */
+ case 11777: /* module 46 call 1 */
switch (itemIdx) {
- case 0: /* identity_remove_secondary_keys_V1 - signers_to_remove */;
- return _toStringVecSignatory_V1(
- &m->nested.identity_remove_secondary_keys_V1.signers_to_remove,
- outValue, outValueLen,
- pageIdx, pageCount);
+ case 0:
+ return STR_IT_amount;
+ case 1:
+ return STR_IT_gas_limit;
+ case 2:
+ return STR_IT_storage_deposit_limit;
+ case 3:
+ return STR_IT_code;
+ case 4:
+ return STR_IT_data;
+ case 5:
+ return STR_IT_salt;
default:
- return parser_no_data;
+ return NULL;
}
- case 1795: /* module 7 call 3 */
+ case 11778: /* module 46 call 2 */
switch (itemIdx) {
- case 0: /* identity_accept_primary_key_V1 - rotation_auth_id */;
- return _toStringu64(
- &m->nested.identity_accept_primary_key_V1.rotation_auth_id,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 1: /* identity_accept_primary_key_V1 - optional_cdd_auth_id */;
- return _toStringOptionu64(
- &m->nested.identity_accept_primary_key_V1.optional_cdd_auth_id,
- outValue, outValueLen,
- pageIdx, pageCount);
+ case 0:
+ return STR_IT_amount;
+ case 1:
+ return STR_IT_gas_limit;
+ case 2:
+ return STR_IT_storage_deposit_limit;
+ case 3:
+ return STR_IT_code_hash;
+ case 4:
+ return STR_IT_data;
+ case 5:
+ return STR_IT_salt;
default:
- return parser_no_data;
+ return NULL;
}
- case 1797: /* module 7 call 5 */
+ case 11779: /* module 46 call 3 */
switch (itemIdx) {
- case 0: /* identity_join_identity_as_key_V1 - auth_id */;
+ case 0:
+ return STR_IT_code;
+ case 1:
+ return STR_IT_storage_deposit_limit;
+ default:
+ return NULL;
+ }
+ case 11780: /* module 46 call 4 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_code_hash;
+ default:
+ return NULL;
+ }
+ case 12032: /* module 47 call 0 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_endowment;
+ case 1:
+ return STR_IT_gas_limit;
+ case 2:
+ return STR_IT_storage_deposit_limit;
+ case 3:
+ return STR_IT_code;
+ case 4:
+ return STR_IT_data;
+ case 5:
+ return STR_IT_salt;
+ case 6:
+ return STR_IT_perms;
+ default:
+ return NULL;
+ }
+ case 12033: /* module 47 call 1 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_endowment;
+ case 1:
+ return STR_IT_gas_limit;
+ case 2:
+ return STR_IT_storage_deposit_limit;
+ case 3:
+ return STR_IT_code_hash;
+ case 4:
+ return STR_IT_data;
+ case 5:
+ return STR_IT_salt;
+ case 6:
+ return STR_IT_perms;
+ default:
+ return NULL;
+ }
+ case 12288: /* module 48 call 0 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_bytes;
+ default:
+ return NULL;
+ }
+ case 12289: /* module 48 call 1 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_hash;
+ default:
+ return NULL;
+ }
+ case 12290: /* module 48 call 2 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_hash;
+ default:
+ return NULL;
+ }
+ case 12291: /* module 48 call 3 */
+ switch (itemIdx) {
+ case 0:
+ return STR_IT_hash;
+ default:
+ return NULL;
+ }
+#endif
+ default:
+ return NULL;
+ }
+
+ return NULL;
+}
+
+parser_error_t _getMethod_ItemValue_V3(
+ pd_Method_V3_t* m,
+ uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx,
+ char* outValue, uint16_t outValueLen,
+ uint8_t pageIdx, uint8_t* pageCount)
+{
+ uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
+
+ switch (callPrivIdx) {
+ case 1280: /* module 5 call 0 */
+ switch (itemIdx) {
+ case 0: /* balances_transfer_V3 - dest */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.balances_transfer_V3.dest,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* balances_transfer_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.balances_transfer_V3.amount,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 1281: /* module 5 call 1 */
+ switch (itemIdx) {
+ case 0: /* balances_transfer_with_memo_V3 - dest */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.balances_transfer_with_memo_V3.dest,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* balances_transfer_with_memo_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.balances_transfer_with_memo_V3.amount,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* balances_transfer_with_memo_V3 - memo */;
+ return _toStringOptionMemo_V3(
+ &m->nested.balances_transfer_with_memo_V3.memo,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 1795: /* module 7 call 3 */
+ switch (itemIdx) {
+ case 0: /* identity_accept_primary_key_V3 - rotation_auth_id */;
+ return _toStringu64(
+ &m->nested.identity_accept_primary_key_V3.rotation_auth_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* identity_accept_primary_key_V3 - optional_cdd_auth_id */;
+ return _toStringOptionu64(
+ &m->nested.identity_accept_primary_key_V3.optional_cdd_auth_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 1797: /* module 7 call 5 */
+ switch (itemIdx) {
+ case 0: /* identity_join_identity_as_key_V3 - auth_id */;
return _toStringu64(
- &m->nested.identity_join_identity_as_key_V1.auth_id,
+ &m->nested.identity_join_identity_as_key_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -5906,19 +6897,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1799: /* module 7 call 7 */
switch (itemIdx) {
- case 0: /* identity_add_claim_V1 - target */;
- return _toStringIdentityId_V1(
- &m->nested.identity_add_claim_V1.target,
+ case 0: /* identity_add_claim_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->nested.identity_add_claim_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_add_claim_V1 - claim */;
- return _toStringClaim_V1(
- &m->nested.identity_add_claim_V1.claim,
+ case 1: /* identity_add_claim_V3 - claim */;
+ return _toStringClaim_V3(
+ &m->nested.identity_add_claim_V3.claim,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* identity_add_claim_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.identity_add_claim_V1.expiry,
+ case 2: /* identity_add_claim_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.identity_add_claim_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -5926,14 +6917,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1800: /* module 7 call 8 */
switch (itemIdx) {
- case 0: /* identity_revoke_claim_V1 - target */;
- return _toStringIdentityId_V1(
- &m->nested.identity_revoke_claim_V1.target,
+ case 0: /* identity_revoke_claim_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->nested.identity_revoke_claim_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_revoke_claim_V1 - claim */;
- return _toStringClaim_V1(
- &m->nested.identity_revoke_claim_V1.claim,
+ case 1: /* identity_revoke_claim_V3 - claim */;
+ return _toStringClaim_V3(
+ &m->nested.identity_revoke_claim_V3.claim,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -5941,14 +6932,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1801: /* module 7 call 9 */
switch (itemIdx) {
- case 0: /* identity_set_permission_to_signer_V1 - signer */;
- return _toStringSignatory_V1(
- &m->nested.identity_set_permission_to_signer_V1.signer,
+ case 0: /* identity_set_permission_to_signer_V3 - key */;
+ return _toStringSignatoryAccountId_V3(
+ &m->nested.identity_set_permission_to_signer_V3.key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_set_permission_to_signer_V1 - permissions */;
- return _toStringPermissions_V1(
- &m->nested.identity_set_permission_to_signer_V1.permissions,
+ case 1: /* identity_set_permission_to_signer_V3 - perms */;
+ return _toStringPermissions_V3(
+ &m->nested.identity_set_permission_to_signer_V3.perms,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -5966,19 +6957,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1805: /* module 7 call 13 */
switch (itemIdx) {
- case 0: /* identity_add_authorization_V1 - target */;
- return _toStringSignatory_V1(
- &m->nested.identity_add_authorization_V1.target,
+ case 0: /* identity_add_authorization_V3 - target */;
+ return _toStringSignatoryAccountId_V3(
+ &m->nested.identity_add_authorization_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_add_authorization_V1 - authorization_data */;
- return _toStringAuthorizationData_V1(
- &m->nested.identity_add_authorization_V1.authorization_data,
+ case 1: /* identity_add_authorization_V3 - data */;
+ return _toStringAuthorizationDataAccountId_V3(
+ &m->nested.identity_add_authorization_V3.data,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* identity_add_authorization_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.identity_add_authorization_V1.expiry,
+ case 2: /* identity_add_authorization_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.identity_add_authorization_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -5986,59 +6977,69 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1806: /* module 7 call 14 */
switch (itemIdx) {
- case 0: /* identity_remove_authorization_V1 - target */;
- return _toStringSignatory_V1(
- &m->nested.identity_remove_authorization_V1.target,
+ case 0: /* identity_remove_authorization_V3 - target */;
+ return _toStringSignatoryAccountId_V3(
+ &m->nested.identity_remove_authorization_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_remove_authorization_V1 - auth_id */;
+ case 1: /* identity_remove_authorization_V3 - auth_id */;
return _toStringu64(
- &m->nested.identity_remove_authorization_V1.auth_id,
+ &m->nested.identity_remove_authorization_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* identity_remove_authorization_V1 - _auth_issuer_pays */;
+ case 2: /* identity_remove_authorization_V3 - _auth_issuer_pays */;
return _toStringbool(
- &m->nested.identity_remove_authorization_V1._auth_issuer_pays,
+ &m->nested.identity_remove_authorization_V3._auth_issuer_pays,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 1807: /* module 7 call 15 */
+ case 1808: /* module 7 call 16 */
switch (itemIdx) {
- case 0: /* identity_add_secondary_keys_with_authorization_V1 - additional_keys */;
- return _toStringVecSecondaryKeyWithAuth_V1(
- &m->nested.identity_add_secondary_keys_with_authorization_V1.additional_keys,
+ case 0: /* identity_add_investor_uniqueness_claim_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->nested.identity_add_investor_uniqueness_claim_V3.target,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* identity_add_investor_uniqueness_claim_V3 - claim */;
+ return _toStringClaim_V3(
+ &m->nested.identity_add_investor_uniqueness_claim_V3.claim,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* identity_add_investor_uniqueness_claim_V3 - proof */;
+ return _toStringInvestorZKProofData_V3(
+ &m->nested.identity_add_investor_uniqueness_claim_V3.proof,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_add_secondary_keys_with_authorization_V1 - expires_at */;
- return _toStringMoment_V1(
- &m->nested.identity_add_secondary_keys_with_authorization_V1.expires_at,
+ case 3: /* identity_add_investor_uniqueness_claim_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.identity_add_investor_uniqueness_claim_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 1808: /* module 7 call 16 */
+ case 1814: /* module 7 call 22 */
switch (itemIdx) {
- case 0: /* identity_add_investor_uniqueness_claim_V1 - target */;
- return _toStringIdentityId_V1(
- &m->nested.identity_add_investor_uniqueness_claim_V1.target,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 1: /* identity_add_investor_uniqueness_claim_V1 - claim */;
- return _toStringClaim_V1(
- &m->nested.identity_add_investor_uniqueness_claim_V1.claim,
+ case 0: /* identity_add_secondary_keys_with_authorization_V3 - additional_keys */;
+ return _toStringVecSecondaryKeyWithAuthAccountId_V3(
+ &m->nested.identity_add_secondary_keys_with_authorization_V3.additional_keys,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* identity_add_investor_uniqueness_claim_V1 - proof */;
- return _toStringInvestorZKProofData_V1(
- &m->nested.identity_add_investor_uniqueness_claim_V1.proof,
+ case 1: /* identity_add_secondary_keys_with_authorization_V3 - expires_at */;
+ return _toStringMoment_V3(
+ &m->nested.identity_add_secondary_keys_with_authorization_V3.expires_at,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* identity_add_investor_uniqueness_claim_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.identity_add_investor_uniqueness_claim_V1.expiry,
+ default:
+ return parser_no_data;
+ }
+ case 1816: /* module 7 call 24 */
+ switch (itemIdx) {
+ case 0: /* identity_remove_secondary_keys_V3 - keys_to_remove */;
+ return _toStringVecAccountId_V3(
+ &m->nested.identity_remove_secondary_keys_V3.keys_to_remove,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6046,14 +7047,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3840: /* module 15 call 0 */
switch (itemIdx) {
- case 0: /* multisig_create_multisig_V1 - signers */;
- return _toStringVecSignatory_V1(
- &m->nested.multisig_create_multisig_V1.signers,
+ case 0: /* multisig_create_multisig_V3 - signers */;
+ return _toStringVecSignatoryAccountId_V3(
+ &m->nested.multisig_create_multisig_V3.signers,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_create_multisig_V1 - sigs_required */;
+ case 1: /* multisig_create_multisig_V3 - sigs_required */;
return _toStringu64(
- &m->nested.multisig_create_multisig_V1.sigs_required,
+ &m->nested.multisig_create_multisig_V3.sigs_required,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6061,24 +7062,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3841: /* module 15 call 1 */
switch (itemIdx) {
- case 0: /* multisig_create_or_approve_proposal_as_identity_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_create_or_approve_proposal_as_identity_V1.multisig,
+ case 0: /* multisig_create_or_approve_proposal_as_identity_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_create_or_approve_proposal_as_identity_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_create_or_approve_proposal_as_identity_V1 - proposal */;
+ case 1: /* multisig_create_or_approve_proposal_as_identity_V3 - proposal */;
return _toStringProposal(
- &m->nested.multisig_create_or_approve_proposal_as_identity_V1.proposal,
+ &m->nested.multisig_create_or_approve_proposal_as_identity_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* multisig_create_or_approve_proposal_as_identity_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.multisig_create_or_approve_proposal_as_identity_V1.expiry,
+ case 2: /* multisig_create_or_approve_proposal_as_identity_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.multisig_create_or_approve_proposal_as_identity_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* multisig_create_or_approve_proposal_as_identity_V1 - auto_close */;
+ case 3: /* multisig_create_or_approve_proposal_as_identity_V3 - auto_close */;
return _toStringbool(
- &m->nested.multisig_create_or_approve_proposal_as_identity_V1.auto_close,
+ &m->nested.multisig_create_or_approve_proposal_as_identity_V3.auto_close,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6086,24 +7087,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3842: /* module 15 call 2 */
switch (itemIdx) {
- case 0: /* multisig_create_or_approve_proposal_as_key_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_create_or_approve_proposal_as_key_V1.multisig,
+ case 0: /* multisig_create_or_approve_proposal_as_key_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_create_or_approve_proposal_as_key_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_create_or_approve_proposal_as_key_V1 - proposal */;
+ case 1: /* multisig_create_or_approve_proposal_as_key_V3 - proposal */;
return _toStringProposal(
- &m->nested.multisig_create_or_approve_proposal_as_key_V1.proposal,
+ &m->nested.multisig_create_or_approve_proposal_as_key_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* multisig_create_or_approve_proposal_as_key_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.multisig_create_or_approve_proposal_as_key_V1.expiry,
+ case 2: /* multisig_create_or_approve_proposal_as_key_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.multisig_create_or_approve_proposal_as_key_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* multisig_create_or_approve_proposal_as_key_V1 - auto_close */;
+ case 3: /* multisig_create_or_approve_proposal_as_key_V3 - auto_close */;
return _toStringbool(
- &m->nested.multisig_create_or_approve_proposal_as_key_V1.auto_close,
+ &m->nested.multisig_create_or_approve_proposal_as_key_V3.auto_close,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6111,24 +7112,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3843: /* module 15 call 3 */
switch (itemIdx) {
- case 0: /* multisig_create_proposal_as_identity_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_create_proposal_as_identity_V1.multisig,
+ case 0: /* multisig_create_proposal_as_identity_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_create_proposal_as_identity_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_create_proposal_as_identity_V1 - proposal */;
+ case 1: /* multisig_create_proposal_as_identity_V3 - proposal */;
return _toStringProposal(
- &m->nested.multisig_create_proposal_as_identity_V1.proposal,
+ &m->nested.multisig_create_proposal_as_identity_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* multisig_create_proposal_as_identity_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.multisig_create_proposal_as_identity_V1.expiry,
+ case 2: /* multisig_create_proposal_as_identity_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.multisig_create_proposal_as_identity_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* multisig_create_proposal_as_identity_V1 - auto_close */;
+ case 3: /* multisig_create_proposal_as_identity_V3 - auto_close */;
return _toStringbool(
- &m->nested.multisig_create_proposal_as_identity_V1.auto_close,
+ &m->nested.multisig_create_proposal_as_identity_V3.auto_close,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6136,24 +7137,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3844: /* module 15 call 4 */
switch (itemIdx) {
- case 0: /* multisig_create_proposal_as_key_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_create_proposal_as_key_V1.multisig,
+ case 0: /* multisig_create_proposal_as_key_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_create_proposal_as_key_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_create_proposal_as_key_V1 - proposal */;
+ case 1: /* multisig_create_proposal_as_key_V3 - proposal */;
return _toStringProposal(
- &m->nested.multisig_create_proposal_as_key_V1.proposal,
+ &m->nested.multisig_create_proposal_as_key_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* multisig_create_proposal_as_key_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.multisig_create_proposal_as_key_V1.expiry,
+ case 2: /* multisig_create_proposal_as_key_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.multisig_create_proposal_as_key_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* multisig_create_proposal_as_key_V1 - auto_close */;
+ case 3: /* multisig_create_proposal_as_key_V3 - auto_close */;
return _toStringbool(
- &m->nested.multisig_create_proposal_as_key_V1.auto_close,
+ &m->nested.multisig_create_proposal_as_key_V3.auto_close,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6161,14 +7162,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3845: /* module 15 call 5 */
switch (itemIdx) {
- case 0: /* multisig_approve_as_identity_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_approve_as_identity_V1.multisig,
+ case 0: /* multisig_approve_as_identity_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_approve_as_identity_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_approve_as_identity_V1 - proposal_id */;
+ case 1: /* multisig_approve_as_identity_V3 - proposal_id */;
return _toStringu64(
- &m->nested.multisig_approve_as_identity_V1.proposal_id,
+ &m->nested.multisig_approve_as_identity_V3.proposal_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6176,14 +7177,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3846: /* module 15 call 6 */
switch (itemIdx) {
- case 0: /* multisig_approve_as_key_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_approve_as_key_V1.multisig,
+ case 0: /* multisig_approve_as_key_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_approve_as_key_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_approve_as_key_V1 - proposal_id */;
+ case 1: /* multisig_approve_as_key_V3 - proposal_id */;
return _toStringu64(
- &m->nested.multisig_approve_as_key_V1.proposal_id,
+ &m->nested.multisig_approve_as_key_V3.proposal_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6191,14 +7192,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3847: /* module 15 call 7 */
switch (itemIdx) {
- case 0: /* multisig_reject_as_identity_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_reject_as_identity_V1.multisig,
+ case 0: /* multisig_reject_as_identity_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_reject_as_identity_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_reject_as_identity_V1 - proposal_id */;
+ case 1: /* multisig_reject_as_identity_V3 - proposal_id */;
return _toStringu64(
- &m->nested.multisig_reject_as_identity_V1.proposal_id,
+ &m->nested.multisig_reject_as_identity_V3.proposal_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6206,14 +7207,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3848: /* module 15 call 8 */
switch (itemIdx) {
- case 0: /* multisig_reject_as_key_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_reject_as_key_V1.multisig,
+ case 0: /* multisig_reject_as_key_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_reject_as_key_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_reject_as_key_V1 - proposal_id */;
+ case 1: /* multisig_reject_as_key_V3 - proposal_id */;
return _toStringu64(
- &m->nested.multisig_reject_as_key_V1.proposal_id,
+ &m->nested.multisig_reject_as_key_V3.proposal_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6221,9 +7222,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3849: /* module 15 call 9 */
switch (itemIdx) {
- case 0: /* multisig_accept_multisig_signer_as_identity_V1 - auth_id */;
+ case 0: /* multisig_accept_multisig_signer_as_identity_V3 - auth_id */;
return _toStringu64(
- &m->nested.multisig_accept_multisig_signer_as_identity_V1.auth_id,
+ &m->nested.multisig_accept_multisig_signer_as_identity_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6231,9 +7232,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3850: /* module 15 call 10 */
switch (itemIdx) {
- case 0: /* multisig_accept_multisig_signer_as_key_V1 - auth_id */;
+ case 0: /* multisig_accept_multisig_signer_as_key_V3 - auth_id */;
return _toStringu64(
- &m->nested.multisig_accept_multisig_signer_as_key_V1.auth_id,
+ &m->nested.multisig_accept_multisig_signer_as_key_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6241,9 +7242,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3851: /* module 15 call 11 */
switch (itemIdx) {
- case 0: /* multisig_add_multisig_signer_V1 - signer */;
- return _toStringSignatory_V1(
- &m->nested.multisig_add_multisig_signer_V1.signer,
+ case 0: /* multisig_add_multisig_signer_V3 - signer */;
+ return _toStringSignatoryAccountId_V3(
+ &m->nested.multisig_add_multisig_signer_V3.signer,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6251,9 +7252,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3852: /* module 15 call 12 */
switch (itemIdx) {
- case 0: /* multisig_remove_multisig_signer_V1 - signer */;
- return _toStringSignatory_V1(
- &m->nested.multisig_remove_multisig_signer_V1.signer,
+ case 0: /* multisig_remove_multisig_signer_V3 - signer */;
+ return _toStringSignatoryAccountId_V3(
+ &m->nested.multisig_remove_multisig_signer_V3.signer,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6261,14 +7262,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3853: /* module 15 call 13 */
switch (itemIdx) {
- case 0: /* multisig_add_multisig_signers_via_creator_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_add_multisig_signers_via_creator_V1.multisig,
+ case 0: /* multisig_add_multisig_signers_via_creator_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_add_multisig_signers_via_creator_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_add_multisig_signers_via_creator_V1 - signers */;
- return _toStringVecSignatory_V1(
- &m->nested.multisig_add_multisig_signers_via_creator_V1.signers,
+ case 1: /* multisig_add_multisig_signers_via_creator_V3 - signers */;
+ return _toStringVecSignatoryAccountId_V3(
+ &m->nested.multisig_add_multisig_signers_via_creator_V3.signers,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6276,14 +7277,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3854: /* module 15 call 14 */
switch (itemIdx) {
- case 0: /* multisig_remove_multisig_signers_via_creator_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_remove_multisig_signers_via_creator_V1.multisig,
+ case 0: /* multisig_remove_multisig_signers_via_creator_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_remove_multisig_signers_via_creator_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_remove_multisig_signers_via_creator_V1 - signers */;
- return _toStringVecSignatory_V1(
- &m->nested.multisig_remove_multisig_signers_via_creator_V1.signers,
+ case 1: /* multisig_remove_multisig_signers_via_creator_V3 - signers */;
+ return _toStringVecSignatoryAccountId_V3(
+ &m->nested.multisig_remove_multisig_signers_via_creator_V3.signers,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6291,19 +7292,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3855: /* module 15 call 15 */
switch (itemIdx) {
- case 0: /* multisig_change_sigs_required_V1 - sigs_required */;
+ case 0: /* multisig_change_sigs_required_V3 - sigs_required */;
return _toStringu64(
- &m->nested.multisig_change_sigs_required_V1.sigs_required,
- outValue, outValueLen,
- pageIdx, pageCount);
- default:
- return parser_no_data;
- }
- case 3856: /* module 15 call 16 */
- switch (itemIdx) {
- case 0: /* multisig_make_multisig_signer_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_make_multisig_signer_V1.multisig,
+ &m->nested.multisig_change_sigs_required_V3.sigs_required,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6311,14 +7302,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3857: /* module 15 call 17 */
switch (itemIdx) {
- case 0: /* multisig_make_multisig_primary_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_make_multisig_primary_V1.multisig,
+ case 0: /* multisig_make_multisig_primary_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_make_multisig_primary_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_make_multisig_primary_V1 - optional_cdd_auth_id */;
+ case 1: /* multisig_make_multisig_primary_V3 - optional_cdd_auth_id */;
return _toStringOptionu64(
- &m->nested.multisig_make_multisig_primary_V1.optional_cdd_auth_id,
+ &m->nested.multisig_make_multisig_primary_V3.optional_cdd_auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6326,24 +7317,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3858: /* module 15 call 18 */
switch (itemIdx) {
- case 0: /* multisig_execute_scheduled_proposal_V1 - multisig */;
- return _toStringAccountId_V1(
- &m->nested.multisig_execute_scheduled_proposal_V1.multisig,
+ case 0: /* multisig_execute_scheduled_proposal_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->nested.multisig_execute_scheduled_proposal_V3.multisig,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* multisig_execute_scheduled_proposal_V1 - proposal_id */;
+ case 1: /* multisig_execute_scheduled_proposal_V3 - proposal_id */;
return _toStringu64(
- &m->nested.multisig_execute_scheduled_proposal_V1.proposal_id,
+ &m->nested.multisig_execute_scheduled_proposal_V3.proposal_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* multisig_execute_scheduled_proposal_V1 - multisig_did */;
- return _toStringIdentityId_V1(
- &m->nested.multisig_execute_scheduled_proposal_V1.multisig_did,
+ case 2: /* multisig_execute_scheduled_proposal_V3 - multisig_did */;
+ return _toStringIdentityId_V3(
+ &m->nested.multisig_execute_scheduled_proposal_V3.multisig_did,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* multisig_execute_scheduled_proposal_V1 - _proposal_weight */;
- return _toStringWeight_V1(
- &m->nested.multisig_execute_scheduled_proposal_V1._proposal_weight,
+ case 3: /* multisig_execute_scheduled_proposal_V3 - _proposal_weight */;
+ return _toStringWeight_V3(
+ &m->nested.multisig_execute_scheduled_proposal_V3._proposal_weight,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6351,19 +7342,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4352: /* module 17 call 0 */
switch (itemIdx) {
- case 0: /* staking_bond_V1 - controller */;
- return _toStringLookupSource_V1(
- &m->nested.staking_bond_V1.controller,
+ case 0: /* staking_bond_V3 - controller */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.staking_bond_V3.controller,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_bond_V1 - amount */;
- return _toStringCompactBalanceOf(
- &m->nested.staking_bond_V1.amount,
+ case 1: /* staking_bond_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.staking_bond_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* staking_bond_V1 - payee */;
- return _toStringRewardDestination_V1(
- &m->nested.staking_bond_V1.payee,
+ case 2: /* staking_bond_V3 - payee */;
+ return _toStringRewardDestination_V3(
+ &m->nested.staking_bond_V3.payee,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6371,9 +7362,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4353: /* module 17 call 1 */
switch (itemIdx) {
- case 0: /* staking_bond_extra_V1 - amount */;
- return _toStringCompactBalanceOf(
- &m->nested.staking_bond_extra_V1.amount,
+ case 0: /* staking_bond_extra_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.staking_bond_extra_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6381,9 +7372,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4354: /* module 17 call 2 */
switch (itemIdx) {
- case 0: /* staking_unbond_V1 - amount */;
- return _toStringCompactBalanceOf(
- &m->nested.staking_unbond_V1.amount,
+ case 0: /* staking_unbond_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.staking_unbond_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6391,9 +7382,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4355: /* module 17 call 3 */
switch (itemIdx) {
- case 0: /* staking_withdraw_unbonded_V1 - num_slashing_spans */;
+ case 0: /* staking_withdraw_unbonded_V3 - num_slashing_spans */;
return _toStringu32(
- &m->nested.staking_withdraw_unbonded_V1.num_slashing_spans,
+ &m->nested.staking_withdraw_unbonded_V3.num_slashing_spans,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6401,9 +7392,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4356: /* module 17 call 4 */
switch (itemIdx) {
- case 0: /* staking_validate_V1 - prefs */;
- return _toStringValidatorPrefs_V1(
- &m->nested.staking_validate_V1.prefs,
+ case 0: /* staking_validate_V3 - prefs */;
+ return _toStringValidatorPrefs_V3(
+ &m->nested.staking_validate_V3.prefs,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6411,9 +7402,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4357: /* module 17 call 5 */
switch (itemIdx) {
- case 0: /* staking_nominate_V1 - targets */;
- return _toStringVecLookupSource_V1(
- &m->nested.staking_nominate_V1.targets,
+ case 0: /* staking_nominate_V3 - targets */;
+ return _toStringVecLookupasStaticLookupSource_V3(
+ &m->nested.staking_nominate_V3.targets,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6426,9 +7417,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4359: /* module 17 call 7 */
switch (itemIdx) {
- case 0: /* staking_set_payee_V1 - payee */;
- return _toStringRewardDestination_V1(
- &m->nested.staking_set_payee_V1.payee,
+ case 0: /* staking_set_payee_V3 - payee */;
+ return _toStringRewardDestination_V3(
+ &m->nested.staking_set_payee_V3.payee,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6436,9 +7427,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4360: /* module 17 call 8 */
switch (itemIdx) {
- case 0: /* staking_set_controller_V1 - controller */;
- return _toStringLookupSource_V1(
- &m->nested.staking_set_controller_V1.controller,
+ case 0: /* staking_set_controller_V3 - controller */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.staking_set_controller_V3.controller,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6446,9 +7437,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4376: /* module 17 call 24 */
switch (itemIdx) {
- case 0: /* staking_rebond_V1 - amount */;
- return _toStringCompactBalanceOf(
- &m->nested.staking_rebond_V1.amount,
+ case 0: /* staking_rebond_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.staking_rebond_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6456,24 +7447,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8454: /* module 33 call 6 */
switch (itemIdx) {
- case 0: /* pips_propose_V1 - proposal */;
+ case 0: /* pips_propose_V3 - proposal */;
return _toStringProposal(
- &m->nested.pips_propose_V1.proposal,
+ &m->nested.pips_propose_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* pips_propose_V1 - deposit */;
+ case 1: /* pips_propose_V3 - deposit */;
return _toStringBalance(
- &m->nested.pips_propose_V1.deposit,
+ &m->nested.pips_propose_V3.deposit,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* pips_propose_V1 - url */;
- return _toStringOptionUrl_V1(
- &m->nested.pips_propose_V1.url,
+ case 2: /* pips_propose_V3 - url */;
+ return _toStringOptionUrl_V3(
+ &m->nested.pips_propose_V3.url,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* pips_propose_V1 - description */;
- return _toStringOptionPipDescription_V1(
- &m->nested.pips_propose_V1.description,
+ case 3: /* pips_propose_V3 - description */;
+ return _toStringOptionPipDescription_V3(
+ &m->nested.pips_propose_V3.description,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6481,19 +7472,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8455: /* module 33 call 7 */
switch (itemIdx) {
- case 0: /* pips_vote_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_vote_V1.id,
+ case 0: /* pips_vote_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_vote_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* pips_vote_V1 - aye_or_nay */;
+ case 1: /* pips_vote_V3 - aye_or_nay */;
return _toStringbool(
- &m->nested.pips_vote_V1.aye_or_nay,
+ &m->nested.pips_vote_V3.aye_or_nay,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* pips_vote_V1 - deposit */;
+ case 2: /* pips_vote_V3 - deposit */;
return _toStringBalance(
- &m->nested.pips_vote_V1.deposit,
+ &m->nested.pips_vote_V3.deposit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6501,9 +7492,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 10496: /* module 41 call 0 */
switch (itemIdx) {
- case 0: /* utility_batch_V1 - calls */;
+ case 0: /* utility_batch_V3 - calls */;
return _toStringVecCall(
- &m->nested.utility_batch_V1.calls,
+ &m->nested.utility_batch_V3.calls,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6511,9 +7502,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 10497: /* module 41 call 1 */
switch (itemIdx) {
- case 0: /* utility_batch_atomic_V1 - calls */;
+ case 0: /* utility_batch_atomic_V3 - calls */;
return _toStringVecCall(
- &m->nested.utility_batch_atomic_V1.calls,
+ &m->nested.utility_batch_atomic_V3.calls,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6521,9 +7512,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 10498: /* module 41 call 2 */
switch (itemIdx) {
- case 0: /* utility_batch_optimistic_V1 - calls */;
+ case 0: /* utility_batch_optimistic_V3 - calls */;
return _toStringVecCall(
- &m->nested.utility_batch_optimistic_V1.calls,
+ &m->nested.utility_batch_optimistic_V3.calls,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6532,9 +7523,9 @@ parser_error_t _getMethod_ItemValue_V1(
#ifdef SUBSTRATE_PARSER_FULL
case 0: /* module 0 call 0 */
switch (itemIdx) {
- case 0: /* system_fill_block_V1 - _ratio */;
- return _toStringPerbill_V1(
- &m->nested.system_fill_block_V1._ratio,
+ case 0: /* system_fill_block_V3 - ratio */;
+ return _toStringPerbill_V3(
+ &m->nested.system_fill_block_V3.ratio,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6542,9 +7533,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1: /* module 0 call 1 */
switch (itemIdx) {
- case 0: /* system_remark_V1 - _remark */;
- return _toStringBytes(
- &m->nested.system_remark_V1._remark,
+ case 0: /* system_remark_V3 - remark */;
+ return _toStringVecu8(
+ &m->nested.system_remark_V3.remark,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6552,9 +7543,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2: /* module 0 call 2 */
switch (itemIdx) {
- case 0: /* system_set_heap_pages_V1 - pages */;
+ case 0: /* system_set_heap_pages_V3 - pages */;
return _toStringu64(
- &m->nested.system_set_heap_pages_V1.pages,
+ &m->nested.system_set_heap_pages_V3.pages,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6562,9 +7553,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3: /* module 0 call 3 */
switch (itemIdx) {
- case 0: /* system_set_code_V1 - code */;
- return _toStringBytes(
- &m->nested.system_set_code_V1.code,
+ case 0: /* system_set_code_V3 - code */;
+ return _toStringVecu8(
+ &m->nested.system_set_code_V3.code,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6572,9 +7563,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4: /* module 0 call 4 */
switch (itemIdx) {
- case 0: /* system_set_code_without_checks_V1 - code */;
- return _toStringBytes(
- &m->nested.system_set_code_without_checks_V1.code,
+ case 0: /* system_set_code_without_checks_V3 - code */;
+ return _toStringVecu8(
+ &m->nested.system_set_code_without_checks_V3.code,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 8: /* module 0 call 8 */
+ switch (itemIdx) {
+ case 0: /* system_remark_with_event_V3 - remark */;
+ return _toStringVecu8(
+ &m->nested.system_remark_with_event_V3.remark,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6582,9 +7583,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 512: /* module 2 call 0 */
switch (itemIdx) {
- case 0: /* timestamp_set_V1 - now */;
- return _toStringCompactMoment_V1(
- &m->nested.timestamp_set_V1.now,
+ case 0: /* timestamp_set_V3 - now */;
+ return _toStringCompactu64(
+ &m->nested.timestamp_set_V3.now,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6592,9 +7593,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 768: /* module 3 call 0 */
switch (itemIdx) {
- case 0: /* indices_claim_V1 - index */;
- return _toStringAccountIndex_V1(
- &m->nested.indices_claim_V1.index,
+ case 0: /* indices_claim_V3 - index */;
+ return _toStringAccountIndex_V3(
+ &m->nested.indices_claim_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6602,14 +7603,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 769: /* module 3 call 1 */
switch (itemIdx) {
- case 0: /* indices_transfer_V1 - new_ */;
- return _toStringAccountId_V1(
- &m->nested.indices_transfer_V1.new_,
+ case 0: /* indices_transfer_V3 - new_ */;
+ return _toStringAccountId_V3(
+ &m->nested.indices_transfer_V3.new_,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* indices_transfer_V1 - index */;
- return _toStringAccountIndex_V1(
- &m->nested.indices_transfer_V1.index,
+ case 1: /* indices_transfer_V3 - index */;
+ return _toStringAccountIndex_V3(
+ &m->nested.indices_transfer_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6617,9 +7618,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 770: /* module 3 call 2 */
switch (itemIdx) {
- case 0: /* indices_free_V1 - index */;
- return _toStringAccountIndex_V1(
- &m->nested.indices_free_V1.index,
+ case 0: /* indices_free_V3 - index */;
+ return _toStringAccountIndex_V3(
+ &m->nested.indices_free_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6627,19 +7628,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 771: /* module 3 call 3 */
switch (itemIdx) {
- case 0: /* indices_force_transfer_V1 - new_ */;
- return _toStringAccountId_V1(
- &m->nested.indices_force_transfer_V1.new_,
+ case 0: /* indices_force_transfer_V3 - new_ */;
+ return _toStringAccountId_V3(
+ &m->nested.indices_force_transfer_V3.new_,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* indices_force_transfer_V1 - index */;
- return _toStringAccountIndex_V1(
- &m->nested.indices_force_transfer_V1.index,
+ case 1: /* indices_force_transfer_V3 - index */;
+ return _toStringAccountIndex_V3(
+ &m->nested.indices_force_transfer_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* indices_force_transfer_V1 - freeze */;
+ case 2: /* indices_force_transfer_V3 - freeze */;
return _toStringbool(
- &m->nested.indices_force_transfer_V1.freeze,
+ &m->nested.indices_force_transfer_V3.freeze,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6647,29 +7648,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 772: /* module 3 call 4 */
switch (itemIdx) {
- case 0: /* indices_freeze_V1 - index */;
- return _toStringAccountIndex_V1(
- &m->nested.indices_freeze_V1.index,
- outValue, outValueLen,
- pageIdx, pageCount);
- default:
- return parser_no_data;
- }
- case 1281: /* module 5 call 1 */
- switch (itemIdx) {
- case 0: /* balances_transfer_with_memo_V1 - dest */;
- return _toStringLookupSource_V1(
- &m->nested.balances_transfer_with_memo_V1.dest,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 1: /* balances_transfer_with_memo_V1 - amount */;
- return _toStringCompactBalance(
- &m->nested.balances_transfer_with_memo_V1.amount,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 2: /* balances_transfer_with_memo_V1 - memo */;
- return _toStringOptionMemo_V1(
- &m->nested.balances_transfer_with_memo_V1.memo,
+ case 0: /* indices_freeze_V3 - index */;
+ return _toStringAccountIndex_V3(
+ &m->nested.indices_freeze_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6677,9 +7658,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1282: /* module 5 call 2 */
switch (itemIdx) {
- case 0: /* balances_deposit_block_reward_reserve_balance_V1 - amount */;
+ case 0: /* balances_deposit_block_reward_reserve_balance_V3 - amount */;
return _toStringCompactBalance(
- &m->nested.balances_deposit_block_reward_reserve_balance_V1.amount,
+ &m->nested.balances_deposit_block_reward_reserve_balance_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6687,19 +7668,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1283: /* module 5 call 3 */
switch (itemIdx) {
- case 0: /* balances_set_balance_V1 - who */;
- return _toStringLookupSource_V1(
- &m->nested.balances_set_balance_V1.who,
+ case 0: /* balances_set_balance_V3 - who */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.balances_set_balance_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* balances_set_balance_V1 - new_free */;
+ case 1: /* balances_set_balance_V3 - new_free */;
return _toStringCompactBalance(
- &m->nested.balances_set_balance_V1.new_free,
+ &m->nested.balances_set_balance_V3.new_free,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* balances_set_balance_V1 - new_reserved */;
+ case 2: /* balances_set_balance_V3 - new_reserved */;
return _toStringCompactBalance(
- &m->nested.balances_set_balance_V1.new_reserved,
+ &m->nested.balances_set_balance_V3.new_reserved,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6707,19 +7688,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1284: /* module 5 call 4 */
switch (itemIdx) {
- case 0: /* balances_force_transfer_V1 - source */;
- return _toStringLookupSource_V1(
- &m->nested.balances_force_transfer_V1.source,
+ case 0: /* balances_force_transfer_V3 - source */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.balances_force_transfer_V3.source,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* balances_force_transfer_V1 - dest */;
- return _toStringLookupSource_V1(
- &m->nested.balances_force_transfer_V1.dest,
+ case 1: /* balances_force_transfer_V3 - dest */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.balances_force_transfer_V3.dest,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* balances_force_transfer_V1 - amount */;
+ case 2: /* balances_force_transfer_V3 - amount */;
return _toStringCompactBalance(
- &m->nested.balances_force_transfer_V1.amount,
+ &m->nested.balances_force_transfer_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6727,9 +7708,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1285: /* module 5 call 5 */
switch (itemIdx) {
- case 0: /* balances_burn_account_balance_V1 - amount */;
+ case 0: /* balances_burn_account_balance_V3 - amount */;
return _toStringBalance(
- &m->nested.balances_burn_account_balance_V1.amount,
+ &m->nested.balances_burn_account_balance_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6737,19 +7718,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1793: /* module 7 call 1 */
switch (itemIdx) {
- case 0: /* identity_invalidate_cdd_claims_V1 - cdd */;
- return _toStringIdentityId_V1(
- &m->nested.identity_invalidate_cdd_claims_V1.cdd,
+ case 0: /* identity_invalidate_cdd_claims_V3 - cdd */;
+ return _toStringIdentityId_V3(
+ &m->nested.identity_invalidate_cdd_claims_V3.cdd,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_invalidate_cdd_claims_V1 - disable_from */;
- return _toStringMoment_V1(
- &m->nested.identity_invalidate_cdd_claims_V1.disable_from,
+ case 1: /* identity_invalidate_cdd_claims_V3 - disable_from */;
+ return _toStringMoment_V3(
+ &m->nested.identity_invalidate_cdd_claims_V3.disable_from,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* identity_invalidate_cdd_claims_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.identity_invalidate_cdd_claims_V1.expiry,
+ case 2: /* identity_invalidate_cdd_claims_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.identity_invalidate_cdd_claims_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6757,19 +7738,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1796: /* module 7 call 4 */
switch (itemIdx) {
- case 0: /* identity_change_cdd_requirement_for_mk_rotation_V1 - auth_required */;
+ case 0: /* identity_change_cdd_requirement_for_mk_rotation_V3 - auth_required */;
return _toStringbool(
- &m->nested.identity_change_cdd_requirement_for_mk_rotation_V1.auth_required,
+ &m->nested.identity_change_cdd_requirement_for_mk_rotation_V3.auth_required,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
+ case 1802: /* module 7 call 10 */
+ switch (itemIdx) {
+ default:
+ return parser_no_data;
+ }
case 1809: /* module 7 call 17 */
switch (itemIdx) {
- case 0: /* identity_gc_add_cdd_claim_V1 - target */;
- return _toStringIdentityId_V1(
- &m->nested.identity_gc_add_cdd_claim_V1.target,
+ case 0: /* identity_gc_add_cdd_claim_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->nested.identity_gc_add_cdd_claim_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6777,9 +7763,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1810: /* module 7 call 18 */
switch (itemIdx) {
- case 0: /* identity_gc_revoke_cdd_claim_V1 - target */;
- return _toStringIdentityId_V1(
- &m->nested.identity_gc_revoke_cdd_claim_V1.target,
+ case 0: /* identity_gc_revoke_cdd_claim_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->nested.identity_gc_revoke_cdd_claim_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6787,19 +7773,49 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 1812: /* module 7 call 20 */
switch (itemIdx) {
- case 0: /* identity_revoke_claim_by_index_V1 - target */;
- return _toStringIdentityId_V1(
- &m->basic.identity_revoke_claim_by_index_V1.target,
+ case 0: /* identity_revoke_claim_by_index_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->basic.identity_revoke_claim_by_index_V3.target,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* identity_revoke_claim_by_index_V3 - claim_type */;
+ return _toStringClaimType_V3(
+ &m->basic.identity_revoke_claim_by_index_V3.claim_type,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* identity_revoke_claim_by_index_V3 - scope */;
+ return _toStringOptionScope_V3(
+ &m->basic.identity_revoke_claim_by_index_V3.scope,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 1813: /* module 7 call 21 */
+ switch (itemIdx) {
+ case 0: /* identity_rotate_primary_key_to_secondary_V3 - auth_id */;
+ return _toStringu64(
+ &m->basic.identity_rotate_primary_key_to_secondary_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* identity_revoke_claim_by_index_V1 - claim_type */;
- return _toStringClaimType_V1(
- &m->basic.identity_revoke_claim_by_index_V1.claim_type,
+ case 1: /* identity_rotate_primary_key_to_secondary_V3 - optional_cdd_auth_id */;
+ return _toStringOptionu64(
+ &m->basic.identity_rotate_primary_key_to_secondary_V3.optional_cdd_auth_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 1815: /* module 7 call 23 */
+ switch (itemIdx) {
+ case 0: /* identity_set_secondary_key_permissions_V3 - key */;
+ return _toStringAccountId_V3(
+ &m->basic.identity_set_secondary_key_permissions_V3.key,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* identity_revoke_claim_by_index_V1 - scope */;
- return _toStringOptionScope_V1(
- &m->basic.identity_revoke_claim_by_index_V1.scope,
+ case 1: /* identity_set_secondary_key_permissions_V3 - perms */;
+ return _toStringPermissions_V3(
+ &m->basic.identity_set_secondary_key_permissions_V3.perms,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6807,9 +7823,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2048: /* module 8 call 0 */
switch (itemIdx) {
- case 0: /* cddserviceproviders_set_active_members_limit_V1 - limit */;
- return _toStringMemberCount_V1(
- &m->nested.cddserviceproviders_set_active_members_limit_V1.limit,
+ case 0: /* cddserviceproviders_set_active_members_limit_V3 - limit */;
+ return _toStringMemberCount_V3(
+ &m->nested.cddserviceproviders_set_active_members_limit_V3.limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6817,19 +7833,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2049: /* module 8 call 1 */
switch (itemIdx) {
- case 0: /* cddserviceproviders_disable_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.cddserviceproviders_disable_member_V1.who,
+ case 0: /* cddserviceproviders_disable_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.cddserviceproviders_disable_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* cddserviceproviders_disable_member_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.cddserviceproviders_disable_member_V1.expiry,
+ case 1: /* cddserviceproviders_disable_member_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.cddserviceproviders_disable_member_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* cddserviceproviders_disable_member_V1 - at */;
- return _toStringOptionMoment_V1(
- &m->nested.cddserviceproviders_disable_member_V1.at,
+ case 2: /* cddserviceproviders_disable_member_V3 - at */;
+ return _toStringOptionMoment_V3(
+ &m->nested.cddserviceproviders_disable_member_V3.at,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6837,9 +7853,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2050: /* module 8 call 2 */
switch (itemIdx) {
- case 0: /* cddserviceproviders_add_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.cddserviceproviders_add_member_V1.who,
+ case 0: /* cddserviceproviders_add_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.cddserviceproviders_add_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6847,9 +7863,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2051: /* module 8 call 3 */
switch (itemIdx) {
- case 0: /* cddserviceproviders_remove_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.cddserviceproviders_remove_member_V1.who,
+ case 0: /* cddserviceproviders_remove_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.cddserviceproviders_remove_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6857,14 +7873,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2052: /* module 8 call 4 */
switch (itemIdx) {
- case 0: /* cddserviceproviders_swap_member_V1 - remove */;
- return _toStringIdentityId_V1(
- &m->nested.cddserviceproviders_swap_member_V1.remove,
+ case 0: /* cddserviceproviders_swap_member_V3 - remove */;
+ return _toStringIdentityId_V3(
+ &m->nested.cddserviceproviders_swap_member_V3.remove,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* cddserviceproviders_swap_member_V1 - add */;
- return _toStringIdentityId_V1(
- &m->nested.cddserviceproviders_swap_member_V1.add,
+ case 1: /* cddserviceproviders_swap_member_V3 - add */;
+ return _toStringIdentityId_V3(
+ &m->nested.cddserviceproviders_swap_member_V3.add,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6872,9 +7888,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2053: /* module 8 call 5 */
switch (itemIdx) {
- case 0: /* cddserviceproviders_reset_members_V1 - members */;
- return _toStringVecIdentityId_V1(
- &m->nested.cddserviceproviders_reset_members_V1.members,
+ case 0: /* cddserviceproviders_reset_members_V3 - members */;
+ return _toStringVecIdentityId_V3(
+ &m->nested.cddserviceproviders_reset_members_V3.members,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6887,14 +7903,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2304: /* module 9 call 0 */
switch (itemIdx) {
- case 0: /* polymeshcommittee_set_vote_threshold_V1 - n */;
+ case 0: /* polymeshcommittee_set_vote_threshold_V3 - n */;
return _toStringu32(
- &m->nested.polymeshcommittee_set_vote_threshold_V1.n,
+ &m->nested.polymeshcommittee_set_vote_threshold_V3.n,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* polymeshcommittee_set_vote_threshold_V1 - d */;
+ case 1: /* polymeshcommittee_set_vote_threshold_V3 - d */;
return _toStringu32(
- &m->nested.polymeshcommittee_set_vote_threshold_V1.d,
+ &m->nested.polymeshcommittee_set_vote_threshold_V3.d,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6902,9 +7918,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2305: /* module 9 call 1 */
switch (itemIdx) {
- case 0: /* polymeshcommittee_set_release_coordinator_V1 - id */;
- return _toStringIdentityId_V1(
- &m->nested.polymeshcommittee_set_release_coordinator_V1.id,
+ case 0: /* polymeshcommittee_set_release_coordinator_V3 - id */;
+ return _toStringIdentityId_V3(
+ &m->nested.polymeshcommittee_set_release_coordinator_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6912,9 +7928,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2306: /* module 9 call 2 */
switch (itemIdx) {
- case 0: /* polymeshcommittee_set_expires_after_V1 - expiry */;
- return _toStringMaybeBlock_V1(
- &m->nested.polymeshcommittee_set_expires_after_V1.expiry,
+ case 0: /* polymeshcommittee_set_expires_after_V3 - expiry */;
+ return _toStringMaybeBlockBlockNumber_V3(
+ &m->nested.polymeshcommittee_set_expires_after_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6922,14 +7938,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2307: /* module 9 call 3 */
switch (itemIdx) {
- case 0: /* polymeshcommittee_vote_or_propose_V1 - approve */;
+ case 0: /* polymeshcommittee_vote_or_propose_V3 - approve */;
return _toStringbool(
- &m->nested.polymeshcommittee_vote_or_propose_V1.approve,
+ &m->nested.polymeshcommittee_vote_or_propose_V3.approve,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* polymeshcommittee_vote_or_propose_V1 - call */;
+ case 1: /* polymeshcommittee_vote_or_propose_V3 - call */;
return _toStringCall(
- &m->nested.polymeshcommittee_vote_or_propose_V1.call,
+ &m->nested.polymeshcommittee_vote_or_propose_V3.call,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6937,19 +7953,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2308: /* module 9 call 4 */
switch (itemIdx) {
- case 0: /* polymeshcommittee_vote_V1 - proposal */;
+ case 0: /* polymeshcommittee_vote_V3 - proposal */;
return _toStringHash(
- &m->nested.polymeshcommittee_vote_V1.proposal,
+ &m->nested.polymeshcommittee_vote_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* polymeshcommittee_vote_V1 - index */;
- return _toStringProposalIndex_V1(
- &m->nested.polymeshcommittee_vote_V1.index,
+ case 1: /* polymeshcommittee_vote_V3 - index */;
+ return _toStringProposalIndex_V3(
+ &m->nested.polymeshcommittee_vote_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* polymeshcommittee_vote_V1 - approve */;
+ case 2: /* polymeshcommittee_vote_V3 - approve */;
return _toStringbool(
- &m->nested.polymeshcommittee_vote_V1.approve,
+ &m->nested.polymeshcommittee_vote_V3.approve,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6957,9 +7973,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2560: /* module 10 call 0 */
switch (itemIdx) {
- case 0: /* committeemembership_set_active_members_limit_V1 - limit */;
- return _toStringMemberCount_V1(
- &m->nested.committeemembership_set_active_members_limit_V1.limit,
+ case 0: /* committeemembership_set_active_members_limit_V3 - limit */;
+ return _toStringMemberCount_V3(
+ &m->nested.committeemembership_set_active_members_limit_V3.limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6967,19 +7983,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2561: /* module 10 call 1 */
switch (itemIdx) {
- case 0: /* committeemembership_disable_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.committeemembership_disable_member_V1.who,
+ case 0: /* committeemembership_disable_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.committeemembership_disable_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* committeemembership_disable_member_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.committeemembership_disable_member_V1.expiry,
+ case 1: /* committeemembership_disable_member_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.committeemembership_disable_member_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* committeemembership_disable_member_V1 - at */;
- return _toStringOptionMoment_V1(
- &m->nested.committeemembership_disable_member_V1.at,
+ case 2: /* committeemembership_disable_member_V3 - at */;
+ return _toStringOptionMoment_V3(
+ &m->nested.committeemembership_disable_member_V3.at,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6987,9 +8003,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2562: /* module 10 call 2 */
switch (itemIdx) {
- case 0: /* committeemembership_add_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.committeemembership_add_member_V1.who,
+ case 0: /* committeemembership_add_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.committeemembership_add_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -6997,9 +8013,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2563: /* module 10 call 3 */
switch (itemIdx) {
- case 0: /* committeemembership_remove_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.committeemembership_remove_member_V1.who,
+ case 0: /* committeemembership_remove_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.committeemembership_remove_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7007,14 +8023,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2564: /* module 10 call 4 */
switch (itemIdx) {
- case 0: /* committeemembership_swap_member_V1 - remove */;
- return _toStringIdentityId_V1(
- &m->nested.committeemembership_swap_member_V1.remove,
+ case 0: /* committeemembership_swap_member_V3 - remove */;
+ return _toStringIdentityId_V3(
+ &m->nested.committeemembership_swap_member_V3.remove,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* committeemembership_swap_member_V1 - add */;
- return _toStringIdentityId_V1(
- &m->nested.committeemembership_swap_member_V1.add,
+ case 1: /* committeemembership_swap_member_V3 - add */;
+ return _toStringIdentityId_V3(
+ &m->nested.committeemembership_swap_member_V3.add,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7022,9 +8038,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2565: /* module 10 call 5 */
switch (itemIdx) {
- case 0: /* committeemembership_reset_members_V1 - members */;
- return _toStringVecIdentityId_V1(
- &m->nested.committeemembership_reset_members_V1.members,
+ case 0: /* committeemembership_reset_members_V3 - members */;
+ return _toStringVecIdentityId_V3(
+ &m->nested.committeemembership_reset_members_V3.members,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7037,14 +8053,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2816: /* module 11 call 0 */
switch (itemIdx) {
- case 0: /* technicalcommittee_set_vote_threshold_V1 - n */;
+ case 0: /* technicalcommittee_set_vote_threshold_V3 - n */;
return _toStringu32(
- &m->nested.technicalcommittee_set_vote_threshold_V1.n,
+ &m->nested.technicalcommittee_set_vote_threshold_V3.n,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* technicalcommittee_set_vote_threshold_V1 - d */;
+ case 1: /* technicalcommittee_set_vote_threshold_V3 - d */;
return _toStringu32(
- &m->nested.technicalcommittee_set_vote_threshold_V1.d,
+ &m->nested.technicalcommittee_set_vote_threshold_V3.d,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7052,9 +8068,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2817: /* module 11 call 1 */
switch (itemIdx) {
- case 0: /* technicalcommittee_set_release_coordinator_V1 - id */;
- return _toStringIdentityId_V1(
- &m->nested.technicalcommittee_set_release_coordinator_V1.id,
+ case 0: /* technicalcommittee_set_release_coordinator_V3 - id */;
+ return _toStringIdentityId_V3(
+ &m->nested.technicalcommittee_set_release_coordinator_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7062,9 +8078,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2818: /* module 11 call 2 */
switch (itemIdx) {
- case 0: /* technicalcommittee_set_expires_after_V1 - expiry */;
- return _toStringMaybeBlock_V1(
- &m->nested.technicalcommittee_set_expires_after_V1.expiry,
+ case 0: /* technicalcommittee_set_expires_after_V3 - expiry */;
+ return _toStringMaybeBlockBlockNumber_V3(
+ &m->nested.technicalcommittee_set_expires_after_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7072,14 +8088,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2819: /* module 11 call 3 */
switch (itemIdx) {
- case 0: /* technicalcommittee_vote_or_propose_V1 - approve */;
+ case 0: /* technicalcommittee_vote_or_propose_V3 - approve */;
return _toStringbool(
- &m->nested.technicalcommittee_vote_or_propose_V1.approve,
+ &m->nested.technicalcommittee_vote_or_propose_V3.approve,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* technicalcommittee_vote_or_propose_V1 - call */;
+ case 1: /* technicalcommittee_vote_or_propose_V3 - call */;
return _toStringCall(
- &m->nested.technicalcommittee_vote_or_propose_V1.call,
+ &m->nested.technicalcommittee_vote_or_propose_V3.call,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7087,19 +8103,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 2820: /* module 11 call 4 */
switch (itemIdx) {
- case 0: /* technicalcommittee_vote_V1 - proposal */;
+ case 0: /* technicalcommittee_vote_V3 - proposal */;
return _toStringHash(
- &m->nested.technicalcommittee_vote_V1.proposal,
+ &m->nested.technicalcommittee_vote_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* technicalcommittee_vote_V1 - index */;
- return _toStringProposalIndex_V1(
- &m->nested.technicalcommittee_vote_V1.index,
+ case 1: /* technicalcommittee_vote_V3 - index */;
+ return _toStringProposalIndex_V3(
+ &m->nested.technicalcommittee_vote_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* technicalcommittee_vote_V1 - approve */;
+ case 2: /* technicalcommittee_vote_V3 - approve */;
return _toStringbool(
- &m->nested.technicalcommittee_vote_V1.approve,
+ &m->nested.technicalcommittee_vote_V3.approve,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7107,9 +8123,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3072: /* module 12 call 0 */
switch (itemIdx) {
- case 0: /* technicalcommitteemembership_set_active_members_limit_V1 - limit */;
- return _toStringMemberCount_V1(
- &m->nested.technicalcommitteemembership_set_active_members_limit_V1.limit,
+ case 0: /* technicalcommitteemembership_set_active_members_limit_V3 - limit */;
+ return _toStringMemberCount_V3(
+ &m->nested.technicalcommitteemembership_set_active_members_limit_V3.limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7117,19 +8133,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3073: /* module 12 call 1 */
switch (itemIdx) {
- case 0: /* technicalcommitteemembership_disable_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.technicalcommitteemembership_disable_member_V1.who,
+ case 0: /* technicalcommitteemembership_disable_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.technicalcommitteemembership_disable_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* technicalcommitteemembership_disable_member_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.technicalcommitteemembership_disable_member_V1.expiry,
+ case 1: /* technicalcommitteemembership_disable_member_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.technicalcommitteemembership_disable_member_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* technicalcommitteemembership_disable_member_V1 - at */;
- return _toStringOptionMoment_V1(
- &m->nested.technicalcommitteemembership_disable_member_V1.at,
+ case 2: /* technicalcommitteemembership_disable_member_V3 - at */;
+ return _toStringOptionMoment_V3(
+ &m->nested.technicalcommitteemembership_disable_member_V3.at,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7137,9 +8153,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3074: /* module 12 call 2 */
switch (itemIdx) {
- case 0: /* technicalcommitteemembership_add_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.technicalcommitteemembership_add_member_V1.who,
+ case 0: /* technicalcommitteemembership_add_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.technicalcommitteemembership_add_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7147,9 +8163,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3075: /* module 12 call 3 */
switch (itemIdx) {
- case 0: /* technicalcommitteemembership_remove_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.technicalcommitteemembership_remove_member_V1.who,
+ case 0: /* technicalcommitteemembership_remove_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.technicalcommitteemembership_remove_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7157,14 +8173,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3076: /* module 12 call 4 */
switch (itemIdx) {
- case 0: /* technicalcommitteemembership_swap_member_V1 - remove */;
- return _toStringIdentityId_V1(
- &m->nested.technicalcommitteemembership_swap_member_V1.remove,
+ case 0: /* technicalcommitteemembership_swap_member_V3 - remove */;
+ return _toStringIdentityId_V3(
+ &m->nested.technicalcommitteemembership_swap_member_V3.remove,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* technicalcommitteemembership_swap_member_V1 - add */;
- return _toStringIdentityId_V1(
- &m->nested.technicalcommitteemembership_swap_member_V1.add,
+ case 1: /* technicalcommitteemembership_swap_member_V3 - add */;
+ return _toStringIdentityId_V3(
+ &m->nested.technicalcommitteemembership_swap_member_V3.add,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7172,9 +8188,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3077: /* module 12 call 5 */
switch (itemIdx) {
- case 0: /* technicalcommitteemembership_reset_members_V1 - members */;
- return _toStringVecIdentityId_V1(
- &m->nested.technicalcommitteemembership_reset_members_V1.members,
+ case 0: /* technicalcommitteemembership_reset_members_V3 - members */;
+ return _toStringVecIdentityId_V3(
+ &m->nested.technicalcommitteemembership_reset_members_V3.members,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7187,14 +8203,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3328: /* module 13 call 0 */
switch (itemIdx) {
- case 0: /* upgradecommittee_set_vote_threshold_V1 - n */;
+ case 0: /* upgradecommittee_set_vote_threshold_V3 - n */;
return _toStringu32(
- &m->nested.upgradecommittee_set_vote_threshold_V1.n,
+ &m->nested.upgradecommittee_set_vote_threshold_V3.n,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* upgradecommittee_set_vote_threshold_V1 - d */;
+ case 1: /* upgradecommittee_set_vote_threshold_V3 - d */;
return _toStringu32(
- &m->nested.upgradecommittee_set_vote_threshold_V1.d,
+ &m->nested.upgradecommittee_set_vote_threshold_V3.d,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7202,9 +8218,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3329: /* module 13 call 1 */
switch (itemIdx) {
- case 0: /* upgradecommittee_set_release_coordinator_V1 - id */;
- return _toStringIdentityId_V1(
- &m->nested.upgradecommittee_set_release_coordinator_V1.id,
+ case 0: /* upgradecommittee_set_release_coordinator_V3 - id */;
+ return _toStringIdentityId_V3(
+ &m->nested.upgradecommittee_set_release_coordinator_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7212,9 +8228,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3330: /* module 13 call 2 */
switch (itemIdx) {
- case 0: /* upgradecommittee_set_expires_after_V1 - expiry */;
- return _toStringMaybeBlock_V1(
- &m->nested.upgradecommittee_set_expires_after_V1.expiry,
+ case 0: /* upgradecommittee_set_expires_after_V3 - expiry */;
+ return _toStringMaybeBlockBlockNumber_V3(
+ &m->nested.upgradecommittee_set_expires_after_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7222,14 +8238,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3331: /* module 13 call 3 */
switch (itemIdx) {
- case 0: /* upgradecommittee_vote_or_propose_V1 - approve */;
+ case 0: /* upgradecommittee_vote_or_propose_V3 - approve */;
return _toStringbool(
- &m->nested.upgradecommittee_vote_or_propose_V1.approve,
+ &m->nested.upgradecommittee_vote_or_propose_V3.approve,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* upgradecommittee_vote_or_propose_V1 - call */;
+ case 1: /* upgradecommittee_vote_or_propose_V3 - call */;
return _toStringCall(
- &m->nested.upgradecommittee_vote_or_propose_V1.call,
+ &m->nested.upgradecommittee_vote_or_propose_V3.call,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7237,19 +8253,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3332: /* module 13 call 4 */
switch (itemIdx) {
- case 0: /* upgradecommittee_vote_V1 - proposal */;
+ case 0: /* upgradecommittee_vote_V3 - proposal */;
return _toStringHash(
- &m->nested.upgradecommittee_vote_V1.proposal,
+ &m->nested.upgradecommittee_vote_V3.proposal,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* upgradecommittee_vote_V1 - index */;
- return _toStringProposalIndex_V1(
- &m->nested.upgradecommittee_vote_V1.index,
+ case 1: /* upgradecommittee_vote_V3 - index */;
+ return _toStringProposalIndex_V3(
+ &m->nested.upgradecommittee_vote_V3.index,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* upgradecommittee_vote_V1 - approve */;
+ case 2: /* upgradecommittee_vote_V3 - approve */;
return _toStringbool(
- &m->nested.upgradecommittee_vote_V1.approve,
+ &m->nested.upgradecommittee_vote_V3.approve,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7257,9 +8273,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3584: /* module 14 call 0 */
switch (itemIdx) {
- case 0: /* upgradecommitteemembership_set_active_members_limit_V1 - limit */;
- return _toStringMemberCount_V1(
- &m->nested.upgradecommitteemembership_set_active_members_limit_V1.limit,
+ case 0: /* upgradecommitteemembership_set_active_members_limit_V3 - limit */;
+ return _toStringMemberCount_V3(
+ &m->nested.upgradecommitteemembership_set_active_members_limit_V3.limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7267,19 +8283,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3585: /* module 14 call 1 */
switch (itemIdx) {
- case 0: /* upgradecommitteemembership_disable_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.upgradecommitteemembership_disable_member_V1.who,
+ case 0: /* upgradecommitteemembership_disable_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.upgradecommitteemembership_disable_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* upgradecommitteemembership_disable_member_V1 - expiry */;
- return _toStringOptionMoment_V1(
- &m->nested.upgradecommitteemembership_disable_member_V1.expiry,
+ case 1: /* upgradecommitteemembership_disable_member_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->nested.upgradecommitteemembership_disable_member_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* upgradecommitteemembership_disable_member_V1 - at */;
- return _toStringOptionMoment_V1(
- &m->nested.upgradecommitteemembership_disable_member_V1.at,
+ case 2: /* upgradecommitteemembership_disable_member_V3 - at */;
+ return _toStringOptionMoment_V3(
+ &m->nested.upgradecommitteemembership_disable_member_V3.at,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7287,9 +8303,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3586: /* module 14 call 2 */
switch (itemIdx) {
- case 0: /* upgradecommitteemembership_add_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.upgradecommitteemembership_add_member_V1.who,
+ case 0: /* upgradecommitteemembership_add_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.upgradecommitteemembership_add_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7297,9 +8313,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3587: /* module 14 call 3 */
switch (itemIdx) {
- case 0: /* upgradecommitteemembership_remove_member_V1 - who */;
- return _toStringIdentityId_V1(
- &m->nested.upgradecommitteemembership_remove_member_V1.who,
+ case 0: /* upgradecommitteemembership_remove_member_V3 - who */;
+ return _toStringIdentityId_V3(
+ &m->nested.upgradecommitteemembership_remove_member_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7307,14 +8323,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3588: /* module 14 call 4 */
switch (itemIdx) {
- case 0: /* upgradecommitteemembership_swap_member_V1 - remove */;
- return _toStringIdentityId_V1(
- &m->nested.upgradecommitteemembership_swap_member_V1.remove,
+ case 0: /* upgradecommitteemembership_swap_member_V3 - remove */;
+ return _toStringIdentityId_V3(
+ &m->nested.upgradecommitteemembership_swap_member_V3.remove,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* upgradecommitteemembership_swap_member_V1 - add */;
- return _toStringIdentityId_V1(
- &m->nested.upgradecommitteemembership_swap_member_V1.add,
+ case 1: /* upgradecommitteemembership_swap_member_V3 - add */;
+ return _toStringIdentityId_V3(
+ &m->nested.upgradecommitteemembership_swap_member_V3.add,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7322,9 +8338,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 3589: /* module 14 call 5 */
switch (itemIdx) {
- case 0: /* upgradecommitteemembership_reset_members_V1 - members */;
- return _toStringVecIdentityId_V1(
- &m->nested.upgradecommitteemembership_reset_members_V1.members,
+ case 0: /* upgradecommitteemembership_reset_members_V3 - members */;
+ return _toStringVecIdentityId_V3(
+ &m->nested.upgradecommitteemembership_reset_members_V3.members,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7335,11 +8351,21 @@ parser_error_t _getMethod_ItemValue_V1(
default:
return parser_no_data;
}
+ case 3856: /* module 15 call 16 */
+ switch (itemIdx) {
+ case 0: /* multisig_make_multisig_secondary_V3 - multisig */;
+ return _toStringAccountId_V3(
+ &m->basic.multisig_make_multisig_secondary_V3.multisig,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
case 4096: /* module 16 call 0 */
switch (itemIdx) {
- case 0: /* bridge_change_controller_V1 - controller */;
- return _toStringAccountId_V1(
- &m->nested.bridge_change_controller_V1.controller,
+ case 0: /* bridge_change_controller_V3 - controller */;
+ return _toStringAccountId_V3(
+ &m->nested.bridge_change_controller_V3.controller,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7347,9 +8373,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4097: /* module 16 call 1 */
switch (itemIdx) {
- case 0: /* bridge_change_admin_V1 - admin */;
- return _toStringAccountId_V1(
- &m->nested.bridge_change_admin_V1.admin,
+ case 0: /* bridge_change_admin_V3 - admin */;
+ return _toStringAccountId_V3(
+ &m->nested.bridge_change_admin_V3.admin,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7357,9 +8383,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4098: /* module 16 call 2 */
switch (itemIdx) {
- case 0: /* bridge_change_timelock_V1 - timelock */;
+ case 0: /* bridge_change_timelock_V3 - timelock */;
return _toStringBlockNumber(
- &m->nested.bridge_change_timelock_V1.timelock,
+ &m->nested.bridge_change_timelock_V3.timelock,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7377,14 +8403,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4101: /* module 16 call 5 */
switch (itemIdx) {
- case 0: /* bridge_change_bridge_limit_V1 - amount */;
+ case 0: /* bridge_change_bridge_limit_V3 - amount */;
return _toStringBalance(
- &m->nested.bridge_change_bridge_limit_V1.amount,
+ &m->nested.bridge_change_bridge_limit_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* bridge_change_bridge_limit_V1 - duration */;
+ case 1: /* bridge_change_bridge_limit_V3 - duration */;
return _toStringBlockNumber(
- &m->nested.bridge_change_bridge_limit_V1.duration,
+ &m->nested.bridge_change_bridge_limit_V3.duration,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7392,9 +8418,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4102: /* module 16 call 6 */
switch (itemIdx) {
- case 0: /* bridge_change_bridge_exempted_V1 - exempted */;
- return _toStringVecTupleIdentityIdbool_V1(
- &m->nested.bridge_change_bridge_exempted_V1.exempted,
+ case 0: /* bridge_change_bridge_exempted_V3 - exempted */;
+ return _toStringVecTupleIdentityIdbool_V3(
+ &m->nested.bridge_change_bridge_exempted_V3.exempted,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7402,9 +8428,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4103: /* module 16 call 7 */
switch (itemIdx) {
- case 0: /* bridge_force_handle_bridge_tx_V1 - bridge_tx */;
- return _toStringBridgeTx_V1(
- &m->basic.bridge_force_handle_bridge_tx_V1.bridge_tx,
+ case 0: /* bridge_force_handle_bridge_tx_V3 - bridge_tx */;
+ return _toStringBridgeTxAccountId_V3(
+ &m->basic.bridge_force_handle_bridge_tx_V3.bridge_tx,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7412,9 +8438,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4104: /* module 16 call 8 */
switch (itemIdx) {
- case 0: /* bridge_batch_propose_bridge_tx_V1 - bridge_txs */;
- return _toStringVecBridgeTx_V1(
- &m->basic.bridge_batch_propose_bridge_tx_V1.bridge_txs,
+ case 0: /* bridge_batch_propose_bridge_tx_V3 - bridge_txs */;
+ return _toStringVecBridgeTxAccountId_V3(
+ &m->basic.bridge_batch_propose_bridge_tx_V3.bridge_txs,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7422,9 +8448,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4105: /* module 16 call 9 */
switch (itemIdx) {
- case 0: /* bridge_propose_bridge_tx_V1 - bridge_tx */;
- return _toStringBridgeTx_V1(
- &m->basic.bridge_propose_bridge_tx_V1.bridge_tx,
+ case 0: /* bridge_propose_bridge_tx_V3 - bridge_tx */;
+ return _toStringBridgeTxAccountId_V3(
+ &m->basic.bridge_propose_bridge_tx_V3.bridge_tx,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7432,9 +8458,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4106: /* module 16 call 10 */
switch (itemIdx) {
- case 0: /* bridge_handle_bridge_tx_V1 - bridge_tx */;
- return _toStringBridgeTx_V1(
- &m->basic.bridge_handle_bridge_tx_V1.bridge_tx,
+ case 0: /* bridge_handle_bridge_tx_V3 - bridge_tx */;
+ return _toStringBridgeTxAccountId_V3(
+ &m->basic.bridge_handle_bridge_tx_V3.bridge_tx,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7442,9 +8468,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4107: /* module 16 call 11 */
switch (itemIdx) {
- case 0: /* bridge_freeze_txs_V1 - bridge_txs */;
- return _toStringVecBridgeTx_V1(
- &m->basic.bridge_freeze_txs_V1.bridge_txs,
+ case 0: /* bridge_freeze_txs_V3 - bridge_txs */;
+ return _toStringVecBridgeTxAccountId_V3(
+ &m->basic.bridge_freeze_txs_V3.bridge_txs,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7452,9 +8478,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4108: /* module 16 call 12 */
switch (itemIdx) {
- case 0: /* bridge_unfreeze_txs_V1 - bridge_txs */;
- return _toStringVecBridgeTx_V1(
- &m->basic.bridge_unfreeze_txs_V1.bridge_txs,
+ case 0: /* bridge_unfreeze_txs_V3 - bridge_txs */;
+ return _toStringVecBridgeTxAccountId_V3(
+ &m->basic.bridge_unfreeze_txs_V3.bridge_txs,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7462,9 +8488,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4109: /* module 16 call 13 */
switch (itemIdx) {
- case 0: /* bridge_handle_scheduled_bridge_tx_V1 - bridge_tx */;
- return _toStringBridgeTx_V1(
- &m->basic.bridge_handle_scheduled_bridge_tx_V1.bridge_tx,
+ case 0: /* bridge_handle_scheduled_bridge_tx_V3 - bridge_tx */;
+ return _toStringBridgeTxAccountId_V3(
+ &m->basic.bridge_handle_scheduled_bridge_tx_V3.bridge_tx,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7472,9 +8498,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4110: /* module 16 call 14 */
switch (itemIdx) {
- case 0: /* bridge_add_freeze_admin_V1 - freeze_admin */;
- return _toStringAccountId_V1(
- &m->basic.bridge_add_freeze_admin_V1.freeze_admin,
+ case 0: /* bridge_add_freeze_admin_V3 - freeze_admin */;
+ return _toStringAccountId_V3(
+ &m->basic.bridge_add_freeze_admin_V3.freeze_admin,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7482,9 +8508,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4111: /* module 16 call 15 */
switch (itemIdx) {
- case 0: /* bridge_remove_freeze_admin_V1 - freeze_admin */;
- return _toStringAccountId_V1(
- &m->basic.bridge_remove_freeze_admin_V1.freeze_admin,
+ case 0: /* bridge_remove_freeze_admin_V3 - freeze_admin */;
+ return _toStringAccountId_V3(
+ &m->basic.bridge_remove_freeze_admin_V3.freeze_admin,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 4112: /* module 16 call 16 */
+ switch (itemIdx) {
+ case 0: /* bridge_remove_txs_V3 - bridge_txs */;
+ return _toStringVecBridgeTxAccountId_V3(
+ &m->basic.bridge_remove_txs_V3.bridge_txs,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7492,9 +8528,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4361: /* module 17 call 9 */
switch (itemIdx) {
- case 0: /* staking_set_validator_count_V1 - new_ */;
+ case 0: /* staking_set_validator_count_V3 - new_ */;
return _toStringCompactu32(
- &m->nested.staking_set_validator_count_V1.new_,
+ &m->nested.staking_set_validator_count_V3.new_,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7502,9 +8538,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4362: /* module 17 call 10 */
switch (itemIdx) {
- case 0: /* staking_increase_validator_count_V1 - additional */;
+ case 0: /* staking_increase_validator_count_V3 - additional */;
return _toStringCompactu32(
- &m->nested.staking_increase_validator_count_V1.additional,
+ &m->nested.staking_increase_validator_count_V3.additional,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7512,14 +8548,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4364: /* module 17 call 12 */
switch (itemIdx) {
- case 0: /* staking_add_permissioned_validator_V1 - identity */;
- return _toStringIdentityId_V1(
- &m->nested.staking_add_permissioned_validator_V1.identity,
+ case 0: /* staking_add_permissioned_validator_V3 - identity */;
+ return _toStringIdentityId_V3(
+ &m->nested.staking_add_permissioned_validator_V3.identity,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_add_permissioned_validator_V1 - intended_count */;
+ case 1: /* staking_add_permissioned_validator_V3 - intended_count */;
return _toStringOptionu32(
- &m->nested.staking_add_permissioned_validator_V1.intended_count,
+ &m->nested.staking_add_permissioned_validator_V3.intended_count,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7527,9 +8563,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4365: /* module 17 call 13 */
switch (itemIdx) {
- case 0: /* staking_remove_permissioned_validator_V1 - identity */;
- return _toStringIdentityId_V1(
- &m->nested.staking_remove_permissioned_validator_V1.identity,
+ case 0: /* staking_remove_permissioned_validator_V3 - identity */;
+ return _toStringIdentityId_V3(
+ &m->nested.staking_remove_permissioned_validator_V3.identity,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7537,9 +8573,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4366: /* module 17 call 14 */
switch (itemIdx) {
- case 0: /* staking_validate_cdd_expiry_nominators_V1 - targets */;
- return _toStringVecAccountId_V1(
- &m->nested.staking_validate_cdd_expiry_nominators_V1.targets,
+ case 0: /* staking_validate_cdd_expiry_nominators_V3 - targets */;
+ return _toStringVecAccountId_V3(
+ &m->nested.staking_validate_cdd_expiry_nominators_V3.targets,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7547,9 +8583,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4367: /* module 17 call 15 */
switch (itemIdx) {
- case 0: /* staking_set_commission_cap_V1 - new_cap */;
- return _toStringPerbill_V1(
- &m->nested.staking_set_commission_cap_V1.new_cap,
+ case 0: /* staking_set_commission_cap_V3 - new_cap */;
+ return _toStringPerbill_V3(
+ &m->nested.staking_set_commission_cap_V3.new_cap,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7557,9 +8593,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4368: /* module 17 call 16 */
switch (itemIdx) {
- case 0: /* staking_set_min_bond_threshold_V1 - new_value */;
- return _toStringBalanceOf(
- &m->nested.staking_set_min_bond_threshold_V1.new_value,
+ case 0: /* staking_set_min_bond_threshold_V3 - new_value */;
+ return _toStringBalance(
+ &m->nested.staking_set_min_bond_threshold_V3.new_value,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7577,9 +8613,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4371: /* module 17 call 19 */
switch (itemIdx) {
- case 0: /* staking_set_invulnerables_V1 - invulnerables */;
- return _toStringVecAccountId_V1(
- &m->nested.staking_set_invulnerables_V1.invulnerables,
+ case 0: /* staking_set_invulnerables_V3 - invulnerables */;
+ return _toStringVecAccountId_V3(
+ &m->nested.staking_set_invulnerables_V3.invulnerables,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7587,14 +8623,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4372: /* module 17 call 20 */
switch (itemIdx) {
- case 0: /* staking_force_unstake_V1 - stash */;
- return _toStringAccountId_V1(
- &m->nested.staking_force_unstake_V1.stash,
+ case 0: /* staking_force_unstake_V3 - stash */;
+ return _toStringAccountId_V3(
+ &m->nested.staking_force_unstake_V3.stash,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_force_unstake_V1 - num_slashing_spans */;
+ case 1: /* staking_force_unstake_V3 - num_slashing_spans */;
return _toStringu32(
- &m->nested.staking_force_unstake_V1.num_slashing_spans,
+ &m->nested.staking_force_unstake_V3.num_slashing_spans,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7607,14 +8643,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4374: /* module 17 call 22 */
switch (itemIdx) {
- case 0: /* staking_cancel_deferred_slash_V1 - era */;
- return _toStringEraIndex_V1(
- &m->nested.staking_cancel_deferred_slash_V1.era,
+ case 0: /* staking_cancel_deferred_slash_V3 - era */;
+ return _toStringEraIndex_V3(
+ &m->nested.staking_cancel_deferred_slash_V3.era,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_cancel_deferred_slash_V1 - slash_indices */;
+ case 1: /* staking_cancel_deferred_slash_V3 - slash_indices */;
return _toStringVecu32(
- &m->nested.staking_cancel_deferred_slash_V1.slash_indices,
+ &m->nested.staking_cancel_deferred_slash_V3.slash_indices,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7622,14 +8658,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4375: /* module 17 call 23 */
switch (itemIdx) {
- case 0: /* staking_payout_stakers_V1 - validator_stash */;
- return _toStringAccountId_V1(
- &m->nested.staking_payout_stakers_V1.validator_stash,
+ case 0: /* staking_payout_stakers_V3 - validator_stash */;
+ return _toStringAccountId_V3(
+ &m->nested.staking_payout_stakers_V3.validator_stash,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_payout_stakers_V1 - era */;
- return _toStringEraIndex_V1(
- &m->nested.staking_payout_stakers_V1.era,
+ case 1: /* staking_payout_stakers_V3 - era */;
+ return _toStringEraIndex_V3(
+ &m->nested.staking_payout_stakers_V3.era,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7637,14 +8673,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4377: /* module 17 call 25 */
switch (itemIdx) {
- case 0: /* staking_set_history_depth_V1 - new_history_depth */;
- return _toStringCompactEraIndex_V1(
- &m->nested.staking_set_history_depth_V1.new_history_depth,
+ case 0: /* staking_set_history_depth_V3 - new_history_depth */;
+ return _toStringCompactu32(
+ &m->nested.staking_set_history_depth_V3.new_history_depth,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_set_history_depth_V1 - _era_items_deleted */;
+ case 1: /* staking_set_history_depth_V3 - _era_items_deleted */;
return _toStringCompactu32(
- &m->nested.staking_set_history_depth_V1._era_items_deleted,
+ &m->nested.staking_set_history_depth_V3._era_items_deleted,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7652,14 +8688,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4378: /* module 17 call 26 */
switch (itemIdx) {
- case 0: /* staking_reap_stash_V1 - stash */;
- return _toStringAccountId_V1(
- &m->nested.staking_reap_stash_V1.stash,
+ case 0: /* staking_reap_stash_V3 - stash */;
+ return _toStringAccountId_V3(
+ &m->nested.staking_reap_stash_V3.stash,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_reap_stash_V1 - num_slashing_spans */;
+ case 1: /* staking_reap_stash_V3 - num_slashing_spans */;
return _toStringu32(
- &m->nested.staking_reap_stash_V1.num_slashing_spans,
+ &m->nested.staking_reap_stash_V3.num_slashing_spans,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7667,14 +8703,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4381: /* module 17 call 29 */
switch (itemIdx) {
- case 0: /* staking_payout_stakers_by_system_V1 - validator_stash */;
- return _toStringAccountId_V1(
- &m->nested.staking_payout_stakers_by_system_V1.validator_stash,
+ case 0: /* staking_payout_stakers_by_system_V3 - validator_stash */;
+ return _toStringAccountId_V3(
+ &m->nested.staking_payout_stakers_by_system_V3.validator_stash,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_payout_stakers_by_system_V1 - era */;
- return _toStringEraIndex_V1(
- &m->nested.staking_payout_stakers_by_system_V1.era,
+ case 1: /* staking_payout_stakers_by_system_V3 - era */;
+ return _toStringEraIndex_V3(
+ &m->nested.staking_payout_stakers_by_system_V3.era,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7682,9 +8718,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4382: /* module 17 call 30 */
switch (itemIdx) {
- case 0: /* staking_change_slashing_allowed_for_V1 - slashing_switch */;
- return _toStringSlashingSwitch_V1(
- &m->nested.staking_change_slashing_allowed_for_V1.slashing_switch,
+ case 0: /* staking_change_slashing_allowed_for_V3 - slashing_switch */;
+ return _toStringSlashingSwitch_V3(
+ &m->nested.staking_change_slashing_allowed_for_V3.slashing_switch,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7692,14 +8728,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4383: /* module 17 call 31 */
switch (itemIdx) {
- case 0: /* staking_update_permissioned_validator_intended_count_V1 - identity */;
- return _toStringIdentityId_V1(
- &m->nested.staking_update_permissioned_validator_intended_count_V1.identity,
+ case 0: /* staking_update_permissioned_validator_intended_count_V3 - identity */;
+ return _toStringIdentityId_V3(
+ &m->nested.staking_update_permissioned_validator_intended_count_V3.identity,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* staking_update_permissioned_validator_intended_count_V1 - new_intended_count */;
+ case 1: /* staking_update_permissioned_validator_intended_count_V3 - new_intended_count */;
return _toStringu32(
- &m->nested.staking_update_permissioned_validator_intended_count_V1.new_intended_count,
+ &m->nested.staking_update_permissioned_validator_intended_count_V3.new_intended_count,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7707,14 +8743,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 4864: /* module 19 call 0 */
switch (itemIdx) {
- case 0: /* session_set_keys_V1 - keys */;
- return _toStringKeys_V1(
- &m->nested.session_set_keys_V1.keys,
+ case 0: /* session_set_keys_V3 - keys */;
+ return _toStringKeys_V3(
+ &m->nested.session_set_keys_V3.keys,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* session_set_keys_V1 - proof */;
+ case 1: /* session_set_keys_V3 - proof */;
return _toStringBytes(
- &m->nested.session_set_keys_V1.proof,
+ &m->nested.session_set_keys_V3.proof,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7727,14 +8763,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 5378: /* module 21 call 2 */
switch (itemIdx) {
- case 0: /* grandpa_note_stalled_V1 - delay */;
+ case 0: /* grandpa_note_stalled_V3 - delay */;
return _toStringBlockNumber(
- &m->nested.grandpa_note_stalled_V1.delay,
+ &m->nested.grandpa_note_stalled_V3.delay,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* grandpa_note_stalled_V1 - best_finalized_block_number */;
+ case 1: /* grandpa_note_stalled_V3 - best_finalized_block_number */;
return _toStringBlockNumber(
- &m->nested.grandpa_note_stalled_V1.best_finalized_block_number,
+ &m->nested.grandpa_note_stalled_V3.best_finalized_block_number,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7742,14 +8778,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6403: /* module 25 call 3 */
switch (itemIdx) {
- case 0: /* sudo_sudo_as_V1 - who */;
- return _toStringLookupSource_V1(
- &m->nested.sudo_sudo_as_V1.who,
+ case 0: /* sudo_sudo_as_V3 - who */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.sudo_sudo_as_V3.who,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* sudo_sudo_as_V1 - call */;
+ case 1: /* sudo_sudo_as_V3 - call */;
return _toStringCall(
- &m->nested.sudo_sudo_as_V1.call,
+ &m->nested.sudo_sudo_as_V3.call,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7757,9 +8793,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6656: /* module 26 call 0 */
switch (itemIdx) {
- case 0: /* asset_register_ticker_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_register_ticker_V1.ticker,
+ case 0: /* asset_register_ticker_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_register_ticker_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7767,9 +8803,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6657: /* module 26 call 1 */
switch (itemIdx) {
- case 0: /* asset_accept_ticker_transfer_V1 - auth_id */;
+ case 0: /* asset_accept_ticker_transfer_V3 - auth_id */;
return _toStringu64(
- &m->nested.asset_accept_ticker_transfer_V1.auth_id,
+ &m->nested.asset_accept_ticker_transfer_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7777,9 +8813,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6658: /* module 26 call 2 */
switch (itemIdx) {
- case 0: /* asset_accept_asset_ownership_transfer_V1 - auth_id */;
+ case 0: /* asset_accept_asset_ownership_transfer_V3 - auth_id */;
return _toStringu64(
- &m->nested.asset_accept_asset_ownership_transfer_V1.auth_id,
+ &m->nested.asset_accept_asset_ownership_transfer_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7787,39 +8823,39 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6659: /* module 26 call 3 */
switch (itemIdx) {
- case 0: /* asset_create_asset_V1 - name */;
- return _toStringAssetName_V1(
- &m->nested.asset_create_asset_V1.name,
+ case 0: /* asset_create_asset_V3 - name */;
+ return _toStringAssetName_V3(
+ &m->nested.asset_create_asset_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_create_asset_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_create_asset_V1.ticker,
+ case 1: /* asset_create_asset_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_create_asset_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* asset_create_asset_V1 - divisible */;
+ case 2: /* asset_create_asset_V3 - divisible */;
return _toStringbool(
- &m->nested.asset_create_asset_V1.divisible,
+ &m->nested.asset_create_asset_V3.divisible,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* asset_create_asset_V1 - asset_type */;
- return _toStringAssetType_V1(
- &m->nested.asset_create_asset_V1.asset_type,
+ case 3: /* asset_create_asset_V3 - asset_type */;
+ return _toStringAssetType_V3(
+ &m->nested.asset_create_asset_V3.asset_type,
outValue, outValueLen,
pageIdx, pageCount);
- case 4: /* asset_create_asset_V1 - identifiers */;
- return _toStringVecAssetIdentifier_V1(
- &m->nested.asset_create_asset_V1.identifiers,
+ case 4: /* asset_create_asset_V3 - identifiers */;
+ return _toStringVecAssetIdentifier_V3(
+ &m->nested.asset_create_asset_V3.identifiers,
outValue, outValueLen,
pageIdx, pageCount);
- case 5: /* asset_create_asset_V1 - funding_round */;
- return _toStringOptionFundingRoundName_V1(
- &m->nested.asset_create_asset_V1.funding_round,
+ case 5: /* asset_create_asset_V3 - funding_round */;
+ return _toStringOptionFundingRoundName_V3(
+ &m->nested.asset_create_asset_V3.funding_round,
outValue, outValueLen,
pageIdx, pageCount);
- case 6: /* asset_create_asset_V1 - disable_iu */;
+ case 6: /* asset_create_asset_V3 - disable_iu */;
return _toStringbool(
- &m->nested.asset_create_asset_V1.disable_iu,
+ &m->nested.asset_create_asset_V3.disable_iu,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7827,9 +8863,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6660: /* module 26 call 4 */
switch (itemIdx) {
- case 0: /* asset_freeze_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_freeze_V1.ticker,
+ case 0: /* asset_freeze_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_freeze_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7837,9 +8873,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6661: /* module 26 call 5 */
switch (itemIdx) {
- case 0: /* asset_unfreeze_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_unfreeze_V1.ticker,
+ case 0: /* asset_unfreeze_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_unfreeze_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7847,14 +8883,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6662: /* module 26 call 6 */
switch (itemIdx) {
- case 0: /* asset_rename_asset_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_rename_asset_V1.ticker,
+ case 0: /* asset_rename_asset_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_rename_asset_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_rename_asset_V1 - name */;
- return _toStringAssetName_V1(
- &m->nested.asset_rename_asset_V1.name,
+ case 1: /* asset_rename_asset_V3 - name */;
+ return _toStringAssetName_V3(
+ &m->nested.asset_rename_asset_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7862,14 +8898,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6663: /* module 26 call 7 */
switch (itemIdx) {
- case 0: /* asset_issue_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_issue_V1.ticker,
+ case 0: /* asset_issue_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_issue_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_issue_V1 - amount */;
+ case 1: /* asset_issue_V3 - amount */;
return _toStringBalanceNoSymbol(
- &m->nested.asset_issue_V1.amount,
+ &m->nested.asset_issue_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7877,14 +8913,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6664: /* module 26 call 8 */
switch (itemIdx) {
- case 0: /* asset_redeem_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_redeem_V1.ticker,
+ case 0: /* asset_redeem_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_redeem_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_redeem_V1 - amount */;
+ case 1: /* asset_redeem_V3 - amount */;
return _toStringBalanceNoSymbol(
- &m->nested.asset_redeem_V1.amount,
+ &m->nested.asset_redeem_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7892,9 +8928,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6665: /* module 26 call 9 */
switch (itemIdx) {
- case 0: /* asset_make_divisible_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_make_divisible_V1.ticker,
+ case 0: /* asset_make_divisible_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_make_divisible_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7902,14 +8938,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6666: /* module 26 call 10 */
switch (itemIdx) {
- case 0: /* asset_add_documents_V1 - docs */;
- return _toStringVecDocument_V1(
- &m->nested.asset_add_documents_V1.docs,
+ case 0: /* asset_add_documents_V3 - docs */;
+ return _toStringVecDocument_V3(
+ &m->nested.asset_add_documents_V3.docs,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_add_documents_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_add_documents_V1.ticker,
+ case 1: /* asset_add_documents_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_add_documents_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7917,14 +8953,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6667: /* module 26 call 11 */
switch (itemIdx) {
- case 0: /* asset_remove_documents_V1 - ids */;
- return _toStringVecDocumentId_V1(
- &m->nested.asset_remove_documents_V1.ids,
+ case 0: /* asset_remove_documents_V3 - ids */;
+ return _toStringVecDocumentId_V3(
+ &m->nested.asset_remove_documents_V3.ids,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_remove_documents_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_remove_documents_V1.ticker,
+ case 1: /* asset_remove_documents_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_remove_documents_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7932,14 +8968,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6668: /* module 26 call 12 */
switch (itemIdx) {
- case 0: /* asset_set_funding_round_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_set_funding_round_V1.ticker,
+ case 0: /* asset_set_funding_round_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_set_funding_round_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_set_funding_round_V1 - name */;
- return _toStringFundingRoundName_V1(
- &m->nested.asset_set_funding_round_V1.name,
+ case 1: /* asset_set_funding_round_V3 - name */;
+ return _toStringFundingRoundName_V3(
+ &m->nested.asset_set_funding_round_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7947,14 +8983,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6669: /* module 26 call 13 */
switch (itemIdx) {
- case 0: /* asset_update_identifiers_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_update_identifiers_V1.ticker,
+ case 0: /* asset_update_identifiers_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_update_identifiers_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_update_identifiers_V1 - identifiers */;
- return _toStringVecAssetIdentifier_V1(
- &m->nested.asset_update_identifiers_V1.identifiers,
+ case 1: /* asset_update_identifiers_V3 - identifiers */;
+ return _toStringVecAssetIdentifier_V3(
+ &m->nested.asset_update_identifiers_V3.identifiers,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7962,14 +8998,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6670: /* module 26 call 14 */
switch (itemIdx) {
- case 0: /* asset_claim_classic_ticker_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.asset_claim_classic_ticker_V1.ticker,
+ case 0: /* asset_claim_classic_ticker_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.asset_claim_classic_ticker_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_claim_classic_ticker_V1 - ethereum_signature */;
- return _toStringEcdsaSignature_V1(
- &m->nested.asset_claim_classic_ticker_V1.ethereum_signature,
+ case 1: /* asset_claim_classic_ticker_V3 - ethereum_signature */;
+ return _toStringEcdsaSignature_V3(
+ &m->nested.asset_claim_classic_ticker_V3.ethereum_signature,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7977,19 +9013,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6671: /* module 26 call 15 */
switch (itemIdx) {
- case 0: /* asset_reserve_classic_ticker_V1 - classic_ticker_import */;
- return _toStringClassicTickerImport_V1(
- &m->nested.asset_reserve_classic_ticker_V1.classic_ticker_import,
+ case 0: /* asset_reserve_classic_ticker_V3 - classic_ticker_import */;
+ return _toStringClassicTickerImport_V3(
+ &m->nested.asset_reserve_classic_ticker_V3.classic_ticker_import,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_reserve_classic_ticker_V1 - contract_did */;
- return _toStringIdentityId_V1(
- &m->nested.asset_reserve_classic_ticker_V1.contract_did,
+ case 1: /* asset_reserve_classic_ticker_V3 - contract_did */;
+ return _toStringIdentityId_V3(
+ &m->nested.asset_reserve_classic_ticker_V3.contract_did,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* asset_reserve_classic_ticker_V1 - config */;
- return _toStringTickerRegistrationConfig_V1(
- &m->nested.asset_reserve_classic_ticker_V1.config,
+ case 2: /* asset_reserve_classic_ticker_V3 - config */;
+ return _toStringTickerRegistrationConfigMoment_V3(
+ &m->nested.asset_reserve_classic_ticker_V3.config,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -7997,19 +9033,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6672: /* module 26 call 16 */
switch (itemIdx) {
- case 0: /* asset_controller_transfer_V1 - ticker */;
- return _toStringTicker_V1(
- &m->basic.asset_controller_transfer_V1.ticker,
+ case 0: /* asset_controller_transfer_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.asset_controller_transfer_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* asset_controller_transfer_V1 - amount */;
+ case 1: /* asset_controller_transfer_V3 - amount */;
return _toStringBalanceNoSymbol(
- &m->basic.asset_controller_transfer_V1.amount,
+ &m->basic.asset_controller_transfer_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* asset_controller_transfer_V1 - from_portfolio */;
- return _toStringPortfolioId_V1(
- &m->basic.asset_controller_transfer_V1.from_portfolio,
+ case 2: /* asset_controller_transfer_V3 - from_portfolio */;
+ return _toStringPortfolioId_V3(
+ &m->basic.asset_controller_transfer_V3.from_portfolio,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8017,269 +9053,389 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 6673: /* module 26 call 17 */
switch (itemIdx) {
- case 0: /* asset_register_custom_asset_type_V1 - ty */;
- return _toStringBytes(
- &m->basic.asset_register_custom_asset_type_V1.ty,
+ case 0: /* asset_register_custom_asset_type_V3 - ty */;
+ return _toStringVecu8(
+ &m->basic.asset_register_custom_asset_type_V3.ty,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 6912: /* module 27 call 0 */
+ case 6674: /* module 26 call 18 */
switch (itemIdx) {
- case 0: /* capitaldistribution_distribute_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.capitaldistribution_distribute_V1.ca_id,
+ case 0: /* asset_create_asset_with_custom_type_V3 - name */;
+ return _toStringAssetName_V3(
+ &m->basic.asset_create_asset_with_custom_type_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* capitaldistribution_distribute_V1 - portfolio */;
- return _toStringOptionPortfolioNumber_V1(
- &m->nested.capitaldistribution_distribute_V1.portfolio,
+ case 1: /* asset_create_asset_with_custom_type_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.asset_create_asset_with_custom_type_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* capitaldistribution_distribute_V1 - currency */;
- return _toStringTicker_V1(
- &m->nested.capitaldistribution_distribute_V1.currency,
+ case 2: /* asset_create_asset_with_custom_type_V3 - divisible */;
+ return _toStringbool(
+ &m->basic.asset_create_asset_with_custom_type_V3.divisible,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* capitaldistribution_distribute_V1 - per_share */;
- return _toStringBalance(
- &m->nested.capitaldistribution_distribute_V1.per_share,
+ case 3: /* asset_create_asset_with_custom_type_V3 - custom_asset_type */;
+ return _toStringVecu8(
+ &m->basic.asset_create_asset_with_custom_type_V3.custom_asset_type,
outValue, outValueLen,
pageIdx, pageCount);
- case 4: /* capitaldistribution_distribute_V1 - amount */;
- return _toStringBalance(
- &m->nested.capitaldistribution_distribute_V1.amount,
+ case 4: /* asset_create_asset_with_custom_type_V3 - identifiers */;
+ return _toStringVecAssetIdentifier_V3(
+ &m->basic.asset_create_asset_with_custom_type_V3.identifiers,
outValue, outValueLen,
pageIdx, pageCount);
- case 5: /* capitaldistribution_distribute_V1 - payment_at */;
- return _toStringMoment_V1(
- &m->nested.capitaldistribution_distribute_V1.payment_at,
+ case 5: /* asset_create_asset_with_custom_type_V3 - funding_round */;
+ return _toStringOptionFundingRoundName_V3(
+ &m->basic.asset_create_asset_with_custom_type_V3.funding_round,
outValue, outValueLen,
pageIdx, pageCount);
- case 6: /* capitaldistribution_distribute_V1 - expires_at */;
- return _toStringOptionMoment_V1(
- &m->nested.capitaldistribution_distribute_V1.expires_at,
+ case 6: /* asset_create_asset_with_custom_type_V3 - disable_iu */;
+ return _toStringbool(
+ &m->basic.asset_create_asset_with_custom_type_V3.disable_iu,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 6913: /* module 27 call 1 */
+ case 6675: /* module 26 call 19 */
switch (itemIdx) {
- case 0: /* capitaldistribution_claim_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.capitaldistribution_claim_V1.ca_id,
+ case 0: /* asset_set_asset_metadata_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.asset_set_asset_metadata_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- default:
- return parser_no_data;
- }
- case 6914: /* module 27 call 2 */
- switch (itemIdx) {
- case 0: /* capitaldistribution_push_benefit_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.capitaldistribution_push_benefit_V1.ca_id,
+ case 1: /* asset_set_asset_metadata_V3 - key */;
+ return _toStringAssetMetadataKey_V3(
+ &m->basic.asset_set_asset_metadata_V3.key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* capitaldistribution_push_benefit_V1 - holder */;
- return _toStringIdentityId_V1(
- &m->nested.capitaldistribution_push_benefit_V1.holder,
+ case 2: /* asset_set_asset_metadata_V3 - value */;
+ return _toStringAssetMetadataValue_V3(
+ &m->basic.asset_set_asset_metadata_V3.value,
outValue, outValueLen,
pageIdx, pageCount);
- default:
- return parser_no_data;
- }
- case 6915: /* module 27 call 3 */
- switch (itemIdx) {
- case 0: /* capitaldistribution_reclaim_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.capitaldistribution_reclaim_V1.ca_id,
+ case 3: /* asset_set_asset_metadata_V3 - detail */;
+ return _toStringOptionAssetMetadataValueDetailMoment_V3(
+ &m->basic.asset_set_asset_metadata_V3.detail,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 6916: /* module 27 call 4 */
+ case 6676: /* module 26 call 20 */
switch (itemIdx) {
- case 0: /* capitaldistribution_remove_distribution_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.capitaldistribution_remove_distribution_V1.ca_id,
+ case 0: /* asset_set_asset_metadata_details_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.asset_set_asset_metadata_details_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- default:
- return parser_no_data;
- }
- case 7168: /* module 28 call 0 */
- switch (itemIdx) {
- case 0: /* checkpoint_create_checkpoint_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.checkpoint_create_checkpoint_V1.ticker,
+ case 1: /* asset_set_asset_metadata_details_V3 - key */;
+ return _toStringAssetMetadataKey_V3(
+ &m->basic.asset_set_asset_metadata_details_V3.key,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* asset_set_asset_metadata_details_V3 - detail */;
+ return _toStringAssetMetadataValueDetailMoment_V3(
+ &m->basic.asset_set_asset_metadata_details_V3.detail,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7169: /* module 28 call 1 */
+ case 6677: /* module 26 call 21 */
switch (itemIdx) {
- case 0: /* checkpoint_set_schedules_max_complexity_V1 - max_complexity */;
- return _toStringu64(
- &m->nested.checkpoint_set_schedules_max_complexity_V1.max_complexity,
+ case 0: /* asset_register_and_set_local_asset_metadata_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.asset_register_and_set_local_asset_metadata_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* asset_register_and_set_local_asset_metadata_V3 - name */;
+ return _toStringAssetMetadataName_V3(
+ &m->basic.asset_register_and_set_local_asset_metadata_V3.name,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* asset_register_and_set_local_asset_metadata_V3 - spec */;
+ return _toStringAssetMetadataSpec_V3(
+ &m->basic.asset_register_and_set_local_asset_metadata_V3.spec,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* asset_register_and_set_local_asset_metadata_V3 - value */;
+ return _toStringAssetMetadataValue_V3(
+ &m->basic.asset_register_and_set_local_asset_metadata_V3.value,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* asset_register_and_set_local_asset_metadata_V3 - detail */;
+ return _toStringOptionAssetMetadataValueDetailMoment_V3(
+ &m->basic.asset_register_and_set_local_asset_metadata_V3.detail,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7170: /* module 28 call 2 */
+ case 6678: /* module 26 call 22 */
switch (itemIdx) {
- case 0: /* checkpoint_create_schedule_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.checkpoint_create_schedule_V1.ticker,
+ case 0: /* asset_register_asset_metadata_local_type_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.asset_register_asset_metadata_local_type_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* asset_register_asset_metadata_local_type_V3 - name */;
+ return _toStringAssetMetadataName_V3(
+ &m->basic.asset_register_asset_metadata_local_type_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* checkpoint_create_schedule_V1 - schedule */;
- return _toStringScheduleSpec_V1(
- &m->nested.checkpoint_create_schedule_V1.schedule,
+ case 2: /* asset_register_asset_metadata_local_type_V3 - spec */;
+ return _toStringAssetMetadataSpec_V3(
+ &m->basic.asset_register_asset_metadata_local_type_V3.spec,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7171: /* module 28 call 3 */
+ case 6679: /* module 26 call 23 */
switch (itemIdx) {
- case 0: /* checkpoint_remove_schedule_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.checkpoint_remove_schedule_V1.ticker,
+ case 0: /* asset_register_asset_metadata_global_type_V3 - name */;
+ return _toStringAssetMetadataName_V3(
+ &m->basic.asset_register_asset_metadata_global_type_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* checkpoint_remove_schedule_V1 - id */;
- return _toStringScheduleId_V1(
- &m->nested.checkpoint_remove_schedule_V1.id,
+ case 1: /* asset_register_asset_metadata_global_type_V3 - spec */;
+ return _toStringAssetMetadataSpec_V3(
+ &m->basic.asset_register_asset_metadata_global_type_V3.spec,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7424: /* module 29 call 0 */
+ case 6912: /* module 27 call 0 */
switch (itemIdx) {
- case 0: /* compliancemanager_add_compliance_requirement_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_add_compliance_requirement_V1.ticker,
+ case 0: /* capitaldistribution_distribute_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.capitaldistribution_distribute_V3.ca_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* capitaldistribution_distribute_V3 - portfolio */;
+ return _toStringOptionPortfolioNumber_V3(
+ &m->nested.capitaldistribution_distribute_V3.portfolio,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* capitaldistribution_distribute_V3 - currency */;
+ return _toStringTicker_V3(
+ &m->nested.capitaldistribution_distribute_V3.currency,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* capitaldistribution_distribute_V3 - per_share */;
+ return _toStringBalance(
+ &m->nested.capitaldistribution_distribute_V3.per_share,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* capitaldistribution_distribute_V3 - amount */;
+ return _toStringBalance(
+ &m->nested.capitaldistribution_distribute_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* compliancemanager_add_compliance_requirement_V1 - sender_conditions */;
- return _toStringVecCondition_V1(
- &m->nested.compliancemanager_add_compliance_requirement_V1.sender_conditions,
+ case 5: /* capitaldistribution_distribute_V3 - payment_at */;
+ return _toStringMoment_V3(
+ &m->nested.capitaldistribution_distribute_V3.payment_at,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* compliancemanager_add_compliance_requirement_V1 - receiver_conditions */;
- return _toStringVecCondition_V1(
- &m->nested.compliancemanager_add_compliance_requirement_V1.receiver_conditions,
+ case 6: /* capitaldistribution_distribute_V3 - expires_at */;
+ return _toStringOptionMoment_V3(
+ &m->nested.capitaldistribution_distribute_V3.expires_at,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7425: /* module 29 call 1 */
+ case 6913: /* module 27 call 1 */
switch (itemIdx) {
- case 0: /* compliancemanager_remove_compliance_requirement_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_remove_compliance_requirement_V1.ticker,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 1: /* compliancemanager_remove_compliance_requirement_V1 - id */;
- return _toStringu32(
- &m->nested.compliancemanager_remove_compliance_requirement_V1.id,
+ case 0: /* capitaldistribution_claim_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.capitaldistribution_claim_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7426: /* module 29 call 2 */
+ case 6914: /* module 27 call 2 */
switch (itemIdx) {
- case 0: /* compliancemanager_replace_asset_compliance_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_replace_asset_compliance_V1.ticker,
+ case 0: /* capitaldistribution_push_benefit_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.capitaldistribution_push_benefit_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* compliancemanager_replace_asset_compliance_V1 - asset_compliance */;
- return _toStringVecComplianceRequirement_V1(
- &m->nested.compliancemanager_replace_asset_compliance_V1.asset_compliance,
+ case 1: /* capitaldistribution_push_benefit_V3 - holder */;
+ return _toStringIdentityId_V3(
+ &m->nested.capitaldistribution_push_benefit_V3.holder,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7427: /* module 29 call 3 */
+ case 6915: /* module 27 call 3 */
switch (itemIdx) {
- case 0: /* compliancemanager_reset_asset_compliance_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_reset_asset_compliance_V1.ticker,
+ case 0: /* capitaldistribution_reclaim_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.capitaldistribution_reclaim_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7428: /* module 29 call 4 */
+ case 6916: /* module 27 call 4 */
switch (itemIdx) {
- case 0: /* compliancemanager_pause_asset_compliance_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_pause_asset_compliance_V1.ticker,
+ case 0: /* capitaldistribution_remove_distribution_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.capitaldistribution_remove_distribution_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7429: /* module 29 call 5 */
+ case 7168: /* module 28 call 0 */
switch (itemIdx) {
- case 0: /* compliancemanager_resume_asset_compliance_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_resume_asset_compliance_V1.ticker,
+ case 0: /* checkpoint_create_checkpoint_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.checkpoint_create_checkpoint_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7430: /* module 29 call 6 */
+ case 7169: /* module 28 call 1 */
switch (itemIdx) {
- case 0: /* compliancemanager_add_default_trusted_claim_issuer_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_add_default_trusted_claim_issuer_V1.ticker,
- outValue, outValueLen,
- pageIdx, pageCount);
- case 1: /* compliancemanager_add_default_trusted_claim_issuer_V1 - issuer */;
- return _toStringTrustedIssuer_V1(
- &m->nested.compliancemanager_add_default_trusted_claim_issuer_V1.issuer,
+ case 0: /* checkpoint_set_schedules_max_complexity_V3 - max_complexity */;
+ return _toStringu64(
+ &m->nested.checkpoint_set_schedules_max_complexity_V3.max_complexity,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7431: /* module 29 call 7 */
+ case 7170: /* module 28 call 2 */
switch (itemIdx) {
- case 0: /* compliancemanager_remove_default_trusted_claim_issuer_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_remove_default_trusted_claim_issuer_V1.ticker,
+ case 0: /* checkpoint_create_schedule_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.checkpoint_create_schedule_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* compliancemanager_remove_default_trusted_claim_issuer_V1 - issuer */;
- return _toStringIdentityId_V1(
- &m->nested.compliancemanager_remove_default_trusted_claim_issuer_V1.issuer,
+ case 1: /* checkpoint_create_schedule_V3 - schedule */;
+ return _toStringScheduleSpec_V3(
+ &m->nested.checkpoint_create_schedule_V3.schedule,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 7432: /* module 29 call 8 */
+ case 7171: /* module 28 call 3 */
+ switch (itemIdx) {
+ case 0: /* checkpoint_remove_schedule_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.checkpoint_remove_schedule_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* checkpoint_remove_schedule_V3 - id */;
+ return _toStringScheduleId_V3(
+ &m->nested.checkpoint_remove_schedule_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7424: /* module 29 call 0 */
switch (itemIdx) {
- case 0: /* compliancemanager_change_compliance_requirement_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.compliancemanager_change_compliance_requirement_V1.ticker,
+ case 0: /* compliancemanager_add_compliance_requirement_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_add_compliance_requirement_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* compliancemanager_change_compliance_requirement_V1 - new_req */;
- return _toStringComplianceRequirement_V1(
- &m->nested.compliancemanager_change_compliance_requirement_V1.new_req,
+ case 1: /* compliancemanager_add_compliance_requirement_V3 - sender_conditions */;
+ return _toStringVecCondition_V3(
+ &m->nested.compliancemanager_add_compliance_requirement_V3.sender_conditions,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* compliancemanager_add_compliance_requirement_V3 - receiver_conditions */;
+ return _toStringVecCondition_V3(
+ &m->nested.compliancemanager_add_compliance_requirement_V3.receiver_conditions,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7425: /* module 29 call 1 */
+ switch (itemIdx) {
+ case 0: /* compliancemanager_remove_compliance_requirement_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_remove_compliance_requirement_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* compliancemanager_remove_compliance_requirement_V3 - id */;
+ return _toStringu32(
+ &m->nested.compliancemanager_remove_compliance_requirement_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7427: /* module 29 call 3 */
+ switch (itemIdx) {
+ case 0: /* compliancemanager_reset_asset_compliance_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_reset_asset_compliance_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7428: /* module 29 call 4 */
+ switch (itemIdx) {
+ case 0: /* compliancemanager_pause_asset_compliance_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_pause_asset_compliance_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7429: /* module 29 call 5 */
+ switch (itemIdx) {
+ case 0: /* compliancemanager_resume_asset_compliance_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_resume_asset_compliance_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7430: /* module 29 call 6 */
+ switch (itemIdx) {
+ case 0: /* compliancemanager_add_default_trusted_claim_issuer_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_add_default_trusted_claim_issuer_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* compliancemanager_add_default_trusted_claim_issuer_V3 - issuer */;
+ return _toStringTrustedIssuer_V3(
+ &m->nested.compliancemanager_add_default_trusted_claim_issuer_V3.issuer,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 7431: /* module 29 call 7 */
+ switch (itemIdx) {
+ case 0: /* compliancemanager_remove_default_trusted_claim_issuer_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.compliancemanager_remove_default_trusted_claim_issuer_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* compliancemanager_remove_default_trusted_claim_issuer_V3 - issuer */;
+ return _toStringIdentityId_V3(
+ &m->nested.compliancemanager_remove_default_trusted_claim_issuer_V3.issuer,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8287,9 +9443,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7680: /* module 30 call 0 */
switch (itemIdx) {
- case 0: /* corporateaction_set_max_details_length_V1 - length */;
+ case 0: /* corporateaction_set_max_details_length_V3 - length */;
return _toStringu32(
- &m->nested.corporateaction_set_max_details_length_V1.length,
+ &m->nested.corporateaction_set_max_details_length_V3.length,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8297,14 +9453,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7681: /* module 30 call 1 */
switch (itemIdx) {
- case 0: /* corporateaction_set_default_targets_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.corporateaction_set_default_targets_V1.ticker,
+ case 0: /* corporateaction_set_default_targets_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.corporateaction_set_default_targets_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateaction_set_default_targets_V1 - targets */;
- return _toStringTargetIdentities_V1(
- &m->nested.corporateaction_set_default_targets_V1.targets,
+ case 1: /* corporateaction_set_default_targets_V3 - targets */;
+ return _toStringTargetIdentities_V3(
+ &m->nested.corporateaction_set_default_targets_V3.targets,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8312,14 +9468,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7682: /* module 30 call 2 */
switch (itemIdx) {
- case 0: /* corporateaction_set_default_withholding_tax_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.corporateaction_set_default_withholding_tax_V1.ticker,
+ case 0: /* corporateaction_set_default_withholding_tax_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.corporateaction_set_default_withholding_tax_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateaction_set_default_withholding_tax_V1 - tax */;
- return _toStringTax_V1(
- &m->nested.corporateaction_set_default_withholding_tax_V1.tax,
+ case 1: /* corporateaction_set_default_withholding_tax_V3 - tax */;
+ return _toStringTax_V3(
+ &m->nested.corporateaction_set_default_withholding_tax_V3.tax,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8327,19 +9483,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7683: /* module 30 call 3 */
switch (itemIdx) {
- case 0: /* corporateaction_set_did_withholding_tax_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.corporateaction_set_did_withholding_tax_V1.ticker,
+ case 0: /* corporateaction_set_did_withholding_tax_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.corporateaction_set_did_withholding_tax_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateaction_set_did_withholding_tax_V1 - taxed_did */;
- return _toStringIdentityId_V1(
- &m->nested.corporateaction_set_did_withholding_tax_V1.taxed_did,
+ case 1: /* corporateaction_set_did_withholding_tax_V3 - taxed_did */;
+ return _toStringIdentityId_V3(
+ &m->nested.corporateaction_set_did_withholding_tax_V3.taxed_did,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* corporateaction_set_did_withholding_tax_V1 - tax */;
- return _toStringOptionTax_V1(
- &m->nested.corporateaction_set_did_withholding_tax_V1.tax,
+ case 2: /* corporateaction_set_did_withholding_tax_V3 - tax */;
+ return _toStringOptionTax_V3(
+ &m->nested.corporateaction_set_did_withholding_tax_V3.tax,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8347,44 +9503,44 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7684: /* module 30 call 4 */
switch (itemIdx) {
- case 0: /* corporateaction_initiate_corporate_action_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.ticker,
+ case 0: /* corporateaction_initiate_corporate_action_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateaction_initiate_corporate_action_V1 - kind */;
- return _toStringCAKind_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.kind,
+ case 1: /* corporateaction_initiate_corporate_action_V3 - kind */;
+ return _toStringCAKind_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.kind,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* corporateaction_initiate_corporate_action_V1 - decl_date */;
- return _toStringMoment_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.decl_date,
+ case 2: /* corporateaction_initiate_corporate_action_V3 - decl_date */;
+ return _toStringMoment_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.decl_date,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* corporateaction_initiate_corporate_action_V1 - record_date */;
- return _toStringOptionRecordDateSpec_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.record_date,
+ case 3: /* corporateaction_initiate_corporate_action_V3 - record_date */;
+ return _toStringOptionRecordDateSpec_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.record_date,
outValue, outValueLen,
pageIdx, pageCount);
- case 4: /* corporateaction_initiate_corporate_action_V1 - details */;
- return _toStringCADetails_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.details,
+ case 4: /* corporateaction_initiate_corporate_action_V3 - details */;
+ return _toStringCADetails_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.details,
outValue, outValueLen,
pageIdx, pageCount);
- case 5: /* corporateaction_initiate_corporate_action_V1 - targets */;
- return _toStringOptionTargetIdentities_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.targets,
+ case 5: /* corporateaction_initiate_corporate_action_V3 - targets */;
+ return _toStringOptionTargetIdentities_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.targets,
outValue, outValueLen,
pageIdx, pageCount);
- case 6: /* corporateaction_initiate_corporate_action_V1 - default_withholding_tax */;
- return _toStringOptionTax_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.default_withholding_tax,
+ case 6: /* corporateaction_initiate_corporate_action_V3 - default_withholding_tax */;
+ return _toStringOptionTax_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.default_withholding_tax,
outValue, outValueLen,
pageIdx, pageCount);
- case 7: /* corporateaction_initiate_corporate_action_V1 - withholding_tax */;
- return _toStringOptionVecTupleIdentityIdTax_V1(
- &m->nested.corporateaction_initiate_corporate_action_V1.withholding_tax,
+ case 7: /* corporateaction_initiate_corporate_action_V3 - withholding_tax */;
+ return _toStringOptionVecTupleIdentityIdTax_V3(
+ &m->nested.corporateaction_initiate_corporate_action_V3.withholding_tax,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8392,14 +9548,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7685: /* module 30 call 5 */
switch (itemIdx) {
- case 0: /* corporateaction_link_ca_doc_V1 - id */;
- return _toStringCAId_V1(
- &m->nested.corporateaction_link_ca_doc_V1.id,
+ case 0: /* corporateaction_link_ca_doc_V3 - id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateaction_link_ca_doc_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateaction_link_ca_doc_V1 - docs */;
- return _toStringVecDocumentId_V1(
- &m->nested.corporateaction_link_ca_doc_V1.docs,
+ case 1: /* corporateaction_link_ca_doc_V3 - docs */;
+ return _toStringVecDocumentId_V3(
+ &m->nested.corporateaction_link_ca_doc_V3.docs,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8407,9 +9563,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7686: /* module 30 call 6 */
switch (itemIdx) {
- case 0: /* corporateaction_remove_ca_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateaction_remove_ca_V1.ca_id,
+ case 0: /* corporateaction_remove_ca_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateaction_remove_ca_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8417,14 +9573,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7687: /* module 30 call 7 */
switch (itemIdx) {
- case 0: /* corporateaction_change_record_date_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateaction_change_record_date_V1.ca_id,
+ case 0: /* corporateaction_change_record_date_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateaction_change_record_date_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateaction_change_record_date_V1 - record_date */;
- return _toStringOptionRecordDateSpec_V1(
- &m->nested.corporateaction_change_record_date_V1.record_date,
+ case 1: /* corporateaction_change_record_date_V3 - record_date */;
+ return _toStringOptionRecordDateSpec_V3(
+ &m->nested.corporateaction_change_record_date_V3.record_date,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8432,24 +9588,24 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7936: /* module 31 call 0 */
switch (itemIdx) {
- case 0: /* corporateballot_attach_ballot_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateballot_attach_ballot_V1.ca_id,
+ case 0: /* corporateballot_attach_ballot_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateballot_attach_ballot_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateballot_attach_ballot_V1 - range */;
- return _toStringBallotTimeRange_V1(
- &m->nested.corporateballot_attach_ballot_V1.range,
+ case 1: /* corporateballot_attach_ballot_V3 - range */;
+ return _toStringBallotTimeRange_V3(
+ &m->nested.corporateballot_attach_ballot_V3.range,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* corporateballot_attach_ballot_V1 - meta */;
- return _toStringBallotMeta_V1(
- &m->nested.corporateballot_attach_ballot_V1.meta,
+ case 2: /* corporateballot_attach_ballot_V3 - meta */;
+ return _toStringBallotMeta_V3(
+ &m->nested.corporateballot_attach_ballot_V3.meta,
outValue, outValueLen,
pageIdx, pageCount);
- case 3: /* corporateballot_attach_ballot_V1 - rcv */;
+ case 3: /* corporateballot_attach_ballot_V3 - rcv */;
return _toStringbool(
- &m->nested.corporateballot_attach_ballot_V1.rcv,
+ &m->nested.corporateballot_attach_ballot_V3.rcv,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8457,14 +9613,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7937: /* module 31 call 1 */
switch (itemIdx) {
- case 0: /* corporateballot_vote_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateballot_vote_V1.ca_id,
+ case 0: /* corporateballot_vote_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateballot_vote_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateballot_vote_V1 - votes */;
- return _toStringVecBallotVote_V1(
- &m->nested.corporateballot_vote_V1.votes,
+ case 1: /* corporateballot_vote_V3 - votes */;
+ return _toStringVecBallotVote_V3(
+ &m->nested.corporateballot_vote_V3.votes,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8472,14 +9628,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7938: /* module 31 call 2 */
switch (itemIdx) {
- case 0: /* corporateballot_change_end_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateballot_change_end_V1.ca_id,
+ case 0: /* corporateballot_change_end_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateballot_change_end_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateballot_change_end_V1 - end */;
- return _toStringMoment_V1(
- &m->nested.corporateballot_change_end_V1.end,
+ case 1: /* corporateballot_change_end_V3 - end */;
+ return _toStringMoment_V3(
+ &m->nested.corporateballot_change_end_V3.end,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8487,14 +9643,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7939: /* module 31 call 3 */
switch (itemIdx) {
- case 0: /* corporateballot_change_meta_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateballot_change_meta_V1.ca_id,
+ case 0: /* corporateballot_change_meta_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateballot_change_meta_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateballot_change_meta_V1 - meta */;
- return _toStringBallotMeta_V1(
- &m->nested.corporateballot_change_meta_V1.meta,
+ case 1: /* corporateballot_change_meta_V3 - meta */;
+ return _toStringBallotMeta_V3(
+ &m->nested.corporateballot_change_meta_V3.meta,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8502,14 +9658,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7940: /* module 31 call 4 */
switch (itemIdx) {
- case 0: /* corporateballot_change_rcv_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateballot_change_rcv_V1.ca_id,
+ case 0: /* corporateballot_change_rcv_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateballot_change_rcv_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* corporateballot_change_rcv_V1 - rcv */;
+ case 1: /* corporateballot_change_rcv_V3 - rcv */;
return _toStringbool(
- &m->nested.corporateballot_change_rcv_V1.rcv,
+ &m->nested.corporateballot_change_rcv_V3.rcv,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8517,9 +9673,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 7941: /* module 31 call 5 */
switch (itemIdx) {
- case 0: /* corporateballot_remove_ballot_V1 - ca_id */;
- return _toStringCAId_V1(
- &m->nested.corporateballot_remove_ballot_V1.ca_id,
+ case 0: /* corporateballot_remove_ballot_V3 - ca_id */;
+ return _toStringCAId_V3(
+ &m->nested.corporateballot_remove_ballot_V3.ca_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8527,9 +9683,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8448: /* module 33 call 0 */
switch (itemIdx) {
- case 0: /* pips_set_prune_historical_pips_V1 - prune */;
+ case 0: /* pips_set_prune_historical_pips_V3 - prune */;
return _toStringbool(
- &m->nested.pips_set_prune_historical_pips_V1.prune,
+ &m->nested.pips_set_prune_historical_pips_V3.prune,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8537,9 +9693,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8449: /* module 33 call 1 */
switch (itemIdx) {
- case 0: /* pips_set_min_proposal_deposit_V1 - deposit */;
+ case 0: /* pips_set_min_proposal_deposit_V3 - deposit */;
return _toStringBalance(
- &m->nested.pips_set_min_proposal_deposit_V1.deposit,
+ &m->nested.pips_set_min_proposal_deposit_V3.deposit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8547,9 +9703,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8450: /* module 33 call 2 */
switch (itemIdx) {
- case 0: /* pips_set_default_enactment_period_V1 - duration */;
+ case 0: /* pips_set_default_enactment_period_V3 - duration */;
return _toStringBlockNumber(
- &m->nested.pips_set_default_enactment_period_V1.duration,
+ &m->nested.pips_set_default_enactment_period_V3.duration,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8557,9 +9713,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8451: /* module 33 call 3 */
switch (itemIdx) {
- case 0: /* pips_set_pending_pip_expiry_V1 - expiry */;
- return _toStringMaybeBlock_V1(
- &m->nested.pips_set_pending_pip_expiry_V1.expiry,
+ case 0: /* pips_set_pending_pip_expiry_V3 - expiry */;
+ return _toStringMaybeBlockBlockNumber_V3(
+ &m->nested.pips_set_pending_pip_expiry_V3.expiry,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8567,9 +9723,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8452: /* module 33 call 4 */
switch (itemIdx) {
- case 0: /* pips_set_max_pip_skip_count_V1 - max */;
- return _toStringSkippedCount_V1(
- &m->nested.pips_set_max_pip_skip_count_V1.max,
+ case 0: /* pips_set_max_pip_skip_count_V3 - max */;
+ return _toStringSkippedCount_V3(
+ &m->nested.pips_set_max_pip_skip_count_V3.max,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8577,9 +9733,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8453: /* module 33 call 5 */
switch (itemIdx) {
- case 0: /* pips_set_active_pip_limit_V1 - limit */;
+ case 0: /* pips_set_active_pip_limit_V3 - limit */;
return _toStringu32(
- &m->nested.pips_set_active_pip_limit_V1.limit,
+ &m->nested.pips_set_active_pip_limit_V3.limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8587,9 +9743,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8456: /* module 33 call 8 */
switch (itemIdx) {
- case 0: /* pips_approve_committee_proposal_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_approve_committee_proposal_V1.id,
+ case 0: /* pips_approve_committee_proposal_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_approve_committee_proposal_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8597,9 +9753,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8457: /* module 33 call 9 */
switch (itemIdx) {
- case 0: /* pips_reject_proposal_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_reject_proposal_V1.id,
+ case 0: /* pips_reject_proposal_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_reject_proposal_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8607,9 +9763,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8458: /* module 33 call 10 */
switch (itemIdx) {
- case 0: /* pips_prune_proposal_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_prune_proposal_V1.id,
+ case 0: /* pips_prune_proposal_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_prune_proposal_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8617,14 +9773,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8459: /* module 33 call 11 */
switch (itemIdx) {
- case 0: /* pips_reschedule_execution_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_reschedule_execution_V1.id,
+ case 0: /* pips_reschedule_execution_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_reschedule_execution_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* pips_reschedule_execution_V1 - until */;
+ case 1: /* pips_reschedule_execution_V3 - until */;
return _toStringOptionBlockNumber(
- &m->nested.pips_reschedule_execution_V1.until,
+ &m->nested.pips_reschedule_execution_V3.until,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8642,9 +9798,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8462: /* module 33 call 14 */
switch (itemIdx) {
- case 0: /* pips_enact_snapshot_results_V1 - results */;
- return _toStringVecTuplePipIdSnapshotResult_V1(
- &m->nested.pips_enact_snapshot_results_V1.results,
+ case 0: /* pips_enact_snapshot_results_V3 - results */;
+ return _toStringVecTuplePipIdSnapshotResult_V3(
+ &m->nested.pips_enact_snapshot_results_V3.results,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8652,9 +9808,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8463: /* module 33 call 15 */
switch (itemIdx) {
- case 0: /* pips_execute_scheduled_pip_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_execute_scheduled_pip_V1.id,
+ case 0: /* pips_execute_scheduled_pip_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_execute_scheduled_pip_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8662,14 +9818,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8464: /* module 33 call 16 */
switch (itemIdx) {
- case 0: /* pips_expire_scheduled_pip_V1 - did */;
- return _toStringIdentityId_V1(
- &m->nested.pips_expire_scheduled_pip_V1.did,
+ case 0: /* pips_expire_scheduled_pip_V3 - did */;
+ return _toStringIdentityId_V3(
+ &m->nested.pips_expire_scheduled_pip_V3.did,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* pips_expire_scheduled_pip_V1 - id */;
- return _toStringPipId_V1(
- &m->nested.pips_expire_scheduled_pip_V1.id,
+ case 1: /* pips_expire_scheduled_pip_V3 - id */;
+ return _toStringPipId_V3(
+ &m->nested.pips_expire_scheduled_pip_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8677,9 +9833,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8704: /* module 34 call 0 */
switch (itemIdx) {
- case 0: /* portfolio_create_portfolio_V1 - name */;
- return _toStringPortfolioName_V1(
- &m->nested.portfolio_create_portfolio_V1.name,
+ case 0: /* portfolio_create_portfolio_V3 - name */;
+ return _toStringPortfolioName_V3(
+ &m->nested.portfolio_create_portfolio_V3.name,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8687,9 +9843,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8705: /* module 34 call 1 */
switch (itemIdx) {
- case 0: /* portfolio_delete_portfolio_V1 - num */;
- return _toStringPortfolioNumber_V1(
- &m->nested.portfolio_delete_portfolio_V1.num,
+ case 0: /* portfolio_delete_portfolio_V3 - num */;
+ return _toStringPortfolioNumber_V3(
+ &m->nested.portfolio_delete_portfolio_V3.num,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8697,19 +9853,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8706: /* module 34 call 2 */
switch (itemIdx) {
- case 0: /* portfolio_move_portfolio_funds_V1 - from */;
- return _toStringPortfolioId_V1(
- &m->nested.portfolio_move_portfolio_funds_V1.from,
+ case 0: /* portfolio_move_portfolio_funds_V3 - from */;
+ return _toStringPortfolioId_V3(
+ &m->nested.portfolio_move_portfolio_funds_V3.from,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* portfolio_move_portfolio_funds_V1 - to */;
- return _toStringPortfolioId_V1(
- &m->nested.portfolio_move_portfolio_funds_V1.to,
+ case 1: /* portfolio_move_portfolio_funds_V3 - to */;
+ return _toStringPortfolioId_V3(
+ &m->nested.portfolio_move_portfolio_funds_V3.to,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* portfolio_move_portfolio_funds_V1 - items */;
- return _toStringVecMovePortfolioItem_V1(
- &m->nested.portfolio_move_portfolio_funds_V1.items,
+ case 2: /* portfolio_move_portfolio_funds_V3 - items */;
+ return _toStringVecMovePortfolioItem_V3(
+ &m->nested.portfolio_move_portfolio_funds_V3.items,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8717,14 +9873,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8707: /* module 34 call 3 */
switch (itemIdx) {
- case 0: /* portfolio_rename_portfolio_V1 - num */;
- return _toStringPortfolioNumber_V1(
- &m->nested.portfolio_rename_portfolio_V1.num,
+ case 0: /* portfolio_rename_portfolio_V3 - num */;
+ return _toStringPortfolioNumber_V3(
+ &m->nested.portfolio_rename_portfolio_V3.num,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* portfolio_rename_portfolio_V1 - to_name */;
- return _toStringPortfolioName_V1(
- &m->nested.portfolio_rename_portfolio_V1.to_name,
+ case 1: /* portfolio_rename_portfolio_V3 - to_name */;
+ return _toStringPortfolioName_V3(
+ &m->nested.portfolio_rename_portfolio_V3.to_name,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8732,9 +9888,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8708: /* module 34 call 4 */
switch (itemIdx) {
- case 0: /* portfolio_quit_portfolio_custody_V1 - pid */;
- return _toStringPortfolioId_V1(
- &m->basic.portfolio_quit_portfolio_custody_V1.pid,
+ case 0: /* portfolio_quit_portfolio_custody_V3 - pid */;
+ return _toStringPortfolioId_V3(
+ &m->basic.portfolio_quit_portfolio_custody_V3.pid,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8742,9 +9898,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8709: /* module 34 call 5 */
switch (itemIdx) {
- case 0: /* portfolio_accept_portfolio_custody_V1 - auth_id */;
+ case 0: /* portfolio_accept_portfolio_custody_V3 - auth_id */;
return _toStringu64(
- &m->basic.portfolio_accept_portfolio_custody_V1.auth_id,
+ &m->basic.portfolio_accept_portfolio_custody_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8752,9 +9908,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 8960: /* module 35 call 0 */
switch (itemIdx) {
- case 0: /* protocolfee_change_coefficient_V1 - coefficient */;
- return _toStringPosRatio_V1(
- &m->nested.protocolfee_change_coefficient_V1.coefficient,
+ case 0: /* protocolfee_change_coefficient_V3 - coefficient */;
+ return _toStringPosRatio_V3(
+ &m->nested.protocolfee_change_coefficient_V3.coefficient,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8762,19 +9918,229 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 9472: /* module 37 call 0 */
switch (itemIdx) {
- case 0: /* settlement_create_venue_V1 - details */;
- return _toStringVenueDetails_V1(
- &m->nested.settlement_create_venue_V1.details,
+ case 0: /* settlement_create_venue_V3 - details */;
+ return _toStringVenueDetails_V3(
+ &m->nested.settlement_create_venue_V3.details,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_create_venue_V3 - signers */;
+ return _toStringVecAccountId_V3(
+ &m->nested.settlement_create_venue_V3.signers,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* settlement_create_venue_V3 - typ */;
+ return _toStringVenueType_V3(
+ &m->nested.settlement_create_venue_V3.typ,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9473: /* module 37 call 1 */
+ switch (itemIdx) {
+ case 0: /* settlement_update_venue_details_V3 - id */;
+ return _toStringVenueId_V3(
+ &m->basic.settlement_update_venue_details_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_update_venue_details_V3 - details */;
+ return _toStringVenueDetails_V3(
+ &m->basic.settlement_update_venue_details_V3.details,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9474: /* module 37 call 2 */
+ switch (itemIdx) {
+ case 0: /* settlement_update_venue_type_V3 - id */;
+ return _toStringVenueId_V3(
+ &m->basic.settlement_update_venue_type_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_update_venue_type_V3 - typ */;
+ return _toStringVenueType_V3(
+ &m->basic.settlement_update_venue_type_V3.typ,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9475: /* module 37 call 3 */
+ switch (itemIdx) {
+ case 0: /* settlement_add_instruction_V3 - venue_id */;
+ return _toStringVenueId_V3(
+ &m->nested.settlement_add_instruction_V3.venue_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_add_instruction_V3 - settlement_type */;
+ return _toStringSettlementTypeBlockNumber_V3(
+ &m->nested.settlement_add_instruction_V3.settlement_type,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* settlement_create_venue_V1 - signers */;
- return _toStringVecAccountId_V1(
- &m->nested.settlement_create_venue_V1.signers,
+ case 2: /* settlement_add_instruction_V3 - trade_date */;
+ return _toStringOptionMoment_V3(
+ &m->nested.settlement_add_instruction_V3.trade_date,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* settlement_create_venue_V1 - typ */;
- return _toStringVenueType_V1(
- &m->nested.settlement_create_venue_V1.typ,
+ case 3: /* settlement_add_instruction_V3 - value_date */;
+ return _toStringOptionMoment_V3(
+ &m->nested.settlement_add_instruction_V3.value_date,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* settlement_add_instruction_V3 - legs */;
+ return _toStringVecLeg_V3(
+ &m->nested.settlement_add_instruction_V3.legs,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9476: /* module 37 call 4 */
+ switch (itemIdx) {
+ case 0: /* settlement_add_and_affirm_instruction_V3 - venue_id */;
+ return _toStringVenueId_V3(
+ &m->nested.settlement_add_and_affirm_instruction_V3.venue_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_add_and_affirm_instruction_V3 - settlement_type */;
+ return _toStringSettlementTypeBlockNumber_V3(
+ &m->nested.settlement_add_and_affirm_instruction_V3.settlement_type,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* settlement_add_and_affirm_instruction_V3 - trade_date */;
+ return _toStringOptionMoment_V3(
+ &m->nested.settlement_add_and_affirm_instruction_V3.trade_date,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* settlement_add_and_affirm_instruction_V3 - value_date */;
+ return _toStringOptionMoment_V3(
+ &m->nested.settlement_add_and_affirm_instruction_V3.value_date,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* settlement_add_and_affirm_instruction_V3 - legs */;
+ return _toStringVecLeg_V3(
+ &m->nested.settlement_add_and_affirm_instruction_V3.legs,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 5: /* settlement_add_and_affirm_instruction_V3 - portfolios */;
+ return _toStringVecPortfolioId_V3(
+ &m->nested.settlement_add_and_affirm_instruction_V3.portfolios,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9477: /* module 37 call 5 */
+ switch (itemIdx) {
+ case 0: /* settlement_affirm_instruction_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_affirm_instruction_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_affirm_instruction_V3 - portfolios */;
+ return _toStringVecPortfolioId_V3(
+ &m->nested.settlement_affirm_instruction_V3.portfolios,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* settlement_affirm_instruction_V3 - max_legs_count */;
+ return _toStringu32(
+ &m->nested.settlement_affirm_instruction_V3.max_legs_count,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9478: /* module 37 call 6 */
+ switch (itemIdx) {
+ case 0: /* settlement_withdraw_affirmation_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_withdraw_affirmation_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_withdraw_affirmation_V3 - portfolios */;
+ return _toStringVecPortfolioId_V3(
+ &m->nested.settlement_withdraw_affirmation_V3.portfolios,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* settlement_withdraw_affirmation_V3 - max_legs_count */;
+ return _toStringu32(
+ &m->nested.settlement_withdraw_affirmation_V3.max_legs_count,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9479: /* module 37 call 7 */
+ switch (itemIdx) {
+ case 0: /* settlement_reject_instruction_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_reject_instruction_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_reject_instruction_V3 - portfolio */;
+ return _toStringPortfolioId_V3(
+ &m->nested.settlement_reject_instruction_V3.portfolio,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* settlement_reject_instruction_V3 - num_of_legs */;
+ return _toStringu32(
+ &m->nested.settlement_reject_instruction_V3.num_of_legs,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9480: /* module 37 call 8 */
+ switch (itemIdx) {
+ case 0: /* settlement_affirm_with_receipts_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_affirm_with_receipts_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_affirm_with_receipts_V3 - receipt_details */;
+ return _toStringVecReceiptDetails_V3(
+ &m->nested.settlement_affirm_with_receipts_V3.receipt_details,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* settlement_affirm_with_receipts_V3 - portfolios */;
+ return _toStringVecPortfolioId_V3(
+ &m->nested.settlement_affirm_with_receipts_V3.portfolios,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* settlement_affirm_with_receipts_V3 - max_legs_count */;
+ return _toStringu32(
+ &m->nested.settlement_affirm_with_receipts_V3.max_legs_count,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9481: /* module 37 call 9 */
+ switch (itemIdx) {
+ case 0: /* settlement_claim_receipt_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_claim_receipt_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_claim_receipt_V3 - receipt_details */;
+ return _toStringReceiptDetails_V3(
+ &m->nested.settlement_claim_receipt_V3.receipt_details,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9482: /* module 37 call 10 */
+ switch (itemIdx) {
+ case 0: /* settlement_unclaim_receipt_V3 - instruction_id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_unclaim_receipt_V3.instruction_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_unclaim_receipt_V3 - leg_id */;
+ return _toStringLegId_V3(
+ &m->nested.settlement_unclaim_receipt_V3.leg_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8782,14 +10148,44 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 9483: /* module 37 call 11 */
switch (itemIdx) {
- case 0: /* settlement_set_venue_filtering_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.settlement_set_venue_filtering_V1.ticker,
+ case 0: /* settlement_set_venue_filtering_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.settlement_set_venue_filtering_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* settlement_set_venue_filtering_V1 - enabled */;
+ case 1: /* settlement_set_venue_filtering_V3 - enabled */;
return _toStringbool(
- &m->nested.settlement_set_venue_filtering_V1.enabled,
+ &m->nested.settlement_set_venue_filtering_V3.enabled,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9484: /* module 37 call 12 */
+ switch (itemIdx) {
+ case 0: /* settlement_allow_venues_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.settlement_allow_venues_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_allow_venues_V3 - venues */;
+ return _toStringVecVenueId_V3(
+ &m->nested.settlement_allow_venues_V3.venues,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9485: /* module 37 call 13 */
+ switch (itemIdx) {
+ case 0: /* settlement_disallow_venues_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->nested.settlement_disallow_venues_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_disallow_venues_V3 - venues */;
+ return _toStringVecVenueId_V3(
+ &m->nested.settlement_disallow_venues_V3.venues,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8797,84 +10193,204 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 9486: /* module 37 call 14 */
switch (itemIdx) {
- case 0: /* settlement_change_receipt_validity_V1 - receipt_uid */;
+ case 0: /* settlement_change_receipt_validity_V3 - receipt_uid */;
return _toStringu64(
- &m->basic.settlement_change_receipt_validity_V1.receipt_uid,
+ &m->basic.settlement_change_receipt_validity_V3.receipt_uid,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* settlement_change_receipt_validity_V1 - validity */;
+ case 1: /* settlement_change_receipt_validity_V3 - validity */;
return _toStringbool(
- &m->basic.settlement_change_receipt_validity_V1.validity,
+ &m->basic.settlement_change_receipt_validity_V3.validity,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9487: /* module 37 call 15 */
+ switch (itemIdx) {
+ case 0: /* settlement_execute_scheduled_instruction_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->nested.settlement_execute_scheduled_instruction_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* settlement_execute_scheduled_instruction_V3 - _legs_count */;
+ return _toStringu32(
+ &m->nested.settlement_execute_scheduled_instruction_V3._legs_count,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9488: /* module 37 call 16 */
+ switch (itemIdx) {
+ case 0: /* settlement_reschedule_instruction_V3 - id */;
+ return _toStringInstructionId_V3(
+ &m->basic.settlement_reschedule_instruction_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 9728: /* module 38 call 0 */
+ case 9984: /* module 39 call 0 */
switch (itemIdx) {
- case 0: /* statistics_add_transfer_manager_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.statistics_add_transfer_manager_V1.ticker,
+ case 0: /* sto_create_fundraiser_V3 - offering_portfolio */;
+ return _toStringPortfolioId_V3(
+ &m->basic.sto_create_fundraiser_V3.offering_portfolio,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* sto_create_fundraiser_V3 - offering_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_create_fundraiser_V3.offering_asset,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* sto_create_fundraiser_V3 - raising_portfolio */;
+ return _toStringPortfolioId_V3(
+ &m->basic.sto_create_fundraiser_V3.raising_portfolio,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* sto_create_fundraiser_V3 - raising_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_create_fundraiser_V3.raising_asset,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* sto_create_fundraiser_V3 - tiers */;
+ return _toStringVecPriceTier_V3(
+ &m->basic.sto_create_fundraiser_V3.tiers,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* statistics_add_transfer_manager_V1 - new_transfer_manager */;
- return _toStringTransferManager_V1(
- &m->nested.statistics_add_transfer_manager_V1.new_transfer_manager,
+ case 5: /* sto_create_fundraiser_V3 - venue_id */;
+ return _toStringVenueId_V3(
+ &m->basic.sto_create_fundraiser_V3.venue_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 6: /* sto_create_fundraiser_V3 - start */;
+ return _toStringOptionMoment_V3(
+ &m->basic.sto_create_fundraiser_V3.start,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 7: /* sto_create_fundraiser_V3 - end */;
+ return _toStringOptionMoment_V3(
+ &m->basic.sto_create_fundraiser_V3.end,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 8: /* sto_create_fundraiser_V3 - minimum_investment */;
+ return _toStringBalanceNoSymbol(
+ &m->basic.sto_create_fundraiser_V3.minimum_investment,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 9: /* sto_create_fundraiser_V3 - fundraiser_name */;
+ return _toStringFundraiserName_V3(
+ &m->basic.sto_create_fundraiser_V3.fundraiser_name,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 9729: /* module 38 call 1 */
+ case 9985: /* module 39 call 1 */
switch (itemIdx) {
- case 0: /* statistics_remove_transfer_manager_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.statistics_remove_transfer_manager_V1.ticker,
+ case 0: /* sto_invest_V3 - investment_portfolio */;
+ return _toStringPortfolioId_V3(
+ &m->basic.sto_invest_V3.investment_portfolio,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* statistics_remove_transfer_manager_V1 - transfer_manager */;
- return _toStringTransferManager_V1(
- &m->nested.statistics_remove_transfer_manager_V1.transfer_manager,
+ case 1: /* sto_invest_V3 - funding_portfolio */;
+ return _toStringPortfolioId_V3(
+ &m->basic.sto_invest_V3.funding_portfolio,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* sto_invest_V3 - offering_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_invest_V3.offering_asset,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* sto_invest_V3 - id */;
+ return _toStringFundraiserId_V3(
+ &m->basic.sto_invest_V3.id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* sto_invest_V3 - purchase_amount */;
+ return _toStringBalanceNoSymbol(
+ &m->basic.sto_invest_V3.purchase_amount,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 5: /* sto_invest_V3 - max_price */;
+ return _toStringOptionBalance(
+ &m->basic.sto_invest_V3.max_price,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 6: /* sto_invest_V3 - receipt */;
+ return _toStringOptionReceiptDetails_V3(
+ &m->basic.sto_invest_V3.receipt,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 9730: /* module 38 call 2 */
+ case 9986: /* module 39 call 2 */
switch (itemIdx) {
- case 0: /* statistics_add_exempted_entities_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.statistics_add_exempted_entities_V1.ticker,
+ case 0: /* sto_freeze_fundraiser_V3 - offering_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_freeze_fundraiser_V3.offering_asset,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* sto_freeze_fundraiser_V3 - id */;
+ return _toStringFundraiserId_V3(
+ &m->basic.sto_freeze_fundraiser_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* statistics_add_exempted_entities_V1 - transfer_manager */;
- return _toStringTransferManager_V1(
- &m->nested.statistics_add_exempted_entities_V1.transfer_manager,
+ default:
+ return parser_no_data;
+ }
+ case 9987: /* module 39 call 3 */
+ switch (itemIdx) {
+ case 0: /* sto_unfreeze_fundraiser_V3 - offering_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_unfreeze_fundraiser_V3.offering_asset,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* statistics_add_exempted_entities_V1 - exempted_entities */;
- return _toStringVecScopeId_V1(
- &m->nested.statistics_add_exempted_entities_V1.exempted_entities,
+ case 1: /* sto_unfreeze_fundraiser_V3 - id */;
+ return _toStringFundraiserId_V3(
+ &m->basic.sto_unfreeze_fundraiser_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
return parser_no_data;
}
- case 9731: /* module 38 call 3 */
+ case 9988: /* module 39 call 4 */
switch (itemIdx) {
- case 0: /* statistics_remove_exempted_entities_V1 - ticker */;
- return _toStringTicker_V1(
- &m->nested.statistics_remove_exempted_entities_V1.ticker,
+ case 0: /* sto_modify_fundraiser_window_V3 - offering_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_modify_fundraiser_window_V3.offering_asset,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* statistics_remove_exempted_entities_V1 - transfer_manager */;
- return _toStringTransferManager_V1(
- &m->nested.statistics_remove_exempted_entities_V1.transfer_manager,
+ case 1: /* sto_modify_fundraiser_window_V3 - id */;
+ return _toStringFundraiserId_V3(
+ &m->basic.sto_modify_fundraiser_window_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* statistics_remove_exempted_entities_V1 - entities */;
- return _toStringVecScopeId_V1(
- &m->nested.statistics_remove_exempted_entities_V1.entities,
+ case 2: /* sto_modify_fundraiser_window_V3 - start */;
+ return _toStringMoment_V3(
+ &m->basic.sto_modify_fundraiser_window_V3.start,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* sto_modify_fundraiser_window_V3 - end */;
+ return _toStringOptionMoment_V3(
+ &m->basic.sto_modify_fundraiser_window_V3.end,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 9989: /* module 39 call 5 */
+ switch (itemIdx) {
+ case 0: /* sto_stop_V3 - offering_asset */;
+ return _toStringTicker_V3(
+ &m->basic.sto_stop_V3.offering_asset,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* sto_stop_V3 - id */;
+ return _toStringFundraiserId_V3(
+ &m->basic.sto_stop_V3.id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8882,9 +10398,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 10240: /* module 40 call 0 */
switch (itemIdx) {
- case 0: /* treasury_disbursement_V1 - beneficiaries */;
- return _toStringVecBeneficiary_V1(
- &m->nested.treasury_disbursement_V1.beneficiaries,
+ case 0: /* treasury_disbursement_V3 - beneficiaries */;
+ return _toStringVecBeneficiary_V3(
+ &m->nested.treasury_disbursement_V3.beneficiaries,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8892,9 +10408,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 10241: /* module 40 call 1 */
switch (itemIdx) {
- case 0: /* treasury_reimbursement_V1 - amount */;
- return _toStringBalanceOf(
- &m->nested.treasury_reimbursement_V1.amount,
+ case 0: /* treasury_reimbursement_V3 - amount */;
+ return _toStringBalance(
+ &m->nested.treasury_reimbursement_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8902,19 +10418,19 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 10499: /* module 41 call 3 */
switch (itemIdx) {
- case 0: /* utility_relay_tx_V1 - target */;
- return _toStringAccountId_V1(
- &m->nested.utility_relay_tx_V1.target,
+ case 0: /* utility_relay_tx_V3 - target */;
+ return _toStringAccountId_V3(
+ &m->nested.utility_relay_tx_V3.target,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* utility_relay_tx_V1 - signature */;
- return _toStringOffChainSignature_V1(
- &m->nested.utility_relay_tx_V1.signature,
+ case 1: /* utility_relay_tx_V3 - signature */;
+ return _toStringOffChainSignature_V3(
+ &m->nested.utility_relay_tx_V3.signature,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* utility_relay_tx_V1 - call */;
- return _toStringUniqueCall_V1(
- &m->nested.utility_relay_tx_V1.call,
+ case 2: /* utility_relay_tx_V3 - call */;
+ return _toStringUniqueCall_V3(
+ &m->nested.utility_relay_tx_V3.call,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8922,14 +10438,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11010: /* module 43 call 2 */
switch (itemIdx) {
- case 0: /* externalagents_remove_agent_V1 - ticker */;
- return _toStringTicker_V1(
- &m->basic.externalagents_remove_agent_V1.ticker,
+ case 0: /* externalagents_remove_agent_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.externalagents_remove_agent_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* externalagents_remove_agent_V1 - agent */;
- return _toStringIdentityId_V1(
- &m->basic.externalagents_remove_agent_V1.agent,
+ case 1: /* externalagents_remove_agent_V3 - agent */;
+ return _toStringIdentityId_V3(
+ &m->basic.externalagents_remove_agent_V3.agent,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8937,9 +10453,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11011: /* module 43 call 3 */
switch (itemIdx) {
- case 0: /* externalagents_abdicate_V1 - ticker */;
- return _toStringTicker_V1(
- &m->basic.externalagents_abdicate_V1.ticker,
+ case 0: /* externalagents_abdicate_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.externalagents_abdicate_V3.ticker,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8947,9 +10463,54 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11013: /* module 43 call 5 */
switch (itemIdx) {
- case 0: /* externalagents_accept_become_agent_V1 - auth_id */;
+ case 0: /* externalagents_accept_become_agent_V3 - auth_id */;
return _toStringu64(
- &m->basic.externalagents_accept_become_agent_V1.auth_id,
+ &m->basic.externalagents_accept_become_agent_V3.auth_id,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11014: /* module 43 call 6 */
+ switch (itemIdx) {
+ case 0: /* externalagents_create_group_and_add_auth_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.externalagents_create_group_and_add_auth_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* externalagents_create_group_and_add_auth_V3 - perms */;
+ return _toStringExtrinsicPermissions_V3(
+ &m->basic.externalagents_create_group_and_add_auth_V3.perms,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* externalagents_create_group_and_add_auth_V3 - target */;
+ return _toStringIdentityId_V3(
+ &m->basic.externalagents_create_group_and_add_auth_V3.target,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* externalagents_create_group_and_add_auth_V3 - expiry */;
+ return _toStringOptionMoment_V3(
+ &m->basic.externalagents_create_group_and_add_auth_V3.expiry,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11015: /* module 43 call 7 */
+ switch (itemIdx) {
+ case 0: /* externalagents_create_and_change_custom_group_V3 - ticker */;
+ return _toStringTicker_V3(
+ &m->basic.externalagents_create_and_change_custom_group_V3.ticker,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* externalagents_create_and_change_custom_group_V3 - perms */;
+ return _toStringExtrinsicPermissions_V3(
+ &m->basic.externalagents_create_and_change_custom_group_V3.perms,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* externalagents_create_and_change_custom_group_V3 - agent */;
+ return _toStringIdentityId_V3(
+ &m->basic.externalagents_create_and_change_custom_group_V3.agent,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8957,14 +10518,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11264: /* module 44 call 0 */
switch (itemIdx) {
- case 0: /* relayer_set_paying_key_V1 - user_key */;
- return _toStringAccountId_V1(
- &m->basic.relayer_set_paying_key_V1.user_key,
+ case 0: /* relayer_set_paying_key_V3 - user_key */;
+ return _toStringAccountId_V3(
+ &m->basic.relayer_set_paying_key_V3.user_key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* relayer_set_paying_key_V1 - polyx_limit */;
+ case 1: /* relayer_set_paying_key_V3 - polyx_limit */;
return _toStringBalance(
- &m->basic.relayer_set_paying_key_V1.polyx_limit,
+ &m->basic.relayer_set_paying_key_V3.polyx_limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8972,9 +10533,9 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11265: /* module 44 call 1 */
switch (itemIdx) {
- case 0: /* relayer_accept_paying_key_V1 - auth_id */;
+ case 0: /* relayer_accept_paying_key_V3 - auth_id */;
return _toStringu64(
- &m->basic.relayer_accept_paying_key_V1.auth_id,
+ &m->basic.relayer_accept_paying_key_V3.auth_id,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8982,14 +10543,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11266: /* module 44 call 2 */
switch (itemIdx) {
- case 0: /* relayer_remove_paying_key_V1 - user_key */;
- return _toStringAccountId_V1(
- &m->basic.relayer_remove_paying_key_V1.user_key,
+ case 0: /* relayer_remove_paying_key_V3 - user_key */;
+ return _toStringAccountId_V3(
+ &m->basic.relayer_remove_paying_key_V3.user_key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* relayer_remove_paying_key_V1 - paying_key */;
- return _toStringAccountId_V1(
- &m->basic.relayer_remove_paying_key_V1.paying_key,
+ case 1: /* relayer_remove_paying_key_V3 - paying_key */;
+ return _toStringAccountId_V3(
+ &m->basic.relayer_remove_paying_key_V3.paying_key,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -8997,14 +10558,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11267: /* module 44 call 3 */
switch (itemIdx) {
- case 0: /* relayer_update_polyx_limit_V1 - user_key */;
- return _toStringAccountId_V1(
- &m->basic.relayer_update_polyx_limit_V1.user_key,
+ case 0: /* relayer_update_polyx_limit_V3 - user_key */;
+ return _toStringAccountId_V3(
+ &m->basic.relayer_update_polyx_limit_V3.user_key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* relayer_update_polyx_limit_V1 - polyx_limit */;
+ case 1: /* relayer_update_polyx_limit_V3 - polyx_limit */;
return _toStringBalance(
- &m->basic.relayer_update_polyx_limit_V1.polyx_limit,
+ &m->basic.relayer_update_polyx_limit_V3.polyx_limit,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -9012,14 +10573,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11268: /* module 44 call 4 */
switch (itemIdx) {
- case 0: /* relayer_increase_polyx_limit_V1 - user_key */;
- return _toStringAccountId_V1(
- &m->basic.relayer_increase_polyx_limit_V1.user_key,
+ case 0: /* relayer_increase_polyx_limit_V3 - user_key */;
+ return _toStringAccountId_V3(
+ &m->basic.relayer_increase_polyx_limit_V3.user_key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* relayer_increase_polyx_limit_V1 - amount */;
+ case 1: /* relayer_increase_polyx_limit_V3 - amount */;
return _toStringBalance(
- &m->basic.relayer_increase_polyx_limit_V1.amount,
+ &m->basic.relayer_increase_polyx_limit_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -9027,14 +10588,14 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11269: /* module 44 call 5 */
switch (itemIdx) {
- case 0: /* relayer_decrease_polyx_limit_V1 - user_key */;
- return _toStringAccountId_V1(
- &m->basic.relayer_decrease_polyx_limit_V1.user_key,
+ case 0: /* relayer_decrease_polyx_limit_V3 - user_key */;
+ return _toStringAccountId_V3(
+ &m->basic.relayer_decrease_polyx_limit_V3.user_key,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* relayer_decrease_polyx_limit_V1 - amount */;
+ case 1: /* relayer_decrease_polyx_limit_V3 - amount */;
return _toStringBalance(
- &m->basic.relayer_decrease_polyx_limit_V1.amount,
+ &m->basic.relayer_decrease_polyx_limit_V3.amount,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -9042,19 +10603,264 @@ parser_error_t _getMethod_ItemValue_V1(
}
case 11520: /* module 45 call 0 */
switch (itemIdx) {
- case 0: /* rewards_claim_itn_reward_V1 - reward_address */;
- return _toStringAccountId_V1(
- &m->basic.rewards_claim_itn_reward_V1.reward_address,
+ case 0: /* rewards_claim_itn_reward_V3 - reward_address */;
+ return _toStringAccountId_V3(
+ &m->basic.rewards_claim_itn_reward_V3.reward_address,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* rewards_claim_itn_reward_V3 - itn_address */;
+ return _toStringAccountId_V3(
+ &m->basic.rewards_claim_itn_reward_V3.itn_address,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* rewards_claim_itn_reward_V3 - signature */;
+ return _toStringOffChainSignature_V3(
+ &m->basic.rewards_claim_itn_reward_V3.signature,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11776: /* module 46 call 0 */
+ switch (itemIdx) {
+ case 0: /* contracts_call_V3 - dest */;
+ return _toStringLookupasStaticLookupSource_V3(
+ &m->nested.contracts_call_V3.dest,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* contracts_call_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.contracts_call_V3.amount,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* contracts_call_V3 - gas_limit */;
+ return _toStringCompactu64(
+ &m->nested.contracts_call_V3.gas_limit,
outValue, outValueLen,
pageIdx, pageCount);
- case 1: /* rewards_claim_itn_reward_V1 - itn_address */;
- return _toStringAccountId_V1(
- &m->basic.rewards_claim_itn_reward_V1.itn_address,
+ case 3: /* contracts_call_V3 - storage_deposit_limit */;
+ return _toStringOptionCompactBalanceOf(
+ &m->nested.contracts_call_V3.storage_deposit_limit,
outValue, outValueLen,
pageIdx, pageCount);
- case 2: /* rewards_claim_itn_reward_V1 - signature */;
- return _toStringOffChainSignature_V1(
- &m->basic.rewards_claim_itn_reward_V1.signature,
+ case 4: /* contracts_call_V3 - data */;
+ return _toStringVecu8(
+ &m->nested.contracts_call_V3.data,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11777: /* module 46 call 1 */
+ switch (itemIdx) {
+ case 0: /* contracts_instantiate_with_code_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->basic.contracts_instantiate_with_code_V3.amount,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* contracts_instantiate_with_code_V3 - gas_limit */;
+ return _toStringCompactu64(
+ &m->basic.contracts_instantiate_with_code_V3.gas_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* contracts_instantiate_with_code_V3 - storage_deposit_limit */;
+ return _toStringOptionCompactBalanceOf(
+ &m->basic.contracts_instantiate_with_code_V3.storage_deposit_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* contracts_instantiate_with_code_V3 - code */;
+ return _toStringVecu8(
+ &m->basic.contracts_instantiate_with_code_V3.code,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* contracts_instantiate_with_code_V3 - data */;
+ return _toStringVecu8(
+ &m->basic.contracts_instantiate_with_code_V3.data,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 5: /* contracts_instantiate_with_code_V3 - salt */;
+ return _toStringVecu8(
+ &m->basic.contracts_instantiate_with_code_V3.salt,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11778: /* module 46 call 2 */
+ switch (itemIdx) {
+ case 0: /* contracts_instantiate_V3 - amount */;
+ return _toStringCompactBalance(
+ &m->nested.contracts_instantiate_V3.amount,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* contracts_instantiate_V3 - gas_limit */;
+ return _toStringCompactu64(
+ &m->nested.contracts_instantiate_V3.gas_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* contracts_instantiate_V3 - storage_deposit_limit */;
+ return _toStringOptionCompactBalanceOf(
+ &m->nested.contracts_instantiate_V3.storage_deposit_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* contracts_instantiate_V3 - code_hash */;
+ return _toStringCodeHash_V3(
+ &m->nested.contracts_instantiate_V3.code_hash,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* contracts_instantiate_V3 - data */;
+ return _toStringBytes(
+ &m->nested.contracts_instantiate_V3.data,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 5: /* contracts_instantiate_V3 - salt */;
+ return _toStringBytes(
+ &m->nested.contracts_instantiate_V3.salt,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11779: /* module 46 call 3 */
+ switch (itemIdx) {
+ case 0: /* contracts_upload_code_V3 - code */;
+ return _toStringVecu8(
+ &m->basic.contracts_upload_code_V3.code,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* contracts_upload_code_V3 - storage_deposit_limit */;
+ return _toStringOptionCompactBalanceOf(
+ &m->basic.contracts_upload_code_V3.storage_deposit_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 11780: /* module 46 call 4 */
+ switch (itemIdx) {
+ case 0: /* contracts_remove_code_V3 - code_hash */;
+ return _toStringCodeHash_V3(
+ &m->basic.contracts_remove_code_V3.code_hash,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 12032: /* module 47 call 0 */
+ switch (itemIdx) {
+ case 0: /* polymeshcontracts_instantiate_with_code_perms_V3 - endowment */;
+ return _toStringBalance(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.endowment,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* polymeshcontracts_instantiate_with_code_perms_V3 - gas_limit */;
+ return _toStringWeight_V3(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.gas_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* polymeshcontracts_instantiate_with_code_perms_V3 - storage_deposit_limit */;
+ return _toStringOptionBalance(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.storage_deposit_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* polymeshcontracts_instantiate_with_code_perms_V3 - code */;
+ return _toStringVecu8(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.code,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* polymeshcontracts_instantiate_with_code_perms_V3 - data */;
+ return _toStringVecu8(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.data,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 5: /* polymeshcontracts_instantiate_with_code_perms_V3 - salt */;
+ return _toStringVecu8(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.salt,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 6: /* polymeshcontracts_instantiate_with_code_perms_V3 - perms */;
+ return _toStringPermissions_V3(
+ &m->basic.polymeshcontracts_instantiate_with_code_perms_V3.perms,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 12033: /* module 47 call 1 */
+ switch (itemIdx) {
+ case 0: /* polymeshcontracts_instantiate_with_hash_perms_V3 - endowment */;
+ return _toStringBalance(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.endowment,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 1: /* polymeshcontracts_instantiate_with_hash_perms_V3 - gas_limit */;
+ return _toStringWeight_V3(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.gas_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 2: /* polymeshcontracts_instantiate_with_hash_perms_V3 - storage_deposit_limit */;
+ return _toStringOptionBalance(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.storage_deposit_limit,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 3: /* polymeshcontracts_instantiate_with_hash_perms_V3 - code_hash */;
+ return _toStringCodeHash_V3(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.code_hash,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 4: /* polymeshcontracts_instantiate_with_hash_perms_V3 - data */;
+ return _toStringVecu8(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.data,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 5: /* polymeshcontracts_instantiate_with_hash_perms_V3 - salt */;
+ return _toStringVecu8(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.salt,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ case 6: /* polymeshcontracts_instantiate_with_hash_perms_V3 - perms */;
+ return _toStringPermissions_V3(
+ &m->basic.polymeshcontracts_instantiate_with_hash_perms_V3.perms,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 12288: /* module 48 call 0 */
+ switch (itemIdx) {
+ case 0: /* preimage_note_preimage_V3 - bytes */;
+ return _toStringVecu8(
+ &m->basic.preimage_note_preimage_V3.bytes,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 12289: /* module 48 call 1 */
+ switch (itemIdx) {
+ case 0: /* preimage_unnote_preimage_V3 - hash */;
+ return _toStringHash(
+ &m->basic.preimage_unnote_preimage_V3.hash,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 12290: /* module 48 call 2 */
+ switch (itemIdx) {
+ case 0: /* preimage_request_preimage_V3 - hash */;
+ return _toStringHash(
+ &m->basic.preimage_request_preimage_V3.hash,
+ outValue, outValueLen,
+ pageIdx, pageCount);
+ default:
+ return parser_no_data;
+ }
+ case 12291: /* module 48 call 3 */
+ switch (itemIdx) {
+ case 0: /* preimage_unrequest_preimage_V3 - hash */;
+ return _toStringHash(
+ &m->basic.preimage_unrequest_preimage_V3.hash,
outValue, outValueLen,
pageIdx, pageCount);
default:
@@ -9068,7 +10874,7 @@ parser_error_t _getMethod_ItemValue_V1(
return parser_ok;
}
-bool _getMethod_ItemIsExpert_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx)
+bool _getMethod_ItemIsExpert_V3(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx)
{
uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
@@ -9100,12 +10906,16 @@ bool _getMethod_ItemIsExpert_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t item
}
}
-bool _getMethod_IsNestingSupported_V1(uint8_t moduleIdx, uint8_t callIdx)
+bool _getMethod_IsNestingSupported_V3(uint8_t moduleIdx, uint8_t callIdx)
{
uint16_t callPrivIdx = ((uint16_t)moduleIdx << 8u) + callIdx;
switch (callPrivIdx) {
+ case 1802: // Identity:Placeholder legacy set permission to signer
case 1812: // Identity:Revoke claim by index
+ case 1813: // Identity:Rotate primary key to secondary
+ case 1815: // Identity:Set secondary key permissions
+ case 3856: // MultiSig:Make multisig secondary
case 4103: // Bridge:Force handle bridge tx
case 4104: // Bridge:Batch propose bridge tx
case 4105: // Bridge:Propose bridge tx
@@ -9115,14 +10925,32 @@ bool _getMethod_IsNestingSupported_V1(uint8_t moduleIdx, uint8_t callIdx)
case 4109: // Bridge:Handle scheduled bridge tx
case 4110: // Bridge:Add freeze admin
case 4111: // Bridge:Remove freeze admin
+ case 4112: // Bridge:Remove txs
case 6672: // Asset:Controller transfer
case 6673: // Asset:Register custom asset type
+ case 6674: // Asset:Create asset with custom type
+ case 6675: // Asset:Set asset metadata
+ case 6676: // Asset:Set asset metadata details
+ case 6677: // Asset:Register and set local asset metadata
+ case 6678: // Asset:Register asset metadata local type
+ case 6679: // Asset:Register asset metadata global type
case 8708: // Portfolio:Quit portfolio custody
case 8709: // Portfolio:Accept portfolio custody
+ case 9473: // Settlement:Update venue details
+ case 9474: // Settlement:Update venue type
case 9486: // Settlement:Change receipt validity
+ case 9488: // Settlement:Reschedule instruction
+ case 9984: // Sto:Create fundraiser
+ case 9985: // Sto:Invest
+ case 9986: // Sto:Freeze fundraiser
+ case 9987: // Sto:Unfreeze fundraiser
+ case 9988: // Sto:Modify fundraiser window
+ case 9989: // Sto:Stop
case 11010: // ExternalAgents:Remove agent
case 11011: // ExternalAgents:Abdicate
case 11013: // ExternalAgents:Accept become agent
+ case 11014: // ExternalAgents:Create group and add auth
+ case 11015: // ExternalAgents:Create and change custom group
case 11264: // Relayer:Set paying key
case 11265: // Relayer:Accept paying key
case 11266: // Relayer:Remove paying key
@@ -9130,9 +10958,17 @@ bool _getMethod_IsNestingSupported_V1(uint8_t moduleIdx, uint8_t callIdx)
case 11268: // Relayer:Increase polyx limit
case 11269: // Relayer:Decrease polyx limit
case 11520: // Rewards:Claim itn reward
+ case 11777: // Contracts:Instantiate with code
+ case 11779: // Contracts:Upload code
+ case 11780: // Contracts:Remove code
+ case 12032: // PolymeshContracts:Instantiate with code perms
+ case 12033: // PolymeshContracts:Instantiate with hash perms
+ case 12288: // Preimage:Note preimage
+ case 12289: // Preimage:Unnote preimage
+ case 12290: // Preimage:Request preimage
+ case 12291: // Preimage:Unrequest preimage
return false;
default:
return true;
}
}
-#endif
diff --git a/app/src/substrate/substrate_dispatch_V1.h b/app/src/substrate/substrate_dispatch_V3.h
similarity index 62%
rename from app/src/substrate/substrate_dispatch_V1.h
rename to app/src/substrate/substrate_dispatch_V3.h
index 1a77675..70284a7 100644
--- a/app/src/substrate/substrate_dispatch_V1.h
+++ b/app/src/substrate/substrate_dispatch_V3.h
@@ -22,27 +22,28 @@ extern "C" {
#include "parser_impl.h"
#include "stdbool.h"
#include "substrate_functions.h"
-#include "substrate_functions_V1.h"
+#include "substrate_functions_V3.h"
#include
#include
-parser_error_t _readMethod_V1(parser_context_t* c, uint8_t moduleIdx, uint8_t callIdx, pd_Method_V1_t* method);
+parser_error_t _readMethod_V3(parser_context_t* c, uint8_t moduleIdx, uint8_t callIdx, pd_Method_V3_t* method);
-const char* _getMethod_ModuleName_V1(uint8_t moduleIdx);
+const char* _getMethod_ModuleName_V3(uint8_t moduleIdx);
-const char* _getMethod_Name_V1(uint8_t moduleIdx, uint8_t callIdx);
+const char* _getMethod_Name_V3(uint8_t moduleIdx, uint8_t callIdx);
+const char* _getMethod_Name_V3_ParserFull(uint16_t callPrivIdx);
-const char* _getMethod_ItemName_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx);
+const char* _getMethod_ItemName_V3(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx);
-uint8_t _getMethod_NumItems_V1(uint8_t moduleIdx, uint8_t callIdx);
+uint8_t _getMethod_NumItems_V3(uint8_t moduleIdx, uint8_t callIdx);
-parser_error_t _getMethod_ItemValue_V1(
- pd_Method_V1_t* m, uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx,
+parser_error_t _getMethod_ItemValue_V3(
+ pd_Method_V3_t* m, uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx,
char* outValue, uint16_t outValueLen,
uint8_t pageIdx, uint8_t* pageCount);
-bool _getMethod_ItemIsExpert_V1(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx);
-bool _getMethod_IsNestingSupported_V1(uint8_t moduleIdx, uint8_t callIdx);
+bool _getMethod_ItemIsExpert_V3(uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx);
+bool _getMethod_IsNestingSupported_V3(uint8_t moduleIdx, uint8_t callIdx);
#ifdef __cplusplus
}
diff --git a/app/src/substrate/substrate_functions.h b/app/src/substrate/substrate_functions.h
index 949b6f3..4adbfe9 100644
--- a/app/src/substrate/substrate_functions.h
+++ b/app/src/substrate/substrate_functions.h
@@ -39,19 +39,19 @@ parser_error_t _readBytes(parser_context_t* c, pd_Bytes_t* v);
parser_error_t _readHash(parser_context_t* c, pd_Hash_t* v);
parser_error_t _readOptionu16(parser_context_t* c, pd_Optionu16_t* v);
parser_error_t _readCall(parser_context_t* c, pd_Call_t* v);
-parser_error_t _readHeader(parser_context_t* c, pd_Header_t* v);
+parser_error_t _readCompactBalanceOf(parser_context_t* c, pd_CompactBalanceOf_t* v);
+parser_error_t _readOptionBytes(parser_context_t* c, pd_OptionBytes_t* v);
parser_error_t _readBalanceOf(parser_context_t* c, pd_BalanceOf_t* v);
parser_error_t _readProposal(parser_context_t* c, pd_Proposal_t* v);
parser_error_t _readVecCall(parser_context_t* c, pd_VecCall_t* v);
parser_error_t _readBalanceNoSymbol(parser_context_t* c, pd_BalanceNoSymbol_t* v);
-parser_error_t _readCompactBalanceOf(parser_context_t* c, pd_CompactBalanceOf_t* v);
-parser_error_t _readHeartbeat(parser_context_t* c, pd_Heartbeat_t* v);
parser_error_t _readOptionBalance(parser_context_t* c, pd_OptionBalance_t* v);
parser_error_t _readOptionBlockNumber(parser_context_t* c, pd_OptionBlockNumber_t* v);
+parser_error_t _readOptionCompactBalanceOf(parser_context_t* c, pd_OptionCompactBalanceOf_t* v);
parser_error_t _readOptionu32(parser_context_t* c, pd_Optionu32_t* v);
parser_error_t _readOptionu64(parser_context_t* c, pd_Optionu64_t* v);
-parser_error_t _readVecHeader(parser_context_t* c, pd_VecHeader_t* v);
parser_error_t _readVecu32(parser_context_t* c, pd_Vecu32_t* v);
+parser_error_t _readVecu8(parser_context_t* c, pd_Vecu8_t* v);
// Common toString functions
@@ -146,8 +146,15 @@ parser_error_t _toStringCall(
uint8_t pageIdx,
uint8_t* pageCount);
-parser_error_t _toStringHeader(
- const pd_Header_t* v,
+parser_error_t _toStringCompactBalanceOf(
+ const pd_CompactBalanceOf_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionBytes(
+ const pd_OptionBytes_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -181,29 +188,22 @@ parser_error_t _toStringBalanceNoSymbol(
uint8_t pageIdx,
uint8_t* pageCount);
-parser_error_t _toStringCompactBalanceOf(
- const pd_CompactBalanceOf_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringHeartbeat(
- const pd_Heartbeat_t* v,
+parser_error_t _toStringOptionBalance(
+ const pd_OptionBalance_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount);
-parser_error_t _toStringOptionBalance(
- const pd_OptionBalance_t* v,
+parser_error_t _toStringOptionBlockNumber(
+ const pd_OptionBlockNumber_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount);
-parser_error_t _toStringOptionBlockNumber(
- const pd_OptionBlockNumber_t* v,
+parser_error_t _toStringOptionCompactBalanceOf(
+ const pd_OptionCompactBalanceOf_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -223,15 +223,15 @@ parser_error_t _toStringOptionu64(
uint8_t pageIdx,
uint8_t* pageCount);
-parser_error_t _toStringVecHeader(
- const pd_VecHeader_t* v,
+parser_error_t _toStringVecu32(
+ const pd_Vecu32_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount);
-parser_error_t _toStringVecu32(
- const pd_Vecu32_t* v,
+parser_error_t _toStringVecu8(
+ const pd_Vecu8_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
diff --git a/app/src/substrate/substrate_functions_V1.h b/app/src/substrate/substrate_functions_V1.h
deleted file mode 100644
index 6056b56..0000000
--- a/app/src/substrate/substrate_functions_V1.h
+++ /dev/null
@@ -1,1561 +0,0 @@
-/*******************************************************************************
- * (c) 2019 - 2022 Zondax GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ********************************************************************************/
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "parser_common.h"
-#include "substrate_methods_V1.h"
-#include "substrate_types_V1.h"
-#include
-#include
-
-// Read functions
-parser_error_t _readAGId_V1(parser_context_t* c, pd_AGId_V1_t* v);
-parser_error_t _readAccountId_V1(parser_context_t* c, pd_AccountId_V1_t* v);
-parser_error_t _readAccountIndex_V1(parser_context_t* c, pd_AccountIndex_V1_t* v);
-parser_error_t _readAddRelayerPayingKey_V1(parser_context_t* c, pd_AddRelayerPayingKey_V1_t* v);
-parser_error_t _readAgentGroup_V1(parser_context_t* c, pd_AgentGroup_V1_t* v);
-parser_error_t _readAssetIdentifier_V1(parser_context_t* c, pd_AssetIdentifier_V1_t* v);
-parser_error_t _readAssetName_V1(parser_context_t* c, pd_AssetName_V1_t* v);
-parser_error_t _readAssetPermissions_V1(parser_context_t* c, pd_AssetPermissions_V1_t* v);
-parser_error_t _readAssetType_V1(parser_context_t* c, pd_AssetType_V1_t* v);
-parser_error_t _readAuthorizationData_V1(parser_context_t* c, pd_AuthorizationData_V1_t* v);
-parser_error_t _readBabeEquivocationProof_V1(parser_context_t* c, pd_BabeEquivocationProof_V1_t* v);
-parser_error_t _readBallotMeta_V1(parser_context_t* c, pd_BallotMeta_V1_t* v);
-parser_error_t _readBallotTimeRange_V1(parser_context_t* c, pd_BallotTimeRange_V1_t* v);
-parser_error_t _readBallotTitle_V1(parser_context_t* c, pd_BallotTitle_V1_t* v);
-parser_error_t _readBallotVote_V1(parser_context_t* c, pd_BallotVote_V1_t* v);
-parser_error_t _readBecomeAgent_V1(parser_context_t* c, pd_BecomeAgent_V1_t* v);
-parser_error_t _readBeneficiary_V1(parser_context_t* c, pd_Beneficiary_V1_t* v);
-parser_error_t _readBridgeTx_V1(parser_context_t* c, pd_BridgeTx_V1_t* v);
-parser_error_t _readCADetails_V1(parser_context_t* c, pd_CADetails_V1_t* v);
-parser_error_t _readCAId_V1(parser_context_t* c, pd_CAId_V1_t* v);
-parser_error_t _readCAKind_V1(parser_context_t* c, pd_CAKind_V1_t* v);
-parser_error_t _readCalendarPeriod_V1(parser_context_t* c, pd_CalendarPeriod_V1_t* v);
-parser_error_t _readCalendarUnit_V1(parser_context_t* c, pd_CalendarUnit_V1_t* v);
-parser_error_t _readCddId_V1(parser_context_t* c, pd_CddId_V1_t* v);
-parser_error_t _readChangesTrieConfiguration_V1(parser_context_t* c, pd_ChangesTrieConfiguration_V1_t* v);
-parser_error_t _readCheckpointId_V1(parser_context_t* c, pd_CheckpointId_V1_t* v);
-parser_error_t _readChoiceTitle_V1(parser_context_t* c, pd_ChoiceTitle_V1_t* v);
-parser_error_t _readClaimType_V1(parser_context_t* c, pd_ClaimType_V1_t* v);
-parser_error_t _readClaim_V1(parser_context_t* c, pd_Claim_V1_t* v);
-parser_error_t _readClassicTickerImport_V1(parser_context_t* c, pd_ClassicTickerImport_V1_t* v);
-parser_error_t _readCompactAccountIndex_V1(parser_context_t* c, pd_CompactAccountIndex_V1_t* v);
-parser_error_t _readCompactAssignments_V1(parser_context_t* c, pd_CompactAssignments_V1_t* v);
-parser_error_t _readCompactEraIndex_V1(parser_context_t* c, pd_CompactEraIndex_V1_t* v);
-parser_error_t _readCompactMoment_V1(parser_context_t* c, pd_CompactMoment_V1_t* v);
-parser_error_t _readCompactPerBill_V1(parser_context_t* c, pd_CompactPerBill_V1_t* v);
-parser_error_t _readComplianceRequirement_V1(parser_context_t* c, pd_ComplianceRequirement_V1_t* v);
-parser_error_t _readConditionType_V1(parser_context_t* c, pd_ConditionType_V1_t* v);
-parser_error_t _readCondition_V1(parser_context_t* c, pd_Condition_V1_t* v);
-parser_error_t _readCounter_V1(parser_context_t* c, pd_Counter_V1_t* v);
-parser_error_t _readCountryCode_V1(parser_context_t* c, pd_CountryCode_V1_t* v);
-parser_error_t _readCustomAssetTypeId_V1(parser_context_t* c, pd_CustomAssetTypeId_V1_t* v);
-parser_error_t _readDispatchableName_V1(parser_context_t* c, pd_DispatchableName_V1_t* v);
-parser_error_t _readDispatchableNames_V1(parser_context_t* c, pd_DispatchableNames_V1_t* v);
-parser_error_t _readDocumentHash_V1(parser_context_t* c, pd_DocumentHash_V1_t* v);
-parser_error_t _readDocumentId_V1(parser_context_t* c, pd_DocumentId_V1_t* v);
-parser_error_t _readDocumentName_V1(parser_context_t* c, pd_DocumentName_V1_t* v);
-parser_error_t _readDocumentType_V1(parser_context_t* c, pd_DocumentType_V1_t* v);
-parser_error_t _readDocumentUri_V1(parser_context_t* c, pd_DocumentUri_V1_t* v);
-parser_error_t _readDocument_V1(parser_context_t* c, pd_Document_V1_t* v);
-parser_error_t _readEcdsaSignature_V1(parser_context_t* c, pd_EcdsaSignature_V1_t* v);
-parser_error_t _readElectionScore_V1(parser_context_t* c, pd_ElectionScore_V1_t* v);
-parser_error_t _readElectionSize_V1(parser_context_t* c, pd_ElectionSize_V1_t* v);
-parser_error_t _readEraIndex_V1(parser_context_t* c, pd_EraIndex_V1_t* v);
-parser_error_t _readEthereumAddress_V1(parser_context_t* c, pd_EthereumAddress_V1_t* v);
-parser_error_t _readExtrinsicPermissions_V1(parser_context_t* c, pd_ExtrinsicPermissions_V1_t* v);
-parser_error_t _readFundingRoundName_V1(parser_context_t* c, pd_FundingRoundName_V1_t* v);
-parser_error_t _readFundraiserName_V1(parser_context_t* c, pd_FundraiserName_V1_t* v);
-parser_error_t _readGrandpaEquivocationProof_V1(parser_context_t* c, pd_GrandpaEquivocationProof_V1_t* v);
-parser_error_t _readIdentityId_V1(parser_context_t* c, pd_IdentityId_V1_t* v);
-parser_error_t _readInvestorZKProofData_V1(parser_context_t* c, pd_InvestorZKProofData_V1_t* v);
-parser_error_t _readItnRewardStatus_V1(parser_context_t* c, pd_ItnRewardStatus_V1_t* v);
-parser_error_t _readKeyOwnerProof_V1(parser_context_t* c, pd_KeyOwnerProof_V1_t* v);
-parser_error_t _readKeyValue_V1(parser_context_t* c, pd_KeyValue_V1_t* v);
-parser_error_t _readKey_V1(parser_context_t* c, pd_Key_V1_t* v);
-parser_error_t _readKeys_V1(parser_context_t* c, pd_Keys_V1_t* v);
-parser_error_t _readLeg_V1(parser_context_t* c, pd_Leg_V1_t* v);
-parser_error_t _readLegacyPalletPermissions_V1(parser_context_t* c, pd_LegacyPalletPermissions_V1_t* v);
-parser_error_t _readLegacyPermissions_V1(parser_context_t* c, pd_LegacyPermissions_V1_t* v);
-parser_error_t _readLocalCAId_V1(parser_context_t* c, pd_LocalCAId_V1_t* v);
-parser_error_t _readLookupSource_V1(parser_context_t* c, pd_LookupSource_V1_t* v);
-parser_error_t _readMaybeBlock_V1(parser_context_t* c, pd_MaybeBlock_V1_t* v);
-parser_error_t _readMemberCount_V1(parser_context_t* c, pd_MemberCount_V1_t* v);
-parser_error_t _readMemo_V1(parser_context_t* c, pd_Memo_V1_t* v);
-parser_error_t _readMoment_V1(parser_context_t* c, pd_Moment_V1_t* v);
-parser_error_t _readMotionInfoLink_V1(parser_context_t* c, pd_MotionInfoLink_V1_t* v);
-parser_error_t _readMotionTitle_V1(parser_context_t* c, pd_MotionTitle_V1_t* v);
-parser_error_t _readMotion_V1(parser_context_t* c, pd_Motion_V1_t* v);
-parser_error_t _readMovePortfolioItem_V1(parser_context_t* c, pd_MovePortfolioItem_V1_t* v);
-parser_error_t _readOffChainSignature_V1(parser_context_t* c, pd_OffChainSignature_V1_t* v);
-parser_error_t _readOptionChangesTrieConfiguration_V1(parser_context_t* c, pd_OptionChangesTrieConfiguration_V1_t* v);
-parser_error_t _readOptionDocumentType_V1(parser_context_t* c, pd_OptionDocumentType_V1_t* v);
-parser_error_t _readOptionFundingRoundName_V1(parser_context_t* c, pd_OptionFundingRoundName_V1_t* v);
-parser_error_t _readOptionMemo_V1(parser_context_t* c, pd_OptionMemo_V1_t* v);
-parser_error_t _readOptionMoment_V1(parser_context_t* c, pd_OptionMoment_V1_t* v);
-parser_error_t _readOptionPeriod_V1(parser_context_t* c, pd_OptionPeriod_V1_t* v);
-parser_error_t _readOptionPipDescription_V1(parser_context_t* c, pd_OptionPipDescription_V1_t* v);
-parser_error_t _readOptionPortfolioNumber_V1(parser_context_t* c, pd_OptionPortfolioNumber_V1_t* v);
-parser_error_t _readOptionReceiptDetails_V1(parser_context_t* c, pd_OptionReceiptDetails_V1_t* v);
-parser_error_t _readOptionRecordDateSpec_V1(parser_context_t* c, pd_OptionRecordDateSpec_V1_t* v);
-parser_error_t _readOptionScope_V1(parser_context_t* c, pd_OptionScope_V1_t* v);
-parser_error_t _readOptionTargetIdentities_V1(parser_context_t* c, pd_OptionTargetIdentities_V1_t* v);
-parser_error_t _readOptionTax_V1(parser_context_t* c, pd_OptionTax_V1_t* v);
-parser_error_t _readOptionUrl_V1(parser_context_t* c, pd_OptionUrl_V1_t* v);
-parser_error_t _readOptionVecLegacyPalletPermissions_V1(parser_context_t* c, pd_OptionVecLegacyPalletPermissions_V1_t* v);
-parser_error_t _readOptionVecPortfolioId_V1(parser_context_t* c, pd_OptionVecPortfolioId_V1_t* v);
-parser_error_t _readOptionVecTicker_V1(parser_context_t* c, pd_OptionVecTicker_V1_t* v);
-parser_error_t _readOptionVecTupleIdentityIdTax_V1(parser_context_t* c, pd_OptionVecTupleIdentityIdTax_V1_t* v);
-parser_error_t _readPalletName_V1(parser_context_t* c, pd_PalletName_V1_t* v);
-parser_error_t _readPalletPermissions_V1(parser_context_t* c, pd_PalletPermissions_V1_t* v);
-parser_error_t _readPerbill_V1(parser_context_t* c, pd_Perbill_V1_t* v);
-parser_error_t _readPercent_V1(parser_context_t* c, pd_Percent_V1_t* v);
-parser_error_t _readPercentage_V1(parser_context_t* c, pd_Percentage_V1_t* v);
-parser_error_t _readPeriod_V1(parser_context_t* c, pd_Period_V1_t* v);
-parser_error_t _readPermill_V1(parser_context_t* c, pd_Permill_V1_t* v);
-parser_error_t _readPermissions_V1(parser_context_t* c, pd_Permissions_V1_t* v);
-parser_error_t _readPipDescription_V1(parser_context_t* c, pd_PipDescription_V1_t* v);
-parser_error_t _readPipId_V1(parser_context_t* c, pd_PipId_V1_t* v);
-parser_error_t _readPortfolioId_V1(parser_context_t* c, pd_PortfolioId_V1_t* v);
-parser_error_t _readPortfolioKind_V1(parser_context_t* c, pd_PortfolioKind_V1_t* v);
-parser_error_t _readPortfolioName_V1(parser_context_t* c, pd_PortfolioName_V1_t* v);
-parser_error_t _readPortfolioNumber_V1(parser_context_t* c, pd_PortfolioNumber_V1_t* v);
-parser_error_t _readPortfolioPermissions_V1(parser_context_t* c, pd_PortfolioPermissions_V1_t* v);
-parser_error_t _readPosRatio_V1(parser_context_t* c, pd_PosRatio_V1_t* v);
-parser_error_t _readPriceTier_V1(parser_context_t* c, pd_PriceTier_V1_t* v);
-parser_error_t _readPriority_V1(parser_context_t* c, pd_Priority_V1_t* v);
-parser_error_t _readProposalIndex_V1(parser_context_t* c, pd_ProposalIndex_V1_t* v);
-parser_error_t _readProtocolOp_V1(parser_context_t* c, pd_ProtocolOp_V1_t* v);
-parser_error_t _readReceiptDetails_V1(parser_context_t* c, pd_ReceiptDetails_V1_t* v);
-parser_error_t _readReceiptMetadata_V1(parser_context_t* c, pd_ReceiptMetadata_V1_t* v);
-parser_error_t _readRecordDateSpec_V1(parser_context_t* c, pd_RecordDateSpec_V1_t* v);
-parser_error_t _readRewardDestination_V1(parser_context_t* c, pd_RewardDestination_V1_t* v);
-parser_error_t _readScheduleId_V1(parser_context_t* c, pd_ScheduleId_V1_t* v);
-parser_error_t _readScheduleSpec_V1(parser_context_t* c, pd_ScheduleSpec_V1_t* v);
-parser_error_t _readScopeClaimProof_V1(parser_context_t* c, pd_ScopeClaimProof_V1_t* v);
-parser_error_t _readScopeId_V1(parser_context_t* c, pd_ScopeId_V1_t* v);
-parser_error_t _readScope_V1(parser_context_t* c, pd_Scope_V1_t* v);
-parser_error_t _readSecondaryKeyWithAuth_V1(parser_context_t* c, pd_SecondaryKeyWithAuth_V1_t* v);
-parser_error_t _readSecondaryKey_V1(parser_context_t* c, pd_SecondaryKey_V1_t* v);
-parser_error_t _readSettlementType_V1(parser_context_t* c, pd_SettlementType_V1_t* v);
-parser_error_t _readSignatory_V1(parser_context_t* c, pd_Signatory_V1_t* v);
-parser_error_t _readSignature_V1(parser_context_t* c, pd_Signature_V1_t* v);
-parser_error_t _readSkippedCount_V1(parser_context_t* c, pd_SkippedCount_V1_t* v);
-parser_error_t _readSlashingSwitch_V1(parser_context_t* c, pd_SlashingSwitch_V1_t* v);
-parser_error_t _readSnapshotResult_V1(parser_context_t* c, pd_SnapshotResult_V1_t* v);
-parser_error_t _readStreamDependency_V1(parser_context_t* c, pd_StreamDependency_V1_t* v);
-parser_error_t _readTargetIdentities_V1(parser_context_t* c, pd_TargetIdentities_V1_t* v);
-parser_error_t _readTargetIdentity_V1(parser_context_t* c, pd_TargetIdentity_V1_t* v);
-parser_error_t _readTargetTreatment_V1(parser_context_t* c, pd_TargetTreatment_V1_t* v);
-parser_error_t _readTax_V1(parser_context_t* c, pd_Tax_V1_t* v);
-parser_error_t _readTickerRegistrationConfig_V1(parser_context_t* c, pd_TickerRegistrationConfig_V1_t* v);
-parser_error_t _readTicker_V1(parser_context_t* c, pd_Ticker_V1_t* v);
-parser_error_t _readTransferManager_V1(parser_context_t* c, pd_TransferManager_V1_t* v);
-parser_error_t _readTrustedFor_V1(parser_context_t* c, pd_TrustedFor_V1_t* v);
-parser_error_t _readTrustedIssuer_V1(parser_context_t* c, pd_TrustedIssuer_V1_t* v);
-parser_error_t _readTupleCountryCodeScope_V1(parser_context_t* c, pd_TupleCountryCodeScope_V1_t* v);
-parser_error_t _readTupleIdentityIdTax_V1(parser_context_t* c, pd_TupleIdentityIdTax_V1_t* v);
-parser_error_t _readTupleIdentityIdbool_V1(parser_context_t* c, pd_TupleIdentityIdbool_V1_t* v);
-parser_error_t _readTuplePipIdSnapshotResult_V1(parser_context_t* c, pd_TuplePipIdSnapshotResult_V1_t* v);
-parser_error_t _readTupleScopeScopeIdCddId_V1(parser_context_t* c, pd_TupleScopeScopeIdCddId_V1_t* v);
-parser_error_t _readUniqueCall_V1(parser_context_t* c, pd_UniqueCall_V1_t* v);
-parser_error_t _readUrl_V1(parser_context_t* c, pd_Url_V1_t* v);
-parser_error_t _readValidatorIndex_V1(parser_context_t* c, pd_ValidatorIndex_V1_t* v);
-parser_error_t _readValidatorPrefs_V1(parser_context_t* c, pd_ValidatorPrefs_V1_t* v);
-parser_error_t _readVecAccountId_V1(parser_context_t* c, pd_VecAccountId_V1_t* v);
-parser_error_t _readVecAssetIdentifier_V1(parser_context_t* c, pd_VecAssetIdentifier_V1_t* v);
-parser_error_t _readVecBallotVote_V1(parser_context_t* c, pd_VecBallotVote_V1_t* v);
-parser_error_t _readVecBeneficiary_V1(parser_context_t* c, pd_VecBeneficiary_V1_t* v);
-parser_error_t _readVecBridgeTx_V1(parser_context_t* c, pd_VecBridgeTx_V1_t* v);
-parser_error_t _readVecChoiceTitle_V1(parser_context_t* c, pd_VecChoiceTitle_V1_t* v);
-parser_error_t _readVecClaimType_V1(parser_context_t* c, pd_VecClaimType_V1_t* v);
-parser_error_t _readVecClaim_V1(parser_context_t* c, pd_VecClaim_V1_t* v);
-parser_error_t _readVecComplianceRequirement_V1(parser_context_t* c, pd_VecComplianceRequirement_V1_t* v);
-parser_error_t _readVecCondition_V1(parser_context_t* c, pd_VecCondition_V1_t* v);
-parser_error_t _readVecDispatchableName_V1(parser_context_t* c, pd_VecDispatchableName_V1_t* v);
-parser_error_t _readVecDocumentId_V1(parser_context_t* c, pd_VecDocumentId_V1_t* v);
-parser_error_t _readVecDocument_V1(parser_context_t* c, pd_VecDocument_V1_t* v);
-parser_error_t _readVecIdentityId_V1(parser_context_t* c, pd_VecIdentityId_V1_t* v);
-parser_error_t _readVecKeyValue_V1(parser_context_t* c, pd_VecKeyValue_V1_t* v);
-parser_error_t _readVecKey_V1(parser_context_t* c, pd_VecKey_V1_t* v);
-parser_error_t _readVecLeg_V1(parser_context_t* c, pd_VecLeg_V1_t* v);
-parser_error_t _readVecLegacyPalletPermissions_V1(parser_context_t* c, pd_VecLegacyPalletPermissions_V1_t* v);
-parser_error_t _readVecLookupSource_V1(parser_context_t* c, pd_VecLookupSource_V1_t* v);
-parser_error_t _readVecMotion_V1(parser_context_t* c, pd_VecMotion_V1_t* v);
-parser_error_t _readVecMovePortfolioItem_V1(parser_context_t* c, pd_VecMovePortfolioItem_V1_t* v);
-parser_error_t _readVecPalletPermissions_V1(parser_context_t* c, pd_VecPalletPermissions_V1_t* v);
-parser_error_t _readVecPortfolioId_V1(parser_context_t* c, pd_VecPortfolioId_V1_t* v);
-parser_error_t _readVecPriceTier_V1(parser_context_t* c, pd_VecPriceTier_V1_t* v);
-parser_error_t _readVecReceiptDetails_V1(parser_context_t* c, pd_VecReceiptDetails_V1_t* v);
-parser_error_t _readVecScopeId_V1(parser_context_t* c, pd_VecScopeId_V1_t* v);
-parser_error_t _readVecSecondaryKeyWithAuth_V1(parser_context_t* c, pd_VecSecondaryKeyWithAuth_V1_t* v);
-parser_error_t _readVecSecondaryKey_V1(parser_context_t* c, pd_VecSecondaryKey_V1_t* v);
-parser_error_t _readVecSignatory_V1(parser_context_t* c, pd_VecSignatory_V1_t* v);
-parser_error_t _readVecTicker_V1(parser_context_t* c, pd_VecTicker_V1_t* v);
-parser_error_t _readVecTrustedIssuer_V1(parser_context_t* c, pd_VecTrustedIssuer_V1_t* v);
-parser_error_t _readVecTupleIdentityIdTax_V1(parser_context_t* c, pd_VecTupleIdentityIdTax_V1_t* v);
-parser_error_t _readVecTupleIdentityIdbool_V1(parser_context_t* c, pd_VecTupleIdentityIdbool_V1_t* v);
-parser_error_t _readVecTuplePipIdSnapshotResult_V1(parser_context_t* c, pd_VecTuplePipIdSnapshotResult_V1_t* v);
-parser_error_t _readVecValidatorIndex_V1(parser_context_t* c, pd_VecValidatorIndex_V1_t* v);
-parser_error_t _readVenueDetails_V1(parser_context_t* c, pd_VenueDetails_V1_t* v);
-parser_error_t _readVenueType_V1(parser_context_t* c, pd_VenueType_V1_t* v);
-parser_error_t _readWeight_V1(parser_context_t* c, pd_Weight_V1_t* v);
-
-// toString functions
-parser_error_t _toStringAGId_V1(
- const pd_AGId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAccountId_V1(
- const pd_AccountId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAccountIndex_V1(
- const pd_AccountIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAddRelayerPayingKey_V1(
- const pd_AddRelayerPayingKey_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAgentGroup_V1(
- const pd_AgentGroup_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAssetIdentifier_V1(
- const pd_AssetIdentifier_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAssetName_V1(
- const pd_AssetName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAssetPermissions_V1(
- const pd_AssetPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAssetType_V1(
- const pd_AssetType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringAuthorizationData_V1(
- const pd_AuthorizationData_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBabeEquivocationProof_V1(
- const pd_BabeEquivocationProof_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBallotMeta_V1(
- const pd_BallotMeta_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBallotTimeRange_V1(
- const pd_BallotTimeRange_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBallotTitle_V1(
- const pd_BallotTitle_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBallotVote_V1(
- const pd_BallotVote_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBecomeAgent_V1(
- const pd_BecomeAgent_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBeneficiary_V1(
- const pd_Beneficiary_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringBridgeTx_V1(
- const pd_BridgeTx_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCADetails_V1(
- const pd_CADetails_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCAId_V1(
- const pd_CAId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCAKind_V1(
- const pd_CAKind_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCalendarPeriod_V1(
- const pd_CalendarPeriod_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCalendarUnit_V1(
- const pd_CalendarUnit_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCddId_V1(
- const pd_CddId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringChangesTrieConfiguration_V1(
- const pd_ChangesTrieConfiguration_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCheckpointId_V1(
- const pd_CheckpointId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringChoiceTitle_V1(
- const pd_ChoiceTitle_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringClaimType_V1(
- const pd_ClaimType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringClaim_V1(
- const pd_Claim_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringClassicTickerImport_V1(
- const pd_ClassicTickerImport_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCompactAccountIndex_V1(
- const pd_CompactAccountIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCompactAssignments_V1(
- const pd_CompactAssignments_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCompactEraIndex_V1(
- const pd_CompactEraIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCompactMoment_V1(
- const pd_CompactMoment_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCompactPerBill_V1(
- const pd_CompactPerBill_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringComplianceRequirement_V1(
- const pd_ComplianceRequirement_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringConditionType_V1(
- const pd_ConditionType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCondition_V1(
- const pd_Condition_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCounter_V1(
- const pd_Counter_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCountryCode_V1(
- const pd_CountryCode_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringCustomAssetTypeId_V1(
- const pd_CustomAssetTypeId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDispatchableName_V1(
- const pd_DispatchableName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDispatchableNames_V1(
- const pd_DispatchableNames_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDocumentHash_V1(
- const pd_DocumentHash_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDocumentId_V1(
- const pd_DocumentId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDocumentName_V1(
- const pd_DocumentName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDocumentType_V1(
- const pd_DocumentType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDocumentUri_V1(
- const pd_DocumentUri_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringDocument_V1(
- const pd_Document_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringEcdsaSignature_V1(
- const pd_EcdsaSignature_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringElectionScore_V1(
- const pd_ElectionScore_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringElectionSize_V1(
- const pd_ElectionSize_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringEraIndex_V1(
- const pd_EraIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringEthereumAddress_V1(
- const pd_EthereumAddress_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringExtrinsicPermissions_V1(
- const pd_ExtrinsicPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringFundingRoundName_V1(
- const pd_FundingRoundName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringFundraiserName_V1(
- const pd_FundraiserName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringGrandpaEquivocationProof_V1(
- const pd_GrandpaEquivocationProof_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringIdentityId_V1(
- const pd_IdentityId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringInvestorZKProofData_V1(
- const pd_InvestorZKProofData_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringItnRewardStatus_V1(
- const pd_ItnRewardStatus_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringKeyOwnerProof_V1(
- const pd_KeyOwnerProof_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringKeyValue_V1(
- const pd_KeyValue_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringKey_V1(
- const pd_Key_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringKeys_V1(
- const pd_Keys_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringLeg_V1(
- const pd_Leg_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringLegacyPalletPermissions_V1(
- const pd_LegacyPalletPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringLegacyPermissions_V1(
- const pd_LegacyPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringLocalCAId_V1(
- const pd_LocalCAId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringLookupSource_V1(
- const pd_LookupSource_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMaybeBlock_V1(
- const pd_MaybeBlock_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMemberCount_V1(
- const pd_MemberCount_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMemo_V1(
- const pd_Memo_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMoment_V1(
- const pd_Moment_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMotionInfoLink_V1(
- const pd_MotionInfoLink_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMotionTitle_V1(
- const pd_MotionTitle_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMotion_V1(
- const pd_Motion_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringMovePortfolioItem_V1(
- const pd_MovePortfolioItem_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOffChainSignature_V1(
- const pd_OffChainSignature_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionChangesTrieConfiguration_V1(
- const pd_OptionChangesTrieConfiguration_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionDocumentType_V1(
- const pd_OptionDocumentType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionFundingRoundName_V1(
- const pd_OptionFundingRoundName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionMemo_V1(
- const pd_OptionMemo_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionMoment_V1(
- const pd_OptionMoment_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionPeriod_V1(
- const pd_OptionPeriod_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionPipDescription_V1(
- const pd_OptionPipDescription_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionPortfolioNumber_V1(
- const pd_OptionPortfolioNumber_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionReceiptDetails_V1(
- const pd_OptionReceiptDetails_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionRecordDateSpec_V1(
- const pd_OptionRecordDateSpec_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionScope_V1(
- const pd_OptionScope_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionTargetIdentities_V1(
- const pd_OptionTargetIdentities_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionTax_V1(
- const pd_OptionTax_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionUrl_V1(
- const pd_OptionUrl_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionVecLegacyPalletPermissions_V1(
- const pd_OptionVecLegacyPalletPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionVecPortfolioId_V1(
- const pd_OptionVecPortfolioId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionVecTicker_V1(
- const pd_OptionVecTicker_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringOptionVecTupleIdentityIdTax_V1(
- const pd_OptionVecTupleIdentityIdTax_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPalletName_V1(
- const pd_PalletName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPalletPermissions_V1(
- const pd_PalletPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPerbill_V1(
- const pd_Perbill_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPercent_V1(
- const pd_Percent_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPercentage_V1(
- const pd_Percentage_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPeriod_V1(
- const pd_Period_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPermill_V1(
- const pd_Permill_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPermissions_V1(
- const pd_Permissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPipDescription_V1(
- const pd_PipDescription_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPipId_V1(
- const pd_PipId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPortfolioId_V1(
- const pd_PortfolioId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPortfolioKind_V1(
- const pd_PortfolioKind_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPortfolioName_V1(
- const pd_PortfolioName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPortfolioNumber_V1(
- const pd_PortfolioNumber_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPortfolioPermissions_V1(
- const pd_PortfolioPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPosRatio_V1(
- const pd_PosRatio_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPriceTier_V1(
- const pd_PriceTier_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringPriority_V1(
- const pd_Priority_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringProposalIndex_V1(
- const pd_ProposalIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringProtocolOp_V1(
- const pd_ProtocolOp_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringReceiptDetails_V1(
- const pd_ReceiptDetails_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringReceiptMetadata_V1(
- const pd_ReceiptMetadata_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringRecordDateSpec_V1(
- const pd_RecordDateSpec_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringRewardDestination_V1(
- const pd_RewardDestination_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringScheduleId_V1(
- const pd_ScheduleId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringScheduleSpec_V1(
- const pd_ScheduleSpec_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringScopeClaimProof_V1(
- const pd_ScopeClaimProof_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringScopeId_V1(
- const pd_ScopeId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringScope_V1(
- const pd_Scope_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSecondaryKeyWithAuth_V1(
- const pd_SecondaryKeyWithAuth_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSecondaryKey_V1(
- const pd_SecondaryKey_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSettlementType_V1(
- const pd_SettlementType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSignatory_V1(
- const pd_Signatory_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSignature_V1(
- const pd_Signature_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSkippedCount_V1(
- const pd_SkippedCount_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSlashingSwitch_V1(
- const pd_SlashingSwitch_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringSnapshotResult_V1(
- const pd_SnapshotResult_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringStreamDependency_V1(
- const pd_StreamDependency_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTargetIdentities_V1(
- const pd_TargetIdentities_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTargetIdentity_V1(
- const pd_TargetIdentity_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTargetTreatment_V1(
- const pd_TargetTreatment_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTax_V1(
- const pd_Tax_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTickerRegistrationConfig_V1(
- const pd_TickerRegistrationConfig_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTicker_V1(
- const pd_Ticker_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTransferManager_V1(
- const pd_TransferManager_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTrustedFor_V1(
- const pd_TrustedFor_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTrustedIssuer_V1(
- const pd_TrustedIssuer_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTupleCountryCodeScope_V1(
- const pd_TupleCountryCodeScope_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTupleIdentityIdTax_V1(
- const pd_TupleIdentityIdTax_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTupleIdentityIdbool_V1(
- const pd_TupleIdentityIdbool_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTuplePipIdSnapshotResult_V1(
- const pd_TuplePipIdSnapshotResult_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringTupleScopeScopeIdCddId_V1(
- const pd_TupleScopeScopeIdCddId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringUniqueCall_V1(
- const pd_UniqueCall_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringUrl_V1(
- const pd_Url_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringValidatorIndex_V1(
- const pd_ValidatorIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringValidatorPrefs_V1(
- const pd_ValidatorPrefs_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecAccountId_V1(
- const pd_VecAccountId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecAssetIdentifier_V1(
- const pd_VecAssetIdentifier_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecBallotVote_V1(
- const pd_VecBallotVote_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecBeneficiary_V1(
- const pd_VecBeneficiary_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecBridgeTx_V1(
- const pd_VecBridgeTx_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecChoiceTitle_V1(
- const pd_VecChoiceTitle_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecClaimType_V1(
- const pd_VecClaimType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecClaim_V1(
- const pd_VecClaim_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecComplianceRequirement_V1(
- const pd_VecComplianceRequirement_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecCondition_V1(
- const pd_VecCondition_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecDispatchableName_V1(
- const pd_VecDispatchableName_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecDocumentId_V1(
- const pd_VecDocumentId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecDocument_V1(
- const pd_VecDocument_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecIdentityId_V1(
- const pd_VecIdentityId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecKeyValue_V1(
- const pd_VecKeyValue_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecKey_V1(
- const pd_VecKey_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecLeg_V1(
- const pd_VecLeg_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecLegacyPalletPermissions_V1(
- const pd_VecLegacyPalletPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecLookupSource_V1(
- const pd_VecLookupSource_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecMotion_V1(
- const pd_VecMotion_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecMovePortfolioItem_V1(
- const pd_VecMovePortfolioItem_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecPalletPermissions_V1(
- const pd_VecPalletPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecPortfolioId_V1(
- const pd_VecPortfolioId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecPriceTier_V1(
- const pd_VecPriceTier_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecReceiptDetails_V1(
- const pd_VecReceiptDetails_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecScopeId_V1(
- const pd_VecScopeId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecSecondaryKeyWithAuth_V1(
- const pd_VecSecondaryKeyWithAuth_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecSecondaryKey_V1(
- const pd_VecSecondaryKey_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecSignatory_V1(
- const pd_VecSignatory_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecTicker_V1(
- const pd_VecTicker_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecTrustedIssuer_V1(
- const pd_VecTrustedIssuer_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecTupleIdentityIdTax_V1(
- const pd_VecTupleIdentityIdTax_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecTupleIdentityIdbool_V1(
- const pd_VecTupleIdentityIdbool_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecTuplePipIdSnapshotResult_V1(
- const pd_VecTuplePipIdSnapshotResult_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVecValidatorIndex_V1(
- const pd_VecValidatorIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVenueDetails_V1(
- const pd_VenueDetails_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringVenueType_V1(
- const pd_VenueType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-parser_error_t _toStringWeight_V1(
- const pd_Weight_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/app/src/substrate/substrate_functions_V3.h b/app/src/substrate/substrate_functions_V3.h
new file mode 100644
index 0000000..e3111ff
--- /dev/null
+++ b/app/src/substrate/substrate_functions_V3.h
@@ -0,0 +1,1385 @@
+/*******************************************************************************
+ * (c) 2019 - 2022 Zondax GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ********************************************************************************/
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "parser_common.h"
+#include "substrate_methods_V3.h"
+#include "substrate_types_V3.h"
+#include
+#include
+
+// Read functions
+parser_error_t _readAGId_V3(parser_context_t* c, pd_AGId_V3_t* v);
+parser_error_t _readAccountId_V3(parser_context_t* c, pd_AccountId_V3_t* v);
+parser_error_t _readAccountIndex_V3(parser_context_t* c, pd_AccountIndex_V3_t* v);
+parser_error_t _readAddRelayerPayingKey_V3(parser_context_t* c, pd_AddRelayerPayingKey_V3_t* v);
+parser_error_t _readAgentGroup_V3(parser_context_t* c, pd_AgentGroup_V3_t* v);
+parser_error_t _readAssetIdentifier_V3(parser_context_t* c, pd_AssetIdentifier_V3_t* v);
+parser_error_t _readAssetMetadataKey_V3(parser_context_t* c, pd_AssetMetadataKey_V3_t* v);
+parser_error_t _readAssetMetadataLockStatusMoment_V3(parser_context_t* c, pd_AssetMetadataLockStatusMoment_V3_t* v);
+parser_error_t _readAssetMetadataName_V3(parser_context_t* c, pd_AssetMetadataName_V3_t* v);
+parser_error_t _readAssetMetadataSpec_V3(parser_context_t* c, pd_AssetMetadataSpec_V3_t* v);
+parser_error_t _readAssetMetadataValueDetailMoment_V3(parser_context_t* c, pd_AssetMetadataValueDetailMoment_V3_t* v);
+parser_error_t _readAssetMetadataValue_V3(parser_context_t* c, pd_AssetMetadataValue_V3_t* v);
+parser_error_t _readAssetName_V3(parser_context_t* c, pd_AssetName_V3_t* v);
+parser_error_t _readAssetPermissions_V3(parser_context_t* c, pd_AssetPermissions_V3_t* v);
+parser_error_t _readAssetType_V3(parser_context_t* c, pd_AssetType_V3_t* v);
+parser_error_t _readAuthorizationDataAccountId_V3(parser_context_t* c, pd_AuthorizationDataAccountId_V3_t* v);
+parser_error_t _readBallotMeta_V3(parser_context_t* c, pd_BallotMeta_V3_t* v);
+parser_error_t _readBallotTimeRange_V3(parser_context_t* c, pd_BallotTimeRange_V3_t* v);
+parser_error_t _readBallotTitle_V3(parser_context_t* c, pd_BallotTitle_V3_t* v);
+parser_error_t _readBallotVote_V3(parser_context_t* c, pd_BallotVote_V3_t* v);
+parser_error_t _readBecomeAgent_V3(parser_context_t* c, pd_BecomeAgent_V3_t* v);
+parser_error_t _readBeneficiary_V3(parser_context_t* c, pd_Beneficiary_V3_t* v);
+parser_error_t _readBridgeTxAccountId_V3(parser_context_t* c, pd_BridgeTxAccountId_V3_t* v);
+parser_error_t _readCADetails_V3(parser_context_t* c, pd_CADetails_V3_t* v);
+parser_error_t _readCAId_V3(parser_context_t* c, pd_CAId_V3_t* v);
+parser_error_t _readCAKind_V3(parser_context_t* c, pd_CAKind_V3_t* v);
+parser_error_t _readCalendarPeriod_V3(parser_context_t* c, pd_CalendarPeriod_V3_t* v);
+parser_error_t _readCalendarUnit_V3(parser_context_t* c, pd_CalendarUnit_V3_t* v);
+parser_error_t _readCddId_V3(parser_context_t* c, pd_CddId_V3_t* v);
+parser_error_t _readCheckpointId_V3(parser_context_t* c, pd_CheckpointId_V3_t* v);
+parser_error_t _readChoiceTitle_V3(parser_context_t* c, pd_ChoiceTitle_V3_t* v);
+parser_error_t _readClaimType_V3(parser_context_t* c, pd_ClaimType_V3_t* v);
+parser_error_t _readClaim_V3(parser_context_t* c, pd_Claim_V3_t* v);
+parser_error_t _readClassicTickerImport_V3(parser_context_t* c, pd_ClassicTickerImport_V3_t* v);
+parser_error_t _readCodeHash_V3(parser_context_t* c, pd_CodeHash_V3_t* v);
+parser_error_t _readCompactAccountIndex_V3(parser_context_t* c, pd_CompactAccountIndex_V3_t* v);
+parser_error_t _readCompactPerBill_V3(parser_context_t* c, pd_CompactPerBill_V3_t* v);
+parser_error_t _readConditionType_V3(parser_context_t* c, pd_ConditionType_V3_t* v);
+parser_error_t _readCondition_V3(parser_context_t* c, pd_Condition_V3_t* v);
+parser_error_t _readCountryCode_V3(parser_context_t* c, pd_CountryCode_V3_t* v);
+parser_error_t _readCustomAssetTypeId_V3(parser_context_t* c, pd_CustomAssetTypeId_V3_t* v);
+parser_error_t _readDispatchableName_V3(parser_context_t* c, pd_DispatchableName_V3_t* v);
+parser_error_t _readDispatchableNames_V3(parser_context_t* c, pd_DispatchableNames_V3_t* v);
+parser_error_t _readDocumentHash_V3(parser_context_t* c, pd_DocumentHash_V3_t* v);
+parser_error_t _readDocumentId_V3(parser_context_t* c, pd_DocumentId_V3_t* v);
+parser_error_t _readDocumentName_V3(parser_context_t* c, pd_DocumentName_V3_t* v);
+parser_error_t _readDocumentType_V3(parser_context_t* c, pd_DocumentType_V3_t* v);
+parser_error_t _readDocumentUri_V3(parser_context_t* c, pd_DocumentUri_V3_t* v);
+parser_error_t _readDocument_V3(parser_context_t* c, pd_Document_V3_t* v);
+parser_error_t _readEcdsaSignature_V3(parser_context_t* c, pd_EcdsaSignature_V3_t* v);
+parser_error_t _readEd25519Signature_V3(parser_context_t* c, pd_Ed25519Signature_V3_t* v);
+parser_error_t _readEraIndex_V3(parser_context_t* c, pd_EraIndex_V3_t* v);
+parser_error_t _readEthereumAddress_V3(parser_context_t* c, pd_EthereumAddress_V3_t* v);
+parser_error_t _readExtrinsicPermissions_V3(parser_context_t* c, pd_ExtrinsicPermissions_V3_t* v);
+parser_error_t _readFundingRoundName_V3(parser_context_t* c, pd_FundingRoundName_V3_t* v);
+parser_error_t _readFundraiserId_V3(parser_context_t* c, pd_FundraiserId_V3_t* v);
+parser_error_t _readFundraiserName_V3(parser_context_t* c, pd_FundraiserName_V3_t* v);
+parser_error_t _readIdentityId_V3(parser_context_t* c, pd_IdentityId_V3_t* v);
+parser_error_t _readInstructionId_V3(parser_context_t* c, pd_InstructionId_V3_t* v);
+parser_error_t _readInvestorZKProofData_V3(parser_context_t* c, pd_InvestorZKProofData_V3_t* v);
+parser_error_t _readKeys_V3(parser_context_t* c, pd_Keys_V3_t* v);
+parser_error_t _readLegId_V3(parser_context_t* c, pd_LegId_V3_t* v);
+parser_error_t _readLeg_V3(parser_context_t* c, pd_Leg_V3_t* v);
+parser_error_t _readLocalCAId_V3(parser_context_t* c, pd_LocalCAId_V3_t* v);
+parser_error_t _readLookupasStaticLookupSource_V3(parser_context_t* c, pd_LookupasStaticLookupSource_V3_t* v);
+parser_error_t _readMaybeBlockBlockNumber_V3(parser_context_t* c, pd_MaybeBlockBlockNumber_V3_t* v);
+parser_error_t _readMemberCount_V3(parser_context_t* c, pd_MemberCount_V3_t* v);
+parser_error_t _readMemo_V3(parser_context_t* c, pd_Memo_V3_t* v);
+parser_error_t _readMoment_V3(parser_context_t* c, pd_Moment_V3_t* v);
+parser_error_t _readMotionInfoLink_V3(parser_context_t* c, pd_MotionInfoLink_V3_t* v);
+parser_error_t _readMotionTitle_V3(parser_context_t* c, pd_MotionTitle_V3_t* v);
+parser_error_t _readMotion_V3(parser_context_t* c, pd_Motion_V3_t* v);
+parser_error_t _readMovePortfolioItem_V3(parser_context_t* c, pd_MovePortfolioItem_V3_t* v);
+parser_error_t _readMultiSignature_V3(parser_context_t* c, pd_MultiSignature_V3_t* v);
+parser_error_t _readOffChainSignature_V3(parser_context_t* c, pd_OffChainSignature_V3_t* v);
+parser_error_t _readOptionAssetMetadataValueDetailMoment_V3(parser_context_t* c, pd_OptionAssetMetadataValueDetailMoment_V3_t* v);
+parser_error_t _readOptionDocumentType_V3(parser_context_t* c, pd_OptionDocumentType_V3_t* v);
+parser_error_t _readOptionFundingRoundName_V3(parser_context_t* c, pd_OptionFundingRoundName_V3_t* v);
+parser_error_t _readOptionMemo_V3(parser_context_t* c, pd_OptionMemo_V3_t* v);
+parser_error_t _readOptionMoment_V3(parser_context_t* c, pd_OptionMoment_V3_t* v);
+parser_error_t _readOptionPipDescription_V3(parser_context_t* c, pd_OptionPipDescription_V3_t* v);
+parser_error_t _readOptionPortfolioNumber_V3(parser_context_t* c, pd_OptionPortfolioNumber_V3_t* v);
+parser_error_t _readOptionReceiptDetails_V3(parser_context_t* c, pd_OptionReceiptDetails_V3_t* v);
+parser_error_t _readOptionRecordDateSpec_V3(parser_context_t* c, pd_OptionRecordDateSpec_V3_t* v);
+parser_error_t _readOptionScope_V3(parser_context_t* c, pd_OptionScope_V3_t* v);
+parser_error_t _readOptionTargetIdentities_V3(parser_context_t* c, pd_OptionTargetIdentities_V3_t* v);
+parser_error_t _readOptionTax_V3(parser_context_t* c, pd_OptionTax_V3_t* v);
+parser_error_t _readOptionUrl_V3(parser_context_t* c, pd_OptionUrl_V3_t* v);
+parser_error_t _readOptionVecTupleIdentityIdTax_V3(parser_context_t* c, pd_OptionVecTupleIdentityIdTax_V3_t* v);
+parser_error_t _readPalletName_V3(parser_context_t* c, pd_PalletName_V3_t* v);
+parser_error_t _readPalletPermissions_V3(parser_context_t* c, pd_PalletPermissions_V3_t* v);
+parser_error_t _readPerbill_V3(parser_context_t* c, pd_Perbill_V3_t* v);
+parser_error_t _readPermill_V3(parser_context_t* c, pd_Permill_V3_t* v);
+parser_error_t _readPermissions_V3(parser_context_t* c, pd_Permissions_V3_t* v);
+parser_error_t _readPipDescription_V3(parser_context_t* c, pd_PipDescription_V3_t* v);
+parser_error_t _readPipId_V3(parser_context_t* c, pd_PipId_V3_t* v);
+parser_error_t _readPortfolioId_V3(parser_context_t* c, pd_PortfolioId_V3_t* v);
+parser_error_t _readPortfolioKind_V3(parser_context_t* c, pd_PortfolioKind_V3_t* v);
+parser_error_t _readPortfolioName_V3(parser_context_t* c, pd_PortfolioName_V3_t* v);
+parser_error_t _readPortfolioNumber_V3(parser_context_t* c, pd_PortfolioNumber_V3_t* v);
+parser_error_t _readPortfolioPermissions_V3(parser_context_t* c, pd_PortfolioPermissions_V3_t* v);
+parser_error_t _readPosRatio_V3(parser_context_t* c, pd_PosRatio_V3_t* v);
+parser_error_t _readPriceTier_V3(parser_context_t* c, pd_PriceTier_V3_t* v);
+parser_error_t _readProposalIndex_V3(parser_context_t* c, pd_ProposalIndex_V3_t* v);
+parser_error_t _readReceiptDetails_V3(parser_context_t* c, pd_ReceiptDetails_V3_t* v);
+parser_error_t _readReceiptMetadata_V3(parser_context_t* c, pd_ReceiptMetadata_V3_t* v);
+parser_error_t _readRecordDateSpec_V3(parser_context_t* c, pd_RecordDateSpec_V3_t* v);
+parser_error_t _readRewardDestination_V3(parser_context_t* c, pd_RewardDestination_V3_t* v);
+parser_error_t _readScheduleId_V3(parser_context_t* c, pd_ScheduleId_V3_t* v);
+parser_error_t _readScheduleSpec_V3(parser_context_t* c, pd_ScheduleSpec_V3_t* v);
+parser_error_t _readScopeId_V3(parser_context_t* c, pd_ScopeId_V3_t* v);
+parser_error_t _readScope_V3(parser_context_t* c, pd_Scope_V3_t* v);
+parser_error_t _readSecondaryKeyWithAuthAccountId_V3(parser_context_t* c, pd_SecondaryKeyWithAuthAccountId_V3_t* v);
+parser_error_t _readSettlementTypeBlockNumber_V3(parser_context_t* c, pd_SettlementTypeBlockNumber_V3_t* v);
+parser_error_t _readSignatoryAccountId_V3(parser_context_t* c, pd_SignatoryAccountId_V3_t* v);
+parser_error_t _readSignature_V3(parser_context_t* c, pd_Signature_V3_t* v);
+parser_error_t _readSkippedCount_V3(parser_context_t* c, pd_SkippedCount_V3_t* v);
+parser_error_t _readSlashingSwitch_V3(parser_context_t* c, pd_SlashingSwitch_V3_t* v);
+parser_error_t _readSnapshotResult_V3(parser_context_t* c, pd_SnapshotResult_V3_t* v);
+parser_error_t _readSr25519Signature_V3(parser_context_t* c, pd_Sr25519Signature_V3_t* v);
+parser_error_t _readTargetIdentities_V3(parser_context_t* c, pd_TargetIdentities_V3_t* v);
+parser_error_t _readTargetIdentity_V3(parser_context_t* c, pd_TargetIdentity_V3_t* v);
+parser_error_t _readTargetTreatment_V3(parser_context_t* c, pd_TargetTreatment_V3_t* v);
+parser_error_t _readTax_V3(parser_context_t* c, pd_Tax_V3_t* v);
+parser_error_t _readTickerRegistrationConfigMoment_V3(parser_context_t* c, pd_TickerRegistrationConfigMoment_V3_t* v);
+parser_error_t _readTicker_V3(parser_context_t* c, pd_Ticker_V3_t* v);
+parser_error_t _readTrustedFor_V3(parser_context_t* c, pd_TrustedFor_V3_t* v);
+parser_error_t _readTrustedIssuer_V3(parser_context_t* c, pd_TrustedIssuer_V3_t* v);
+parser_error_t _readTupleCountryCodeScope_V3(parser_context_t* c, pd_TupleCountryCodeScope_V3_t* v);
+parser_error_t _readTupleIdentityIdTax_V3(parser_context_t* c, pd_TupleIdentityIdTax_V3_t* v);
+parser_error_t _readTupleIdentityIdbool_V3(parser_context_t* c, pd_TupleIdentityIdbool_V3_t* v);
+parser_error_t _readTuplePipIdSnapshotResult_V3(parser_context_t* c, pd_TuplePipIdSnapshotResult_V3_t* v);
+parser_error_t _readTupleScopeScopeIdCddId_V3(parser_context_t* c, pd_TupleScopeScopeIdCddId_V3_t* v);
+parser_error_t _readUniqueCall_V3(parser_context_t* c, pd_UniqueCall_V3_t* v);
+parser_error_t _readUrl_V3(parser_context_t* c, pd_Url_V3_t* v);
+parser_error_t _readValidatorPrefs_V3(parser_context_t* c, pd_ValidatorPrefs_V3_t* v);
+parser_error_t _readVecAccountId_V3(parser_context_t* c, pd_VecAccountId_V3_t* v);
+parser_error_t _readVecAssetIdentifier_V3(parser_context_t* c, pd_VecAssetIdentifier_V3_t* v);
+parser_error_t _readVecBallotVote_V3(parser_context_t* c, pd_VecBallotVote_V3_t* v);
+parser_error_t _readVecBeneficiary_V3(parser_context_t* c, pd_VecBeneficiary_V3_t* v);
+parser_error_t _readVecBridgeTxAccountId_V3(parser_context_t* c, pd_VecBridgeTxAccountId_V3_t* v);
+parser_error_t _readVecChoiceTitle_V3(parser_context_t* c, pd_VecChoiceTitle_V3_t* v);
+parser_error_t _readVecClaimType_V3(parser_context_t* c, pd_VecClaimType_V3_t* v);
+parser_error_t _readVecClaim_V3(parser_context_t* c, pd_VecClaim_V3_t* v);
+parser_error_t _readVecCondition_V3(parser_context_t* c, pd_VecCondition_V3_t* v);
+parser_error_t _readVecDispatchableName_V3(parser_context_t* c, pd_VecDispatchableName_V3_t* v);
+parser_error_t _readVecDocumentId_V3(parser_context_t* c, pd_VecDocumentId_V3_t* v);
+parser_error_t _readVecDocument_V3(parser_context_t* c, pd_VecDocument_V3_t* v);
+parser_error_t _readVecIdentityId_V3(parser_context_t* c, pd_VecIdentityId_V3_t* v);
+parser_error_t _readVecLeg_V3(parser_context_t* c, pd_VecLeg_V3_t* v);
+parser_error_t _readVecLookupasStaticLookupSource_V3(parser_context_t* c, pd_VecLookupasStaticLookupSource_V3_t* v);
+parser_error_t _readVecMotion_V3(parser_context_t* c, pd_VecMotion_V3_t* v);
+parser_error_t _readVecMovePortfolioItem_V3(parser_context_t* c, pd_VecMovePortfolioItem_V3_t* v);
+parser_error_t _readVecPalletPermissions_V3(parser_context_t* c, pd_VecPalletPermissions_V3_t* v);
+parser_error_t _readVecPortfolioId_V3(parser_context_t* c, pd_VecPortfolioId_V3_t* v);
+parser_error_t _readVecPriceTier_V3(parser_context_t* c, pd_VecPriceTier_V3_t* v);
+parser_error_t _readVecReceiptDetails_V3(parser_context_t* c, pd_VecReceiptDetails_V3_t* v);
+parser_error_t _readVecSecondaryKeyWithAuthAccountId_V3(parser_context_t* c, pd_VecSecondaryKeyWithAuthAccountId_V3_t* v);
+parser_error_t _readVecSignatoryAccountId_V3(parser_context_t* c, pd_VecSignatoryAccountId_V3_t* v);
+parser_error_t _readVecTicker_V3(parser_context_t* c, pd_VecTicker_V3_t* v);
+parser_error_t _readVecTrustedIssuer_V3(parser_context_t* c, pd_VecTrustedIssuer_V3_t* v);
+parser_error_t _readVecTupleIdentityIdTax_V3(parser_context_t* c, pd_VecTupleIdentityIdTax_V3_t* v);
+parser_error_t _readVecTupleIdentityIdbool_V3(parser_context_t* c, pd_VecTupleIdentityIdbool_V3_t* v);
+parser_error_t _readVecTuplePipIdSnapshotResult_V3(parser_context_t* c, pd_VecTuplePipIdSnapshotResult_V3_t* v);
+parser_error_t _readVecVenueId_V3(parser_context_t* c, pd_VecVenueId_V3_t* v);
+parser_error_t _readVenueDetails_V3(parser_context_t* c, pd_VenueDetails_V3_t* v);
+parser_error_t _readVenueId_V3(parser_context_t* c, pd_VenueId_V3_t* v);
+parser_error_t _readVenueType_V3(parser_context_t* c, pd_VenueType_V3_t* v);
+parser_error_t _readWeight_V3(parser_context_t* c, pd_Weight_V3_t* v);
+
+// toString functions
+parser_error_t _toStringAGId_V3(
+ const pd_AGId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAccountId_V3(
+ const pd_AccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAccountIndex_V3(
+ const pd_AccountIndex_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAddRelayerPayingKey_V3(
+ const pd_AddRelayerPayingKey_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAgentGroup_V3(
+ const pd_AgentGroup_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetIdentifier_V3(
+ const pd_AssetIdentifier_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetMetadataKey_V3(
+ const pd_AssetMetadataKey_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetMetadataLockStatusMoment_V3(
+ const pd_AssetMetadataLockStatusMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetMetadataName_V3(
+ const pd_AssetMetadataName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetMetadataSpec_V3(
+ const pd_AssetMetadataSpec_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetMetadataValueDetailMoment_V3(
+ const pd_AssetMetadataValueDetailMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetMetadataValue_V3(
+ const pd_AssetMetadataValue_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetName_V3(
+ const pd_AssetName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetPermissions_V3(
+ const pd_AssetPermissions_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAssetType_V3(
+ const pd_AssetType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringAuthorizationDataAccountId_V3(
+ const pd_AuthorizationDataAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBallotMeta_V3(
+ const pd_BallotMeta_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBallotTimeRange_V3(
+ const pd_BallotTimeRange_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBallotTitle_V3(
+ const pd_BallotTitle_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBallotVote_V3(
+ const pd_BallotVote_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBecomeAgent_V3(
+ const pd_BecomeAgent_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBeneficiary_V3(
+ const pd_Beneficiary_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringBridgeTxAccountId_V3(
+ const pd_BridgeTxAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCADetails_V3(
+ const pd_CADetails_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCAId_V3(
+ const pd_CAId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCAKind_V3(
+ const pd_CAKind_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCalendarPeriod_V3(
+ const pd_CalendarPeriod_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCalendarUnit_V3(
+ const pd_CalendarUnit_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCddId_V3(
+ const pd_CddId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCheckpointId_V3(
+ const pd_CheckpointId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringChoiceTitle_V3(
+ const pd_ChoiceTitle_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringClaimType_V3(
+ const pd_ClaimType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringClaim_V3(
+ const pd_Claim_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringClassicTickerImport_V3(
+ const pd_ClassicTickerImport_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCodeHash_V3(
+ const pd_CodeHash_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCompactAccountIndex_V3(
+ const pd_CompactAccountIndex_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCompactPerBill_V3(
+ const pd_CompactPerBill_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringConditionType_V3(
+ const pd_ConditionType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCondition_V3(
+ const pd_Condition_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCountryCode_V3(
+ const pd_CountryCode_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringCustomAssetTypeId_V3(
+ const pd_CustomAssetTypeId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDispatchableName_V3(
+ const pd_DispatchableName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDispatchableNames_V3(
+ const pd_DispatchableNames_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDocumentHash_V3(
+ const pd_DocumentHash_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDocumentId_V3(
+ const pd_DocumentId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDocumentName_V3(
+ const pd_DocumentName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDocumentType_V3(
+ const pd_DocumentType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDocumentUri_V3(
+ const pd_DocumentUri_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringDocument_V3(
+ const pd_Document_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringEcdsaSignature_V3(
+ const pd_EcdsaSignature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringEd25519Signature_V3(
+ const pd_Ed25519Signature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringEraIndex_V3(
+ const pd_EraIndex_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringEthereumAddress_V3(
+ const pd_EthereumAddress_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringExtrinsicPermissions_V3(
+ const pd_ExtrinsicPermissions_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringFundingRoundName_V3(
+ const pd_FundingRoundName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringFundraiserId_V3(
+ const pd_FundraiserId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringFundraiserName_V3(
+ const pd_FundraiserName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringIdentityId_V3(
+ const pd_IdentityId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringInstructionId_V3(
+ const pd_InstructionId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringInvestorZKProofData_V3(
+ const pd_InvestorZKProofData_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringKeys_V3(
+ const pd_Keys_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringLegId_V3(
+ const pd_LegId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringLeg_V3(
+ const pd_Leg_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringLocalCAId_V3(
+ const pd_LocalCAId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringLookupasStaticLookupSource_V3(
+ const pd_LookupasStaticLookupSource_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMaybeBlockBlockNumber_V3(
+ const pd_MaybeBlockBlockNumber_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMemberCount_V3(
+ const pd_MemberCount_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMemo_V3(
+ const pd_Memo_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMoment_V3(
+ const pd_Moment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMotionInfoLink_V3(
+ const pd_MotionInfoLink_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMotionTitle_V3(
+ const pd_MotionTitle_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMotion_V3(
+ const pd_Motion_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMovePortfolioItem_V3(
+ const pd_MovePortfolioItem_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringMultiSignature_V3(
+ const pd_MultiSignature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOffChainSignature_V3(
+ const pd_OffChainSignature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionAssetMetadataValueDetailMoment_V3(
+ const pd_OptionAssetMetadataValueDetailMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionDocumentType_V3(
+ const pd_OptionDocumentType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionFundingRoundName_V3(
+ const pd_OptionFundingRoundName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionMemo_V3(
+ const pd_OptionMemo_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionMoment_V3(
+ const pd_OptionMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionPipDescription_V3(
+ const pd_OptionPipDescription_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionPortfolioNumber_V3(
+ const pd_OptionPortfolioNumber_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionReceiptDetails_V3(
+ const pd_OptionReceiptDetails_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionRecordDateSpec_V3(
+ const pd_OptionRecordDateSpec_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionScope_V3(
+ const pd_OptionScope_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionTargetIdentities_V3(
+ const pd_OptionTargetIdentities_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionTax_V3(
+ const pd_OptionTax_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionUrl_V3(
+ const pd_OptionUrl_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringOptionVecTupleIdentityIdTax_V3(
+ const pd_OptionVecTupleIdentityIdTax_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPalletName_V3(
+ const pd_PalletName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPalletPermissions_V3(
+ const pd_PalletPermissions_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPerbill_V3(
+ const pd_Perbill_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPermill_V3(
+ const pd_Permill_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPermissions_V3(
+ const pd_Permissions_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPipDescription_V3(
+ const pd_PipDescription_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPipId_V3(
+ const pd_PipId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPortfolioId_V3(
+ const pd_PortfolioId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPortfolioKind_V3(
+ const pd_PortfolioKind_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPortfolioName_V3(
+ const pd_PortfolioName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPortfolioNumber_V3(
+ const pd_PortfolioNumber_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPortfolioPermissions_V3(
+ const pd_PortfolioPermissions_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPosRatio_V3(
+ const pd_PosRatio_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringPriceTier_V3(
+ const pd_PriceTier_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringProposalIndex_V3(
+ const pd_ProposalIndex_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringReceiptDetails_V3(
+ const pd_ReceiptDetails_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringReceiptMetadata_V3(
+ const pd_ReceiptMetadata_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringRecordDateSpec_V3(
+ const pd_RecordDateSpec_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringRewardDestination_V3(
+ const pd_RewardDestination_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringScheduleId_V3(
+ const pd_ScheduleId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringScheduleSpec_V3(
+ const pd_ScheduleSpec_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringScopeId_V3(
+ const pd_ScopeId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringScope_V3(
+ const pd_Scope_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSecondaryKeyWithAuthAccountId_V3(
+ const pd_SecondaryKeyWithAuthAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSettlementTypeBlockNumber_V3(
+ const pd_SettlementTypeBlockNumber_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSignatoryAccountId_V3(
+ const pd_SignatoryAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSignature_V3(
+ const pd_Signature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSkippedCount_V3(
+ const pd_SkippedCount_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSlashingSwitch_V3(
+ const pd_SlashingSwitch_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSnapshotResult_V3(
+ const pd_SnapshotResult_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringSr25519Signature_V3(
+ const pd_Sr25519Signature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTargetIdentities_V3(
+ const pd_TargetIdentities_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTargetIdentity_V3(
+ const pd_TargetIdentity_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTargetTreatment_V3(
+ const pd_TargetTreatment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTax_V3(
+ const pd_Tax_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTickerRegistrationConfigMoment_V3(
+ const pd_TickerRegistrationConfigMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTicker_V3(
+ const pd_Ticker_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTrustedFor_V3(
+ const pd_TrustedFor_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTrustedIssuer_V3(
+ const pd_TrustedIssuer_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTupleCountryCodeScope_V3(
+ const pd_TupleCountryCodeScope_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTupleIdentityIdTax_V3(
+ const pd_TupleIdentityIdTax_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTupleIdentityIdbool_V3(
+ const pd_TupleIdentityIdbool_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTuplePipIdSnapshotResult_V3(
+ const pd_TuplePipIdSnapshotResult_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringTupleScopeScopeIdCddId_V3(
+ const pd_TupleScopeScopeIdCddId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringUniqueCall_V3(
+ const pd_UniqueCall_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringUrl_V3(
+ const pd_Url_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringValidatorPrefs_V3(
+ const pd_ValidatorPrefs_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecAccountId_V3(
+ const pd_VecAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecAssetIdentifier_V3(
+ const pd_VecAssetIdentifier_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecBallotVote_V3(
+ const pd_VecBallotVote_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecBeneficiary_V3(
+ const pd_VecBeneficiary_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecBridgeTxAccountId_V3(
+ const pd_VecBridgeTxAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecChoiceTitle_V3(
+ const pd_VecChoiceTitle_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecClaimType_V3(
+ const pd_VecClaimType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecClaim_V3(
+ const pd_VecClaim_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecCondition_V3(
+ const pd_VecCondition_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecDispatchableName_V3(
+ const pd_VecDispatchableName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecDocumentId_V3(
+ const pd_VecDocumentId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecDocument_V3(
+ const pd_VecDocument_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecIdentityId_V3(
+ const pd_VecIdentityId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecLeg_V3(
+ const pd_VecLeg_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecLookupasStaticLookupSource_V3(
+ const pd_VecLookupasStaticLookupSource_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecMotion_V3(
+ const pd_VecMotion_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecMovePortfolioItem_V3(
+ const pd_VecMovePortfolioItem_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecPalletPermissions_V3(
+ const pd_VecPalletPermissions_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecPortfolioId_V3(
+ const pd_VecPortfolioId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecPriceTier_V3(
+ const pd_VecPriceTier_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecReceiptDetails_V3(
+ const pd_VecReceiptDetails_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecSecondaryKeyWithAuthAccountId_V3(
+ const pd_VecSecondaryKeyWithAuthAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecSignatoryAccountId_V3(
+ const pd_VecSignatoryAccountId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecTicker_V3(
+ const pd_VecTicker_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecTrustedIssuer_V3(
+ const pd_VecTrustedIssuer_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecTupleIdentityIdTax_V3(
+ const pd_VecTupleIdentityIdTax_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecTupleIdentityIdbool_V3(
+ const pd_VecTupleIdentityIdbool_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecTuplePipIdSnapshotResult_V3(
+ const pd_VecTuplePipIdSnapshotResult_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVecVenueId_V3(
+ const pd_VecVenueId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVenueDetails_V3(
+ const pd_VenueDetails_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVenueId_V3(
+ const pd_VenueId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringVenueType_V3(
+ const pd_VenueType_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+parser_error_t _toStringWeight_V3(
+ const pd_Weight_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount);
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/app/src/substrate/substrate_methods.h b/app/src/substrate/substrate_methods.h
index 605692c..8742782 100644
--- a/app/src/substrate/substrate_methods.h
+++ b/app/src/substrate/substrate_methods.h
@@ -26,19 +26,19 @@ extern "C" {
#define GET_PD_CALL(CALL, VERSION) (PD_CALL_##CALL##_V##VERSION)
-#include "substrate_methods_V1.h"
#include "substrate_methods_V2.h"
-#include "substrate_types_V1.h"
+#include "substrate_methods_V3.h"
#include "substrate_types_V2.h"
+#include "substrate_types_V3.h"
typedef union {
+ pd_Method_V3_t V3;
pd_Method_V2_t V2;
- pd_Method_V1_t V1;
} pd_Method_t;
typedef union {
+ pd_MethodNested_V3_t V3;
pd_MethodNested_V2_t V2;
- pd_MethodNested_V1_t V1;
} pd_MethodNested_t;
#ifdef __cplusplus
diff --git a/app/src/substrate/substrate_methods_V1.h b/app/src/substrate/substrate_methods_V1.h
deleted file mode 100644
index cae1e37..0000000
--- a/app/src/substrate/substrate_methods_V1.h
+++ /dev/null
@@ -1,1704 +0,0 @@
-/*******************************************************************************
- * (c) 2019 - 2022 Zondax GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ********************************************************************************/
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wextern-c-compat"
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "substrate_types.h"
-#include "substrate_types_V1.h"
-#include
-#include
-
-#define PD_CALL_SYSTEM_V1 0
-#define PD_CALL_TIMESTAMP_V1 2
-#define PD_CALL_INDICES_V1 3
-#define PD_CALL_BALANCES_V1 5
-#define PD_CALL_IDENTITY_V1 7
-#define PD_CALL_CDDSERVICEPROVIDERS_V1 8
-#define PD_CALL_POLYMESHCOMMITTEE_V1 9
-#define PD_CALL_COMMITTEEMEMBERSHIP_V1 10
-#define PD_CALL_TECHNICALCOMMITTEE_V1 11
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_V1 12
-#define PD_CALL_UPGRADECOMMITTEE_V1 13
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_V1 14
-#define PD_CALL_MULTISIG_V1 15
-#define PD_CALL_BRIDGE_V1 16
-#define PD_CALL_STAKING_V1 17
-#define PD_CALL_SESSION_V1 19
-#define PD_CALL_GRANDPA_V1 21
-#define PD_CALL_SUDO_V1 25
-#define PD_CALL_ASSET_V1 26
-#define PD_CALL_CAPITALDISTRIBUTION_V1 27
-#define PD_CALL_CHECKPOINT_V1 28
-#define PD_CALL_COMPLIANCEMANAGER_V1 29
-#define PD_CALL_CORPORATEACTION_V1 30
-#define PD_CALL_CORPORATEBALLOT_V1 31
-#define PD_CALL_PIPS_V1 33
-#define PD_CALL_PORTFOLIO_V1 34
-#define PD_CALL_PROTOCOLFEE_V1 35
-#define PD_CALL_SETTLEMENT_V1 37
-#define PD_CALL_STATISTICS_V1 38
-#define PD_CALL_TREASURY_V1 40
-#define PD_CALL_UTILITY_V1 41
-#define PD_CALL_EXTERNALAGENTS_V1 43
-#define PD_CALL_RELAYER_V1 44
-#define PD_CALL_REWARDS_V1 45
-
-#ifdef SUBSTRATE_PARSER_FULL
-
-#define PD_CALL_IDENTITY_REVOKE_CLAIM_BY_INDEX_V1 20
-typedef struct {
- pd_IdentityId_V1_t target;
- pd_ClaimType_V1_t claim_type;
- pd_OptionScope_V1_t scope;
-} pd_identity_revoke_claim_by_index_V1_t;
-
-#define PD_CALL_BRIDGE_FORCE_HANDLE_BRIDGE_TX_V1 7
-typedef struct {
- pd_BridgeTx_V1_t bridge_tx;
-} pd_bridge_force_handle_bridge_tx_V1_t;
-
-#define PD_CALL_BRIDGE_BATCH_PROPOSE_BRIDGE_TX_V1 8
-typedef struct {
- pd_VecBridgeTx_V1_t bridge_txs;
-} pd_bridge_batch_propose_bridge_tx_V1_t;
-
-#define PD_CALL_BRIDGE_PROPOSE_BRIDGE_TX_V1 9
-typedef struct {
- pd_BridgeTx_V1_t bridge_tx;
-} pd_bridge_propose_bridge_tx_V1_t;
-
-#define PD_CALL_BRIDGE_HANDLE_BRIDGE_TX_V1 10
-typedef struct {
- pd_BridgeTx_V1_t bridge_tx;
-} pd_bridge_handle_bridge_tx_V1_t;
-
-#define PD_CALL_BRIDGE_FREEZE_TXS_V1 11
-typedef struct {
- pd_VecBridgeTx_V1_t bridge_txs;
-} pd_bridge_freeze_txs_V1_t;
-
-#define PD_CALL_BRIDGE_UNFREEZE_TXS_V1 12
-typedef struct {
- pd_VecBridgeTx_V1_t bridge_txs;
-} pd_bridge_unfreeze_txs_V1_t;
-
-#define PD_CALL_BRIDGE_HANDLE_SCHEDULED_BRIDGE_TX_V1 13
-typedef struct {
- pd_BridgeTx_V1_t bridge_tx;
-} pd_bridge_handle_scheduled_bridge_tx_V1_t;
-
-#define PD_CALL_BRIDGE_ADD_FREEZE_ADMIN_V1 14
-typedef struct {
- pd_AccountId_V1_t freeze_admin;
-} pd_bridge_add_freeze_admin_V1_t;
-
-#define PD_CALL_BRIDGE_REMOVE_FREEZE_ADMIN_V1 15
-typedef struct {
- pd_AccountId_V1_t freeze_admin;
-} pd_bridge_remove_freeze_admin_V1_t;
-
-#define PD_CALL_ASSET_CONTROLLER_TRANSFER_V1 16
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_BalanceNoSymbol_t amount;
- pd_PortfolioId_V1_t from_portfolio;
-} pd_asset_controller_transfer_V1_t;
-
-#define PD_CALL_ASSET_REGISTER_CUSTOM_ASSET_TYPE_V1 17
-typedef struct {
- pd_Bytes_t ty;
-} pd_asset_register_custom_asset_type_V1_t;
-
-#define PD_CALL_PORTFOLIO_QUIT_PORTFOLIO_CUSTODY_V1 4
-typedef struct {
- pd_PortfolioId_V1_t pid;
-} pd_portfolio_quit_portfolio_custody_V1_t;
-
-#define PD_CALL_PORTFOLIO_ACCEPT_PORTFOLIO_CUSTODY_V1 5
-typedef struct {
- pd_u64_t auth_id;
-} pd_portfolio_accept_portfolio_custody_V1_t;
-
-#define PD_CALL_SETTLEMENT_CHANGE_RECEIPT_VALIDITY_V1 14
-typedef struct {
- pd_u64_t receipt_uid;
- pd_bool_t validity;
-} pd_settlement_change_receipt_validity_V1_t;
-
-#define PD_CALL_EXTERNALAGENTS_REMOVE_AGENT_V1 2
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_IdentityId_V1_t agent;
-} pd_externalagents_remove_agent_V1_t;
-
-#define PD_CALL_EXTERNALAGENTS_ABDICATE_V1 3
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_externalagents_abdicate_V1_t;
-
-#define PD_CALL_EXTERNALAGENTS_ACCEPT_BECOME_AGENT_V1 5
-typedef struct {
- pd_u64_t auth_id;
-} pd_externalagents_accept_become_agent_V1_t;
-
-#define PD_CALL_RELAYER_SET_PAYING_KEY_V1 0
-typedef struct {
- pd_AccountId_V1_t user_key;
- pd_Balance_t polyx_limit;
-} pd_relayer_set_paying_key_V1_t;
-
-#define PD_CALL_RELAYER_ACCEPT_PAYING_KEY_V1 1
-typedef struct {
- pd_u64_t auth_id;
-} pd_relayer_accept_paying_key_V1_t;
-
-#define PD_CALL_RELAYER_REMOVE_PAYING_KEY_V1 2
-typedef struct {
- pd_AccountId_V1_t user_key;
- pd_AccountId_V1_t paying_key;
-} pd_relayer_remove_paying_key_V1_t;
-
-#define PD_CALL_RELAYER_UPDATE_POLYX_LIMIT_V1 3
-typedef struct {
- pd_AccountId_V1_t user_key;
- pd_Balance_t polyx_limit;
-} pd_relayer_update_polyx_limit_V1_t;
-
-#define PD_CALL_RELAYER_INCREASE_POLYX_LIMIT_V1 4
-typedef struct {
- pd_AccountId_V1_t user_key;
- pd_Balance_t amount;
-} pd_relayer_increase_polyx_limit_V1_t;
-
-#define PD_CALL_RELAYER_DECREASE_POLYX_LIMIT_V1 5
-typedef struct {
- pd_AccountId_V1_t user_key;
- pd_Balance_t amount;
-} pd_relayer_decrease_polyx_limit_V1_t;
-
-#define PD_CALL_REWARDS_CLAIM_ITN_REWARD_V1 0
-typedef struct {
- pd_AccountId_V1_t reward_address;
- pd_AccountId_V1_t itn_address;
- pd_OffChainSignature_V1_t signature;
-} pd_rewards_claim_itn_reward_V1_t;
-
-#endif
-
-typedef union {
-#ifdef SUBSTRATE_PARSER_FULL
- pd_identity_revoke_claim_by_index_V1_t identity_revoke_claim_by_index_V1;
- pd_bridge_force_handle_bridge_tx_V1_t bridge_force_handle_bridge_tx_V1;
- pd_bridge_batch_propose_bridge_tx_V1_t bridge_batch_propose_bridge_tx_V1;
- pd_bridge_propose_bridge_tx_V1_t bridge_propose_bridge_tx_V1;
- pd_bridge_handle_bridge_tx_V1_t bridge_handle_bridge_tx_V1;
- pd_bridge_freeze_txs_V1_t bridge_freeze_txs_V1;
- pd_bridge_unfreeze_txs_V1_t bridge_unfreeze_txs_V1;
- pd_bridge_handle_scheduled_bridge_tx_V1_t bridge_handle_scheduled_bridge_tx_V1;
- pd_bridge_add_freeze_admin_V1_t bridge_add_freeze_admin_V1;
- pd_bridge_remove_freeze_admin_V1_t bridge_remove_freeze_admin_V1;
- pd_asset_controller_transfer_V1_t asset_controller_transfer_V1;
- pd_asset_register_custom_asset_type_V1_t asset_register_custom_asset_type_V1;
- pd_portfolio_quit_portfolio_custody_V1_t portfolio_quit_portfolio_custody_V1;
- pd_portfolio_accept_portfolio_custody_V1_t portfolio_accept_portfolio_custody_V1;
- pd_settlement_change_receipt_validity_V1_t settlement_change_receipt_validity_V1;
- pd_externalagents_remove_agent_V1_t externalagents_remove_agent_V1;
- pd_externalagents_abdicate_V1_t externalagents_abdicate_V1;
- pd_externalagents_accept_become_agent_V1_t externalagents_accept_become_agent_V1;
- pd_relayer_set_paying_key_V1_t relayer_set_paying_key_V1;
- pd_relayer_accept_paying_key_V1_t relayer_accept_paying_key_V1;
- pd_relayer_remove_paying_key_V1_t relayer_remove_paying_key_V1;
- pd_relayer_update_polyx_limit_V1_t relayer_update_polyx_limit_V1;
- pd_relayer_increase_polyx_limit_V1_t relayer_increase_polyx_limit_V1;
- pd_relayer_decrease_polyx_limit_V1_t relayer_decrease_polyx_limit_V1;
- pd_rewards_claim_itn_reward_V1_t rewards_claim_itn_reward_V1;
-#endif
-} pd_MethodBasic_V1_t;
-
-#define PD_CALL_BALANCES_TRANSFER_V1 0
-typedef struct {
- pd_LookupSource_V1_t dest;
- pd_CompactBalance_t amount;
-} pd_balances_transfer_V1_t;
-
-#define PD_CALL_IDENTITY_REMOVE_SECONDARY_KEYS_V1 2
-typedef struct {
- pd_VecSignatory_V1_t signers_to_remove;
-} pd_identity_remove_secondary_keys_V1_t;
-
-#define PD_CALL_IDENTITY_ACCEPT_PRIMARY_KEY_V1 3
-typedef struct {
- pd_u64_t rotation_auth_id;
- pd_Optionu64_t optional_cdd_auth_id;
-} pd_identity_accept_primary_key_V1_t;
-
-#define PD_CALL_IDENTITY_JOIN_IDENTITY_AS_KEY_V1 5
-typedef struct {
- pd_u64_t auth_id;
-} pd_identity_join_identity_as_key_V1_t;
-
-#define PD_CALL_IDENTITY_LEAVE_IDENTITY_AS_KEY_V1 6
-typedef struct {
-} pd_identity_leave_identity_as_key_V1_t;
-
-#define PD_CALL_IDENTITY_ADD_CLAIM_V1 7
-typedef struct {
- pd_IdentityId_V1_t target;
- pd_Claim_V1_t claim;
- pd_OptionMoment_V1_t expiry;
-} pd_identity_add_claim_V1_t;
-
-#define PD_CALL_IDENTITY_REVOKE_CLAIM_V1 8
-typedef struct {
- pd_IdentityId_V1_t target;
- pd_Claim_V1_t claim;
-} pd_identity_revoke_claim_V1_t;
-
-#define PD_CALL_IDENTITY_SET_PERMISSION_TO_SIGNER_V1 9
-typedef struct {
- pd_Signatory_V1_t signer;
- pd_Permissions_V1_t permissions;
-} pd_identity_set_permission_to_signer_V1_t;
-
-#define PD_CALL_IDENTITY_FREEZE_SECONDARY_KEYS_V1 11
-typedef struct {
-} pd_identity_freeze_secondary_keys_V1_t;
-
-#define PD_CALL_IDENTITY_UNFREEZE_SECONDARY_KEYS_V1 12
-typedef struct {
-} pd_identity_unfreeze_secondary_keys_V1_t;
-
-#define PD_CALL_IDENTITY_ADD_AUTHORIZATION_V1 13
-typedef struct {
- pd_Signatory_V1_t target;
- pd_AuthorizationData_V1_t authorization_data;
- pd_OptionMoment_V1_t expiry;
-} pd_identity_add_authorization_V1_t;
-
-#define PD_CALL_IDENTITY_REMOVE_AUTHORIZATION_V1 14
-typedef struct {
- pd_Signatory_V1_t target;
- pd_u64_t auth_id;
- pd_bool_t _auth_issuer_pays;
-} pd_identity_remove_authorization_V1_t;
-
-#define PD_CALL_IDENTITY_ADD_SECONDARY_KEYS_WITH_AUTHORIZATION_V1 15
-typedef struct {
- pd_VecSecondaryKeyWithAuth_V1_t additional_keys;
- pd_Moment_V1_t expires_at;
-} pd_identity_add_secondary_keys_with_authorization_V1_t;
-
-#define PD_CALL_IDENTITY_ADD_INVESTOR_UNIQUENESS_CLAIM_V1 16
-typedef struct {
- pd_IdentityId_V1_t target;
- pd_Claim_V1_t claim;
- pd_InvestorZKProofData_V1_t proof;
- pd_OptionMoment_V1_t expiry;
-} pd_identity_add_investor_uniqueness_claim_V1_t;
-
-#define PD_CALL_MULTISIG_CREATE_MULTISIG_V1 0
-typedef struct {
- pd_VecSignatory_V1_t signers;
- pd_u64_t sigs_required;
-} pd_multisig_create_multisig_V1_t;
-
-#define PD_CALL_MULTISIG_CREATE_OR_APPROVE_PROPOSAL_AS_IDENTITY_V1 1
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_Proposal_t proposal;
- pd_OptionMoment_V1_t expiry;
- pd_bool_t auto_close;
-} pd_multisig_create_or_approve_proposal_as_identity_V1_t;
-
-#define PD_CALL_MULTISIG_CREATE_OR_APPROVE_PROPOSAL_AS_KEY_V1 2
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_Proposal_t proposal;
- pd_OptionMoment_V1_t expiry;
- pd_bool_t auto_close;
-} pd_multisig_create_or_approve_proposal_as_key_V1_t;
-
-#define PD_CALL_MULTISIG_CREATE_PROPOSAL_AS_IDENTITY_V1 3
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_Proposal_t proposal;
- pd_OptionMoment_V1_t expiry;
- pd_bool_t auto_close;
-} pd_multisig_create_proposal_as_identity_V1_t;
-
-#define PD_CALL_MULTISIG_CREATE_PROPOSAL_AS_KEY_V1 4
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_Proposal_t proposal;
- pd_OptionMoment_V1_t expiry;
- pd_bool_t auto_close;
-} pd_multisig_create_proposal_as_key_V1_t;
-
-#define PD_CALL_MULTISIG_APPROVE_AS_IDENTITY_V1 5
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_u64_t proposal_id;
-} pd_multisig_approve_as_identity_V1_t;
-
-#define PD_CALL_MULTISIG_APPROVE_AS_KEY_V1 6
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_u64_t proposal_id;
-} pd_multisig_approve_as_key_V1_t;
-
-#define PD_CALL_MULTISIG_REJECT_AS_IDENTITY_V1 7
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_u64_t proposal_id;
-} pd_multisig_reject_as_identity_V1_t;
-
-#define PD_CALL_MULTISIG_REJECT_AS_KEY_V1 8
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_u64_t proposal_id;
-} pd_multisig_reject_as_key_V1_t;
-
-#define PD_CALL_MULTISIG_ACCEPT_MULTISIG_SIGNER_AS_IDENTITY_V1 9
-typedef struct {
- pd_u64_t auth_id;
-} pd_multisig_accept_multisig_signer_as_identity_V1_t;
-
-#define PD_CALL_MULTISIG_ACCEPT_MULTISIG_SIGNER_AS_KEY_V1 10
-typedef struct {
- pd_u64_t auth_id;
-} pd_multisig_accept_multisig_signer_as_key_V1_t;
-
-#define PD_CALL_MULTISIG_ADD_MULTISIG_SIGNER_V1 11
-typedef struct {
- pd_Signatory_V1_t signer;
-} pd_multisig_add_multisig_signer_V1_t;
-
-#define PD_CALL_MULTISIG_REMOVE_MULTISIG_SIGNER_V1 12
-typedef struct {
- pd_Signatory_V1_t signer;
-} pd_multisig_remove_multisig_signer_V1_t;
-
-#define PD_CALL_MULTISIG_ADD_MULTISIG_SIGNERS_VIA_CREATOR_V1 13
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_VecSignatory_V1_t signers;
-} pd_multisig_add_multisig_signers_via_creator_V1_t;
-
-#define PD_CALL_MULTISIG_REMOVE_MULTISIG_SIGNERS_VIA_CREATOR_V1 14
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_VecSignatory_V1_t signers;
-} pd_multisig_remove_multisig_signers_via_creator_V1_t;
-
-#define PD_CALL_MULTISIG_CHANGE_SIGS_REQUIRED_V1 15
-typedef struct {
- pd_u64_t sigs_required;
-} pd_multisig_change_sigs_required_V1_t;
-
-#define PD_CALL_MULTISIG_MAKE_MULTISIG_SIGNER_V1 16
-typedef struct {
- pd_AccountId_V1_t multisig;
-} pd_multisig_make_multisig_signer_V1_t;
-
-#define PD_CALL_MULTISIG_MAKE_MULTISIG_PRIMARY_V1 17
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_Optionu64_t optional_cdd_auth_id;
-} pd_multisig_make_multisig_primary_V1_t;
-
-#define PD_CALL_MULTISIG_EXECUTE_SCHEDULED_PROPOSAL_V1 18
-typedef struct {
- pd_AccountId_V1_t multisig;
- pd_u64_t proposal_id;
- pd_IdentityId_V1_t multisig_did;
- pd_Weight_V1_t _proposal_weight;
-} pd_multisig_execute_scheduled_proposal_V1_t;
-
-#define PD_CALL_STAKING_BOND_V1 0
-typedef struct {
- pd_LookupSource_V1_t controller;
- pd_CompactBalanceOf_t amount;
- pd_RewardDestination_V1_t payee;
-} pd_staking_bond_V1_t;
-
-#define PD_CALL_STAKING_BOND_EXTRA_V1 1
-typedef struct {
- pd_CompactBalanceOf_t amount;
-} pd_staking_bond_extra_V1_t;
-
-#define PD_CALL_STAKING_UNBOND_V1 2
-typedef struct {
- pd_CompactBalanceOf_t amount;
-} pd_staking_unbond_V1_t;
-
-#define PD_CALL_STAKING_WITHDRAW_UNBONDED_V1 3
-typedef struct {
- pd_u32_t num_slashing_spans;
-} pd_staking_withdraw_unbonded_V1_t;
-
-#define PD_CALL_STAKING_VALIDATE_V1 4
-typedef struct {
- pd_ValidatorPrefs_V1_t prefs;
-} pd_staking_validate_V1_t;
-
-#define PD_CALL_STAKING_NOMINATE_V1 5
-typedef struct {
- pd_VecLookupSource_V1_t targets;
-} pd_staking_nominate_V1_t;
-
-#define PD_CALL_STAKING_CHILL_V1 6
-typedef struct {
-} pd_staking_chill_V1_t;
-
-#define PD_CALL_STAKING_SET_PAYEE_V1 7
-typedef struct {
- pd_RewardDestination_V1_t payee;
-} pd_staking_set_payee_V1_t;
-
-#define PD_CALL_STAKING_SET_CONTROLLER_V1 8
-typedef struct {
- pd_LookupSource_V1_t controller;
-} pd_staking_set_controller_V1_t;
-
-#define PD_CALL_STAKING_REBOND_V1 24
-typedef struct {
- pd_CompactBalanceOf_t amount;
-} pd_staking_rebond_V1_t;
-
-#define PD_CALL_PIPS_PROPOSE_V1 6
-typedef struct {
- pd_Proposal_t proposal;
- pd_Balance_t deposit;
- pd_OptionUrl_V1_t url;
- pd_OptionPipDescription_V1_t description;
-} pd_pips_propose_V1_t;
-
-#define PD_CALL_PIPS_VOTE_V1 7
-typedef struct {
- pd_PipId_V1_t id;
- pd_bool_t aye_or_nay;
- pd_Balance_t deposit;
-} pd_pips_vote_V1_t;
-
-#define PD_CALL_UTILITY_BATCH_V1 0
-typedef struct {
- pd_VecCall_t calls;
-} pd_utility_batch_V1_t;
-
-#define PD_CALL_UTILITY_BATCH_ATOMIC_V1 1
-typedef struct {
- pd_VecCall_t calls;
-} pd_utility_batch_atomic_V1_t;
-
-#define PD_CALL_UTILITY_BATCH_OPTIMISTIC_V1 2
-typedef struct {
- pd_VecCall_t calls;
-} pd_utility_batch_optimistic_V1_t;
-
-#ifdef SUBSTRATE_PARSER_FULL
-#define PD_CALL_SYSTEM_FILL_BLOCK_V1 0
-typedef struct {
- pd_Perbill_V1_t _ratio;
-} pd_system_fill_block_V1_t;
-
-#define PD_CALL_SYSTEM_REMARK_V1 1
-typedef struct {
- pd_Bytes_t _remark;
-} pd_system_remark_V1_t;
-
-#define PD_CALL_SYSTEM_SET_HEAP_PAGES_V1 2
-typedef struct {
- pd_u64_t pages;
-} pd_system_set_heap_pages_V1_t;
-
-#define PD_CALL_SYSTEM_SET_CODE_V1 3
-typedef struct {
- pd_Bytes_t code;
-} pd_system_set_code_V1_t;
-
-#define PD_CALL_SYSTEM_SET_CODE_WITHOUT_CHECKS_V1 4
-typedef struct {
- pd_Bytes_t code;
-} pd_system_set_code_without_checks_V1_t;
-
-#define PD_CALL_TIMESTAMP_SET_V1 0
-typedef struct {
- pd_CompactMoment_V1_t now;
-} pd_timestamp_set_V1_t;
-
-#define PD_CALL_INDICES_CLAIM_V1 0
-typedef struct {
- pd_AccountIndex_V1_t index;
-} pd_indices_claim_V1_t;
-
-#define PD_CALL_INDICES_TRANSFER_V1 1
-typedef struct {
- pd_AccountId_V1_t new_;
- pd_AccountIndex_V1_t index;
-} pd_indices_transfer_V1_t;
-
-#define PD_CALL_INDICES_FREE_V1 2
-typedef struct {
- pd_AccountIndex_V1_t index;
-} pd_indices_free_V1_t;
-
-#define PD_CALL_INDICES_FORCE_TRANSFER_V1 3
-typedef struct {
- pd_AccountId_V1_t new_;
- pd_AccountIndex_V1_t index;
- pd_bool_t freeze;
-} pd_indices_force_transfer_V1_t;
-
-#define PD_CALL_INDICES_FREEZE_V1 4
-typedef struct {
- pd_AccountIndex_V1_t index;
-} pd_indices_freeze_V1_t;
-
-#define PD_CALL_BALANCES_TRANSFER_WITH_MEMO_V1 1
-typedef struct {
- pd_LookupSource_V1_t dest;
- pd_CompactBalance_t amount;
- pd_OptionMemo_V1_t memo;
-} pd_balances_transfer_with_memo_V1_t;
-
-#define PD_CALL_BALANCES_DEPOSIT_BLOCK_REWARD_RESERVE_BALANCE_V1 2
-typedef struct {
- pd_CompactBalance_t amount;
-} pd_balances_deposit_block_reward_reserve_balance_V1_t;
-
-#define PD_CALL_BALANCES_SET_BALANCE_V1 3
-typedef struct {
- pd_LookupSource_V1_t who;
- pd_CompactBalance_t new_free;
- pd_CompactBalance_t new_reserved;
-} pd_balances_set_balance_V1_t;
-
-#define PD_CALL_BALANCES_FORCE_TRANSFER_V1 4
-typedef struct {
- pd_LookupSource_V1_t source;
- pd_LookupSource_V1_t dest;
- pd_CompactBalance_t amount;
-} pd_balances_force_transfer_V1_t;
-
-#define PD_CALL_BALANCES_BURN_ACCOUNT_BALANCE_V1 5
-typedef struct {
- pd_Balance_t amount;
-} pd_balances_burn_account_balance_V1_t;
-
-#define PD_CALL_IDENTITY_INVALIDATE_CDD_CLAIMS_V1 1
-typedef struct {
- pd_IdentityId_V1_t cdd;
- pd_Moment_V1_t disable_from;
- pd_OptionMoment_V1_t expiry;
-} pd_identity_invalidate_cdd_claims_V1_t;
-
-#define PD_CALL_IDENTITY_CHANGE_CDD_REQUIREMENT_FOR_MK_ROTATION_V1 4
-typedef struct {
- pd_bool_t auth_required;
-} pd_identity_change_cdd_requirement_for_mk_rotation_V1_t;
-
-#define PD_CALL_IDENTITY_GC_ADD_CDD_CLAIM_V1 17
-typedef struct {
- pd_IdentityId_V1_t target;
-} pd_identity_gc_add_cdd_claim_V1_t;
-
-#define PD_CALL_IDENTITY_GC_REVOKE_CDD_CLAIM_V1 18
-typedef struct {
- pd_IdentityId_V1_t target;
-} pd_identity_gc_revoke_cdd_claim_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_SET_ACTIVE_MEMBERS_LIMIT_V1 0
-typedef struct {
- pd_MemberCount_V1_t limit;
-} pd_cddserviceproviders_set_active_members_limit_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_DISABLE_MEMBER_V1 1
-typedef struct {
- pd_IdentityId_V1_t who;
- pd_OptionMoment_V1_t expiry;
- pd_OptionMoment_V1_t at;
-} pd_cddserviceproviders_disable_member_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_ADD_MEMBER_V1 2
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_cddserviceproviders_add_member_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_REMOVE_MEMBER_V1 3
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_cddserviceproviders_remove_member_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_SWAP_MEMBER_V1 4
-typedef struct {
- pd_IdentityId_V1_t remove;
- pd_IdentityId_V1_t add;
-} pd_cddserviceproviders_swap_member_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_RESET_MEMBERS_V1 5
-typedef struct {
- pd_VecIdentityId_V1_t members;
-} pd_cddserviceproviders_reset_members_V1_t;
-
-#define PD_CALL_CDDSERVICEPROVIDERS_ABDICATE_MEMBERSHIP_V1 6
-typedef struct {
-} pd_cddserviceproviders_abdicate_membership_V1_t;
-
-#define PD_CALL_POLYMESHCOMMITTEE_SET_VOTE_THRESHOLD_V1 0
-typedef struct {
- pd_u32_t n;
- pd_u32_t d;
-} pd_polymeshcommittee_set_vote_threshold_V1_t;
-
-#define PD_CALL_POLYMESHCOMMITTEE_SET_RELEASE_COORDINATOR_V1 1
-typedef struct {
- pd_IdentityId_V1_t id;
-} pd_polymeshcommittee_set_release_coordinator_V1_t;
-
-#define PD_CALL_POLYMESHCOMMITTEE_SET_EXPIRES_AFTER_V1 2
-typedef struct {
- pd_MaybeBlock_V1_t expiry;
-} pd_polymeshcommittee_set_expires_after_V1_t;
-
-#define PD_CALL_POLYMESHCOMMITTEE_VOTE_OR_PROPOSE_V1 3
-typedef struct {
- pd_bool_t approve;
- pd_Call_t call;
-} pd_polymeshcommittee_vote_or_propose_V1_t;
-
-#define PD_CALL_POLYMESHCOMMITTEE_VOTE_V1 4
-typedef struct {
- pd_Hash_t proposal;
- pd_ProposalIndex_V1_t index;
- pd_bool_t approve;
-} pd_polymeshcommittee_vote_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_SET_ACTIVE_MEMBERS_LIMIT_V1 0
-typedef struct {
- pd_MemberCount_V1_t limit;
-} pd_committeemembership_set_active_members_limit_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_DISABLE_MEMBER_V1 1
-typedef struct {
- pd_IdentityId_V1_t who;
- pd_OptionMoment_V1_t expiry;
- pd_OptionMoment_V1_t at;
-} pd_committeemembership_disable_member_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_ADD_MEMBER_V1 2
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_committeemembership_add_member_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_REMOVE_MEMBER_V1 3
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_committeemembership_remove_member_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_SWAP_MEMBER_V1 4
-typedef struct {
- pd_IdentityId_V1_t remove;
- pd_IdentityId_V1_t add;
-} pd_committeemembership_swap_member_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_RESET_MEMBERS_V1 5
-typedef struct {
- pd_VecIdentityId_V1_t members;
-} pd_committeemembership_reset_members_V1_t;
-
-#define PD_CALL_COMMITTEEMEMBERSHIP_ABDICATE_MEMBERSHIP_V1 6
-typedef struct {
-} pd_committeemembership_abdicate_membership_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEE_SET_VOTE_THRESHOLD_V1 0
-typedef struct {
- pd_u32_t n;
- pd_u32_t d;
-} pd_technicalcommittee_set_vote_threshold_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEE_SET_RELEASE_COORDINATOR_V1 1
-typedef struct {
- pd_IdentityId_V1_t id;
-} pd_technicalcommittee_set_release_coordinator_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEE_SET_EXPIRES_AFTER_V1 2
-typedef struct {
- pd_MaybeBlock_V1_t expiry;
-} pd_technicalcommittee_set_expires_after_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEE_VOTE_OR_PROPOSE_V1 3
-typedef struct {
- pd_bool_t approve;
- pd_Call_t call;
-} pd_technicalcommittee_vote_or_propose_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEE_VOTE_V1 4
-typedef struct {
- pd_Hash_t proposal;
- pd_ProposalIndex_V1_t index;
- pd_bool_t approve;
-} pd_technicalcommittee_vote_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_SET_ACTIVE_MEMBERS_LIMIT_V1 0
-typedef struct {
- pd_MemberCount_V1_t limit;
-} pd_technicalcommitteemembership_set_active_members_limit_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_DISABLE_MEMBER_V1 1
-typedef struct {
- pd_IdentityId_V1_t who;
- pd_OptionMoment_V1_t expiry;
- pd_OptionMoment_V1_t at;
-} pd_technicalcommitteemembership_disable_member_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_ADD_MEMBER_V1 2
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_technicalcommitteemembership_add_member_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_REMOVE_MEMBER_V1 3
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_technicalcommitteemembership_remove_member_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_SWAP_MEMBER_V1 4
-typedef struct {
- pd_IdentityId_V1_t remove;
- pd_IdentityId_V1_t add;
-} pd_technicalcommitteemembership_swap_member_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_RESET_MEMBERS_V1 5
-typedef struct {
- pd_VecIdentityId_V1_t members;
-} pd_technicalcommitteemembership_reset_members_V1_t;
-
-#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_ABDICATE_MEMBERSHIP_V1 6
-typedef struct {
-} pd_technicalcommitteemembership_abdicate_membership_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEE_SET_VOTE_THRESHOLD_V1 0
-typedef struct {
- pd_u32_t n;
- pd_u32_t d;
-} pd_upgradecommittee_set_vote_threshold_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEE_SET_RELEASE_COORDINATOR_V1 1
-typedef struct {
- pd_IdentityId_V1_t id;
-} pd_upgradecommittee_set_release_coordinator_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEE_SET_EXPIRES_AFTER_V1 2
-typedef struct {
- pd_MaybeBlock_V1_t expiry;
-} pd_upgradecommittee_set_expires_after_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEE_VOTE_OR_PROPOSE_V1 3
-typedef struct {
- pd_bool_t approve;
- pd_Call_t call;
-} pd_upgradecommittee_vote_or_propose_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEE_VOTE_V1 4
-typedef struct {
- pd_Hash_t proposal;
- pd_ProposalIndex_V1_t index;
- pd_bool_t approve;
-} pd_upgradecommittee_vote_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_SET_ACTIVE_MEMBERS_LIMIT_V1 0
-typedef struct {
- pd_MemberCount_V1_t limit;
-} pd_upgradecommitteemembership_set_active_members_limit_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_DISABLE_MEMBER_V1 1
-typedef struct {
- pd_IdentityId_V1_t who;
- pd_OptionMoment_V1_t expiry;
- pd_OptionMoment_V1_t at;
-} pd_upgradecommitteemembership_disable_member_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_ADD_MEMBER_V1 2
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_upgradecommitteemembership_add_member_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_REMOVE_MEMBER_V1 3
-typedef struct {
- pd_IdentityId_V1_t who;
-} pd_upgradecommitteemembership_remove_member_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_SWAP_MEMBER_V1 4
-typedef struct {
- pd_IdentityId_V1_t remove;
- pd_IdentityId_V1_t add;
-} pd_upgradecommitteemembership_swap_member_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_RESET_MEMBERS_V1 5
-typedef struct {
- pd_VecIdentityId_V1_t members;
-} pd_upgradecommitteemembership_reset_members_V1_t;
-
-#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_ABDICATE_MEMBERSHIP_V1 6
-typedef struct {
-} pd_upgradecommitteemembership_abdicate_membership_V1_t;
-
-#define PD_CALL_BRIDGE_CHANGE_CONTROLLER_V1 0
-typedef struct {
- pd_AccountId_V1_t controller;
-} pd_bridge_change_controller_V1_t;
-
-#define PD_CALL_BRIDGE_CHANGE_ADMIN_V1 1
-typedef struct {
- pd_AccountId_V1_t admin;
-} pd_bridge_change_admin_V1_t;
-
-#define PD_CALL_BRIDGE_CHANGE_TIMELOCK_V1 2
-typedef struct {
- pd_BlockNumber_t timelock;
-} pd_bridge_change_timelock_V1_t;
-
-#define PD_CALL_BRIDGE_FREEZE_V1 3
-typedef struct {
-} pd_bridge_freeze_V1_t;
-
-#define PD_CALL_BRIDGE_UNFREEZE_V1 4
-typedef struct {
-} pd_bridge_unfreeze_V1_t;
-
-#define PD_CALL_BRIDGE_CHANGE_BRIDGE_LIMIT_V1 5
-typedef struct {
- pd_Balance_t amount;
- pd_BlockNumber_t duration;
-} pd_bridge_change_bridge_limit_V1_t;
-
-#define PD_CALL_BRIDGE_CHANGE_BRIDGE_EXEMPTED_V1 6
-typedef struct {
- pd_VecTupleIdentityIdbool_V1_t exempted;
-} pd_bridge_change_bridge_exempted_V1_t;
-
-#define PD_CALL_STAKING_SET_VALIDATOR_COUNT_V1 9
-typedef struct {
- pd_Compactu32_t new_;
-} pd_staking_set_validator_count_V1_t;
-
-#define PD_CALL_STAKING_INCREASE_VALIDATOR_COUNT_V1 10
-typedef struct {
- pd_Compactu32_t additional;
-} pd_staking_increase_validator_count_V1_t;
-
-#define PD_CALL_STAKING_ADD_PERMISSIONED_VALIDATOR_V1 12
-typedef struct {
- pd_IdentityId_V1_t identity;
- pd_Optionu32_t intended_count;
-} pd_staking_add_permissioned_validator_V1_t;
-
-#define PD_CALL_STAKING_REMOVE_PERMISSIONED_VALIDATOR_V1 13
-typedef struct {
- pd_IdentityId_V1_t identity;
-} pd_staking_remove_permissioned_validator_V1_t;
-
-#define PD_CALL_STAKING_VALIDATE_CDD_EXPIRY_NOMINATORS_V1 14
-typedef struct {
- pd_VecAccountId_V1_t targets;
-} pd_staking_validate_cdd_expiry_nominators_V1_t;
-
-#define PD_CALL_STAKING_SET_COMMISSION_CAP_V1 15
-typedef struct {
- pd_Perbill_V1_t new_cap;
-} pd_staking_set_commission_cap_V1_t;
-
-#define PD_CALL_STAKING_SET_MIN_BOND_THRESHOLD_V1 16
-typedef struct {
- pd_BalanceOf_t new_value;
-} pd_staking_set_min_bond_threshold_V1_t;
-
-#define PD_CALL_STAKING_FORCE_NO_ERAS_V1 17
-typedef struct {
-} pd_staking_force_no_eras_V1_t;
-
-#define PD_CALL_STAKING_FORCE_NEW_ERA_V1 18
-typedef struct {
-} pd_staking_force_new_era_V1_t;
-
-#define PD_CALL_STAKING_SET_INVULNERABLES_V1 19
-typedef struct {
- pd_VecAccountId_V1_t invulnerables;
-} pd_staking_set_invulnerables_V1_t;
-
-#define PD_CALL_STAKING_FORCE_UNSTAKE_V1 20
-typedef struct {
- pd_AccountId_V1_t stash;
- pd_u32_t num_slashing_spans;
-} pd_staking_force_unstake_V1_t;
-
-#define PD_CALL_STAKING_FORCE_NEW_ERA_ALWAYS_V1 21
-typedef struct {
-} pd_staking_force_new_era_always_V1_t;
-
-#define PD_CALL_STAKING_CANCEL_DEFERRED_SLASH_V1 22
-typedef struct {
- pd_EraIndex_V1_t era;
- pd_Vecu32_t slash_indices;
-} pd_staking_cancel_deferred_slash_V1_t;
-
-#define PD_CALL_STAKING_PAYOUT_STAKERS_V1 23
-typedef struct {
- pd_AccountId_V1_t validator_stash;
- pd_EraIndex_V1_t era;
-} pd_staking_payout_stakers_V1_t;
-
-#define PD_CALL_STAKING_SET_HISTORY_DEPTH_V1 25
-typedef struct {
- pd_CompactEraIndex_V1_t new_history_depth;
- pd_Compactu32_t _era_items_deleted;
-} pd_staking_set_history_depth_V1_t;
-
-#define PD_CALL_STAKING_REAP_STASH_V1 26
-typedef struct {
- pd_AccountId_V1_t stash;
- pd_u32_t num_slashing_spans;
-} pd_staking_reap_stash_V1_t;
-
-#define PD_CALL_STAKING_PAYOUT_STAKERS_BY_SYSTEM_V1 29
-typedef struct {
- pd_AccountId_V1_t validator_stash;
- pd_EraIndex_V1_t era;
-} pd_staking_payout_stakers_by_system_V1_t;
-
-#define PD_CALL_STAKING_CHANGE_SLASHING_ALLOWED_FOR_V1 30
-typedef struct {
- pd_SlashingSwitch_V1_t slashing_switch;
-} pd_staking_change_slashing_allowed_for_V1_t;
-
-#define PD_CALL_STAKING_UPDATE_PERMISSIONED_VALIDATOR_INTENDED_COUNT_V1 31
-typedef struct {
- pd_IdentityId_V1_t identity;
- pd_u32_t new_intended_count;
-} pd_staking_update_permissioned_validator_intended_count_V1_t;
-
-#define PD_CALL_SESSION_SET_KEYS_V1 0
-typedef struct {
- pd_Keys_V1_t keys;
- pd_Bytes_t proof;
-} pd_session_set_keys_V1_t;
-
-#define PD_CALL_SESSION_PURGE_KEYS_V1 1
-typedef struct {
-} pd_session_purge_keys_V1_t;
-
-#define PD_CALL_GRANDPA_NOTE_STALLED_V1 2
-typedef struct {
- pd_BlockNumber_t delay;
- pd_BlockNumber_t best_finalized_block_number;
-} pd_grandpa_note_stalled_V1_t;
-
-#define PD_CALL_SUDO_SUDO_AS_V1 3
-typedef struct {
- pd_LookupSource_V1_t who;
- pd_Call_t call;
-} pd_sudo_sudo_as_V1_t;
-
-#define PD_CALL_ASSET_REGISTER_TICKER_V1 0
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_asset_register_ticker_V1_t;
-
-#define PD_CALL_ASSET_ACCEPT_TICKER_TRANSFER_V1 1
-typedef struct {
- pd_u64_t auth_id;
-} pd_asset_accept_ticker_transfer_V1_t;
-
-#define PD_CALL_ASSET_ACCEPT_ASSET_OWNERSHIP_TRANSFER_V1 2
-typedef struct {
- pd_u64_t auth_id;
-} pd_asset_accept_asset_ownership_transfer_V1_t;
-
-#define PD_CALL_ASSET_CREATE_ASSET_V1 3
-typedef struct {
- pd_AssetName_V1_t name;
- pd_Ticker_V1_t ticker;
- pd_bool_t divisible;
- pd_AssetType_V1_t asset_type;
- pd_VecAssetIdentifier_V1_t identifiers;
- pd_OptionFundingRoundName_V1_t funding_round;
- pd_bool_t disable_iu;
-} pd_asset_create_asset_V1_t;
-
-#define PD_CALL_ASSET_FREEZE_V1 4
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_asset_freeze_V1_t;
-
-#define PD_CALL_ASSET_UNFREEZE_V1 5
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_asset_unfreeze_V1_t;
-
-#define PD_CALL_ASSET_RENAME_ASSET_V1 6
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_AssetName_V1_t name;
-} pd_asset_rename_asset_V1_t;
-
-#define PD_CALL_ASSET_ISSUE_V1 7
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_BalanceNoSymbol_t amount;
-} pd_asset_issue_V1_t;
-
-#define PD_CALL_ASSET_REDEEM_V1 8
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_BalanceNoSymbol_t amount;
-} pd_asset_redeem_V1_t;
-
-#define PD_CALL_ASSET_MAKE_DIVISIBLE_V1 9
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_asset_make_divisible_V1_t;
-
-#define PD_CALL_ASSET_ADD_DOCUMENTS_V1 10
-typedef struct {
- pd_VecDocument_V1_t docs;
- pd_Ticker_V1_t ticker;
-} pd_asset_add_documents_V1_t;
-
-#define PD_CALL_ASSET_REMOVE_DOCUMENTS_V1 11
-typedef struct {
- pd_VecDocumentId_V1_t ids;
- pd_Ticker_V1_t ticker;
-} pd_asset_remove_documents_V1_t;
-
-#define PD_CALL_ASSET_SET_FUNDING_ROUND_V1 12
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_FundingRoundName_V1_t name;
-} pd_asset_set_funding_round_V1_t;
-
-#define PD_CALL_ASSET_UPDATE_IDENTIFIERS_V1 13
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_VecAssetIdentifier_V1_t identifiers;
-} pd_asset_update_identifiers_V1_t;
-
-#define PD_CALL_ASSET_CLAIM_CLASSIC_TICKER_V1 14
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_EcdsaSignature_V1_t ethereum_signature;
-} pd_asset_claim_classic_ticker_V1_t;
-
-#define PD_CALL_ASSET_RESERVE_CLASSIC_TICKER_V1 15
-typedef struct {
- pd_ClassicTickerImport_V1_t classic_ticker_import;
- pd_IdentityId_V1_t contract_did;
- pd_TickerRegistrationConfig_V1_t config;
-} pd_asset_reserve_classic_ticker_V1_t;
-
-#define PD_CALL_CAPITALDISTRIBUTION_DISTRIBUTE_V1 0
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_OptionPortfolioNumber_V1_t portfolio;
- pd_Ticker_V1_t currency;
- pd_Balance_t per_share;
- pd_Balance_t amount;
- pd_Moment_V1_t payment_at;
- pd_OptionMoment_V1_t expires_at;
-} pd_capitaldistribution_distribute_V1_t;
-
-#define PD_CALL_CAPITALDISTRIBUTION_CLAIM_V1 1
-typedef struct {
- pd_CAId_V1_t ca_id;
-} pd_capitaldistribution_claim_V1_t;
-
-#define PD_CALL_CAPITALDISTRIBUTION_PUSH_BENEFIT_V1 2
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_IdentityId_V1_t holder;
-} pd_capitaldistribution_push_benefit_V1_t;
-
-#define PD_CALL_CAPITALDISTRIBUTION_RECLAIM_V1 3
-typedef struct {
- pd_CAId_V1_t ca_id;
-} pd_capitaldistribution_reclaim_V1_t;
-
-#define PD_CALL_CAPITALDISTRIBUTION_REMOVE_DISTRIBUTION_V1 4
-typedef struct {
- pd_CAId_V1_t ca_id;
-} pd_capitaldistribution_remove_distribution_V1_t;
-
-#define PD_CALL_CHECKPOINT_CREATE_CHECKPOINT_V1 0
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_checkpoint_create_checkpoint_V1_t;
-
-#define PD_CALL_CHECKPOINT_SET_SCHEDULES_MAX_COMPLEXITY_V1 1
-typedef struct {
- pd_u64_t max_complexity;
-} pd_checkpoint_set_schedules_max_complexity_V1_t;
-
-#define PD_CALL_CHECKPOINT_CREATE_SCHEDULE_V1 2
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_ScheduleSpec_V1_t schedule;
-} pd_checkpoint_create_schedule_V1_t;
-
-#define PD_CALL_CHECKPOINT_REMOVE_SCHEDULE_V1 3
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_ScheduleId_V1_t id;
-} pd_checkpoint_remove_schedule_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_ADD_COMPLIANCE_REQUIREMENT_V1 0
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_VecCondition_V1_t sender_conditions;
- pd_VecCondition_V1_t receiver_conditions;
-} pd_compliancemanager_add_compliance_requirement_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_REMOVE_COMPLIANCE_REQUIREMENT_V1 1
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_u32_t id;
-} pd_compliancemanager_remove_compliance_requirement_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_REPLACE_ASSET_COMPLIANCE_V1 2
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_VecComplianceRequirement_V1_t asset_compliance;
-} pd_compliancemanager_replace_asset_compliance_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_RESET_ASSET_COMPLIANCE_V1 3
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_compliancemanager_reset_asset_compliance_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_PAUSE_ASSET_COMPLIANCE_V1 4
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_compliancemanager_pause_asset_compliance_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_RESUME_ASSET_COMPLIANCE_V1 5
-typedef struct {
- pd_Ticker_V1_t ticker;
-} pd_compliancemanager_resume_asset_compliance_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_ADD_DEFAULT_TRUSTED_CLAIM_ISSUER_V1 6
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_TrustedIssuer_V1_t issuer;
-} pd_compliancemanager_add_default_trusted_claim_issuer_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_REMOVE_DEFAULT_TRUSTED_CLAIM_ISSUER_V1 7
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_IdentityId_V1_t issuer;
-} pd_compliancemanager_remove_default_trusted_claim_issuer_V1_t;
-
-#define PD_CALL_COMPLIANCEMANAGER_CHANGE_COMPLIANCE_REQUIREMENT_V1 8
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_ComplianceRequirement_V1_t new_req;
-} pd_compliancemanager_change_compliance_requirement_V1_t;
-
-#define PD_CALL_CORPORATEACTION_SET_MAX_DETAILS_LENGTH_V1 0
-typedef struct {
- pd_u32_t length;
-} pd_corporateaction_set_max_details_length_V1_t;
-
-#define PD_CALL_CORPORATEACTION_SET_DEFAULT_TARGETS_V1 1
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_TargetIdentities_V1_t targets;
-} pd_corporateaction_set_default_targets_V1_t;
-
-#define PD_CALL_CORPORATEACTION_SET_DEFAULT_WITHHOLDING_TAX_V1 2
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_Tax_V1_t tax;
-} pd_corporateaction_set_default_withholding_tax_V1_t;
-
-#define PD_CALL_CORPORATEACTION_SET_DID_WITHHOLDING_TAX_V1 3
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_IdentityId_V1_t taxed_did;
- pd_OptionTax_V1_t tax;
-} pd_corporateaction_set_did_withholding_tax_V1_t;
-
-#define PD_CALL_CORPORATEACTION_INITIATE_CORPORATE_ACTION_V1 4
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_CAKind_V1_t kind;
- pd_Moment_V1_t decl_date;
- pd_OptionRecordDateSpec_V1_t record_date;
- pd_CADetails_V1_t details;
- pd_OptionTargetIdentities_V1_t targets;
- pd_OptionTax_V1_t default_withholding_tax;
- pd_OptionVecTupleIdentityIdTax_V1_t withholding_tax;
-} pd_corporateaction_initiate_corporate_action_V1_t;
-
-#define PD_CALL_CORPORATEACTION_LINK_CA_DOC_V1 5
-typedef struct {
- pd_CAId_V1_t id;
- pd_VecDocumentId_V1_t docs;
-} pd_corporateaction_link_ca_doc_V1_t;
-
-#define PD_CALL_CORPORATEACTION_REMOVE_CA_V1 6
-typedef struct {
- pd_CAId_V1_t ca_id;
-} pd_corporateaction_remove_ca_V1_t;
-
-#define PD_CALL_CORPORATEACTION_CHANGE_RECORD_DATE_V1 7
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_OptionRecordDateSpec_V1_t record_date;
-} pd_corporateaction_change_record_date_V1_t;
-
-#define PD_CALL_CORPORATEBALLOT_ATTACH_BALLOT_V1 0
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_BallotTimeRange_V1_t range;
- pd_BallotMeta_V1_t meta;
- pd_bool_t rcv;
-} pd_corporateballot_attach_ballot_V1_t;
-
-#define PD_CALL_CORPORATEBALLOT_VOTE_V1 1
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_VecBallotVote_V1_t votes;
-} pd_corporateballot_vote_V1_t;
-
-#define PD_CALL_CORPORATEBALLOT_CHANGE_END_V1 2
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_Moment_V1_t end;
-} pd_corporateballot_change_end_V1_t;
-
-#define PD_CALL_CORPORATEBALLOT_CHANGE_META_V1 3
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_BallotMeta_V1_t meta;
-} pd_corporateballot_change_meta_V1_t;
-
-#define PD_CALL_CORPORATEBALLOT_CHANGE_RCV_V1 4
-typedef struct {
- pd_CAId_V1_t ca_id;
- pd_bool_t rcv;
-} pd_corporateballot_change_rcv_V1_t;
-
-#define PD_CALL_CORPORATEBALLOT_REMOVE_BALLOT_V1 5
-typedef struct {
- pd_CAId_V1_t ca_id;
-} pd_corporateballot_remove_ballot_V1_t;
-
-#define PD_CALL_PIPS_SET_PRUNE_HISTORICAL_PIPS_V1 0
-typedef struct {
- pd_bool_t prune;
-} pd_pips_set_prune_historical_pips_V1_t;
-
-#define PD_CALL_PIPS_SET_MIN_PROPOSAL_DEPOSIT_V1 1
-typedef struct {
- pd_Balance_t deposit;
-} pd_pips_set_min_proposal_deposit_V1_t;
-
-#define PD_CALL_PIPS_SET_DEFAULT_ENACTMENT_PERIOD_V1 2
-typedef struct {
- pd_BlockNumber_t duration;
-} pd_pips_set_default_enactment_period_V1_t;
-
-#define PD_CALL_PIPS_SET_PENDING_PIP_EXPIRY_V1 3
-typedef struct {
- pd_MaybeBlock_V1_t expiry;
-} pd_pips_set_pending_pip_expiry_V1_t;
-
-#define PD_CALL_PIPS_SET_MAX_PIP_SKIP_COUNT_V1 4
-typedef struct {
- pd_SkippedCount_V1_t max;
-} pd_pips_set_max_pip_skip_count_V1_t;
-
-#define PD_CALL_PIPS_SET_ACTIVE_PIP_LIMIT_V1 5
-typedef struct {
- pd_u32_t limit;
-} pd_pips_set_active_pip_limit_V1_t;
-
-#define PD_CALL_PIPS_APPROVE_COMMITTEE_PROPOSAL_V1 8
-typedef struct {
- pd_PipId_V1_t id;
-} pd_pips_approve_committee_proposal_V1_t;
-
-#define PD_CALL_PIPS_REJECT_PROPOSAL_V1 9
-typedef struct {
- pd_PipId_V1_t id;
-} pd_pips_reject_proposal_V1_t;
-
-#define PD_CALL_PIPS_PRUNE_PROPOSAL_V1 10
-typedef struct {
- pd_PipId_V1_t id;
-} pd_pips_prune_proposal_V1_t;
-
-#define PD_CALL_PIPS_RESCHEDULE_EXECUTION_V1 11
-typedef struct {
- pd_PipId_V1_t id;
- pd_OptionBlockNumber_t until;
-} pd_pips_reschedule_execution_V1_t;
-
-#define PD_CALL_PIPS_CLEAR_SNAPSHOT_V1 12
-typedef struct {
-} pd_pips_clear_snapshot_V1_t;
-
-#define PD_CALL_PIPS_SNAPSHOT_V1 13
-typedef struct {
-} pd_pips_snapshot_V1_t;
-
-#define PD_CALL_PIPS_ENACT_SNAPSHOT_RESULTS_V1 14
-typedef struct {
- pd_VecTuplePipIdSnapshotResult_V1_t results;
-} pd_pips_enact_snapshot_results_V1_t;
-
-#define PD_CALL_PIPS_EXECUTE_SCHEDULED_PIP_V1 15
-typedef struct {
- pd_PipId_V1_t id;
-} pd_pips_execute_scheduled_pip_V1_t;
-
-#define PD_CALL_PIPS_EXPIRE_SCHEDULED_PIP_V1 16
-typedef struct {
- pd_IdentityId_V1_t did;
- pd_PipId_V1_t id;
-} pd_pips_expire_scheduled_pip_V1_t;
-
-#define PD_CALL_PORTFOLIO_CREATE_PORTFOLIO_V1 0
-typedef struct {
- pd_PortfolioName_V1_t name;
-} pd_portfolio_create_portfolio_V1_t;
-
-#define PD_CALL_PORTFOLIO_DELETE_PORTFOLIO_V1 1
-typedef struct {
- pd_PortfolioNumber_V1_t num;
-} pd_portfolio_delete_portfolio_V1_t;
-
-#define PD_CALL_PORTFOLIO_MOVE_PORTFOLIO_FUNDS_V1 2
-typedef struct {
- pd_PortfolioId_V1_t from;
- pd_PortfolioId_V1_t to;
- pd_VecMovePortfolioItem_V1_t items;
-} pd_portfolio_move_portfolio_funds_V1_t;
-
-#define PD_CALL_PORTFOLIO_RENAME_PORTFOLIO_V1 3
-typedef struct {
- pd_PortfolioNumber_V1_t num;
- pd_PortfolioName_V1_t to_name;
-} pd_portfolio_rename_portfolio_V1_t;
-
-#define PD_CALL_PROTOCOLFEE_CHANGE_COEFFICIENT_V1 0
-typedef struct {
- pd_PosRatio_V1_t coefficient;
-} pd_protocolfee_change_coefficient_V1_t;
-
-#define PD_CALL_SETTLEMENT_CREATE_VENUE_V1 0
-typedef struct {
- pd_VenueDetails_V1_t details;
- pd_VecAccountId_V1_t signers;
- pd_VenueType_V1_t typ;
-} pd_settlement_create_venue_V1_t;
-
-#define PD_CALL_SETTLEMENT_SET_VENUE_FILTERING_V1 11
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_bool_t enabled;
-} pd_settlement_set_venue_filtering_V1_t;
-
-#define PD_CALL_STATISTICS_ADD_TRANSFER_MANAGER_V1 0
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_TransferManager_V1_t new_transfer_manager;
-} pd_statistics_add_transfer_manager_V1_t;
-
-#define PD_CALL_STATISTICS_REMOVE_TRANSFER_MANAGER_V1 1
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_TransferManager_V1_t transfer_manager;
-} pd_statistics_remove_transfer_manager_V1_t;
-
-#define PD_CALL_STATISTICS_ADD_EXEMPTED_ENTITIES_V1 2
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_TransferManager_V1_t transfer_manager;
- pd_VecScopeId_V1_t exempted_entities;
-} pd_statistics_add_exempted_entities_V1_t;
-
-#define PD_CALL_STATISTICS_REMOVE_EXEMPTED_ENTITIES_V1 3
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_TransferManager_V1_t transfer_manager;
- pd_VecScopeId_V1_t entities;
-} pd_statistics_remove_exempted_entities_V1_t;
-
-#define PD_CALL_TREASURY_DISBURSEMENT_V1 0
-typedef struct {
- pd_VecBeneficiary_V1_t beneficiaries;
-} pd_treasury_disbursement_V1_t;
-
-#define PD_CALL_TREASURY_REIMBURSEMENT_V1 1
-typedef struct {
- pd_BalanceOf_t amount;
-} pd_treasury_reimbursement_V1_t;
-
-#define PD_CALL_UTILITY_RELAY_TX_V1 3
-typedef struct {
- pd_AccountId_V1_t target;
- pd_OffChainSignature_V1_t signature;
- pd_UniqueCall_V1_t call;
-} pd_utility_relay_tx_V1_t;
-
-#endif
-
-typedef union {
- pd_balances_transfer_V1_t balances_transfer_V1;
- pd_identity_remove_secondary_keys_V1_t identity_remove_secondary_keys_V1;
- pd_identity_accept_primary_key_V1_t identity_accept_primary_key_V1;
- pd_identity_join_identity_as_key_V1_t identity_join_identity_as_key_V1;
- pd_identity_leave_identity_as_key_V1_t identity_leave_identity_as_key_V1;
- pd_identity_add_claim_V1_t identity_add_claim_V1;
- pd_identity_revoke_claim_V1_t identity_revoke_claim_V1;
- pd_identity_set_permission_to_signer_V1_t identity_set_permission_to_signer_V1;
- pd_identity_freeze_secondary_keys_V1_t identity_freeze_secondary_keys_V1;
- pd_identity_unfreeze_secondary_keys_V1_t identity_unfreeze_secondary_keys_V1;
- pd_identity_add_authorization_V1_t identity_add_authorization_V1;
- pd_identity_remove_authorization_V1_t identity_remove_authorization_V1;
- pd_identity_add_secondary_keys_with_authorization_V1_t identity_add_secondary_keys_with_authorization_V1;
- pd_identity_add_investor_uniqueness_claim_V1_t identity_add_investor_uniqueness_claim_V1;
- pd_multisig_create_multisig_V1_t multisig_create_multisig_V1;
- pd_multisig_create_or_approve_proposal_as_identity_V1_t multisig_create_or_approve_proposal_as_identity_V1;
- pd_multisig_create_or_approve_proposal_as_key_V1_t multisig_create_or_approve_proposal_as_key_V1;
- pd_multisig_create_proposal_as_identity_V1_t multisig_create_proposal_as_identity_V1;
- pd_multisig_create_proposal_as_key_V1_t multisig_create_proposal_as_key_V1;
- pd_multisig_approve_as_identity_V1_t multisig_approve_as_identity_V1;
- pd_multisig_approve_as_key_V1_t multisig_approve_as_key_V1;
- pd_multisig_reject_as_identity_V1_t multisig_reject_as_identity_V1;
- pd_multisig_reject_as_key_V1_t multisig_reject_as_key_V1;
- pd_multisig_accept_multisig_signer_as_identity_V1_t multisig_accept_multisig_signer_as_identity_V1;
- pd_multisig_accept_multisig_signer_as_key_V1_t multisig_accept_multisig_signer_as_key_V1;
- pd_multisig_add_multisig_signer_V1_t multisig_add_multisig_signer_V1;
- pd_multisig_remove_multisig_signer_V1_t multisig_remove_multisig_signer_V1;
- pd_multisig_add_multisig_signers_via_creator_V1_t multisig_add_multisig_signers_via_creator_V1;
- pd_multisig_remove_multisig_signers_via_creator_V1_t multisig_remove_multisig_signers_via_creator_V1;
- pd_multisig_change_sigs_required_V1_t multisig_change_sigs_required_V1;
- pd_multisig_make_multisig_signer_V1_t multisig_make_multisig_signer_V1;
- pd_multisig_make_multisig_primary_V1_t multisig_make_multisig_primary_V1;
- pd_multisig_execute_scheduled_proposal_V1_t multisig_execute_scheduled_proposal_V1;
- pd_staking_bond_V1_t staking_bond_V1;
- pd_staking_bond_extra_V1_t staking_bond_extra_V1;
- pd_staking_unbond_V1_t staking_unbond_V1;
- pd_staking_withdraw_unbonded_V1_t staking_withdraw_unbonded_V1;
- pd_staking_validate_V1_t staking_validate_V1;
- pd_staking_nominate_V1_t staking_nominate_V1;
- pd_staking_chill_V1_t staking_chill_V1;
- pd_staking_set_payee_V1_t staking_set_payee_V1;
- pd_staking_set_controller_V1_t staking_set_controller_V1;
- pd_staking_rebond_V1_t staking_rebond_V1;
- pd_pips_propose_V1_t pips_propose_V1;
- pd_pips_vote_V1_t pips_vote_V1;
- pd_utility_batch_V1_t utility_batch_V1;
- pd_utility_batch_atomic_V1_t utility_batch_atomic_V1;
- pd_utility_batch_optimistic_V1_t utility_batch_optimistic_V1;
-#ifdef SUBSTRATE_PARSER_FULL
- pd_system_fill_block_V1_t system_fill_block_V1;
- pd_system_remark_V1_t system_remark_V1;
- pd_system_set_heap_pages_V1_t system_set_heap_pages_V1;
- pd_system_set_code_V1_t system_set_code_V1;
- pd_system_set_code_without_checks_V1_t system_set_code_without_checks_V1;
- pd_timestamp_set_V1_t timestamp_set_V1;
- pd_indices_claim_V1_t indices_claim_V1;
- pd_indices_transfer_V1_t indices_transfer_V1;
- pd_indices_free_V1_t indices_free_V1;
- pd_indices_force_transfer_V1_t indices_force_transfer_V1;
- pd_indices_freeze_V1_t indices_freeze_V1;
- pd_balances_transfer_with_memo_V1_t balances_transfer_with_memo_V1;
- pd_balances_deposit_block_reward_reserve_balance_V1_t balances_deposit_block_reward_reserve_balance_V1;
- pd_balances_set_balance_V1_t balances_set_balance_V1;
- pd_balances_force_transfer_V1_t balances_force_transfer_V1;
- pd_balances_burn_account_balance_V1_t balances_burn_account_balance_V1;
- pd_identity_invalidate_cdd_claims_V1_t identity_invalidate_cdd_claims_V1;
- pd_identity_change_cdd_requirement_for_mk_rotation_V1_t identity_change_cdd_requirement_for_mk_rotation_V1;
- pd_identity_gc_add_cdd_claim_V1_t identity_gc_add_cdd_claim_V1;
- pd_identity_gc_revoke_cdd_claim_V1_t identity_gc_revoke_cdd_claim_V1;
- pd_cddserviceproviders_set_active_members_limit_V1_t cddserviceproviders_set_active_members_limit_V1;
- pd_cddserviceproviders_disable_member_V1_t cddserviceproviders_disable_member_V1;
- pd_cddserviceproviders_add_member_V1_t cddserviceproviders_add_member_V1;
- pd_cddserviceproviders_remove_member_V1_t cddserviceproviders_remove_member_V1;
- pd_cddserviceproviders_swap_member_V1_t cddserviceproviders_swap_member_V1;
- pd_cddserviceproviders_reset_members_V1_t cddserviceproviders_reset_members_V1;
- pd_cddserviceproviders_abdicate_membership_V1_t cddserviceproviders_abdicate_membership_V1;
- pd_polymeshcommittee_set_vote_threshold_V1_t polymeshcommittee_set_vote_threshold_V1;
- pd_polymeshcommittee_set_release_coordinator_V1_t polymeshcommittee_set_release_coordinator_V1;
- pd_polymeshcommittee_set_expires_after_V1_t polymeshcommittee_set_expires_after_V1;
- pd_polymeshcommittee_vote_or_propose_V1_t polymeshcommittee_vote_or_propose_V1;
- pd_polymeshcommittee_vote_V1_t polymeshcommittee_vote_V1;
- pd_committeemembership_set_active_members_limit_V1_t committeemembership_set_active_members_limit_V1;
- pd_committeemembership_disable_member_V1_t committeemembership_disable_member_V1;
- pd_committeemembership_add_member_V1_t committeemembership_add_member_V1;
- pd_committeemembership_remove_member_V1_t committeemembership_remove_member_V1;
- pd_committeemembership_swap_member_V1_t committeemembership_swap_member_V1;
- pd_committeemembership_reset_members_V1_t committeemembership_reset_members_V1;
- pd_committeemembership_abdicate_membership_V1_t committeemembership_abdicate_membership_V1;
- pd_technicalcommittee_set_vote_threshold_V1_t technicalcommittee_set_vote_threshold_V1;
- pd_technicalcommittee_set_release_coordinator_V1_t technicalcommittee_set_release_coordinator_V1;
- pd_technicalcommittee_set_expires_after_V1_t technicalcommittee_set_expires_after_V1;
- pd_technicalcommittee_vote_or_propose_V1_t technicalcommittee_vote_or_propose_V1;
- pd_technicalcommittee_vote_V1_t technicalcommittee_vote_V1;
- pd_technicalcommitteemembership_set_active_members_limit_V1_t technicalcommitteemembership_set_active_members_limit_V1;
- pd_technicalcommitteemembership_disable_member_V1_t technicalcommitteemembership_disable_member_V1;
- pd_technicalcommitteemembership_add_member_V1_t technicalcommitteemembership_add_member_V1;
- pd_technicalcommitteemembership_remove_member_V1_t technicalcommitteemembership_remove_member_V1;
- pd_technicalcommitteemembership_swap_member_V1_t technicalcommitteemembership_swap_member_V1;
- pd_technicalcommitteemembership_reset_members_V1_t technicalcommitteemembership_reset_members_V1;
- pd_technicalcommitteemembership_abdicate_membership_V1_t technicalcommitteemembership_abdicate_membership_V1;
- pd_upgradecommittee_set_vote_threshold_V1_t upgradecommittee_set_vote_threshold_V1;
- pd_upgradecommittee_set_release_coordinator_V1_t upgradecommittee_set_release_coordinator_V1;
- pd_upgradecommittee_set_expires_after_V1_t upgradecommittee_set_expires_after_V1;
- pd_upgradecommittee_vote_or_propose_V1_t upgradecommittee_vote_or_propose_V1;
- pd_upgradecommittee_vote_V1_t upgradecommittee_vote_V1;
- pd_upgradecommitteemembership_set_active_members_limit_V1_t upgradecommitteemembership_set_active_members_limit_V1;
- pd_upgradecommitteemembership_disable_member_V1_t upgradecommitteemembership_disable_member_V1;
- pd_upgradecommitteemembership_add_member_V1_t upgradecommitteemembership_add_member_V1;
- pd_upgradecommitteemembership_remove_member_V1_t upgradecommitteemembership_remove_member_V1;
- pd_upgradecommitteemembership_swap_member_V1_t upgradecommitteemembership_swap_member_V1;
- pd_upgradecommitteemembership_reset_members_V1_t upgradecommitteemembership_reset_members_V1;
- pd_upgradecommitteemembership_abdicate_membership_V1_t upgradecommitteemembership_abdicate_membership_V1;
- pd_bridge_change_controller_V1_t bridge_change_controller_V1;
- pd_bridge_change_admin_V1_t bridge_change_admin_V1;
- pd_bridge_change_timelock_V1_t bridge_change_timelock_V1;
- pd_bridge_freeze_V1_t bridge_freeze_V1;
- pd_bridge_unfreeze_V1_t bridge_unfreeze_V1;
- pd_bridge_change_bridge_limit_V1_t bridge_change_bridge_limit_V1;
- pd_bridge_change_bridge_exempted_V1_t bridge_change_bridge_exempted_V1;
- pd_staking_set_validator_count_V1_t staking_set_validator_count_V1;
- pd_staking_increase_validator_count_V1_t staking_increase_validator_count_V1;
- pd_staking_add_permissioned_validator_V1_t staking_add_permissioned_validator_V1;
- pd_staking_remove_permissioned_validator_V1_t staking_remove_permissioned_validator_V1;
- pd_staking_validate_cdd_expiry_nominators_V1_t staking_validate_cdd_expiry_nominators_V1;
- pd_staking_set_commission_cap_V1_t staking_set_commission_cap_V1;
- pd_staking_set_min_bond_threshold_V1_t staking_set_min_bond_threshold_V1;
- pd_staking_force_no_eras_V1_t staking_force_no_eras_V1;
- pd_staking_force_new_era_V1_t staking_force_new_era_V1;
- pd_staking_set_invulnerables_V1_t staking_set_invulnerables_V1;
- pd_staking_force_unstake_V1_t staking_force_unstake_V1;
- pd_staking_force_new_era_always_V1_t staking_force_new_era_always_V1;
- pd_staking_cancel_deferred_slash_V1_t staking_cancel_deferred_slash_V1;
- pd_staking_payout_stakers_V1_t staking_payout_stakers_V1;
- pd_staking_set_history_depth_V1_t staking_set_history_depth_V1;
- pd_staking_reap_stash_V1_t staking_reap_stash_V1;
- pd_staking_payout_stakers_by_system_V1_t staking_payout_stakers_by_system_V1;
- pd_staking_change_slashing_allowed_for_V1_t staking_change_slashing_allowed_for_V1;
- pd_staking_update_permissioned_validator_intended_count_V1_t staking_update_permissioned_validator_intended_count_V1;
- pd_session_set_keys_V1_t session_set_keys_V1;
- pd_session_purge_keys_V1_t session_purge_keys_V1;
- pd_grandpa_note_stalled_V1_t grandpa_note_stalled_V1;
- pd_sudo_sudo_as_V1_t sudo_sudo_as_V1;
- pd_asset_register_ticker_V1_t asset_register_ticker_V1;
- pd_asset_accept_ticker_transfer_V1_t asset_accept_ticker_transfer_V1;
- pd_asset_accept_asset_ownership_transfer_V1_t asset_accept_asset_ownership_transfer_V1;
- pd_asset_create_asset_V1_t asset_create_asset_V1;
- pd_asset_freeze_V1_t asset_freeze_V1;
- pd_asset_unfreeze_V1_t asset_unfreeze_V1;
- pd_asset_rename_asset_V1_t asset_rename_asset_V1;
- pd_asset_issue_V1_t asset_issue_V1;
- pd_asset_redeem_V1_t asset_redeem_V1;
- pd_asset_make_divisible_V1_t asset_make_divisible_V1;
- pd_asset_add_documents_V1_t asset_add_documents_V1;
- pd_asset_remove_documents_V1_t asset_remove_documents_V1;
- pd_asset_set_funding_round_V1_t asset_set_funding_round_V1;
- pd_asset_update_identifiers_V1_t asset_update_identifiers_V1;
- pd_asset_claim_classic_ticker_V1_t asset_claim_classic_ticker_V1;
- pd_asset_reserve_classic_ticker_V1_t asset_reserve_classic_ticker_V1;
- pd_capitaldistribution_distribute_V1_t capitaldistribution_distribute_V1;
- pd_capitaldistribution_claim_V1_t capitaldistribution_claim_V1;
- pd_capitaldistribution_push_benefit_V1_t capitaldistribution_push_benefit_V1;
- pd_capitaldistribution_reclaim_V1_t capitaldistribution_reclaim_V1;
- pd_capitaldistribution_remove_distribution_V1_t capitaldistribution_remove_distribution_V1;
- pd_checkpoint_create_checkpoint_V1_t checkpoint_create_checkpoint_V1;
- pd_checkpoint_set_schedules_max_complexity_V1_t checkpoint_set_schedules_max_complexity_V1;
- pd_checkpoint_create_schedule_V1_t checkpoint_create_schedule_V1;
- pd_checkpoint_remove_schedule_V1_t checkpoint_remove_schedule_V1;
- pd_compliancemanager_add_compliance_requirement_V1_t compliancemanager_add_compliance_requirement_V1;
- pd_compliancemanager_remove_compliance_requirement_V1_t compliancemanager_remove_compliance_requirement_V1;
- pd_compliancemanager_replace_asset_compliance_V1_t compliancemanager_replace_asset_compliance_V1;
- pd_compliancemanager_reset_asset_compliance_V1_t compliancemanager_reset_asset_compliance_V1;
- pd_compliancemanager_pause_asset_compliance_V1_t compliancemanager_pause_asset_compliance_V1;
- pd_compliancemanager_resume_asset_compliance_V1_t compliancemanager_resume_asset_compliance_V1;
- pd_compliancemanager_add_default_trusted_claim_issuer_V1_t compliancemanager_add_default_trusted_claim_issuer_V1;
- pd_compliancemanager_remove_default_trusted_claim_issuer_V1_t compliancemanager_remove_default_trusted_claim_issuer_V1;
- pd_compliancemanager_change_compliance_requirement_V1_t compliancemanager_change_compliance_requirement_V1;
- pd_corporateaction_set_max_details_length_V1_t corporateaction_set_max_details_length_V1;
- pd_corporateaction_set_default_targets_V1_t corporateaction_set_default_targets_V1;
- pd_corporateaction_set_default_withholding_tax_V1_t corporateaction_set_default_withholding_tax_V1;
- pd_corporateaction_set_did_withholding_tax_V1_t corporateaction_set_did_withholding_tax_V1;
- pd_corporateaction_initiate_corporate_action_V1_t corporateaction_initiate_corporate_action_V1;
- pd_corporateaction_link_ca_doc_V1_t corporateaction_link_ca_doc_V1;
- pd_corporateaction_remove_ca_V1_t corporateaction_remove_ca_V1;
- pd_corporateaction_change_record_date_V1_t corporateaction_change_record_date_V1;
- pd_corporateballot_attach_ballot_V1_t corporateballot_attach_ballot_V1;
- pd_corporateballot_vote_V1_t corporateballot_vote_V1;
- pd_corporateballot_change_end_V1_t corporateballot_change_end_V1;
- pd_corporateballot_change_meta_V1_t corporateballot_change_meta_V1;
- pd_corporateballot_change_rcv_V1_t corporateballot_change_rcv_V1;
- pd_corporateballot_remove_ballot_V1_t corporateballot_remove_ballot_V1;
- pd_pips_set_prune_historical_pips_V1_t pips_set_prune_historical_pips_V1;
- pd_pips_set_min_proposal_deposit_V1_t pips_set_min_proposal_deposit_V1;
- pd_pips_set_default_enactment_period_V1_t pips_set_default_enactment_period_V1;
- pd_pips_set_pending_pip_expiry_V1_t pips_set_pending_pip_expiry_V1;
- pd_pips_set_max_pip_skip_count_V1_t pips_set_max_pip_skip_count_V1;
- pd_pips_set_active_pip_limit_V1_t pips_set_active_pip_limit_V1;
- pd_pips_approve_committee_proposal_V1_t pips_approve_committee_proposal_V1;
- pd_pips_reject_proposal_V1_t pips_reject_proposal_V1;
- pd_pips_prune_proposal_V1_t pips_prune_proposal_V1;
- pd_pips_reschedule_execution_V1_t pips_reschedule_execution_V1;
- pd_pips_clear_snapshot_V1_t pips_clear_snapshot_V1;
- pd_pips_snapshot_V1_t pips_snapshot_V1;
- pd_pips_enact_snapshot_results_V1_t pips_enact_snapshot_results_V1;
- pd_pips_execute_scheduled_pip_V1_t pips_execute_scheduled_pip_V1;
- pd_pips_expire_scheduled_pip_V1_t pips_expire_scheduled_pip_V1;
- pd_portfolio_create_portfolio_V1_t portfolio_create_portfolio_V1;
- pd_portfolio_delete_portfolio_V1_t portfolio_delete_portfolio_V1;
- pd_portfolio_move_portfolio_funds_V1_t portfolio_move_portfolio_funds_V1;
- pd_portfolio_rename_portfolio_V1_t portfolio_rename_portfolio_V1;
- pd_protocolfee_change_coefficient_V1_t protocolfee_change_coefficient_V1;
- pd_settlement_create_venue_V1_t settlement_create_venue_V1;
- pd_settlement_set_venue_filtering_V1_t settlement_set_venue_filtering_V1;
- pd_statistics_add_transfer_manager_V1_t statistics_add_transfer_manager_V1;
- pd_statistics_remove_transfer_manager_V1_t statistics_remove_transfer_manager_V1;
- pd_statistics_add_exempted_entities_V1_t statistics_add_exempted_entities_V1;
- pd_statistics_remove_exempted_entities_V1_t statistics_remove_exempted_entities_V1;
- pd_treasury_disbursement_V1_t treasury_disbursement_V1;
- pd_treasury_reimbursement_V1_t treasury_reimbursement_V1;
- pd_utility_relay_tx_V1_t utility_relay_tx_V1;
-#endif
-} pd_MethodNested_V1_t;
-
-typedef union {
- pd_MethodBasic_V1_t basic;
- pd_MethodNested_V1_t nested;
-} pd_Method_V1_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#pragma clang diagnostic pop
diff --git a/app/src/substrate/substrate_methods_V3.h b/app/src/substrate/substrate_methods_V3.h
new file mode 100644
index 0000000..82ca040
--- /dev/null
+++ b/app/src/substrate/substrate_methods_V3.h
@@ -0,0 +1,2024 @@
+/*******************************************************************************
+ * (c) 2019 - 2022 Zondax GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ********************************************************************************/
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wextern-c-compat"
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "substrate_types.h"
+#include "substrate_types_V3.h"
+#include
+#include
+
+#define PD_CALL_SYSTEM_V3 0
+#define PD_CALL_TIMESTAMP_V3 2
+#define PD_CALL_INDICES_V3 3
+#define PD_CALL_BALANCES_V3 5
+#define PD_CALL_IDENTITY_V3 7
+#define PD_CALL_CDDSERVICEPROVIDERS_V3 8
+#define PD_CALL_POLYMESHCOMMITTEE_V3 9
+#define PD_CALL_COMMITTEEMEMBERSHIP_V3 10
+#define PD_CALL_TECHNICALCOMMITTEE_V3 11
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_V3 12
+#define PD_CALL_UPGRADECOMMITTEE_V3 13
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_V3 14
+#define PD_CALL_MULTISIG_V3 15
+#define PD_CALL_BRIDGE_V3 16
+#define PD_CALL_STAKING_V3 17
+#define PD_CALL_SESSION_V3 19
+#define PD_CALL_GRANDPA_V3 21
+#define PD_CALL_SUDO_V3 25
+#define PD_CALL_ASSET_V3 26
+#define PD_CALL_CAPITALDISTRIBUTION_V3 27
+#define PD_CALL_CHECKPOINT_V3 28
+#define PD_CALL_COMPLIANCEMANAGER_V3 29
+#define PD_CALL_CORPORATEACTION_V3 30
+#define PD_CALL_CORPORATEBALLOT_V3 31
+#define PD_CALL_PIPS_V3 33
+#define PD_CALL_PORTFOLIO_V3 34
+#define PD_CALL_PROTOCOLFEE_V3 35
+#define PD_CALL_SETTLEMENT_V3 37
+#define PD_CALL_STO_V3 39
+#define PD_CALL_TREASURY_V3 40
+#define PD_CALL_UTILITY_V3 41
+#define PD_CALL_EXTERNALAGENTS_V3 43
+#define PD_CALL_RELAYER_V3 44
+#define PD_CALL_REWARDS_V3 45
+#define PD_CALL_CONTRACTS_V3 46
+#define PD_CALL_POLYMESHCONTRACTS_V3 47
+#define PD_CALL_PREIMAGE_V3 48
+
+#ifdef SUBSTRATE_PARSER_FULL
+
+#define PD_CALL_IDENTITY_PLACEHOLDER_LEGACY_SET_PERMISSION_TO_SIGNER_V3 10
+typedef struct {
+} pd_identity_placeholder_legacy_set_permission_to_signer_V3_t;
+
+#define PD_CALL_IDENTITY_REVOKE_CLAIM_BY_INDEX_V3 20
+typedef struct {
+ pd_IdentityId_V3_t target;
+ pd_ClaimType_V3_t claim_type;
+ pd_OptionScope_V3_t scope;
+} pd_identity_revoke_claim_by_index_V3_t;
+
+#define PD_CALL_IDENTITY_ROTATE_PRIMARY_KEY_TO_SECONDARY_V3 21
+typedef struct {
+ pd_u64_t auth_id;
+ pd_Optionu64_t optional_cdd_auth_id;
+} pd_identity_rotate_primary_key_to_secondary_V3_t;
+
+#define PD_CALL_IDENTITY_SET_SECONDARY_KEY_PERMISSIONS_V3 23
+typedef struct {
+ pd_AccountId_V3_t key;
+ pd_Permissions_V3_t perms;
+} pd_identity_set_secondary_key_permissions_V3_t;
+
+#define PD_CALL_MULTISIG_MAKE_MULTISIG_SECONDARY_V3 16
+typedef struct {
+ pd_AccountId_V3_t multisig;
+} pd_multisig_make_multisig_secondary_V3_t;
+
+#define PD_CALL_BRIDGE_FORCE_HANDLE_BRIDGE_TX_V3 7
+typedef struct {
+ pd_BridgeTxAccountId_V3_t bridge_tx;
+} pd_bridge_force_handle_bridge_tx_V3_t;
+
+#define PD_CALL_BRIDGE_BATCH_PROPOSE_BRIDGE_TX_V3 8
+typedef struct {
+ pd_VecBridgeTxAccountId_V3_t bridge_txs;
+} pd_bridge_batch_propose_bridge_tx_V3_t;
+
+#define PD_CALL_BRIDGE_PROPOSE_BRIDGE_TX_V3 9
+typedef struct {
+ pd_BridgeTxAccountId_V3_t bridge_tx;
+} pd_bridge_propose_bridge_tx_V3_t;
+
+#define PD_CALL_BRIDGE_HANDLE_BRIDGE_TX_V3 10
+typedef struct {
+ pd_BridgeTxAccountId_V3_t bridge_tx;
+} pd_bridge_handle_bridge_tx_V3_t;
+
+#define PD_CALL_BRIDGE_FREEZE_TXS_V3 11
+typedef struct {
+ pd_VecBridgeTxAccountId_V3_t bridge_txs;
+} pd_bridge_freeze_txs_V3_t;
+
+#define PD_CALL_BRIDGE_UNFREEZE_TXS_V3 12
+typedef struct {
+ pd_VecBridgeTxAccountId_V3_t bridge_txs;
+} pd_bridge_unfreeze_txs_V3_t;
+
+#define PD_CALL_BRIDGE_HANDLE_SCHEDULED_BRIDGE_TX_V3 13
+typedef struct {
+ pd_BridgeTxAccountId_V3_t bridge_tx;
+} pd_bridge_handle_scheduled_bridge_tx_V3_t;
+
+#define PD_CALL_BRIDGE_ADD_FREEZE_ADMIN_V3 14
+typedef struct {
+ pd_AccountId_V3_t freeze_admin;
+} pd_bridge_add_freeze_admin_V3_t;
+
+#define PD_CALL_BRIDGE_REMOVE_FREEZE_ADMIN_V3 15
+typedef struct {
+ pd_AccountId_V3_t freeze_admin;
+} pd_bridge_remove_freeze_admin_V3_t;
+
+#define PD_CALL_BRIDGE_REMOVE_TXS_V3 16
+typedef struct {
+ pd_VecBridgeTxAccountId_V3_t bridge_txs;
+} pd_bridge_remove_txs_V3_t;
+
+#define PD_CALL_ASSET_CONTROLLER_TRANSFER_V3 16
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_BalanceNoSymbol_t amount;
+ pd_PortfolioId_V3_t from_portfolio;
+} pd_asset_controller_transfer_V3_t;
+
+#define PD_CALL_ASSET_REGISTER_CUSTOM_ASSET_TYPE_V3 17
+typedef struct {
+ pd_Vecu8_t ty;
+} pd_asset_register_custom_asset_type_V3_t;
+
+#define PD_CALL_ASSET_CREATE_ASSET_WITH_CUSTOM_TYPE_V3 18
+typedef struct {
+ pd_AssetName_V3_t name;
+ pd_Ticker_V3_t ticker;
+ pd_bool_t divisible;
+ pd_Vecu8_t custom_asset_type;
+ pd_VecAssetIdentifier_V3_t identifiers;
+ pd_OptionFundingRoundName_V3_t funding_round;
+ pd_bool_t disable_iu;
+} pd_asset_create_asset_with_custom_type_V3_t;
+
+#define PD_CALL_ASSET_SET_ASSET_METADATA_V3 19
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_AssetMetadataKey_V3_t key;
+ pd_AssetMetadataValue_V3_t value;
+ pd_OptionAssetMetadataValueDetailMoment_V3_t detail;
+} pd_asset_set_asset_metadata_V3_t;
+
+#define PD_CALL_ASSET_SET_ASSET_METADATA_DETAILS_V3 20
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_AssetMetadataKey_V3_t key;
+ pd_AssetMetadataValueDetailMoment_V3_t detail;
+} pd_asset_set_asset_metadata_details_V3_t;
+
+#define PD_CALL_ASSET_REGISTER_AND_SET_LOCAL_ASSET_METADATA_V3 21
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_AssetMetadataName_V3_t name;
+ pd_AssetMetadataSpec_V3_t spec;
+ pd_AssetMetadataValue_V3_t value;
+ pd_OptionAssetMetadataValueDetailMoment_V3_t detail;
+} pd_asset_register_and_set_local_asset_metadata_V3_t;
+
+#define PD_CALL_ASSET_REGISTER_ASSET_METADATA_LOCAL_TYPE_V3 22
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_AssetMetadataName_V3_t name;
+ pd_AssetMetadataSpec_V3_t spec;
+} pd_asset_register_asset_metadata_local_type_V3_t;
+
+#define PD_CALL_ASSET_REGISTER_ASSET_METADATA_GLOBAL_TYPE_V3 23
+typedef struct {
+ pd_AssetMetadataName_V3_t name;
+ pd_AssetMetadataSpec_V3_t spec;
+} pd_asset_register_asset_metadata_global_type_V3_t;
+
+#define PD_CALL_PORTFOLIO_QUIT_PORTFOLIO_CUSTODY_V3 4
+typedef struct {
+ pd_PortfolioId_V3_t pid;
+} pd_portfolio_quit_portfolio_custody_V3_t;
+
+#define PD_CALL_PORTFOLIO_ACCEPT_PORTFOLIO_CUSTODY_V3 5
+typedef struct {
+ pd_u64_t auth_id;
+} pd_portfolio_accept_portfolio_custody_V3_t;
+
+#define PD_CALL_SETTLEMENT_UPDATE_VENUE_DETAILS_V3 1
+typedef struct {
+ pd_VenueId_V3_t id;
+ pd_VenueDetails_V3_t details;
+} pd_settlement_update_venue_details_V3_t;
+
+#define PD_CALL_SETTLEMENT_UPDATE_VENUE_TYPE_V3 2
+typedef struct {
+ pd_VenueId_V3_t id;
+ pd_VenueType_V3_t typ;
+} pd_settlement_update_venue_type_V3_t;
+
+#define PD_CALL_SETTLEMENT_CHANGE_RECEIPT_VALIDITY_V3 14
+typedef struct {
+ pd_u64_t receipt_uid;
+ pd_bool_t validity;
+} pd_settlement_change_receipt_validity_V3_t;
+
+#define PD_CALL_SETTLEMENT_RESCHEDULE_INSTRUCTION_V3 16
+typedef struct {
+ pd_InstructionId_V3_t id;
+} pd_settlement_reschedule_instruction_V3_t;
+
+#define PD_CALL_STO_CREATE_FUNDRAISER_V3 0
+typedef struct {
+ pd_PortfolioId_V3_t offering_portfolio;
+ pd_Ticker_V3_t offering_asset;
+ pd_PortfolioId_V3_t raising_portfolio;
+ pd_Ticker_V3_t raising_asset;
+ pd_VecPriceTier_V3_t tiers;
+ pd_VenueId_V3_t venue_id;
+ pd_OptionMoment_V3_t start;
+ pd_OptionMoment_V3_t end;
+ pd_BalanceNoSymbol_t minimum_investment;
+ pd_FundraiserName_V3_t fundraiser_name;
+} pd_sto_create_fundraiser_V3_t;
+
+#define PD_CALL_STO_INVEST_V3 1
+typedef struct {
+ pd_PortfolioId_V3_t investment_portfolio;
+ pd_PortfolioId_V3_t funding_portfolio;
+ pd_Ticker_V3_t offering_asset;
+ pd_FundraiserId_V3_t id;
+ pd_BalanceNoSymbol_t purchase_amount;
+ pd_OptionBalance_t max_price;
+ pd_OptionReceiptDetails_V3_t receipt;
+} pd_sto_invest_V3_t;
+
+#define PD_CALL_STO_FREEZE_FUNDRAISER_V3 2
+typedef struct {
+ pd_Ticker_V3_t offering_asset;
+ pd_FundraiserId_V3_t id;
+} pd_sto_freeze_fundraiser_V3_t;
+
+#define PD_CALL_STO_UNFREEZE_FUNDRAISER_V3 3
+typedef struct {
+ pd_Ticker_V3_t offering_asset;
+ pd_FundraiserId_V3_t id;
+} pd_sto_unfreeze_fundraiser_V3_t;
+
+#define PD_CALL_STO_MODIFY_FUNDRAISER_WINDOW_V3 4
+typedef struct {
+ pd_Ticker_V3_t offering_asset;
+ pd_FundraiserId_V3_t id;
+ pd_Moment_V3_t start;
+ pd_OptionMoment_V3_t end;
+} pd_sto_modify_fundraiser_window_V3_t;
+
+#define PD_CALL_STO_STOP_V3 5
+typedef struct {
+ pd_Ticker_V3_t offering_asset;
+ pd_FundraiserId_V3_t id;
+} pd_sto_stop_V3_t;
+
+#define PD_CALL_EXTERNALAGENTS_REMOVE_AGENT_V3 2
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_IdentityId_V3_t agent;
+} pd_externalagents_remove_agent_V3_t;
+
+#define PD_CALL_EXTERNALAGENTS_ABDICATE_V3 3
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_externalagents_abdicate_V3_t;
+
+#define PD_CALL_EXTERNALAGENTS_ACCEPT_BECOME_AGENT_V3 5
+typedef struct {
+ pd_u64_t auth_id;
+} pd_externalagents_accept_become_agent_V3_t;
+
+#define PD_CALL_EXTERNALAGENTS_CREATE_GROUP_AND_ADD_AUTH_V3 6
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_ExtrinsicPermissions_V3_t perms;
+ pd_IdentityId_V3_t target;
+ pd_OptionMoment_V3_t expiry;
+} pd_externalagents_create_group_and_add_auth_V3_t;
+
+#define PD_CALL_EXTERNALAGENTS_CREATE_AND_CHANGE_CUSTOM_GROUP_V3 7
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_ExtrinsicPermissions_V3_t perms;
+ pd_IdentityId_V3_t agent;
+} pd_externalagents_create_and_change_custom_group_V3_t;
+
+#define PD_CALL_RELAYER_SET_PAYING_KEY_V3 0
+typedef struct {
+ pd_AccountId_V3_t user_key;
+ pd_Balance_t polyx_limit;
+} pd_relayer_set_paying_key_V3_t;
+
+#define PD_CALL_RELAYER_ACCEPT_PAYING_KEY_V3 1
+typedef struct {
+ pd_u64_t auth_id;
+} pd_relayer_accept_paying_key_V3_t;
+
+#define PD_CALL_RELAYER_REMOVE_PAYING_KEY_V3 2
+typedef struct {
+ pd_AccountId_V3_t user_key;
+ pd_AccountId_V3_t paying_key;
+} pd_relayer_remove_paying_key_V3_t;
+
+#define PD_CALL_RELAYER_UPDATE_POLYX_LIMIT_V3 3
+typedef struct {
+ pd_AccountId_V3_t user_key;
+ pd_Balance_t polyx_limit;
+} pd_relayer_update_polyx_limit_V3_t;
+
+#define PD_CALL_RELAYER_INCREASE_POLYX_LIMIT_V3 4
+typedef struct {
+ pd_AccountId_V3_t user_key;
+ pd_Balance_t amount;
+} pd_relayer_increase_polyx_limit_V3_t;
+
+#define PD_CALL_RELAYER_DECREASE_POLYX_LIMIT_V3 5
+typedef struct {
+ pd_AccountId_V3_t user_key;
+ pd_Balance_t amount;
+} pd_relayer_decrease_polyx_limit_V3_t;
+
+#define PD_CALL_REWARDS_CLAIM_ITN_REWARD_V3 0
+typedef struct {
+ pd_AccountId_V3_t reward_address;
+ pd_AccountId_V3_t itn_address;
+ pd_OffChainSignature_V3_t signature;
+} pd_rewards_claim_itn_reward_V3_t;
+
+#define PD_CALL_CONTRACTS_INSTANTIATE_WITH_CODE_V3 1
+typedef struct {
+ pd_CompactBalance_t amount;
+ pd_Compactu64_t gas_limit;
+ pd_OptionCompactBalanceOf_t storage_deposit_limit;
+ pd_Vecu8_t code;
+ pd_Vecu8_t data;
+ pd_Vecu8_t salt;
+} pd_contracts_instantiate_with_code_V3_t;
+
+#define PD_CALL_CONTRACTS_UPLOAD_CODE_V3 3
+typedef struct {
+ pd_Vecu8_t code;
+ pd_OptionCompactBalanceOf_t storage_deposit_limit;
+} pd_contracts_upload_code_V3_t;
+
+#define PD_CALL_CONTRACTS_REMOVE_CODE_V3 4
+typedef struct {
+ pd_CodeHash_V3_t code_hash;
+} pd_contracts_remove_code_V3_t;
+
+#define PD_CALL_POLYMESHCONTRACTS_INSTANTIATE_WITH_CODE_PERMS_V3 0
+typedef struct {
+ pd_Balance_t endowment;
+ pd_Weight_V3_t gas_limit;
+ pd_OptionBalance_t storage_deposit_limit;
+ pd_Vecu8_t code;
+ pd_Vecu8_t data;
+ pd_Vecu8_t salt;
+ pd_Permissions_V3_t perms;
+} pd_polymeshcontracts_instantiate_with_code_perms_V3_t;
+
+#define PD_CALL_POLYMESHCONTRACTS_INSTANTIATE_WITH_HASH_PERMS_V3 1
+typedef struct {
+ pd_Balance_t endowment;
+ pd_Weight_V3_t gas_limit;
+ pd_OptionBalance_t storage_deposit_limit;
+ pd_CodeHash_V3_t code_hash;
+ pd_Vecu8_t data;
+ pd_Vecu8_t salt;
+ pd_Permissions_V3_t perms;
+} pd_polymeshcontracts_instantiate_with_hash_perms_V3_t;
+
+#define PD_CALL_PREIMAGE_NOTE_PREIMAGE_V3 0
+typedef struct {
+ pd_Vecu8_t bytes;
+} pd_preimage_note_preimage_V3_t;
+
+#define PD_CALL_PREIMAGE_UNNOTE_PREIMAGE_V3 1
+typedef struct {
+ pd_Hash_t hash;
+} pd_preimage_unnote_preimage_V3_t;
+
+#define PD_CALL_PREIMAGE_REQUEST_PREIMAGE_V3 2
+typedef struct {
+ pd_Hash_t hash;
+} pd_preimage_request_preimage_V3_t;
+
+#define PD_CALL_PREIMAGE_UNREQUEST_PREIMAGE_V3 3
+typedef struct {
+ pd_Hash_t hash;
+} pd_preimage_unrequest_preimage_V3_t;
+
+#endif
+
+typedef union {
+#ifdef SUBSTRATE_PARSER_FULL
+ pd_identity_placeholder_legacy_set_permission_to_signer_V3_t identity_placeholder_legacy_set_permission_to_signer_V3;
+ pd_identity_revoke_claim_by_index_V3_t identity_revoke_claim_by_index_V3;
+ pd_identity_rotate_primary_key_to_secondary_V3_t identity_rotate_primary_key_to_secondary_V3;
+ pd_identity_set_secondary_key_permissions_V3_t identity_set_secondary_key_permissions_V3;
+ pd_multisig_make_multisig_secondary_V3_t multisig_make_multisig_secondary_V3;
+ pd_bridge_force_handle_bridge_tx_V3_t bridge_force_handle_bridge_tx_V3;
+ pd_bridge_batch_propose_bridge_tx_V3_t bridge_batch_propose_bridge_tx_V3;
+ pd_bridge_propose_bridge_tx_V3_t bridge_propose_bridge_tx_V3;
+ pd_bridge_handle_bridge_tx_V3_t bridge_handle_bridge_tx_V3;
+ pd_bridge_freeze_txs_V3_t bridge_freeze_txs_V3;
+ pd_bridge_unfreeze_txs_V3_t bridge_unfreeze_txs_V3;
+ pd_bridge_handle_scheduled_bridge_tx_V3_t bridge_handle_scheduled_bridge_tx_V3;
+ pd_bridge_add_freeze_admin_V3_t bridge_add_freeze_admin_V3;
+ pd_bridge_remove_freeze_admin_V3_t bridge_remove_freeze_admin_V3;
+ pd_bridge_remove_txs_V3_t bridge_remove_txs_V3;
+ pd_asset_controller_transfer_V3_t asset_controller_transfer_V3;
+ pd_asset_register_custom_asset_type_V3_t asset_register_custom_asset_type_V3;
+ pd_asset_create_asset_with_custom_type_V3_t asset_create_asset_with_custom_type_V3;
+ pd_asset_set_asset_metadata_V3_t asset_set_asset_metadata_V3;
+ pd_asset_set_asset_metadata_details_V3_t asset_set_asset_metadata_details_V3;
+ pd_asset_register_and_set_local_asset_metadata_V3_t asset_register_and_set_local_asset_metadata_V3;
+ pd_asset_register_asset_metadata_local_type_V3_t asset_register_asset_metadata_local_type_V3;
+ pd_asset_register_asset_metadata_global_type_V3_t asset_register_asset_metadata_global_type_V3;
+ pd_portfolio_quit_portfolio_custody_V3_t portfolio_quit_portfolio_custody_V3;
+ pd_portfolio_accept_portfolio_custody_V3_t portfolio_accept_portfolio_custody_V3;
+ pd_settlement_update_venue_details_V3_t settlement_update_venue_details_V3;
+ pd_settlement_update_venue_type_V3_t settlement_update_venue_type_V3;
+ pd_settlement_change_receipt_validity_V3_t settlement_change_receipt_validity_V3;
+ pd_settlement_reschedule_instruction_V3_t settlement_reschedule_instruction_V3;
+ pd_sto_create_fundraiser_V3_t sto_create_fundraiser_V3;
+ pd_sto_invest_V3_t sto_invest_V3;
+ pd_sto_freeze_fundraiser_V3_t sto_freeze_fundraiser_V3;
+ pd_sto_unfreeze_fundraiser_V3_t sto_unfreeze_fundraiser_V3;
+ pd_sto_modify_fundraiser_window_V3_t sto_modify_fundraiser_window_V3;
+ pd_sto_stop_V3_t sto_stop_V3;
+ pd_externalagents_remove_agent_V3_t externalagents_remove_agent_V3;
+ pd_externalagents_abdicate_V3_t externalagents_abdicate_V3;
+ pd_externalagents_accept_become_agent_V3_t externalagents_accept_become_agent_V3;
+ pd_externalagents_create_group_and_add_auth_V3_t externalagents_create_group_and_add_auth_V3;
+ pd_externalagents_create_and_change_custom_group_V3_t externalagents_create_and_change_custom_group_V3;
+ pd_relayer_set_paying_key_V3_t relayer_set_paying_key_V3;
+ pd_relayer_accept_paying_key_V3_t relayer_accept_paying_key_V3;
+ pd_relayer_remove_paying_key_V3_t relayer_remove_paying_key_V3;
+ pd_relayer_update_polyx_limit_V3_t relayer_update_polyx_limit_V3;
+ pd_relayer_increase_polyx_limit_V3_t relayer_increase_polyx_limit_V3;
+ pd_relayer_decrease_polyx_limit_V3_t relayer_decrease_polyx_limit_V3;
+ pd_rewards_claim_itn_reward_V3_t rewards_claim_itn_reward_V3;
+ pd_contracts_instantiate_with_code_V3_t contracts_instantiate_with_code_V3;
+ pd_contracts_upload_code_V3_t contracts_upload_code_V3;
+ pd_contracts_remove_code_V3_t contracts_remove_code_V3;
+ pd_polymeshcontracts_instantiate_with_code_perms_V3_t polymeshcontracts_instantiate_with_code_perms_V3;
+ pd_polymeshcontracts_instantiate_with_hash_perms_V3_t polymeshcontracts_instantiate_with_hash_perms_V3;
+ pd_preimage_note_preimage_V3_t preimage_note_preimage_V3;
+ pd_preimage_unnote_preimage_V3_t preimage_unnote_preimage_V3;
+ pd_preimage_request_preimage_V3_t preimage_request_preimage_V3;
+ pd_preimage_unrequest_preimage_V3_t preimage_unrequest_preimage_V3;
+#endif
+} pd_MethodBasic_V3_t;
+
+#define PD_CALL_BALANCES_TRANSFER_V3 0
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t dest;
+ pd_CompactBalance_t amount;
+} pd_balances_transfer_V3_t;
+
+#define PD_CALL_BALANCES_TRANSFER_WITH_MEMO_V3 1
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t dest;
+ pd_CompactBalance_t amount;
+ pd_OptionMemo_V3_t memo;
+} pd_balances_transfer_with_memo_V3_t;
+
+#define PD_CALL_IDENTITY_ACCEPT_PRIMARY_KEY_V3 3
+typedef struct {
+ pd_u64_t rotation_auth_id;
+ pd_Optionu64_t optional_cdd_auth_id;
+} pd_identity_accept_primary_key_V3_t;
+
+#define PD_CALL_IDENTITY_JOIN_IDENTITY_AS_KEY_V3 5
+typedef struct {
+ pd_u64_t auth_id;
+} pd_identity_join_identity_as_key_V3_t;
+
+#define PD_CALL_IDENTITY_LEAVE_IDENTITY_AS_KEY_V3 6
+typedef struct {
+} pd_identity_leave_identity_as_key_V3_t;
+
+#define PD_CALL_IDENTITY_ADD_CLAIM_V3 7
+typedef struct {
+ pd_IdentityId_V3_t target;
+ pd_Claim_V3_t claim;
+ pd_OptionMoment_V3_t expiry;
+} pd_identity_add_claim_V3_t;
+
+#define PD_CALL_IDENTITY_REVOKE_CLAIM_V3 8
+typedef struct {
+ pd_IdentityId_V3_t target;
+ pd_Claim_V3_t claim;
+} pd_identity_revoke_claim_V3_t;
+
+#define PD_CALL_IDENTITY_SET_PERMISSION_TO_SIGNER_V3 9
+typedef struct {
+ pd_SignatoryAccountId_V3_t key;
+ pd_Permissions_V3_t perms;
+} pd_identity_set_permission_to_signer_V3_t;
+
+#define PD_CALL_IDENTITY_FREEZE_SECONDARY_KEYS_V3 11
+typedef struct {
+} pd_identity_freeze_secondary_keys_V3_t;
+
+#define PD_CALL_IDENTITY_UNFREEZE_SECONDARY_KEYS_V3 12
+typedef struct {
+} pd_identity_unfreeze_secondary_keys_V3_t;
+
+#define PD_CALL_IDENTITY_ADD_AUTHORIZATION_V3 13
+typedef struct {
+ pd_SignatoryAccountId_V3_t target;
+ pd_AuthorizationDataAccountId_V3_t data;
+ pd_OptionMoment_V3_t expiry;
+} pd_identity_add_authorization_V3_t;
+
+#define PD_CALL_IDENTITY_REMOVE_AUTHORIZATION_V3 14
+typedef struct {
+ pd_SignatoryAccountId_V3_t target;
+ pd_u64_t auth_id;
+ pd_bool_t _auth_issuer_pays;
+} pd_identity_remove_authorization_V3_t;
+
+#define PD_CALL_IDENTITY_ADD_INVESTOR_UNIQUENESS_CLAIM_V3 16
+typedef struct {
+ pd_IdentityId_V3_t target;
+ pd_Claim_V3_t claim;
+ pd_InvestorZKProofData_V3_t proof;
+ pd_OptionMoment_V3_t expiry;
+} pd_identity_add_investor_uniqueness_claim_V3_t;
+
+#define PD_CALL_IDENTITY_ADD_SECONDARY_KEYS_WITH_AUTHORIZATION_V3 22
+typedef struct {
+ pd_VecSecondaryKeyWithAuthAccountId_V3_t additional_keys;
+ pd_Moment_V3_t expires_at;
+} pd_identity_add_secondary_keys_with_authorization_V3_t;
+
+#define PD_CALL_IDENTITY_REMOVE_SECONDARY_KEYS_V3 24
+typedef struct {
+ pd_VecAccountId_V3_t keys_to_remove;
+} pd_identity_remove_secondary_keys_V3_t;
+
+#define PD_CALL_MULTISIG_CREATE_MULTISIG_V3 0
+typedef struct {
+ pd_VecSignatoryAccountId_V3_t signers;
+ pd_u64_t sigs_required;
+} pd_multisig_create_multisig_V3_t;
+
+#define PD_CALL_MULTISIG_CREATE_OR_APPROVE_PROPOSAL_AS_IDENTITY_V3 1
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_Proposal_t proposal;
+ pd_OptionMoment_V3_t expiry;
+ pd_bool_t auto_close;
+} pd_multisig_create_or_approve_proposal_as_identity_V3_t;
+
+#define PD_CALL_MULTISIG_CREATE_OR_APPROVE_PROPOSAL_AS_KEY_V3 2
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_Proposal_t proposal;
+ pd_OptionMoment_V3_t expiry;
+ pd_bool_t auto_close;
+} pd_multisig_create_or_approve_proposal_as_key_V3_t;
+
+#define PD_CALL_MULTISIG_CREATE_PROPOSAL_AS_IDENTITY_V3 3
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_Proposal_t proposal;
+ pd_OptionMoment_V3_t expiry;
+ pd_bool_t auto_close;
+} pd_multisig_create_proposal_as_identity_V3_t;
+
+#define PD_CALL_MULTISIG_CREATE_PROPOSAL_AS_KEY_V3 4
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_Proposal_t proposal;
+ pd_OptionMoment_V3_t expiry;
+ pd_bool_t auto_close;
+} pd_multisig_create_proposal_as_key_V3_t;
+
+#define PD_CALL_MULTISIG_APPROVE_AS_IDENTITY_V3 5
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_u64_t proposal_id;
+} pd_multisig_approve_as_identity_V3_t;
+
+#define PD_CALL_MULTISIG_APPROVE_AS_KEY_V3 6
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_u64_t proposal_id;
+} pd_multisig_approve_as_key_V3_t;
+
+#define PD_CALL_MULTISIG_REJECT_AS_IDENTITY_V3 7
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_u64_t proposal_id;
+} pd_multisig_reject_as_identity_V3_t;
+
+#define PD_CALL_MULTISIG_REJECT_AS_KEY_V3 8
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_u64_t proposal_id;
+} pd_multisig_reject_as_key_V3_t;
+
+#define PD_CALL_MULTISIG_ACCEPT_MULTISIG_SIGNER_AS_IDENTITY_V3 9
+typedef struct {
+ pd_u64_t auth_id;
+} pd_multisig_accept_multisig_signer_as_identity_V3_t;
+
+#define PD_CALL_MULTISIG_ACCEPT_MULTISIG_SIGNER_AS_KEY_V3 10
+typedef struct {
+ pd_u64_t auth_id;
+} pd_multisig_accept_multisig_signer_as_key_V3_t;
+
+#define PD_CALL_MULTISIG_ADD_MULTISIG_SIGNER_V3 11
+typedef struct {
+ pd_SignatoryAccountId_V3_t signer;
+} pd_multisig_add_multisig_signer_V3_t;
+
+#define PD_CALL_MULTISIG_REMOVE_MULTISIG_SIGNER_V3 12
+typedef struct {
+ pd_SignatoryAccountId_V3_t signer;
+} pd_multisig_remove_multisig_signer_V3_t;
+
+#define PD_CALL_MULTISIG_ADD_MULTISIG_SIGNERS_VIA_CREATOR_V3 13
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_VecSignatoryAccountId_V3_t signers;
+} pd_multisig_add_multisig_signers_via_creator_V3_t;
+
+#define PD_CALL_MULTISIG_REMOVE_MULTISIG_SIGNERS_VIA_CREATOR_V3 14
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_VecSignatoryAccountId_V3_t signers;
+} pd_multisig_remove_multisig_signers_via_creator_V3_t;
+
+#define PD_CALL_MULTISIG_CHANGE_SIGS_REQUIRED_V3 15
+typedef struct {
+ pd_u64_t sigs_required;
+} pd_multisig_change_sigs_required_V3_t;
+
+#define PD_CALL_MULTISIG_MAKE_MULTISIG_PRIMARY_V3 17
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_Optionu64_t optional_cdd_auth_id;
+} pd_multisig_make_multisig_primary_V3_t;
+
+#define PD_CALL_MULTISIG_EXECUTE_SCHEDULED_PROPOSAL_V3 18
+typedef struct {
+ pd_AccountId_V3_t multisig;
+ pd_u64_t proposal_id;
+ pd_IdentityId_V3_t multisig_did;
+ pd_Weight_V3_t _proposal_weight;
+} pd_multisig_execute_scheduled_proposal_V3_t;
+
+#define PD_CALL_STAKING_BOND_V3 0
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t controller;
+ pd_CompactBalance_t amount;
+ pd_RewardDestination_V3_t payee;
+} pd_staking_bond_V3_t;
+
+#define PD_CALL_STAKING_BOND_EXTRA_V3 1
+typedef struct {
+ pd_CompactBalance_t amount;
+} pd_staking_bond_extra_V3_t;
+
+#define PD_CALL_STAKING_UNBOND_V3 2
+typedef struct {
+ pd_CompactBalance_t amount;
+} pd_staking_unbond_V3_t;
+
+#define PD_CALL_STAKING_WITHDRAW_UNBONDED_V3 3
+typedef struct {
+ pd_u32_t num_slashing_spans;
+} pd_staking_withdraw_unbonded_V3_t;
+
+#define PD_CALL_STAKING_VALIDATE_V3 4
+typedef struct {
+ pd_ValidatorPrefs_V3_t prefs;
+} pd_staking_validate_V3_t;
+
+#define PD_CALL_STAKING_NOMINATE_V3 5
+typedef struct {
+ pd_VecLookupasStaticLookupSource_V3_t targets;
+} pd_staking_nominate_V3_t;
+
+#define PD_CALL_STAKING_CHILL_V3 6
+typedef struct {
+} pd_staking_chill_V3_t;
+
+#define PD_CALL_STAKING_SET_PAYEE_V3 7
+typedef struct {
+ pd_RewardDestination_V3_t payee;
+} pd_staking_set_payee_V3_t;
+
+#define PD_CALL_STAKING_SET_CONTROLLER_V3 8
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t controller;
+} pd_staking_set_controller_V3_t;
+
+#define PD_CALL_STAKING_REBOND_V3 24
+typedef struct {
+ pd_CompactBalance_t amount;
+} pd_staking_rebond_V3_t;
+
+#define PD_CALL_PIPS_PROPOSE_V3 6
+typedef struct {
+ pd_Proposal_t proposal;
+ pd_Balance_t deposit;
+ pd_OptionUrl_V3_t url;
+ pd_OptionPipDescription_V3_t description;
+} pd_pips_propose_V3_t;
+
+#define PD_CALL_PIPS_VOTE_V3 7
+typedef struct {
+ pd_PipId_V3_t id;
+ pd_bool_t aye_or_nay;
+ pd_Balance_t deposit;
+} pd_pips_vote_V3_t;
+
+#define PD_CALL_UTILITY_BATCH_V3 0
+typedef struct {
+ pd_VecCall_t calls;
+} pd_utility_batch_V3_t;
+
+#define PD_CALL_UTILITY_BATCH_ATOMIC_V3 1
+typedef struct {
+ pd_VecCall_t calls;
+} pd_utility_batch_atomic_V3_t;
+
+#define PD_CALL_UTILITY_BATCH_OPTIMISTIC_V3 2
+typedef struct {
+ pd_VecCall_t calls;
+} pd_utility_batch_optimistic_V3_t;
+
+#ifdef SUBSTRATE_PARSER_FULL
+#define PD_CALL_SYSTEM_FILL_BLOCK_V3 0
+typedef struct {
+ pd_Perbill_V3_t ratio;
+} pd_system_fill_block_V3_t;
+
+#define PD_CALL_SYSTEM_REMARK_V3 1
+typedef struct {
+ pd_Vecu8_t remark;
+} pd_system_remark_V3_t;
+
+#define PD_CALL_SYSTEM_SET_HEAP_PAGES_V3 2
+typedef struct {
+ pd_u64_t pages;
+} pd_system_set_heap_pages_V3_t;
+
+#define PD_CALL_SYSTEM_SET_CODE_V3 3
+typedef struct {
+ pd_Vecu8_t code;
+} pd_system_set_code_V3_t;
+
+#define PD_CALL_SYSTEM_SET_CODE_WITHOUT_CHECKS_V3 4
+typedef struct {
+ pd_Vecu8_t code;
+} pd_system_set_code_without_checks_V3_t;
+
+#define PD_CALL_SYSTEM_REMARK_WITH_EVENT_V3 8
+typedef struct {
+ pd_Vecu8_t remark;
+} pd_system_remark_with_event_V3_t;
+
+#define PD_CALL_TIMESTAMP_SET_V3 0
+typedef struct {
+ pd_Compactu64_t now;
+} pd_timestamp_set_V3_t;
+
+#define PD_CALL_INDICES_CLAIM_V3 0
+typedef struct {
+ pd_AccountIndex_V3_t index;
+} pd_indices_claim_V3_t;
+
+#define PD_CALL_INDICES_TRANSFER_V3 1
+typedef struct {
+ pd_AccountId_V3_t new_;
+ pd_AccountIndex_V3_t index;
+} pd_indices_transfer_V3_t;
+
+#define PD_CALL_INDICES_FREE_V3 2
+typedef struct {
+ pd_AccountIndex_V3_t index;
+} pd_indices_free_V3_t;
+
+#define PD_CALL_INDICES_FORCE_TRANSFER_V3 3
+typedef struct {
+ pd_AccountId_V3_t new_;
+ pd_AccountIndex_V3_t index;
+ pd_bool_t freeze;
+} pd_indices_force_transfer_V3_t;
+
+#define PD_CALL_INDICES_FREEZE_V3 4
+typedef struct {
+ pd_AccountIndex_V3_t index;
+} pd_indices_freeze_V3_t;
+
+#define PD_CALL_BALANCES_DEPOSIT_BLOCK_REWARD_RESERVE_BALANCE_V3 2
+typedef struct {
+ pd_CompactBalance_t amount;
+} pd_balances_deposit_block_reward_reserve_balance_V3_t;
+
+#define PD_CALL_BALANCES_SET_BALANCE_V3 3
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t who;
+ pd_CompactBalance_t new_free;
+ pd_CompactBalance_t new_reserved;
+} pd_balances_set_balance_V3_t;
+
+#define PD_CALL_BALANCES_FORCE_TRANSFER_V3 4
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t source;
+ pd_LookupasStaticLookupSource_V3_t dest;
+ pd_CompactBalance_t amount;
+} pd_balances_force_transfer_V3_t;
+
+#define PD_CALL_BALANCES_BURN_ACCOUNT_BALANCE_V3 5
+typedef struct {
+ pd_Balance_t amount;
+} pd_balances_burn_account_balance_V3_t;
+
+#define PD_CALL_IDENTITY_INVALIDATE_CDD_CLAIMS_V3 1
+typedef struct {
+ pd_IdentityId_V3_t cdd;
+ pd_Moment_V3_t disable_from;
+ pd_OptionMoment_V3_t expiry;
+} pd_identity_invalidate_cdd_claims_V3_t;
+
+#define PD_CALL_IDENTITY_CHANGE_CDD_REQUIREMENT_FOR_MK_ROTATION_V3 4
+typedef struct {
+ pd_bool_t auth_required;
+} pd_identity_change_cdd_requirement_for_mk_rotation_V3_t;
+
+#define PD_CALL_IDENTITY_GC_ADD_CDD_CLAIM_V3 17
+typedef struct {
+ pd_IdentityId_V3_t target;
+} pd_identity_gc_add_cdd_claim_V3_t;
+
+#define PD_CALL_IDENTITY_GC_REVOKE_CDD_CLAIM_V3 18
+typedef struct {
+ pd_IdentityId_V3_t target;
+} pd_identity_gc_revoke_cdd_claim_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_SET_ACTIVE_MEMBERS_LIMIT_V3 0
+typedef struct {
+ pd_MemberCount_V3_t limit;
+} pd_cddserviceproviders_set_active_members_limit_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_DISABLE_MEMBER_V3 1
+typedef struct {
+ pd_IdentityId_V3_t who;
+ pd_OptionMoment_V3_t expiry;
+ pd_OptionMoment_V3_t at;
+} pd_cddserviceproviders_disable_member_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_ADD_MEMBER_V3 2
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_cddserviceproviders_add_member_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_REMOVE_MEMBER_V3 3
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_cddserviceproviders_remove_member_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_SWAP_MEMBER_V3 4
+typedef struct {
+ pd_IdentityId_V3_t remove;
+ pd_IdentityId_V3_t add;
+} pd_cddserviceproviders_swap_member_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_RESET_MEMBERS_V3 5
+typedef struct {
+ pd_VecIdentityId_V3_t members;
+} pd_cddserviceproviders_reset_members_V3_t;
+
+#define PD_CALL_CDDSERVICEPROVIDERS_ABDICATE_MEMBERSHIP_V3 6
+typedef struct {
+} pd_cddserviceproviders_abdicate_membership_V3_t;
+
+#define PD_CALL_POLYMESHCOMMITTEE_SET_VOTE_THRESHOLD_V3 0
+typedef struct {
+ pd_u32_t n;
+ pd_u32_t d;
+} pd_polymeshcommittee_set_vote_threshold_V3_t;
+
+#define PD_CALL_POLYMESHCOMMITTEE_SET_RELEASE_COORDINATOR_V3 1
+typedef struct {
+ pd_IdentityId_V3_t id;
+} pd_polymeshcommittee_set_release_coordinator_V3_t;
+
+#define PD_CALL_POLYMESHCOMMITTEE_SET_EXPIRES_AFTER_V3 2
+typedef struct {
+ pd_MaybeBlockBlockNumber_V3_t expiry;
+} pd_polymeshcommittee_set_expires_after_V3_t;
+
+#define PD_CALL_POLYMESHCOMMITTEE_VOTE_OR_PROPOSE_V3 3
+typedef struct {
+ pd_bool_t approve;
+ pd_Call_t call;
+} pd_polymeshcommittee_vote_or_propose_V3_t;
+
+#define PD_CALL_POLYMESHCOMMITTEE_VOTE_V3 4
+typedef struct {
+ pd_Hash_t proposal;
+ pd_ProposalIndex_V3_t index;
+ pd_bool_t approve;
+} pd_polymeshcommittee_vote_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_SET_ACTIVE_MEMBERS_LIMIT_V3 0
+typedef struct {
+ pd_MemberCount_V3_t limit;
+} pd_committeemembership_set_active_members_limit_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_DISABLE_MEMBER_V3 1
+typedef struct {
+ pd_IdentityId_V3_t who;
+ pd_OptionMoment_V3_t expiry;
+ pd_OptionMoment_V3_t at;
+} pd_committeemembership_disable_member_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_ADD_MEMBER_V3 2
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_committeemembership_add_member_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_REMOVE_MEMBER_V3 3
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_committeemembership_remove_member_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_SWAP_MEMBER_V3 4
+typedef struct {
+ pd_IdentityId_V3_t remove;
+ pd_IdentityId_V3_t add;
+} pd_committeemembership_swap_member_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_RESET_MEMBERS_V3 5
+typedef struct {
+ pd_VecIdentityId_V3_t members;
+} pd_committeemembership_reset_members_V3_t;
+
+#define PD_CALL_COMMITTEEMEMBERSHIP_ABDICATE_MEMBERSHIP_V3 6
+typedef struct {
+} pd_committeemembership_abdicate_membership_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEE_SET_VOTE_THRESHOLD_V3 0
+typedef struct {
+ pd_u32_t n;
+ pd_u32_t d;
+} pd_technicalcommittee_set_vote_threshold_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEE_SET_RELEASE_COORDINATOR_V3 1
+typedef struct {
+ pd_IdentityId_V3_t id;
+} pd_technicalcommittee_set_release_coordinator_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEE_SET_EXPIRES_AFTER_V3 2
+typedef struct {
+ pd_MaybeBlockBlockNumber_V3_t expiry;
+} pd_technicalcommittee_set_expires_after_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEE_VOTE_OR_PROPOSE_V3 3
+typedef struct {
+ pd_bool_t approve;
+ pd_Call_t call;
+} pd_technicalcommittee_vote_or_propose_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEE_VOTE_V3 4
+typedef struct {
+ pd_Hash_t proposal;
+ pd_ProposalIndex_V3_t index;
+ pd_bool_t approve;
+} pd_technicalcommittee_vote_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_SET_ACTIVE_MEMBERS_LIMIT_V3 0
+typedef struct {
+ pd_MemberCount_V3_t limit;
+} pd_technicalcommitteemembership_set_active_members_limit_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_DISABLE_MEMBER_V3 1
+typedef struct {
+ pd_IdentityId_V3_t who;
+ pd_OptionMoment_V3_t expiry;
+ pd_OptionMoment_V3_t at;
+} pd_technicalcommitteemembership_disable_member_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_ADD_MEMBER_V3 2
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_technicalcommitteemembership_add_member_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_REMOVE_MEMBER_V3 3
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_technicalcommitteemembership_remove_member_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_SWAP_MEMBER_V3 4
+typedef struct {
+ pd_IdentityId_V3_t remove;
+ pd_IdentityId_V3_t add;
+} pd_technicalcommitteemembership_swap_member_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_RESET_MEMBERS_V3 5
+typedef struct {
+ pd_VecIdentityId_V3_t members;
+} pd_technicalcommitteemembership_reset_members_V3_t;
+
+#define PD_CALL_TECHNICALCOMMITTEEMEMBERSHIP_ABDICATE_MEMBERSHIP_V3 6
+typedef struct {
+} pd_technicalcommitteemembership_abdicate_membership_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEE_SET_VOTE_THRESHOLD_V3 0
+typedef struct {
+ pd_u32_t n;
+ pd_u32_t d;
+} pd_upgradecommittee_set_vote_threshold_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEE_SET_RELEASE_COORDINATOR_V3 1
+typedef struct {
+ pd_IdentityId_V3_t id;
+} pd_upgradecommittee_set_release_coordinator_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEE_SET_EXPIRES_AFTER_V3 2
+typedef struct {
+ pd_MaybeBlockBlockNumber_V3_t expiry;
+} pd_upgradecommittee_set_expires_after_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEE_VOTE_OR_PROPOSE_V3 3
+typedef struct {
+ pd_bool_t approve;
+ pd_Call_t call;
+} pd_upgradecommittee_vote_or_propose_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEE_VOTE_V3 4
+typedef struct {
+ pd_Hash_t proposal;
+ pd_ProposalIndex_V3_t index;
+ pd_bool_t approve;
+} pd_upgradecommittee_vote_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_SET_ACTIVE_MEMBERS_LIMIT_V3 0
+typedef struct {
+ pd_MemberCount_V3_t limit;
+} pd_upgradecommitteemembership_set_active_members_limit_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_DISABLE_MEMBER_V3 1
+typedef struct {
+ pd_IdentityId_V3_t who;
+ pd_OptionMoment_V3_t expiry;
+ pd_OptionMoment_V3_t at;
+} pd_upgradecommitteemembership_disable_member_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_ADD_MEMBER_V3 2
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_upgradecommitteemembership_add_member_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_REMOVE_MEMBER_V3 3
+typedef struct {
+ pd_IdentityId_V3_t who;
+} pd_upgradecommitteemembership_remove_member_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_SWAP_MEMBER_V3 4
+typedef struct {
+ pd_IdentityId_V3_t remove;
+ pd_IdentityId_V3_t add;
+} pd_upgradecommitteemembership_swap_member_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_RESET_MEMBERS_V3 5
+typedef struct {
+ pd_VecIdentityId_V3_t members;
+} pd_upgradecommitteemembership_reset_members_V3_t;
+
+#define PD_CALL_UPGRADECOMMITTEEMEMBERSHIP_ABDICATE_MEMBERSHIP_V3 6
+typedef struct {
+} pd_upgradecommitteemembership_abdicate_membership_V3_t;
+
+#define PD_CALL_BRIDGE_CHANGE_CONTROLLER_V3 0
+typedef struct {
+ pd_AccountId_V3_t controller;
+} pd_bridge_change_controller_V3_t;
+
+#define PD_CALL_BRIDGE_CHANGE_ADMIN_V3 1
+typedef struct {
+ pd_AccountId_V3_t admin;
+} pd_bridge_change_admin_V3_t;
+
+#define PD_CALL_BRIDGE_CHANGE_TIMELOCK_V3 2
+typedef struct {
+ pd_BlockNumber_t timelock;
+} pd_bridge_change_timelock_V3_t;
+
+#define PD_CALL_BRIDGE_FREEZE_V3 3
+typedef struct {
+} pd_bridge_freeze_V3_t;
+
+#define PD_CALL_BRIDGE_UNFREEZE_V3 4
+typedef struct {
+} pd_bridge_unfreeze_V3_t;
+
+#define PD_CALL_BRIDGE_CHANGE_BRIDGE_LIMIT_V3 5
+typedef struct {
+ pd_Balance_t amount;
+ pd_BlockNumber_t duration;
+} pd_bridge_change_bridge_limit_V3_t;
+
+#define PD_CALL_BRIDGE_CHANGE_BRIDGE_EXEMPTED_V3 6
+typedef struct {
+ pd_VecTupleIdentityIdbool_V3_t exempted;
+} pd_bridge_change_bridge_exempted_V3_t;
+
+#define PD_CALL_STAKING_SET_VALIDATOR_COUNT_V3 9
+typedef struct {
+ pd_Compactu32_t new_;
+} pd_staking_set_validator_count_V3_t;
+
+#define PD_CALL_STAKING_INCREASE_VALIDATOR_COUNT_V3 10
+typedef struct {
+ pd_Compactu32_t additional;
+} pd_staking_increase_validator_count_V3_t;
+
+#define PD_CALL_STAKING_ADD_PERMISSIONED_VALIDATOR_V3 12
+typedef struct {
+ pd_IdentityId_V3_t identity;
+ pd_Optionu32_t intended_count;
+} pd_staking_add_permissioned_validator_V3_t;
+
+#define PD_CALL_STAKING_REMOVE_PERMISSIONED_VALIDATOR_V3 13
+typedef struct {
+ pd_IdentityId_V3_t identity;
+} pd_staking_remove_permissioned_validator_V3_t;
+
+#define PD_CALL_STAKING_VALIDATE_CDD_EXPIRY_NOMINATORS_V3 14
+typedef struct {
+ pd_VecAccountId_V3_t targets;
+} pd_staking_validate_cdd_expiry_nominators_V3_t;
+
+#define PD_CALL_STAKING_SET_COMMISSION_CAP_V3 15
+typedef struct {
+ pd_Perbill_V3_t new_cap;
+} pd_staking_set_commission_cap_V3_t;
+
+#define PD_CALL_STAKING_SET_MIN_BOND_THRESHOLD_V3 16
+typedef struct {
+ pd_Balance_t new_value;
+} pd_staking_set_min_bond_threshold_V3_t;
+
+#define PD_CALL_STAKING_FORCE_NO_ERAS_V3 17
+typedef struct {
+} pd_staking_force_no_eras_V3_t;
+
+#define PD_CALL_STAKING_FORCE_NEW_ERA_V3 18
+typedef struct {
+} pd_staking_force_new_era_V3_t;
+
+#define PD_CALL_STAKING_SET_INVULNERABLES_V3 19
+typedef struct {
+ pd_VecAccountId_V3_t invulnerables;
+} pd_staking_set_invulnerables_V3_t;
+
+#define PD_CALL_STAKING_FORCE_UNSTAKE_V3 20
+typedef struct {
+ pd_AccountId_V3_t stash;
+ pd_u32_t num_slashing_spans;
+} pd_staking_force_unstake_V3_t;
+
+#define PD_CALL_STAKING_FORCE_NEW_ERA_ALWAYS_V3 21
+typedef struct {
+} pd_staking_force_new_era_always_V3_t;
+
+#define PD_CALL_STAKING_CANCEL_DEFERRED_SLASH_V3 22
+typedef struct {
+ pd_EraIndex_V3_t era;
+ pd_Vecu32_t slash_indices;
+} pd_staking_cancel_deferred_slash_V3_t;
+
+#define PD_CALL_STAKING_PAYOUT_STAKERS_V3 23
+typedef struct {
+ pd_AccountId_V3_t validator_stash;
+ pd_EraIndex_V3_t era;
+} pd_staking_payout_stakers_V3_t;
+
+#define PD_CALL_STAKING_SET_HISTORY_DEPTH_V3 25
+typedef struct {
+ pd_Compactu32_t new_history_depth;
+ pd_Compactu32_t _era_items_deleted;
+} pd_staking_set_history_depth_V3_t;
+
+#define PD_CALL_STAKING_REAP_STASH_V3 26
+typedef struct {
+ pd_AccountId_V3_t stash;
+ pd_u32_t num_slashing_spans;
+} pd_staking_reap_stash_V3_t;
+
+#define PD_CALL_STAKING_PAYOUT_STAKERS_BY_SYSTEM_V3 29
+typedef struct {
+ pd_AccountId_V3_t validator_stash;
+ pd_EraIndex_V3_t era;
+} pd_staking_payout_stakers_by_system_V3_t;
+
+#define PD_CALL_STAKING_CHANGE_SLASHING_ALLOWED_FOR_V3 30
+typedef struct {
+ pd_SlashingSwitch_V3_t slashing_switch;
+} pd_staking_change_slashing_allowed_for_V3_t;
+
+#define PD_CALL_STAKING_UPDATE_PERMISSIONED_VALIDATOR_INTENDED_COUNT_V3 31
+typedef struct {
+ pd_IdentityId_V3_t identity;
+ pd_u32_t new_intended_count;
+} pd_staking_update_permissioned_validator_intended_count_V3_t;
+
+#define PD_CALL_SESSION_SET_KEYS_V3 0
+typedef struct {
+ pd_Keys_V3_t keys;
+ pd_Bytes_t proof;
+} pd_session_set_keys_V3_t;
+
+#define PD_CALL_SESSION_PURGE_KEYS_V3 1
+typedef struct {
+} pd_session_purge_keys_V3_t;
+
+#define PD_CALL_GRANDPA_NOTE_STALLED_V3 2
+typedef struct {
+ pd_BlockNumber_t delay;
+ pd_BlockNumber_t best_finalized_block_number;
+} pd_grandpa_note_stalled_V3_t;
+
+#define PD_CALL_SUDO_SUDO_AS_V3 3
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t who;
+ pd_Call_t call;
+} pd_sudo_sudo_as_V3_t;
+
+#define PD_CALL_ASSET_REGISTER_TICKER_V3 0
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_asset_register_ticker_V3_t;
+
+#define PD_CALL_ASSET_ACCEPT_TICKER_TRANSFER_V3 1
+typedef struct {
+ pd_u64_t auth_id;
+} pd_asset_accept_ticker_transfer_V3_t;
+
+#define PD_CALL_ASSET_ACCEPT_ASSET_OWNERSHIP_TRANSFER_V3 2
+typedef struct {
+ pd_u64_t auth_id;
+} pd_asset_accept_asset_ownership_transfer_V3_t;
+
+#define PD_CALL_ASSET_CREATE_ASSET_V3 3
+typedef struct {
+ pd_AssetName_V3_t name;
+ pd_Ticker_V3_t ticker;
+ pd_bool_t divisible;
+ pd_AssetType_V3_t asset_type;
+ pd_VecAssetIdentifier_V3_t identifiers;
+ pd_OptionFundingRoundName_V3_t funding_round;
+ pd_bool_t disable_iu;
+} pd_asset_create_asset_V3_t;
+
+#define PD_CALL_ASSET_FREEZE_V3 4
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_asset_freeze_V3_t;
+
+#define PD_CALL_ASSET_UNFREEZE_V3 5
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_asset_unfreeze_V3_t;
+
+#define PD_CALL_ASSET_RENAME_ASSET_V3 6
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_AssetName_V3_t name;
+} pd_asset_rename_asset_V3_t;
+
+#define PD_CALL_ASSET_ISSUE_V3 7
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_BalanceNoSymbol_t amount;
+} pd_asset_issue_V3_t;
+
+#define PD_CALL_ASSET_REDEEM_V3 8
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_BalanceNoSymbol_t amount;
+} pd_asset_redeem_V3_t;
+
+#define PD_CALL_ASSET_MAKE_DIVISIBLE_V3 9
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_asset_make_divisible_V3_t;
+
+#define PD_CALL_ASSET_ADD_DOCUMENTS_V3 10
+typedef struct {
+ pd_VecDocument_V3_t docs;
+ pd_Ticker_V3_t ticker;
+} pd_asset_add_documents_V3_t;
+
+#define PD_CALL_ASSET_REMOVE_DOCUMENTS_V3 11
+typedef struct {
+ pd_VecDocumentId_V3_t ids;
+ pd_Ticker_V3_t ticker;
+} pd_asset_remove_documents_V3_t;
+
+#define PD_CALL_ASSET_SET_FUNDING_ROUND_V3 12
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_FundingRoundName_V3_t name;
+} pd_asset_set_funding_round_V3_t;
+
+#define PD_CALL_ASSET_UPDATE_IDENTIFIERS_V3 13
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_VecAssetIdentifier_V3_t identifiers;
+} pd_asset_update_identifiers_V3_t;
+
+#define PD_CALL_ASSET_CLAIM_CLASSIC_TICKER_V3 14
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_EcdsaSignature_V3_t ethereum_signature;
+} pd_asset_claim_classic_ticker_V3_t;
+
+#define PD_CALL_ASSET_RESERVE_CLASSIC_TICKER_V3 15
+typedef struct {
+ pd_ClassicTickerImport_V3_t classic_ticker_import;
+ pd_IdentityId_V3_t contract_did;
+ pd_TickerRegistrationConfigMoment_V3_t config;
+} pd_asset_reserve_classic_ticker_V3_t;
+
+#define PD_CALL_CAPITALDISTRIBUTION_DISTRIBUTE_V3 0
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_OptionPortfolioNumber_V3_t portfolio;
+ pd_Ticker_V3_t currency;
+ pd_Balance_t per_share;
+ pd_Balance_t amount;
+ pd_Moment_V3_t payment_at;
+ pd_OptionMoment_V3_t expires_at;
+} pd_capitaldistribution_distribute_V3_t;
+
+#define PD_CALL_CAPITALDISTRIBUTION_CLAIM_V3 1
+typedef struct {
+ pd_CAId_V3_t ca_id;
+} pd_capitaldistribution_claim_V3_t;
+
+#define PD_CALL_CAPITALDISTRIBUTION_PUSH_BENEFIT_V3 2
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_IdentityId_V3_t holder;
+} pd_capitaldistribution_push_benefit_V3_t;
+
+#define PD_CALL_CAPITALDISTRIBUTION_RECLAIM_V3 3
+typedef struct {
+ pd_CAId_V3_t ca_id;
+} pd_capitaldistribution_reclaim_V3_t;
+
+#define PD_CALL_CAPITALDISTRIBUTION_REMOVE_DISTRIBUTION_V3 4
+typedef struct {
+ pd_CAId_V3_t ca_id;
+} pd_capitaldistribution_remove_distribution_V3_t;
+
+#define PD_CALL_CHECKPOINT_CREATE_CHECKPOINT_V3 0
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_checkpoint_create_checkpoint_V3_t;
+
+#define PD_CALL_CHECKPOINT_SET_SCHEDULES_MAX_COMPLEXITY_V3 1
+typedef struct {
+ pd_u64_t max_complexity;
+} pd_checkpoint_set_schedules_max_complexity_V3_t;
+
+#define PD_CALL_CHECKPOINT_CREATE_SCHEDULE_V3 2
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_ScheduleSpec_V3_t schedule;
+} pd_checkpoint_create_schedule_V3_t;
+
+#define PD_CALL_CHECKPOINT_REMOVE_SCHEDULE_V3 3
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_ScheduleId_V3_t id;
+} pd_checkpoint_remove_schedule_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_ADD_COMPLIANCE_REQUIREMENT_V3 0
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_VecCondition_V3_t sender_conditions;
+ pd_VecCondition_V3_t receiver_conditions;
+} pd_compliancemanager_add_compliance_requirement_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_REMOVE_COMPLIANCE_REQUIREMENT_V3 1
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_u32_t id;
+} pd_compliancemanager_remove_compliance_requirement_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_RESET_ASSET_COMPLIANCE_V3 3
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_compliancemanager_reset_asset_compliance_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_PAUSE_ASSET_COMPLIANCE_V3 4
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_compliancemanager_pause_asset_compliance_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_RESUME_ASSET_COMPLIANCE_V3 5
+typedef struct {
+ pd_Ticker_V3_t ticker;
+} pd_compliancemanager_resume_asset_compliance_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_ADD_DEFAULT_TRUSTED_CLAIM_ISSUER_V3 6
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_TrustedIssuer_V3_t issuer;
+} pd_compliancemanager_add_default_trusted_claim_issuer_V3_t;
+
+#define PD_CALL_COMPLIANCEMANAGER_REMOVE_DEFAULT_TRUSTED_CLAIM_ISSUER_V3 7
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_IdentityId_V3_t issuer;
+} pd_compliancemanager_remove_default_trusted_claim_issuer_V3_t;
+
+#define PD_CALL_CORPORATEACTION_SET_MAX_DETAILS_LENGTH_V3 0
+typedef struct {
+ pd_u32_t length;
+} pd_corporateaction_set_max_details_length_V3_t;
+
+#define PD_CALL_CORPORATEACTION_SET_DEFAULT_TARGETS_V3 1
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_TargetIdentities_V3_t targets;
+} pd_corporateaction_set_default_targets_V3_t;
+
+#define PD_CALL_CORPORATEACTION_SET_DEFAULT_WITHHOLDING_TAX_V3 2
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_Tax_V3_t tax;
+} pd_corporateaction_set_default_withholding_tax_V3_t;
+
+#define PD_CALL_CORPORATEACTION_SET_DID_WITHHOLDING_TAX_V3 3
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_IdentityId_V3_t taxed_did;
+ pd_OptionTax_V3_t tax;
+} pd_corporateaction_set_did_withholding_tax_V3_t;
+
+#define PD_CALL_CORPORATEACTION_INITIATE_CORPORATE_ACTION_V3 4
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_CAKind_V3_t kind;
+ pd_Moment_V3_t decl_date;
+ pd_OptionRecordDateSpec_V3_t record_date;
+ pd_CADetails_V3_t details;
+ pd_OptionTargetIdentities_V3_t targets;
+ pd_OptionTax_V3_t default_withholding_tax;
+ pd_OptionVecTupleIdentityIdTax_V3_t withholding_tax;
+} pd_corporateaction_initiate_corporate_action_V3_t;
+
+#define PD_CALL_CORPORATEACTION_LINK_CA_DOC_V3 5
+typedef struct {
+ pd_CAId_V3_t id;
+ pd_VecDocumentId_V3_t docs;
+} pd_corporateaction_link_ca_doc_V3_t;
+
+#define PD_CALL_CORPORATEACTION_REMOVE_CA_V3 6
+typedef struct {
+ pd_CAId_V3_t ca_id;
+} pd_corporateaction_remove_ca_V3_t;
+
+#define PD_CALL_CORPORATEACTION_CHANGE_RECORD_DATE_V3 7
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_OptionRecordDateSpec_V3_t record_date;
+} pd_corporateaction_change_record_date_V3_t;
+
+#define PD_CALL_CORPORATEBALLOT_ATTACH_BALLOT_V3 0
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_BallotTimeRange_V3_t range;
+ pd_BallotMeta_V3_t meta;
+ pd_bool_t rcv;
+} pd_corporateballot_attach_ballot_V3_t;
+
+#define PD_CALL_CORPORATEBALLOT_VOTE_V3 1
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_VecBallotVote_V3_t votes;
+} pd_corporateballot_vote_V3_t;
+
+#define PD_CALL_CORPORATEBALLOT_CHANGE_END_V3 2
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_Moment_V3_t end;
+} pd_corporateballot_change_end_V3_t;
+
+#define PD_CALL_CORPORATEBALLOT_CHANGE_META_V3 3
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_BallotMeta_V3_t meta;
+} pd_corporateballot_change_meta_V3_t;
+
+#define PD_CALL_CORPORATEBALLOT_CHANGE_RCV_V3 4
+typedef struct {
+ pd_CAId_V3_t ca_id;
+ pd_bool_t rcv;
+} pd_corporateballot_change_rcv_V3_t;
+
+#define PD_CALL_CORPORATEBALLOT_REMOVE_BALLOT_V3 5
+typedef struct {
+ pd_CAId_V3_t ca_id;
+} pd_corporateballot_remove_ballot_V3_t;
+
+#define PD_CALL_PIPS_SET_PRUNE_HISTORICAL_PIPS_V3 0
+typedef struct {
+ pd_bool_t prune;
+} pd_pips_set_prune_historical_pips_V3_t;
+
+#define PD_CALL_PIPS_SET_MIN_PROPOSAL_DEPOSIT_V3 1
+typedef struct {
+ pd_Balance_t deposit;
+} pd_pips_set_min_proposal_deposit_V3_t;
+
+#define PD_CALL_PIPS_SET_DEFAULT_ENACTMENT_PERIOD_V3 2
+typedef struct {
+ pd_BlockNumber_t duration;
+} pd_pips_set_default_enactment_period_V3_t;
+
+#define PD_CALL_PIPS_SET_PENDING_PIP_EXPIRY_V3 3
+typedef struct {
+ pd_MaybeBlockBlockNumber_V3_t expiry;
+} pd_pips_set_pending_pip_expiry_V3_t;
+
+#define PD_CALL_PIPS_SET_MAX_PIP_SKIP_COUNT_V3 4
+typedef struct {
+ pd_SkippedCount_V3_t max;
+} pd_pips_set_max_pip_skip_count_V3_t;
+
+#define PD_CALL_PIPS_SET_ACTIVE_PIP_LIMIT_V3 5
+typedef struct {
+ pd_u32_t limit;
+} pd_pips_set_active_pip_limit_V3_t;
+
+#define PD_CALL_PIPS_APPROVE_COMMITTEE_PROPOSAL_V3 8
+typedef struct {
+ pd_PipId_V3_t id;
+} pd_pips_approve_committee_proposal_V3_t;
+
+#define PD_CALL_PIPS_REJECT_PROPOSAL_V3 9
+typedef struct {
+ pd_PipId_V3_t id;
+} pd_pips_reject_proposal_V3_t;
+
+#define PD_CALL_PIPS_PRUNE_PROPOSAL_V3 10
+typedef struct {
+ pd_PipId_V3_t id;
+} pd_pips_prune_proposal_V3_t;
+
+#define PD_CALL_PIPS_RESCHEDULE_EXECUTION_V3 11
+typedef struct {
+ pd_PipId_V3_t id;
+ pd_OptionBlockNumber_t until;
+} pd_pips_reschedule_execution_V3_t;
+
+#define PD_CALL_PIPS_CLEAR_SNAPSHOT_V3 12
+typedef struct {
+} pd_pips_clear_snapshot_V3_t;
+
+#define PD_CALL_PIPS_SNAPSHOT_V3 13
+typedef struct {
+} pd_pips_snapshot_V3_t;
+
+#define PD_CALL_PIPS_ENACT_SNAPSHOT_RESULTS_V3 14
+typedef struct {
+ pd_VecTuplePipIdSnapshotResult_V3_t results;
+} pd_pips_enact_snapshot_results_V3_t;
+
+#define PD_CALL_PIPS_EXECUTE_SCHEDULED_PIP_V3 15
+typedef struct {
+ pd_PipId_V3_t id;
+} pd_pips_execute_scheduled_pip_V3_t;
+
+#define PD_CALL_PIPS_EXPIRE_SCHEDULED_PIP_V3 16
+typedef struct {
+ pd_IdentityId_V3_t did;
+ pd_PipId_V3_t id;
+} pd_pips_expire_scheduled_pip_V3_t;
+
+#define PD_CALL_PORTFOLIO_CREATE_PORTFOLIO_V3 0
+typedef struct {
+ pd_PortfolioName_V3_t name;
+} pd_portfolio_create_portfolio_V3_t;
+
+#define PD_CALL_PORTFOLIO_DELETE_PORTFOLIO_V3 1
+typedef struct {
+ pd_PortfolioNumber_V3_t num;
+} pd_portfolio_delete_portfolio_V3_t;
+
+#define PD_CALL_PORTFOLIO_MOVE_PORTFOLIO_FUNDS_V3 2
+typedef struct {
+ pd_PortfolioId_V3_t from;
+ pd_PortfolioId_V3_t to;
+ pd_VecMovePortfolioItem_V3_t items;
+} pd_portfolio_move_portfolio_funds_V3_t;
+
+#define PD_CALL_PORTFOLIO_RENAME_PORTFOLIO_V3 3
+typedef struct {
+ pd_PortfolioNumber_V3_t num;
+ pd_PortfolioName_V3_t to_name;
+} pd_portfolio_rename_portfolio_V3_t;
+
+#define PD_CALL_PROTOCOLFEE_CHANGE_COEFFICIENT_V3 0
+typedef struct {
+ pd_PosRatio_V3_t coefficient;
+} pd_protocolfee_change_coefficient_V3_t;
+
+#define PD_CALL_SETTLEMENT_CREATE_VENUE_V3 0
+typedef struct {
+ pd_VenueDetails_V3_t details;
+ pd_VecAccountId_V3_t signers;
+ pd_VenueType_V3_t typ;
+} pd_settlement_create_venue_V3_t;
+
+#define PD_CALL_SETTLEMENT_ADD_INSTRUCTION_V3 3
+typedef struct {
+ pd_VenueId_V3_t venue_id;
+ pd_SettlementTypeBlockNumber_V3_t settlement_type;
+ pd_OptionMoment_V3_t trade_date;
+ pd_OptionMoment_V3_t value_date;
+ pd_VecLeg_V3_t legs;
+} pd_settlement_add_instruction_V3_t;
+
+#define PD_CALL_SETTLEMENT_ADD_AND_AFFIRM_INSTRUCTION_V3 4
+typedef struct {
+ pd_VenueId_V3_t venue_id;
+ pd_SettlementTypeBlockNumber_V3_t settlement_type;
+ pd_OptionMoment_V3_t trade_date;
+ pd_OptionMoment_V3_t value_date;
+ pd_VecLeg_V3_t legs;
+ pd_VecPortfolioId_V3_t portfolios;
+} pd_settlement_add_and_affirm_instruction_V3_t;
+
+#define PD_CALL_SETTLEMENT_AFFIRM_INSTRUCTION_V3 5
+typedef struct {
+ pd_InstructionId_V3_t id;
+ pd_VecPortfolioId_V3_t portfolios;
+ pd_u32_t max_legs_count;
+} pd_settlement_affirm_instruction_V3_t;
+
+#define PD_CALL_SETTLEMENT_WITHDRAW_AFFIRMATION_V3 6
+typedef struct {
+ pd_InstructionId_V3_t id;
+ pd_VecPortfolioId_V3_t portfolios;
+ pd_u32_t max_legs_count;
+} pd_settlement_withdraw_affirmation_V3_t;
+
+#define PD_CALL_SETTLEMENT_REJECT_INSTRUCTION_V3 7
+typedef struct {
+ pd_InstructionId_V3_t id;
+ pd_PortfolioId_V3_t portfolio;
+ pd_u32_t num_of_legs;
+} pd_settlement_reject_instruction_V3_t;
+
+#define PD_CALL_SETTLEMENT_AFFIRM_WITH_RECEIPTS_V3 8
+typedef struct {
+ pd_InstructionId_V3_t id;
+ pd_VecReceiptDetails_V3_t receipt_details;
+ pd_VecPortfolioId_V3_t portfolios;
+ pd_u32_t max_legs_count;
+} pd_settlement_affirm_with_receipts_V3_t;
+
+#define PD_CALL_SETTLEMENT_CLAIM_RECEIPT_V3 9
+typedef struct {
+ pd_InstructionId_V3_t id;
+ pd_ReceiptDetails_V3_t receipt_details;
+} pd_settlement_claim_receipt_V3_t;
+
+#define PD_CALL_SETTLEMENT_UNCLAIM_RECEIPT_V3 10
+typedef struct {
+ pd_InstructionId_V3_t instruction_id;
+ pd_LegId_V3_t leg_id;
+} pd_settlement_unclaim_receipt_V3_t;
+
+#define PD_CALL_SETTLEMENT_SET_VENUE_FILTERING_V3 11
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_bool_t enabled;
+} pd_settlement_set_venue_filtering_V3_t;
+
+#define PD_CALL_SETTLEMENT_ALLOW_VENUES_V3 12
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_VecVenueId_V3_t venues;
+} pd_settlement_allow_venues_V3_t;
+
+#define PD_CALL_SETTLEMENT_DISALLOW_VENUES_V3 13
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_VecVenueId_V3_t venues;
+} pd_settlement_disallow_venues_V3_t;
+
+#define PD_CALL_SETTLEMENT_EXECUTE_SCHEDULED_INSTRUCTION_V3 15
+typedef struct {
+ pd_InstructionId_V3_t id;
+ pd_u32_t _legs_count;
+} pd_settlement_execute_scheduled_instruction_V3_t;
+
+#define PD_CALL_TREASURY_DISBURSEMENT_V3 0
+typedef struct {
+ pd_VecBeneficiary_V3_t beneficiaries;
+} pd_treasury_disbursement_V3_t;
+
+#define PD_CALL_TREASURY_REIMBURSEMENT_V3 1
+typedef struct {
+ pd_Balance_t amount;
+} pd_treasury_reimbursement_V3_t;
+
+#define PD_CALL_UTILITY_RELAY_TX_V3 3
+typedef struct {
+ pd_AccountId_V3_t target;
+ pd_OffChainSignature_V3_t signature;
+ pd_UniqueCall_V3_t call;
+} pd_utility_relay_tx_V3_t;
+
+#define PD_CALL_CONTRACTS_CALL_V3 0
+typedef struct {
+ pd_LookupasStaticLookupSource_V3_t dest;
+ pd_CompactBalance_t amount;
+ pd_Compactu64_t gas_limit;
+ pd_OptionCompactBalanceOf_t storage_deposit_limit;
+ pd_Vecu8_t data;
+} pd_contracts_call_V3_t;
+
+#define PD_CALL_CONTRACTS_INSTANTIATE_V3 2
+typedef struct {
+ pd_CompactBalance_t amount;
+ pd_Compactu64_t gas_limit;
+ pd_OptionCompactBalanceOf_t storage_deposit_limit;
+ pd_CodeHash_V3_t code_hash;
+ pd_Bytes_t data;
+ pd_Bytes_t salt;
+} pd_contracts_instantiate_V3_t;
+
+#endif
+
+typedef union {
+ pd_balances_transfer_V3_t balances_transfer_V3;
+ pd_balances_transfer_with_memo_V3_t balances_transfer_with_memo_V3;
+ pd_identity_accept_primary_key_V3_t identity_accept_primary_key_V3;
+ pd_identity_join_identity_as_key_V3_t identity_join_identity_as_key_V3;
+ pd_identity_leave_identity_as_key_V3_t identity_leave_identity_as_key_V3;
+ pd_identity_add_claim_V3_t identity_add_claim_V3;
+ pd_identity_revoke_claim_V3_t identity_revoke_claim_V3;
+ pd_identity_set_permission_to_signer_V3_t identity_set_permission_to_signer_V3;
+ pd_identity_freeze_secondary_keys_V3_t identity_freeze_secondary_keys_V3;
+ pd_identity_unfreeze_secondary_keys_V3_t identity_unfreeze_secondary_keys_V3;
+ pd_identity_add_authorization_V3_t identity_add_authorization_V3;
+ pd_identity_remove_authorization_V3_t identity_remove_authorization_V3;
+ pd_identity_add_investor_uniqueness_claim_V3_t identity_add_investor_uniqueness_claim_V3;
+ pd_identity_add_secondary_keys_with_authorization_V3_t identity_add_secondary_keys_with_authorization_V3;
+ pd_identity_remove_secondary_keys_V3_t identity_remove_secondary_keys_V3;
+ pd_multisig_create_multisig_V3_t multisig_create_multisig_V3;
+ pd_multisig_create_or_approve_proposal_as_identity_V3_t multisig_create_or_approve_proposal_as_identity_V3;
+ pd_multisig_create_or_approve_proposal_as_key_V3_t multisig_create_or_approve_proposal_as_key_V3;
+ pd_multisig_create_proposal_as_identity_V3_t multisig_create_proposal_as_identity_V3;
+ pd_multisig_create_proposal_as_key_V3_t multisig_create_proposal_as_key_V3;
+ pd_multisig_approve_as_identity_V3_t multisig_approve_as_identity_V3;
+ pd_multisig_approve_as_key_V3_t multisig_approve_as_key_V3;
+ pd_multisig_reject_as_identity_V3_t multisig_reject_as_identity_V3;
+ pd_multisig_reject_as_key_V3_t multisig_reject_as_key_V3;
+ pd_multisig_accept_multisig_signer_as_identity_V3_t multisig_accept_multisig_signer_as_identity_V3;
+ pd_multisig_accept_multisig_signer_as_key_V3_t multisig_accept_multisig_signer_as_key_V3;
+ pd_multisig_add_multisig_signer_V3_t multisig_add_multisig_signer_V3;
+ pd_multisig_remove_multisig_signer_V3_t multisig_remove_multisig_signer_V3;
+ pd_multisig_add_multisig_signers_via_creator_V3_t multisig_add_multisig_signers_via_creator_V3;
+ pd_multisig_remove_multisig_signers_via_creator_V3_t multisig_remove_multisig_signers_via_creator_V3;
+ pd_multisig_change_sigs_required_V3_t multisig_change_sigs_required_V3;
+ pd_multisig_make_multisig_primary_V3_t multisig_make_multisig_primary_V3;
+ pd_multisig_execute_scheduled_proposal_V3_t multisig_execute_scheduled_proposal_V3;
+ pd_staking_bond_V3_t staking_bond_V3;
+ pd_staking_bond_extra_V3_t staking_bond_extra_V3;
+ pd_staking_unbond_V3_t staking_unbond_V3;
+ pd_staking_withdraw_unbonded_V3_t staking_withdraw_unbonded_V3;
+ pd_staking_validate_V3_t staking_validate_V3;
+ pd_staking_nominate_V3_t staking_nominate_V3;
+ pd_staking_chill_V3_t staking_chill_V3;
+ pd_staking_set_payee_V3_t staking_set_payee_V3;
+ pd_staking_set_controller_V3_t staking_set_controller_V3;
+ pd_staking_rebond_V3_t staking_rebond_V3;
+ pd_pips_propose_V3_t pips_propose_V3;
+ pd_pips_vote_V3_t pips_vote_V3;
+ pd_utility_batch_V3_t utility_batch_V3;
+ pd_utility_batch_atomic_V3_t utility_batch_atomic_V3;
+ pd_utility_batch_optimistic_V3_t utility_batch_optimistic_V3;
+#ifdef SUBSTRATE_PARSER_FULL
+ pd_system_fill_block_V3_t system_fill_block_V3;
+ pd_system_remark_V3_t system_remark_V3;
+ pd_system_set_heap_pages_V3_t system_set_heap_pages_V3;
+ pd_system_set_code_V3_t system_set_code_V3;
+ pd_system_set_code_without_checks_V3_t system_set_code_without_checks_V3;
+ pd_system_remark_with_event_V3_t system_remark_with_event_V3;
+ pd_timestamp_set_V3_t timestamp_set_V3;
+ pd_indices_claim_V3_t indices_claim_V3;
+ pd_indices_transfer_V3_t indices_transfer_V3;
+ pd_indices_free_V3_t indices_free_V3;
+ pd_indices_force_transfer_V3_t indices_force_transfer_V3;
+ pd_indices_freeze_V3_t indices_freeze_V3;
+ pd_balances_deposit_block_reward_reserve_balance_V3_t balances_deposit_block_reward_reserve_balance_V3;
+ pd_balances_set_balance_V3_t balances_set_balance_V3;
+ pd_balances_force_transfer_V3_t balances_force_transfer_V3;
+ pd_balances_burn_account_balance_V3_t balances_burn_account_balance_V3;
+ pd_identity_invalidate_cdd_claims_V3_t identity_invalidate_cdd_claims_V3;
+ pd_identity_change_cdd_requirement_for_mk_rotation_V3_t identity_change_cdd_requirement_for_mk_rotation_V3;
+ pd_identity_gc_add_cdd_claim_V3_t identity_gc_add_cdd_claim_V3;
+ pd_identity_gc_revoke_cdd_claim_V3_t identity_gc_revoke_cdd_claim_V3;
+ pd_cddserviceproviders_set_active_members_limit_V3_t cddserviceproviders_set_active_members_limit_V3;
+ pd_cddserviceproviders_disable_member_V3_t cddserviceproviders_disable_member_V3;
+ pd_cddserviceproviders_add_member_V3_t cddserviceproviders_add_member_V3;
+ pd_cddserviceproviders_remove_member_V3_t cddserviceproviders_remove_member_V3;
+ pd_cddserviceproviders_swap_member_V3_t cddserviceproviders_swap_member_V3;
+ pd_cddserviceproviders_reset_members_V3_t cddserviceproviders_reset_members_V3;
+ pd_cddserviceproviders_abdicate_membership_V3_t cddserviceproviders_abdicate_membership_V3;
+ pd_polymeshcommittee_set_vote_threshold_V3_t polymeshcommittee_set_vote_threshold_V3;
+ pd_polymeshcommittee_set_release_coordinator_V3_t polymeshcommittee_set_release_coordinator_V3;
+ pd_polymeshcommittee_set_expires_after_V3_t polymeshcommittee_set_expires_after_V3;
+ pd_polymeshcommittee_vote_or_propose_V3_t polymeshcommittee_vote_or_propose_V3;
+ pd_polymeshcommittee_vote_V3_t polymeshcommittee_vote_V3;
+ pd_committeemembership_set_active_members_limit_V3_t committeemembership_set_active_members_limit_V3;
+ pd_committeemembership_disable_member_V3_t committeemembership_disable_member_V3;
+ pd_committeemembership_add_member_V3_t committeemembership_add_member_V3;
+ pd_committeemembership_remove_member_V3_t committeemembership_remove_member_V3;
+ pd_committeemembership_swap_member_V3_t committeemembership_swap_member_V3;
+ pd_committeemembership_reset_members_V3_t committeemembership_reset_members_V3;
+ pd_committeemembership_abdicate_membership_V3_t committeemembership_abdicate_membership_V3;
+ pd_technicalcommittee_set_vote_threshold_V3_t technicalcommittee_set_vote_threshold_V3;
+ pd_technicalcommittee_set_release_coordinator_V3_t technicalcommittee_set_release_coordinator_V3;
+ pd_technicalcommittee_set_expires_after_V3_t technicalcommittee_set_expires_after_V3;
+ pd_technicalcommittee_vote_or_propose_V3_t technicalcommittee_vote_or_propose_V3;
+ pd_technicalcommittee_vote_V3_t technicalcommittee_vote_V3;
+ pd_technicalcommitteemembership_set_active_members_limit_V3_t technicalcommitteemembership_set_active_members_limit_V3;
+ pd_technicalcommitteemembership_disable_member_V3_t technicalcommitteemembership_disable_member_V3;
+ pd_technicalcommitteemembership_add_member_V3_t technicalcommitteemembership_add_member_V3;
+ pd_technicalcommitteemembership_remove_member_V3_t technicalcommitteemembership_remove_member_V3;
+ pd_technicalcommitteemembership_swap_member_V3_t technicalcommitteemembership_swap_member_V3;
+ pd_technicalcommitteemembership_reset_members_V3_t technicalcommitteemembership_reset_members_V3;
+ pd_technicalcommitteemembership_abdicate_membership_V3_t technicalcommitteemembership_abdicate_membership_V3;
+ pd_upgradecommittee_set_vote_threshold_V3_t upgradecommittee_set_vote_threshold_V3;
+ pd_upgradecommittee_set_release_coordinator_V3_t upgradecommittee_set_release_coordinator_V3;
+ pd_upgradecommittee_set_expires_after_V3_t upgradecommittee_set_expires_after_V3;
+ pd_upgradecommittee_vote_or_propose_V3_t upgradecommittee_vote_or_propose_V3;
+ pd_upgradecommittee_vote_V3_t upgradecommittee_vote_V3;
+ pd_upgradecommitteemembership_set_active_members_limit_V3_t upgradecommitteemembership_set_active_members_limit_V3;
+ pd_upgradecommitteemembership_disable_member_V3_t upgradecommitteemembership_disable_member_V3;
+ pd_upgradecommitteemembership_add_member_V3_t upgradecommitteemembership_add_member_V3;
+ pd_upgradecommitteemembership_remove_member_V3_t upgradecommitteemembership_remove_member_V3;
+ pd_upgradecommitteemembership_swap_member_V3_t upgradecommitteemembership_swap_member_V3;
+ pd_upgradecommitteemembership_reset_members_V3_t upgradecommitteemembership_reset_members_V3;
+ pd_upgradecommitteemembership_abdicate_membership_V3_t upgradecommitteemembership_abdicate_membership_V3;
+ pd_bridge_change_controller_V3_t bridge_change_controller_V3;
+ pd_bridge_change_admin_V3_t bridge_change_admin_V3;
+ pd_bridge_change_timelock_V3_t bridge_change_timelock_V3;
+ pd_bridge_freeze_V3_t bridge_freeze_V3;
+ pd_bridge_unfreeze_V3_t bridge_unfreeze_V3;
+ pd_bridge_change_bridge_limit_V3_t bridge_change_bridge_limit_V3;
+ pd_bridge_change_bridge_exempted_V3_t bridge_change_bridge_exempted_V3;
+ pd_staking_set_validator_count_V3_t staking_set_validator_count_V3;
+ pd_staking_increase_validator_count_V3_t staking_increase_validator_count_V3;
+ pd_staking_add_permissioned_validator_V3_t staking_add_permissioned_validator_V3;
+ pd_staking_remove_permissioned_validator_V3_t staking_remove_permissioned_validator_V3;
+ pd_staking_validate_cdd_expiry_nominators_V3_t staking_validate_cdd_expiry_nominators_V3;
+ pd_staking_set_commission_cap_V3_t staking_set_commission_cap_V3;
+ pd_staking_set_min_bond_threshold_V3_t staking_set_min_bond_threshold_V3;
+ pd_staking_force_no_eras_V3_t staking_force_no_eras_V3;
+ pd_staking_force_new_era_V3_t staking_force_new_era_V3;
+ pd_staking_set_invulnerables_V3_t staking_set_invulnerables_V3;
+ pd_staking_force_unstake_V3_t staking_force_unstake_V3;
+ pd_staking_force_new_era_always_V3_t staking_force_new_era_always_V3;
+ pd_staking_cancel_deferred_slash_V3_t staking_cancel_deferred_slash_V3;
+ pd_staking_payout_stakers_V3_t staking_payout_stakers_V3;
+ pd_staking_set_history_depth_V3_t staking_set_history_depth_V3;
+ pd_staking_reap_stash_V3_t staking_reap_stash_V3;
+ pd_staking_payout_stakers_by_system_V3_t staking_payout_stakers_by_system_V3;
+ pd_staking_change_slashing_allowed_for_V3_t staking_change_slashing_allowed_for_V3;
+ pd_staking_update_permissioned_validator_intended_count_V3_t staking_update_permissioned_validator_intended_count_V3;
+ pd_session_set_keys_V3_t session_set_keys_V3;
+ pd_session_purge_keys_V3_t session_purge_keys_V3;
+ pd_grandpa_note_stalled_V3_t grandpa_note_stalled_V3;
+ pd_sudo_sudo_as_V3_t sudo_sudo_as_V3;
+ pd_asset_register_ticker_V3_t asset_register_ticker_V3;
+ pd_asset_accept_ticker_transfer_V3_t asset_accept_ticker_transfer_V3;
+ pd_asset_accept_asset_ownership_transfer_V3_t asset_accept_asset_ownership_transfer_V3;
+ pd_asset_create_asset_V3_t asset_create_asset_V3;
+ pd_asset_freeze_V3_t asset_freeze_V3;
+ pd_asset_unfreeze_V3_t asset_unfreeze_V3;
+ pd_asset_rename_asset_V3_t asset_rename_asset_V3;
+ pd_asset_issue_V3_t asset_issue_V3;
+ pd_asset_redeem_V3_t asset_redeem_V3;
+ pd_asset_make_divisible_V3_t asset_make_divisible_V3;
+ pd_asset_add_documents_V3_t asset_add_documents_V3;
+ pd_asset_remove_documents_V3_t asset_remove_documents_V3;
+ pd_asset_set_funding_round_V3_t asset_set_funding_round_V3;
+ pd_asset_update_identifiers_V3_t asset_update_identifiers_V3;
+ pd_asset_claim_classic_ticker_V3_t asset_claim_classic_ticker_V3;
+ pd_asset_reserve_classic_ticker_V3_t asset_reserve_classic_ticker_V3;
+ pd_capitaldistribution_distribute_V3_t capitaldistribution_distribute_V3;
+ pd_capitaldistribution_claim_V3_t capitaldistribution_claim_V3;
+ pd_capitaldistribution_push_benefit_V3_t capitaldistribution_push_benefit_V3;
+ pd_capitaldistribution_reclaim_V3_t capitaldistribution_reclaim_V3;
+ pd_capitaldistribution_remove_distribution_V3_t capitaldistribution_remove_distribution_V3;
+ pd_checkpoint_create_checkpoint_V3_t checkpoint_create_checkpoint_V3;
+ pd_checkpoint_set_schedules_max_complexity_V3_t checkpoint_set_schedules_max_complexity_V3;
+ pd_checkpoint_create_schedule_V3_t checkpoint_create_schedule_V3;
+ pd_checkpoint_remove_schedule_V3_t checkpoint_remove_schedule_V3;
+ pd_compliancemanager_add_compliance_requirement_V3_t compliancemanager_add_compliance_requirement_V3;
+ pd_compliancemanager_remove_compliance_requirement_V3_t compliancemanager_remove_compliance_requirement_V3;
+ pd_compliancemanager_reset_asset_compliance_V3_t compliancemanager_reset_asset_compliance_V3;
+ pd_compliancemanager_pause_asset_compliance_V3_t compliancemanager_pause_asset_compliance_V3;
+ pd_compliancemanager_resume_asset_compliance_V3_t compliancemanager_resume_asset_compliance_V3;
+ pd_compliancemanager_add_default_trusted_claim_issuer_V3_t compliancemanager_add_default_trusted_claim_issuer_V3;
+ pd_compliancemanager_remove_default_trusted_claim_issuer_V3_t compliancemanager_remove_default_trusted_claim_issuer_V3;
+ pd_corporateaction_set_max_details_length_V3_t corporateaction_set_max_details_length_V3;
+ pd_corporateaction_set_default_targets_V3_t corporateaction_set_default_targets_V3;
+ pd_corporateaction_set_default_withholding_tax_V3_t corporateaction_set_default_withholding_tax_V3;
+ pd_corporateaction_set_did_withholding_tax_V3_t corporateaction_set_did_withholding_tax_V3;
+ pd_corporateaction_initiate_corporate_action_V3_t corporateaction_initiate_corporate_action_V3;
+ pd_corporateaction_link_ca_doc_V3_t corporateaction_link_ca_doc_V3;
+ pd_corporateaction_remove_ca_V3_t corporateaction_remove_ca_V3;
+ pd_corporateaction_change_record_date_V3_t corporateaction_change_record_date_V3;
+ pd_corporateballot_attach_ballot_V3_t corporateballot_attach_ballot_V3;
+ pd_corporateballot_vote_V3_t corporateballot_vote_V3;
+ pd_corporateballot_change_end_V3_t corporateballot_change_end_V3;
+ pd_corporateballot_change_meta_V3_t corporateballot_change_meta_V3;
+ pd_corporateballot_change_rcv_V3_t corporateballot_change_rcv_V3;
+ pd_corporateballot_remove_ballot_V3_t corporateballot_remove_ballot_V3;
+ pd_pips_set_prune_historical_pips_V3_t pips_set_prune_historical_pips_V3;
+ pd_pips_set_min_proposal_deposit_V3_t pips_set_min_proposal_deposit_V3;
+ pd_pips_set_default_enactment_period_V3_t pips_set_default_enactment_period_V3;
+ pd_pips_set_pending_pip_expiry_V3_t pips_set_pending_pip_expiry_V3;
+ pd_pips_set_max_pip_skip_count_V3_t pips_set_max_pip_skip_count_V3;
+ pd_pips_set_active_pip_limit_V3_t pips_set_active_pip_limit_V3;
+ pd_pips_approve_committee_proposal_V3_t pips_approve_committee_proposal_V3;
+ pd_pips_reject_proposal_V3_t pips_reject_proposal_V3;
+ pd_pips_prune_proposal_V3_t pips_prune_proposal_V3;
+ pd_pips_reschedule_execution_V3_t pips_reschedule_execution_V3;
+ pd_pips_clear_snapshot_V3_t pips_clear_snapshot_V3;
+ pd_pips_snapshot_V3_t pips_snapshot_V3;
+ pd_pips_enact_snapshot_results_V3_t pips_enact_snapshot_results_V3;
+ pd_pips_execute_scheduled_pip_V3_t pips_execute_scheduled_pip_V3;
+ pd_pips_expire_scheduled_pip_V3_t pips_expire_scheduled_pip_V3;
+ pd_portfolio_create_portfolio_V3_t portfolio_create_portfolio_V3;
+ pd_portfolio_delete_portfolio_V3_t portfolio_delete_portfolio_V3;
+ pd_portfolio_move_portfolio_funds_V3_t portfolio_move_portfolio_funds_V3;
+ pd_portfolio_rename_portfolio_V3_t portfolio_rename_portfolio_V3;
+ pd_protocolfee_change_coefficient_V3_t protocolfee_change_coefficient_V3;
+ pd_settlement_create_venue_V3_t settlement_create_venue_V3;
+ pd_settlement_add_instruction_V3_t settlement_add_instruction_V3;
+ pd_settlement_add_and_affirm_instruction_V3_t settlement_add_and_affirm_instruction_V3;
+ pd_settlement_affirm_instruction_V3_t settlement_affirm_instruction_V3;
+ pd_settlement_withdraw_affirmation_V3_t settlement_withdraw_affirmation_V3;
+ pd_settlement_reject_instruction_V3_t settlement_reject_instruction_V3;
+ pd_settlement_affirm_with_receipts_V3_t settlement_affirm_with_receipts_V3;
+ pd_settlement_claim_receipt_V3_t settlement_claim_receipt_V3;
+ pd_settlement_unclaim_receipt_V3_t settlement_unclaim_receipt_V3;
+ pd_settlement_set_venue_filtering_V3_t settlement_set_venue_filtering_V3;
+ pd_settlement_allow_venues_V3_t settlement_allow_venues_V3;
+ pd_settlement_disallow_venues_V3_t settlement_disallow_venues_V3;
+ pd_settlement_execute_scheduled_instruction_V3_t settlement_execute_scheduled_instruction_V3;
+ pd_treasury_disbursement_V3_t treasury_disbursement_V3;
+ pd_treasury_reimbursement_V3_t treasury_reimbursement_V3;
+ pd_utility_relay_tx_V3_t utility_relay_tx_V3;
+ pd_contracts_call_V3_t contracts_call_V3;
+ pd_contracts_instantiate_V3_t contracts_instantiate_V3;
+#endif
+} pd_MethodNested_V3_t;
+
+typedef union {
+ pd_MethodBasic_V3_t basic;
+ pd_MethodNested_V3_t nested;
+} pd_Method_V3_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#pragma clang diagnostic pop
diff --git a/app/src/substrate/substrate_strings.h b/app/src/substrate/substrate_strings.h
index 1050a87..68e55be 100644
--- a/app/src/substrate/substrate_strings.h
+++ b/app/src/substrate/substrate_strings.h
@@ -21,52 +21,43 @@ extern "C" {
// Modules names
static const char* STR_MO_SYSTEM = "System";
-static const char* STR_MO_BABE = "Babe";
static const char* STR_MO_TIMESTAMP = "Timestamp";
static const char* STR_MO_INDICES = "Indices";
static const char* STR_MO_BALANCES = "Balances";
static const char* STR_MO_IDENTITY = "Identity";
-static const char* STR_MO_AUTHORSHIP = "Authorship";
-static const char* STR_MO_STAKING = "Staking";
-static const char* STR_MO_OFFENCES = "Offences";
-static const char* STR_MO_SESSION = "Session";
-static const char* STR_MO_FINALITYTRACKER = "Finalitytracker";
-static const char* STR_MO_GRANDPA = "Grandpa";
-static const char* STR_MO_IMONLINE = "Imonline";
-static const char* STR_MO_AUTHORITYDISCOVERY = "Authoritydiscovery";
-static const char* STR_MO_RANDOMNESSCOLLECTIVEFLIP = "Randomnesscollectiveflip";
-static const char* STR_MO_SUDO = "Sudo";
-static const char* STR_MO_MULTISIG = "Multisig";
-static const char* STR_MO_CONTRACTS = "Contracts";
-static const char* STR_MO_TREASURY = "Treasury";
+static const char* STR_MO_CDDSERVICEPROVIDERS = "Cddserviceproviders";
static const char* STR_MO_POLYMESHCOMMITTEE = "Polymeshcommittee";
static const char* STR_MO_COMMITTEEMEMBERSHIP = "Committeemembership";
-static const char* STR_MO_PIPS = "Pips";
static const char* STR_MO_TECHNICALCOMMITTEE = "Technicalcommittee";
static const char* STR_MO_TECHNICALCOMMITTEEMEMBERSHIP = "Technicalcommitteemembership";
static const char* STR_MO_UPGRADECOMMITTEE = "Upgradecommittee";
static const char* STR_MO_UPGRADECOMMITTEEMEMBERSHIP = "Upgradecommitteemembership";
-static const char* STR_MO_ASSET = "Asset";
+static const char* STR_MO_MULTISIG = "Multisig";
static const char* STR_MO_BRIDGE = "Bridge";
+static const char* STR_MO_STAKING = "Staking";
+static const char* STR_MO_SESSION = "Session";
+static const char* STR_MO_GRANDPA = "Grandpa";
+static const char* STR_MO_SUDO = "Sudo";
+static const char* STR_MO_ASSET = "Asset";
+static const char* STR_MO_CAPITALDISTRIBUTION = "Capitaldistribution";
+static const char* STR_MO_CHECKPOINT = "Checkpoint";
static const char* STR_MO_COMPLIANCEMANAGER = "Compliancemanager";
+static const char* STR_MO_CORPORATEACTION = "Corporateaction";
+static const char* STR_MO_CORPORATEBALLOT = "Corporateballot";
+static const char* STR_MO_PIPS = "Pips";
+static const char* STR_MO_PORTFOLIO = "Portfolio";
+static const char* STR_MO_PROTOCOLFEE = "Protocolfee";
static const char* STR_MO_SETTLEMENT = "Settlement";
-static const char* STR_MO_STO = "Sto";
-static const char* STR_MO_CDDSERVICEPROVIDERS = "Cddserviceproviders";
static const char* STR_MO_STATISTICS = "Statistics";
-static const char* STR_MO_PROTOCOLFEE = "Protocolfee";
+static const char* STR_MO_STO = "Sto";
+static const char* STR_MO_TREASURY = "Treasury";
static const char* STR_MO_UTILITY = "Utility";
-static const char* STR_MO_PORTFOLIO = "Portfolio";
-static const char* STR_MO_SCHEDULER = "Scheduler";
-static const char* STR_MO_CORPORATEACTION = "Corporateaction";
-static const char* STR_MO_CORPORATEBALLOT = "Corporateballot";
-static const char* STR_MO_CAPITALDISTRIBUTION = "Capitaldistribution";
-static const char* STR_MO_CHECKPOINT = "Checkpoint";
-static const char* STR_MO_CONFIDENTIAL = "Confidential";
-static const char* STR_MO_TESTUTILS = "Testutils";
-static const char* STR_MO_BASE = "Base";
static const char* STR_MO_EXTERNALAGENTS = "Externalagents";
static const char* STR_MO_RELAYER = "Relayer";
static const char* STR_MO_REWARDS = "Rewards";
+static const char* STR_MO_POLYMESHCONTRACTS = "Polymeshcontracts";
+static const char* STR_MO_PREIMAGE = "Preimage";
+static const char* STR_MO_CONTRACTS = "Contracts";
// Methods names
static const char* STR_ME_FILL_BLOCK = "Fill block";
@@ -74,13 +65,6 @@ static const char* STR_ME_REMARK = "Remark";
static const char* STR_ME_SET_HEAP_PAGES = "Set heap pages";
static const char* STR_ME_SET_CODE = "Set code";
static const char* STR_ME_SET_CODE_WITHOUT_CHECKS = "Set code without checks";
-static const char* STR_ME_SET_CHANGES_TRIE_CONFIG = "Set changes trie config";
-static const char* STR_ME_SET_STORAGE = "Set storage";
-static const char* STR_ME_KILL_STORAGE = "Kill storage";
-static const char* STR_ME_KILL_PREFIX = "Kill prefix";
-static const char* STR_ME_SUICIDE = "Suicide";
-static const char* STR_ME_REPORT_EQUIVOCATION = "Report equivocation";
-static const char* STR_ME_REPORT_EQUIVOCATION_UNSIGNED = "Report equivocation unsigned";
static const char* STR_ME_SET = "Set";
static const char* STR_ME_CLAIM = "Claim";
static const char* STR_ME_TRANSFER = "Transfer";
@@ -91,35 +75,72 @@ static const char* STR_ME_TRANSFER_WITH_MEMO = "Transfer with memo";
static const char* STR_ME_DEPOSIT_BLOCK_REWARD_RESERVE_BALANCE = "Deposit block reward reserve balance";
static const char* STR_ME_SET_BALANCE = "Set balance";
static const char* STR_ME_BURN_ACCOUNT_BALANCE = "Burn account balance";
-static const char* STR_ME_REGISTER_DID = "Register did";
-static const char* STR_ME_CDD_REGISTER_DID = "Cdd register did";
-static const char* STR_ME_MOCK_CDD_REGISTER_DID = "Mock cdd register did";
static const char* STR_ME_INVALIDATE_CDD_CLAIMS = "Invalidate cdd claims";
static const char* STR_ME_REMOVE_SECONDARY_KEYS = "Remove secondary keys";
static const char* STR_ME_ACCEPT_PRIMARY_KEY = "Accept primary key";
static const char* STR_ME_CHANGE_CDD_REQUIREMENT_FOR_MK_ROTATION = "Change cdd requirement for mk rotation";
static const char* STR_ME_JOIN_IDENTITY_AS_KEY = "Join identity as key";
-static const char* STR_ME_JOIN_IDENTITY_AS_IDENTITY = "Join identity as identity";
static const char* STR_ME_LEAVE_IDENTITY_AS_KEY = "Leave identity as key";
-static const char* STR_ME_LEAVE_IDENTITY_AS_IDENTITY = "Leave identity as identity";
static const char* STR_ME_ADD_CLAIM = "Add claim";
-static const char* STR_ME_FORWARDED_CALL = "Forwarded call";
static const char* STR_ME_REVOKE_CLAIM = "Revoke claim";
static const char* STR_ME_SET_PERMISSION_TO_SIGNER = "Set permission to signer";
-static const char* STR_ME_LEGACY_SET_PERMISSION_TO_SIGNER = "Legacy set permission to signer";
static const char* STR_ME_FREEZE_SECONDARY_KEYS = "Freeze secondary keys";
static const char* STR_ME_UNFREEZE_SECONDARY_KEYS = "Unfreeze secondary keys";
-static const char* STR_ME_GET_MY_DID = "Get my did";
-static const char* STR_ME_GET_CDD_OF = "Get cdd of";
static const char* STR_ME_ADD_AUTHORIZATION = "Add authorization";
static const char* STR_ME_REMOVE_AUTHORIZATION = "Remove authorization";
-static const char* STR_ME_ACCEPT_AUTHORIZATION = "Accept authorization";
static const char* STR_ME_ADD_SECONDARY_KEYS_WITH_AUTHORIZATION = "Add secondary keys with authorization";
-static const char* STR_ME_REVOKE_OFFCHAIN_AUTHORIZATION = "Revoke offchain authorization";
static const char* STR_ME_ADD_INVESTOR_UNIQUENESS_CLAIM = "Add investor uniqueness claim";
static const char* STR_ME_GC_ADD_CDD_CLAIM = "Gc add cdd claim";
static const char* STR_ME_GC_REVOKE_CDD_CLAIM = "Gc revoke cdd claim";
-static const char* STR_ME_SET_UNCLES = "Set uncles";
+static const char* STR_ME_REVOKE_CLAIM_BY_INDEX = "Revoke claim by index";
+static const char* STR_ME_ROTATE_PRIMARY_KEY_TO_SECONDARY = "Rotate primary key to secondary";
+static const char* STR_ME_SET_ACTIVE_MEMBERS_LIMIT = "Set active members limit";
+static const char* STR_ME_DISABLE_MEMBER = "Disable member";
+static const char* STR_ME_ADD_MEMBER = "Add member";
+static const char* STR_ME_REMOVE_MEMBER = "Remove member";
+static const char* STR_ME_SWAP_MEMBER = "Swap member";
+static const char* STR_ME_RESET_MEMBERS = "Reset members";
+static const char* STR_ME_ABDICATE_MEMBERSHIP = "Abdicate membership";
+static const char* STR_ME_SET_VOTE_THRESHOLD = "Set vote threshold";
+static const char* STR_ME_SET_RELEASE_COORDINATOR = "Set release coordinator";
+static const char* STR_ME_SET_EXPIRES_AFTER = "Set expires after";
+static const char* STR_ME_VOTE_OR_PROPOSE = "Vote or propose";
+static const char* STR_ME_VOTE = "Vote";
+static const char* STR_ME_CREATE_MULTISIG = "Create multisig";
+static const char* STR_ME_CREATE_OR_APPROVE_PROPOSAL_AS_IDENTITY = "Create or approve proposal as identity";
+static const char* STR_ME_CREATE_OR_APPROVE_PROPOSAL_AS_KEY = "Create or approve proposal as key";
+static const char* STR_ME_CREATE_PROPOSAL_AS_IDENTITY = "Create proposal as identity";
+static const char* STR_ME_CREATE_PROPOSAL_AS_KEY = "Create proposal as key";
+static const char* STR_ME_APPROVE_AS_IDENTITY = "Approve as identity";
+static const char* STR_ME_APPROVE_AS_KEY = "Approve as key";
+static const char* STR_ME_REJECT_AS_IDENTITY = "Reject as identity";
+static const char* STR_ME_REJECT_AS_KEY = "Reject as key";
+static const char* STR_ME_ACCEPT_MULTISIG_SIGNER_AS_IDENTITY = "Accept multisig signer as identity";
+static const char* STR_ME_ACCEPT_MULTISIG_SIGNER_AS_KEY = "Accept multisig signer as key";
+static const char* STR_ME_ADD_MULTISIG_SIGNER = "Add multisig signer";
+static const char* STR_ME_REMOVE_MULTISIG_SIGNER = "Remove multisig signer";
+static const char* STR_ME_ADD_MULTISIG_SIGNERS_VIA_CREATOR = "Add multisig signers via creator";
+static const char* STR_ME_REMOVE_MULTISIG_SIGNERS_VIA_CREATOR = "Remove multisig signers via creator";
+static const char* STR_ME_CHANGE_SIGS_REQUIRED = "Change sigs required";
+static const char* STR_ME_MAKE_MULTISIG_SIGNER = "Make multisig signer";
+static const char* STR_ME_MAKE_MULTISIG_PRIMARY = "Make multisig primary";
+static const char* STR_ME_EXECUTE_SCHEDULED_PROPOSAL = "Execute scheduled proposal";
+static const char* STR_ME_CHANGE_CONTROLLER = "Change controller";
+static const char* STR_ME_CHANGE_ADMIN = "Change admin";
+static const char* STR_ME_CHANGE_TIMELOCK = "Change timelock";
+static const char* STR_ME_UNFREEZE = "Unfreeze";
+static const char* STR_ME_CHANGE_BRIDGE_LIMIT = "Change bridge limit";
+static const char* STR_ME_CHANGE_BRIDGE_EXEMPTED = "Change bridge exempted";
+static const char* STR_ME_FORCE_HANDLE_BRIDGE_TX = "Force handle bridge tx";
+static const char* STR_ME_BATCH_PROPOSE_BRIDGE_TX = "Batch propose bridge tx";
+static const char* STR_ME_PROPOSE_BRIDGE_TX = "Propose bridge tx";
+static const char* STR_ME_HANDLE_BRIDGE_TX = "Handle bridge tx";
+static const char* STR_ME_FREEZE_TXS = "Freeze txs";
+static const char* STR_ME_UNFREEZE_TXS = "Unfreeze txs";
+static const char* STR_ME_HANDLE_SCHEDULED_BRIDGE_TX = "Handle scheduled bridge tx";
+static const char* STR_ME_ADD_FREEZE_ADMIN = "Add freeze admin";
+static const char* STR_ME_REMOVE_FREEZE_ADMIN = "Remove freeze admin";
+static const char* STR_ME_REMOVE_TXS = "Remove txs";
static const char* STR_ME_BOND = "Bond";
static const char* STR_ME_BOND_EXTRA = "Bond extra";
static const char* STR_ME_UNBOND = "Unbond";
@@ -131,7 +152,6 @@ static const char* STR_ME_SET_PAYEE = "Set payee";
static const char* STR_ME_SET_CONTROLLER = "Set controller";
static const char* STR_ME_SET_VALIDATOR_COUNT = "Set validator count";
static const char* STR_ME_INCREASE_VALIDATOR_COUNT = "Increase validator count";
-static const char* STR_ME_SCALE_VALIDATOR_COUNT = "Scale validator count";
static const char* STR_ME_ADD_PERMISSIONED_VALIDATOR = "Add permissioned validator";
static const char* STR_ME_REMOVE_PERMISSIONED_VALIDATOR = "Remove permissioned validator";
static const char* STR_ME_VALIDATE_CDD_EXPIRY_NOMINATORS = "Validate cdd expiry nominators";
@@ -147,86 +167,17 @@ static const char* STR_ME_PAYOUT_STAKERS = "Payout stakers";
static const char* STR_ME_REBOND = "Rebond";
static const char* STR_ME_SET_HISTORY_DEPTH = "Set history depth";
static const char* STR_ME_REAP_STASH = "Reap stash";
-static const char* STR_ME_SUBMIT_ELECTION_SOLUTION = "Submit election solution";
-static const char* STR_ME_SUBMIT_ELECTION_SOLUTION_UNSIGNED = "Submit election solution unsigned";
static const char* STR_ME_PAYOUT_STAKERS_BY_SYSTEM = "Payout stakers by system";
static const char* STR_ME_CHANGE_SLASHING_ALLOWED_FOR = "Change slashing allowed for";
static const char* STR_ME_UPDATE_PERMISSIONED_VALIDATOR_INTENDED_COUNT = "Update permissioned validator intended count";
static const char* STR_ME_SET_KEYS = "Set keys";
static const char* STR_ME_PURGE_KEYS = "Purge keys";
-static const char* STR_ME_FINAL_HINT = "Final hint";
static const char* STR_ME_NOTE_STALLED = "Note stalled";
-static const char* STR_ME_HEARTBEAT = "Heartbeat";
-static const char* STR_ME_SET_SLASHING_PARAMS = "Set slashing params";
-static const char* STR_ME_SUDO = "Sudo";
-static const char* STR_ME_SUDO_UNCHECKED_WEIGHT = "Sudo unchecked weight";
-static const char* STR_ME_SET_KEY = "Set key";
static const char* STR_ME_SUDO_AS = "Sudo as";
-static const char* STR_ME_CREATE_MULTISIG = "Create multisig";
-static const char* STR_ME_CREATE_OR_APPROVE_PROPOSAL_AS_IDENTITY = "Create or approve proposal as identity";
-static const char* STR_ME_CREATE_OR_APPROVE_PROPOSAL_AS_KEY = "Create or approve proposal as key";
-static const char* STR_ME_CREATE_PROPOSAL_AS_IDENTITY = "Create proposal as identity";
-static const char* STR_ME_CREATE_PROPOSAL_AS_KEY = "Create proposal as key";
-static const char* STR_ME_APPROVE_AS_IDENTITY = "Approve as identity";
-static const char* STR_ME_APPROVE_AS_KEY = "Approve as key";
-static const char* STR_ME_REJECT_AS_IDENTITY = "Reject as identity";
-static const char* STR_ME_REJECT_AS_KEY = "Reject as key";
-static const char* STR_ME_ACCEPT_MULTISIG_SIGNER_AS_IDENTITY = "Accept multisig signer as identity";
-static const char* STR_ME_ACCEPT_MULTISIG_SIGNER_AS_KEY = "Accept multisig signer as key";
-static const char* STR_ME_ADD_MULTISIG_SIGNER = "Add multisig signer";
-static const char* STR_ME_REMOVE_MULTISIG_SIGNER = "Remove multisig signer";
-static const char* STR_ME_ADD_MULTISIG_SIGNERS_VIA_CREATOR = "Add multisig signers via creator";
-static const char* STR_ME_REMOVE_MULTISIG_SIGNERS_VIA_CREATOR = "Remove multisig signers via creator";
-static const char* STR_ME_CHANGE_SIGS_REQUIRED = "Change sigs required";
-static const char* STR_ME_MAKE_MULTISIG_SIGNER = "Make multisig signer";
-static const char* STR_ME_MAKE_MULTISIG_PRIMARY = "Make multisig primary";
-static const char* STR_ME_EXECUTE_SCHEDULED_PROPOSAL = "Execute scheduled proposal";
-static const char* STR_ME_UPDATE_SCHEDULE = "Update schedule";
-static const char* STR_ME_PUT_CODE = "Put code";
-static const char* STR_ME_CALL = "Call";
-static const char* STR_ME_INSTANTIATE = "Instantiate";
-static const char* STR_ME_FREEZE_INSTANTIATION = "Freeze instantiation";
-static const char* STR_ME_UNFREEZE_INSTANTIATION = "Unfreeze instantiation";
-static const char* STR_ME_TRANSFER_TEMPLATE_OWNERSHIP = "Transfer template ownership";
-static const char* STR_ME_CHANGE_TEMPLATE_FEES = "Change template fees";
-static const char* STR_ME_CHANGE_TEMPLATE_META_URL = "Change template meta url";
-static const char* STR_ME_DISBURSEMENT = "Disbursement";
-static const char* STR_ME_REIMBURSEMENT = "Reimbursement";
-static const char* STR_ME_SET_VOTE_THRESHOLD = "Set vote threshold";
-static const char* STR_ME_SET_RELEASE_COORDINATOR = "Set release coordinator";
-static const char* STR_ME_SET_EXPIRES_AFTER = "Set expires after";
-static const char* STR_ME_CLOSE = "Close";
-static const char* STR_ME_VOTE_OR_PROPOSE = "Vote or propose";
-static const char* STR_ME_VOTE = "Vote";
-static const char* STR_ME_SET_ACTIVE_MEMBERS_LIMIT = "Set active members limit";
-static const char* STR_ME_DISABLE_MEMBER = "Disable member";
-static const char* STR_ME_ADD_MEMBER = "Add member";
-static const char* STR_ME_REMOVE_MEMBER = "Remove member";
-static const char* STR_ME_SWAP_MEMBER = "Swap member";
-static const char* STR_ME_RESET_MEMBERS = "Reset members";
-static const char* STR_ME_ABDICATE_MEMBERSHIP = "Abdicate membership";
-static const char* STR_ME_SET_PRUNE_HISTORICAL_PIPS = "Set prune historical pips";
-static const char* STR_ME_SET_MIN_PROPOSAL_DEPOSIT = "Set min proposal deposit";
-static const char* STR_ME_SET_DEFAULT_ENACTMENT_PERIOD = "Set default enactment period";
-static const char* STR_ME_SET_PENDING_PIP_EXPIRY = "Set pending pip expiry";
-static const char* STR_ME_SET_MAX_PIP_SKIP_COUNT = "Set max pip skip count";
-static const char* STR_ME_SET_ACTIVE_PIP_LIMIT = "Set active pip limit";
-static const char* STR_ME_PROPOSE = "Propose";
-static const char* STR_ME_APPROVE_COMMITTEE_PROPOSAL = "Approve committee proposal";
-static const char* STR_ME_REJECT_PROPOSAL = "Reject proposal";
-static const char* STR_ME_PRUNE_PROPOSAL = "Prune proposal";
-static const char* STR_ME_RESCHEDULE_EXECUTION = "Reschedule execution";
-static const char* STR_ME_CLEAR_SNAPSHOT = "Clear snapshot";
-static const char* STR_ME_SNAPSHOT = "Snapshot";
-static const char* STR_ME_ENACT_SNAPSHOT_RESULTS = "Enact snapshot results";
-static const char* STR_ME_EXECUTE_SCHEDULED_PIP = "Execute scheduled pip";
-static const char* STR_ME_EXPIRE_SCHEDULED_PIP = "Expire scheduled pip";
static const char* STR_ME_REGISTER_TICKER = "Register ticker";
static const char* STR_ME_ACCEPT_TICKER_TRANSFER = "Accept ticker transfer";
-static const char* STR_ME_ACCEPT_PRIMARY_ISSUANCE_AGENT_TRANSFER = "Accept primary issuance agent transfer";
static const char* STR_ME_ACCEPT_ASSET_OWNERSHIP_TRANSFER = "Accept asset ownership transfer";
static const char* STR_ME_CREATE_ASSET = "Create asset";
-static const char* STR_ME_UNFREEZE = "Unfreeze";
static const char* STR_ME_RENAME_ASSET = "Rename asset";
static const char* STR_ME_ISSUE = "Issue";
static const char* STR_ME_REDEEM = "Redeem";
@@ -235,25 +186,18 @@ static const char* STR_ME_ADD_DOCUMENTS = "Add documents";
static const char* STR_ME_REMOVE_DOCUMENTS = "Remove documents";
static const char* STR_ME_SET_FUNDING_ROUND = "Set funding round";
static const char* STR_ME_UPDATE_IDENTIFIERS = "Update identifiers";
-static const char* STR_ME_ADD_EXTENSION = "Add extension";
-static const char* STR_ME_ARCHIVE_EXTENSION = "Archive extension";
-static const char* STR_ME_UNARCHIVE_EXTENSION = "Unarchive extension";
-static const char* STR_ME_REMOVE_PRIMARY_ISSUANCE_AGENT = "Remove primary issuance agent";
-static const char* STR_ME_REMOVE_SMART_EXTENSION = "Remove smart extension";
static const char* STR_ME_CLAIM_CLASSIC_TICKER = "Claim classic ticker";
static const char* STR_ME_RESERVE_CLASSIC_TICKER = "Reserve classic ticker";
-static const char* STR_ME_CHANGE_CONTROLLER = "Change controller";
-static const char* STR_ME_CHANGE_ADMIN = "Change admin";
-static const char* STR_ME_CHANGE_TIMELOCK = "Change timelock";
-static const char* STR_ME_CHANGE_BRIDGE_LIMIT = "Change bridge limit";
-static const char* STR_ME_CHANGE_BRIDGE_EXEMPTED = "Change bridge exempted";
-static const char* STR_ME_FORCE_HANDLE_BRIDGE_TX = "Force handle bridge tx";
-static const char* STR_ME_BATCH_PROPOSE_BRIDGE_TX = "Batch propose bridge tx";
-static const char* STR_ME_PROPOSE_BRIDGE_TX = "Propose bridge tx";
-static const char* STR_ME_HANDLE_BRIDGE_TX = "Handle bridge tx";
-static const char* STR_ME_FREEZE_TXS = "Freeze txs";
-static const char* STR_ME_UNFREEZE_TXS = "Unfreeze txs";
-static const char* STR_ME_HANDLE_SCHEDULED_BRIDGE_TX = "Handle scheduled bridge tx";
+static const char* STR_ME_CONTROLLER_TRANSFER = "Controller transfer";
+static const char* STR_ME_REGISTER_CUSTOM_ASSET_TYPE = "Register custom asset type";
+static const char* STR_ME_DISTRIBUTE = "Distribute";
+static const char* STR_ME_PUSH_BENEFIT = "Push benefit";
+static const char* STR_ME_RECLAIM = "Reclaim";
+static const char* STR_ME_REMOVE_DISTRIBUTION = "Remove distribution";
+static const char* STR_ME_CREATE_CHECKPOINT = "Create checkpoint";
+static const char* STR_ME_SET_SCHEDULES_MAX_COMPLEXITY = "Set schedules max complexity";
+static const char* STR_ME_CREATE_SCHEDULE = "Create schedule";
+static const char* STR_ME_REMOVE_SCHEDULE = "Remove schedule";
static const char* STR_ME_ADD_COMPLIANCE_REQUIREMENT = "Add compliance requirement";
static const char* STR_ME_REMOVE_COMPLIANCE_REQUIREMENT = "Remove compliance requirement";
static const char* STR_ME_REPLACE_ASSET_COMPLIANCE = "Replace asset compliance";
@@ -263,8 +207,45 @@ static const char* STR_ME_RESUME_ASSET_COMPLIANCE = "Resume asset compliance";
static const char* STR_ME_ADD_DEFAULT_TRUSTED_CLAIM_ISSUER = "Add default trusted claim issuer";
static const char* STR_ME_REMOVE_DEFAULT_TRUSTED_CLAIM_ISSUER = "Remove default trusted claim issuer";
static const char* STR_ME_CHANGE_COMPLIANCE_REQUIREMENT = "Change compliance requirement";
+static const char* STR_ME_SET_MAX_DETAILS_LENGTH = "Set max details length";
+static const char* STR_ME_SET_DEFAULT_TARGETS = "Set default targets";
+static const char* STR_ME_SET_DEFAULT_WITHHOLDING_TAX = "Set default withholding tax";
+static const char* STR_ME_SET_DID_WITHHOLDING_TAX = "Set did withholding tax";
+static const char* STR_ME_INITIATE_CORPORATE_ACTION = "Initiate corporate action";
+static const char* STR_ME_LINK_CA_DOC = "Link ca doc";
+static const char* STR_ME_REMOVE_CA = "Remove ca";
+static const char* STR_ME_CHANGE_RECORD_DATE = "Change record date";
+static const char* STR_ME_ATTACH_BALLOT = "Attach ballot";
+static const char* STR_ME_CHANGE_END = "Change end";
+static const char* STR_ME_CHANGE_META = "Change meta";
+static const char* STR_ME_CHANGE_RCV = "Change rcv";
+static const char* STR_ME_REMOVE_BALLOT = "Remove ballot";
+static const char* STR_ME_SET_PRUNE_HISTORICAL_PIPS = "Set prune historical pips";
+static const char* STR_ME_SET_MIN_PROPOSAL_DEPOSIT = "Set min proposal deposit";
+static const char* STR_ME_SET_DEFAULT_ENACTMENT_PERIOD = "Set default enactment period";
+static const char* STR_ME_SET_PENDING_PIP_EXPIRY = "Set pending pip expiry";
+static const char* STR_ME_SET_MAX_PIP_SKIP_COUNT = "Set max pip skip count";
+static const char* STR_ME_SET_ACTIVE_PIP_LIMIT = "Set active pip limit";
+static const char* STR_ME_PROPOSE = "Propose";
+static const char* STR_ME_APPROVE_COMMITTEE_PROPOSAL = "Approve committee proposal";
+static const char* STR_ME_REJECT_PROPOSAL = "Reject proposal";
+static const char* STR_ME_PRUNE_PROPOSAL = "Prune proposal";
+static const char* STR_ME_RESCHEDULE_EXECUTION = "Reschedule execution";
+static const char* STR_ME_CLEAR_SNAPSHOT = "Clear snapshot";
+static const char* STR_ME_SNAPSHOT = "Snapshot";
+static const char* STR_ME_ENACT_SNAPSHOT_RESULTS = "Enact snapshot results";
+static const char* STR_ME_EXECUTE_SCHEDULED_PIP = "Execute scheduled pip";
+static const char* STR_ME_EXPIRE_SCHEDULED_PIP = "Expire scheduled pip";
+static const char* STR_ME_CREATE_PORTFOLIO = "Create portfolio";
+static const char* STR_ME_DELETE_PORTFOLIO = "Delete portfolio";
+static const char* STR_ME_MOVE_PORTFOLIO_FUNDS = "Move portfolio funds";
+static const char* STR_ME_RENAME_PORTFOLIO = "Rename portfolio";
+static const char* STR_ME_QUIT_PORTFOLIO_CUSTODY = "Quit portfolio custody";
+static const char* STR_ME_ACCEPT_PORTFOLIO_CUSTODY = "Accept portfolio custody";
+static const char* STR_ME_CHANGE_COEFFICIENT = "Change coefficient";
static const char* STR_ME_CREATE_VENUE = "Create venue";
-static const char* STR_ME_UPDATE_VENUE = "Update venue";
+static const char* STR_ME_UPDATE_VENUE_DETAILS = "Update venue details";
+static const char* STR_ME_UPDATE_VENUE_TYPE = "Update venue type";
static const char* STR_ME_ADD_INSTRUCTION = "Add instruction";
static const char* STR_ME_ADD_AND_AFFIRM_INSTRUCTION = "Add and affirm instruction";
static const char* STR_ME_AFFIRM_INSTRUCTION = "Affirm instruction";
@@ -276,75 +257,27 @@ static const char* STR_ME_UNCLAIM_RECEIPT = "Unclaim receipt";
static const char* STR_ME_SET_VENUE_FILTERING = "Set venue filtering";
static const char* STR_ME_ALLOW_VENUES = "Allow venues";
static const char* STR_ME_DISALLOW_VENUES = "Disallow venues";
+static const char* STR_ME_CHANGE_RECEIPT_VALIDITY = "Change receipt validity";
static const char* STR_ME_EXECUTE_SCHEDULED_INSTRUCTION = "Execute scheduled instruction";
+static const char* STR_ME_RESCHEDULE_INSTRUCTION = "Reschedule instruction";
+static const char* STR_ME_ADD_TRANSFER_MANAGER = "Add transfer manager";
+static const char* STR_ME_REMOVE_TRANSFER_MANAGER = "Remove transfer manager";
+static const char* STR_ME_ADD_EXEMPTED_ENTITIES = "Add exempted entities";
+static const char* STR_ME_REMOVE_EXEMPTED_ENTITIES = "Remove exempted entities";
static const char* STR_ME_CREATE_FUNDRAISER = "Create fundraiser";
static const char* STR_ME_INVEST = "Invest";
static const char* STR_ME_FREEZE_FUNDRAISER = "Freeze fundraiser";
static const char* STR_ME_UNFREEZE_FUNDRAISER = "Unfreeze fundraiser";
static const char* STR_ME_MODIFY_FUNDRAISER_WINDOW = "Modify fundraiser window";
static const char* STR_ME_STOP = "Stop";
-static const char* STR_ME_ADD_TRANSFER_MANAGER = "Add transfer manager";
-static const char* STR_ME_REMOVE_TRANSFER_MANAGER = "Remove transfer manager";
-static const char* STR_ME_ADD_EXEMPTED_ENTITIES = "Add exempted entities";
-static const char* STR_ME_REMOVE_EXEMPTED_ENTITIES = "Remove exempted entities";
-static const char* STR_ME_CHANGE_COEFFICIENT = "Change coefficient";
-static const char* STR_ME_CHANGE_BASE_FEE = "Change base fee";
+static const char* STR_ME_DISBURSEMENT = "Disbursement";
+static const char* STR_ME_REIMBURSEMENT = "Reimbursement";
static const char* STR_ME_BATCH = "Batch";
static const char* STR_ME_BATCH_ATOMIC = "Batch atomic";
static const char* STR_ME_BATCH_OPTIMISTIC = "Batch optimistic";
static const char* STR_ME_RELAY_TX = "Relay tx";
-static const char* STR_ME_CREATE_PORTFOLIO = "Create portfolio";
-static const char* STR_ME_DELETE_PORTFOLIO = "Delete portfolio";
-static const char* STR_ME_MOVE_PORTFOLIO_FUNDS = "Move portfolio funds";
-static const char* STR_ME_RENAME_PORTFOLIO = "Rename portfolio";
-static const char* STR_ME_SCHEDULE = "Schedule";
-static const char* STR_ME_CANCEL = "Cancel";
-static const char* STR_ME_SCHEDULE_NAMED = "Schedule named";
-static const char* STR_ME_CANCEL_NAMED = "Cancel named";
-static const char* STR_ME_SCHEDULE_AFTER = "Schedule after";
-static const char* STR_ME_SCHEDULE_NAMED_AFTER = "Schedule named after";
-static const char* STR_ME_SET_MAX_DETAILS_LENGTH = "Set max details length";
-static const char* STR_ME_RESET_CAA = "Reset caa";
-static const char* STR_ME_SET_DEFAULT_TARGETS = "Set default targets";
-static const char* STR_ME_SET_DEFAULT_WITHHOLDING_TAX = "Set default withholding tax";
-static const char* STR_ME_SET_DID_WITHHOLDING_TAX = "Set did withholding tax";
-static const char* STR_ME_INITIATE_CORPORATE_ACTION = "Initiate corporate action";
-static const char* STR_ME_LINK_CA_DOC = "Link ca doc";
-static const char* STR_ME_REMOVE_CA = "Remove ca";
-static const char* STR_ME_CHANGE_RECORD_DATE = "Change record date";
-static const char* STR_ME_ATTACH_BALLOT = "Attach ballot";
-static const char* STR_ME_CHANGE_END = "Change end";
-static const char* STR_ME_CHANGE_META = "Change meta";
-static const char* STR_ME_CHANGE_RCV = "Change rcv";
-static const char* STR_ME_REMOVE_BALLOT = "Remove ballot";
-static const char* STR_ME_DISTRIBUTE = "Distribute";
-static const char* STR_ME_PUSH_BENEFIT = "Push benefit";
-static const char* STR_ME_RECLAIM = "Reclaim";
-static const char* STR_ME_REMOVE_DISTRIBUTION = "Remove distribution";
-static const char* STR_ME_CREATE_CHECKPOINT = "Create checkpoint";
-static const char* STR_ME_SET_SCHEDULES_MAX_COMPLEXITY = "Set schedules max complexity";
-static const char* STR_ME_CREATE_SCHEDULE = "Create schedule";
-static const char* STR_ME_REMOVE_SCHEDULE = "Remove schedule";
-static const char* STR_ME_CONTROLLER_TRANSFER = "Controller transfer";
-static const char* STR_ME_CHANGE_RECEIPT_VALIDITY = "Change receipt validity";
-static const char* STR_ME_ADD_RANGE_PROOF = "Add range proof";
-static const char* STR_ME_ADD_VERIFY_RANGE_PROOF = "Add verify range proof";
-static const char* STR_ME_ADD_INVESTOR_UNIQUENESS_CLAIM_V2 = "Add investor uniqueness claim v2";
-static const char* STR_ME_SET_PUT_CODE_FLAG = "Set put code flag";
-static const char* STR_ME_REVOKE_CLAIM_BY_INDEX = "Revoke claim by index";
-static const char* STR_ME_QUIT_PORTFOLIO_CUSTODY = "Quit portfolio custody";
-static const char* STR_ME_RESCHEDULE_INSTRUCTION = "Reschedule instruction";
-static const char* STR_ME_CREATE_GROUP = "Create group";
-static const char* STR_ME_SET_GROUP_PERMISSIONS = "Set group permissions";
static const char* STR_ME_REMOVE_AGENT = "Remove agent";
static const char* STR_ME_ABDICATE = "Abdicate";
-static const char* STR_ME_CHANGE_GROUP = "Change group";
-static const char* STR_ME_ADD_FREEZE_ADMIN = "Add freeze admin";
-static const char* STR_ME_REMOVE_FREEZE_ADMIN = "Remove freeze admin";
-static const char* STR_ME_REGISTER_CUSTOM_ASSET_TYPE = "Register custom asset type";
-static const char* STR_ME_ACCEPT_PORTFOLIO_CUSTODY = "Accept portfolio custody";
-static const char* STR_ME_UPDATE_VENUE_DETAILS = "Update venue details";
-static const char* STR_ME_UPDATE_VENUE_TYPE = "Update venue type";
static const char* STR_ME_ACCEPT_BECOME_AGENT = "Accept become agent";
static const char* STR_ME_SET_PAYING_KEY = "Set paying key";
static const char* STR_ME_ACCEPT_PAYING_KEY = "Accept paying key";
@@ -353,9 +286,38 @@ static const char* STR_ME_UPDATE_POLYX_LIMIT = "Update polyx limit";
static const char* STR_ME_INCREASE_POLYX_LIMIT = "Increase polyx limit";
static const char* STR_ME_DECREASE_POLYX_LIMIT = "Decrease polyx limit";
static const char* STR_ME_CLAIM_ITN_REWARD = "Claim itn reward";
-static const char* STR_ME_SET_ITN_REWARD_STATUS = "Set itn reward status";
-static const char* STR_ME_ROTATE_PRIMARY_KEY_TO_SECONDARY = "Rotate primary key to secondary";
-static const char* STR_ME_REMOVE_TXS = "Remove txs";
+static const char* STR_ME_REMARK_WITH_EVENT = "Remark with event";
+static const char* STR_ME_REMOVE_SECONDARY_KEYS_OLD = "Remove secondary keys old";
+static const char* STR_ME_PLACEHOLDER_LEGACY_SET_PERMISSION_TO_SIGNER = "Placeholder legacy set permission to signer";
+static const char* STR_ME_ADD_SECONDARY_KEYS_WITH_AUTHORIZATION_OLD = "Add secondary keys with authorization old";
+static const char* STR_ME_SET_SECONDARY_KEY_PERMISSIONS = "Set secondary key permissions";
+static const char* STR_ME_MAKE_MULTISIG_SECONDARY = "Make multisig secondary";
+static const char* STR_ME_SUBMIT_ELECTION_SOLUTION = "Submit election solution";
+static const char* STR_ME_SUBMIT_ELECTION_SOLUTION_UNSIGNED = "Submit election solution unsigned";
+static const char* STR_ME_CREATE_ASSET_WITH_CUSTOM_TYPE = "Create asset with custom type";
+static const char* STR_ME_SET_ASSET_METADATA = "Set asset metadata";
+static const char* STR_ME_SET_ASSET_METADATA_DETAILS = "Set asset metadata details";
+static const char* STR_ME_REGISTER_AND_SET_LOCAL_ASSET_METADATA = "Register and set local asset metadata";
+static const char* STR_ME_REGISTER_ASSET_METADATA_LOCAL_TYPE = "Register asset metadata local type";
+static const char* STR_ME_REGISTER_ASSET_METADATA_GLOBAL_TYPE = "Register asset metadata global type";
+static const char* STR_ME_INITIATE_CORPORATE_ACTION_AND_DISTRIBUTE = "Initiate corporate action and distribute";
+static const char* STR_ME_SET_ACTIVE_ASSET_STATS = "Set active asset stats";
+static const char* STR_ME_BATCH_UPDATE_ASSET_STATS = "Batch update asset stats";
+static const char* STR_ME_SET_ASSET_TRANSFER_COMPLIANCE = "Set asset transfer compliance";
+static const char* STR_ME_SET_ENTITIES_EXEMPT = "Set entities exempt";
+static const char* STR_ME_CREATE_GROUP_AND_ADD_AUTH = "Create group and add auth";
+static const char* STR_ME_CREATE_AND_CHANGE_CUSTOM_GROUP = "Create and change custom group";
+static const char* STR_ME_CALL = "Call";
+static const char* STR_ME_INSTANTIATE_WITH_CODE = "Instantiate with code";
+static const char* STR_ME_INSTANTIATE = "Instantiate";
+static const char* STR_ME_UPLOAD_CODE = "Upload code";
+static const char* STR_ME_REMOVE_CODE = "Remove code";
+static const char* STR_ME_INSTANTIATE_WITH_CODE_PERMS = "Instantiate with code perms";
+static const char* STR_ME_INSTANTIATE_WITH_HASH_PERMS = "Instantiate with hash perms";
+static const char* STR_ME_NOTE_PREIMAGE = "Note preimage";
+static const char* STR_ME_UNNOTE_PREIMAGE = "Unnote preimage";
+static const char* STR_ME_REQUEST_PREIMAGE = "Request preimage";
+static const char* STR_ME_UNREQUEST_PREIMAGE = "Unrequest preimage";
// Items names
static const char* STR_IT__ratio = "Ratio";
@@ -367,23 +329,19 @@ static const char* STR_IT_items = "Items";
static const char* STR_IT_keys = "Keys";
static const char* STR_IT_prefix = "Prefix";
static const char* STR_IT__subkeys = "Subkeys";
-static const char* STR_IT_equivocation_proof = "Equivocation proof";
-static const char* STR_IT_key_owner_proof = "Key owner proof";
static const char* STR_IT_now = "Now";
static const char* STR_IT_index = "Index";
static const char* STR_IT_new_ = "New";
static const char* STR_IT_freeze = "Freeze";
static const char* STR_IT_dest = "Dest";
-static const char* STR_IT_value = "Amount";
+static const char* STR_IT_amount = "Amount";
static const char* STR_IT_memo = "Memo";
static const char* STR_IT_who = "Who";
static const char* STR_IT_new_free = "New free";
static const char* STR_IT_new_reserved = "New reserved";
static const char* STR_IT_source = "Source";
-static const char* STR_IT_amount = "Amount";
-static const char* STR_IT_uid = "Uid";
-static const char* STR_IT_secondary_keys = "Secondary keys";
static const char* STR_IT_target_account = "Target account";
+static const char* STR_IT_secondary_keys = "Secondary keys";
static const char* STR_IT_cdd = "Cdd";
static const char* STR_IT_disable_from = "Disable from";
static const char* STR_IT_expiry = "Expiry";
@@ -392,24 +350,45 @@ static const char* STR_IT_rotation_auth_id = "Rotation auth id";
static const char* STR_IT_optional_cdd_auth_id = "Optional cdd auth id";
static const char* STR_IT_auth_required = "Auth required";
static const char* STR_IT_auth_id = "Auth id";
-static const char* STR_IT_did = "Did";
static const char* STR_IT_target = "Target";
static const char* STR_IT_claim = "Claim";
-static const char* STR_IT_target_did = "Target did";
-static const char* STR_IT_proposal = "Proposal";
static const char* STR_IT_signer = "Signer";
+static const char* STR_IT_perms = "Perms";
static const char* STR_IT_permissions = "Permissions";
-static const char* STR_IT_of = "Of";
-static const char* STR_IT_authorization_data = "Authorization data";
+static const char* STR_IT_data = "Data";
static const char* STR_IT__auth_issuer_pays = "Auth issuer pays";
static const char* STR_IT_additional_keys = "Additional keys";
static const char* STR_IT_expires_at = "Expires at";
-static const char* STR_IT_auth = "Auth";
static const char* STR_IT_proof = "Proof";
-static const char* STR_IT_new_uncles = "New uncles";
+static const char* STR_IT_scope = "Scope";
+static const char* STR_IT_claim_type = "Claim type";
+static const char* STR_IT_limit = "Limit";
+static const char* STR_IT_at = "At";
+static const char* STR_IT_remove = "Remove";
+static const char* STR_IT_add = "Add";
+static const char* STR_IT_members = "Members";
+static const char* STR_IT_n = "N";
+static const char* STR_IT_d = "D";
+static const char* STR_IT_id = "Id";
+static const char* STR_IT_approve = "Approve";
+static const char* STR_IT_call = "Call";
+static const char* STR_IT_proposal = "Proposal";
+static const char* STR_IT_signers = "Signers";
+static const char* STR_IT_sigs_required = "Sigs required";
+static const char* STR_IT_multisig = "Multisig";
+static const char* STR_IT_auto_close = "Auto close";
+static const char* STR_IT_proposal_id = "Proposal id";
+static const char* STR_IT_multisig_did = "Multisig did";
+static const char* STR_IT__proposal_weight = "Proposal weight";
static const char* STR_IT_controller = "Controller";
+static const char* STR_IT_admin = "Admin";
+static const char* STR_IT_timelock = "Timelock";
+static const char* STR_IT_duration = "Duration";
+static const char* STR_IT_exempted = "Exempted";
+static const char* STR_IT_bridge_tx = "Bridge tx";
+static const char* STR_IT_bridge_txs = "Bridge txs";
+static const char* STR_IT_freeze_admin = "Freeze admin";
static const char* STR_IT_payee = "Payee";
-static const char* STR_IT_max_additional = "Amount";
static const char* STR_IT_num_slashing_spans = "Num slashing spans";
static const char* STR_IT_prefs = "Prefs";
static const char* STR_IT_targets = "Targets";
@@ -419,7 +398,7 @@ static const char* STR_IT_identity = "Identity";
static const char* STR_IT_intended_count = "Intended count";
static const char* STR_IT_new_cap = "New cap";
static const char* STR_IT_new_value = "New value";
-static const char* STR_IT_validators = "Validators";
+static const char* STR_IT_invulnerables = "Invulnerables";
static const char* STR_IT_stash = "Stash";
static const char* STR_IT_era = "Era";
static const char* STR_IT_slash_indices = "Slash indices";
@@ -432,172 +411,140 @@ static const char* STR_IT_score = "Score";
static const char* STR_IT_size = "Size";
static const char* STR_IT_slashing_switch = "Slashing switch";
static const char* STR_IT_new_intended_count = "New intended count";
-static const char* STR_IT_hint = "Hint";
+static const char* STR_IT_equivocation_proof = "Equivocation proof";
+static const char* STR_IT_key_owner_proof = "Key owner proof";
static const char* STR_IT_delay = "Delay";
static const char* STR_IT_best_finalized_block_number = "Best finalized block number";
-static const char* STR_IT_heartbeat = "Heartbeat";
-static const char* STR_IT__signature = "Signature";
-static const char* STR_IT_params = "Params";
-static const char* STR_IT_call = "Call";
static const char* STR_IT__weight = "Weight";
-static const char* STR_IT_signers = "Signers";
-static const char* STR_IT_sigs_required = "Sigs required";
-static const char* STR_IT_multisig = "Multisig";
-static const char* STR_IT_auto_close = "Auto close";
-static const char* STR_IT_proposal_id = "Proposal id";
-static const char* STR_IT_multisig_did = "Multisig did";
-static const char* STR_IT_proposal_weight = "Proposal weight";
-static const char* STR_IT_schedule = "Schedule";
-static const char* STR_IT_meta_info = "Meta info";
-static const char* STR_IT_instantiation_fee = "Instantiation fee";
-static const char* STR_IT_gas_limit = "Gas limit";
-static const char* STR_IT_data = "Data";
-static const char* STR_IT_endowment = "Endowment";
-static const char* STR_IT_code_hash = "Code hash";
-static const char* STR_IT_max_fee = "Max fee";
-static const char* STR_IT_new_owner = "New owner";
-static const char* STR_IT_new_instantiation_fee = "New instantiation fee";
-static const char* STR_IT_new_usage_fee = "New usage fee";
-static const char* STR_IT_new_url = "New url";
-static const char* STR_IT_beneficiaries = "Beneficiaries";
-static const char* STR_IT_n = "N";
-static const char* STR_IT_d = "D";
-static const char* STR_IT_id = "Id";
-static const char* STR_IT_approve = "Approve";
-static const char* STR_IT_limit = "Limit";
-static const char* STR_IT_at = "At";
-static const char* STR_IT_remove = "Remove";
-static const char* STR_IT_add = "Add";
-static const char* STR_IT_members = "Members";
-static const char* STR_IT_prune = "Prune";
-static const char* STR_IT_deposit = "Deposit";
-static const char* STR_IT_duration = "Duration";
-static const char* STR_IT_max = "Max";
-static const char* STR_IT_url = "Url";
-static const char* STR_IT_description = "Description";
-static const char* STR_IT_aye_or_nay = "Aye or nay";
-static const char* STR_IT_until = "Until";
-static const char* STR_IT_results = "Results";
static const char* STR_IT_ticker = "Ticker";
static const char* STR_IT_name = "Name";
-static const char* STR_IT_total_supply = "Total supply";
static const char* STR_IT_divisible = "Divisible";
static const char* STR_IT_asset_type = "Asset type";
static const char* STR_IT_identifiers = "Identifiers";
static const char* STR_IT_funding_round = "Funding round";
+static const char* STR_IT_disable_iu = "Disable iu";
static const char* STR_IT_docs = "Docs";
static const char* STR_IT_ids = "Ids";
-static const char* STR_IT_extension_details = "Extension details";
-static const char* STR_IT_extension_id = "Extension id";
static const char* STR_IT_ethereum_signature = "Ethereum signature";
static const char* STR_IT_classic_ticker_import = "Classic ticker import";
static const char* STR_IT_contract_did = "Contract did";
static const char* STR_IT_config = "Config";
-static const char* STR_IT_admin = "Admin";
-static const char* STR_IT_timelock = "Timelock";
-static const char* STR_IT_exempted = "Exempted";
-static const char* STR_IT_bridge_tx = "Bridge tx";
-static const char* STR_IT_bridge_txs = "Bridge txs";
+static const char* STR_IT_from_portfolio = "From portfolio";
+static const char* STR_IT_ty = "Ty";
+static const char* STR_IT_ca_id = "Ca id";
+static const char* STR_IT_portfolio = "Portfolio";
+static const char* STR_IT_currency = "Currency";
+static const char* STR_IT_per_share = "Per share";
+static const char* STR_IT_payment_at = "Payment at";
+static const char* STR_IT_holder = "Holder";
+static const char* STR_IT_max_complexity = "Max complexity";
+static const char* STR_IT_schedule = "Schedule";
static const char* STR_IT_sender_conditions = "Sender conditions";
static const char* STR_IT_receiver_conditions = "Receiver conditions";
static const char* STR_IT_asset_compliance = "Asset compliance";
static const char* STR_IT_issuer = "Issuer";
static const char* STR_IT_new_req = "New req";
+static const char* STR_IT_length = "Length";
+static const char* STR_IT_tax = "Tax";
+static const char* STR_IT_taxed_did = "Taxed did";
+static const char* STR_IT_kind = "Kind";
+static const char* STR_IT_decl_date = "Decl date";
+static const char* STR_IT_record_date = "Record date";
static const char* STR_IT_details = "Details";
-static const char* STR_IT_venue_type = "Venue type";
-static const char* STR_IT_venue_id = "Venue id";
+static const char* STR_IT_default_withholding_tax = "Default withholding tax";
+static const char* STR_IT_withholding_tax = "Withholding tax";
+static const char* STR_IT_range = "Range";
+static const char* STR_IT_meta = "Meta";
+static const char* STR_IT_rcv = "Rcv";
+static const char* STR_IT_votes = "Votes";
+static const char* STR_IT_end = "End";
+static const char* STR_IT_prune = "Prune";
+static const char* STR_IT_deposit = "Deposit";
+static const char* STR_IT_max = "Max";
+static const char* STR_IT_url = "Url";
+static const char* STR_IT_description = "Description";
+static const char* STR_IT_aye_or_nay = "Aye or nay";
+static const char* STR_IT_until = "Until";
+static const char* STR_IT_results = "Results";
+static const char* STR_IT_did = "Did";
+static const char* STR_IT_num = "Num";
+static const char* STR_IT_from = "From";
+static const char* STR_IT_to = "To";
+static const char* STR_IT_to_name = "To name";
+static const char* STR_IT_pid = "Pid";
+static const char* STR_IT_coefficient = "Coefficient";
+static const char* STR_IT_op = "Op";
+static const char* STR_IT_base_fee = "Base fee";
static const char* STR_IT_typ = "Typ";
+static const char* STR_IT_venue_id = "Venue id";
static const char* STR_IT_settlement_type = "Settlement type";
static const char* STR_IT_trade_date = "Trade date";
static const char* STR_IT_value_date = "Value date";
static const char* STR_IT_legs = "Legs";
static const char* STR_IT_portfolios = "Portfolios";
-static const char* STR_IT_instruction_id = "Instruction id";
+static const char* STR_IT_max_legs_count = "Max legs count";
+static const char* STR_IT_num_of_legs = "Num of legs";
static const char* STR_IT_receipt_details = "Receipt details";
+static const char* STR_IT_instruction_id = "Instruction id";
static const char* STR_IT_leg_id = "Leg id";
static const char* STR_IT_enabled = "Enabled";
static const char* STR_IT_venues = "Venues";
+static const char* STR_IT_receipt_uid = "Receipt uid";
+static const char* STR_IT_validity = "Validity";
+static const char* STR_IT__legs_count = "Legs count";
+static const char* STR_IT_new_transfer_manager = "New transfer manager";
+static const char* STR_IT_transfer_manager = "Transfer manager";
+static const char* STR_IT_exempted_entities = "Exempted entities";
+static const char* STR_IT_entities = "Entities";
static const char* STR_IT_offering_portfolio = "Offering portfolio";
static const char* STR_IT_offering_asset = "Offering asset";
static const char* STR_IT_raising_portfolio = "Raising portfolio";
static const char* STR_IT_raising_asset = "Raising asset";
static const char* STR_IT_tiers = "Tiers";
static const char* STR_IT_start = "Start";
-static const char* STR_IT_end = "End";
static const char* STR_IT_minimum_investment = "Minimum investment";
static const char* STR_IT_fundraiser_name = "Fundraiser name";
static const char* STR_IT_investment_portfolio = "Investment portfolio";
static const char* STR_IT_funding_portfolio = "Funding portfolio";
-static const char* STR_IT_fundraiser_id = "Fundraiser id";
-static const char* STR_IT_investment_amount = "Investment amount";
+static const char* STR_IT_purchase_amount = "Purchase amount";
static const char* STR_IT_max_price = "Max price";
static const char* STR_IT_receipt = "Receipt";
-static const char* STR_IT_new_transfer_manager = "New transfer manager";
-static const char* STR_IT_transfer_manager = "Transfer manager";
-static const char* STR_IT_exempted_entities = "Exempted entities";
-static const char* STR_IT_entities = "Entities";
-static const char* STR_IT_coefficient = "Coefficient";
-static const char* STR_IT_op = "Op";
-static const char* STR_IT_base_fee = "Base fee";
+static const char* STR_IT_beneficiaries = "Beneficiaries";
static const char* STR_IT_calls = "Calls";
static const char* STR_IT_signature = "Signature";
-static const char* STR_IT_num = "Num";
-static const char* STR_IT_from = "From";
-static const char* STR_IT_to = "To";
-static const char* STR_IT_to_name = "To name";
-static const char* STR_IT_when = "When";
-static const char* STR_IT_maybe_periodic = "Maybe periodic";
-static const char* STR_IT_priority = "Priority";
-static const char* STR_IT_after = "After";
-static const char* STR_IT_length = "Length";
-static const char* STR_IT_tax = "Tax";
-static const char* STR_IT_taxed_did = "Taxed did";
-static const char* STR_IT_kind = "Kind";
-static const char* STR_IT_decl_date = "Decl date";
-static const char* STR_IT_record_date = "Record date";
-static const char* STR_IT_default_withholding_tax = "Default withholding tax";
-static const char* STR_IT_withholding_tax = "Withholding tax";
-static const char* STR_IT_ca_id = "Ca id";
-static const char* STR_IT_range = "Range";
-static const char* STR_IT_meta = "Meta";
-static const char* STR_IT_rcv = "Rcv";
-static const char* STR_IT_votes = "Votes";
-static const char* STR_IT_portfolio = "Portfolio";
-static const char* STR_IT_currency = "Currency";
-static const char* STR_IT_payment_at = "Payment at";
-static const char* STR_IT_holder = "Holder";
-static const char* STR_IT_max_complexity = "Max complexity";
-static const char* STR_IT_from_portfolio = "From portfolio";
-static const char* STR_IT_max_legs_count = "Max legs count";
-static const char* STR_IT_receipt_uid = "Receipt uid";
-static const char* STR_IT_validity = "Validity";
-static const char* STR_IT_legs_count = "Legs count";
-static const char* STR_IT_purchase_amount = "Purchase amount";
-static const char* STR_IT_target_id = "Target id";
-static const char* STR_IT_secret_value = "Secret value";
-static const char* STR_IT_prover = "Prover";
-static const char* STR_IT_is_enabled = "Is enabled";
-static const char* STR_IT_per_share = "Per share";
-static const char* STR_IT_scope = "Scope";
-static const char* STR_IT_claim_type = "Claim type";
-static const char* STR_IT__proposal_weight = "Proposal weight";
-static const char* STR_IT_invulnerables = "Invulnerables";
-static const char* STR_IT_portfolio_id = "Portfolio id";
-static const char* STR_IT__legs_count = "Legs count";
-static const char* STR_IT_perms = "Perms";
static const char* STR_IT_agent = "Agent";
static const char* STR_IT_group = "Group";
-static const char* STR_IT_freeze_admin = "Freeze admin";
-static const char* STR_IT_disable_iu = "Disable iu";
-static const char* STR_IT_ty = "Ty";
-static const char* STR_IT_pid = "Pid";
static const char* STR_IT_user_key = "User key";
static const char* STR_IT_polyx_limit = "Polyx limit";
static const char* STR_IT_paying_key = "Paying key";
static const char* STR_IT_reward_address = "Reward address";
static const char* STR_IT_itn_address = "Itn address";
static const char* STR_IT_status = "Status";
-static const char* STR_IT_num_of_legs = "Num of legs";
+static const char* STR_IT_ratio = "Ratio";
+static const char* STR_IT_remark = "Remark";
+static const char* STR_IT_subkeys = "Subkeys";
+static const char* STR_IT_keys_to_remove = "Keys to remove";
+static const char* STR_IT_key = "Key";
+static const char* STR_IT_custom_asset_type = "Custom asset type";
+static const char* STR_IT_value = "Value";
+static const char* STR_IT_detail = "Detail";
+static const char* STR_IT_spec = "Spec";
+static const char* STR_IT_ca_args = "Ca args";
+static const char* STR_IT_asset = "Asset";
+static const char* STR_IT_stat_types = "Stat types";
+static const char* STR_IT_stat_type = "Stat type";
+static const char* STR_IT_values = "Values";
+static const char* STR_IT_transfer_conditions = "Transfer conditions";
+static const char* STR_IT_is_exempt = "Is exempt";
+static const char* STR_IT_exempt_key = "Exempt key";
+static const char* STR_IT_contract = "Contract";
+static const char* STR_IT_gas_limit = "Gas limit";
+static const char* STR_IT_storage_deposit_limit = "Storage deposit limit";
+static const char* STR_IT_endowment = "Endowment";
+static const char* STR_IT_salt = "Salt";
+static const char* STR_IT_code_hash = "Code hash";
+static const char* STR_IT_bytes = "Bytes";
+static const char* STR_IT_hash = "Hash";
// Country Codes
static const uint8_t COUNTRY_CODES_SIZE = 250;
diff --git a/app/src/substrate/substrate_types.c b/app/src/substrate/substrate_types.c
index 2efa7b0..4ddcbbf 100644
--- a/app/src/substrate/substrate_types.c
+++ b/app/src/substrate/substrate_types.c
@@ -148,9 +148,11 @@ parser_error_t _readCall(parser_context_t* c, pd_Call_t* v)
return parser_ok;
}
-parser_error_t _readHeader(parser_context_t* c, pd_Header_t* v)
+parser_error_t _readCompactBalanceOf(parser_context_t* c, pd_CompactBalanceOf_t* v)
{
- return parser_not_supported;
+ CHECK_INPUT()
+ CHECK_ERROR(_readCompactInt(c, &v->value));
+ return parser_ok;
}
parser_error_t _readBalanceOf(parser_context_t* c, pd_BalanceOf_t* v)
@@ -194,26 +196,14 @@ parser_error_t _readBalanceNoSymbol(parser_context_t* c, pd_BalanceNoSymbol_t* v
GEN_DEF_READARRAY(16)
}
-parser_error_t _readCompactBalanceOf(parser_context_t* c, pd_CompactBalanceOf_t* v)
-{
- CHECK_INPUT()
- CHECK_ERROR(_readCompactInt(c, &v->value));
- return parser_ok;
-}
-
-parser_error_t _readHeartbeat(parser_context_t* c, pd_Heartbeat_t* v)
-{
- return parser_not_supported;
-}
-
-parser_error_t _readVecHeader(parser_context_t* c, pd_VecHeader_t* v) {
- GEN_DEF_READVECTOR(Header)
-}
-
parser_error_t _readVecu32(parser_context_t* c, pd_Vecu32_t* v) {
GEN_DEF_READVECTOR(u32)
}
+parser_error_t _readVecu8(parser_context_t* c, pd_Vecu8_t* v) {
+ GEN_DEF_READVECTOR(u8)
+}
+
parser_error_t _readOptionu16(parser_context_t* c, pd_Optionu16_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
@@ -223,6 +213,15 @@ parser_error_t _readOptionu16(parser_context_t* c, pd_Optionu16_t* v)
return parser_ok;
}
+parser_error_t _readOptionBytes(parser_context_t* c, pd_OptionBytes_t* v)
+{
+ CHECK_ERROR(_readUInt8(c, &v->some))
+ if (v->some > 0) {
+ CHECK_ERROR(_readBytes(c, &v->contained))
+ }
+ return parser_ok;
+}
+
parser_error_t _readOptionBalance(parser_context_t* c, pd_OptionBalance_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
@@ -241,6 +240,15 @@ parser_error_t _readOptionBlockNumber(parser_context_t* c, pd_OptionBlockNumber_
return parser_ok;
}
+parser_error_t _readOptionCompactBalanceOf(parser_context_t* c, pd_OptionCompactBalanceOf_t* v)
+{
+ CHECK_ERROR(_readUInt8(c, &v->some))
+ if (v->some > 0) {
+ CHECK_ERROR(_readCompactBalanceOf(c, &v->contained))
+ }
+ return parser_ok;
+}
+
parser_error_t _readOptionu32(parser_context_t* c, pd_Optionu32_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
@@ -362,7 +370,7 @@ parser_error_t _toStringCompactu32(
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(v, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringCompactu64(
@@ -372,7 +380,7 @@ parser_error_t _toStringCompactu64(
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(v, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
///////////////////////////////////
@@ -515,15 +523,15 @@ parser_error_t _toStringCall(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringHeader(
- const pd_Header_t* v,
+parser_error_t _toStringCompactBalanceOf(
+ const pd_CompactBalanceOf_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
+ CHECK_ERROR(_toStringCompactInt(&v->value, COIN_AMOUNT_DECIMAL_PLACES, true, "", COIN_TICKER, outValue, outValueLen, pageIdx, pageCount))
+ return parser_ok;
}
parser_error_t _toStringBalanceOf(
@@ -639,50 +647,49 @@ parser_error_t _toStringBalanceNoSymbol(
return parser_ok;
}
-parser_error_t _toStringCompactBalanceOf(
- const pd_CompactBalanceOf_t* v,
+parser_error_t _toStringVecu32(
+ const pd_Vecu32_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CHECK_ERROR(_toStringCompactInt(&v->value, COIN_AMOUNT_DECIMAL_PLACES, "", COIN_TICKER, outValue, outValueLen, pageIdx, pageCount))
- number_inplace_trimming(outValue, 1);
- return parser_ok;
+ GEN_DEF_TOSTRING_VECTOR(u32);
}
-parser_error_t _toStringHeartbeat(
- const pd_Heartbeat_t* v,
+parser_error_t _toStringVecu8(
+ const pd_Vecu8_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
-}
-
-parser_error_t _toStringVecHeader(
- const pd_VecHeader_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount) {
- GEN_DEF_TOSTRING_VECTOR(Header)
+ GEN_DEF_TOSTRING_VECTOR(u8);
}
-parser_error_t _toStringVecu32(
- const pd_Vecu32_t* v,
+parser_error_t _toStringOptionu16(
+ const pd_Optionu16_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(u32);
+ CLEAN_AND_CHECK()
+
+ *pageCount = 1;
+ if (v->some > 0) {
+ CHECK_ERROR(_toStringu16(
+ &v->contained,
+ outValue, outValueLen,
+ pageIdx, pageCount));
+ } else {
+ snprintf(outValue, outValueLen, "None");
+ }
+ return parser_ok;
}
-parser_error_t _toStringOptionu16(
- const pd_Optionu16_t* v,
+parser_error_t _toStringOptionBytes(
+ const pd_OptionBytes_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -692,7 +699,7 @@ parser_error_t _toStringOptionu16(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringu16(
+ CHECK_ERROR(_toStringBytes(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -744,6 +751,27 @@ parser_error_t _toStringOptionBlockNumber(
return parser_ok;
}
+parser_error_t _toStringOptionCompactBalanceOf(
+ const pd_OptionCompactBalanceOf_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+
+ *pageCount = 1;
+ if (v->some > 0) {
+ CHECK_ERROR(_toStringCompactBalanceOf(
+ &v->contained,
+ outValue, outValueLen,
+ pageIdx, pageCount));
+ } else {
+ snprintf(outValue, outValueLen, "None");
+ }
+ return parser_ok;
+}
+
parser_error_t _toStringOptionu32(
const pd_Optionu32_t* v,
char* outValue,
diff --git a/app/src/substrate/substrate_types.h b/app/src/substrate/substrate_types.h
index 11c2913..0023896 100644
--- a/app/src/substrate/substrate_types.h
+++ b/app/src/substrate/substrate_types.h
@@ -105,9 +105,13 @@ typedef struct {
} pd_Call_t;
typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_Header_t;
+ compactInt_t value;
+} pd_CompactBalanceOf_t;
+
+typedef struct {
+ uint8_t some;
+ pd_Bytes_t contained;
+} pd_OptionBytes_t;
typedef struct {
pd_Balance_t value;
@@ -128,15 +132,6 @@ typedef struct {
const uint8_t* _ptr;
} pd_BalanceNoSymbol_t;
-typedef struct {
- compactInt_t value;
-} pd_CompactBalanceOf_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_Heartbeat_t;
-
typedef struct {
uint8_t some;
pd_Balance_t contained;
@@ -147,6 +142,11 @@ typedef struct {
pd_BlockNumber_t contained;
} pd_OptionBlockNumber_t;
+typedef struct {
+ uint8_t some;
+ pd_CompactBalanceOf_t contained;
+} pd_OptionCompactBalanceOf_t;
+
typedef struct {
uint8_t some;
pd_u32_t contained;
@@ -161,13 +161,13 @@ typedef struct {
uint64_t _len;
const uint8_t* _ptr;
uint64_t _lenBuffer;
-} pd_VecHeader_t;
+} pd_Vecu32_t;
typedef struct {
uint64_t _len;
const uint8_t* _ptr;
uint64_t _lenBuffer;
-} pd_Vecu32_t;
+} pd_Vecu8_t;
////////////////////////
// /Common types
diff --git a/app/src/substrate/substrate_types_V1.h b/app/src/substrate/substrate_types_V1.h
deleted file mode 100644
index 8ad07ed..0000000
--- a/app/src/substrate/substrate_types_V1.h
+++ /dev/null
@@ -1,1032 +0,0 @@
-/*******************************************************************************
- * (c) 2019 - 2022 Zondax GmbH
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ********************************************************************************/
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "substrate_types.h"
-#include
-#include
-
-// Based
-// https://github.com/paritytech/substrate/blob/master/node/primitives/src/lib.rs
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_DispatchableName_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_IdentityId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_Ticker_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_CddId_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_ClaimType_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_CountryCode_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_PortfolioNumber_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_ScopeId_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_IdentityId_V1_t identity;
- pd_Ticker_V1_t ticker;
- uint64_t _len;
- const uint8_t* _ptr;
- };
-} pd_Scope_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecDispatchableName_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_VecDispatchableName_V1_t contained;
-} pd_DispatchableNames_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_PalletName_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_PortfolioNumber_V1_t number;
-} pd_PortfolioKind_V1_t;
-
-typedef struct {
- pd_CountryCode_V1_t country_code;
- pd_Scope_V1_t scope;
-} pd_TupleCountryCodeScope_V1_t;
-
-typedef struct {
- pd_Scope_V1_t scope;
- pd_ScopeId_V1_t scopeId;
- pd_CddId_V1_t cddId;
-} pd_TupleScopeScopeIdCddId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecClaimType_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_Scope_V1_t scope;
- pd_CddId_V1_t cddId;
- pd_TupleCountryCodeScope_V1_t jurisdiction;
- pd_TupleScopeScopeIdCddId_V1_t investorUniqueness;
- };
-} pd_Claim_V1_t;
-
-typedef struct {
- pd_PalletName_V1_t palletName;
- pd_DispatchableNames_V1_t dispatchableNames;
-} pd_PalletPermissions_V1_t;
-
-typedef struct {
- pd_IdentityId_V1_t did;
- pd_PortfolioKind_V1_t kind;
-} pd_PortfolioId_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_VecClaimType_V1_t claims;
-} pd_TrustedFor_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_IdentityId_V1_t specific;
-} pd_TargetIdentity_V1_t;
-
-typedef struct {
- pd_IdentityId_V1_t issuer;
- pd_TrustedFor_V1_t trustedFor;
-} pd_TrustedIssuer_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecClaim_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecPalletPermissions_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecPortfolioId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecTicker_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_AccountId_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_VecTicker_V1_t contained;
-} pd_AssetPermissions_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_ChoiceTitle_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_Claim_V1_t claim;
- pd_VecClaim_V1_t vecClaim;
- pd_TargetIdentity_V1_t identity;
- };
-} pd_ConditionType_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_VecPalletPermissions_V1_t contained;
-} pd_ExtrinsicPermissions_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_Permill_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_VecPortfolioId_V1_t contained;
-} pd_PortfolioPermissions_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecTrustedIssuer_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_AGId_V1_t;
-
-typedef struct {
- pd_ConditionType_V1_t conditionType;
- pd_VecTrustedIssuer_V1_t issuers;
-} pd_Condition_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_DocumentType_V1_t;
-
-typedef struct {
- pd_PalletName_V1_t palletName;
- pd_bool_t total;
- pd_VecDispatchableName_V1_t dispatchableNames;
-} pd_LegacyPalletPermissions_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_Memo_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_Moment_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_MotionInfoLink_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_MotionTitle_V1_t;
-
-typedef struct {
- pd_AssetPermissions_V1_t asset;
- pd_ExtrinsicPermissions_V1_t extrinsic;
- pd_PortfolioPermissions_V1_t portfolio;
-} pd_Permissions_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_IdentityId_V1_t identity;
- pd_AccountId_V1_t account;
- };
-} pd_Signatory_V1_t;
-
-typedef struct {
- pd_Permill_V1_t value;
-} pd_Tax_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecChoiceTitle_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_AGId_V1_t agId;
-
-} pd_AgentGroup_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_CalendarUnit_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_CheckpointId_V1_t;
-
-typedef struct {
- compactInt_t value;
-} pd_CompactAccountIndex_V1_t;
-
-typedef struct {
- uint8_t value;
- uint8_t _len;
- const uint8_t* _ptr;
-} pd_DocumentHash_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_DocumentName_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_DocumentUri_V1_t;
-
-typedef struct {
- pd_MotionTitle_V1_t title;
- pd_MotionInfoLink_V1_t info_link;
- pd_VecChoiceTitle_V1_t choices;
-} pd_Motion_V1_t;
-
-typedef struct {
- uint8_t value;
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_OffChainSignature_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_DocumentType_V1_t contained;
-} pd_OptionDocumentType_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_Memo_V1_t contained;
-} pd_OptionMemo_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_Moment_V1_t contained;
-} pd_OptionMoment_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_PipId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_ReceiptMetadata_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_ScheduleId_V1_t;
-
-typedef struct {
- pd_Signatory_V1_t signer;
- pd_Permissions_V1_t permissions;
-} pd_SecondaryKey_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_Signature_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_SnapshotResult_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_TargetTreatment_V1_t;
-
-typedef struct {
- pd_IdentityId_V1_t id;
- pd_Tax_V1_t tax;
-} pd_TupleIdentityIdTax_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecCondition_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecIdentityId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecLegacyPalletPermissions_V1_t;
-
-typedef struct {
- pd_AccountId_V1_t accountId_1;
- pd_AccountId_V1_t accountId_2;
- pd_Balance_t balance;
-} pd_AddRelayerPayingKey_V1_t;
-
-typedef struct {
- uint8_t value;
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_AssetIdentifier_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_BallotTitle_V1_t;
-
-typedef struct {
- pd_Balance_t power;
- pd_Optionu16_t fallback;
-} pd_BallotVote_V1_t;
-
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_AgentGroup_V1_t agentGroup;
-} pd_BecomeAgent_V1_t;
-
-typedef struct {
- pd_IdentityId_V1_t identity;
- pd_Balance_t balance;
-} pd_Beneficiary_V1_t;
-
-typedef struct {
- uint32_t nonce;
- pd_AccountId_V1_t recipient;
- pd_Balance_t value;
- pd_Hash_t txHash;
-} pd_BridgeTx_V1_t;
-
-typedef struct {
- pd_CalendarUnit_V1_t unit;
- uint64_t amount;
-} pd_CalendarPeriod_V1_t;
-
-typedef struct {
- pd_u32_t digest_interval;
- pd_u32_t digest_levels;
-} pd_ChangesTrieConfiguration_V1_t;
-
-typedef struct {
- compactInt_t value;
-} pd_CompactPerBill_V1_t;
-
-typedef struct {
- pd_VecCondition_V1_t senderConditions;
- pd_VecCondition_V1_t receiverConditions;
- uint32_t id;
-} pd_ComplianceRequirement_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_Counter_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_CustomAssetTypeId_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_DocumentId_V1_t;
-
-typedef struct {
- pd_DocumentUri_V1_t uri;
- pd_DocumentHash_V1_t content_hash;
- pd_DocumentName_V1_t name;
- pd_OptionDocumentType_V1_t doc_type;
- pd_OptionMoment_V1_t filing_date;
-} pd_Document_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_EthereumAddress_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_FundingRoundName_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_KeyValue_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_Key_V1_t;
-
-typedef struct {
- pd_PortfolioId_V1_t from;
- pd_PortfolioId_V1_t to;
- pd_Ticker_V1_t asset;
- pd_Balance_t amount;
-} pd_Leg_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_LocalCAId_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_AccountId_V1_t id;
- pd_CompactAccountIndex_V1_t index;
- pd_Bytes_t raw;
- const uint8_t* _ptr;
- };
-} pd_LookupSource_V1_t;
-
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_Balance_t balance;
- pd_OptionMemo_V1_t memo;
-} pd_MovePortfolioItem_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_VecLegacyPalletPermissions_V1_t contained;
-} pd_OptionVecLegacyPalletPermissions_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_VecPortfolioId_V1_t contained;
-} pd_OptionVecPortfolioId_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_VecTicker_V1_t contained;
-} pd_OptionVecTicker_V1_t;
-
-typedef struct {
- pd_Permill_V1_t value;
-} pd_Percentage_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_Period_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_PipDescription_V1_t;
-
-typedef struct {
- pd_Balance_t total;
- pd_Balance_t price;
-} pd_PriceTier_V1_t;
-
-typedef struct {
- uint64_t receipt_uid;
- uint64_t leg_id;
- pd_AccountId_V1_t signer;
- pd_OffChainSignature_V1_t signature;
- pd_ReceiptMetadata_V1_t metadata;
-} pd_ReceiptDetails_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_Moment_V1_t scheduled;
- pd_ScheduleId_V1_t existingSchedule;
- pd_CheckpointId_V1_t existing;
- };
-} pd_RecordDateSpec_V1_t;
-
-typedef struct {
- pd_SecondaryKey_V1_t secondary_key;
- pd_Signature_V1_t auth_signature;
-} pd_SecondaryKeyWithAuth_V1_t;
-
-typedef struct {
- pd_u32_t dependency_id;
- uint8_t weight;
- pd_bool_t is_exclusive;
-} pd_StreamDependency_V1_t;
-
-typedef struct {
- pd_VecIdentityId_V1_t identities;
- pd_TargetTreatment_V1_t treatment;
-} pd_TargetIdentities_V1_t;
-
-typedef struct {
- pd_IdentityId_V1_t identity;
- pd_bool_t val;
-} pd_TupleIdentityIdbool_V1_t;
-
-typedef struct {
- pd_PipId_V1_t pip_id;
- pd_SnapshotResult_V1_t snapshot_result;
-} pd_TuplePipIdSnapshotResult_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_Url_V1_t;
-
-typedef struct {
- uint16_t value;
-} pd_ValidatorIndex_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecMotion_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecTupleIdentityIdTax_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_CustomAssetTypeId_V1_t custom;
-} pd_AssetType_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_IdentityId_V1_t identityId;
- pd_AccountId_V1_t accountId;
- pd_Ticker_V1_t ticker;
- pd_Permissions_V1_t permissions;
- pd_PortfolioId_V1_t portfolioId;
- pd_BecomeAgent_V1_t becomeAgent;
- pd_AddRelayerPayingKey_V1_t addRelayerPayingKey;
- };
-} pd_AuthorizationData_V1_t;
-
-typedef struct {
- pd_BallotTitle_V1_t title;
- pd_VecMotion_V1_t motions;
-} pd_BallotMeta_V1_t;
-
-typedef struct {
- pd_Moment_V1_t start;
- pd_Moment_V1_t end;
-} pd_BallotTimeRange_V1_t;
-
-typedef struct {
- pd_Ticker_V1_t ticker;
- pd_LocalCAId_V1_t local_id;
-} pd_CAId_V1_t;
-
-typedef struct {
- pd_EthereumAddress_V1_t eth_owner;
- pd_Ticker_V1_t ticker;
- pd_bool_t is_contract;
- pd_bool_t is_created;
-} pd_ClassicTickerImport_V1_t;
-
-typedef struct {
- pd_OptionVecTicker_V1_t asset;
- pd_OptionVecLegacyPalletPermissions_V1_t extrinsic;
- pd_OptionVecPortfolioId_V1_t portfolio;
-} pd_LegacyPermissions_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_BlockNumber_t blockNumber;
-} pd_MaybeBlock_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_ChangesTrieConfiguration_V1_t contained;
-} pd_OptionChangesTrieConfiguration_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_ReceiptDetails_V1_t contained;
-} pd_OptionReceiptDetails_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_RecordDateSpec_V1_t contained;
-} pd_OptionRecordDateSpec_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_Scope_V1_t contained;
-} pd_OptionScope_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_TargetIdentities_V1_t contained;
-} pd_OptionTargetIdentities_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_Tax_V1_t contained;
-} pd_OptionTax_V1_t;
-
-typedef struct {
- uint32_t stream_id;
- pd_StreamDependency_V1_t dependency;
-} pd_Priority_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_AccountId_V1_t accountId;
- };
-} pd_RewardDestination_V1_t;
-
-typedef struct {
- pd_OptionMoment_V1_t start;
- pd_CalendarPeriod_V1_t period;
- uint32_t remaining;
-} pd_ScheduleSpec_V1_t;
-
-typedef struct {
- uint8_t value;
- pd_BlockNumber_t blockNumber;
-} pd_SettlementType_V1_t;
-
-typedef struct {
- uint8_t max_ticker_length;
- pd_OptionMoment_V1_t registration_length;
-} pd_TickerRegistrationConfig_V1_t;
-
-typedef struct {
- uint8_t value;
- union {
- pd_Counter_V1_t countTransferManager;
- pd_Percentage_V1_t percentageTransferManager;
- };
-} pd_TransferManager_V1_t;
-
-typedef struct {
- uint64_t nonce;
- pd_Call_t call;
-} pd_UniqueCall_V1_t;
-
-typedef struct {
- pd_CompactPerBill_V1_t commission;
- pd_bool_t blocked;
-} pd_ValidatorPrefs_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecBallotVote_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecBeneficiary_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecBridgeTx_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecComplianceRequirement_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecDocument_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecLeg_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecLookupSource_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecMovePortfolioItem_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecPriceTier_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecReceiptDetails_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecSecondaryKeyWithAuth_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecSecondaryKey_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecSignatory_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecTupleIdentityIdbool_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecTuplePipIdSnapshotResult_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_AccountIndex_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_AssetName_V1_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_BabeEquivocationProof_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_CADetails_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_CAKind_V1_t;
-
-typedef compactInt_t pd_CompactAssignments_V1_t;
-
-typedef compactInt_t pd_CompactEraIndex_V1_t;
-
-typedef compactInt_t pd_CompactMoment_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_EcdsaSignature_V1_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_ElectionScore_V1_t;
-
-typedef struct {
- compactInt_t validators;
- compactInt_t nominators;
-} pd_ElectionSize_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_EraIndex_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_FundraiserName_V1_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_GrandpaEquivocationProof_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_InvestorZKProofData_V1_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_ItnRewardStatus_V1_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_KeyOwnerProof_V1_t;
-
-typedef struct {
- const uint8_t* _ptr;
-} pd_Keys_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_MemberCount_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_FundingRoundName_V1_t contained;
-} pd_OptionFundingRoundName_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_Period_V1_t contained;
-} pd_OptionPeriod_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_PipDescription_V1_t contained;
-} pd_OptionPipDescription_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_PortfolioNumber_V1_t contained;
-} pd_OptionPortfolioNumber_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_Url_V1_t contained;
-} pd_OptionUrl_V1_t;
-
-typedef struct {
- uint8_t some;
- pd_VecTupleIdentityIdTax_V1_t contained;
-} pd_OptionVecTupleIdentityIdTax_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_Perbill_V1_t;
-
-typedef struct {
- compactInt_t value;
-} pd_Percent_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_PortfolioName_V1_t;
-
-typedef struct {
- uint32_t numerator;
- uint32_t denominator;
-} pd_PosRatio_V1_t;
-
-typedef struct {
- uint32_t value;
-} pd_ProposalIndex_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_ProtocolOp_V1_t;
-
-typedef struct {
- // TODO: Not implemented
- uint8_t _NOT_IMPLEMENTED__DO_NOT_USE;
-} pd_ScopeClaimProof_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_SkippedCount_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_SlashingSwitch_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecAccountId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecAssetIdentifier_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecDocumentId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecKeyValue_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecKey_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecScopeId_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
- uint64_t _lenBuffer;
-} pd_VecValidatorIndex_V1_t;
-
-typedef struct {
- uint64_t _len;
- const uint8_t* _ptr;
-} pd_VenueDetails_V1_t;
-
-typedef struct {
- uint8_t value;
-} pd_VenueType_V1_t;
-
-typedef struct {
- uint64_t value;
-} pd_Weight_V1_t;
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/app/src/substrate/substrate_types_V2.c b/app/src/substrate/substrate_types_V2.c
index e728df6..1b4b01d 100644
--- a/app/src/substrate/substrate_types_V2.c
+++ b/app/src/substrate/substrate_types_V2.c
@@ -1804,7 +1804,7 @@ parser_error_t _toStringCompactAssignments_V2(
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(v, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringCompactEraIndex_V2(
@@ -1814,7 +1814,7 @@ parser_error_t _toStringCompactEraIndex_V2(
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(v, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringCompactMoment_V2(
@@ -1824,7 +1824,7 @@ parser_error_t _toStringCompactMoment_V2(
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(v, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringAGId_V2(
@@ -2820,7 +2820,7 @@ parser_error_t _toStringCompactAccountIndex_V2(
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(&v->value, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(&v->value, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringCompactPerBill_V2(
@@ -2831,7 +2831,7 @@ parser_error_t _toStringCompactPerBill_V2(
uint8_t* pageCount)
{
// 9 but shift 2 to show as percentage
- return _toStringCompactInt(&v->value, 7, "%", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(&v->value, 7, false, "%", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringComplianceRequirement_V2(
@@ -3195,8 +3195,8 @@ parser_error_t _toStringElectionSize_V2(
// First measure number of pages
uint8_t pages[2];
- CHECK_ERROR(_toStringCompactInt(&v->validators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringCompactInt(&v->nominators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringCompactInt(&v->validators, COIN_AMOUNT_DECIMAL_PLACES, false, "", "", outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringCompactInt(&v->nominators, COIN_AMOUNT_DECIMAL_PLACES, false, "", "", outValue, outValueLen, 0, &pages[1]))
*pageCount = 0;
for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
@@ -3208,13 +3208,13 @@ parser_error_t _toStringElectionSize_V2(
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringCompactInt(&v->validators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringCompactInt(&v->validators, COIN_AMOUNT_DECIMAL_PLACES, false, "", "", outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringCompactInt(&v->nominators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringCompactInt(&v->nominators, COIN_AMOUNT_DECIMAL_PLACES, false, "", "", outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
@@ -3891,7 +3891,7 @@ parser_error_t _toStringPercent_V2(
uint8_t* pageCount)
{
// 9 but shift 2 to show as percentage
- return _toStringCompactInt(&v->value, 7, "%", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(&v->value, 7, false, "%", "", outValue, outValueLen, pageIdx, pageCount);
}
parser_error_t _toStringPercentage_V2(
diff --git a/app/src/substrate/substrate_types_V1.c b/app/src/substrate/substrate_types_V3.c
similarity index 53%
rename from app/src/substrate/substrate_types_V1.c
rename to app/src/substrate/substrate_types_V3.c
index 119c6d2..d887e5f 100644
--- a/app/src/substrate/substrate_types_V1.c
+++ b/app/src/substrate/substrate_types_V3.c
@@ -16,7 +16,7 @@
#include "bignum.h"
#include "coin.h"
#include "parser_impl.h"
-#include "substrate_dispatch_V1.h"
+#include "substrate_dispatch_V3.h"
#include "substrate_strings.h"
#include
@@ -24,50 +24,35 @@
#include
#include
-#ifndef DISABLE_PREVIOUS
-
-parser_error_t _readCompactAssignments_V1(parser_context_t* c, pd_CompactAssignments_V1_t* v)
-{
- return _readCompactInt(c, v);
-}
-
-parser_error_t _readCompactEraIndex_V1(parser_context_t* c, pd_CompactEraIndex_V1_t* v)
-{
- return _readCompactInt(c, v);
-}
-
-parser_error_t _readCompactMoment_V1(parser_context_t* c, pd_CompactMoment_V1_t* v)
-{
- return _readCompactInt(c, v);
-}
-
-parser_error_t _readAGId_V1(parser_context_t* c, pd_AGId_V1_t* v)
+parser_error_t _readAGId_V3(parser_context_t* c, pd_AGId_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readAccountId_V1(parser_context_t* c, pd_AccountId_V1_t* v) {
+parser_error_t _readAccountId_V3(parser_context_t* c, pd_AccountId_V3_t* v) {
GEN_DEF_READARRAY(32)
}
-parser_error_t _readAccountIndex_V1(parser_context_t* c, pd_AccountIndex_V1_t* v)
+parser_error_t _readAccountIndex_V3(parser_context_t* c, pd_AccountIndex_V3_t* v)
{
- return _readUInt32(c, &v->value);
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt32(c, &v->value))
+ return parser_ok;
}
-parser_error_t _readAddRelayerPayingKey_V1(parser_context_t* c, pd_AddRelayerPayingKey_V1_t* v)
+parser_error_t _readAddRelayerPayingKey_V3(parser_context_t* c, pd_AddRelayerPayingKey_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readAccountId_V1(c, &v->accountId_1));
- CHECK_ERROR(_readAccountId_V1(c, &v->accountId_2));
+ CHECK_INPUT()
+ CHECK_ERROR(_readAccountId_V3(c, &v->accountId_1));
+ CHECK_ERROR(_readAccountId_V3(c, &v->accountId_2));
CHECK_ERROR(_readBalance(c, &v->balance));
return parser_ok;
}
-parser_error_t _readAgentGroup_V1(parser_context_t* c, pd_AgentGroup_V1_t* v)
+parser_error_t _readAgentGroup_V3(parser_context_t* c, pd_AgentGroup_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
@@ -78,7 +63,7 @@ parser_error_t _readAgentGroup_V1(parser_context_t* c, pd_AgentGroup_V1_t* v)
case 4: // PolymeshV1PIA
break;
case 1: // Custom
- CHECK_ERROR(_readAGId_V1(c, &v->agId))
+ CHECK_ERROR(_readAGId_V3(c, &v->agId))
break;
default:
return parser_unexpected_value;
@@ -87,7 +72,7 @@ parser_error_t _readAgentGroup_V1(parser_context_t* c, pd_AgentGroup_V1_t* v)
return parser_ok;
}
-parser_error_t _readAssetIdentifier_V1(parser_context_t* c, pd_AssetIdentifier_V1_t* v)
+parser_error_t _readAssetIdentifier_V3(parser_context_t* c, pd_AssetIdentifier_V3_t* v)
{
CHECK_INPUT()
@@ -110,7 +95,62 @@ parser_error_t _readAssetIdentifier_V1(parser_context_t* c, pd_AssetIdentifier_V
GEN_DEF_READARRAY(v->_len)
}
-parser_error_t _readAssetName_V1(parser_context_t* c, pd_AssetName_V1_t* v)
+parser_error_t _readAssetMetadataKey_V3(parser_context_t* c, pd_AssetMetadataKey_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt8(c, &v->value))
+ if (v->value < 2) {
+ CHECK_ERROR(_readUInt64(c, &v->key))
+ return parser_ok;
+ }
+ return parser_unexpected_value;
+}
+
+parser_error_t _readAssetMetadataLockStatusMoment_V3(parser_context_t* c, pd_AssetMetadataLockStatusMoment_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt8(c, &v->value))
+ if (v->value == 2) {
+ CHECK_ERROR(_readMoment_V3(c, &v->moment))
+ }
+ if (v->value > 2) {
+ return parser_unexpected_value;
+ }
+ return parser_ok;
+}
+
+parser_error_t _readAssetMetadataName_V3(parser_context_t* c, pd_AssetMetadataName_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readBytes(c, &v->value))
+ return parser_ok;
+}
+
+parser_error_t _readAssetMetadataSpec_V3(parser_context_t* c, pd_AssetMetadataSpec_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readOptionBytes(c, &v->url))
+ CHECK_ERROR(_readOptionBytes(c, &v->description))
+ CHECK_ERROR(_readOptionBytes(c, &v->typeDef))
+ return parser_ok;
+}
+
+parser_error_t _readAssetMetadataValueDetailMoment_V3(parser_context_t* c, pd_AssetMetadataValueDetailMoment_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readOptionMoment_V3(c, &v->expire))
+ CHECK_ERROR(_readAssetMetadataLockStatusMoment_V3(c, &v->lockStatus))
+ return parser_ok;
+}
+
+parser_error_t _readAssetMetadataValue_V3(parser_context_t* c, pd_AssetMetadataValue_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readBytes(c, &v->value))
+ return parser_ok;
+}
+
+parser_error_t _readAssetName_V3(parser_context_t* c, pd_AssetName_V3_t* v)
{
CHECK_INPUT()
@@ -124,7 +164,7 @@ parser_error_t _readAssetName_V1(parser_context_t* c, pd_AssetName_V1_t* v)
return parser_ok;
}
-parser_error_t _readAssetPermissions_V1(parser_context_t* c, pd_AssetPermissions_V1_t* v)
+parser_error_t _readAssetPermissions_V3(parser_context_t* c, pd_AssetPermissions_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -132,7 +172,7 @@ parser_error_t _readAssetPermissions_V1(parser_context_t* c, pd_AssetPermissions
break;
case 1: // These
case 2: // Except
- CHECK_ERROR(_readVecTicker_V1(c, &v->contained))
+ CHECK_ERROR(_readVecTicker_V3(c, &v->contained))
break;
default:
return parser_unexpected_value;
@@ -140,7 +180,7 @@ parser_error_t _readAssetPermissions_V1(parser_context_t* c, pd_AssetPermissions
return parser_ok;
}
-parser_error_t _readAssetType_V1(parser_context_t* c, pd_AssetType_V1_t* v)
+parser_error_t _readAssetType_V3(parser_context_t* c, pd_AssetType_V3_t* v)
{
CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
@@ -151,44 +191,47 @@ parser_error_t _readAssetType_V1(parser_context_t* c, pd_AssetType_V1_t* v)
if (v->value == 9) {
// Custom type
- CHECK_ERROR(_readCustomAssetTypeId_V1(c, &v->custom))
+ CHECK_ERROR(_readCustomAssetTypeId_V3(c, &v->custom))
}
return parser_ok;
}
-parser_error_t _readAuthorizationData_V1(parser_context_t* c, pd_AuthorizationData_V1_t* v)
+parser_error_t _readAuthorizationDataAccountId_V3(parser_context_t* c, pd_AuthorizationDataAccountId_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // AttestPrimaryKeyRotation
- CHECK_ERROR(_readIdentityId_V1(c, &v->identityId))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->identityId))
break;
case 1: // RotatePrimaryKey
break;
case 2: // TransferTicker
- CHECK_ERROR(_readTicker_V1(c, &v->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker))
break;
case 3: // AddMultiSigSigner
- CHECK_ERROR(_readAccountId_V1(c, &v->accountId))
+ CHECK_ERROR(_readAccountId_V3(c, &v->accountId))
break;
case 4: // TransferAssetOwnership
- CHECK_ERROR(_readTicker_V1(c, &v->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker))
break;
case 5: // JoinIdentity
- CHECK_ERROR(_readPermissions_V1(c, &v->permissions))
+ CHECK_ERROR(_readPermissions_V3(c, &v->permissions))
break;
case 6: // PortfolioCustody
- CHECK_ERROR(_readPortfolioId_V1(c, &v->portfolioId))
+ CHECK_ERROR(_readPortfolioId_V3(c, &v->portfolioId))
break;
case 7: // BecomeAgent
- CHECK_ERROR(_readBecomeAgent_V1(c, &v->becomeAgent))
+ CHECK_ERROR(_readBecomeAgent_V3(c, &v->becomeAgent))
break;
case 8: // AddRelayerPayingKey
- CHECK_ERROR(_readAddRelayerPayingKey_V1(c, &v->addRelayerPayingKey))
+ CHECK_ERROR(_readAddRelayerPayingKey_V3(c, &v->addRelayerPayingKey))
+ break;
+ case 9: // RotatePrimaryKeyToSecondary
+ CHECK_ERROR(_readPermissions_V3(c, &v->permissions))
break;
default:
return parser_unexpected_value;
@@ -197,28 +240,23 @@ parser_error_t _readAuthorizationData_V1(parser_context_t* c, pd_AuthorizationDa
return parser_ok;
}
-parser_error_t _readBabeEquivocationProof_V1(parser_context_t* c, pd_BabeEquivocationProof_V1_t* v)
-{
- return parser_not_supported;
-}
-
-parser_error_t _readBallotMeta_V1(parser_context_t* c, pd_BallotMeta_V1_t* v)
+parser_error_t _readBallotMeta_V3(parser_context_t* c, pd_BallotMeta_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readBallotTitle_V1(c, &v->title))
- CHECK_ERROR(_readVecMotion_V1(c, &v->motions))
+ CHECK_INPUT()
+ CHECK_ERROR(_readBallotTitle_V3(c, &v->title))
+ CHECK_ERROR(_readVecMotion_V3(c, &v->motions))
return parser_ok;
}
-parser_error_t _readBallotTimeRange_V1(parser_context_t* c, pd_BallotTimeRange_V1_t* v)
+parser_error_t _readBallotTimeRange_V3(parser_context_t* c, pd_BallotTimeRange_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readMoment_V1(c, &v->start))
- CHECK_ERROR(_readMoment_V1(c, &v->end))
+ CHECK_INPUT()
+ CHECK_ERROR(_readMoment_V3(c, &v->start))
+ CHECK_ERROR(_readMoment_V3(c, &v->end))
return parser_ok;
}
-parser_error_t _readBallotTitle_V1(parser_context_t* c, pd_BallotTitle_V1_t* v)
+parser_error_t _readBallotTitle_V3(parser_context_t* c, pd_BallotTitle_V3_t* v)
{
CHECK_INPUT()
@@ -232,42 +270,42 @@ parser_error_t _readBallotTitle_V1(parser_context_t* c, pd_BallotTitle_V1_t* v)
return parser_ok;
}
-parser_error_t _readBallotVote_V1(parser_context_t* c, pd_BallotVote_V1_t* v)
+parser_error_t _readBallotVote_V3(parser_context_t* c, pd_BallotVote_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readBalance(c, &v->power))
CHECK_ERROR(_readOptionu16(c, &v->fallback))
return parser_ok;
}
-parser_error_t _readBecomeAgent_V1(parser_context_t* c, pd_BecomeAgent_V1_t* v)
+parser_error_t _readBecomeAgent_V3(parser_context_t* c, pd_BecomeAgent_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readTicker_V1(c, &v->ticker));
- CHECK_ERROR(_readAgentGroup_V1(c, &v->agentGroup));
+ CHECK_INPUT()
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker));
+ CHECK_ERROR(_readAgentGroup_V3(c, &v->agentGroup));
return parser_ok;
}
-parser_error_t _readBeneficiary_V1(parser_context_t* c, pd_Beneficiary_V1_t* v)
+parser_error_t _readBeneficiary_V3(parser_context_t* c, pd_Beneficiary_V3_t* v)
{
- CHECK_ERROR(_readIdentityId_V1(c, &v->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->identity))
CHECK_ERROR(_readBalance(c, &v->balance))
return parser_ok;
}
-parser_error_t _readBridgeTx_V1(parser_context_t* c, pd_BridgeTx_V1_t* v)
+parser_error_t _readBridgeTxAccountId_V3(parser_context_t* c, pd_BridgeTxAccountId_V3_t* v)
{
CHECK_INPUT()
CHECK_ERROR(_readUInt32(c, &v->nonce))
- CHECK_ERROR(_readAccountId_V1(c, &v->recipient))
+ CHECK_ERROR(_readAccountId_V3(c, &v->recipient))
CHECK_ERROR(_readBalance(c, &v->value))
CHECK_ERROR(_readHash(c, &v->txHash))
return parser_ok;
}
-parser_error_t _readCADetails_V1(parser_context_t* c, pd_CADetails_V1_t* v)
+parser_error_t _readCADetails_V3(parser_context_t* c, pd_CADetails_V3_t* v)
{
CHECK_INPUT()
@@ -281,55 +319,48 @@ parser_error_t _readCADetails_V1(parser_context_t* c, pd_CADetails_V1_t* v)
return parser_ok;
}
-parser_error_t _readCAId_V1(parser_context_t* c, pd_CAId_V1_t* v)
+parser_error_t _readCAId_V3(parser_context_t* c, pd_CAId_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readTicker_V1(c, &v->ticker))
- CHECK_ERROR(_readLocalCAId_V1(c, &v->local_id))
+ CHECK_INPUT()
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker))
+ CHECK_ERROR(_readLocalCAId_V3(c, &v->local_id))
return parser_ok;
}
-parser_error_t _readCAKind_V1(parser_context_t* c, pd_CAKind_V1_t* v)
+parser_error_t _readCAKind_V3(parser_context_t* c, pd_CAKind_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value));
return parser_ok;
}
-parser_error_t _readCalendarPeriod_V1(parser_context_t* c, pd_CalendarPeriod_V1_t* v)
+parser_error_t _readCalendarPeriod_V3(parser_context_t* c, pd_CalendarPeriod_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readCalendarUnit_V1(c, &v->unit))
+ CHECK_INPUT()
+ CHECK_ERROR(_readCalendarUnit_V3(c, &v->unit))
CHECK_ERROR(_readUInt64(c, &v->amount))
return parser_ok;
}
-parser_error_t _readCalendarUnit_V1(parser_context_t* c, pd_CalendarUnit_V1_t* v)
+parser_error_t _readCalendarUnit_V3(parser_context_t* c, pd_CalendarUnit_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value));
return parser_ok;
}
-parser_error_t _readCddId_V1(parser_context_t* c, pd_CddId_V1_t* v) {
+parser_error_t _readCddId_V3(parser_context_t* c, pd_CddId_V3_t* v) {
GEN_DEF_READARRAY(32)
}
-parser_error_t _readChangesTrieConfiguration_V1(parser_context_t* c, pd_ChangesTrieConfiguration_V1_t* v)
-{
- CHECK_ERROR(_readu32(c, &v->digest_interval))
- CHECK_ERROR(_readu32(c, &v->digest_levels))
- return parser_ok;
-}
-
-parser_error_t _readCheckpointId_V1(parser_context_t* c, pd_CheckpointId_V1_t* v)
+parser_error_t _readCheckpointId_V3(parser_context_t* c, pd_CheckpointId_V3_t* v)
{
return _readUInt64(c, &v->value);
}
-parser_error_t _readChoiceTitle_V1(parser_context_t* c, pd_ChoiceTitle_V1_t* v)
+parser_error_t _readChoiceTitle_V3(parser_context_t* c, pd_ChoiceTitle_V3_t* v)
{
CHECK_INPUT()
@@ -343,16 +374,16 @@ parser_error_t _readChoiceTitle_V1(parser_context_t* c, pd_ChoiceTitle_V1_t* v)
return parser_ok;
}
-parser_error_t _readClaimType_V1(parser_context_t* c, pd_ClaimType_V1_t* v)
+parser_error_t _readClaimType_V3(parser_context_t* c, pd_ClaimType_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
return parser_ok;
}
-parser_error_t _readClaim_V1(parser_context_t* c, pd_Claim_V1_t* v)
+parser_error_t _readClaim_V3(parser_context_t* c, pd_Claim_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // Accredited
@@ -362,17 +393,17 @@ parser_error_t _readClaim_V1(parser_context_t* c, pd_Claim_V1_t* v)
case 5: // KnowYourCustomer
case 7: // Exempted
case 8: // Blocked
- CHECK_ERROR(_readScope_V1(c, &v->scope))
+ CHECK_ERROR(_readScope_V3(c, &v->scope))
break;
case 4: // CustomerDueDiligence
case 11: // InvestorUniquenessV2
- CHECK_ERROR(_readCddId_V1(c, &v->cddId))
+ CHECK_ERROR(_readCddId_V3(c, &v->cddId))
break;
case 6: // Jurisdiction
- CHECK_ERROR(_readTupleCountryCodeScope_V1(c, &v->jurisdiction))
+ CHECK_ERROR(_readTupleCountryCodeScope_V3(c, &v->jurisdiction))
break;
case 9: // InvestorUniqueness
- CHECK_ERROR(_readTupleScopeScopeIdCddId_V1(c, &v->investorUniqueness))
+ CHECK_ERROR(_readTupleScopeScopeIdCddId_V3(c, &v->investorUniqueness))
break;
case 10: // NoData
break;
@@ -383,53 +414,49 @@ parser_error_t _readClaim_V1(parser_context_t* c, pd_Claim_V1_t* v)
return parser_ok;
}
-parser_error_t _readClassicTickerImport_V1(parser_context_t* c, pd_ClassicTickerImport_V1_t* v)
+parser_error_t _readClassicTickerImport_V3(parser_context_t* c, pd_ClassicTickerImport_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readEthereumAddress_V1(c, &v->eth_owner))
- CHECK_ERROR(_readTicker_V1(c, &v->ticker))
+ CHECK_INPUT()
+ CHECK_ERROR(_readEthereumAddress_V3(c, &v->eth_owner))
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker))
CHECK_ERROR(_readBool(c, &v->is_contract))
CHECK_ERROR(_readBool(c, &v->is_created))
return parser_ok;
}
-parser_error_t _readCompactAccountIndex_V1(parser_context_t* c, pd_CompactAccountIndex_V1_t* v)
+parser_error_t _readCodeHash_V3(parser_context_t* c, pd_CodeHash_V3_t* v)
{
- return _readCompactInt(c, &v->value);
+ CHECK_ERROR(_readHash(c, &v->hash))
+ return parser_ok;
}
-parser_error_t _readCompactPerBill_V1(parser_context_t* c, pd_CompactPerBill_V1_t* v)
+parser_error_t _readCompactAccountIndex_V3(parser_context_t* c, pd_CompactAccountIndex_V3_t* v)
{
return _readCompactInt(c, &v->value);
}
-parser_error_t _readComplianceRequirement_V1(parser_context_t* c, pd_ComplianceRequirement_V1_t* v)
+parser_error_t _readCompactPerBill_V3(parser_context_t* c, pd_CompactPerBill_V3_t* v)
{
- CHECK_INPUT();
-
- CHECK_ERROR(_readVecCondition_V1(c, &v->senderConditions))
- CHECK_ERROR(_readVecCondition_V1(c, &v->receiverConditions))
- CHECK_ERROR(_readUInt32(c, &v->id))
- return parser_ok;
+ return _readCompactInt(c, &v->value);
}
-parser_error_t _readConditionType_V1(parser_context_t* c, pd_ConditionType_V1_t* v)
+parser_error_t _readConditionType_V3(parser_context_t* c, pd_ConditionType_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0:
case 1:
- CHECK_ERROR(_readClaim_V1(c, &v->claim))
+ CHECK_ERROR(_readClaim_V3(c, &v->claim))
break;
case 2:
case 3:
- CHECK_ERROR(_readVecClaim_V1(c, &v->vecClaim))
+ CHECK_ERROR(_readVecClaim_V3(c, &v->vecClaim))
break;
case 4:
- CHECK_ERROR(_readTargetIdentity_V1(c, &v->identity))
+ CHECK_ERROR(_readTargetIdentity_V3(c, &v->identity))
break;
default:
return parser_unexpected_value;
@@ -438,33 +465,28 @@ parser_error_t _readConditionType_V1(parser_context_t* c, pd_ConditionType_V1_t*
return parser_ok;
}
-parser_error_t _readCondition_V1(parser_context_t* c, pd_Condition_V1_t* v)
+parser_error_t _readCondition_V3(parser_context_t* c, pd_Condition_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
- CHECK_ERROR(_readConditionType_V1(c, &v->conditionType))
- CHECK_ERROR(_readVecTrustedIssuer_V1(c, &v->issuers))
+ CHECK_ERROR(_readConditionType_V3(c, &v->conditionType))
+ CHECK_ERROR(_readVecTrustedIssuer_V3(c, &v->issuers))
return parser_ok;
}
-parser_error_t _readCounter_V1(parser_context_t* c, pd_Counter_V1_t* v)
-{
- return _readUInt64(c, &v->value);
-}
-
-parser_error_t _readCountryCode_V1(parser_context_t* c, pd_CountryCode_V1_t* v)
+parser_error_t _readCountryCode_V3(parser_context_t* c, pd_CountryCode_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
return parser_ok;
}
-parser_error_t _readCustomAssetTypeId_V1(parser_context_t* c, pd_CustomAssetTypeId_V1_t* v)
+parser_error_t _readCustomAssetTypeId_V3(parser_context_t* c, pd_CustomAssetTypeId_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readDispatchableName_V1(parser_context_t* c, pd_DispatchableName_V1_t* v)
+parser_error_t _readDispatchableName_V3(parser_context_t* c, pd_DispatchableName_V3_t* v)
{
CHECK_INPUT()
@@ -478,7 +500,7 @@ parser_error_t _readDispatchableName_V1(parser_context_t* c, pd_DispatchableName
return parser_ok;
}
-parser_error_t _readDispatchableNames_V1(parser_context_t* c, pd_DispatchableNames_V1_t* v)
+parser_error_t _readDispatchableNames_V3(parser_context_t* c, pd_DispatchableNames_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -486,7 +508,7 @@ parser_error_t _readDispatchableNames_V1(parser_context_t* c, pd_DispatchableNam
break;
case 1: // These
case 2: // Except
- CHECK_ERROR(_readVecDispatchableName_V1(c, &v->contained))
+ CHECK_ERROR(_readVecDispatchableName_V3(c, &v->contained))
break;
default:
return parser_unexpected_value;
@@ -494,9 +516,9 @@ parser_error_t _readDispatchableNames_V1(parser_context_t* c, pd_DispatchableNam
return parser_ok;
}
-parser_error_t _readDocumentHash_V1(parser_context_t* c, pd_DocumentHash_V1_t* v)
+parser_error_t _readDocumentHash_V3(parser_context_t* c, pd_DocumentHash_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -534,13 +556,13 @@ parser_error_t _readDocumentHash_V1(parser_context_t* c, pd_DocumentHash_V1_t* v
GEN_DEF_READARRAY(v->_len)
}
-parser_error_t _readDocumentId_V1(parser_context_t* c, pd_DocumentId_V1_t* v)
+parser_error_t _readDocumentId_V3(parser_context_t* c, pd_DocumentId_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readDocumentName_V1(parser_context_t* c, pd_DocumentName_V1_t* v)
+parser_error_t _readDocumentName_V3(parser_context_t* c, pd_DocumentName_V3_t* v)
{
CHECK_INPUT()
@@ -554,7 +576,7 @@ parser_error_t _readDocumentName_V1(parser_context_t* c, pd_DocumentName_V1_t* v
return parser_ok;
}
-parser_error_t _readDocumentType_V1(parser_context_t* c, pd_DocumentType_V1_t* v)
+parser_error_t _readDocumentType_V3(parser_context_t* c, pd_DocumentType_V3_t* v)
{
CHECK_INPUT()
@@ -568,7 +590,7 @@ parser_error_t _readDocumentType_V1(parser_context_t* c, pd_DocumentType_V1_t* v
return parser_ok;
}
-parser_error_t _readDocumentUri_V1(parser_context_t* c, pd_DocumentUri_V1_t* v)
+parser_error_t _readDocumentUri_V3(parser_context_t* c, pd_DocumentUri_V3_t* v)
{
CHECK_INPUT()
@@ -582,43 +604,37 @@ parser_error_t _readDocumentUri_V1(parser_context_t* c, pd_DocumentUri_V1_t* v)
return parser_ok;
}
-parser_error_t _readDocument_V1(parser_context_t* c, pd_Document_V1_t* v)
+parser_error_t _readDocument_V3(parser_context_t* c, pd_Document_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readDocumentUri_V1(c, &v->uri))
- CHECK_ERROR(_readDocumentHash_V1(c, &v->content_hash))
- CHECK_ERROR(_readDocumentName_V1(c, &v->name))
- CHECK_ERROR(_readOptionDocumentType_V1(c, &v->doc_type))
- CHECK_ERROR(_readOptionMoment_V1(c, &v->filing_date))
+ CHECK_INPUT()
+ CHECK_ERROR(_readDocumentUri_V3(c, &v->uri))
+ CHECK_ERROR(_readDocumentHash_V3(c, &v->content_hash))
+ CHECK_ERROR(_readDocumentName_V3(c, &v->name))
+ CHECK_ERROR(_readOptionDocumentType_V3(c, &v->doc_type))
+ CHECK_ERROR(_readOptionMoment_V3(c, &v->filing_date))
return parser_ok;
}
-parser_error_t _readEcdsaSignature_V1(parser_context_t* c, pd_EcdsaSignature_V1_t* v) {
+parser_error_t _readEcdsaSignature_V3(parser_context_t* c, pd_EcdsaSignature_V3_t* v) {
GEN_DEF_READARRAY(65)
}
-parser_error_t _readElectionScore_V1(parser_context_t* c, pd_ElectionScore_V1_t* v)
-{
- return parser_not_supported;
+parser_error_t _readEd25519Signature_V3(parser_context_t* c, pd_Ed25519Signature_V3_t* v) {
+ GEN_DEF_READARRAY(64)
}
-parser_error_t _readElectionSize_V1(parser_context_t* c, pd_ElectionSize_V1_t* v)
+parser_error_t _readEraIndex_V3(parser_context_t* c, pd_EraIndex_V3_t* v)
{
- CHECK_ERROR(_readCompactInt(c, &v->validators));
- CHECK_ERROR(_readCompactInt(c, &v->nominators));
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readEraIndex_V1(parser_context_t* c, pd_EraIndex_V1_t* v)
-{
- return _readUInt32(c, &v->value);
-}
-
-parser_error_t _readEthereumAddress_V1(parser_context_t* c, pd_EthereumAddress_V1_t* v) {
+parser_error_t _readEthereumAddress_V3(parser_context_t* c, pd_EthereumAddress_V3_t* v) {
GEN_DEF_READARRAY(20)
}
-parser_error_t _readExtrinsicPermissions_V1(parser_context_t* c, pd_ExtrinsicPermissions_V1_t* v)
+parser_error_t _readExtrinsicPermissions_V3(parser_context_t* c, pd_ExtrinsicPermissions_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -626,7 +642,7 @@ parser_error_t _readExtrinsicPermissions_V1(parser_context_t* c, pd_ExtrinsicPer
break;
case 1: // These
case 2: // Except
- CHECK_ERROR(_readVecPalletPermissions_V1(c, &v->contained))
+ CHECK_ERROR(_readVecPalletPermissions_V3(c, &v->contained))
break;
default:
return parser_unexpected_value;
@@ -634,7 +650,7 @@ parser_error_t _readExtrinsicPermissions_V1(parser_context_t* c, pd_ExtrinsicPer
return parser_ok;
}
-parser_error_t _readFundingRoundName_V1(parser_context_t* c, pd_FundingRoundName_V1_t* v)
+parser_error_t _readFundingRoundName_V3(parser_context_t* c, pd_FundingRoundName_V3_t* v)
{
CHECK_INPUT()
@@ -648,7 +664,12 @@ parser_error_t _readFundingRoundName_V1(parser_context_t* c, pd_FundingRoundName
return parser_ok;
}
-parser_error_t _readFundraiserName_V1(parser_context_t* c, pd_FundraiserName_V1_t* v)
+parser_error_t _readFundraiserId_V3(parser_context_t* c, pd_FundraiserId_V3_t* v)
+{
+ return _readUInt64(c, &v->value);
+}
+
+parser_error_t _readFundraiserName_V3(parser_context_t* c, pd_FundraiserName_V3_t* v)
{
CHECK_INPUT()
@@ -662,99 +683,68 @@ parser_error_t _readFundraiserName_V1(parser_context_t* c, pd_FundraiserName_V1_
return parser_ok;
}
-parser_error_t _readGrandpaEquivocationProof_V1(parser_context_t* c, pd_GrandpaEquivocationProof_V1_t* v)
-{
- return parser_not_supported;
-}
-
-parser_error_t _readIdentityId_V1(parser_context_t* c, pd_IdentityId_V1_t* v) {
+parser_error_t _readIdentityId_V3(parser_context_t* c, pd_IdentityId_V3_t* v) {
GEN_DEF_READARRAY(32)
}
-parser_error_t _readInvestorZKProofData_V1(parser_context_t* c, pd_InvestorZKProofData_V1_t* v) {
- GEN_DEF_READARRAY(64)
-}
-
-parser_error_t _readItnRewardStatus_V1(parser_context_t* c, pd_ItnRewardStatus_V1_t* v)
-{
- return parser_not_supported;
-}
-
-parser_error_t _readKeyOwnerProof_V1(parser_context_t* c, pd_KeyOwnerProof_V1_t* v)
+parser_error_t _readInstructionId_V3(parser_context_t* c, pd_InstructionId_V3_t* v)
{
- return parser_not_supported;
-}
-
-parser_error_t _readKeyValue_V1(parser_context_t* c, pd_KeyValue_V1_t* v) {
- GEN_DEF_READARRAY(32)
+ return _readUInt64(c, &v->value);
}
-parser_error_t _readKey_V1(parser_context_t* c, pd_Key_V1_t* v) {
- GEN_DEF_READARRAY(32)
+parser_error_t _readInvestorZKProofData_V3(parser_context_t* c, pd_InvestorZKProofData_V3_t* v) {
+ GEN_DEF_READARRAY(64)
}
-parser_error_t _readKeys_V1(parser_context_t* c, pd_Keys_V1_t* v)
+parser_error_t _readKeys_V3(parser_context_t* c, pd_Keys_V3_t* v)
{
GEN_DEF_READARRAY(4 * 32)
return parser_ok;
}
-parser_error_t _readLeg_V1(parser_context_t* c, pd_Leg_V1_t* v)
+parser_error_t _readLegId_V3(parser_context_t* c, pd_LegId_V3_t* v)
{
- CHECK_INPUT()
-
- CHECK_ERROR(_readPortfolioId_V1(c, &v->from))
- CHECK_ERROR(_readPortfolioId_V1(c, &v->to))
- CHECK_ERROR(_readTicker_V1(c, &v->asset))
- CHECK_ERROR(_readBalance(c, &v->amount))
-
- return parser_ok;
+ return _readUInt64(c, &v->value);
}
-parser_error_t _readLegacyPalletPermissions_V1(parser_context_t* c, pd_LegacyPalletPermissions_V1_t* v)
+parser_error_t _readLeg_V3(parser_context_t* c, pd_Leg_V3_t* v)
{
- CHECK_INPUT();
-
- CHECK_ERROR(_readPalletName_V1(c, &v->palletName))
- CHECK_ERROR(_readBool(c, &v->total))
- CHECK_ERROR(_readVecDispatchableName_V1(c, &v->dispatchableNames))
+ CHECK_INPUT()
- return parser_ok;
-}
+ CHECK_ERROR(_readPortfolioId_V3(c, &v->from))
+ CHECK_ERROR(_readPortfolioId_V3(c, &v->to))
+ CHECK_ERROR(_readTicker_V3(c, &v->asset))
+ CHECK_ERROR(_readBalance(c, &v->amount))
-parser_error_t _readLegacyPermissions_V1(parser_context_t* c, pd_LegacyPermissions_V1_t* v)
-{
- CHECK_INPUT();
- CHECK_ERROR(_readOptionVecTicker_V1(c, &v->asset))
- CHECK_ERROR(_readOptionVecLegacyPalletPermissions_V1(c, &v->extrinsic))
- CHECK_ERROR(_readOptionVecPortfolioId_V1(c, &v->portfolio))
return parser_ok;
}
-parser_error_t _readLocalCAId_V1(parser_context_t* c, pd_LocalCAId_V1_t* v)
+parser_error_t _readLocalCAId_V3(parser_context_t* c, pd_LocalCAId_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readLookupSource_V1(parser_context_t* c, pd_LookupSource_V1_t* v)
+parser_error_t _readLookupasStaticLookupSource_V3(parser_context_t* c, pd_LookupasStaticLookupSource_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // Id
- CHECK_ERROR(_readAccountId_V1(c, &v->id))
+ CHECK_ERROR(_readAccountId_V3(c, &v->id))
break;
case 1: // Index
- CHECK_ERROR(_readCompactAccountIndex_V1(c, &v->index))
+ CHECK_ERROR(_readCompactAccountIndex_V3(c, &v->index))
break;
case 2: // Raw
CHECK_ERROR(_readBytes(c, &v->raw))
break;
case 3: // Address32
GEN_DEF_READARRAY(32)
+ break;
case 4: // Address20
GEN_DEF_READARRAY(20)
+ break;
default:
return parser_unexpected_value;
}
@@ -762,9 +752,9 @@ parser_error_t _readLookupSource_V1(parser_context_t* c, pd_LookupSource_V1_t* v
return parser_ok;
}
-parser_error_t _readMaybeBlock_V1(parser_context_t* c, pd_MaybeBlock_V1_t* v)
+parser_error_t _readMaybeBlockBlockNumber_V3(parser_context_t* c, pd_MaybeBlockBlockNumber_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -780,24 +770,28 @@ parser_error_t _readMaybeBlock_V1(parser_context_t* c, pd_MaybeBlock_V1_t* v)
return parser_ok;
}
-parser_error_t _readMemberCount_V1(parser_context_t* c, pd_MemberCount_V1_t* v)
+parser_error_t _readMemberCount_V3(parser_context_t* c, pd_MemberCount_V3_t* v)
{
- return _readUInt32(c, &v->value);
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt32(c, &v->value))
+ return parser_ok;
}
-parser_error_t _readMemo_V1(parser_context_t* c, pd_Memo_V1_t* v)
+parser_error_t _readMemo_V3(parser_context_t* c, pd_Memo_V3_t* v)
{
v->_len = 32;
GEN_DEF_READARRAY(32)
return parser_ok;
}
-parser_error_t _readMoment_V1(parser_context_t* c, pd_Moment_V1_t* v)
+parser_error_t _readMoment_V3(parser_context_t* c, pd_Moment_V3_t* v)
{
- return _readUInt64(c, &v->value);
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt64(c, &v->value))
+ return parser_ok;
}
-parser_error_t _readMotionInfoLink_V1(parser_context_t* c, pd_MotionInfoLink_V1_t* v)
+parser_error_t _readMotionInfoLink_V3(parser_context_t* c, pd_MotionInfoLink_V3_t* v)
{
CHECK_INPUT()
@@ -811,7 +805,7 @@ parser_error_t _readMotionInfoLink_V1(parser_context_t* c, pd_MotionInfoLink_V1_
return parser_ok;
}
-parser_error_t _readMotionTitle_V1(parser_context_t* c, pd_MotionTitle_V1_t* v)
+parser_error_t _readMotionTitle_V3(parser_context_t* c, pd_MotionTitle_V3_t* v)
{
CHECK_INPUT()
@@ -825,32 +819,36 @@ parser_error_t _readMotionTitle_V1(parser_context_t* c, pd_MotionTitle_V1_t* v)
return parser_ok;
}
-parser_error_t _readMotion_V1(parser_context_t* c, pd_Motion_V1_t* v)
+parser_error_t _readMotion_V3(parser_context_t* c, pd_Motion_V3_t* v)
{
CHECK_INPUT()
- CHECK_ERROR(_readMotionTitle_V1(c, &v->title))
- CHECK_ERROR(_readMotionInfoLink_V1(c, &v->info_link))
- CHECK_ERROR(_readVecChoiceTitle_V1(c, &v->choices))
+ CHECK_ERROR(_readMotionTitle_V3(c, &v->title))
+ CHECK_ERROR(_readMotionInfoLink_V3(c, &v->info_link))
+ CHECK_ERROR(_readVecChoiceTitle_V3(c, &v->choices))
return parser_ok;
}
-parser_error_t _readMovePortfolioItem_V1(parser_context_t* c, pd_MovePortfolioItem_V1_t* v)
+parser_error_t _readMovePortfolioItem_V3(parser_context_t* c, pd_MovePortfolioItem_V3_t* v)
{
- CHECK_ERROR(_readTicker_V1(c, &v->ticker));
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker));
CHECK_ERROR(_readBalance(c, &v->balance));
- CHECK_ERROR(_readOptionMemo_V1(c, &v->memo));
+ CHECK_ERROR(_readOptionMemo_V3(c, &v->memo));
return parser_ok;
}
-parser_error_t _readOffChainSignature_V1(parser_context_t* c, pd_OffChainSignature_V1_t* v)
+parser_error_t _readMultiSignature_V3(parser_context_t* c, pd_MultiSignature_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // Ed25519
+ CHECK_ERROR(_readEd25519Signature_V3(c, &v->ed25519))
+ break;
case 1: // Sr25519
+ CHECK_ERROR(_readSr25519Signature_V3(c, &v->sr25519))
+ break;
case 2: // Ecdsa
- GEN_DEF_READARRAY(64)
+ CHECK_ERROR(_readEcdsaSignature_V3(c, &v->ecdsa))
break;
default:
return parser_unexpected_value;
@@ -859,7 +857,14 @@ parser_error_t _readOffChainSignature_V1(parser_context_t* c, pd_OffChainSignatu
return parser_ok;
}
-parser_error_t _readPalletName_V1(parser_context_t* c, pd_PalletName_V1_t* v)
+parser_error_t _readOffChainSignature_V3(parser_context_t* c, pd_OffChainSignature_V3_t* v)
+{
+ CHECK_INPUT()
+ CHECK_ERROR(_readMultiSignature_V3(c, &v->value))
+ return parser_ok;
+}
+
+parser_error_t _readPalletName_V3(parser_context_t* c, pd_PalletName_V3_t* v)
{
CHECK_INPUT()
@@ -873,54 +878,39 @@ parser_error_t _readPalletName_V1(parser_context_t* c, pd_PalletName_V1_t* v)
return parser_ok;
}
-parser_error_t _readPalletPermissions_V1(parser_context_t* c, pd_PalletPermissions_V1_t* v)
+parser_error_t _readPalletPermissions_V3(parser_context_t* c, pd_PalletPermissions_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
- CHECK_ERROR(_readPalletName_V1(c, &v->palletName))
- CHECK_ERROR(_readDispatchableNames_V1(c, &v->dispatchableNames))
+ CHECK_ERROR(_readPalletName_V3(c, &v->palletName))
+ CHECK_ERROR(_readDispatchableNames_V3(c, &v->dispatchableNames))
return parser_ok;
}
-parser_error_t _readPerbill_V1(parser_context_t* c, pd_Perbill_V1_t* v)
-{
- return _readUInt32(c, &v->value);
-}
-
-parser_error_t _readPercent_V1(parser_context_t* c, pd_Percent_V1_t* v)
+parser_error_t _readPerbill_V3(parser_context_t* c, pd_Perbill_V3_t* v)
{
- return _readCompactInt(c, &v->value);
-}
-
-parser_error_t _readPercentage_V1(parser_context_t* c, pd_Percentage_V1_t* v)
-{
- CHECK_INPUT();
- CHECK_ERROR(_readPermill_V1(c, &v->value))
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readPeriod_V1(parser_context_t* c, pd_Period_V1_t* v)
-{
- return _readUInt64(c, &v->value);
-}
-
-parser_error_t _readPermill_V1(parser_context_t* c, pd_Permill_V1_t* v)
+parser_error_t _readPermill_V3(parser_context_t* c, pd_Permill_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readPermissions_V1(parser_context_t* c, pd_Permissions_V1_t* v)
+parser_error_t _readPermissions_V3(parser_context_t* c, pd_Permissions_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readAssetPermissions_V1(c, &v->asset))
- CHECK_ERROR(_readExtrinsicPermissions_V1(c, &v->extrinsic))
- CHECK_ERROR(_readPortfolioPermissions_V1(c, &v->portfolio))
+ CHECK_INPUT()
+ CHECK_ERROR(_readAssetPermissions_V3(c, &v->asset))
+ CHECK_ERROR(_readExtrinsicPermissions_V3(c, &v->extrinsic))
+ CHECK_ERROR(_readPortfolioPermissions_V3(c, &v->portfolio))
return parser_ok;
}
-parser_error_t _readPipDescription_V1(parser_context_t* c, pd_PipDescription_V1_t* v)
+parser_error_t _readPipDescription_V3(parser_context_t* c, pd_PipDescription_V3_t* v)
{
CHECK_INPUT()
@@ -934,32 +924,32 @@ parser_error_t _readPipDescription_V1(parser_context_t* c, pd_PipDescription_V1_
return parser_ok;
}
-parser_error_t _readPipId_V1(parser_context_t* c, pd_PipId_V1_t* v)
+parser_error_t _readPipId_V3(parser_context_t* c, pd_PipId_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readPortfolioId_V1(parser_context_t* c, pd_PortfolioId_V1_t* v)
+parser_error_t _readPortfolioId_V3(parser_context_t* c, pd_PortfolioId_V3_t* v)
{
CHECK_INPUT()
- CHECK_ERROR(_readIdentityId_V1(c, &v->did))
- CHECK_ERROR(_readPortfolioKind_V1(c, &v->kind))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->did))
+ CHECK_ERROR(_readPortfolioKind_V3(c, &v->kind))
return parser_ok;
}
-parser_error_t _readPortfolioKind_V1(parser_context_t* c, pd_PortfolioKind_V1_t* v)
+parser_error_t _readPortfolioKind_V3(parser_context_t* c, pd_PortfolioKind_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0:
break;
case 1:
- CHECK_INPUT();
- CHECK_ERROR(_readPortfolioNumber_V1(c, &v->number))
+ CHECK_INPUT()
+ CHECK_ERROR(_readPortfolioNumber_V3(c, &v->number))
break;
default:
return parser_unexpected_value;
@@ -968,7 +958,7 @@ parser_error_t _readPortfolioKind_V1(parser_context_t* c, pd_PortfolioKind_V1_t*
return parser_ok;
}
-parser_error_t _readPortfolioName_V1(parser_context_t* c, pd_PortfolioName_V1_t* v)
+parser_error_t _readPortfolioName_V3(parser_context_t* c, pd_PortfolioName_V3_t* v)
{
CHECK_INPUT()
@@ -982,12 +972,12 @@ parser_error_t _readPortfolioName_V1(parser_context_t* c, pd_PortfolioName_V1_t*
return parser_ok;
}
-parser_error_t _readPortfolioNumber_V1(parser_context_t* c, pd_PortfolioNumber_V1_t* v)
+parser_error_t _readPortfolioNumber_V3(parser_context_t* c, pd_PortfolioNumber_V3_t* v)
{
return _readUInt64(c, &v->value);
}
-parser_error_t _readPortfolioPermissions_V1(parser_context_t* c, pd_PortfolioPermissions_V1_t* v)
+parser_error_t _readPortfolioPermissions_V3(parser_context_t* c, pd_PortfolioPermissions_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -995,7 +985,7 @@ parser_error_t _readPortfolioPermissions_V1(parser_context_t* c, pd_PortfolioPer
break;
case 1: // These
case 2: // Except
- CHECK_ERROR(_readVecPortfolioId_V1(c, &v->contained))
+ CHECK_ERROR(_readVecPortfolioId_V3(c, &v->contained))
break;
default:
return parser_unexpected_value;
@@ -1003,58 +993,39 @@ parser_error_t _readPortfolioPermissions_V1(parser_context_t* c, pd_PortfolioPer
return parser_ok;
}
-parser_error_t _readPosRatio_V1(parser_context_t* c, pd_PosRatio_V1_t* v)
+parser_error_t _readPosRatio_V3(parser_context_t* c, pd_PosRatio_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->numerator))
CHECK_ERROR(_readUInt32(c, &v->denominator))
return parser_ok;
}
-parser_error_t _readPriceTier_V1(parser_context_t* c, pd_PriceTier_V1_t* v)
+parser_error_t _readPriceTier_V3(parser_context_t* c, pd_PriceTier_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readBalance(c, &v->total))
CHECK_ERROR(_readBalance(c, &v->price))
return parser_ok;
}
-parser_error_t _readPriority_V1(parser_context_t* c, pd_Priority_V1_t* v)
-{
- CHECK_ERROR(_readu32(c, &v->stream_id))
- CHECK_ERROR(_readStreamDependency_V1(c, &v->dependency))
- return parser_ok;
-}
-
-parser_error_t _readProposalIndex_V1(parser_context_t* c, pd_ProposalIndex_V1_t* v)
+parser_error_t _readProposalIndex_V3(parser_context_t* c, pd_ProposalIndex_V3_t* v)
{
CHECK_ERROR(_readUInt32(c, &v->value))
return parser_ok;
}
-parser_error_t _readProtocolOp_V1(parser_context_t* c, pd_ProtocolOp_V1_t* v)
-{
- CHECK_INPUT();
- CHECK_ERROR(_readUInt8(c, &v->value))
-
- if (v->value > 12) {
- return parser_unexpected_value;
- }
-
- return parser_ok;
-}
-
-parser_error_t _readReceiptDetails_V1(parser_context_t* c, pd_ReceiptDetails_V1_t* v)
+parser_error_t _readReceiptDetails_V3(parser_context_t* c, pd_ReceiptDetails_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt64(c, &v->receipt_uid))
CHECK_ERROR(_readUInt64(c, &v->leg_id))
- CHECK_ERROR(_readAccountId_V1(c, &v->signer))
- CHECK_ERROR(_readOffChainSignature_V1(c, &v->signature))
- CHECK_ERROR(_readReceiptMetadata_V1(c, &v->metadata))
+ CHECK_ERROR(_readAccountId_V3(c, &v->signer))
+ CHECK_ERROR(_readOffChainSignature_V3(c, &v->signature))
+ CHECK_ERROR(_readReceiptMetadata_V3(c, &v->metadata))
return parser_ok;
}
-parser_error_t _readReceiptMetadata_V1(parser_context_t* c, pd_ReceiptMetadata_V1_t* v)
+parser_error_t _readReceiptMetadata_V3(parser_context_t* c, pd_ReceiptMetadata_V3_t* v)
{
CHECK_INPUT()
@@ -1068,19 +1039,19 @@ parser_error_t _readReceiptMetadata_V1(parser_context_t* c, pd_ReceiptMetadata_V
return parser_ok;
}
-parser_error_t _readRecordDateSpec_V1(parser_context_t* c, pd_RecordDateSpec_V1_t* v)
+parser_error_t _readRecordDateSpec_V3(parser_context_t* c, pd_RecordDateSpec_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // Scheduled
- CHECK_ERROR(_readMoment_V1(c, &v->scheduled))
+ CHECK_ERROR(_readMoment_V3(c, &v->scheduled))
break;
case 1: // ExistingSchedule
- CHECK_ERROR(_readScheduleId_V1(c, &v->existingSchedule))
+ CHECK_ERROR(_readScheduleId_V3(c, &v->existingSchedule))
break;
case 2: // Existing
- CHECK_ERROR(_readCheckpointId_V1(c, &v->existing))
+ CHECK_ERROR(_readCheckpointId_V3(c, &v->existing))
break;
default:
return parser_unexpected_value;
@@ -1089,9 +1060,9 @@ parser_error_t _readRecordDateSpec_V1(parser_context_t* c, pd_RecordDateSpec_V1_
return parser_ok;
}
-parser_error_t _readRewardDestination_V1(parser_context_t* c, pd_RewardDestination_V1_t* v)
+parser_error_t _readRewardDestination_V3(parser_context_t* c, pd_RewardDestination_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -1102,7 +1073,7 @@ parser_error_t _readRewardDestination_V1(parser_context_t* c, pd_RewardDestinati
case 2: // Controller
break;
case 3: // Account
- CHECK_ERROR(_readAccountId_V1(c, &v->accountId))
+ CHECK_ERROR(_readAccountId_V3(c, &v->accountId))
break;
default:
return parser_unexpected_value;
@@ -1111,39 +1082,34 @@ parser_error_t _readRewardDestination_V1(parser_context_t* c, pd_RewardDestinati
return parser_ok;
}
-parser_error_t _readScheduleId_V1(parser_context_t* c, pd_ScheduleId_V1_t* v)
+parser_error_t _readScheduleId_V3(parser_context_t* c, pd_ScheduleId_V3_t* v)
{
return _readUInt64(c, &v->value);
}
-parser_error_t _readScheduleSpec_V1(parser_context_t* c, pd_ScheduleSpec_V1_t* v)
+parser_error_t _readScheduleSpec_V3(parser_context_t* c, pd_ScheduleSpec_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readOptionMoment_V1(c, &v->start))
- CHECK_ERROR(_readCalendarPeriod_V1(c, &v->period))
+ CHECK_INPUT()
+ CHECK_ERROR(_readOptionMoment_V3(c, &v->start))
+ CHECK_ERROR(_readCalendarPeriod_V3(c, &v->period))
CHECK_ERROR(_readUInt32(c, &v->remaining))
return parser_ok;
}
-parser_error_t _readScopeClaimProof_V1(parser_context_t* c, pd_ScopeClaimProof_V1_t* v)
-{
- return parser_not_supported;
-}
-
-parser_error_t _readScopeId_V1(parser_context_t* c, pd_ScopeId_V1_t* v) {
+parser_error_t _readScopeId_V3(parser_context_t* c, pd_ScopeId_V3_t* v) {
GEN_DEF_READARRAY(32)
}
-parser_error_t _readScope_V1(parser_context_t* c, pd_Scope_V1_t* v)
+parser_error_t _readScope_V3(parser_context_t* c, pd_Scope_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0:
- CHECK_ERROR(_readIdentityId_V1(c, &v->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->identity))
break;
case 1:
- CHECK_ERROR(_readTicker_V1(c, &v->ticker))
+ CHECK_ERROR(_readTicker_V3(c, &v->ticker))
break;
case 2: {
compactInt_t clen;
@@ -1159,25 +1125,18 @@ parser_error_t _readScope_V1(parser_context_t* c, pd_Scope_V1_t* v)
return parser_ok;
}
-parser_error_t _readSecondaryKeyWithAuth_V1(parser_context_t* c, pd_SecondaryKeyWithAuth_V1_t* v)
-{
- CHECK_INPUT();
- CHECK_ERROR(_readSecondaryKey_V1(c, &v->secondary_key))
- CHECK_ERROR(_readSignature_V1(c, &v->auth_signature))
- return parser_ok;
-}
-
-parser_error_t _readSecondaryKey_V1(parser_context_t* c, pd_SecondaryKey_V1_t* v)
+parser_error_t _readSecondaryKeyWithAuthAccountId_V3(parser_context_t* c, pd_SecondaryKeyWithAuthAccountId_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readSignatory_V1(c, &v->signer))
- CHECK_ERROR(_readPermissions_V1(c, &v->permissions))
+ CHECK_INPUT()
+ CHECK_ERROR(_readAccountId_V3(c, &v->key))
+ CHECK_ERROR(_readPermissions_V3(c, &v->permissions))
+ CHECK_ERROR(_readSignature_V3(c, &v->auth_signature))
return parser_ok;
}
-parser_error_t _readSettlementType_V1(parser_context_t* c, pd_SettlementType_V1_t* v)
+parser_error_t _readSettlementTypeBlockNumber_V3(parser_context_t* c, pd_SettlementTypeBlockNumber_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
@@ -1193,17 +1152,17 @@ parser_error_t _readSettlementType_V1(parser_context_t* c, pd_SettlementType_V1_
return parser_ok;
}
-parser_error_t _readSignatory_V1(parser_context_t* c, pd_Signatory_V1_t* v)
+parser_error_t _readSignatoryAccountId_V3(parser_context_t* c, pd_SignatoryAccountId_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0:
- CHECK_ERROR(_readIdentityId_V1(c, &v->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->identity))
break;
case 1:
- CHECK_ERROR(_readAccountId_V1(c, &v->account))
+ CHECK_ERROR(_readAccountId_V3(c, &v->account))
break;
default:
return parser_unexpected_value;
@@ -1212,55 +1171,51 @@ parser_error_t _readSignatory_V1(parser_context_t* c, pd_Signatory_V1_t* v)
return parser_ok;
}
-parser_error_t _readSignature_V1(parser_context_t* c, pd_Signature_V1_t* v) {
+parser_error_t _readSignature_V3(parser_context_t* c, pd_Signature_V3_t* v) {
GEN_DEF_READARRAY(64)
}
-parser_error_t _readSkippedCount_V1(parser_context_t* c, pd_SkippedCount_V1_t* v)
+parser_error_t _readSkippedCount_V3(parser_context_t* c, pd_SkippedCount_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
return parser_ok;
}
-parser_error_t _readSlashingSwitch_V1(parser_context_t* c, pd_SlashingSwitch_V1_t* v)
+parser_error_t _readSlashingSwitch_V3(parser_context_t* c, pd_SlashingSwitch_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value));
return parser_ok;
}
-parser_error_t _readSnapshotResult_V1(parser_context_t* c, pd_SnapshotResult_V1_t* v)
+parser_error_t _readSnapshotResult_V3(parser_context_t* c, pd_SnapshotResult_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->value))
return parser_ok;
}
-parser_error_t _readStreamDependency_V1(parser_context_t* c, pd_StreamDependency_V1_t* v)
-{
- CHECK_ERROR(_readu32(c, &v->dependency_id))
- CHECK_ERROR(_readUInt8(c, &v->weight))
- CHECK_ERROR(_readbool(c, &v->is_exclusive))
- return parser_ok;
+parser_error_t _readSr25519Signature_V3(parser_context_t* c, pd_Sr25519Signature_V3_t* v) {
+ GEN_DEF_READARRAY(64)
}
-parser_error_t _readTargetIdentities_V1(parser_context_t* c, pd_TargetIdentities_V1_t* v)
+parser_error_t _readTargetIdentities_V3(parser_context_t* c, pd_TargetIdentities_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readVecIdentityId_V1(c, &v->identities))
- CHECK_ERROR(_readTargetTreatment_V1(c, &v->treatment))
+ CHECK_INPUT()
+ CHECK_ERROR(_readVecIdentityId_V3(c, &v->identities))
+ CHECK_ERROR(_readTargetTreatment_V3(c, &v->treatment))
return parser_ok;
}
-parser_error_t _readTargetIdentity_V1(parser_context_t* c, pd_TargetIdentity_V1_t* v)
+parser_error_t _readTargetIdentity_V3(parser_context_t* c, pd_TargetIdentity_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0:
break;
case 1:
- CHECK_ERROR(_readIdentityId_V1(c, &v->specific))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->specific))
break;
default:
return parser_unexpected_value;
@@ -1269,62 +1224,44 @@ parser_error_t _readTargetIdentity_V1(parser_context_t* c, pd_TargetIdentity_V1_
return parser_ok;
}
-parser_error_t _readTargetTreatment_V1(parser_context_t* c, pd_TargetTreatment_V1_t* v)
+parser_error_t _readTargetTreatment_V3(parser_context_t* c, pd_TargetTreatment_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
return parser_ok;
}
-parser_error_t _readTax_V1(parser_context_t* c, pd_Tax_V1_t* v)
+parser_error_t _readTax_V3(parser_context_t* c, pd_Tax_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readPermill_V1(c, &v->value))
+ CHECK_INPUT()
+ CHECK_ERROR(_readPermill_V3(c, &v->value))
return parser_ok;
}
-parser_error_t _readTickerRegistrationConfig_V1(parser_context_t* c, pd_TickerRegistrationConfig_V1_t* v)
+parser_error_t _readTickerRegistrationConfigMoment_V3(parser_context_t* c, pd_TickerRegistrationConfigMoment_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->max_ticker_length))
- CHECK_ERROR(_readOptionMoment_V1(c, &v->registration_length))
+ CHECK_ERROR(_readOptionMoment_V3(c, &v->registration_length))
return parser_ok;
}
-parser_error_t _readTicker_V1(parser_context_t* c, pd_Ticker_V1_t* v)
+parser_error_t _readTicker_V3(parser_context_t* c, pd_Ticker_V3_t* v)
{
v->_len = 12;
GEN_DEF_READARRAY(v->_len)
}
-parser_error_t _readTransferManager_V1(parser_context_t* c, pd_TransferManager_V1_t* v)
-{
- CHECK_INPUT();
- CHECK_ERROR(_readUInt8(c, &v->value))
- switch (v->value) {
- case 0: // CountTransferManager
- CHECK_ERROR(_readCounter_V1(c, &v->countTransferManager))
- break;
- case 1: // PercentageTransferManager
- CHECK_ERROR(_readPercentage_V1(c, &v->percentageTransferManager))
- break;
- default:
- return parser_unexpected_value;
- }
-
- return parser_ok;
-}
-
-parser_error_t _readTrustedFor_V1(parser_context_t* c, pd_TrustedFor_V1_t* v)
+parser_error_t _readTrustedFor_V3(parser_context_t* c, pd_TrustedFor_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0:
break;
case 1:
- CHECK_ERROR(_readVecClaimType_V1(c, &v->claims))
+ CHECK_ERROR(_readVecClaimType_V3(c, &v->claims))
break;
default:
return parser_unexpected_value;
@@ -1333,64 +1270,64 @@ parser_error_t _readTrustedFor_V1(parser_context_t* c, pd_TrustedFor_V1_t* v)
return parser_ok;
}
-parser_error_t _readTrustedIssuer_V1(parser_context_t* c, pd_TrustedIssuer_V1_t* v)
+parser_error_t _readTrustedIssuer_V3(parser_context_t* c, pd_TrustedIssuer_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
- CHECK_ERROR(_readIdentityId_V1(c, &v->issuer))
- CHECK_ERROR(_readTrustedFor_V1(c, &v->trustedFor))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->issuer))
+ CHECK_ERROR(_readTrustedFor_V3(c, &v->trustedFor))
return parser_ok;
}
-parser_error_t _readTupleCountryCodeScope_V1(parser_context_t* c, pd_TupleCountryCodeScope_V1_t* v)
+parser_error_t _readTupleCountryCodeScope_V3(parser_context_t* c, pd_TupleCountryCodeScope_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readCountryCode_V1(c, &v->country_code))
- CHECK_ERROR(_readScope_V1(c, &v->scope))
+ CHECK_INPUT()
+ CHECK_ERROR(_readCountryCode_V3(c, &v->country_code))
+ CHECK_ERROR(_readScope_V3(c, &v->scope))
return parser_ok;
}
-parser_error_t _readTupleIdentityIdTax_V1(parser_context_t* c, pd_TupleIdentityIdTax_V1_t* v)
+parser_error_t _readTupleIdentityIdTax_V3(parser_context_t* c, pd_TupleIdentityIdTax_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readIdentityId_V1(c, &v->id))
- CHECK_ERROR(_readTax_V1(c, &v->tax))
+ CHECK_INPUT()
+ CHECK_ERROR(_readIdentityId_V3(c, &v->id))
+ CHECK_ERROR(_readTax_V3(c, &v->tax))
return parser_ok;
}
-parser_error_t _readTupleIdentityIdbool_V1(parser_context_t* c, pd_TupleIdentityIdbool_V1_t* v)
+parser_error_t _readTupleIdentityIdbool_V3(parser_context_t* c, pd_TupleIdentityIdbool_V3_t* v)
{
- CHECK_ERROR(_readIdentityId_V1(c, &v->identity))
+ CHECK_ERROR(_readIdentityId_V3(c, &v->identity))
CHECK_ERROR(_readBool(c, &v->val))
return parser_ok;
}
-parser_error_t _readTuplePipIdSnapshotResult_V1(parser_context_t* c, pd_TuplePipIdSnapshotResult_V1_t* v)
+parser_error_t _readTuplePipIdSnapshotResult_V3(parser_context_t* c, pd_TuplePipIdSnapshotResult_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readPipId_V1(c, &v->pip_id))
- CHECK_ERROR(_readSnapshotResult_V1(c, &v->snapshot_result))
+ CHECK_INPUT()
+ CHECK_ERROR(_readPipId_V3(c, &v->pip_id))
+ CHECK_ERROR(_readSnapshotResult_V3(c, &v->snapshot_result))
return parser_ok;
}
-parser_error_t _readTupleScopeScopeIdCddId_V1(parser_context_t* c, pd_TupleScopeScopeIdCddId_V1_t* v)
+parser_error_t _readTupleScopeScopeIdCddId_V3(parser_context_t* c, pd_TupleScopeScopeIdCddId_V3_t* v)
{
- CHECK_INPUT();
- CHECK_ERROR(_readScope_V1(c, &v->scope))
- CHECK_ERROR(_readScopeId_V1(c, &v->scopeId))
- CHECK_ERROR(_readCddId_V1(c, &v->cddId))
+ CHECK_INPUT()
+ CHECK_ERROR(_readScope_V3(c, &v->scope))
+ CHECK_ERROR(_readScopeId_V3(c, &v->scopeId))
+ CHECK_ERROR(_readCddId_V3(c, &v->cddId))
return parser_ok;
}
-parser_error_t _readUniqueCall_V1(parser_context_t* c, pd_UniqueCall_V1_t* v)
+parser_error_t _readUniqueCall_V3(parser_context_t* c, pd_UniqueCall_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt64(c, &v->nonce))
CHECK_ERROR(_readCall(c, &v->call))
return parser_ok;
}
-parser_error_t _readUrl_V1(parser_context_t* c, pd_Url_V1_t* v)
+parser_error_t _readUrl_V3(parser_context_t* c, pd_Url_V3_t* v)
{
CHECK_INPUT()
@@ -1404,22 +1341,15 @@ parser_error_t _readUrl_V1(parser_context_t* c, pd_Url_V1_t* v)
return parser_ok;
}
-parser_error_t _readValidatorIndex_V1(parser_context_t* c, pd_ValidatorIndex_V1_t* v)
+parser_error_t _readValidatorPrefs_V3(parser_context_t* c, pd_ValidatorPrefs_V3_t* v)
{
CHECK_INPUT()
- CHECK_ERROR(_readUInt16(c, &v->value))
- return parser_ok;
-}
-
-parser_error_t _readValidatorPrefs_V1(parser_context_t* c, pd_ValidatorPrefs_V1_t* v)
-{
- CHECK_INPUT();
- CHECK_ERROR(_readCompactPerBill_V1(c, &v->commission));
+ CHECK_ERROR(_readCompactPerBill_V3(c, &v->commission));
CHECK_ERROR(_readBool(c, &v->blocked));
return parser_ok;
}
-parser_error_t _readVenueDetails_V1(parser_context_t* c, pd_VenueDetails_V1_t* v)
+parser_error_t _readVenueDetails_V3(parser_context_t* c, pd_VenueDetails_V3_t* v)
{
CHECK_INPUT()
@@ -1433,9 +1363,14 @@ parser_error_t _readVenueDetails_V1(parser_context_t* c, pd_VenueDetails_V1_t* v
return parser_ok;
}
-parser_error_t _readVenueType_V1(parser_context_t* c, pd_VenueType_V1_t* v)
+parser_error_t _readVenueId_V3(parser_context_t* c, pd_VenueId_V3_t* v)
+{
+ return _readUInt64(c, &v->value);
+}
+
+parser_error_t _readVenueType_V3(parser_context_t* c, pd_VenueType_V3_t* v)
{
- CHECK_INPUT();
+ CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
if (v->value > 3) {
@@ -1445,359 +1380,271 @@ parser_error_t _readVenueType_V1(parser_context_t* c, pd_VenueType_V1_t* v)
return parser_ok;
}
-parser_error_t _readWeight_V1(parser_context_t* c, pd_Weight_V1_t* v)
+parser_error_t _readWeight_V3(parser_context_t* c, pd_Weight_V3_t* v)
{
- return _readUInt64(c, &v->value);
-}
-
-parser_error_t _readVecAccountId_V1(parser_context_t* c, pd_VecAccountId_V1_t* v) {
- GEN_DEF_READVECTOR(AccountId_V1)
-}
-
-parser_error_t _readVecAssetIdentifier_V1(parser_context_t* c, pd_VecAssetIdentifier_V1_t* v) {
- GEN_DEF_READVECTOR(AssetIdentifier_V1)
-}
-
-parser_error_t _readVecBallotVote_V1(parser_context_t* c, pd_VecBallotVote_V1_t* v) {
- GEN_DEF_READVECTOR(BallotVote_V1)
-}
-
-parser_error_t _readVecBeneficiary_V1(parser_context_t* c, pd_VecBeneficiary_V1_t* v) {
- GEN_DEF_READVECTOR(Beneficiary_V1)
-}
-
-parser_error_t _readVecBridgeTx_V1(parser_context_t* c, pd_VecBridgeTx_V1_t* v) {
- GEN_DEF_READVECTOR(BridgeTx_V1)
-}
-
-parser_error_t _readVecChoiceTitle_V1(parser_context_t* c, pd_VecChoiceTitle_V1_t* v) {
- GEN_DEF_READVECTOR(ChoiceTitle_V1)
+ CHECK_INPUT()
+ CHECK_ERROR(_readUInt64(c, &v->value))
+ return parser_ok;
}
-parser_error_t _readVecClaimType_V1(parser_context_t* c, pd_VecClaimType_V1_t* v) {
- GEN_DEF_READVECTOR(ClaimType_V1)
+parser_error_t _readVecAccountId_V3(parser_context_t* c, pd_VecAccountId_V3_t* v) {
+ GEN_DEF_READVECTOR(AccountId_V3)
}
-parser_error_t _readVecClaim_V1(parser_context_t* c, pd_VecClaim_V1_t* v) {
- GEN_DEF_READVECTOR(Claim_V1)
+parser_error_t _readVecAssetIdentifier_V3(parser_context_t* c, pd_VecAssetIdentifier_V3_t* v) {
+ GEN_DEF_READVECTOR(AssetIdentifier_V3)
}
-parser_error_t _readVecComplianceRequirement_V1(parser_context_t* c, pd_VecComplianceRequirement_V1_t* v) {
- GEN_DEF_READVECTOR(ComplianceRequirement_V1)
+parser_error_t _readVecBallotVote_V3(parser_context_t* c, pd_VecBallotVote_V3_t* v) {
+ GEN_DEF_READVECTOR(BallotVote_V3)
}
-parser_error_t _readVecCondition_V1(parser_context_t* c, pd_VecCondition_V1_t* v) {
- GEN_DEF_READVECTOR(Condition_V1)
+parser_error_t _readVecBeneficiary_V3(parser_context_t* c, pd_VecBeneficiary_V3_t* v) {
+ GEN_DEF_READVECTOR(Beneficiary_V3)
}
-parser_error_t _readVecDispatchableName_V1(parser_context_t* c, pd_VecDispatchableName_V1_t* v) {
- GEN_DEF_READVECTOR(DispatchableName_V1)
+parser_error_t _readVecBridgeTxAccountId_V3(parser_context_t* c, pd_VecBridgeTxAccountId_V3_t* v) {
+ GEN_DEF_READVECTOR(BridgeTxAccountId_V3)
}
-parser_error_t _readVecDocumentId_V1(parser_context_t* c, pd_VecDocumentId_V1_t* v) {
- GEN_DEF_READVECTOR(DocumentId_V1)
+parser_error_t _readVecChoiceTitle_V3(parser_context_t* c, pd_VecChoiceTitle_V3_t* v) {
+ GEN_DEF_READVECTOR(ChoiceTitle_V3)
}
-parser_error_t _readVecDocument_V1(parser_context_t* c, pd_VecDocument_V1_t* v) {
- GEN_DEF_READVECTOR(Document_V1)
+parser_error_t _readVecClaimType_V3(parser_context_t* c, pd_VecClaimType_V3_t* v) {
+ GEN_DEF_READVECTOR(ClaimType_V3)
}
-parser_error_t _readVecIdentityId_V1(parser_context_t* c, pd_VecIdentityId_V1_t* v) {
- GEN_DEF_READVECTOR(IdentityId_V1)
+parser_error_t _readVecClaim_V3(parser_context_t* c, pd_VecClaim_V3_t* v) {
+ GEN_DEF_READVECTOR(Claim_V3)
}
-parser_error_t _readVecKeyValue_V1(parser_context_t* c, pd_VecKeyValue_V1_t* v) {
- GEN_DEF_READVECTOR(KeyValue_V1)
+parser_error_t _readVecCondition_V3(parser_context_t* c, pd_VecCondition_V3_t* v) {
+ GEN_DEF_READVECTOR(Condition_V3)
}
-parser_error_t _readVecKey_V1(parser_context_t* c, pd_VecKey_V1_t* v) {
- GEN_DEF_READVECTOR(Key_V1)
+parser_error_t _readVecDispatchableName_V3(parser_context_t* c, pd_VecDispatchableName_V3_t* v) {
+ GEN_DEF_READVECTOR(DispatchableName_V3)
}
-parser_error_t _readVecLeg_V1(parser_context_t* c, pd_VecLeg_V1_t* v) {
- GEN_DEF_READVECTOR(Leg_V1)
+parser_error_t _readVecDocumentId_V3(parser_context_t* c, pd_VecDocumentId_V3_t* v) {
+ GEN_DEF_READVECTOR(DocumentId_V3)
}
-parser_error_t _readVecLegacyPalletPermissions_V1(parser_context_t* c, pd_VecLegacyPalletPermissions_V1_t* v) {
- GEN_DEF_READVECTOR(LegacyPalletPermissions_V1)
+parser_error_t _readVecDocument_V3(parser_context_t* c, pd_VecDocument_V3_t* v) {
+ GEN_DEF_READVECTOR(Document_V3)
}
-parser_error_t _readVecLookupSource_V1(parser_context_t* c, pd_VecLookupSource_V1_t* v) {
- GEN_DEF_READVECTOR(LookupSource_V1)
+parser_error_t _readVecIdentityId_V3(parser_context_t* c, pd_VecIdentityId_V3_t* v) {
+ GEN_DEF_READVECTOR(IdentityId_V3)
}
-parser_error_t _readVecMotion_V1(parser_context_t* c, pd_VecMotion_V1_t* v) {
- GEN_DEF_READVECTOR(Motion_V1)
+parser_error_t _readVecLeg_V3(parser_context_t* c, pd_VecLeg_V3_t* v) {
+ GEN_DEF_READVECTOR(Leg_V3)
}
-parser_error_t _readVecMovePortfolioItem_V1(parser_context_t* c, pd_VecMovePortfolioItem_V1_t* v) {
- GEN_DEF_READVECTOR(MovePortfolioItem_V1)
+parser_error_t _readVecLookupasStaticLookupSource_V3(parser_context_t* c, pd_VecLookupasStaticLookupSource_V3_t* v) {
+ GEN_DEF_READVECTOR(LookupasStaticLookupSource_V3)
}
-parser_error_t _readVecPalletPermissions_V1(parser_context_t* c, pd_VecPalletPermissions_V1_t* v) {
- GEN_DEF_READVECTOR(PalletPermissions_V1)
+parser_error_t _readVecMotion_V3(parser_context_t* c, pd_VecMotion_V3_t* v) {
+ GEN_DEF_READVECTOR(Motion_V3)
}
-parser_error_t _readVecPortfolioId_V1(parser_context_t* c, pd_VecPortfolioId_V1_t* v) {
- GEN_DEF_READVECTOR(PortfolioId_V1)
+parser_error_t _readVecMovePortfolioItem_V3(parser_context_t* c, pd_VecMovePortfolioItem_V3_t* v) {
+ GEN_DEF_READVECTOR(MovePortfolioItem_V3)
}
-parser_error_t _readVecPriceTier_V1(parser_context_t* c, pd_VecPriceTier_V1_t* v) {
- GEN_DEF_READVECTOR(PriceTier_V1)
+parser_error_t _readVecPalletPermissions_V3(parser_context_t* c, pd_VecPalletPermissions_V3_t* v) {
+ GEN_DEF_READVECTOR(PalletPermissions_V3)
}
-parser_error_t _readVecReceiptDetails_V1(parser_context_t* c, pd_VecReceiptDetails_V1_t* v) {
- GEN_DEF_READVECTOR(ReceiptDetails_V1)
+parser_error_t _readVecPortfolioId_V3(parser_context_t* c, pd_VecPortfolioId_V3_t* v) {
+ GEN_DEF_READVECTOR(PortfolioId_V3)
}
-parser_error_t _readVecScopeId_V1(parser_context_t* c, pd_VecScopeId_V1_t* v) {
- GEN_DEF_READVECTOR(ScopeId_V1)
+parser_error_t _readVecPriceTier_V3(parser_context_t* c, pd_VecPriceTier_V3_t* v) {
+ GEN_DEF_READVECTOR(PriceTier_V3)
}
-parser_error_t _readVecSecondaryKeyWithAuth_V1(parser_context_t* c, pd_VecSecondaryKeyWithAuth_V1_t* v) {
- GEN_DEF_READVECTOR(SecondaryKeyWithAuth_V1)
+parser_error_t _readVecReceiptDetails_V3(parser_context_t* c, pd_VecReceiptDetails_V3_t* v) {
+ GEN_DEF_READVECTOR(ReceiptDetails_V3)
}
-parser_error_t _readVecSecondaryKey_V1(parser_context_t* c, pd_VecSecondaryKey_V1_t* v) {
- GEN_DEF_READVECTOR(SecondaryKey_V1)
+parser_error_t _readVecSecondaryKeyWithAuthAccountId_V3(parser_context_t* c, pd_VecSecondaryKeyWithAuthAccountId_V3_t* v) {
+ GEN_DEF_READVECTOR(SecondaryKeyWithAuthAccountId_V3)
}
-parser_error_t _readVecSignatory_V1(parser_context_t* c, pd_VecSignatory_V1_t* v) {
- GEN_DEF_READVECTOR(Signatory_V1)
+parser_error_t _readVecSignatoryAccountId_V3(parser_context_t* c, pd_VecSignatoryAccountId_V3_t* v) {
+ GEN_DEF_READVECTOR(SignatoryAccountId_V3)
}
-parser_error_t _readVecTicker_V1(parser_context_t* c, pd_VecTicker_V1_t* v) {
- GEN_DEF_READVECTOR(Ticker_V1)
+parser_error_t _readVecTicker_V3(parser_context_t* c, pd_VecTicker_V3_t* v) {
+ GEN_DEF_READVECTOR(Ticker_V3)
}
-parser_error_t _readVecTrustedIssuer_V1(parser_context_t* c, pd_VecTrustedIssuer_V1_t* v) {
- GEN_DEF_READVECTOR(TrustedIssuer_V1)
+parser_error_t _readVecTrustedIssuer_V3(parser_context_t* c, pd_VecTrustedIssuer_V3_t* v) {
+ GEN_DEF_READVECTOR(TrustedIssuer_V3)
}
-parser_error_t _readVecTupleIdentityIdTax_V1(parser_context_t* c, pd_VecTupleIdentityIdTax_V1_t* v) {
- GEN_DEF_READVECTOR(TupleIdentityIdTax_V1)
+parser_error_t _readVecTupleIdentityIdTax_V3(parser_context_t* c, pd_VecTupleIdentityIdTax_V3_t* v) {
+ GEN_DEF_READVECTOR(TupleIdentityIdTax_V3)
}
-parser_error_t _readVecTupleIdentityIdbool_V1(parser_context_t* c, pd_VecTupleIdentityIdbool_V1_t* v) {
- GEN_DEF_READVECTOR(TupleIdentityIdbool_V1)
+parser_error_t _readVecTupleIdentityIdbool_V3(parser_context_t* c, pd_VecTupleIdentityIdbool_V3_t* v) {
+ GEN_DEF_READVECTOR(TupleIdentityIdbool_V3)
}
-parser_error_t _readVecTuplePipIdSnapshotResult_V1(parser_context_t* c, pd_VecTuplePipIdSnapshotResult_V1_t* v) {
- GEN_DEF_READVECTOR(TuplePipIdSnapshotResult_V1)
+parser_error_t _readVecTuplePipIdSnapshotResult_V3(parser_context_t* c, pd_VecTuplePipIdSnapshotResult_V3_t* v) {
+ GEN_DEF_READVECTOR(TuplePipIdSnapshotResult_V3)
}
-parser_error_t _readVecValidatorIndex_V1(parser_context_t* c, pd_VecValidatorIndex_V1_t* v) {
- GEN_DEF_READVECTOR(ValidatorIndex_V1)
+parser_error_t _readVecVenueId_V3(parser_context_t* c, pd_VecVenueId_V3_t* v) {
+ GEN_DEF_READVECTOR(VenueId_V3)
}
-parser_error_t _readOptionChangesTrieConfiguration_V1(parser_context_t* c, pd_OptionChangesTrieConfiguration_V1_t* v)
+parser_error_t _readOptionAssetMetadataValueDetailMoment_V3(parser_context_t* c, pd_OptionAssetMetadataValueDetailMoment_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readChangesTrieConfiguration_V1(c, &v->contained))
+ CHECK_ERROR(_readAssetMetadataValueDetailMoment_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionDocumentType_V1(parser_context_t* c, pd_OptionDocumentType_V1_t* v)
+parser_error_t _readOptionDocumentType_V3(parser_context_t* c, pd_OptionDocumentType_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readDocumentType_V1(c, &v->contained))
+ CHECK_ERROR(_readDocumentType_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionFundingRoundName_V1(parser_context_t* c, pd_OptionFundingRoundName_V1_t* v)
+parser_error_t _readOptionFundingRoundName_V3(parser_context_t* c, pd_OptionFundingRoundName_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readFundingRoundName_V1(c, &v->contained))
+ CHECK_ERROR(_readFundingRoundName_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionMemo_V1(parser_context_t* c, pd_OptionMemo_V1_t* v)
+parser_error_t _readOptionMemo_V3(parser_context_t* c, pd_OptionMemo_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readMemo_V1(c, &v->contained))
+ CHECK_ERROR(_readMemo_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionMoment_V1(parser_context_t* c, pd_OptionMoment_V1_t* v)
+parser_error_t _readOptionMoment_V3(parser_context_t* c, pd_OptionMoment_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readMoment_V1(c, &v->contained))
+ CHECK_ERROR(_readMoment_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionPeriod_V1(parser_context_t* c, pd_OptionPeriod_V1_t* v)
+parser_error_t _readOptionPipDescription_V3(parser_context_t* c, pd_OptionPipDescription_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readPeriod_V1(c, &v->contained))
+ CHECK_ERROR(_readPipDescription_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionPipDescription_V1(parser_context_t* c, pd_OptionPipDescription_V1_t* v)
+parser_error_t _readOptionPortfolioNumber_V3(parser_context_t* c, pd_OptionPortfolioNumber_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readPipDescription_V1(c, &v->contained))
+ CHECK_ERROR(_readPortfolioNumber_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionPortfolioNumber_V1(parser_context_t* c, pd_OptionPortfolioNumber_V1_t* v)
+parser_error_t _readOptionReceiptDetails_V3(parser_context_t* c, pd_OptionReceiptDetails_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readPortfolioNumber_V1(c, &v->contained))
+ CHECK_ERROR(_readReceiptDetails_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionReceiptDetails_V1(parser_context_t* c, pd_OptionReceiptDetails_V1_t* v)
+parser_error_t _readOptionRecordDateSpec_V3(parser_context_t* c, pd_OptionRecordDateSpec_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readReceiptDetails_V1(c, &v->contained))
+ CHECK_ERROR(_readRecordDateSpec_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionRecordDateSpec_V1(parser_context_t* c, pd_OptionRecordDateSpec_V1_t* v)
+parser_error_t _readOptionScope_V3(parser_context_t* c, pd_OptionScope_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readRecordDateSpec_V1(c, &v->contained))
+ CHECK_ERROR(_readScope_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionScope_V1(parser_context_t* c, pd_OptionScope_V1_t* v)
+parser_error_t _readOptionTargetIdentities_V3(parser_context_t* c, pd_OptionTargetIdentities_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readScope_V1(c, &v->contained))
+ CHECK_ERROR(_readTargetIdentities_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionTargetIdentities_V1(parser_context_t* c, pd_OptionTargetIdentities_V1_t* v)
+parser_error_t _readOptionTax_V3(parser_context_t* c, pd_OptionTax_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readTargetIdentities_V1(c, &v->contained))
+ CHECK_ERROR(_readTax_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionTax_V1(parser_context_t* c, pd_OptionTax_V1_t* v)
+parser_error_t _readOptionUrl_V3(parser_context_t* c, pd_OptionUrl_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readTax_V1(c, &v->contained))
+ CHECK_ERROR(_readUrl_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionUrl_V1(parser_context_t* c, pd_OptionUrl_V1_t* v)
+parser_error_t _readOptionVecTupleIdentityIdTax_V3(parser_context_t* c, pd_OptionVecTupleIdentityIdTax_V3_t* v)
{
CHECK_ERROR(_readUInt8(c, &v->some))
if (v->some > 0) {
- CHECK_ERROR(_readUrl_V1(c, &v->contained))
+ CHECK_ERROR(_readVecTupleIdentityIdTax_V3(c, &v->contained))
}
return parser_ok;
}
-parser_error_t _readOptionVecLegacyPalletPermissions_V1(parser_context_t* c, pd_OptionVecLegacyPalletPermissions_V1_t* v)
-{
- CHECK_ERROR(_readUInt8(c, &v->some))
- if (v->some > 0) {
- CHECK_ERROR(_readVecLegacyPalletPermissions_V1(c, &v->contained))
- }
- return parser_ok;
-}
+///////////////////////////////////
+///////////////////////////////////
+///////////////////////////////////
-parser_error_t _readOptionVecPortfolioId_V1(parser_context_t* c, pd_OptionVecPortfolioId_V1_t* v)
+parser_error_t _toStringAGId_V3(
+ const pd_AGId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
{
- CHECK_ERROR(_readUInt8(c, &v->some))
- if (v->some > 0) {
- CHECK_ERROR(_readVecPortfolioId_V1(c, &v->contained))
- }
- return parser_ok;
+ return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _readOptionVecTicker_V1(parser_context_t* c, pd_OptionVecTicker_V1_t* v)
-{
- CHECK_ERROR(_readUInt8(c, &v->some))
- if (v->some > 0) {
- CHECK_ERROR(_readVecTicker_V1(c, &v->contained))
- }
- return parser_ok;
-}
-
-parser_error_t _readOptionVecTupleIdentityIdTax_V1(parser_context_t* c, pd_OptionVecTupleIdentityIdTax_V1_t* v)
-{
- CHECK_ERROR(_readUInt8(c, &v->some))
- if (v->some > 0) {
- CHECK_ERROR(_readVecTupleIdentityIdTax_V1(c, &v->contained))
- }
- return parser_ok;
-}
-
-///////////////////////////////////
-///////////////////////////////////
-///////////////////////////////////
-
-parser_error_t _toStringCompactAssignments_V1(
- const pd_CompactAssignments_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringCompactEraIndex_V1(
- const pd_CompactEraIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringCompactMoment_V1(
- const pd_CompactMoment_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringCompactInt(v, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringAGId_V1(
- const pd_AGId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringAccountId_V1(
- const pd_AccountId_V1_t* v,
+parser_error_t _toStringAccountId_V3(
+ const pd_AccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1806,8 +1653,8 @@ parser_error_t _toStringAccountId_V1(
return _toStringPubkeyAsAddress(v->_ptr, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringAccountIndex_V1(
- const pd_AccountIndex_V1_t* v,
+parser_error_t _toStringAccountIndex_V3(
+ const pd_AccountIndex_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1816,8 +1663,8 @@ parser_error_t _toStringAccountIndex_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringAddRelayerPayingKey_V1(
- const pd_AddRelayerPayingKey_V1_t* v,
+parser_error_t _toStringAddRelayerPayingKey_V3(
+ const pd_AddRelayerPayingKey_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1825,32 +1672,33 @@ parser_error_t _toStringAddRelayerPayingKey_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId_1, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId_2, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId_1, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId_2, outValue, outValueLen, 0, &pages[1]))
CHECK_ERROR(_toStringBalance(&v->balance, outValue, outValueLen, 0, &pages[2]))
- *pageCount = pages[0] + pages[1] + pages[2];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId_1, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId_1, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId_2, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId_2, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
CHECK_ERROR(_toStringBalance(&v->balance, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
@@ -1859,8 +1707,8 @@ parser_error_t _toStringAddRelayerPayingKey_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringAgentGroup_V1(
- const pd_AgentGroup_V1_t* v,
+parser_error_t _toStringAgentGroup_V3(
+ const pd_AgentGroup_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1878,9 +1726,9 @@ parser_error_t _toStringAgentGroup_V1(
GEN_DEF_TOSTRING_ENUM("Full")
break;
case 1: // RotatePrimaryKey
- CHECK_ERROR(_toStringAGId_V1(&v->agId, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringAGId_V3(&v->agId, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("Custom")
- CHECK_ERROR(_toStringAGId_V1(&v->agId, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringAGId_V3(&v->agId, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 2: // ExceptMeta
GEN_DEF_TOSTRING_ENUM("ExceptMeta")
@@ -1898,8 +1746,8 @@ parser_error_t _toStringAgentGroup_V1(
return parser_ok;
}
-parser_error_t _toStringAssetIdentifier_V1(
- const pd_AssetIdentifier_V1_t* v,
+parser_error_t _toStringAssetIdentifier_V3(
+ const pd_AssetIdentifier_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1916,8 +1764,153 @@ parser_error_t _toStringAssetIdentifier_V1(
return parser_ok;
}
-parser_error_t _toStringAssetName_V1(
- const pd_AssetName_V1_t* v,
+parser_error_t _toStringAssetMetadataKey_V3(
+ const pd_AssetMetadataKey_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+ if (v->value < 2) {
+ CHECK_ERROR(_toStringu64(&v->key, outValue, outValueLen, pageIdx, pageCount))
+ return parser_ok;
+ }
+ return parser_unexpected_value;
+}
+
+parser_error_t _toStringAssetMetadataLockStatusMoment_V3(
+ const pd_AssetMetadataLockStatusMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+ *pageCount = 1;
+ switch (v->value) {
+ case 0:
+ snprintf(outValue, outValueLen, "Unlocked");
+ break;
+ case 1:
+ snprintf(outValue, outValueLen, "Locked");
+ break;
+ case 2:
+ CHECK_ERROR(_toStringMoment_V3(&v->moment, outValue, outValueLen, pageIdx, pageCount))
+ break;
+ default:
+ return parser_unexpected_value;
+ }
+ return parser_ok;
+}
+
+parser_error_t _toStringAssetMetadataName_V3(
+ const pd_AssetMetadataName_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+ CHECK_ERROR(_toStringBytes(&v->value, outValue, outValueLen, pageIdx, pageCount))
+ return parser_ok;
+}
+
+parser_error_t _toStringAssetMetadataSpec_V3(
+ const pd_AssetMetadataSpec_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringOptionBytes(&v->url, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringOptionBytes(&v->description, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringOptionBytes(&v->typeDef, outValue, outValueLen, 0, &pages[2]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
+ if (pageIdx > *pageCount) {
+ return parser_display_idx_out_of_range;
+ }
+
+ if (pageIdx < pages[0]) {
+ CHECK_ERROR(_toStringOptionBytes(&v->url, outValue, outValueLen, pageIdx, &pages[0]))
+ return parser_ok;
+ }
+ pageIdx -= pages[0];
+
+ if (pageIdx < pages[1]) {
+ CHECK_ERROR(_toStringOptionBytes(&v->description, outValue, outValueLen, pageIdx, &pages[1]))
+ return parser_ok;
+ }
+ pageIdx -= pages[1];
+
+ if (pageIdx < pages[2]) {
+ CHECK_ERROR(_toStringOptionBytes(&v->typeDef, outValue, outValueLen, pageIdx, &pages[2]))
+ return parser_ok;
+ }
+
+ return parser_display_idx_out_of_range;
+}
+
+parser_error_t _toStringAssetMetadataValueDetailMoment_V3(
+ const pd_AssetMetadataValueDetailMoment_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->expire, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringAssetMetadataLockStatusMoment_V3(&v->lockStatus, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
+ if (pageIdx > *pageCount) {
+ return parser_display_idx_out_of_range;
+ }
+
+ if (pageIdx < pages[0]) {
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->expire, outValue, outValueLen, pageIdx, &pages[0]))
+ return parser_ok;
+ }
+ pageIdx -= pages[0];
+
+ if (pageIdx < pages[1]) {
+ CHECK_ERROR(_toStringAssetMetadataLockStatusMoment_V3(&v->lockStatus, outValue, outValueLen, pageIdx, &pages[1]))
+ return parser_ok;
+ }
+
+ return parser_display_idx_out_of_range;
+}
+
+parser_error_t _toStringAssetMetadataValue_V3(
+ const pd_AssetMetadataValue_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CLEAN_AND_CHECK()
+ CHECK_ERROR(_toStringBytes(&v->value, outValue, outValueLen, pageIdx, pageCount))
+ return parser_ok;
+}
+
+parser_error_t _toStringAssetName_V3(
+ const pd_AssetName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1934,8 +1927,8 @@ parser_error_t _toStringAssetName_V1(
return parser_ok;
}
-parser_error_t _toStringAssetPermissions_V1(
- const pd_AssetPermissions_V1_t* v,
+parser_error_t _toStringAssetPermissions_V3(
+ const pd_AssetPermissions_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -1950,14 +1943,14 @@ parser_error_t _toStringAssetPermissions_V1(
GEN_DEF_TOSTRING_ENUM("Whole")
break;
case 1: // These
- CHECK_ERROR(_toStringVecTicker_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecTicker_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("These")
- CHECK_ERROR(_toStringVecTicker_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecTicker_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 2: // Except
- CHECK_ERROR(_toStringVecTicker_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecTicker_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("Except")
- CHECK_ERROR(_toStringVecTicker_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecTicker_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
default:
return parser_unexpected_value;
@@ -1966,8 +1959,8 @@ parser_error_t _toStringAssetPermissions_V1(
return parser_ok;
}
-parser_error_t _toStringAssetType_V1(
- const pd_AssetType_V1_t* v,
+parser_error_t _toStringAssetType_V3(
+ const pd_AssetType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2005,9 +1998,9 @@ parser_error_t _toStringAssetType_V1(
GEN_DEF_TOSTRING_ENUM("Derivative");
break;
case 9:
- CHECK_ERROR(_toStringCustomAssetTypeId_V1(&v->custom, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringCustomAssetTypeId_V3(&v->custom, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("Custom")
- CHECK_ERROR(_toStringCustomAssetTypeId_V1(&v->custom, outValue, outValueLen, pageIdx, &_dummy))
+ CHECK_ERROR(_toStringCustomAssetTypeId_V3(&v->custom, outValue, outValueLen, pageIdx, &_dummy))
break;
case 10:
GEN_DEF_TOSTRING_ENUM("StableCoin");
@@ -2017,8 +2010,8 @@ parser_error_t _toStringAssetType_V1(
return parser_ok;
}
-parser_error_t _toStringAuthorizationData_V1(
- const pd_AuthorizationData_V1_t* v,
+parser_error_t _toStringAuthorizationDataAccountId_V3(
+ const pd_AuthorizationDataAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2033,47 +2026,52 @@ parser_error_t _toStringAuthorizationData_V1(
switch (v->value) {
case 0: // AttestPrimaryKeyRotation
- CHECK_ERROR(_toStringIdentityId_V1(&v->identityId, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringIdentityId_V3(&v->identityId, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("AttestPrimaryKeyRotation")
- CHECK_ERROR(_toStringIdentityId_V1(&v->identityId, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringIdentityId_V3(&v->identityId, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 1: // RotatePrimaryKey
GEN_DEF_TOSTRING_ENUM("RotatePrimaryKey")
break;
case 2: // TransferTicker
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("TransferTicker")
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 3: // AddMultiSigSigner
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("AddMultiSigSigner")
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 4: // TransferAssetOwnership
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("TransferAssetOwnership")
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 5: // JoinIdentity
- CHECK_ERROR(_toStringPermissions_V1(&v->permissions, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringPermissions_V3(&v->permissions, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("JoinIdentity")
- CHECK_ERROR(_toStringPermissions_V1(&v->permissions, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringPermissions_V3(&v->permissions, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 6: // PortfolioCustody
- CHECK_ERROR(_toStringPortfolioId_V1(&v->portfolioId, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringPortfolioId_V3(&v->portfolioId, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("PortfolioCustody")
- CHECK_ERROR(_toStringPortfolioId_V1(&v->portfolioId, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringPortfolioId_V3(&v->portfolioId, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 7: // BecomeAgent
- CHECK_ERROR(_toStringBecomeAgent_V1(&v->becomeAgent, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringBecomeAgent_V3(&v->becomeAgent, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("BecomeAgent")
- CHECK_ERROR(_toStringBecomeAgent_V1(&v->becomeAgent, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringBecomeAgent_V3(&v->becomeAgent, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 8: // AddRelayerPayingKey
- CHECK_ERROR(_toStringAddRelayerPayingKey_V1(&v->addRelayerPayingKey, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringAddRelayerPayingKey_V3(&v->addRelayerPayingKey, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("AddRelayerPayingKey")
- CHECK_ERROR(_toStringAddRelayerPayingKey_V1(&v->addRelayerPayingKey, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringAddRelayerPayingKey_V3(&v->addRelayerPayingKey, outValue, outValueLen, pageIdx, &_dummy);)
+ break;
+ case 9: // RotatePrimaryKeyToSecondary
+ CHECK_ERROR(_toStringPermissions_V3(&v->permissions, outValue, outValueLen, 0, pageCount);)
+ GEN_DEF_TOSTRING_ENUM("RotatePrimaryKeyToSecondary")
+ CHECK_ERROR(_toStringPermissions_V3(&v->permissions, outValue, outValueLen, pageIdx, &_dummy);)
break;
default:
return parser_unexpected_value;
@@ -2082,53 +2080,45 @@ parser_error_t _toStringAuthorizationData_V1(
return parser_ok;
}
-parser_error_t _toStringBabeEquivocationProof_V1(
- const pd_BabeEquivocationProof_V1_t* v,
+parser_error_t _toStringBallotMeta_V3(
+ const pd_BallotMeta_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
CLEAN_AND_CHECK()
- return parser_print_not_supported;
-}
-parser_error_t _toStringBallotMeta_V1(
- const pd_BallotMeta_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringBallotTitle_V3(&v->title, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringVecMotion_V3(&v->motions, outValue, outValueLen, 0, &pages[1]))
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringBallotTitle_V1(&v->title, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringVecMotion_V1(&v->motions, outValue, outValueLen, 0, &pages[1]))
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringBallotTitle_V1(&v->title, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringBallotTitle_V3(&v->title, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringVecMotion_V1(&v->motions, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringVecMotion_V3(&v->motions, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringBallotTimeRange_V1(
- const pd_BallotTimeRange_V1_t* v,
+parser_error_t _toStringBallotTimeRange_V3(
+ const pd_BallotTimeRange_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2136,33 +2126,36 @@ parser_error_t _toStringBallotTimeRange_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringMoment_V1(&v->start, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringMoment_V1(&v->end, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringMoment_V3(&v->start, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringMoment_V3(&v->end, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringMoment_V1(&v->start, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringMoment_V3(&v->start, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringMoment_V1(&v->end, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringMoment_V3(&v->end, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringBallotTitle_V1(
- const pd_BallotTitle_V1_t* v,
+parser_error_t _toStringBallotTitle_V3(
+ const pd_BallotTitle_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2179,8 +2172,8 @@ parser_error_t _toStringBallotTitle_V1(
return parser_ok;
}
-parser_error_t _toStringBallotVote_V1(
- const pd_BallotVote_V1_t* v,
+parser_error_t _toStringBallotVote_V3(
+ const pd_BallotVote_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2188,12 +2181,16 @@ parser_error_t _toStringBallotVote_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
CHECK_ERROR(_toStringBalance(&v->power, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringOptionu16(&v->fallback, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
@@ -2204,7 +2201,6 @@ parser_error_t _toStringBallotVote_V1(
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringOptionu16(&v->fallback, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
@@ -2213,8 +2209,8 @@ parser_error_t _toStringBallotVote_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringBecomeAgent_V1(
- const pd_BecomeAgent_V1_t* v,
+parser_error_t _toStringBecomeAgent_V3(
+ const pd_BecomeAgent_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2222,33 +2218,36 @@ parser_error_t _toStringBecomeAgent_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringAgentGroup_V1(&v->agentGroup, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringAgentGroup_V3(&v->agentGroup, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringAgentGroup_V1(&v->agentGroup, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringAgentGroup_V3(&v->agentGroup, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringBeneficiary_V1(
- const pd_Beneficiary_V1_t* v,
+parser_error_t _toStringBeneficiary_V3(
+ const pd_Beneficiary_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2256,23 +2255,26 @@ parser_error_t _toStringBeneficiary_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringIdentityId_V1(&v->identity, outValue, outValueLen, 0, &pages[0]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringIdentityId_V3(&v->identity, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringBalance(&v->balance, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringIdentityId_V1(&v->identity, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringIdentityId_V3(&v->identity, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringBalance(&v->balance, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
@@ -2281,8 +2283,8 @@ parser_error_t _toStringBeneficiary_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringBridgeTx_V1(
- const pd_BridgeTx_V1_t* v,
+parser_error_t _toStringBridgeTxAccountId_V3(
+ const pd_BridgeTxAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2290,14 +2292,18 @@ parser_error_t _toStringBridgeTx_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[4];
+ // First measure number of pages
+ uint8_t pages[4] = { 0 };
CHECK_ERROR(_toStringu32(&v->nonce, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringAccountId_V1(&v->recipient, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->recipient, outValue, outValueLen, 0, &pages[1]))
CHECK_ERROR(_toStringBalance(&v->value, outValue, outValueLen, 0, &pages[2]))
CHECK_ERROR(_toStringHash(&v->txHash, outValue, outValueLen, 0, &pages[3]))
- *pageCount = pages[0] + pages[1] + pages[2] + pages[3];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
@@ -2308,23 +2314,18 @@ parser_error_t _toStringBridgeTx_V1(
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringAccountId_V1(&v->recipient, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->recipient, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
CHECK_ERROR(_toStringBalance(&v->value, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
-
pageIdx -= pages[2];
- //////
if (pageIdx < pages[3]) {
CHECK_ERROR(_toStringHash(&v->txHash, outValue, outValueLen, pageIdx, &pages[3]))
return parser_ok;
@@ -2333,8 +2334,8 @@ parser_error_t _toStringBridgeTx_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringCADetails_V1(
- const pd_CADetails_V1_t* v,
+parser_error_t _toStringCADetails_V3(
+ const pd_CADetails_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2351,8 +2352,8 @@ parser_error_t _toStringCADetails_V1(
return parser_ok;
}
-parser_error_t _toStringCAId_V1(
- const pd_CAId_V1_t* v,
+parser_error_t _toStringCAId_V3(
+ const pd_CAId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2360,33 +2361,36 @@ parser_error_t _toStringCAId_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringLocalCAId_V1(&v->local_id, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringLocalCAId_V3(&v->local_id, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringLocalCAId_V1(&v->local_id, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringLocalCAId_V3(&v->local_id, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringCAKind_V1(
- const pd_CAKind_V1_t* v,
+parser_error_t _toStringCAKind_V3(
+ const pd_CAKind_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2416,8 +2420,8 @@ parser_error_t _toStringCAKind_V1(
return parser_ok;
}
-parser_error_t _toStringCalendarPeriod_V1(
- const pd_CalendarPeriod_V1_t* v,
+parser_error_t _toStringCalendarPeriod_V3(
+ const pd_CalendarPeriod_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2425,23 +2429,26 @@ parser_error_t _toStringCalendarPeriod_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringCalendarUnit_V1(&v->unit, outValue, outValueLen, 0, &pages[0]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringCalendarUnit_V3(&v->unit, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringu64(&v->amount, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringCalendarUnit_V1(&v->unit, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringCalendarUnit_V3(&v->unit, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringu64(&v->amount, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
@@ -2450,8 +2457,8 @@ parser_error_t _toStringCalendarPeriod_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringCalendarUnit_V1(
- const pd_CalendarUnit_V1_t* v,
+parser_error_t _toStringCalendarUnit_V3(
+ const pd_CalendarUnit_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2487,8 +2494,8 @@ parser_error_t _toStringCalendarUnit_V1(
return parser_ok;
}
-parser_error_t _toStringCddId_V1(
- const pd_CddId_V1_t* v,
+parser_error_t _toStringCddId_V3(
+ const pd_CddId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2496,39 +2503,8 @@ parser_error_t _toStringCddId_V1(
GEN_DEF_TOSTRING_ARRAY(32)
}
-parser_error_t _toStringChangesTrieConfiguration_V1(
- const pd_ChangesTrieConfiguration_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- // Get all pages first
- uint8_t pages[2];
- CHECK_ERROR(_toStringu32(&v->digest_interval, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringu32(&v->digest_levels, outValue, outValueLen, 0, &pages[1]))
-
- *pageCount = pages[0] + pages[1];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringu32(&v->digest_interval, outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringu32(&v->digest_levels, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
-}
-
-parser_error_t _toStringCheckpointId_V1(
- const pd_CheckpointId_V1_t* v,
+parser_error_t _toStringCheckpointId_V3(
+ const pd_CheckpointId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2537,8 +2513,8 @@ parser_error_t _toStringCheckpointId_V1(
return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringChoiceTitle_V1(
- const pd_ChoiceTitle_V1_t* v,
+parser_error_t _toStringChoiceTitle_V3(
+ const pd_ChoiceTitle_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2555,8 +2531,8 @@ parser_error_t _toStringChoiceTitle_V1(
return parser_ok;
}
-parser_error_t _toStringClaimType_V1(
- const pd_ClaimType_V1_t* v,
+parser_error_t _toStringClaimType_V3(
+ const pd_ClaimType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2608,8 +2584,8 @@ parser_error_t _toStringClaimType_V1(
return parser_ok;
}
-parser_error_t _toStringClaim_V1(
- const pd_Claim_V1_t* v,
+parser_error_t _toStringClaim_V3(
+ const pd_Claim_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2624,63 +2600,63 @@ parser_error_t _toStringClaim_V1(
switch (v->value) {
case 0: // Accredited
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("Accredited");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 1: // Affiliate
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("Affiliate");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 2: // BuyLockup
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("BuyLockup");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 3: // SellLockup
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("SellLockup");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 4: // CustomerDueDiligence
- CHECK_ERROR(_toStringCddId_V1(&v->cddId, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringCddId_V3(&v->cddId, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("CustomerDueDiligence");
- CHECK_ERROR(_toStringCddId_V1(&v->cddId, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringCddId_V3(&v->cddId, outValue, outValueLen, pageIdx, &_dummy));
break;
case 5: // KnowYourCustomer
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("KnowYourCustomer");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 6: // Jurisdiction
- CHECK_ERROR(_toStringTupleCountryCodeScope_V1(&v->jurisdiction, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringTupleCountryCodeScope_V3(&v->jurisdiction, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("Jurisdiction");
- CHECK_ERROR(_toStringTupleCountryCodeScope_V1(&v->jurisdiction, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringTupleCountryCodeScope_V3(&v->jurisdiction, outValue, outValueLen, pageIdx, &_dummy));
break;
case 7: // Exempted
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("Exempted");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 8: // Blocked
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("Blocked");
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &_dummy));
break;
case 9: // InvestorUniqueness
- CHECK_ERROR(_toStringTupleScopeScopeIdCddId_V1(&v->investorUniqueness, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringTupleScopeScopeIdCddId_V3(&v->investorUniqueness, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("InvestorUniqueness");
- CHECK_ERROR(_toStringTupleScopeScopeIdCddId_V1(&v->investorUniqueness, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringTupleScopeScopeIdCddId_V3(&v->investorUniqueness, outValue, outValueLen, pageIdx, &_dummy));
break;
case 10: // NoData
snprintf(outValue, outValueLen, "NoData");
*pageCount = 1;
break;
case 11: // InvestorUniquenessV2
- CHECK_ERROR(_toStringCddId_V1(&v->cddId, outValue, outValueLen, 0, pageCount));
+ CHECK_ERROR(_toStringCddId_V3(&v->cddId, outValue, outValueLen, 0, pageCount));
GEN_DEF_TOSTRING_ENUM("InvestorUniquenessV2");
- CHECK_ERROR(_toStringCddId_V1(&v->cddId, outValue, outValueLen, pageIdx, &_dummy));
+ CHECK_ERROR(_toStringCddId_V3(&v->cddId, outValue, outValueLen, pageIdx, &_dummy));
break;
default:
return parser_unexpected_value;
@@ -2689,8 +2665,8 @@ parser_error_t _toStringClaim_V1(
return parser_ok;
}
-parser_error_t _toStringClassicTickerImport_V1(
- const pd_ClassicTickerImport_V1_t* v,
+parser_error_t _toStringClassicTickerImport_V3(
+ const pd_ClassicTickerImport_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2698,41 +2674,40 @@ parser_error_t _toStringClassicTickerImport_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[4];
- CHECK_ERROR(_toStringEthereumAddress_V1(&v->eth_owner, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[4] = { 0 };
+ CHECK_ERROR(_toStringEthereumAddress_V3(&v->eth_owner, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, 0, &pages[1]))
CHECK_ERROR(_toStringbool(&v->is_contract, outValue, outValueLen, 0, &pages[2]))
CHECK_ERROR(_toStringbool(&v->is_created, outValue, outValueLen, 0, &pages[3]))
- *pageCount = pages[0] + pages[1] + pages[2] + pages[3];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringEthereumAddress_V1(&v->eth_owner, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringEthereumAddress_V3(&v->eth_owner, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
CHECK_ERROR(_toStringbool(&v->is_contract, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
-
pageIdx -= pages[2];
- //////
if (pageIdx < pages[3]) {
CHECK_ERROR(_toStringbool(&v->is_created, outValue, outValueLen, pageIdx, &pages[3]))
return parser_ok;
@@ -2741,72 +2716,39 @@ parser_error_t _toStringClassicTickerImport_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringCompactAccountIndex_V1(
- const pd_CompactAccountIndex_V1_t* v,
+parser_error_t _toStringCodeHash_V3(
+ const pd_CodeHash_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- return _toStringCompactInt(&v->value, 0, "", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringHash(&v->hash, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringCompactPerBill_V1(
- const pd_CompactPerBill_V1_t* v,
+parser_error_t _toStringCompactAccountIndex_V3(
+ const pd_CompactAccountIndex_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- // 9 but shift 2 to show as percentage
- return _toStringCompactInt(&v->value, 7, "%", "", outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactInt(&v->value, 0, false, "", "", outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringComplianceRequirement_V1(
- const pd_ComplianceRequirement_V1_t* v,
+parser_error_t _toStringCompactPerBill_V3(
+ const pd_CompactPerBill_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
-
- CLEAN_AND_CHECK()
-
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringVecCondition_V1(&v->senderConditions, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringVecCondition_V1(&v->receiverConditions, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringu32(&v->id, outValue, outValueLen, 0, &pages[2]))
-
- *pageCount = pages[0] + pages[1] + pages[2];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringVecCondition_V1(&v->senderConditions, outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- //////
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringVecCondition_V1(&v->receiverConditions, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
- pageIdx -= pages[1];
-
- //////
- if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringu32(&v->id, outValue, outValueLen, pageIdx, &pages[2]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
+ // 9 but shift 2 to show as percentage
+ return _toStringCompactInt(&v->value, 7, false, "%", "", outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringConditionType_V1(
- const pd_ConditionType_V1_t* v,
+parser_error_t _toStringConditionType_V3(
+ const pd_ConditionType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2817,14 +2759,14 @@ parser_error_t _toStringConditionType_V1(
switch (v->value) {
case 0: // IsPresent
case 1: // IsAbsent
- CHECK_ERROR(_toStringClaim_V1(&v->claim, outValue, outValueLen, pageIdx, pageCount))
+ CHECK_ERROR(_toStringClaim_V3(&v->claim, outValue, outValueLen, pageIdx, pageCount))
break;
case 2: // IsAnyOf
case 3: // IsNoneOf
- CHECK_ERROR(_toStringVecClaim_V1(&v->vecClaim, outValue, outValueLen, pageIdx, pageCount))
+ CHECK_ERROR(_toStringVecClaim_V3(&v->vecClaim, outValue, outValueLen, pageIdx, pageCount))
break;
case 4: // IsIdentity
- CHECK_ERROR(_toStringTargetIdentity_V1(&v->identity, outValue, outValueLen, pageIdx, pageCount))
+ CHECK_ERROR(_toStringTargetIdentity_V3(&v->identity, outValue, outValueLen, pageIdx, pageCount))
break;
default:
return parser_unexpected_value;
@@ -2833,8 +2775,8 @@ parser_error_t _toStringConditionType_V1(
return parser_ok;
}
-parser_error_t _toStringCondition_V1(
- const pd_Condition_V1_t* v,
+parser_error_t _toStringCondition_V3(
+ const pd_Condition_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2842,47 +2784,40 @@ parser_error_t _toStringCondition_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
+ // First measure number of pages
uint8_t pages[2];
- CHECK_ERROR(_toStringConditionType_V1(&v->conditionType, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringVecTrustedIssuer_V1(&v->issuers, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringConditionType_V3(&v->conditionType, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringVecTrustedIssuer_V3(&v->issuers, outValue, outValueLen, 0, &pages[1]))
if (v->issuers._len == 0) {
pages[1] = 0;
}
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringConditionType_V1(&v->conditionType, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringConditionType_V3(&v->conditionType, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringVecTrustedIssuer_V1(&v->issuers, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringVecTrustedIssuer_V3(&v->issuers, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringCounter_V1(
- const pd_Counter_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringCountryCode_V1(
- const pd_CountryCode_V1_t* v,
+parser_error_t _toStringCountryCode_V3(
+ const pd_CountryCode_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2897,8 +2832,8 @@ parser_error_t _toStringCountryCode_V1(
return parser_ok;
}
-parser_error_t _toStringCustomAssetTypeId_V1(
- const pd_CustomAssetTypeId_V1_t* v,
+parser_error_t _toStringCustomAssetTypeId_V3(
+ const pd_CustomAssetTypeId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2907,8 +2842,8 @@ parser_error_t _toStringCustomAssetTypeId_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringDispatchableName_V1(
- const pd_DispatchableName_V1_t* v,
+parser_error_t _toStringDispatchableName_V3(
+ const pd_DispatchableName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2925,8 +2860,8 @@ parser_error_t _toStringDispatchableName_V1(
return parser_ok;
}
-parser_error_t _toStringDispatchableNames_V1(
- const pd_DispatchableNames_V1_t* v,
+parser_error_t _toStringDispatchableNames_V3(
+ const pd_DispatchableNames_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2941,14 +2876,14 @@ parser_error_t _toStringDispatchableNames_V1(
GEN_DEF_TOSTRING_ENUM("Whole")
break;
case 1: // These
- CHECK_ERROR(_toStringVecDispatchableName_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecDispatchableName_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("These")
- CHECK_ERROR(_toStringVecDispatchableName_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecDispatchableName_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 2: // Except
- CHECK_ERROR(_toStringVecDispatchableName_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecDispatchableName_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("Except")
- CHECK_ERROR(_toStringVecDispatchableName_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecDispatchableName_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
default:
return parser_unexpected_value;
@@ -2957,8 +2892,8 @@ parser_error_t _toStringDispatchableNames_V1(
return parser_ok;
}
-parser_error_t _toStringDocumentHash_V1(
- const pd_DocumentHash_V1_t* v,
+parser_error_t _toStringDocumentHash_V3(
+ const pd_DocumentHash_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2966,8 +2901,8 @@ parser_error_t _toStringDocumentHash_V1(
GEN_DEF_TOSTRING_ARRAY(v->_len)
}
-parser_error_t _toStringDocumentId_V1(
- const pd_DocumentId_V1_t* v,
+parser_error_t _toStringDocumentId_V3(
+ const pd_DocumentId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2976,8 +2911,8 @@ parser_error_t _toStringDocumentId_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringDocumentName_V1(
- const pd_DocumentName_V1_t* v,
+parser_error_t _toStringDocumentName_V3(
+ const pd_DocumentName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -2994,8 +2929,8 @@ parser_error_t _toStringDocumentName_V1(
return parser_ok;
}
-parser_error_t _toStringDocumentType_V1(
- const pd_DocumentType_V1_t* v,
+parser_error_t _toStringDocumentType_V3(
+ const pd_DocumentType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3012,8 +2947,8 @@ parser_error_t _toStringDocumentType_V1(
return parser_ok;
}
-parser_error_t _toStringDocumentUri_V1(
- const pd_DocumentUri_V1_t* v,
+parser_error_t _toStringDocumentUri_V3(
+ const pd_DocumentUri_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3030,8 +2965,8 @@ parser_error_t _toStringDocumentUri_V1(
return parser_ok;
}
-parser_error_t _toStringDocument_V1(
- const pd_Document_V1_t* v,
+parser_error_t _toStringDocument_V3(
+ const pd_Document_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3039,60 +2974,57 @@ parser_error_t _toStringDocument_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[5];
- CHECK_ERROR(_toStringDocumentUri_V1(&v->uri, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringDocumentHash_V1(&v->content_hash, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringDocumentName_V1(&v->name, outValue, outValueLen, 0, &pages[2]))
- CHECK_ERROR(_toStringOptionDocumentType_V1(&v->doc_type, outValue, outValueLen, 0, &pages[3]))
- CHECK_ERROR(_toStringOptionMoment_V1(&v->filing_date, outValue, outValueLen, 0, &pages[4]))
+ // First measure number of pages
+ uint8_t pages[5] = { 0 };
+ CHECK_ERROR(_toStringDocumentUri_V3(&v->uri, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringDocumentHash_V3(&v->content_hash, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringDocumentName_V3(&v->name, outValue, outValueLen, 0, &pages[2]))
+ CHECK_ERROR(_toStringOptionDocumentType_V3(&v->doc_type, outValue, outValueLen, 0, &pages[3]))
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->filing_date, outValue, outValueLen, 0, &pages[4]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1] + pages[2] + pages[3] + pages[4];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringDocumentUri_V1(&v->uri, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringDocumentUri_V3(&v->uri, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringDocumentHash_V1(&v->content_hash, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringDocumentHash_V3(&v->content_hash, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringDocumentName_V1(&v->name, outValue, outValueLen, pageIdx, &pages[2]))
+ CHECK_ERROR(_toStringDocumentName_V3(&v->name, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
-
pageIdx -= pages[2];
- //////
if (pageIdx < pages[3]) {
- CHECK_ERROR(_toStringOptionDocumentType_V1(&v->doc_type, outValue, outValueLen, pageIdx, &pages[3]))
+ CHECK_ERROR(_toStringOptionDocumentType_V3(&v->doc_type, outValue, outValueLen, pageIdx, &pages[3]))
return parser_ok;
}
-
pageIdx -= pages[3];
- //////
if (pageIdx < pages[4]) {
- CHECK_ERROR(_toStringOptionMoment_V1(&v->filing_date, outValue, outValueLen, pageIdx, &pages[4]))
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->filing_date, outValue, outValueLen, pageIdx, &pages[4]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringEcdsaSignature_V1(
- const pd_EcdsaSignature_V1_t* v,
+parser_error_t _toStringEcdsaSignature_V3(
+ const pd_EcdsaSignature_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3100,50 +3032,17 @@ parser_error_t _toStringEcdsaSignature_V1(
GEN_DEF_TOSTRING_ARRAY(65)
}
-parser_error_t _toStringElectionScore_V1(
- const pd_ElectionScore_V1_t* v,
+parser_error_t _toStringEd25519Signature_V3(
+ const pd_Ed25519Signature_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
-}
-
-parser_error_t _toStringElectionSize_V1(
- const pd_ElectionSize_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- // Get all pages first
- uint8_t pages[2];
- CHECK_ERROR(_toStringCompactInt(&v->validators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringCompactInt(&v->nominators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, 0, &pages[1]))
-
- *pageCount = pages[0] + pages[1];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringCompactInt(&v->validators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringCompactInt(&v->nominators, COIN_AMOUNT_DECIMAL_PLACES, "", "", outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
+ uint8_t* pageCount) {
+ GEN_DEF_TOSTRING_ARRAY(64)
}
-parser_error_t _toStringEraIndex_V1(
- const pd_EraIndex_V1_t* v,
+parser_error_t _toStringEraIndex_V3(
+ const pd_EraIndex_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3152,8 +3051,8 @@ parser_error_t _toStringEraIndex_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringEthereumAddress_V1(
- const pd_EthereumAddress_V1_t* v,
+parser_error_t _toStringEthereumAddress_V3(
+ const pd_EthereumAddress_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3161,8 +3060,8 @@ parser_error_t _toStringEthereumAddress_V1(
GEN_DEF_TOSTRING_ARRAY(20)
}
-parser_error_t _toStringExtrinsicPermissions_V1(
- const pd_ExtrinsicPermissions_V1_t* v,
+parser_error_t _toStringExtrinsicPermissions_V3(
+ const pd_ExtrinsicPermissions_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3177,14 +3076,14 @@ parser_error_t _toStringExtrinsicPermissions_V1(
GEN_DEF_TOSTRING_ENUM("Whole")
break;
case 1: // These
- CHECK_ERROR(_toStringVecPalletPermissions_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecPalletPermissions_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("These")
- CHECK_ERROR(_toStringVecPalletPermissions_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecPalletPermissions_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 2: // Except
- CHECK_ERROR(_toStringVecPalletPermissions_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecPalletPermissions_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("Except")
- CHECK_ERROR(_toStringVecPalletPermissions_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecPalletPermissions_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
default:
return parser_unexpected_value;
@@ -3193,8 +3092,8 @@ parser_error_t _toStringExtrinsicPermissions_V1(
return parser_ok;
}
-parser_error_t _toStringFundingRoundName_V1(
- const pd_FundingRoundName_V1_t* v,
+parser_error_t _toStringFundingRoundName_V3(
+ const pd_FundingRoundName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3211,8 +3110,18 @@ parser_error_t _toStringFundingRoundName_V1(
return parser_ok;
}
-parser_error_t _toStringFundraiserName_V1(
- const pd_FundraiserName_V1_t* v,
+parser_error_t _toStringFundraiserId_V3(
+ const pd_FundraiserId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
+}
+
+parser_error_t _toStringFundraiserName_V3(
+ const pd_FundraiserName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3229,19 +3138,8 @@ parser_error_t _toStringFundraiserName_V1(
return parser_ok;
}
-parser_error_t _toStringGrandpaEquivocationProof_V1(
- const pd_GrandpaEquivocationProof_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
-}
-
-parser_error_t _toStringIdentityId_V1(
- const pd_IdentityId_V1_t* v,
+parser_error_t _toStringIdentityId_V3(
+ const pd_IdentityId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3249,112 +3147,87 @@ parser_error_t _toStringIdentityId_V1(
GEN_DEF_TOSTRING_ARRAY(32)
}
-parser_error_t _toStringInvestorZKProofData_V1(
- const pd_InvestorZKProofData_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount) {
- GEN_DEF_TOSTRING_ARRAY(64)
-}
-
-parser_error_t _toStringItnRewardStatus_V1(
- const pd_ItnRewardStatus_V1_t* v,
+parser_error_t _toStringInstructionId_V3(
+ const pd_InstructionId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
+ return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringKeyOwnerProof_V1(
- const pd_KeyOwnerProof_V1_t* v,
+parser_error_t _toStringInvestorZKProofData_V3(
+ const pd_InvestorZKProofData_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
+ uint8_t* pageCount) {
+ GEN_DEF_TOSTRING_ARRAY(64)
}
-parser_error_t _toStringKeyValue_V1(
- const pd_KeyValue_V1_t* v,
+parser_error_t _toStringKeys_V3(
+ const pd_Keys_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
-
- return parser_print_not_supported;
+ uint8_t* pageCount) {
+ GEN_DEF_TOSTRING_ARRAY(4 * 32)
}
-parser_error_t _toStringKey_V1(
- const pd_Key_V1_t* v,
+parser_error_t _toStringLegId_V3(
+ const pd_LegId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
-
- return parser_print_not_supported;
-}
-
-parser_error_t _toStringKeys_V1(
- const pd_Keys_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount) {
- GEN_DEF_TOSTRING_ARRAY(4 * 32)
+ return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringLeg_V1(
- const pd_Leg_V1_t* v,
+parser_error_t _toStringLeg_V3(
+ const pd_Leg_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- // Index + count pages
- uint8_t pages[4];
- CHECK_ERROR(_toStringPortfolioId_V1(&v->from, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringPortfolioId_V1(&v->to, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringTicker_V1(&v->asset, outValue, outValueLen, 0, &pages[2]))
+ CLEAN_AND_CHECK()
+
+ // First measure number of pages
+ uint8_t pages[4] = { 0 };
+ CHECK_ERROR(_toStringPortfolioId_V3(&v->from, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringPortfolioId_V3(&v->to, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringTicker_V3(&v->asset, outValue, outValueLen, 0, &pages[2]))
CHECK_ERROR(_toStringBalance(&v->amount, outValue, outValueLen, 0, &pages[3]))
- *pageCount = pages[0] + pages[1] + pages[2] + pages[3];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringPortfolioId_V1(&v->from, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringPortfolioId_V3(&v->from, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringPortfolioId_V1(&v->to, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringPortfolioId_V3(&v->to, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringTicker_V1(&v->asset, outValue, outValueLen, pageIdx, &pages[2]))
+ CHECK_ERROR(_toStringTicker_V3(&v->asset, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
-
pageIdx -= pages[2];
- //////
if (pageIdx < pages[3]) {
CHECK_ERROR(_toStringBalance(&v->amount, outValue, outValueLen, pageIdx, &pages[3]))
return parser_ok;
@@ -3363,91 +3236,8 @@ parser_error_t _toStringLeg_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringLegacyPalletPermissions_V1(
- const pd_LegacyPalletPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringPalletName_V1(&v->palletName, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringbool(&v->total, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringVecDispatchableName_V1(&v->dispatchableNames, outValue, outValueLen, 0, &pages[2]))
-
- *pageCount = pages[0] + pages[1] + pages[2];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringPalletName_V1(&v->palletName, outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- //////
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringbool(&v->total, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
-
- pageIdx -= pages[1];
-
- //////
- if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringVecDispatchableName_V1(&v->dispatchableNames, outValue, outValueLen, pageIdx, &pages[2]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
-}
-
-parser_error_t _toStringLegacyPermissions_V1(
- const pd_LegacyPermissions_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
-
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringOptionVecTicker_V1(&v->asset, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringOptionVecLegacyPalletPermissions_V1(&v->extrinsic, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringOptionVecPortfolioId_V1(&v->portfolio, outValue, outValueLen, 0, &pages[2]))
-
- *pageCount = pages[0] + pages[1] + pages[2];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringOptionVecTicker_V1(&v->asset, outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- //////
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringOptionVecLegacyPalletPermissions_V1(&v->extrinsic, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
- pageIdx -= pages[1];
-
- //////
- if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringOptionVecPortfolioId_V1(&v->portfolio, outValue, outValueLen, pageIdx, &pages[2]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
-}
-
-parser_error_t _toStringLocalCAId_V1(
- const pd_LocalCAId_V1_t* v,
+parser_error_t _toStringLocalCAId_V3(
+ const pd_LocalCAId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3456,8 +3246,8 @@ parser_error_t _toStringLocalCAId_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringLookupSource_V1(
- const pd_LookupSource_V1_t* v,
+parser_error_t _toStringLookupasStaticLookupSource_V3(
+ const pd_LookupasStaticLookupSource_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3466,10 +3256,10 @@ parser_error_t _toStringLookupSource_V1(
CLEAN_AND_CHECK()
switch (v->value) {
case 0: // Id
- CHECK_ERROR(_toStringAccountId_V1(&v->id, outValue, outValueLen, pageIdx, pageCount))
+ CHECK_ERROR(_toStringAccountId_V3(&v->id, outValue, outValueLen, pageIdx, pageCount))
break;
case 1: // Index
- CHECK_ERROR(_toStringCompactAccountIndex_V1(&v->index, outValue, outValueLen, pageIdx, pageCount))
+ CHECK_ERROR(_toStringCompactAccountIndex_V3(&v->index, outValue, outValueLen, pageIdx, pageCount))
break;
case 2: // Raw
CHECK_ERROR(_toStringBytes(&v->raw, outValue, outValueLen, pageIdx, pageCount))
@@ -3489,8 +3279,8 @@ parser_error_t _toStringLookupSource_V1(
return parser_ok;
}
-parser_error_t _toStringMaybeBlock_V1(
- const pd_MaybeBlock_V1_t* v,
+parser_error_t _toStringMaybeBlockBlockNumber_V3(
+ const pd_MaybeBlockBlockNumber_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3512,8 +3302,8 @@ parser_error_t _toStringMaybeBlock_V1(
return parser_ok;
}
-parser_error_t _toStringMemberCount_V1(
- const pd_MemberCount_V1_t* v,
+parser_error_t _toStringMemberCount_V3(
+ const pd_MemberCount_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3522,8 +3312,8 @@ parser_error_t _toStringMemberCount_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringMemo_V1(
- const pd_Memo_V1_t* v,
+parser_error_t _toStringMemo_V3(
+ const pd_Memo_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3535,8 +3325,8 @@ parser_error_t _toStringMemo_V1(
return parser_ok;
}
-parser_error_t _toStringMoment_V1(
- const pd_Moment_V1_t* v,
+parser_error_t _toStringMoment_V3(
+ const pd_Moment_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3545,8 +3335,8 @@ parser_error_t _toStringMoment_V1(
return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringMotionInfoLink_V1(
- const pd_MotionInfoLink_V1_t* v,
+parser_error_t _toStringMotionInfoLink_V3(
+ const pd_MotionInfoLink_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3563,8 +3353,8 @@ parser_error_t _toStringMotionInfoLink_V1(
return parser_ok;
}
-parser_error_t _toStringMotionTitle_V1(
- const pd_MotionTitle_V1_t* v,
+parser_error_t _toStringMotionTitle_V3(
+ const pd_MotionTitle_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3581,8 +3371,8 @@ parser_error_t _toStringMotionTitle_V1(
return parser_ok;
}
-parser_error_t _toStringMotion_V1(
- const pd_Motion_V1_t* v,
+parser_error_t _toStringMotion_V3(
+ const pd_Motion_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3590,42 +3380,43 @@ parser_error_t _toStringMotion_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringMotionTitle_V1(&v->title, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringMotionInfoLink_V1(&v->info_link, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringVecChoiceTitle_V1(&v->choices, outValue, outValueLen, 0, &pages[2]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringMotionTitle_V3(&v->title, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringMotionInfoLink_V3(&v->info_link, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringVecChoiceTitle_V3(&v->choices, outValue, outValueLen, 0, &pages[2]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1] + pages[2];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringMotionTitle_V1(&v->title, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringMotionTitle_V3(&v->title, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringMotionInfoLink_V1(&v->info_link, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringMotionInfoLink_V3(&v->info_link, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringVecChoiceTitle_V1(&v->choices, outValue, outValueLen, pageIdx, &pages[2]))
+ CHECK_ERROR(_toStringVecChoiceTitle_V3(&v->choices, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringMovePortfolioItem_V1(
- const pd_MovePortfolioItem_V1_t* v,
+parser_error_t _toStringMovePortfolioItem_V3(
+ const pd_MovePortfolioItem_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3633,41 +3424,43 @@ parser_error_t _toStringMovePortfolioItem_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, 0, &pages[0]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringBalance(&v->balance, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringOptionMemo_V1(&v->memo, outValue, outValueLen, 0, &pages[2]))
+ CHECK_ERROR(_toStringOptionMemo_V3(&v->memo, outValue, outValueLen, 0, &pages[2]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1] + pages[2];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringBalance(&v->balance, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringOptionMemo_V1(&v->memo, outValue, outValueLen, 0, &pages[2]))
+ CHECK_ERROR(_toStringOptionMemo_V3(&v->memo, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringOffChainSignature_V1(
- const pd_OffChainSignature_V1_t* v,
+parser_error_t _toStringMultiSignature_V3(
+ const pd_MultiSignature_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3676,19 +3469,34 @@ parser_error_t _toStringOffChainSignature_V1(
CLEAN_AND_CHECK()
switch (v->value) {
case 0: // Ed25519
+ CHECK_ERROR(_toStringEd25519Signature_V3(&v->ed25519, outValue, outValueLen, pageIdx, pageCount))
+ break;
case 1: // Sr25519
+ CHECK_ERROR(_toStringSr25519Signature_V3(&v->sr25519, outValue, outValueLen, pageIdx, pageCount))
+ break;
case 2: // Ecdsa
- GEN_DEF_TOSTRING_ARRAY(64)
+ CHECK_ERROR(_toStringEcdsaSignature_V3(&v->ecdsa, outValue, outValueLen, pageIdx, pageCount))
break;
default:
- return parser_unexpected_value;
+ return parser_not_supported;
}
return parser_ok;
}
-parser_error_t _toStringPalletName_V1(
- const pd_PalletName_V1_t* v,
+parser_error_t _toStringOffChainSignature_V3(
+ const pd_OffChainSignature_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ CHECK_ERROR(_toStringMultiSignature_V3(&v->value, outValue, outValueLen, pageIdx, pageCount));
+ return parser_ok;
+}
+
+parser_error_t _toStringPalletName_V3(
+ const pd_PalletName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3705,40 +3513,45 @@ parser_error_t _toStringPalletName_V1(
return parser_ok;
}
-parser_error_t _toStringPalletPermissions_V1(
- const pd_PalletPermissions_V1_t* v,
+parser_error_t _toStringPalletPermissions_V3(
+ const pd_PalletPermissions_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringPalletName_V1(&v->palletName, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringDispatchableNames_V1(&v->dispatchableNames, outValue, outValueLen, 0, &pages[1]))
+ CLEAN_AND_CHECK()
+
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringPalletName_V3(&v->palletName, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringDispatchableNames_V3(&v->dispatchableNames, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringPalletName_V1(&v->palletName, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringPalletName_V3(&v->palletName, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringDispatchableNames_V1(&v->dispatchableNames, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringDispatchableNames_V3(&v->dispatchableNames, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringPerbill_V1(
- const pd_Perbill_V1_t* v,
+parser_error_t _toStringPerbill_V3(
+ const pd_Perbill_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3760,41 +3573,8 @@ parser_error_t _toStringPerbill_V1(
return parser_ok;
}
-parser_error_t _toStringPercent_V1(
- const pd_Percent_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- // 9 but shift 2 to show as percentage
- return _toStringCompactInt(&v->value, 7, "%", "", outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringPercentage_V1(
- const pd_Percentage_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
- CHECK_ERROR(_toStringPermill_V1(&v->value, outValue, outValueLen, pageIdx, pageCount))
- return parser_ok;
-}
-
-parser_error_t _toStringPeriod_V1(
- const pd_Period_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringPermill_V1(
- const pd_Permill_V1_t* v,
+parser_error_t _toStringPermill_V3(
+ const pd_Permill_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3816,8 +3596,8 @@ parser_error_t _toStringPermill_V1(
return parser_ok;
}
-parser_error_t _toStringPermissions_V1(
- const pd_Permissions_V1_t* v,
+parser_error_t _toStringPermissions_V3(
+ const pd_Permissions_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3825,41 +3605,43 @@ parser_error_t _toStringPermissions_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringAssetPermissions_V1(&v->asset, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringExtrinsicPermissions_V1(&v->extrinsic, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringPortfolioPermissions_V1(&v->portfolio, outValue, outValueLen, 0, &pages[2]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringAssetPermissions_V3(&v->asset, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringExtrinsicPermissions_V3(&v->extrinsic, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringPortfolioPermissions_V3(&v->portfolio, outValue, outValueLen, 0, &pages[2]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1] + pages[2];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringAssetPermissions_V1(&v->asset, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringAssetPermissions_V3(&v->asset, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringExtrinsicPermissions_V1(&v->extrinsic, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringExtrinsicPermissions_V3(&v->extrinsic, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringPortfolioPermissions_V1(&v->portfolio, outValue, outValueLen, pageIdx, &pages[2]))
+ CHECK_ERROR(_toStringPortfolioPermissions_V3(&v->portfolio, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringPipDescription_V1(
- const pd_PipDescription_V1_t* v,
+parser_error_t _toStringPipDescription_V3(
+ const pd_PipDescription_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3876,8 +3658,8 @@ parser_error_t _toStringPipDescription_V1(
return parser_ok;
}
-parser_error_t _toStringPipId_V1(
- const pd_PipId_V1_t* v,
+parser_error_t _toStringPipId_V3(
+ const pd_PipId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3886,8 +3668,8 @@ parser_error_t _toStringPipId_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringPortfolioId_V1(
- const pd_PortfolioId_V1_t* v,
+parser_error_t _toStringPortfolioId_V3(
+ const pd_PortfolioId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3895,33 +3677,36 @@ parser_error_t _toStringPortfolioId_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringIdentityId_V1(&v->did, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringPortfolioKind_V1(&v->kind, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringIdentityId_V3(&v->did, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringPortfolioKind_V3(&v->kind, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringIdentityId_V1(&v->did, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringIdentityId_V3(&v->did, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringPortfolioKind_V1(&v->kind, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringPortfolioKind_V3(&v->kind, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringPortfolioKind_V1(
- const pd_PortfolioKind_V1_t* v,
+parser_error_t _toStringPortfolioKind_V3(
+ const pd_PortfolioKind_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3934,7 +3719,7 @@ parser_error_t _toStringPortfolioKind_V1(
snprintf(outValue, outValueLen, "Default");
break;
case 1:
- _toStringPortfolioNumber_V1(&v->number, outValue, outValueLen, pageIdx, pageCount);
+ _toStringPortfolioNumber_V3(&v->number, outValue, outValueLen, pageIdx, pageCount);
break;
default:
return parser_unexpected_value;
@@ -3943,8 +3728,8 @@ parser_error_t _toStringPortfolioKind_V1(
return parser_ok;
}
-parser_error_t _toStringPortfolioName_V1(
- const pd_PortfolioName_V1_t* v,
+parser_error_t _toStringPortfolioName_V3(
+ const pd_PortfolioName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3961,8 +3746,8 @@ parser_error_t _toStringPortfolioName_V1(
return parser_ok;
}
-parser_error_t _toStringPortfolioNumber_V1(
- const pd_PortfolioNumber_V1_t* v,
+parser_error_t _toStringPortfolioNumber_V3(
+ const pd_PortfolioNumber_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3971,8 +3756,8 @@ parser_error_t _toStringPortfolioNumber_V1(
return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringPortfolioPermissions_V1(
- const pd_PortfolioPermissions_V1_t* v,
+parser_error_t _toStringPortfolioPermissions_V3(
+ const pd_PortfolioPermissions_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -3987,14 +3772,14 @@ parser_error_t _toStringPortfolioPermissions_V1(
GEN_DEF_TOSTRING_ENUM("Whole")
break;
case 1: // These
- CHECK_ERROR(_toStringVecPortfolioId_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecPortfolioId_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("These")
- CHECK_ERROR(_toStringVecPortfolioId_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecPortfolioId_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
case 2: // Except
- CHECK_ERROR(_toStringVecPortfolioId_V1(&v->contained, outValue, outValueLen, 0, pageCount);)
+ CHECK_ERROR(_toStringVecPortfolioId_V3(&v->contained, outValue, outValueLen, 0, pageCount);)
GEN_DEF_TOSTRING_ENUM("Except")
- CHECK_ERROR(_toStringVecPortfolioId_V1(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringVecPortfolioId_V3(&v->contained, outValue, outValueLen, pageIdx, &_dummy);)
break;
default:
return parser_unexpected_value;
@@ -4003,8 +3788,8 @@ parser_error_t _toStringPortfolioPermissions_V1(
return parser_ok;
}
-parser_error_t _toStringPosRatio_V1(
- const pd_PosRatio_V1_t* v,
+parser_error_t _toStringPosRatio_V3(
+ const pd_PosRatio_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4012,12 +3797,16 @@ parser_error_t _toStringPosRatio_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
CHECK_ERROR(_toStringu32(&v->numerator, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringu32(&v->denominator, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
@@ -4028,7 +3817,6 @@ parser_error_t _toStringPosRatio_V1(
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringu32(&v->denominator, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
@@ -4037,8 +3825,8 @@ parser_error_t _toStringPosRatio_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringPriceTier_V1(
- const pd_PriceTier_V1_t* v,
+parser_error_t _toStringPriceTier_V3(
+ const pd_PriceTier_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4046,64 +3834,36 @@ parser_error_t _toStringPriceTier_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
CHECK_ERROR(_toStringBalance(&v->total, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringBalance(&v->price, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringBalance(&v->total, outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- //////
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringBalance(&v->price, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
}
- return parser_display_idx_out_of_range;
-}
-
-parser_error_t _toStringPriority_V1(
- const pd_Priority_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- // Get all pages first
- uint8_t pages[2];
- CHECK_ERROR(_toStringu32(&v->stream_id, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringStreamDependency_V1(&v->dependency, outValue, outValueLen, 0, &pages[1]))
-
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringu32(&v->stream_id, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringBalance(&v->total, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringStreamDependency_V1(&v->dependency, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringBalance(&v->price, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringProposalIndex_V1(
- const pd_ProposalIndex_V1_t* v,
+parser_error_t _toStringProposalIndex_V3(
+ const pd_ProposalIndex_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4112,80 +3872,28 @@ parser_error_t _toStringProposalIndex_V1(
return _toStringu32(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringProtocolOp_V1(
- const pd_ProtocolOp_V1_t* v,
+parser_error_t _toStringReceiptDetails_V3(
+ const pd_ReceiptDetails_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
CLEAN_AND_CHECK()
- *pageCount = 1;
- switch (v->value) {
- case 0:
- snprintf(outValue, outValueLen, "AssetRegisterTicker");
- break;
- case 1:
- snprintf(outValue, outValueLen, "AssetIssue");
- break;
- case 2:
- snprintf(outValue, outValueLen, "AssetAddDocument");
- break;
- case 3:
- snprintf(outValue, outValueLen, "AssetCreateAsset");
- break;
- case 4:
- snprintf(outValue, outValueLen, "CheckpointCreateSchedule");
- break;
- case 5:
- snprintf(outValue, outValueLen, "ComplianceManagerAddComplianceRequirement");
- break;
- case 6:
- snprintf(outValue, outValueLen, "IdentityCddRegisterDid");
- break;
- case 7:
- snprintf(outValue, outValueLen, "IdentityAddClaim");
- break;
- case 8:
- snprintf(outValue, outValueLen, "IdentityAddSecondaryKeysWithAuthorization");
- break;
- case 9:
- snprintf(outValue, outValueLen, "PipsPropose");
- break;
- case 10:
- snprintf(outValue, outValueLen, "ContractsPutCode");
- break;
- case 11:
- snprintf(outValue, outValueLen, "CorporateBallotAttachBallot");
- break;
- case 12:
- snprintf(outValue, outValueLen, "CapitalDistributionDistribute");
- break;
- default:
- return parser_unexpected_value;
- }
- return parser_ok;
-}
-
-parser_error_t _toStringReceiptDetails_V1(
- const pd_ReceiptDetails_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
-
- // Index + count pages
- uint8_t pages[5];
+ // First measure number of pages
+ uint8_t pages[5] = { 0 };
CHECK_ERROR(_toStringu64(&v->receipt_uid, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringu64(&v->leg_id, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringAccountId_V1(&v->signer, outValue, outValueLen, 0, &pages[2]))
- CHECK_ERROR(_toStringOffChainSignature_V1(&v->signature, outValue, outValueLen, 0, &pages[3]))
- CHECK_ERROR(_toStringReceiptMetadata_V1(&v->metadata, outValue, outValueLen, 0, &pages[4]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->signer, outValue, outValueLen, 0, &pages[2]))
+ CHECK_ERROR(_toStringOffChainSignature_V3(&v->signature, outValue, outValueLen, 0, &pages[3]))
+ CHECK_ERROR(_toStringReceiptMetadata_V3(&v->metadata, outValue, outValueLen, 0, &pages[4]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1] + pages[2] + pages[3] + pages[4];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
@@ -4196,41 +3904,34 @@ parser_error_t _toStringReceiptDetails_V1(
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringu64(&v->leg_id, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringAccountId_V1(&v->signer, outValue, outValueLen, pageIdx, &pages[2]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->signer, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
-
pageIdx -= pages[2];
- //////
if (pageIdx < pages[3]) {
- CHECK_ERROR(_toStringOffChainSignature_V1(&v->signature, outValue, outValueLen, pageIdx, &pages[3]))
+ CHECK_ERROR(_toStringOffChainSignature_V3(&v->signature, outValue, outValueLen, pageIdx, &pages[3]))
return parser_ok;
}
-
pageIdx -= pages[3];
- //////
if (pageIdx < pages[4]) {
- CHECK_ERROR(_toStringReceiptMetadata_V1(&v->metadata, outValue, outValueLen, pageIdx, &pages[4]))
+ CHECK_ERROR(_toStringReceiptMetadata_V3(&v->metadata, outValue, outValueLen, pageIdx, &pages[4]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringReceiptMetadata_V1(
- const pd_ReceiptMetadata_V1_t* v,
+parser_error_t _toStringReceiptMetadata_V3(
+ const pd_ReceiptMetadata_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4247,8 +3948,8 @@ parser_error_t _toStringReceiptMetadata_V1(
return parser_ok;
}
-parser_error_t _toStringRecordDateSpec_V1(
- const pd_RecordDateSpec_V1_t* v,
+parser_error_t _toStringRecordDateSpec_V3(
+ const pd_RecordDateSpec_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4257,13 +3958,13 @@ parser_error_t _toStringRecordDateSpec_V1(
CLEAN_AND_CHECK()
switch (v->value) {
case 0: // Scheduled
- CHECK_ERROR(_toStringMoment_V1(&v->scheduled, outValue, outValueLen, pageIdx, pageCount));
+ CHECK_ERROR(_toStringMoment_V3(&v->scheduled, outValue, outValueLen, pageIdx, pageCount));
break;
case 1: // ExistingSchedule
- CHECK_ERROR(_toStringScheduleId_V1(&v->existingSchedule, outValue, outValueLen, pageIdx, pageCount));
+ CHECK_ERROR(_toStringScheduleId_V3(&v->existingSchedule, outValue, outValueLen, pageIdx, pageCount));
break;
case 2: // Existing
- CHECK_ERROR(_toStringCheckpointId_V1(&v->existing, outValue, outValueLen, pageIdx, pageCount));
+ CHECK_ERROR(_toStringCheckpointId_V3(&v->existing, outValue, outValueLen, pageIdx, pageCount));
break;
default:
return parser_unexpected_value;
@@ -4272,8 +3973,8 @@ parser_error_t _toStringRecordDateSpec_V1(
return parser_ok;
}
-parser_error_t _toStringRewardDestination_V1(
- const pd_RewardDestination_V1_t* v,
+parser_error_t _toStringRewardDestination_V3(
+ const pd_RewardDestination_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4281,8 +3982,6 @@ parser_error_t _toStringRewardDestination_V1(
{
CLEAN_AND_CHECK()
*pageCount = 0;
- uint8_t _dummy;
-
switch (v->value) {
case 0:
GEN_DEF_TOSTRING_ENUM("Staked")
@@ -4294,9 +3993,7 @@ parser_error_t _toStringRewardDestination_V1(
GEN_DEF_TOSTRING_ENUM("Controller")
break;
case 3:
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId, outValue, outValueLen, 0, pageCount);)
- GEN_DEF_TOSTRING_ENUM("Account")
- CHECK_ERROR(_toStringAccountId_V1(&v->accountId, outValue, outValueLen, pageIdx, &_dummy);)
+ CHECK_ERROR(_toStringAccountId_V3(&v->accountId, outValue, outValueLen, pageIdx, pageCount))
break;
default:
return parser_print_not_supported;
@@ -4304,8 +4001,8 @@ parser_error_t _toStringRewardDestination_V1(
return parser_ok;
}
-parser_error_t _toStringScheduleId_V1(
- const pd_ScheduleId_V1_t* v,
+parser_error_t _toStringScheduleId_V3(
+ const pd_ScheduleId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4314,8 +4011,8 @@ parser_error_t _toStringScheduleId_V1(
return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringScheduleSpec_V1(
- const pd_ScheduleSpec_V1_t* v,
+parser_error_t _toStringScheduleSpec_V3(
+ const pd_ScheduleSpec_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4323,31 +4020,33 @@ parser_error_t _toStringScheduleSpec_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringOptionMoment_V1(&v->start, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringCalendarPeriod_V1(&v->period, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->start, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringCalendarPeriod_V3(&v->period, outValue, outValueLen, 0, &pages[1]))
CHECK_ERROR(_toStringu32(&v->remaining, outValue, outValueLen, 0, &pages[2]))
- *pageCount = pages[0] + pages[1] + pages[2];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringOptionMoment_V1(&v->start, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->start, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringCalendarPeriod_V1(&v->period, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringCalendarPeriod_V3(&v->period, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
+
if (pageIdx < pages[2]) {
CHECK_ERROR(_toStringu32(&v->remaining, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
@@ -4356,19 +4055,8 @@ parser_error_t _toStringScheduleSpec_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringScopeClaimProof_V1(
- const pd_ScopeClaimProof_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
- return parser_print_not_supported;
-}
-
-parser_error_t _toStringScopeId_V1(
- const pd_ScopeId_V1_t* v,
+parser_error_t _toStringScopeId_V3(
+ const pd_ScopeId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4376,8 +4064,8 @@ parser_error_t _toStringScopeId_V1(
GEN_DEF_TOSTRING_ARRAY(32)
}
-parser_error_t _toStringScope_V1(
- const pd_Scope_V1_t* v,
+parser_error_t _toStringScope_V3(
+ const pd_Scope_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4386,10 +4074,10 @@ parser_error_t _toStringScope_V1(
CLEAN_AND_CHECK()
switch (v->value) {
case 0:
- _toStringIdentityId_V1(&v->identity, outValue, outValueLen, pageIdx, pageCount);
+ _toStringIdentityId_V3(&v->identity, outValue, outValueLen, pageIdx, pageCount);
break;
case 1:
- _toStringTicker_V1(&v->ticker, outValue, outValueLen, pageIdx, pageCount);
+ _toStringTicker_V3(&v->ticker, outValue, outValueLen, pageIdx, pageCount);
break;
case 2:
GEN_DEF_TOSTRING_ARRAY(v->_len)
@@ -4401,8 +4089,8 @@ parser_error_t _toStringScope_V1(
return parser_ok;
}
-parser_error_t _toStringSecondaryKeyWithAuth_V1(
- const pd_SecondaryKeyWithAuth_V1_t* v,
+parser_error_t _toStringSecondaryKeyWithAuthAccountId_V3(
+ const pd_SecondaryKeyWithAuthAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4410,67 +4098,43 @@ parser_error_t _toStringSecondaryKeyWithAuth_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringSecondaryKey_V1(&v->secondary_key, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringSignature_V1(&v->auth_signature, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringAccountId_V3(&v->key, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringPermissions_V3(&v->permissions, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringSignature_V3(&v->auth_signature, outValue, outValueLen, 0, &pages[2]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringSecondaryKey_V1(&v->secondary_key, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringAccountId_V3(&v->key, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringSignature_V1(&v->auth_signature, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
-}
-
-parser_error_t _toStringSecondaryKey_V1(
- const pd_SecondaryKey_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
-
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringSignatory_V1(&v->signer, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringPermissions_V1(&v->permissions, outValue, outValueLen, 0, &pages[1]))
-
- *pageCount = pages[0] + pages[1];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringSignatory_V1(&v->signer, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringPermissions_V3(&v->permissions, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
- pageIdx -= pages[0];
+ pageIdx -= pages[1];
- //////
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringPermissions_V1(&v->permissions, outValue, outValueLen, pageIdx, &pages[1]))
+ if (pageIdx < pages[2]) {
+ CHECK_ERROR(_toStringSignature_V3(&v->auth_signature, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringSettlementType_V1(
- const pd_SettlementType_V1_t* v,
+parser_error_t _toStringSettlementTypeBlockNumber_V3(
+ const pd_SettlementTypeBlockNumber_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4492,8 +4156,8 @@ parser_error_t _toStringSettlementType_V1(
return parser_ok;
}
-parser_error_t _toStringSignatory_V1(
- const pd_Signatory_V1_t* v,
+parser_error_t _toStringSignatoryAccountId_V3(
+ const pd_SignatoryAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4502,10 +4166,10 @@ parser_error_t _toStringSignatory_V1(
CLEAN_AND_CHECK()
switch (v->value) {
case 0:
- _toStringIdentityId_V1(&v->identity, outValue, outValueLen, pageIdx, pageCount);
+ _toStringIdentityId_V3(&v->identity, outValue, outValueLen, pageIdx, pageCount);
break;
case 1:
- _toStringAccountId_V1(&v->account, outValue, outValueLen, pageIdx, pageCount);
+ _toStringAccountId_V3(&v->account, outValue, outValueLen, pageIdx, pageCount);
break;
default:
return parser_unexpected_value;
@@ -4514,8 +4178,8 @@ parser_error_t _toStringSignatory_V1(
return parser_ok;
}
-parser_error_t _toStringSignature_V1(
- const pd_Signature_V1_t* v,
+parser_error_t _toStringSignature_V3(
+ const pd_Signature_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4523,8 +4187,8 @@ parser_error_t _toStringSignature_V1(
GEN_DEF_TOSTRING_ARRAY(64)
}
-parser_error_t _toStringSkippedCount_V1(
- const pd_SkippedCount_V1_t* v,
+parser_error_t _toStringSkippedCount_V3(
+ const pd_SkippedCount_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4534,8 +4198,8 @@ parser_error_t _toStringSkippedCount_V1(
return _toStringu16(&valu16, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringSlashingSwitch_V1(
- const pd_SlashingSwitch_V1_t* v,
+parser_error_t _toStringSlashingSwitch_V3(
+ const pd_SlashingSwitch_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4559,8 +4223,8 @@ parser_error_t _toStringSlashingSwitch_V1(
return parser_ok;
}
-parser_error_t _toStringSnapshotResult_V1(
- const pd_SnapshotResult_V1_t* v,
+parser_error_t _toStringSnapshotResult_V3(
+ const pd_SnapshotResult_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4585,50 +4249,17 @@ parser_error_t _toStringSnapshotResult_V1(
return parser_ok;
}
-parser_error_t _toStringStreamDependency_V1(
- const pd_StreamDependency_V1_t* v,
+parser_error_t _toStringSr25519Signature_V3(
+ const pd_Sr25519Signature_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
-
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringu32(&v->dependency_id, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringu16((const pd_u16_t*)&v->weight, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringbool(&v->is_exclusive, outValue, outValueLen, 0, &pages[2]))
-
- *pageCount = pages[0] + pages[1] + pages[2];
- if (pageIdx > *pageCount) {
- return parser_display_idx_out_of_range;
- }
-
- if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringu32(&v->dependency_id, outValue, outValueLen, pageIdx, &pages[0]))
- return parser_ok;
- }
- pageIdx -= pages[0];
-
- //////
- if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringu16((const pd_u16_t*)&v->weight, outValue, outValueLen, pageIdx, &pages[1]))
- return parser_ok;
- }
- pageIdx -= pages[1];
-
- //////
- if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringbool(&v->is_exclusive, outValue, outValueLen, pageIdx, &pages[2]))
- return parser_ok;
- }
-
- return parser_display_idx_out_of_range;
+ uint8_t* pageCount) {
+ GEN_DEF_TOSTRING_ARRAY(64)
}
-parser_error_t _toStringTargetIdentities_V1(
- const pd_TargetIdentities_V1_t* v,
+parser_error_t _toStringTargetIdentities_V3(
+ const pd_TargetIdentities_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4636,33 +4267,36 @@ parser_error_t _toStringTargetIdentities_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringVecIdentityId_V1(&v->identities, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringTargetTreatment_V1(&v->treatment, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringVecIdentityId_V3(&v->identities, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringTargetTreatment_V3(&v->treatment, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringVecIdentityId_V1(&v->identities, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringVecIdentityId_V3(&v->identities, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringTargetTreatment_V1(&v->treatment, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringTargetTreatment_V3(&v->treatment, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTargetIdentity_V1(
- const pd_TargetIdentity_V1_t* v,
+parser_error_t _toStringTargetIdentity_V3(
+ const pd_TargetIdentity_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4675,7 +4309,7 @@ parser_error_t _toStringTargetIdentity_V1(
snprintf(outValue, outValueLen, "ExternalAgent");
break;
case 1:
- _toStringIdentityId_V1(&v->specific, outValue, outValueLen, pageIdx, pageCount);
+ _toStringIdentityId_V3(&v->specific, outValue, outValueLen, pageIdx, pageCount);
break;
default:
return parser_unexpected_value;
@@ -4684,8 +4318,8 @@ parser_error_t _toStringTargetIdentity_V1(
return parser_ok;
}
-parser_error_t _toStringTargetTreatment_V1(
- const pd_TargetTreatment_V1_t* v,
+parser_error_t _toStringTargetTreatment_V3(
+ const pd_TargetTreatment_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4706,20 +4340,20 @@ parser_error_t _toStringTargetTreatment_V1(
return parser_ok;
}
-parser_error_t _toStringTax_V1(
- const pd_Tax_V1_t* v,
+parser_error_t _toStringTax_V3(
+ const pd_Tax_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
CLEAN_AND_CHECK()
- CHECK_ERROR(_toStringPermill_V1(&v->value, outValue, outValueLen, pageIdx, pageCount))
+ CHECK_ERROR(_toStringPermill_V3(&v->value, outValue, outValueLen, pageIdx, pageCount))
return parser_ok;
}
-parser_error_t _toStringTickerRegistrationConfig_V1(
- const pd_TickerRegistrationConfig_V1_t* v,
+parser_error_t _toStringTickerRegistrationConfigMoment_V3(
+ const pd_TickerRegistrationConfigMoment_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4727,12 +4361,16 @@ parser_error_t _toStringTickerRegistrationConfig_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
CHECK_ERROR(_toStringu8(&v->max_ticker_length, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringOptionMoment_V1(&v->registration_length, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->registration_length, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
@@ -4743,17 +4381,16 @@ parser_error_t _toStringTickerRegistrationConfig_V1(
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringOptionMoment_V1(&v->registration_length, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringOptionMoment_V3(&v->registration_length, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTicker_V1(
- const pd_Ticker_V1_t* v,
+parser_error_t _toStringTicker_V3(
+ const pd_Ticker_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4770,30 +4407,8 @@ parser_error_t _toStringTicker_V1(
return parser_ok;
}
-parser_error_t _toStringTransferManager_V1(
- const pd_TransferManager_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- CLEAN_AND_CHECK()
- switch (v->value) {
- case 0: // CountTransferManager
- CHECK_ERROR(_toStringCounter_V1(&v->countTransferManager, outValue, outValueLen, pageIdx, pageCount));
- break;
- case 1: // PercentageTransferManager
- CHECK_ERROR(_toStringPercentage_V1(&v->percentageTransferManager, outValue, outValueLen, pageIdx, pageCount));
- break;
- default:
- return parser_unexpected_value;
- }
-
- return parser_ok;
-}
-
-parser_error_t _toStringTrustedFor_V1(
- const pd_TrustedFor_V1_t* v,
+parser_error_t _toStringTrustedFor_V3(
+ const pd_TrustedFor_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4806,7 +4421,7 @@ parser_error_t _toStringTrustedFor_V1(
*pageCount = 1;
break;
case 1: // Specific
- _toStringVecClaimType_V1(&v->claims, outValue, outValueLen, pageIdx, pageCount);
+ _toStringVecClaimType_V3(&v->claims, outValue, outValueLen, pageIdx, pageCount);
break;
default:
return parser_unexpected_value;
@@ -4815,8 +4430,8 @@ parser_error_t _toStringTrustedFor_V1(
return parser_ok;
}
-parser_error_t _toStringTrustedIssuer_V1(
- const pd_TrustedIssuer_V1_t* v,
+parser_error_t _toStringTrustedIssuer_V3(
+ const pd_TrustedIssuer_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4824,33 +4439,36 @@ parser_error_t _toStringTrustedIssuer_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringIdentityId_V1(&v->issuer, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringTrustedFor_V1(&v->trustedFor, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringIdentityId_V3(&v->issuer, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringTrustedFor_V3(&v->trustedFor, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringIdentityId_V1(&v->issuer, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringIdentityId_V3(&v->issuer, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringTrustedFor_V1(&v->trustedFor, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringTrustedFor_V3(&v->trustedFor, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTupleCountryCodeScope_V1(
- const pd_TupleCountryCodeScope_V1_t* v,
+parser_error_t _toStringTupleCountryCodeScope_V3(
+ const pd_TupleCountryCodeScope_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4858,33 +4476,36 @@ parser_error_t _toStringTupleCountryCodeScope_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringCountryCode_V1(&v->country_code, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringCountryCode_V3(&v->country_code, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringCountryCode_V1(&v->country_code, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringCountryCode_V3(&v->country_code, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTupleIdentityIdTax_V1(
- const pd_TupleIdentityIdTax_V1_t* v,
+parser_error_t _toStringTupleIdentityIdTax_V3(
+ const pd_TupleIdentityIdTax_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4892,50 +4513,59 @@ parser_error_t _toStringTupleIdentityIdTax_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringIdentityId_V1(&v->id, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringTax_V1(&v->tax, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringIdentityId_V3(&v->id, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringTax_V3(&v->tax, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringIdentityId_V1(&v->id, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringIdentityId_V3(&v->id, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringTax_V1(&v->tax, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringTax_V3(&v->tax, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTupleIdentityIdbool_V1(
- const pd_TupleIdentityIdbool_V1_t* v,
+parser_error_t _toStringTupleIdentityIdbool_V3(
+ const pd_TupleIdentityIdbool_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- // Get all pages first
- uint8_t pages[2];
- CHECK_ERROR(_toStringIdentityId_V1(&v->identity, outValue, outValueLen, 0, &pages[0]))
+ CLEAN_AND_CHECK()
+
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringIdentityId_V3(&v->identity, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringbool(&v->val, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringIdentityId_V1(&v->identity, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringIdentityId_V3(&v->identity, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
@@ -4948,8 +4578,8 @@ parser_error_t _toStringTupleIdentityIdbool_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTuplePipIdSnapshotResult_V1(
- const pd_TuplePipIdSnapshotResult_V1_t* v,
+parser_error_t _toStringTuplePipIdSnapshotResult_V3(
+ const pd_TuplePipIdSnapshotResult_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4957,33 +4587,36 @@ parser_error_t _toStringTuplePipIdSnapshotResult_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
- CHECK_ERROR(_toStringPipId_V1(&v->pip_id, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringSnapshotResult_V1(&v->snapshot_result, outValue, outValueLen, 0, &pages[1]))
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
+ CHECK_ERROR(_toStringPipId_V3(&v->pip_id, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringSnapshotResult_V3(&v->snapshot_result, outValue, outValueLen, 0, &pages[1]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringPipId_V1(&v->pip_id, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringPipId_V3(&v->pip_id, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringSnapshotResult_V1(&v->snapshot_result, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringSnapshotResult_V3(&v->snapshot_result, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringTupleScopeScopeIdCddId_V1(
- const pd_TupleScopeScopeIdCddId_V1_t* v,
+parser_error_t _toStringTupleScopeScopeIdCddId_V3(
+ const pd_TupleScopeScopeIdCddId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -4991,42 +4624,43 @@ parser_error_t _toStringTupleScopeScopeIdCddId_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[3];
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, 0, &pages[0]))
- CHECK_ERROR(_toStringScopeId_V1(&v->scopeId, outValue, outValueLen, 0, &pages[1]))
- CHECK_ERROR(_toStringCddId_V1(&v->cddId, outValue, outValueLen, 0, &pages[2]))
+ // First measure number of pages
+ uint8_t pages[3] = { 0 };
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, 0, &pages[0]))
+ CHECK_ERROR(_toStringScopeId_V3(&v->scopeId, outValue, outValueLen, 0, &pages[1]))
+ CHECK_ERROR(_toStringCddId_V3(&v->cddId, outValue, outValueLen, 0, &pages[2]))
+
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
- *pageCount = pages[0] + pages[1] + pages[2];
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
if (pageIdx < pages[0]) {
- CHECK_ERROR(_toStringScope_V1(&v->scope, outValue, outValueLen, pageIdx, &pages[0]))
+ CHECK_ERROR(_toStringScope_V3(&v->scope, outValue, outValueLen, pageIdx, &pages[0]))
return parser_ok;
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
- CHECK_ERROR(_toStringScopeId_V1(&v->scopeId, outValue, outValueLen, pageIdx, &pages[1]))
+ CHECK_ERROR(_toStringScopeId_V3(&v->scopeId, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
}
-
pageIdx -= pages[1];
- //////
if (pageIdx < pages[2]) {
- CHECK_ERROR(_toStringCddId_V1(&v->cddId, outValue, outValueLen, pageIdx, &pages[2]))
+ CHECK_ERROR(_toStringCddId_V3(&v->cddId, outValue, outValueLen, pageIdx, &pages[2]))
return parser_ok;
}
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringUniqueCall_V1(
- const pd_UniqueCall_V1_t* v,
+parser_error_t _toStringUniqueCall_V3(
+ const pd_UniqueCall_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5034,12 +4668,16 @@ parser_error_t _toStringUniqueCall_V1(
{
CLEAN_AND_CHECK()
- // Index + count pages
- uint8_t pages[2];
+ // First measure number of pages
+ uint8_t pages[2] = { 0 };
CHECK_ERROR(_toStringu64(&v->nonce, outValue, outValueLen, 0, &pages[0]))
CHECK_ERROR(_toStringCall(&v->call, outValue, outValueLen, 0, &pages[1]))
- *pageCount = pages[0] + pages[1];
+ *pageCount = 0;
+ for (uint8_t i = 0; i < (uint8_t)sizeof(pages); i++) {
+ *pageCount += pages[i];
+ }
+
if (pageIdx > *pageCount) {
return parser_display_idx_out_of_range;
}
@@ -5050,7 +4688,6 @@ parser_error_t _toStringUniqueCall_V1(
}
pageIdx -= pages[0];
- //////
if (pageIdx < pages[1]) {
CHECK_ERROR(_toStringCall(&v->call, outValue, outValueLen, pageIdx, &pages[1]))
return parser_ok;
@@ -5059,8 +4696,8 @@ parser_error_t _toStringUniqueCall_V1(
return parser_display_idx_out_of_range;
}
-parser_error_t _toStringUrl_V1(
- const pd_Url_V1_t* v,
+parser_error_t _toStringUrl_V3(
+ const pd_Url_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5077,29 +4714,19 @@ parser_error_t _toStringUrl_V1(
return parser_ok;
}
-parser_error_t _toStringValidatorIndex_V1(
- const pd_ValidatorIndex_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- return _toStringu16(&v->value, outValue, outValueLen, pageIdx, pageCount);
-}
-
-parser_error_t _toStringValidatorPrefs_V1(
- const pd_ValidatorPrefs_V1_t* v,
+parser_error_t _toStringValidatorPrefs_V3(
+ const pd_ValidatorPrefs_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
CLEAN_AND_CHECK()
- return _toStringCompactPerBill_V1(&v->commission, outValue, outValueLen, pageIdx, pageCount);
+ return _toStringCompactPerBill_V3(&v->commission, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringVenueDetails_V1(
- const pd_VenueDetails_V1_t* v,
+parser_error_t _toStringVenueDetails_V3(
+ const pd_VenueDetails_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5116,8 +4743,18 @@ parser_error_t _toStringVenueDetails_V1(
return parser_ok;
}
-parser_error_t _toStringVenueType_V1(
- const pd_VenueType_V1_t* v,
+parser_error_t _toStringVenueId_V3(
+ const pd_VenueId_V3_t* v,
+ char* outValue,
+ uint16_t outValueLen,
+ uint8_t pageIdx,
+ uint8_t* pageCount)
+{
+ return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
+}
+
+parser_error_t _toStringVenueType_V3(
+ const pd_VenueType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5142,8 +4779,8 @@ parser_error_t _toStringVenueType_V1(
return parser_ok;
}
-parser_error_t _toStringWeight_V1(
- const pd_Weight_V1_t* v,
+parser_error_t _toStringWeight_V3(
+ const pd_Weight_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5152,442 +4789,298 @@ parser_error_t _toStringWeight_V1(
return _toStringu64(&v->value, outValue, outValueLen, pageIdx, pageCount);
}
-parser_error_t _toStringVecAccountId_V1(
- const pd_VecAccountId_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(AccountId_V1);
-}
-
-parser_error_t _toStringVecAssetIdentifier_V1(
- const pd_VecAssetIdentifier_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(AssetIdentifier_V1);
-}
-
-parser_error_t _toStringVecBallotVote_V1(
- const pd_VecBallotVote_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(BallotVote_V1);
-}
-
-parser_error_t _toStringVecBeneficiary_V1(
- const pd_VecBeneficiary_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(Beneficiary_V1);
-}
-
-parser_error_t _toStringVecBridgeTx_V1(
- const pd_VecBridgeTx_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(BridgeTx_V1);
-}
-
-parser_error_t _toStringVecChoiceTitle_V1(
- const pd_VecChoiceTitle_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(ChoiceTitle_V1);
-}
-
-parser_error_t _toStringVecClaimType_V1(
- const pd_VecClaimType_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(ClaimType_V1);
-}
-
-parser_error_t _toStringVecClaim_V1(
- const pd_VecClaim_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(Claim_V1);
-}
-
-parser_error_t _toStringVecComplianceRequirement_V1(
- const pd_VecComplianceRequirement_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(ComplianceRequirement_V1);
-}
-
-parser_error_t _toStringVecCondition_V1(
- const pd_VecCondition_V1_t* v,
- char* outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t* pageCount)
-{
- GEN_DEF_TOSTRING_VECTOR(Condition_V1);
-}
-
-parser_error_t _toStringVecDispatchableName_V1(
- const pd_VecDispatchableName_V1_t* v,
+parser_error_t _toStringVecAccountId_V3(
+ const pd_VecAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(DispatchableName_V1);
+ GEN_DEF_TOSTRING_VECTOR(AccountId_V3);
}
-parser_error_t _toStringVecDocumentId_V1(
- const pd_VecDocumentId_V1_t* v,
+parser_error_t _toStringVecAssetIdentifier_V3(
+ const pd_VecAssetIdentifier_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(DocumentId_V1);
+ GEN_DEF_TOSTRING_VECTOR(AssetIdentifier_V3);
}
-parser_error_t _toStringVecDocument_V1(
- const pd_VecDocument_V1_t* v,
+parser_error_t _toStringVecBallotVote_V3(
+ const pd_VecBallotVote_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(Document_V1);
+ GEN_DEF_TOSTRING_VECTOR(BallotVote_V3);
}
-parser_error_t _toStringVecIdentityId_V1(
- const pd_VecIdentityId_V1_t* v,
+parser_error_t _toStringVecBeneficiary_V3(
+ const pd_VecBeneficiary_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(IdentityId_V1);
+ GEN_DEF_TOSTRING_VECTOR(Beneficiary_V3);
}
-parser_error_t _toStringVecKeyValue_V1(
- const pd_VecKeyValue_V1_t* v,
+parser_error_t _toStringVecBridgeTxAccountId_V3(
+ const pd_VecBridgeTxAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(KeyValue_V1);
+ GEN_DEF_TOSTRING_VECTOR(BridgeTxAccountId_V3);
}
-parser_error_t _toStringVecKey_V1(
- const pd_VecKey_V1_t* v,
+parser_error_t _toStringVecChoiceTitle_V3(
+ const pd_VecChoiceTitle_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(Key_V1);
+ GEN_DEF_TOSTRING_VECTOR(ChoiceTitle_V3);
}
-parser_error_t _toStringVecLeg_V1(
- const pd_VecLeg_V1_t* v,
+parser_error_t _toStringVecClaimType_V3(
+ const pd_VecClaimType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(Leg_V1);
+ GEN_DEF_TOSTRING_VECTOR(ClaimType_V3);
}
-parser_error_t _toStringVecLegacyPalletPermissions_V1(
- const pd_VecLegacyPalletPermissions_V1_t* v,
+parser_error_t _toStringVecClaim_V3(
+ const pd_VecClaim_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(LegacyPalletPermissions_V1);
+ GEN_DEF_TOSTRING_VECTOR(Claim_V3);
}
-parser_error_t _toStringVecLookupSource_V1(
- const pd_VecLookupSource_V1_t* v,
+parser_error_t _toStringVecCondition_V3(
+ const pd_VecCondition_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(LookupSource_V1);
+ GEN_DEF_TOSTRING_VECTOR(Condition_V3);
}
-parser_error_t _toStringVecMotion_V1(
- const pd_VecMotion_V1_t* v,
+parser_error_t _toStringVecDispatchableName_V3(
+ const pd_VecDispatchableName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(Motion_V1);
+ GEN_DEF_TOSTRING_VECTOR(DispatchableName_V3);
}
-parser_error_t _toStringVecMovePortfolioItem_V1(
- const pd_VecMovePortfolioItem_V1_t* v,
+parser_error_t _toStringVecDocumentId_V3(
+ const pd_VecDocumentId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(MovePortfolioItem_V1);
+ GEN_DEF_TOSTRING_VECTOR(DocumentId_V3);
}
-parser_error_t _toStringVecPalletPermissions_V1(
- const pd_VecPalletPermissions_V1_t* v,
+parser_error_t _toStringVecDocument_V3(
+ const pd_VecDocument_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(PalletPermissions_V1);
+ GEN_DEF_TOSTRING_VECTOR(Document_V3);
}
-parser_error_t _toStringVecPortfolioId_V1(
- const pd_VecPortfolioId_V1_t* v,
+parser_error_t _toStringVecIdentityId_V3(
+ const pd_VecIdentityId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(PortfolioId_V1);
+ GEN_DEF_TOSTRING_VECTOR(IdentityId_V3);
}
-parser_error_t _toStringVecPriceTier_V1(
- const pd_VecPriceTier_V1_t* v,
+parser_error_t _toStringVecLeg_V3(
+ const pd_VecLeg_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(PriceTier_V1);
+ GEN_DEF_TOSTRING_VECTOR(Leg_V3);
}
-parser_error_t _toStringVecReceiptDetails_V1(
- const pd_VecReceiptDetails_V1_t* v,
+parser_error_t _toStringVecLookupasStaticLookupSource_V3(
+ const pd_VecLookupasStaticLookupSource_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(ReceiptDetails_V1);
+ GEN_DEF_TOSTRING_VECTOR(LookupasStaticLookupSource_V3);
}
-parser_error_t _toStringVecScopeId_V1(
- const pd_VecScopeId_V1_t* v,
+parser_error_t _toStringVecMotion_V3(
+ const pd_VecMotion_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(ScopeId_V1);
+ GEN_DEF_TOSTRING_VECTOR(Motion_V3);
}
-parser_error_t _toStringVecSecondaryKeyWithAuth_V1(
- const pd_VecSecondaryKeyWithAuth_V1_t* v,
+parser_error_t _toStringVecMovePortfolioItem_V3(
+ const pd_VecMovePortfolioItem_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(SecondaryKeyWithAuth_V1);
+ GEN_DEF_TOSTRING_VECTOR(MovePortfolioItem_V3);
}
-parser_error_t _toStringVecSecondaryKey_V1(
- const pd_VecSecondaryKey_V1_t* v,
+parser_error_t _toStringVecPalletPermissions_V3(
+ const pd_VecPalletPermissions_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(SecondaryKey_V1);
+ GEN_DEF_TOSTRING_VECTOR(PalletPermissions_V3);
}
-parser_error_t _toStringVecSignatory_V1(
- const pd_VecSignatory_V1_t* v,
+parser_error_t _toStringVecPortfolioId_V3(
+ const pd_VecPortfolioId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(Signatory_V1);
+ GEN_DEF_TOSTRING_VECTOR(PortfolioId_V3);
}
-parser_error_t _toStringVecTicker_V1(
- const pd_VecTicker_V1_t* v,
+parser_error_t _toStringVecPriceTier_V3(
+ const pd_VecPriceTier_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(Ticker_V1);
+ GEN_DEF_TOSTRING_VECTOR(PriceTier_V3);
}
-parser_error_t _toStringVecTrustedIssuer_V1(
- const pd_VecTrustedIssuer_V1_t* v,
+parser_error_t _toStringVecReceiptDetails_V3(
+ const pd_VecReceiptDetails_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(TrustedIssuer_V1);
+ GEN_DEF_TOSTRING_VECTOR(ReceiptDetails_V3);
}
-parser_error_t _toStringVecTupleIdentityIdTax_V1(
- const pd_VecTupleIdentityIdTax_V1_t* v,
+parser_error_t _toStringVecSecondaryKeyWithAuthAccountId_V3(
+ const pd_VecSecondaryKeyWithAuthAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(TupleIdentityIdTax_V1);
+ GEN_DEF_TOSTRING_VECTOR(SecondaryKeyWithAuthAccountId_V3);
}
-parser_error_t _toStringVecTupleIdentityIdbool_V1(
- const pd_VecTupleIdentityIdbool_V1_t* v,
+parser_error_t _toStringVecSignatoryAccountId_V3(
+ const pd_VecSignatoryAccountId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(TupleIdentityIdbool_V1);
+ GEN_DEF_TOSTRING_VECTOR(SignatoryAccountId_V3);
}
-parser_error_t _toStringVecTuplePipIdSnapshotResult_V1(
- const pd_VecTuplePipIdSnapshotResult_V1_t* v,
+parser_error_t _toStringVecTicker_V3(
+ const pd_VecTicker_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(TuplePipIdSnapshotResult_V1);
+ GEN_DEF_TOSTRING_VECTOR(Ticker_V3);
}
-parser_error_t _toStringVecValidatorIndex_V1(
- const pd_VecValidatorIndex_V1_t* v,
+parser_error_t _toStringVecTrustedIssuer_V3(
+ const pd_VecTrustedIssuer_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- GEN_DEF_TOSTRING_VECTOR(ValidatorIndex_V1);
+ GEN_DEF_TOSTRING_VECTOR(TrustedIssuer_V3);
}
-parser_error_t _toStringOptionChangesTrieConfiguration_V1(
- const pd_OptionChangesTrieConfiguration_V1_t* v,
+parser_error_t _toStringVecTupleIdentityIdTax_V3(
+ const pd_VecTupleIdentityIdTax_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
-
- *pageCount = 1;
- if (v->some > 0) {
- CHECK_ERROR(_toStringChangesTrieConfiguration_V1(
- &v->contained,
- outValue, outValueLen,
- pageIdx, pageCount));
- } else {
- snprintf(outValue, outValueLen, "None");
- }
- return parser_ok;
+ GEN_DEF_TOSTRING_VECTOR(TupleIdentityIdTax_V3);
}
-parser_error_t _toStringOptionDocumentType_V1(
- const pd_OptionDocumentType_V1_t* v,
+parser_error_t _toStringVecTupleIdentityIdbool_V3(
+ const pd_VecTupleIdentityIdbool_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
-
- *pageCount = 1;
- if (v->some > 0) {
- CHECK_ERROR(_toStringDocumentType_V1(
- &v->contained,
- outValue, outValueLen,
- pageIdx, pageCount));
- } else {
- snprintf(outValue, outValueLen, "None");
- }
- return parser_ok;
+ GEN_DEF_TOSTRING_VECTOR(TupleIdentityIdbool_V3);
}
-parser_error_t _toStringOptionFundingRoundName_V1(
- const pd_OptionFundingRoundName_V1_t* v,
+parser_error_t _toStringVecTuplePipIdSnapshotResult_V3(
+ const pd_VecTuplePipIdSnapshotResult_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
-
- *pageCount = 1;
- if (v->some > 0) {
- CHECK_ERROR(_toStringFundingRoundName_V1(
- &v->contained,
- outValue, outValueLen,
- pageIdx, pageCount));
- } else {
- snprintf(outValue, outValueLen, "None");
- }
- return parser_ok;
+ GEN_DEF_TOSTRING_VECTOR(TuplePipIdSnapshotResult_V3);
}
-parser_error_t _toStringOptionMemo_V1(
- const pd_OptionMemo_V1_t* v,
+parser_error_t _toStringVecVenueId_V3(
+ const pd_VecVenueId_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
uint8_t* pageCount)
{
- CLEAN_AND_CHECK()
-
- *pageCount = 1;
- if (v->some > 0) {
- CHECK_ERROR(_toStringMemo_V1(
- &v->contained,
- outValue, outValueLen,
- pageIdx, pageCount));
- } else {
- snprintf(outValue, outValueLen, "None");
- }
- return parser_ok;
+ GEN_DEF_TOSTRING_VECTOR(VenueId_V3);
}
-parser_error_t _toStringOptionMoment_V1(
- const pd_OptionMoment_V1_t* v,
+parser_error_t _toStringOptionAssetMetadataValueDetailMoment_V3(
+ const pd_OptionAssetMetadataValueDetailMoment_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5597,7 +5090,7 @@ parser_error_t _toStringOptionMoment_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringMoment_V1(
+ CHECK_ERROR(_toStringAssetMetadataValueDetailMoment_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5607,8 +5100,8 @@ parser_error_t _toStringOptionMoment_V1(
return parser_ok;
}
-parser_error_t _toStringOptionPeriod_V1(
- const pd_OptionPeriod_V1_t* v,
+parser_error_t _toStringOptionDocumentType_V3(
+ const pd_OptionDocumentType_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5618,7 +5111,7 @@ parser_error_t _toStringOptionPeriod_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringPeriod_V1(
+ CHECK_ERROR(_toStringDocumentType_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5628,8 +5121,8 @@ parser_error_t _toStringOptionPeriod_V1(
return parser_ok;
}
-parser_error_t _toStringOptionPipDescription_V1(
- const pd_OptionPipDescription_V1_t* v,
+parser_error_t _toStringOptionFundingRoundName_V3(
+ const pd_OptionFundingRoundName_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5639,7 +5132,7 @@ parser_error_t _toStringOptionPipDescription_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringPipDescription_V1(
+ CHECK_ERROR(_toStringFundingRoundName_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5649,8 +5142,8 @@ parser_error_t _toStringOptionPipDescription_V1(
return parser_ok;
}
-parser_error_t _toStringOptionPortfolioNumber_V1(
- const pd_OptionPortfolioNumber_V1_t* v,
+parser_error_t _toStringOptionMemo_V3(
+ const pd_OptionMemo_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5660,7 +5153,7 @@ parser_error_t _toStringOptionPortfolioNumber_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringPortfolioNumber_V1(
+ CHECK_ERROR(_toStringMemo_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5670,8 +5163,8 @@ parser_error_t _toStringOptionPortfolioNumber_V1(
return parser_ok;
}
-parser_error_t _toStringOptionReceiptDetails_V1(
- const pd_OptionReceiptDetails_V1_t* v,
+parser_error_t _toStringOptionMoment_V3(
+ const pd_OptionMoment_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5681,7 +5174,7 @@ parser_error_t _toStringOptionReceiptDetails_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringReceiptDetails_V1(
+ CHECK_ERROR(_toStringMoment_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5691,8 +5184,8 @@ parser_error_t _toStringOptionReceiptDetails_V1(
return parser_ok;
}
-parser_error_t _toStringOptionRecordDateSpec_V1(
- const pd_OptionRecordDateSpec_V1_t* v,
+parser_error_t _toStringOptionPipDescription_V3(
+ const pd_OptionPipDescription_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5702,7 +5195,7 @@ parser_error_t _toStringOptionRecordDateSpec_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringRecordDateSpec_V1(
+ CHECK_ERROR(_toStringPipDescription_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5712,8 +5205,8 @@ parser_error_t _toStringOptionRecordDateSpec_V1(
return parser_ok;
}
-parser_error_t _toStringOptionScope_V1(
- const pd_OptionScope_V1_t* v,
+parser_error_t _toStringOptionPortfolioNumber_V3(
+ const pd_OptionPortfolioNumber_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5723,7 +5216,7 @@ parser_error_t _toStringOptionScope_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringScope_V1(
+ CHECK_ERROR(_toStringPortfolioNumber_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5733,8 +5226,8 @@ parser_error_t _toStringOptionScope_V1(
return parser_ok;
}
-parser_error_t _toStringOptionTargetIdentities_V1(
- const pd_OptionTargetIdentities_V1_t* v,
+parser_error_t _toStringOptionReceiptDetails_V3(
+ const pd_OptionReceiptDetails_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5744,7 +5237,7 @@ parser_error_t _toStringOptionTargetIdentities_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringTargetIdentities_V1(
+ CHECK_ERROR(_toStringReceiptDetails_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5754,8 +5247,8 @@ parser_error_t _toStringOptionTargetIdentities_V1(
return parser_ok;
}
-parser_error_t _toStringOptionTax_V1(
- const pd_OptionTax_V1_t* v,
+parser_error_t _toStringOptionRecordDateSpec_V3(
+ const pd_OptionRecordDateSpec_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5765,7 +5258,7 @@ parser_error_t _toStringOptionTax_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringTax_V1(
+ CHECK_ERROR(_toStringRecordDateSpec_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5775,8 +5268,8 @@ parser_error_t _toStringOptionTax_V1(
return parser_ok;
}
-parser_error_t _toStringOptionUrl_V1(
- const pd_OptionUrl_V1_t* v,
+parser_error_t _toStringOptionScope_V3(
+ const pd_OptionScope_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5786,7 +5279,7 @@ parser_error_t _toStringOptionUrl_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringUrl_V1(
+ CHECK_ERROR(_toStringScope_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5796,8 +5289,8 @@ parser_error_t _toStringOptionUrl_V1(
return parser_ok;
}
-parser_error_t _toStringOptionVecLegacyPalletPermissions_V1(
- const pd_OptionVecLegacyPalletPermissions_V1_t* v,
+parser_error_t _toStringOptionTargetIdentities_V3(
+ const pd_OptionTargetIdentities_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5807,7 +5300,7 @@ parser_error_t _toStringOptionVecLegacyPalletPermissions_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringVecLegacyPalletPermissions_V1(
+ CHECK_ERROR(_toStringTargetIdentities_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5817,8 +5310,8 @@ parser_error_t _toStringOptionVecLegacyPalletPermissions_V1(
return parser_ok;
}
-parser_error_t _toStringOptionVecPortfolioId_V1(
- const pd_OptionVecPortfolioId_V1_t* v,
+parser_error_t _toStringOptionTax_V3(
+ const pd_OptionTax_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5828,7 +5321,7 @@ parser_error_t _toStringOptionVecPortfolioId_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringVecPortfolioId_V1(
+ CHECK_ERROR(_toStringTax_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5838,8 +5331,8 @@ parser_error_t _toStringOptionVecPortfolioId_V1(
return parser_ok;
}
-parser_error_t _toStringOptionVecTicker_V1(
- const pd_OptionVecTicker_V1_t* v,
+parser_error_t _toStringOptionUrl_V3(
+ const pd_OptionUrl_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5849,7 +5342,7 @@ parser_error_t _toStringOptionVecTicker_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringVecTicker_V1(
+ CHECK_ERROR(_toStringUrl_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5859,8 +5352,8 @@ parser_error_t _toStringOptionVecTicker_V1(
return parser_ok;
}
-parser_error_t _toStringOptionVecTupleIdentityIdTax_V1(
- const pd_OptionVecTupleIdentityIdTax_V1_t* v,
+parser_error_t _toStringOptionVecTupleIdentityIdTax_V3(
+ const pd_OptionVecTupleIdentityIdTax_V3_t* v,
char* outValue,
uint16_t outValueLen,
uint8_t pageIdx,
@@ -5870,7 +5363,7 @@ parser_error_t _toStringOptionVecTupleIdentityIdTax_V1(
*pageCount = 1;
if (v->some > 0) {
- CHECK_ERROR(_toStringVecTupleIdentityIdTax_V1(
+ CHECK_ERROR(_toStringVecTupleIdentityIdTax_V3(
&v->contained,
outValue, outValueLen,
pageIdx, pageCount));
@@ -5879,4 +5372,3 @@ parser_error_t _toStringOptionVecTupleIdentityIdTax_V1(
}
return parser_ok;
}
-#endif
diff --git a/app/src/substrate/substrate_types_V3.h b/app/src/substrate/substrate_types_V3.h
new file mode 100644
index 0000000..f277e40
--- /dev/null
+++ b/app/src/substrate/substrate_types_V3.h
@@ -0,0 +1,919 @@
+/*******************************************************************************
+ * (c) 2019 - 2022 Zondax GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ********************************************************************************/
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "substrate_types.h"
+#include
+#include
+
+// Based
+// https://github.com/paritytech/substrate/blob/master/node/primitives/src/lib.rs
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_DispatchableName_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_IdentityId_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_PortfolioNumber_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_Ticker_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecDispatchableName_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_CddId_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_ClaimType_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_CountryCode_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_VecDispatchableName_V3_t contained;
+} pd_DispatchableNames_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_PalletName_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_PortfolioNumber_V3_t number;
+} pd_PortfolioKind_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_ScopeId_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_IdentityId_V3_t identity;
+ pd_Ticker_V3_t ticker;
+ uint64_t _len;
+ const uint8_t* _ptr;
+ };
+} pd_Scope_V3_t;
+
+typedef struct {
+ pd_PalletName_V3_t palletName;
+ pd_DispatchableNames_V3_t dispatchableNames;
+} pd_PalletPermissions_V3_t;
+
+typedef struct {
+ pd_IdentityId_V3_t did;
+ pd_PortfolioKind_V3_t kind;
+} pd_PortfolioId_V3_t;
+
+typedef struct {
+ pd_CountryCode_V3_t country_code;
+ pd_Scope_V3_t scope;
+} pd_TupleCountryCodeScope_V3_t;
+
+typedef struct {
+ pd_Scope_V3_t scope;
+ pd_ScopeId_V3_t scopeId;
+ pd_CddId_V3_t cddId;
+} pd_TupleScopeScopeIdCddId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecClaimType_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_ChoiceTitle_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_Scope_V3_t scope;
+ pd_CddId_V3_t cddId;
+ pd_TupleCountryCodeScope_V3_t jurisdiction;
+ pd_TupleScopeScopeIdCddId_V3_t investorUniqueness;
+ };
+} pd_Claim_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_EcdsaSignature_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_Ed25519Signature_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_Permill_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_Sr25519Signature_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_VecClaimType_V3_t claims;
+} pd_TrustedFor_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecPalletPermissions_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecPortfolioId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecTicker_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_AGId_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_VecTicker_V3_t contained;
+} pd_AssetPermissions_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_DocumentType_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_VecPalletPermissions_V3_t contained;
+} pd_ExtrinsicPermissions_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_Memo_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_Moment_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_MotionInfoLink_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_MotionTitle_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_Ed25519Signature_V3_t ed25519;
+ pd_Sr25519Signature_V3_t sr25519;
+ pd_EcdsaSignature_V3_t ecdsa;
+ };
+} pd_MultiSignature_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_VecPortfolioId_V3_t contained;
+} pd_PortfolioPermissions_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_IdentityId_V3_t specific;
+} pd_TargetIdentity_V3_t;
+
+typedef struct {
+ pd_Permill_V3_t value;
+} pd_Tax_V3_t;
+
+typedef struct {
+ pd_IdentityId_V3_t issuer;
+ pd_TrustedFor_V3_t trustedFor;
+} pd_TrustedIssuer_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecChoiceTitle_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecClaim_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_AccountId_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_AGId_V3_t agId;
+
+} pd_AgentGroup_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_Moment_V3_t moment;
+} pd_AssetMetadataLockStatusMoment_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_CalendarUnit_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_CheckpointId_V3_t;
+
+typedef struct {
+ compactInt_t value;
+} pd_CompactAccountIndex_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_Claim_V3_t claim;
+ pd_VecClaim_V3_t vecClaim;
+ pd_TargetIdentity_V3_t identity;
+ };
+} pd_ConditionType_V3_t;
+
+typedef struct {
+ uint8_t value;
+ uint8_t _len;
+ const uint8_t* _ptr;
+} pd_DocumentHash_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_DocumentName_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_DocumentUri_V3_t;
+
+typedef struct {
+ pd_MotionTitle_V3_t title;
+ pd_MotionInfoLink_V3_t info_link;
+ pd_VecChoiceTitle_V3_t choices;
+} pd_Motion_V3_t;
+
+typedef struct {
+ pd_MultiSignature_V3_t value;
+} pd_OffChainSignature_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_DocumentType_V3_t contained;
+} pd_OptionDocumentType_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_Memo_V3_t contained;
+} pd_OptionMemo_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_Moment_V3_t contained;
+} pd_OptionMoment_V3_t;
+
+typedef struct {
+ pd_AssetPermissions_V3_t asset;
+ pd_ExtrinsicPermissions_V3_t extrinsic;
+ pd_PortfolioPermissions_V3_t portfolio;
+} pd_Permissions_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_PipId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_ReceiptMetadata_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_ScheduleId_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_Signature_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_SnapshotResult_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_TargetTreatment_V3_t;
+
+typedef struct {
+ pd_IdentityId_V3_t id;
+ pd_Tax_V3_t tax;
+} pd_TupleIdentityIdTax_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecIdentityId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecTrustedIssuer_V3_t;
+
+typedef struct {
+ pd_AccountId_V3_t accountId_1;
+ pd_AccountId_V3_t accountId_2;
+ pd_Balance_t balance;
+} pd_AddRelayerPayingKey_V3_t;
+
+typedef struct {
+ uint8_t value;
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_AssetIdentifier_V3_t;
+
+typedef struct {
+ pd_OptionMoment_V3_t expire;
+ pd_AssetMetadataLockStatusMoment_V3_t lockStatus;
+} pd_AssetMetadataValueDetailMoment_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_BallotTitle_V3_t;
+
+typedef struct {
+ pd_Balance_t power;
+ pd_Optionu16_t fallback;
+} pd_BallotVote_V3_t;
+
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_AgentGroup_V3_t agentGroup;
+} pd_BecomeAgent_V3_t;
+
+typedef struct {
+ pd_IdentityId_V3_t identity;
+ pd_Balance_t balance;
+} pd_Beneficiary_V3_t;
+
+typedef struct {
+ uint32_t nonce;
+ pd_AccountId_V3_t recipient;
+ pd_Balance_t value;
+ pd_Hash_t txHash;
+} pd_BridgeTxAccountId_V3_t;
+
+typedef struct {
+ pd_CalendarUnit_V3_t unit;
+ uint64_t amount;
+} pd_CalendarPeriod_V3_t;
+
+typedef struct {
+ compactInt_t value;
+} pd_CompactPerBill_V3_t;
+
+typedef struct {
+ pd_ConditionType_V3_t conditionType;
+ pd_VecTrustedIssuer_V3_t issuers;
+} pd_Condition_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_CustomAssetTypeId_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_DocumentId_V3_t;
+
+typedef struct {
+ pd_DocumentUri_V3_t uri;
+ pd_DocumentHash_V3_t content_hash;
+ pd_DocumentName_V3_t name;
+ pd_OptionDocumentType_V3_t doc_type;
+ pd_OptionMoment_V3_t filing_date;
+} pd_Document_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_EthereumAddress_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_FundingRoundName_V3_t;
+
+typedef struct {
+ pd_PortfolioId_V3_t from;
+ pd_PortfolioId_V3_t to;
+ pd_Ticker_V3_t asset;
+ pd_Balance_t amount;
+} pd_Leg_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_LocalCAId_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_AccountId_V3_t id;
+ pd_CompactAccountIndex_V3_t index;
+ pd_Bytes_t raw;
+ const uint8_t* _ptr;
+ };
+} pd_LookupasStaticLookupSource_V3_t;
+
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_Balance_t balance;
+ pd_OptionMemo_V3_t memo;
+} pd_MovePortfolioItem_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_PipDescription_V3_t;
+
+typedef struct {
+ pd_Balance_t total;
+ pd_Balance_t price;
+} pd_PriceTier_V3_t;
+
+typedef struct {
+ uint64_t receipt_uid;
+ uint64_t leg_id;
+ pd_AccountId_V3_t signer;
+ pd_OffChainSignature_V3_t signature;
+ pd_ReceiptMetadata_V3_t metadata;
+} pd_ReceiptDetails_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_Moment_V3_t scheduled;
+ pd_ScheduleId_V3_t existingSchedule;
+ pd_CheckpointId_V3_t existing;
+ };
+} pd_RecordDateSpec_V3_t;
+
+typedef struct {
+ pd_AccountId_V3_t key;
+ pd_Permissions_V3_t permissions;
+ pd_Signature_V3_t auth_signature;
+} pd_SecondaryKeyWithAuthAccountId_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_IdentityId_V3_t identity;
+ pd_AccountId_V3_t account;
+ };
+} pd_SignatoryAccountId_V3_t;
+
+typedef struct {
+ pd_VecIdentityId_V3_t identities;
+ pd_TargetTreatment_V3_t treatment;
+} pd_TargetIdentities_V3_t;
+
+typedef struct {
+ pd_IdentityId_V3_t identity;
+ pd_bool_t val;
+} pd_TupleIdentityIdbool_V3_t;
+
+typedef struct {
+ pd_PipId_V3_t pip_id;
+ pd_SnapshotResult_V3_t snapshot_result;
+} pd_TuplePipIdSnapshotResult_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_Url_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecMotion_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecTupleIdentityIdTax_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_VenueId_V3_t;
+
+typedef struct {
+ pd_Bytes_t value;
+} pd_AssetMetadataName_V3_t;
+
+typedef struct {
+ pd_OptionBytes_t url;
+ pd_OptionBytes_t description;
+ pd_OptionBytes_t typeDef;
+} pd_AssetMetadataSpec_V3_t;
+
+typedef struct {
+ pd_Bytes_t value;
+} pd_AssetMetadataValue_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_CustomAssetTypeId_V3_t custom;
+} pd_AssetType_V3_t;
+
+typedef struct {
+ uint8_t value;
+ union {
+ pd_IdentityId_V3_t identityId;
+ pd_AccountId_V3_t accountId;
+ pd_Ticker_V3_t ticker;
+ pd_Permissions_V3_t permissions;
+ pd_PortfolioId_V3_t portfolioId;
+ pd_BecomeAgent_V3_t becomeAgent;
+ pd_AddRelayerPayingKey_V3_t addRelayerPayingKey;
+ };
+} pd_AuthorizationDataAccountId_V3_t;
+
+typedef struct {
+ pd_BallotTitle_V3_t title;
+ pd_VecMotion_V3_t motions;
+} pd_BallotMeta_V3_t;
+
+typedef struct {
+ pd_Moment_V3_t start;
+ pd_Moment_V3_t end;
+} pd_BallotTimeRange_V3_t;
+
+typedef struct {
+ pd_Ticker_V3_t ticker;
+ pd_LocalCAId_V3_t local_id;
+} pd_CAId_V3_t;
+
+typedef struct {
+ pd_EthereumAddress_V3_t eth_owner;
+ pd_Ticker_V3_t ticker;
+ pd_bool_t is_contract;
+ pd_bool_t is_created;
+} pd_ClassicTickerImport_V3_t;
+
+typedef struct {
+ pd_Hash_t hash;
+} pd_CodeHash_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_BlockNumber_t blockNumber;
+} pd_MaybeBlockBlockNumber_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_AssetMetadataValueDetailMoment_V3_t contained;
+} pd_OptionAssetMetadataValueDetailMoment_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_ReceiptDetails_V3_t contained;
+} pd_OptionReceiptDetails_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_RecordDateSpec_V3_t contained;
+} pd_OptionRecordDateSpec_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_Scope_V3_t contained;
+} pd_OptionScope_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_TargetIdentities_V3_t contained;
+} pd_OptionTargetIdentities_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_Tax_V3_t contained;
+} pd_OptionTax_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_AccountId_V3_t accountId;
+} pd_RewardDestination_V3_t;
+
+typedef struct {
+ pd_OptionMoment_V3_t start;
+ pd_CalendarPeriod_V3_t period;
+ uint32_t remaining;
+} pd_ScheduleSpec_V3_t;
+
+typedef struct {
+ uint8_t value;
+ pd_BlockNumber_t blockNumber;
+} pd_SettlementTypeBlockNumber_V3_t;
+
+typedef struct {
+ uint8_t max_ticker_length;
+ pd_OptionMoment_V3_t registration_length;
+} pd_TickerRegistrationConfigMoment_V3_t;
+
+typedef struct {
+ uint64_t nonce;
+ pd_Call_t call;
+} pd_UniqueCall_V3_t;
+
+typedef struct {
+ pd_CompactPerBill_V3_t commission;
+ pd_bool_t blocked;
+} pd_ValidatorPrefs_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecBallotVote_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecBeneficiary_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecBridgeTxAccountId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecCondition_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecDocument_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecLeg_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecLookupasStaticLookupSource_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecMovePortfolioItem_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecPriceTier_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecReceiptDetails_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecSecondaryKeyWithAuthAccountId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecSignatoryAccountId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecTupleIdentityIdbool_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecTuplePipIdSnapshotResult_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_AccountIndex_V3_t;
+
+typedef struct {
+ uint8_t value;
+ uint64_t key;
+} pd_AssetMetadataKey_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_AssetName_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_CADetails_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_CAKind_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_EraIndex_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_FundraiserId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_FundraiserName_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_InstructionId_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_InvestorZKProofData_V3_t;
+
+typedef struct {
+ const uint8_t* _ptr;
+} pd_Keys_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_LegId_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_MemberCount_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_FundingRoundName_V3_t contained;
+} pd_OptionFundingRoundName_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_PipDescription_V3_t contained;
+} pd_OptionPipDescription_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_PortfolioNumber_V3_t contained;
+} pd_OptionPortfolioNumber_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_Url_V3_t contained;
+} pd_OptionUrl_V3_t;
+
+typedef struct {
+ uint8_t some;
+ pd_VecTupleIdentityIdTax_V3_t contained;
+} pd_OptionVecTupleIdentityIdTax_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_Perbill_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_PortfolioName_V3_t;
+
+typedef struct {
+ uint32_t numerator;
+ uint32_t denominator;
+} pd_PosRatio_V3_t;
+
+typedef struct {
+ uint32_t value;
+} pd_ProposalIndex_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_SkippedCount_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_SlashingSwitch_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecAccountId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecAssetIdentifier_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecDocumentId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+ uint64_t _lenBuffer;
+} pd_VecVenueId_V3_t;
+
+typedef struct {
+ uint64_t _len;
+ const uint8_t* _ptr;
+} pd_VenueDetails_V3_t;
+
+typedef struct {
+ uint8_t value;
+} pd_VenueType_V3_t;
+
+typedef struct {
+ uint64_t value;
+} pd_Weight_V3_t;
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/deps/ledger-zxlib b/deps/ledger-zxlib
new file mode 160000
index 0000000..2f4d80a
--- /dev/null
+++ b/deps/ledger-zxlib
@@ -0,0 +1 @@
+Subproject commit 2f4d80a8b6485bfba8219ecf550cb22d8297f6c9
diff --git a/deps/ledger-zxlib/.editorconfig b/deps/ledger-zxlib/.editorconfig
deleted file mode 100644
index 2d7db14..0000000
--- a/deps/ledger-zxlib/.editorconfig
+++ /dev/null
@@ -1,16 +0,0 @@
-# top-most EditorConfig file
-root = true
-
-[*]
-charset = utf-8
-trim_trailing_whitespace = true
-end_of_line = lf
-insert_final_newline = true
-
-[*.{c,h,cpp,hpp}]
-indent_style = space
-indent_size = 4
-
-[*.{yml,sh}]
-indent_style = space
-indent_size = 2
diff --git a/deps/ledger-zxlib/.github/workflows/main.yml b/deps/ledger-zxlib/.github/workflows/main.yml
deleted file mode 100644
index 485c5c5..0000000
--- a/deps/ledger-zxlib/.github/workflows/main.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-name: "Test/Build"
-on:
- workflow_dispatch:
- push:
- pull_request:
- branches: [ main ]
-
-jobs:
- configure:
- runs-on: ubuntu-latest
- outputs:
- uid_gid: ${{ steps.get-user.outputs.uid_gid }}
- steps:
- - id: get-user
- run: echo "::set-output name=uid_gid::$(id -u):$(id -g)"
-
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules: true
- - name: Install deps
- run: |
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
- brew install conan
- conan config install https://github.com/conan-io/conanclientcert.git
- - run: cmake -DCMAKE_BUILD_TYPE=Debug . && make
diff --git a/deps/ledger-zxlib/.gitignore b/deps/ledger-zxlib/.gitignore
deleted file mode 100644
index d3d05a3..0000000
--- a/deps/ledger-zxlib/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-
-\.idea/
-
-cmake-build-debug/
diff --git a/deps/ledger-zxlib/CMakeLists.txt b/deps/ledger-zxlib/CMakeLists.txt
deleted file mode 100644
index a8937e7..0000000
--- a/deps/ledger-zxlib/CMakeLists.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-#*******************************************************************************
-#* (c) 2018 Zondax GmbH
-#*
-#* Licensed under the Apache License, Version 2.0 (the "License");
-#* you may not use this file except in compliance with the License.
-#* You may obtain a copy of the License at
-#*
-#* http://www.apache.org/licenses/LICENSE-2.0
-#*
-#* Unless required by applicable law or agreed to in writing, software
-#* distributed under the License is distributed on an "AS IS" BASIS,
-#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#* See the License for the specific language governing permissions and
-#* limitations under the License.
-#********************************************************************************
-cmake_minimum_required(VERSION 3.0)
-project(ledger-zxlib)
-
-set(CMAKE_CXX_STANDARD 11)
-
-add_subdirectory(cmake/gtest)
-
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}/include
-)
-
-###############
-
-file(GLOB_RECURSE ZXLIB_SRC
- ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c
- )
-
-file(GLOB_RECURSE TESTS_SRC
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/*.cpp
- )
-
-###############
-set(BUILD_TESTS OFF CACHE BOOL "Enables tests")
-
-add_library(zxlib STATIC ${ZXLIB_SRC})
-target_include_directories(zxlib PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
-
-enable_testing()
-
-add_executable(zxlib_tests
- ${TESTS_SRC}
- )
-
-target_include_directories(zxlib_tests PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}/include
- ${gtest_SOURCE_DIR}/include
- ${gmock_SOURCE_DIR}/include
- )
-
-target_link_libraries(zxlib_tests gtest_main zxlib)
-
-add_test(ZXLIB_TESTS zxlib_tests)
diff --git a/deps/ledger-zxlib/LICENSE b/deps/ledger-zxlib/LICENSE
deleted file mode 100644
index 0fa613e..0000000
--- a/deps/ledger-zxlib/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright 2018-2020 Zondax GmbH
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/deps/ledger-zxlib/README.md b/deps/ledger-zxlib/README.md
deleted file mode 100644
index d75ac57..0000000
--- a/deps/ledger-zxlib/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# ledger-zxlib
-
-[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
-[![GithubActions](https://github.com/zondax/ledger-zxlib/actions/workflows/main.yml/badge.svg)](https://github.com/Zondax/ledger-zxlib/blob/main/.github/workflows/main.yaml)
-[![CodeFactor](https://www.codefactor.io/repository/github/zondax/ledger-zxlib/badge)](https://www.codefactor.io/repository/github/zondax/ledger-zxlib)
diff --git a/deps/ledger-zxlib/app/common/view.c b/deps/ledger-zxlib/app/common/view.c
deleted file mode 100644
index 0a5fc19..0000000
--- a/deps/ledger-zxlib/app/common/view.c
+++ /dev/null
@@ -1,323 +0,0 @@
-/*******************************************************************************
-* (c) 2018, 2019 Zondax GmbH
-* (c) 2016 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "view.h"
-#include "coin.h"
-#include "view_internal.h"
-#include "crypto.h"
-
-#include "actions.h"
-#include "apdu_codes.h"
-#include "ux.h"
-#include "bagl.h"
-#include "zxmacros.h"
-#include "view_templates.h"
-#include "tx.h"
-#include "addr.h"
-#include "app_mode.h"
-#include "zxerror.h"
-
-#include
-#include
-#include
-
-view_t viewdata;
-
-void h_approve(__Z_UNUSED unsigned int _) {
- zemu_log_stack("h_approve");
-
- view_idle_show(0, NULL);
- UX_WAIT();
- if (viewdata.viewfuncAccept != NULL) {
- viewdata.viewfuncAccept();
- }
-}
-
-void h_reject(__Z_UNUSED unsigned int _) {
- zemu_log_stack("h_reject");
-
- view_idle_show(0, NULL);
- UX_WAIT();
- app_reject();
-}
-
-void h_error_accept(__Z_UNUSED unsigned int _) {
- view_idle_show(0, NULL);
- UX_WAIT();
- app_reply_error();
-}
-
-void h_initialize(__Z_UNUSED unsigned int _) {
- view_idle_show(0, NULL);
- UX_WAIT();
-}
-
-///////////////////////////////////
-// Paging related
-
-void h_paging_init() {
- zemu_log_stack("h_paging_init");
-
- viewdata.itemIdx = 0;
- viewdata.pageIdx = 0;
- viewdata.pageCount = 1;
- viewdata.itemCount = 0xFF;
-}
-
-bool h_paging_can_increase() {
- if (viewdata.pageIdx + 1 < viewdata.pageCount) {
- zemu_log_stack("h_paging_can_increase");
- return true;
- }
-
- // passed page count, go to next index
- if (viewdata.itemCount > 0 && viewdata.itemIdx < (viewdata.itemCount - 1 + INCLUDE_ACTIONS_COUNT)) {
- zemu_log_stack("h_paging_can_increase");
- return true;
- }
-
- zemu_log_stack("h_paging_can_increase NO");
- return false;
-}
-
-void h_paging_increase() {
- zemu_log_stack("h_paging_increase");
-
- if (viewdata.pageIdx + 1 < viewdata.pageCount) {
- // increase page
- viewdata.pageIdx++;
- return;
- }
-
- // passed page count, go to next index
- if (viewdata.itemCount > 0 && viewdata.itemIdx < (viewdata.itemCount - 1 + INCLUDE_ACTIONS_COUNT)) {
- viewdata.itemIdx++;
- viewdata.pageIdx = 0;
- }
-}
-
-bool h_paging_can_decrease() {
- if (viewdata.pageIdx != 0) {
- zemu_log_stack("h_paging_can_decrease");
- return true;
- }
-
- if (viewdata.itemIdx > 0) {
- zemu_log_stack("h_paging_can_decrease");
- return true;
- }
-
- zemu_log_stack("h_paging_can_decrease NO");
- return false;
-}
-
-void h_paging_decrease() {
- char buffer[50];
- snprintf(buffer, sizeof(buffer), "h_paging_decrease Idx %d", viewdata.itemIdx);
- zemu_log_stack(buffer);
-
- if (viewdata.pageIdx != 0) {
- viewdata.pageIdx--;
- zemu_log_stack("page--");
- return;
- }
-
- if (viewdata.itemIdx > 0) {
- viewdata.itemIdx--;
- zemu_log_stack("item--");
- // jump to last page. update will cap this value
- viewdata.pageIdx = 255;
- }
-}
-
-///////////////////////////////////
-// Paging related
-
-#ifdef INCLUDE_ACTIONS_AS_ITEMS
-bool is_accept_item(){
- return viewdata.itemIdx == viewdata.itemCount - 1;
-}
-
-void set_accept_item(){
- viewdata.itemIdx = viewdata.itemCount - 1;
- viewdata.pageIdx = 0;
-}
-
-bool is_reject_item(){
- return viewdata.itemIdx == viewdata.itemCount;
-}
-#endif
-
-void h_review_action() {
-#ifdef INCLUDE_ACTIONS_AS_ITEMS
- if( is_accept_item() ){
- zemu_log_stack("action_accept");
- h_approve(1);
- return;
- }
-
- if( is_reject_item() ){
- zemu_log_stack("action_reject");
- h_reject(1);
- return;
- }
-
- zemu_log_stack("quick accept");
- if (app_mode_expert()) {
- set_accept_item();
- h_review_update();
- return;
- }
-#endif
-}
-
-zxerr_t h_review_update_data() {
- if (viewdata.viewfuncGetNumItems == NULL) {
- zemu_log_stack("h_review_update_data - GetNumItems==NULL");
- return zxerr_no_data;
- }
- if (viewdata.viewfuncGetItem == NULL) {
- zemu_log_stack("h_review_update_data - GetItem==NULL");
- return zxerr_no_data;
- }
-
- if (viewdata.viewfuncGetItem == NULL) {
- zemu_log_stack("h_review_update_data - GetItem==NULL");
- return zxerr_no_data;
- }
-
- if (viewdata.viewfuncGetItem == NULL) {
- zemu_log_stack("h_review_update_data - GetItem==NULL");
- return zxerr_no_data;
- }
-
- char buffer[20];
- snprintf(buffer, sizeof(buffer), "update Idx %d/%d", viewdata.itemIdx, viewdata.pageIdx);
- zemu_log_stack(buffer);
-
-#ifdef INCLUDE_ACTIONS_AS_ITEMS
- viewdata.pageCount = 1;
-
- if( is_accept_item() ){
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s","");
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "%s", APPROVE_LABEL);
- splitValueField();
- zemu_log_stack("show_accept_action - accept item");
- viewdata.pageIdx = 0;
- return zxerr_ok;
- }
-
- if( is_reject_item() ){
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", "");
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "%s", REJECT_LABEL);
- splitValueField();
- zemu_log_stack("show_reject_action - reject item");
- viewdata.pageIdx = 0;
- return zxerr_ok;
- }
-#endif
-
- do {
- CHECK_ZXERR(viewdata.viewfuncGetNumItems(&viewdata.itemCount))
-
- //Verify how many chars fit in display (nanos)
- CHECK_ZXERR(viewdata.viewfuncGetItem(
- viewdata.itemIdx,
- viewdata.key, MAX_CHARS_PER_KEY_LINE,
- viewdata.value, MAX_CHARS_PER_VALUE1_LINE,
- 0, &viewdata.pageCount))
- viewdata.pageCount = 1;
- const max_char_display dyn_max_char_per_line1 = get_max_char_per_line();
-
- // be sure we are not out of bounds
- CHECK_ZXERR(viewdata.viewfuncGetItem(
- viewdata.itemIdx,
- viewdata.key, MAX_CHARS_PER_KEY_LINE,
- viewdata.value, dyn_max_char_per_line1,
- 0, &viewdata.pageCount))
- if (viewdata.pageCount != 0 && viewdata.pageIdx > viewdata.pageCount) {
- // try again and get last page
- viewdata.pageIdx = viewdata.pageCount - 1;
- }
- CHECK_ZXERR(viewdata.viewfuncGetItem(
- viewdata.itemIdx,
- viewdata.key, MAX_CHARS_PER_KEY_LINE,
- viewdata.value, dyn_max_char_per_line1,
- viewdata.pageIdx, &viewdata.pageCount))
-
- viewdata.itemCount++;
-
- if (viewdata.pageCount > 1) {
- uint8_t keyLen = strlen(viewdata.key);
- if (keyLen < MAX_CHARS_PER_KEY_LINE) {
- snprintf(viewdata.key + keyLen,
- MAX_CHARS_PER_KEY_LINE - keyLen,
- " [%d/%d]",
- viewdata.pageIdx + 1,
- viewdata.pageCount);
- }
- }
-
- if (viewdata.pageCount == 0) {
- h_paging_increase();
- }
- } while (viewdata.pageCount == 0);
-
- splitValueAddress();
- return zxerr_ok;
-}
-
-///////////////////////////////////
-// General
-
-void io_seproxyhal_display(const bagl_element_t *element) {
- io_seproxyhal_display_default((bagl_element_t *) element);
-}
-
-void view_init(void) {
- UX_INIT();
-#ifdef APP_SECRET_MODE_ENABLED
- viewdata.secret_click_count = 0;
-#endif
-}
-
-void view_idle_show(uint8_t item_idx, char *statusString) {
- view_idle_show_impl(item_idx, statusString);
-}
-
-void view_message_show(char *title, char *message) {
- view_message_impl(title, message);
-}
-
-void view_review_init(viewfunc_getItem_t viewfuncGetItem,
- viewfunc_getNumItems_t viewfuncGetNumItems,
- viewfunc_accept_t viewfuncAccept) {
- viewdata.viewfuncGetItem = viewfuncGetItem;
- viewdata.viewfuncGetNumItems = viewfuncGetNumItems;
- viewdata.viewfuncAccept = viewfuncAccept;
-}
-
-void view_review_show() {
- view_review_show_impl();
-}
-
-void view_error_show() {
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "ERROR");
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "SHOWING DATA");
- splitValueField();
- view_error_show_impl();
-}
diff --git a/deps/ledger-zxlib/app/common/view.h b/deps/ledger-zxlib/app/common/view.h
deleted file mode 100644
index 6c9e777..0000000
--- a/deps/ledger-zxlib/app/common/view.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
-* (c) 2018-2020 Zondax GmbH
-* (c) 2016 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#include
-#include "coin.h"
-#include "zxerror.h"
-
-#if defined(LEDGER_SPECIFIC)
-#include "bolos_target.h"
-#if defined(BOLOS_SDK)
-#include "os.h"
-#include "cx.h"
-#endif
-#endif
-
-typedef zxerr_t (*viewfunc_getNumItems_t)(uint8_t *num_items);
-
-typedef zxerr_t (*viewfunc_getItem_t)(int8_t displayIdx,
- char *outKey, uint16_t outKeyLen,
- char *outVal, uint16_t outValLen,
- uint8_t pageIdx, uint8_t *pageCount);
-
-typedef void (*viewfunc_accept_t)();
-
-#ifdef APP_SECRET_MODE_ENABLED
-zxerr_t secret_enabled();
-#endif
-
-/// view_init (initializes UI)
-void view_init();
-
-/// view_initialize_show (idle view - main menu + status)
-void view_initialize_show(uint8_t item_idx, char *statusString);
-
-/// view_idle_show (idle view - main menu + status)
-void view_idle_show(uint8_t item_idx, char *statusString);
-
-void view_message_show(char *title, char *message);
-
-/// view_error (error view)
-void view_error_show();
-
-void view_review_init(viewfunc_getItem_t viewfuncGetItem,
- viewfunc_getNumItems_t viewfuncGetNumItems,
- viewfunc_accept_t viewfuncAccept);
-
-void view_review_show();
diff --git a/deps/ledger-zxlib/app/common/view_internal.h b/deps/ledger-zxlib/app/common/view_internal.h
deleted file mode 100644
index 4f08a73..0000000
--- a/deps/ledger-zxlib/app/common/view_internal.h
+++ /dev/null
@@ -1,135 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-* (c) 2016 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#include
-#include
-#include "coin.h"
-#include "zxerror.h"
-#include "view.h"
-
-#define CUR_FLOW G_ux.flow_stack[G_ux.stack_count-1]
-
-#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-#define MAX_CHARS_PER_KEY_LINE 64
-#define MAX_CHARS_PER_VALUE1_LINE 4096
-#define MAX_CHARS_HEXMESSAGE 160
-#else
-#ifndef MAX_CHARS_PER_VALUE_LINE
-#define MAX_CHARS_PER_VALUE_LINE (17)
-#endif
-#define MAX_CHARS_PER_KEY_LINE (MAX_CHARS_PER_VALUE_LINE+1)
-#define MAX_CHARS_PER_VALUE1_LINE (2*MAX_CHARS_PER_VALUE_LINE+1)
-#define MAX_CHARS_PER_VALUE2_LINE (MAX_CHARS_PER_VALUE_LINE+1)
-#define MAX_CHARS_HEXMESSAGE 40
-#endif
-
-// This takes data from G_io_apdu_buffer that is prefilled with the address
-
-#define APPROVE_LABEL "APPROVE"
-#define REJECT_LABEL "REJECT"
-
-#if defined(TARGET_NANOS)
-#define INCLUDE_ACTIONS_AS_ITEMS 2
-#define INCLUDE_ACTIONS_COUNT (INCLUDE_ACTIONS_AS_ITEMS-1)
-typedef uint8_t max_char_display;
-#else
-#define INCLUDE_ACTIONS_COUNT 0
-typedef int max_char_display;
-#endif
-
-typedef struct {
- struct {
- char key[MAX_CHARS_PER_KEY_LINE];
- char value[MAX_CHARS_PER_VALUE1_LINE];
-#if defined(TARGET_NANOS)
- char value2[MAX_CHARS_PER_VALUE2_LINE];
-#endif
- };
- viewfunc_getItem_t viewfuncGetItem;
- viewfunc_getNumItems_t viewfuncGetNumItems;
- viewfunc_accept_t viewfuncAccept;
-
-#ifdef APP_SECRET_MODE_ENABLED
- uint8_t secret_click_count;
-#endif
- uint8_t itemIdx;
- uint8_t itemCount;
- uint8_t pageIdx;
- uint8_t pageCount;
-} view_t;
-
-typedef enum {
- view_action_unknown,
- view_action_accept,
- view_action_reject,
-} view_action_t;
-
-extern view_t viewdata;
-
-#define print_title(...) snprintf(viewdata.title, sizeof(viewdata.title), __VA_ARGS__)
-#define print_key(...) snprintf(viewdata.key, sizeof(viewdata.key), __VA_ARGS__);
-#define print_value(...) snprintf(viewdata.value, sizeof(viewdata.value), __VA_ARGS__);
-
-#if defined(TARGET_NANOS)
-#define print_value2(...) snprintf(viewdata.value2, sizeof(viewdata.value2), __VA_ARGS__);
-#endif
-
-void splitValueField();
-void splitValueAddress();
-max_char_display get_max_char_per_line();
-
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-///////////////////////////////////////////////
-
-void view_initialize_show_impl(uint8_t item_idx, char *statusString);
-
-void view_idle_show_impl(uint8_t item_idx, char *statusString);
-
-void view_message_impl(char *title, char *message);
-
-void view_error_show_impl();
-
-void h_paging_init();
-
-bool h_paging_can_increase();
-
-void h_paging_increase();
-
-bool h_paging_can_decrease();
-
-void h_paging_decrease();
-
-void view_review_show_impl();
-
-void h_approve(unsigned int _);
-
-void h_reject(unsigned int _);
-
-void h_review_action();
-
-void h_review_update();
-
-void h_error_accept(unsigned int _);
-
-zxerr_t h_review_update_data();
diff --git a/deps/ledger-zxlib/app/common/view_s.c b/deps/ledger-zxlib/app/common/view_s.c
deleted file mode 100644
index d323b5c..0000000
--- a/deps/ledger-zxlib/app/common/view_s.c
+++ /dev/null
@@ -1,336 +0,0 @@
-/*******************************************************************************
-* (c) 2018, 2019 Zondax GmbH
-* (c) 2016 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "app_mode.h"
-#include "view.h"
-#include "view_internal.h"
-#include "apdu_codes.h"
-#include "ux.h"
-#include "bagl.h"
-#include "zxmacros.h"
-#include "view_templates.h"
-#include "zxutils_ledger.h"
-
-#include
-#include
-
-#if defined(TARGET_NANOS)
-
-void h_initialize();
-
-#define BAGL_WIDTH 128
-#define BAGL_HEIGHT 32
-#define BAGL_WIDTH_MARGIN 10
-
-void h_expert_toggle();
-void h_expert_update();
-void h_review_button_left();
-void h_review_button_right();
-void h_review_button_both();
-
-bool exceed_pixel_in_display(const uint8_t length);
-
-#ifdef APP_SECRET_MODE_ENABLED
-void h_secret_click();
-#endif
-
-ux_state_t ux;
-
-void os_exit(uint32_t id) {
- (void)id;
- os_sched_exit(0);
-}
-
-const ux_menu_entry_t menu_main[] = {
- {NULL, NULL, 0, &C_icon_app, MENU_MAIN_APP_LINE1, viewdata.key, 33, 12},
- {NULL, h_expert_toggle, 0, &C_icon_app, "Expert mode:", viewdata.value, 33, 12},
- {NULL, NULL, 0, &C_icon_app, APPVERSION_LINE1, APPVERSION_LINE2, 33, 12},
-
- {NULL,
-#ifdef APP_SECRET_MODE_ENABLED
- h_secret_click,
-#else
- NULL,
-#endif
- 0, &C_icon_app, "Developed by:", "Zondax.ch", 33, 12},
-
- {NULL, NULL, 0, &C_icon_app, "License: ", "Apache 2.0", 33, 12},
- {NULL, os_exit, 0, &C_icon_dashboard, "Quit", NULL, 50, 29},
- UX_MENU_END
-};
-
-const ux_menu_entry_t menu_initialize[] = {
- {NULL, NULL, 0, &C_icon_app, MENU_MAIN_APP_LINE1, viewdata.key, 33, 12},
- {NULL, h_initialize, 0, &C_icon_app, "Click to", "Initialize", 33, 12},
- {NULL, h_expert_toggle, 0, &C_icon_app, "Expert mode:", viewdata.value, 33, 12},
- {NULL, NULL, 0, &C_icon_app, APPVERSION_LINE1, APPVERSION_LINE2, 33, 12},
- {NULL, NULL, 0, &C_icon_app, "Developed by:", "Zondax.ch", 33, 12},
- {NULL, NULL, 0, &C_icon_app, "License: ", "Apache 2.0", 33, 12},
- {NULL, os_exit, 0, &C_icon_dashboard, "Quit", NULL, 50, 29},
- UX_MENU_END
-};
-
-static const bagl_element_t view_message[] = {
- UI_BACKGROUND,
- UI_LabelLine(UIID_LABEL + 0, 0, 8, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.key),
- UI_LabelLine(UIID_LABEL + 1, 0, 19, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.value),
-};
-
-static const bagl_element_t view_review[] = {
- UI_BACKGROUND_LEFT_RIGHT_ICONS,
- UI_LabelLine(UIID_LABEL + 0, 0, 8, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.key),
- UI_LabelLine(UIID_LABEL + 1, 0, 19, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.value),
- UI_LabelLine(UIID_LABEL + 2, 0, 30, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.value2),
-};
-
-static const bagl_element_t view_error[] = {
- UI_FillRectangle(0, 0, 0, UI_SCREEN_WIDTH, UI_SCREEN_HEIGHT, 0x000000, 0xFFFFFF),
- UI_Icon(0, 128 - 7, 0, 7, 7, BAGL_GLYPH_ICON_CHECK),
- UI_LabelLine(UIID_LABEL + 0, 0, 8, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.key),
- UI_LabelLine(UIID_LABEL + 0, 0, 19, UI_SCREEN_WIDTH, UI_11PX, UI_WHITE, UI_BLACK, viewdata.value),
- UI_LabelLineScrolling(UIID_LABELSCROLL, 0, 30, 128, UI_11PX, UI_WHITE, UI_BLACK, viewdata.value2),
-};
-
-static unsigned int view_error_button(unsigned int button_mask, __Z_UNUSED unsigned int button_mask_counter) {
- switch (button_mask) {
- case BUTTON_EVT_RELEASED | BUTTON_LEFT | BUTTON_RIGHT:
- case BUTTON_EVT_RELEASED | BUTTON_LEFT:
- break;
- case BUTTON_EVT_RELEASED | BUTTON_RIGHT:
- h_error_accept(0);
- break;
- }
- return 0;
-}
-
-static unsigned int view_message_button(unsigned int button_mask, __Z_UNUSED unsigned int button_mask_counter) {
- switch (button_mask) {
- case BUTTON_EVT_RELEASED | BUTTON_LEFT | BUTTON_RIGHT:
- case BUTTON_EVT_RELEASED | BUTTON_LEFT:
- case BUTTON_EVT_RELEASED | BUTTON_RIGHT:
- break;
- }
- return 0;
-}
-
-static unsigned int view_review_button(unsigned int button_mask, __Z_UNUSED unsigned int button_mask_counter) {
- switch (button_mask) {
- case BUTTON_EVT_RELEASED | BUTTON_LEFT | BUTTON_RIGHT:
- h_review_button_both();
- break;
- case BUTTON_EVT_RELEASED | BUTTON_LEFT:
- // Press left to progress to the previous element
- h_review_button_left();
- break;
-
- case BUTTON_EVT_RELEASED | BUTTON_RIGHT:
- // Press right to progress to the next element
- h_review_button_right();
- break;
- }
- return 0;
-}
-
-const bagl_element_t *view_prepro(const bagl_element_t *element) {
- switch (element->component.userid) {
- case UIID_ICONLEFT:
- if (!h_paging_can_decrease()){
- return NULL;
- }
- UX_CALLBACK_SET_INTERVAL(2000);
- break;
- case UIID_ICONRIGHT:
- if (!h_paging_can_increase()){
- return NULL;
- }
- UX_CALLBACK_SET_INTERVAL(2000);
- break;
- case UIID_LABELSCROLL:
- UX_CALLBACK_SET_INTERVAL(
- MAX(3000, 1000 + bagl_label_roundtrip_duration_ms(element, 7))
- );
- break;
- }
- return element;
-}
-
-const bagl_element_t *view_prepro_idle(const bagl_element_t *element) {
- switch (element->component.userid) {
- case UIID_ICONLEFT:
- case UIID_ICONRIGHT:
- return NULL;
- }
- return element;
-}
-
-void h_review_update() {
- zxerr_t err = h_review_update_data();
- switch(err) {
- case zxerr_ok:
- UX_DISPLAY(view_review, view_prepro);
- break;
- default:
- view_error_show();
- UX_WAIT();
- break;
- }
-}
-
-void h_review_button_left() {
- zemu_log_stack("h_review_button_left");
- h_paging_decrease();
- h_review_update();
-}
-
-void h_review_button_right() {
- zemu_log_stack("h_review_button_right");
- h_paging_increase();
- h_review_update();
-}
-
-void h_review_button_both() {
- zemu_log_stack("h_review_button_left");
- h_review_action();
-}
-
-void splitValueField() {
- print_value2("");
- const uint16_t vlen = strlen(viewdata.value);
- if (vlen > MAX_CHARS_PER_VALUE2_LINE - 1) {
- snprintf(viewdata.value2, MAX_CHARS_PER_VALUE2_LINE, "%s", viewdata.value + MAX_CHARS_PER_VALUE_LINE);
- viewdata.value[MAX_CHARS_PER_VALUE_LINE] = 0;
- }
-}
-void splitValueAddress() {
- uint8_t len = MAX_CHARS_PER_VALUE_LINE;
- bool exceeding_max = exceed_pixel_in_display(len);
- while(exceeding_max && len--) {
- exceeding_max = exceed_pixel_in_display(len);
- }
- print_value2("");
- const uint16_t vlen = strlen(viewdata.value);
- //if viewdata.value == NULL --> len = 0
- if (vlen > len && len > 0) {
- snprintf(viewdata.value2, MAX_CHARS_PER_VALUE2_LINE, "%s", viewdata.value + len);
- viewdata.value[len] = 0;
- }
-}
-
-max_char_display get_max_char_per_line() {
- uint8_t len = MAX_CHARS_PER_VALUE_LINE;
- bool exceeding_max = exceed_pixel_in_display(len);
- while(exceeding_max && len--) {
- exceeding_max = exceed_pixel_in_display(len);
- }
- //MAX_CHARS_PER_VALUE1_LINE is defined this way
- return (len > 0) ? (2 * len + 1) : len;
-}
-
-bool exceed_pixel_in_display(const uint8_t length) {
- const unsigned short strWidth = zx_compute_line_width_light(viewdata.value, length);
- return (strWidth >= (BAGL_WIDTH - BAGL_WIDTH_MARGIN));
-}
-
-//////////////////////////
-//////////////////////////
-//////////////////////////
-//////////////////////////
-//////////////////////////
-
-void view_initialize_show_impl(uint8_t item_idx, char *statusString) {
- if (statusString == NULL ) {
- snprintf(viewdata.key, MAX_CHARS_PER_VALUE_LINE, "%s", MENU_MAIN_APP_LINE2);
- } else {
- snprintf(viewdata.key, MAX_CHARS_PER_VALUE_LINE, "%s", statusString);
- }
- h_expert_update();
- UX_MENU_DISPLAY(item_idx, menu_initialize, NULL);
-}
-
-void view_idle_show_impl(uint8_t item_idx, char *statusString) {
- if (statusString == NULL ) {
- snprintf(viewdata.key, MAX_CHARS_PER_VALUE_LINE, "%s", MENU_MAIN_APP_LINE2);
-#ifdef APP_SECRET_MODE_ENABLED
- if (app_mode_secret()) {
- snprintf(viewdata.key, MAX_CHARS_PER_VALUE_LINE, "%s", MENU_MAIN_APP_LINE2_SECRET);
- }
-#endif
- } else {
- snprintf(viewdata.key, MAX_CHARS_PER_VALUE_LINE, "%s", statusString);
- }
- h_expert_update();
- UX_MENU_DISPLAY(item_idx, menu_main, NULL);
-}
-
-void view_message_impl(char *title, char *message) {
- snprintf(viewdata.key, MAX_CHARS_PER_VALUE_LINE, "%s", title);
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE_LINE, "%s", message);
- UX_DISPLAY(view_message, view_prepro_idle);
-}
-
-void view_error_show_impl() {
- UX_DISPLAY(view_error, view_prepro);
-}
-
-void h_expert_toggle() {
- app_mode_set_expert(!app_mode_expert());
- view_idle_show(1, NULL);
-}
-
-#ifdef APP_SECRET_MODE_ENABLED
-void h_secret_click() {
- if (COIN_SECRET_REQUIRED_CLICKS == 0) {
- // There is no secret mode
- return;
- }
-
- viewdata.secret_click_count++;
-
- char buffer[50];
- snprintf(buffer, sizeof(buffer), "secret click %d\n", viewdata.secret_click_count);
- zemu_log(buffer);
-
- if (viewdata.secret_click_count >= COIN_SECRET_REQUIRED_CLICKS) {
- secret_enabled();
- viewdata.secret_click_count = 0;
- }
-}
-#endif
-
-void h_expert_update() {
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE_LINE, "disabled");
- if (app_mode_expert()) {
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE_LINE, "enabled");
- }
-}
-
-void view_review_show_impl() {
- zemu_log_stack("view_review_show_impl");
-
- h_paging_init();
-
- zxerr_t err = h_review_update_data();
- switch(err) {
- case zxerr_ok:
- UX_DISPLAY(view_review, view_prepro);
- break;
- default:
- view_error_show();
- break;
- }
-}
-#endif
diff --git a/deps/ledger-zxlib/app/common/view_x.c b/deps/ledger-zxlib/app/common/view_x.c
deleted file mode 100644
index f8dd8bc..0000000
--- a/deps/ledger-zxlib/app/common/view_x.c
+++ /dev/null
@@ -1,292 +0,0 @@
-/*******************************************************************************
-* (c) 2018, 2019 Zondax GmbH
-* (c) 2016 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "app_mode.h"
-#include "view.h"
-#include "view_internal.h"
-#include "actions.h"
-#include "apdu_codes.h"
-#include "glyphs.h"
-#include "bagl.h"
-#include "zxmacros.h"
-#include "view_templates.h"
-#include "tx.h"
-
-#ifdef APP_SECRET_MODE_ENABLED
-#include "secret.h"
-#endif
-
-#include
-#include
-
-#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-
-void h_expert_toggle();
-void h_expert_update();
-void h_review_loop_start();
-void h_review_loop_inside();
-void h_review_loop_end();
-
-#ifdef APP_SECRET_MODE_ENABLED
-void h_secret_click();
-#endif
-
-#include "ux.h"
-ux_state_t G_ux;
-bolos_ux_params_t G_ux_params;
-uint8_t flow_inside_loop;
-
-
-UX_STEP_NOCB(ux_idle_flow_1_step, pbb, { &C_icon_app, MENU_MAIN_APP_LINE1, viewdata.key,});
-UX_STEP_CB_INIT(ux_idle_flow_2_step, bn, h_expert_update(), h_expert_toggle(), { "Expert mode:", viewdata.value, });
-UX_STEP_NOCB(ux_idle_flow_3_step, bn, { APPVERSION_LINE1, APPVERSION_LINE2, });
-
-#ifdef APP_SECRET_MODE_ENABLED
-UX_STEP_CB(ux_idle_flow_4_step, bn, h_secret_click(), { "Developed by:", "Zondax.ch", });
-#else
-UX_STEP_NOCB(ux_idle_flow_4_step, bn, { "Developed by:", "Zondax.ch", });
-#endif
-
-UX_STEP_NOCB(ux_idle_flow_5_step, bn, { "License:", "Apache 2.0", });
-UX_STEP_CB(ux_idle_flow_6_step, pb, os_sched_exit(-1), { &C_icon_dashboard, "Quit",});
-
-const ux_flow_step_t *const ux_idle_flow [] = {
- &ux_idle_flow_1_step,
- &ux_idle_flow_2_step,
- &ux_idle_flow_3_step,
- &ux_idle_flow_4_step,
- &ux_idle_flow_5_step,
- &ux_idle_flow_6_step,
- FLOW_END_STEP,
-};
-
-///////////
-
-UX_STEP_NOCB(ux_message_flow_1_step, pbb, { &C_icon_app, viewdata.key, viewdata.value,});
-
-UX_FLOW(
- ux_message_flow,
- &ux_message_flow_1_step
-);
-
-///////////
-
-UX_STEP_NOCB(ux_error_flow_1_step, bnnn_paging, { .title = viewdata.key, .text = viewdata.value, });
-UX_STEP_VALID(ux_error_flow_2_step, pb, h_error_accept(0), { &C_icon_validate_14, "Ok"});
-
-UX_FLOW(
- ux_error_flow,
- &ux_error_flow_1_step,
- &ux_error_flow_2_step
-);
-
-///////////
-
-UX_FLOW_DEF_NOCB(ux_review_flow_1_review_title, pbb, { &C_icon_app, "Please", "review",});
-UX_STEP_INIT(ux_review_flow_2_start_step, NULL, NULL, { h_review_loop_start(); });
-UX_STEP_NOCB_INIT(ux_review_flow_2_step, bnnn_paging, { h_review_loop_inside(); }, { .title = viewdata.key, .text = viewdata.value, });
-UX_STEP_INIT(ux_review_flow_2_end_step, NULL, NULL, { h_review_loop_end(); });
-UX_STEP_VALID(ux_review_flow_3_step, pb, h_approve(0), { &C_icon_validate_14, APPROVE_LABEL });
-UX_STEP_VALID(ux_review_flow_4_step, pb, h_reject(0), { &C_icon_crossmark, REJECT_LABEL });
-
-const ux_flow_step_t *const ux_review_flow[] = {
- &ux_review_flow_1_review_title,
- &ux_review_flow_2_start_step,
- &ux_review_flow_2_step,
- &ux_review_flow_2_end_step,
- &ux_review_flow_3_step,
- &ux_review_flow_4_step,
- FLOW_END_STEP,
-};
-
-//////////////////////////
-//////////////////////////
-//////////////////////////
-//////////////////////////
-//////////////////////////
-
-void h_review_update() {
- zxerr_t err = h_review_update_data();
- switch(err) {
- case zxerr_ok:
- case zxerr_no_data:
- break;
- default:
- view_error_show();
- break;
- }
-}
-
-void h_review_loop_start() {
- if (flow_inside_loop) {
- // coming from right
-
- if (!h_paging_can_decrease()) {
- // exit to the left
- flow_inside_loop = 0;
- ux_flow_prev();
- return;
- }
-
- h_paging_decrease();
- } else {
- // coming from left
- h_paging_init();
- }
-
- h_review_update();
-
- ux_flow_next();
-}
-
-void h_review_loop_inside() {
- flow_inside_loop = 1;
-}
-
-void h_review_loop_end() {
- if (flow_inside_loop) {
- // coming from left
- h_paging_increase();
- zxerr_t err = h_review_update_data();
-
- switch(err) {
- case zxerr_ok:
- ux_layout_bnnn_paging_reset();
- break;
- case zxerr_no_data: {
- flow_inside_loop = 0;
- ux_flow_next();
- return;
- }
- default:
- view_error_show();
- break;
- }
- } else {
- // coming from right
- h_paging_decrease();
- h_review_update();
- }
-
- // move to prev flow but trick paging to show first page
- CUR_FLOW.prev_index = CUR_FLOW.index-2;
- CUR_FLOW.index--;
- ux_flow_relayout();
-}
-
-void splitValueField() {
- uint16_t vlen = strlen(viewdata.value);
- if (vlen == 0 ) {
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, " ");
- }
-}
-
-void splitValueAddress() {
- splitValueField();
-}
-
-max_char_display get_max_char_per_line() {
- return MAX_CHARS_PER_VALUE1_LINE;
-}
-
-void h_expert_toggle() {
- app_mode_set_expert(!app_mode_expert());
- ux_flow_init(0, ux_idle_flow, &ux_idle_flow_2_step);
-}
-
-void h_expert_update() {
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "disabled");
- if (app_mode_expert()) {
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "enabled");
- }
-}
-
-#ifdef APP_SECRET_MODE_ENABLED
-void h_secret_click() {
- if (COIN_SECRET_REQUIRED_CLICKS == 0) {
- // There is no secret mode
- return;
- }
-
- viewdata.secret_click_count++;
-
- char buffer[50];
- snprintf(buffer, sizeof(buffer), "secret click %d\n", viewdata.secret_click_count);
- zemu_log(buffer);
-
- if (viewdata.secret_click_count >= COIN_SECRET_REQUIRED_CLICKS) {
- secret_enabled();
- viewdata.secret_click_count = 0;
- return;
- }
-
- ux_flow_init(0, ux_idle_flow, &ux_idle_flow_4_step);
-}
-#endif
-
-//////////////////////////
-//////////////////////////
-//////////////////////////
-//////////////////////////
-//////////////////////////
-
-void view_idle_show_impl(__Z_UNUSED uint8_t item_idx, char *statusString) {
- if (statusString == NULL ) {
- if (app_mode_secret()) {
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", MENU_MAIN_APP_LINE2_SECRET);
- } else {
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", MENU_MAIN_APP_LINE2);
- }
- } else {
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", statusString);
- }
-
- if(G_ux.stack_count == 0) {
- ux_stack_push();
- }
- ux_flow_init(0, ux_idle_flow, NULL);
-}
-
-void view_review_show_impl(){
- h_paging_init();
- h_paging_decrease();
- ////
- flow_inside_loop = 0;
- if(G_ux.stack_count == 0) {
- ux_stack_push();
- }
- ux_flow_init(0, ux_review_flow, NULL);
-}
-
-void view_message_impl(char *title, char *message) {
- snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", title);
- snprintf(viewdata.value, MAX_CHARS_PER_VALUE1_LINE, "%s", message);
- ux_layout_bnnn_paging_reset();
- if(G_ux.stack_count == 0) {
- ux_stack_push();
- }
- ux_flow_init(0, ux_message_flow, NULL);
-}
-
-void view_error_show_impl() {
- ux_layout_bnnn_paging_reset();
- if(G_ux.stack_count == 0) {
- ux_stack_push();
- }
- ux_flow_init(0, ux_error_flow, NULL);
-}
-#endif
diff --git a/deps/ledger-zxlib/cmake/gtest/CMakeLists.txt b/deps/ledger-zxlib/cmake/gtest/CMakeLists.txt
deleted file mode 100644
index c64d5d8..0000000
--- a/deps/ledger-zxlib/cmake/gtest/CMakeLists.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-##############################
-# Google Test
-# Based on instructions in https://github.com/google/googletest/tree/master/googletest#incorporating-into-an-existing-cmake-project
-# Download and unpack googletest at configure time
-configure_file(CMakeLists.txt.gtest.in ${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt)
-
-execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
- RESULT_VARIABLE result
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
-if (result)
- message(FATAL_ERROR "CMake step for googletest failed: ${result}")
-endif ()
-
-execute_process(COMMAND ${CMAKE_COMMAND} --build .
- RESULT_VARIABLE result
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download)
-if (result)
- message(FATAL_ERROR "Build step for googletest failed: ${result}")
-endif ()
-
-# Prevent overriding the parent project's compiler/linker settings on Windows
-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
-
-add_subdirectory(
- ${CMAKE_BINARY_DIR}/googletest-src
- ${CMAKE_BINARY_DIR}/googletest-build
-)
-
-if (CMAKE_VERSION VERSION_LESS 3.0.0)
- include_directories("${gtest_SOURCE_DIR}/include")
-endif ()
diff --git a/deps/ledger-zxlib/cmake/gtest/CMakeLists.txt.gtest.in b/deps/ledger-zxlib/cmake/gtest/CMakeLists.txt.gtest.in
deleted file mode 100644
index b30f8be..0000000
--- a/deps/ledger-zxlib/cmake/gtest/CMakeLists.txt.gtest.in
+++ /dev/null
@@ -1,16 +0,0 @@
-# Based on https://github.com/google/googletest/tree/master/googletest#incorporating-into-an-existing-cmake-project
-cmake_minimum_required(VERSION 3.0.0)
-
-project(googletest-download NONE)
-
-include(ExternalProject)
-ExternalProject_Add(googletest
- GIT_REPOSITORY https://github.com/google/googletest.git
- GIT_TAG release-1.11.0
- SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
- BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
- CONFIGURE_COMMAND ""
- BUILD_COMMAND ""
- INSTALL_COMMAND ""
- TEST_COMMAND ""
- )
diff --git a/deps/ledger-zxlib/dockerized_build.mk b/deps/ledger-zxlib/dockerized_build.mk
deleted file mode 100644
index d12c0e3..0000000
--- a/deps/ledger-zxlib/dockerized_build.mk
+++ /dev/null
@@ -1,328 +0,0 @@
-#*******************************************************************************
-#* (c) 2019-2021 Zondax GmbH
-#*
-#* Licensed under the Apache License, Version 2.0 (the "License");
-#* you may not use this file except in compliance with the License.
-#* You may obtain a copy of the License at
-#*
-#* http://www.apache.org/licenses/LICENSE-2.0
-#*
-#* Unless required by applicable law or agreed to in writing, software
-#* distributed under the License is distributed on an "AS IS" BASIS,
-#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#* See the License for the specific language governing permissions and
-#* limitations under the License.
-#********************************************************************************
-
-.PHONY: all deps build clean load delete check_python show_info_recovery_mode
-
-TESTS_ZEMU_DIR?=$(CURDIR)/tests_zemu
-EXAMPLE_VUE_DIR?=$(CURDIR)/example_vue
-TESTS_JS_PACKAGE?=
-TESTS_JS_DIR?=
-
-LEDGER_SRC=$(CURDIR)/app
-DOCKER_APP_SRC=/project
-DOCKER_APP_BIN=$(DOCKER_APP_SRC)/app/bin/app.elf
-
-DOCKER_BOLOS_SDKS=/project/deps/nanos-secure-sdk
-DOCKER_BOLOS_SDKX=/project/deps/nanox-secure-sdk
-DOCKER_BOLOS_SDKS2=/project/deps/nanosplus-secure-sdk
-
-# Note: This is not an SSH key, and being public represents no risk
-SCP_PUBKEY=049bc79d139c70c83a4b19e8922e5ee3e0080bb14a2e8b0752aa42cda90a1463f689b0fa68c1c0246845c2074787b649d0d8a6c0b97d4607065eee3057bdf16b83
-SCP_PRIVKEY=ff701d781f43ce106f72dc26a46b6a83e053b5d07bb3d4ceab79c91ca822a66b
-
-INTERACTIVE:=$(shell [ -t 0 ] && echo 1)
-USERID:=$(shell id -u)
-$(info USERID : $(USERID))
-$(info TESTS_ZEMU_DIR : $(TESTS_ZEMU_DIR))
-$(info EXAMPLE_VUE_DIR : $(EXAMPLE_VUE_DIR))
-$(info TESTS_JS_DIR : $(TESTS_JS_DIR))
-$(info TESTS_JS_PACKAGE : $(TESTS_JS_PACKAGE))
-
-DOCKER_IMAGE_ZONDAX=zondax/builder-bolos:latest
-DOCKER_IMAGE_LEDGER=ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
-
-ifdef INTERACTIVE
-INTERACTIVE_SETTING:="-i"
-TTY_SETTING:="-t"
-else
-INTERACTIVE_SETTING:=
-TTY_SETTING:=
-endif
-
-UNAME_S := $(shell uname -s)
-ifeq ($(UNAME_S),Linux)
- NPROC=$(shell nproc)
-endif
-ifeq ($(UNAME_S),Darwin)
- NPROC=$(shell sysctl -n hw.physicalcpu)
-endif
-
-define run_docker
- docker run $(TTY_SETTING) $(INTERACTIVE_SETTING) --rm \
- -e SCP_PRIVKEY=$(SCP_PRIVKEY) \
- -e BOLOS_SDK=$(1) \
- -e BOLOS_ENV=/opt/bolos \
- -u $(USERID) \
- -v $(shell pwd):/project \
- -e SUPPORT_SR25519=$(SUPPORT_SR25519) \
- -e SUBSTRATE_PARSER_FULL=$(SUBSTRATE_PARSER_FULL) \
- -e DISABLE_PREVIOUS=$(DISABLE_PREVIOUS) \
- -e DISABLE_CURRENT=$(DISABLE_CURRENT) \
- -e COIN=$(COIN) \
- -e APP_TESTING=$(APP_TESTING) \
- $(DOCKER_IMAGE_ZONDAX) "$(2)"
-endef
-
-define run_docker_ledger
- docker run $(TTY_SETTING) $(INTERACTIVE_SETTING) --rm \
- -v $(shell pwd):/app \
- $(DOCKER_IMAGE_LEDGER) "$(1)"
-endef
-
-all:
- @$(MAKE) clean_output
- @$(MAKE) clean_build
- @$(MAKE) buildS
- @$(MAKE) clean_build
- @$(MAKE) buildX
- @$(MAKE) clean_build
- @$(MAKE) buildS2
-
-.PHONY: check_python
-check_python:
- @python -c 'import sys; sys.exit(3-sys.version_info.major)' || (echo "The python command does not point to Python 3"; exit 1)
-
-.PHONY: deps
-deps: check_python
- @echo "Install dependencies"
- $(CURDIR)/deps/ledger-zxlib/scripts/install_deps.sh
-
-.PHONY: pull
-pull:
- docker pull $(DOCKER_IMAGE_ZONDAX)
- docker pull $(DOCKER_IMAGE_LEDGER)
-
-.PHONY: ledger_lint
-ledger_lint:
- $(call run_docker_ledger,"scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default")
-
-.PHONY: build_rustS
-build_rustS:
- $(call run_docker,$(DOCKER_BOLOS_SDKS),make -C $(DOCKER_APP_SRC) rust)
-
-.PHONY: build_rustX
-build_rustX:
- $(call run_docker,$(DOCKER_BOLOS_SDKX),make -C $(DOCKER_APP_SRC) rust)
-
-.PHONY: build_rustS2
-build_rustS2:
- $(call run_docker,$(DOCKER_BOLOS_SDKS2),make -C $(DOCKER_APP_SRC) rust)
-
-.PHONY: convert_icon
-convert_icon:
- @convert $(LEDGER_SRC)/tmp.gif -monochrome -size 16x16 -depth 1 $(LEDGER_SRC)/nanos_icon.gif
- @convert $(LEDGER_SRC)/nanos_icon.gif -crop 14x14+1+1 +repage -negate $(LEDGER_SRC)/nanox_icon.gif
-
-.PHONY: buildS
-buildS: build_rustS
- $(call run_docker,$(DOCKER_BOLOS_SDKS),make -j $(NPROC) -C $(DOCKER_APP_SRC))
-
-.PHONY: buildX
-buildX: build_rustX
- $(call run_docker,$(DOCKER_BOLOS_SDKX),make -j $(NPROC) -C $(DOCKER_APP_SRC))
-
-.PHONY: buildS2
-buildS2: build_rustS2
- $(call run_docker,$(DOCKER_BOLOS_SDKS2),make -j $(NPROC) -C $(DOCKER_APP_SRC))
-
-.PHONY: clean_output
-clean_output:
- @echo "Removing output files"
- @rm -f app/output/app* || true
-
-.PHONY: clean
-clean_build:
- $(call run_docker,$(DOCKER_BOLOS_SDKS),make -C $(DOCKER_APP_SRC) clean)
-
-.PHONY: clean
-clean: clean_output clean_build
-
-.PHONY: listvariants
-listvariants:
- $(call run_docker,$(DOCKER_BOLOS_SDKS),make -C $(DOCKER_APP_SRC) listvariants)
-
-.PHONY: shellS
-shellS:
- $(call run_docker,$(DOCKER_BOLOS_SDKS) -t,bash)
-
-.PHONY: shellX
-shellX:
- $(call run_docker,$(DOCKER_BOLOS_SDKX) -t,bash)
-
-.PHONY: shellS2
-shellS2:
- $(call run_docker,$(DOCKER_BOLOS_SDKS2) -t,bash)
-
-.PHONY: load
-load:
- ${LEDGER_SRC}/pkg/installer_s.sh load
-
-.PHONY: delete
-delete:
- ${LEDGER_SRC}/pkg/installer_s.sh delete
-
-.PHONY: loadX
-loadX:
- ${LEDGER_SRC}/pkg/installer_x.sh load
-
-.PHONY: deleteX
-deleteX:
- ${LEDGER_SRC}/pkg/installer_x.sh delete
-
-.PHONY: loadS2
-loadS2:
- ${LEDGER_SRC}/pkg/installer_s2.sh load
-
-.PHONY: deleteS2
-deleteS2:
- ${LEDGER_SRC}/pkg/installer_s2.sh delete
-
-.PHONY: show_info_recovery_mode
-show_info_recovery_mode:
- @echo "This command requires a Ledger Nano S in recovery mode. To go into recovery mode, follow:"
- @echo " 1. Settings -> Device -> Reset all and confirm"
- @echo " 2. Unplug device, press and hold the right button, plug-in again"
- @echo " 3. Navigate to the main menu"
- @echo "If everything was correct, no PIN needs to be entered."
-
-# This target will initialize the device with the integration testing mnemonic
-.PHONY: dev_init
-dev_init: show_info_recovery_mode
- @echo "Initializing device with test mnemonic! WARNING TAKES 2 MINUTES AND REQUIRES RECOVERY MODE"
- @python -m ledgerblue.hostOnboard --apdu --id 0 --prefix "" --passphrase "" --pin 5555 --words "equip will roof matter pink blind book anxiety banner elbow sun young"
-
-# This target will initialize the device with the secondary integration testing mnemonic (Bob)
-.PHONY: dev_init_secondary
-dev_init_secondary: check_python show_info_recovery_mode
- @echo "Initializing device with secondary test mnemonic! WARNING TAKES 2 MINUTES AND REQUIRES RECOVERY MODE"
- @python -m ledgerblue.hostOnboard --apdu --id 0 --prefix "" --passphrase "" --pin 5555 --words "elite vote proof agree february step sibling sand grocery axis false cup"
-
-# This target will setup a custom developer certificate
-.PHONY: dev_ca
-dev_ca: check_python
- @python -m ledgerblue.setupCustomCA --targetId 0x31100004 --public $(SCP_PUBKEY) --name zondax
-
-# This target will setup a custom developer certificate
-.PHONY: dev_caX
-dev_caX: check_python
- @python -m ledgerblue.setupCustomCA --targetId 0x33000004 --public $(SCP_PUBKEY) --name zondax
-
-.PHONY: dev_ca_delete
-dev_ca_delete: check_python
- @python -m ledgerblue.resetCustomCA --targetId 0x31100004
-
-# This target will setup a custom developer certificate
-.PHONY: dev_ca2
-dev_ca2: check_python
- @python -m ledgerblue.setupCustomCA --targetId 0x33000004 --public $(SCP_PUBKEY) --name zondax
-
-.PHONY: dev_ca_delete2
-dev_ca_delete2: check_python
- @python -m ledgerblue.resetCustomCA --targetId 0x33000004
-
-########################## VUE Section ###############################
-
-.PHONY: vue_install_js_link
-ifeq ($(TESTS_JS_DIR),)
-vue_install_js_link:
- @echo "No local package defined"
-else
-vue_install_js_link:
- # First unlink everything
- cd $(TESTS_JS_DIR) && yarn unlink || true
- cd $(EXAMPLE_VUE_DIR) && yarn unlink $(TESTS_JS_PACKAGE) || true
-# # Now build and link
- cd $(TESTS_JS_DIR) && yarn install && yarn build && yarn link || true
- cd $(EXAMPLE_VUE_DIR) && yarn link $(TESTS_JS_PACKAGE) && yarn install || true
- @echo
- # List linked packages
- @echo
- @cd $(EXAMPLE_VUE_DIR) && ( ls -l node_modules ; ls -l node_modules/@* ) | grep ^l || true
- @echo
-endif
-
-.PHONY: vue
-vue: vue_install_js_link
- cd $(EXAMPLE_VUE_DIR) && yarn install && yarn serve
-
-########################## VUE Section ###############################
-
-.PHONY: zemu_install_js_link
-ifeq ($(TESTS_JS_DIR),)
-zemu_install_js_link:
- @echo "No local package defined"
-else
-zemu_install_js_link:
- # First unlink everything
- cd $(TESTS_JS_DIR) && yarn unlink || true
- cd $(TESTS_ZEMU_DIR) && yarn unlink $(TESTS_JS_PACKAGE) || true
- # Now build and link
- cd $(TESTS_JS_DIR) && yarn install && yarn build && yarn link || true
- cd $(TESTS_ZEMU_DIR) && yarn link $(TESTS_JS_PACKAGE) && yarn install || true
- @echo
- # List linked packages
- @echo
- @cd $(TESTS_ZEMU_DIR) && ( ls -l node_modules ; ls -l node_modules/@* ) | grep ^l || true
- @echo
-endif
-
-.PHONY: zemu_install
-zemu_install: zemu_install_js_link
- # and now install everything
- cd $(TESTS_ZEMU_DIR) && yarn install
-
-.PHONY: zemu
-zemu:
- cd $(TESTS_ZEMU_DIR)/tools && node debug.mjs $(COIN)
-
-.PHONY: zemu_val
-zemu_val:
- cd $(TESTS_ZEMU_DIR)/tools && node debug_val.mjs
-
-.PHONY: zemu_debug
-zemu_debug:
- cd $(TESTS_ZEMU_DIR)/tools && node debug.mjs $(COIN) debug
-
-########################## TEST Section ###############################
-
-.PHONY: zemu_test
-zemu_test:
- cd $(TESTS_ZEMU_DIR) && yarn test$(COIN)
-
-.PHONY: rust_test
-rust_test:
- cd app/rust && cargo test
-
-.PHONY: cpp_test
-cpp_test:
- mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make
- cd build && GTEST_COLOR=1 ASAN_OPTIONS=detect_leaks=0 ctest -VV
-
-########################## FUZZING Section ###############################
-
-.PHONY: fuzz_build
-fuzz_build:
- cmake -B build -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_BUILD_TYPE=Debug -DENABLE_FUZZING=1 -DENABLE_SANITIZERS=1 .
- make -C build
-
-.PHONY: fuzz
-fuzz: fuzz_build
- ./fuzz/run-fuzzers.py
-
-.PHONY: fuzz_crash
-fuzz_crash: FUZZ_LOGGING=1
-fuzz_crash: fuzz_build
- ./fuzz/run-fuzz-crashes.py
diff --git a/deps/ledger-zxlib/include/apdu_codes.h b/deps/ledger-zxlib/include/apdu_codes.h
deleted file mode 100644
index 5f55265..0000000
--- a/deps/ledger-zxlib/include/apdu_codes.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#include "inttypes.h"
-#include "zxmacros.h"
-
-// Based on ISO7816
-
-#define APDU_CODE_OK 0x9000
-#define APDU_CODE_BUSY 0x9001
-
-#define APDU_CODE_EXECUTION_ERROR 0x6400
-
-#define APDU_CODE_WRONG_LENGTH 0x6700
-
-#define APDU_CODE_EMPTY_BUFFER 0x6982
-#define APDU_CODE_OUTPUT_BUFFER_TOO_SMALL 0x6983
-#define APDU_CODE_DATA_INVALID 0x6984
-#define APDU_CODE_CONDITIONS_NOT_SATISFIED 0x6985
-#define APDU_CODE_COMMAND_NOT_ALLOWED 0x6986
-#define APDU_CODE_TX_NOT_INITIALIZED 0x6987
-
-#define APDU_CODE_BAD_KEY_HANDLE 0x6A80
-#define APDU_CODE_INVALIDP1P2 0x6B00
-#define APDU_CODE_INS_NOT_SUPPORTED 0x6D00
-#define APDU_CODE_CLA_NOT_SUPPORTED 0x6E00
-
-#define APDU_CODE_UNKNOWN 0x6F00
-#define APDU_CODE_SIGN_VERIFY_ERROR 0x6F01
-
-
-__Z_INLINE void set_code(uint8_t *buffer, uint8_t offset, uint16_t value) {
- *(buffer + offset) = (uint8_t) (value >> 8);
- *(buffer + offset + 1) = (uint8_t) (value & 0xFF);
-}
diff --git a/deps/ledger-zxlib/include/app_mode.h b/deps/ledger-zxlib/include/app_mode.h
deleted file mode 100644
index 11c72e8..0000000
--- a/deps/ledger-zxlib/include/app_mode.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
-* (c) 2016 Ledger
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-#include "zxmacros.h"
-#include "stdbool.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void app_mode_reset();
-
-bool app_mode_expert();
-
-void app_mode_set_expert(uint8_t val);
-
-bool app_mode_secret();
-
-void app_mode_set_secret(uint8_t val);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/base58.h b/deps/ledger-zxlib/include/base58.h
deleted file mode 100644
index b76412d..0000000
--- a/deps/ledger-zxlib/include/base58.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
-* Ledger App - Bitcoin Wallet
-* (c) 2019 Zondax GmbH
-* (c) 2016-2019 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#include
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int decode_base58(const char *in, size_t length,
- unsigned char *out, size_t *outlen);
-
-int encode_base58(const unsigned char *in, size_t length,
- unsigned char *out, size_t *outlen);
-
-char encode_base58_clip(unsigned char v);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/base64.h b/deps/ledger-zxlib/include/base64.h
deleted file mode 100644
index 99bc7c0..0000000
--- a/deps/ledger-zxlib/include/base64.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include
-#include
-
-uint16_t base64_encode(char *out, uint16_t outlen, const uint8_t *in, uint16_t inlen);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/bech32.h b/deps/ledger-zxlib/include/bech32.h
deleted file mode 100644
index bd9fd14..0000000
--- a/deps/ledger-zxlib/include/bech32.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "zxerror.h"
-
-#define MAX_INPUT_SIZE 64
-
-// the following function encodes directly from bytes
-// it will internally convert from 8 to 5 bits and return a
-// zero-terminated string in output
-
-zxerr_t bech32EncodeFromBytes(char *out,
- size_t out_len,
- const char *hrp,
- const uint8_t *in,
- size_t in_len,
- uint8_t pad);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/bignum.h b/deps/ledger-zxlib/include/bignum.h
deleted file mode 100644
index 9bf31f8..0000000
--- a/deps/ledger-zxlib/include/bignum.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include
-#include
-
-bool_t bignumLittleEndian_bcdprint(char *outBuffer, uint16_t outBufferLen, const uint8_t *inBCD, uint16_t inBCDLen);
-void bignumLittleEndian_to_bcd(uint8_t *bcdOut, uint16_t bcdOutLen, const uint8_t *binValue, uint16_t binValueLen);
-
-bool_t bignumBigEndian_bcdprint(char *outBuffer, uint16_t outBufferLen, const uint8_t *bcdIn, uint16_t bcdInLen);
-void bignumBigEndian_to_bcd(uint8_t *bcdOut, uint16_t bcdOutLen, const uint8_t *binValue, uint16_t binValueLen);
-
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/bittools.h b/deps/ledger-zxlib/include/bittools.h
deleted file mode 100644
index 1903878..0000000
--- a/deps/ledger-zxlib/include/bittools.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// This code has been adapted from:
-/* Copyright (c) 2017 Pieter Wuille
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int convert_bits(uint8_t *out,
- size_t *outlen,
- int outBits,
- const uint8_t *in,
- size_t inLen,
- int inBits, int pad);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/buffering.h b/deps/ledger-zxlib/include/buffering.h
deleted file mode 100644
index ec6e80c..0000000
--- a/deps/ledger-zxlib/include/buffering.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
-* (c) 2016 Ledger
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include
-#include
-
-typedef struct {
- uint8_t *data;
- uint16_t size;
- uint16_t pos;
- uint8_t in_use: 1;
-} buffer_state_t;
-
-/// Initialize buffer
-/// \param ram_buffer
-/// \param ram_buffer_size
-/// \param flash_buffer
-/// \param flash_buffer_size
-void buffering_init(uint8_t *ram_buffer,
- uint16_t ram_buffer_size,
- uint8_t *flash_buffer,
- uint16_t flash_buffer_size);
-
-/// Reset buffer
-void buffering_reset();
-
-/// Append data to the buffer
-/// \param data
-/// \param length
-/// \return the number of appended bytes
-int buffering_append(uint8_t *data, int length);
-
-/// buffering_get_ram_buffer
-/// \return
-buffer_state_t *buffering_get_ram_buffer();
-
-/// buffering_get_flash_buffer
-/// \return
-buffer_state_t *buffering_get_flash_buffer();
-
-/// buffering_get_buffer
-/// \return
-buffer_state_t *buffering_get_buffer();
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/hexutils.h b/deps/ledger-zxlib/include/hexutils.h
deleted file mode 100644
index 3cbaad8..0000000
--- a/deps/ledger-zxlib/include/hexutils.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#include
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-size_t parseHexString(uint8_t *out, uint16_t outLen, const char *input);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/segwit_addr.h b/deps/ledger-zxlib/include/segwit_addr.h
deleted file mode 100644
index f97bcfa..0000000
--- a/deps/ledger-zxlib/include/segwit_addr.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Copyright (c) 2017 Pieter Wuille
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#ifndef _SEGWIT_ADDR_H_
-#define _SEGWIT_ADDR_H_ 1
-
-#include
-
-/** Encode a SegWit address
- *
- * Out: output: Pointer to a buffer of size 73 + strlen(hrp) that will be
- * updated to contain the null-terminated address.
- * In: hrp: Pointer to the null-terminated human readable part to use
- * (chain/network specific).
- * ver: Version of the witness program (between 0 and 16 inclusive).
- * prog: Data bytes for the witness program (between 2 and 40 bytes).
- * prog_len: Number of data bytes in prog.
- * Returns 1 if successful.
- */
-int segwit_addr_encode(
- char *output,
- const char *hrp,
- int ver,
- const uint8_t *prog,
- size_t prog_len
-);
-
-/** Decode a SegWit address
- *
- * Out: ver: Pointer to an int that will be updated to contain the witness
- * program version (between 0 and 16 inclusive).
- * prog: Pointer to a buffer of size 40 that will be updated to
- * contain the witness program bytes.
- * prog_len: Pointer to a size_t that will be updated to contain the length
- * of bytes in prog.
- * hrp: Pointer to the null-terminated human readable part that is
- * expected (chain/network specific).
- * addr: Pointer to the null-terminated address.
- * Returns 1 if successful.
- */
-int segwit_addr_decode(
- int *ver,
- uint8_t *prog,
- size_t *prog_len,
- const char *hrp,
- const char *addr
-);
-
-/** Encode a Bech32 string
- *
- * Out: output: Pointer to a buffer of size strlen(hrp) + data_len + 8 that
- * will be updated to contain the null-terminated Bech32 string.
- * In: hrp : Pointer to the null-terminated human readable part.
- * data : Pointer to an array of 5-bit values.
- * data_len: Length of the data array.
- * Returns 1 if successful.
- */
-int bech32_encode(
- char *output,
- const char *hrp,
- const uint8_t *data,
- size_t data_len
-);
-
-/** Decode a Bech32 string
- *
- * Out: hrp: Pointer to a buffer of size strlen(input) - 6. Will be
- * updated to contain the null-terminated human readable part.
- * data: Pointer to a buffer of size strlen(input) - 8 that will
- * hold the encoded 5-bit data values.
- * data_len: Pointer to a size_t that will be updated to be the number
- * of entries in data.
- * In: input: Pointer to a null-terminated Bech32 string.
- * Returns 1 if successful.
- */
-int bech32_decode(
- char *hrp,
- uint8_t *data,
- size_t *data_len,
- const char *input
-);
-
-#endif
diff --git a/deps/ledger-zxlib/include/sigutils.h b/deps/ledger-zxlib/include/sigutils.h
deleted file mode 100644
index 862f809..0000000
--- a/deps/ledger-zxlib/include/sigutils.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum {
- no_error = 0,
- invalid_derPrefix,
- invalid_payloadLen,
- invalid_rmaker,
- invalid_rLen,
- invalid_smarker,
- invalid_sLen,
-} err_convert_e;
-
-err_convert_e convertDERtoRSV(const uint8_t *inSignatureDER,
- unsigned int inInfo,
- uint8_t *outR,
- uint8_t *outS,
- uint8_t *outV);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/timeutils.h b/deps/ledger-zxlib/include/timeutils.h
deleted file mode 100644
index d291477..0000000
--- a/deps/ledger-zxlib/include/timeutils.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include
-#include
-#include "zxmacros.h"
-#include "zxerror.h"
-
-__Z_INLINE const char *getMonth(uint8_t tm_mon) {
- switch (tm_mon) {
- case 1:
- return "Jan";
- case 2:
- return "Feb";
- case 3:
- return "Mar";
- case 4:
- return "Apr";
- case 5:
- return "May";
- case 6:
- return "Jun";
- case 7:
- return "Jul";
- case 8:
- return "Aug";
- case 9:
- return "Sep";
- case 10:
- return "Oct";
- case 11:
- return "Nov";
- case 12:
- return "Dec";
- default:
- return "ERR";
- }
-}
-
-zxerr_t printTime(char *out, uint16_t outLen, uint64_t t);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/utf8.h b/deps/ledger-zxlib/include/utf8.h
deleted file mode 100644
index fe2e8d9..0000000
--- a/deps/ledger-zxlib/include/utf8.h
+++ /dev/null
@@ -1,1682 +0,0 @@
-/* The latest version of this library is available on GitHub;
- * https://github.com/sheredom/utf8.h */
-
-/* This is free and unencumbered software released into the public domain.
- *
- * Anyone is free to copy, modify, publish, use, compile, sell, or
- * distribute this software, either in source code form or as a compiled
- * binary, for any purpose, commercial or non-commercial, and by any
- * means.
- *
- * In jurisdictions that recognize copyright laws, the author or authors
- * of this software dedicate any and all copyright interest in the
- * software to the public domain. We make this dedication for the benefit
- * of the public at large and to the detriment of our heirs and
- * successors. We intend this dedication to be an overt act of
- * relinquishment in perpetuity of all present and future rights to this
- * software under copyright law.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
- * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * For more information, please refer to */
-
-#ifndef SHEREDOM_UTF8_H_INCLUDED
-#define SHEREDOM_UTF8_H_INCLUDED
-
-#if defined(_MSC_VER)
-#pragma warning(push)
-
-/* disable warning: no function prototype given: converting '()' to '(void)' */
-#pragma warning(disable : 4255)
-
-/* disable warning: '__cplusplus' is not defined as a preprocessor macro,
- * replacing with '0' for '#if/#elif' */
-#pragma warning(disable : 4668)
-
-/* disable warning: bytes padding added after construct */
-#pragma warning(disable : 4820)
-#endif
-
-#include
-#include
-
-#if defined(_MSC_VER)
-#pragma warning(pop)
-#endif
-
-#if defined(_MSC_VER) && (_MSC_VER < 1920)
-typedef __int32 utf8_int32_t;
-#else
-#include
-typedef int32_t utf8_int32_t;
-#endif
-
-#if defined(__clang__)
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wold-style-cast"
-#pragma clang diagnostic ignored "-Wcast-qual"
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if defined(_MSC_VER)
-#define utf8_nonnull
-#define utf8_pure
-#define utf8_restrict __restrict
-#define utf8_weak __inline
-#elif defined(__clang__) || defined(__GNUC__)
-#define utf8_nonnull __attribute__((nonnull))
-#define utf8_pure __attribute__((pure))
-#define utf8_restrict __restrict__
-#define utf8_weak __attribute__((weak))
-#else
-#error Non clang, non gcc, non MSVC compiler found!
-#endif
-
-#ifdef __cplusplus
-#define utf8_null NULL
-#else
-#define utf8_null 0
-#endif
-
-#if (defined(__cplusplus) && __cplusplus >= 201402L)
-#define utf8_constexpr14 constexpr
-#define utf8_constexpr14_impl constexpr
-#else
-/* constexpr and weak are incompatible. so only enable one of them */
-#define utf8_constexpr14 utf8_weak
-#define utf8_constexpr14_impl
-#endif
-
-#if defined(__cplusplus) && __cplusplus >= 202002L
-using utf8_int8_t = char8_t; /* Introduced in C++20 */
-#else
-typedef char utf8_int8_t;
-#endif
-
-/* Return less than 0, 0, greater than 0 if src1 < src2, src1 == src2, src1 >
- * src2 respectively, case insensitive. */
-utf8_constexpr14 utf8_nonnull utf8_pure int
-utf8casecmp(const utf8_int8_t *src1, const utf8_int8_t *src2);
-
-/* Append the utf8 string src onto the utf8 string dst. */
-utf8_nonnull utf8_weak utf8_int8_t *
-utf8cat(utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src);
-
-/* Find the first match of the utf8 codepoint chr in the utf8 string src. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8chr(const utf8_int8_t *src, utf8_int32_t chr);
-
-/* Return less than 0, 0, greater than 0 if src1 < src2,
- * src1 == src2, src1 > src2 respectively. */
-utf8_constexpr14 utf8_nonnull utf8_pure int utf8cmp(const utf8_int8_t *src1,
- const utf8_int8_t *src2);
-
-/* Copy the utf8 string src onto the memory allocated in dst. */
-utf8_nonnull utf8_weak utf8_int8_t *
- utf8cpy(utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src);
-
-/* Number of utf8 codepoints in the utf8 string src that consists entirely
- * of utf8 codepoints not from the utf8 string reject. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t
-utf8cspn(const utf8_int8_t *src, const utf8_int8_t *reject);
-
-/* Duplicate the utf8 string src by getting its size, malloc'ing a new buffer
- * copying over the data, and returning that. Or 0 if malloc failed. */
-utf8_weak utf8_int8_t *utf8dup(const utf8_int8_t *src);
-
-/* Number of utf8 codepoints in the utf8 string str,
- * excluding the null terminating byte. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t utf8len(const utf8_int8_t *str);
-
-/* Similar to utf8len, except that only at most n bytes of src are looked. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t utf8nlen(const utf8_int8_t *str,
- size_t n);
-
-/* Return less than 0, 0, greater than 0 if src1 < src2, src1 == src2, src1 >
- * src2 respectively, case insensitive. Checking at most n bytes of each utf8
- * string. */
-utf8_constexpr14 utf8_nonnull utf8_pure int
-utf8ncasecmp(const utf8_int8_t *src1, const utf8_int8_t *src2, size_t n);
-
-/* Append the utf8 string src onto the utf8 string dst,
- * writing at most n+1 bytes. Can produce an invalid utf8
- * string if n falls partway through a utf8 codepoint. */
-utf8_nonnull utf8_weak utf8_int8_t *
- utf8ncat(utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src,
-size_t n);
-
-/* Return less than 0, 0, greater than 0 if src1 < src2,
- * src1 == src2, src1 > src2 respectively. Checking at most n
- * bytes of each utf8 string. */
-utf8_constexpr14 utf8_nonnull utf8_pure int
-utf8ncmp(const utf8_int8_t *src1, const utf8_int8_t *src2, size_t n);
-
-/* Copy the utf8 string src onto the memory allocated in dst.
- * Copies at most n bytes. If n falls partway through a utf8
- * codepoint, or if dst doesn't have enough room for a null
- * terminator, the final string will be cut short to preserve
- * utf8 validity. */
-
-utf8_nonnull utf8_weak utf8_int8_t *
- utf8ncpy(utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src,
-size_t n);
-
-/* Similar to utf8dup, except that at most n bytes of src are copied. If src is
- * longer than n, only n bytes are copied and a null byte is added.
- *
- * Returns a new string if successful, 0 otherwise */
-utf8_weak utf8_int8_t *utf8ndup(const utf8_int8_t *src, size_t n);
-
-/* Locates the first occurrence in the utf8 string str of any byte in the
- * utf8 string accept, or 0 if no match was found. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8pbrk(const utf8_int8_t *str, const utf8_int8_t *accept);
-
-/* Find the last match of the utf8 codepoint chr in the utf8 string src. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8rchr(const utf8_int8_t *src, int chr);
-
-/* Number of bytes in the utf8 string str,
- * including the null terminating byte. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t utf8size(const utf8_int8_t *str);
-
-/* Similar to utf8size, except that the null terminating byte is excluded. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t
-utf8size_lazy(const utf8_int8_t *str);
-
-/* Similar to utf8size, except that only at most n bytes of src are looked and
- * the null terminating byte is excluded. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t
-utf8nsize_lazy(const utf8_int8_t *str, size_t n);
-
-/* Number of utf8 codepoints in the utf8 string src that consists entirely
- * of utf8 codepoints from the utf8 string accept. */
-utf8_constexpr14 utf8_nonnull utf8_pure size_t
-utf8spn(const utf8_int8_t *src, const utf8_int8_t *accept);
-
-/* The position of the utf8 string needle in the utf8 string haystack. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8str(const utf8_int8_t *haystack, const utf8_int8_t *needle);
-
-/* The position of the utf8 string needle in the utf8 string haystack, case
- * insensitive. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8casestr(const utf8_int8_t *haystack, const utf8_int8_t *needle);
-
-/* Return 0 on success, or the position of the invalid
- * utf8 codepoint on failure. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8valid(const utf8_int8_t *str);
-
-/* Similar to utf8valid, except that only at most n bytes of src are looked. */
-utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t *
-utf8nvalid(const utf8_int8_t *str, size_t n);
-
-/* Given a null-terminated string, makes the string valid by replacing invalid
- * codepoints with a 1-byte replacement. Returns 0 on success. */
-utf8_nonnull utf8_weak int utf8makevalid(utf8_int8_t *str,
-const utf8_int32_t replacement);
-
-/* Sets out_codepoint to the current utf8 codepoint in str, and returns the
- * address of the next utf8 codepoint after the current one in str. */
-utf8_constexpr14 utf8_nonnull utf8_int8_t *
-utf8codepoint(const utf8_int8_t *utf8_restrict str,
- utf8_int32_t *utf8_restrict out_codepoint);
-
-/* Calculates the size of the next utf8 codepoint in str. */
-utf8_constexpr14 utf8_nonnull size_t
-utf8codepointcalcsize(const utf8_int8_t *str);
-
-/* Returns the size of the given codepoint in bytes. */
-utf8_constexpr14 size_t utf8codepointsize(utf8_int32_t chr);
-
-/* Write a codepoint to the given string, and return the address to the next
- * place after the written codepoint. Pass how many bytes left in the buffer to
- * n. If there is not enough space for the codepoint, this function returns
- * null. */
-utf8_nonnull utf8_weak utf8_int8_t *
- utf8catcodepoint(utf8_int8_t *str, utf8_int32_t chr, size_t n);
-
-/* Returns 1 if the given character is lowercase, or 0 if it is not. */
-utf8_constexpr14 int utf8islower(utf8_int32_t chr);
-
-/* Returns 1 if the given character is uppercase, or 0 if it is not. */
-utf8_constexpr14 int utf8isupper(utf8_int32_t chr);
-
-/* Transform the given string into all lowercase codepoints. */
-utf8_nonnull utf8_weak void utf8lwr(utf8_int8_t *utf8_restrict str);
-
-/* Transform the given string into all uppercase codepoints. */
-utf8_nonnull utf8_weak void utf8upr(utf8_int8_t *utf8_restrict str);
-
-/* Make a codepoint lower case if possible. */
-utf8_constexpr14 utf8_int32_t utf8lwrcodepoint(utf8_int32_t cp);
-
-/* Make a codepoint upper case if possible. */
-utf8_constexpr14 utf8_int32_t utf8uprcodepoint(utf8_int32_t cp);
-
-/* Sets out_codepoint to the current utf8 codepoint in str, and returns the
- * address of the previous utf8 codepoint before the current one in str. */
-utf8_constexpr14 utf8_nonnull utf8_int8_t *
-utf8rcodepoint(const utf8_int8_t *utf8_restrict str,
- utf8_int32_t *utf8_restrict out_codepoint);
-
-/* Duplicate the utf8 string src by getting its size, calling alloc_func_ptr to
- * copy over data to a new buffer, and returning that. Or 0 if alloc_func_ptr
- * returned null. */
-utf8_weak utf8_int8_t *utf8dup_ex(const utf8_int8_t *src,
- utf8_int8_t *(*alloc_func_ptr)(utf8_int8_t *,
- size_t),
- utf8_int8_t *user_data);
-
-/* Similar to utf8dup, except that at most n bytes of src are copied. If src is
- * longer than n, only n bytes are copied and a null byte is added.
- *
- * Returns a new string if successful, 0 otherwise. */
-utf8_weak utf8_int8_t *utf8ndup_ex(const utf8_int8_t *src, size_t n,
- utf8_int8_t *(*alloc_func_ptr)(utf8_int8_t *,
- size_t),
- utf8_int8_t *user_data);
-
-#undef utf8_weak
-#undef utf8_pure
-#undef utf8_nonnull
-
-utf8_constexpr14_impl int utf8casecmp(const utf8_int8_t *src1,
- const utf8_int8_t *src2) {
- utf8_int32_t src1_lwr_cp = 0, src2_lwr_cp = 0, src1_upr_cp = 0,
- src2_upr_cp = 0, src1_orig_cp = 0, src2_orig_cp = 0;
-
- for (;;) {
- src1 = utf8codepoint(src1, &src1_orig_cp);
- src2 = utf8codepoint(src2, &src2_orig_cp);
-
- /* lower the srcs if required */
- src1_lwr_cp = utf8lwrcodepoint(src1_orig_cp);
- src2_lwr_cp = utf8lwrcodepoint(src2_orig_cp);
-
- /* lower the srcs if required */
- src1_upr_cp = utf8uprcodepoint(src1_orig_cp);
- src2_upr_cp = utf8uprcodepoint(src2_orig_cp);
-
- /* check if the lowered codepoints match */
- if ((0 == src1_orig_cp) && (0 == src2_orig_cp)) {
- return 0;
- } else if ((src1_lwr_cp == src2_lwr_cp) || (src1_upr_cp == src2_upr_cp)) {
- continue;
- }
-
- /* if they don't match, then we return the difference between the characters
- */
- return src1_lwr_cp - src2_lwr_cp;
- }
-}
-
-utf8_int8_t *utf8cat(utf8_int8_t *utf8_restrict dst,
-const utf8_int8_t *utf8_restrict src) {
-utf8_int8_t *d = dst;
-/* find the null terminating byte in dst */
-while ('\0' != *d) {
-d++;
-}
-
-/* overwriting the null terminating byte in dst, append src byte-by-byte */
-while ('\0' != *src) {
-*d++ = *src++;
-}
-
-/* write out a new null terminating byte into dst */
-*d = '\0';
-
-return dst;
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8chr(const utf8_int8_t *src,
- utf8_int32_t chr) {
- utf8_int8_t c[5] = {'\0', '\0', '\0', '\0', '\0'};
-
- if (0 == chr) {
- /* being asked to return position of null terminating byte, so
- * just run s to the end, and return! */
- while ('\0' != *src) {
- src++;
- }
- return (utf8_int8_t *)src;
- } else if (0 == ((utf8_int32_t)0xffffff80 & chr)) {
- /* 1-byte/7-bit ascii
- * (0b0xxxxxxx) */
- c[0] = (utf8_int8_t)chr;
- } else if (0 == ((utf8_int32_t)0xfffff800 & chr)) {
- /* 2-byte/11-bit utf8 code point
- * (0b110xxxxx 0b10xxxxxx) */
- c[0] = (utf8_int8_t)(0xc0 | (utf8_int8_t)(chr >> 6));
- c[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
- } else if (0 == ((utf8_int32_t)0xffff0000 & chr)) {
- /* 3-byte/16-bit utf8 code point
- * (0b1110xxxx 0b10xxxxxx 0b10xxxxxx) */
- c[0] = (utf8_int8_t)(0xe0 | (utf8_int8_t)(chr >> 12));
- c[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 6) & 0x3f));
- c[2] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
- } else { /* if (0 == ((int)0xffe00000 & chr)) { */
- /* 4-byte/21-bit utf8 code point
- * (0b11110xxx 0b10xxxxxx 0b10xxxxxx 0b10xxxxxx) */
- c[0] = (utf8_int8_t)(0xf0 | (utf8_int8_t)(chr >> 18));
- c[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 12) & 0x3f));
- c[2] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 6) & 0x3f));
- c[3] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
- }
-
- /* we've made c into a 2 utf8 codepoint string, one for the chr we are
- * seeking, another for the null terminating byte. Now use utf8str to
- * search */
- return utf8str(src, c);
-}
-
-utf8_constexpr14_impl int utf8cmp(const utf8_int8_t *src1,
- const utf8_int8_t *src2) {
- while (('\0' != *src1) || ('\0' != *src2)) {
- if (*src1 < *src2) {
- return -1;
- } else if (*src1 > *src2) {
- return 1;
- }
-
- src1++;
- src2++;
- }
-
- /* both utf8 strings matched */
- return 0;
-}
-
-utf8_constexpr14_impl int utf8coll(const utf8_int8_t *src1,
- const utf8_int8_t *src2);
-
-utf8_int8_t *utf8cpy(utf8_int8_t *utf8_restrict dst,
-const utf8_int8_t *utf8_restrict src) {
-utf8_int8_t *d = dst;
-
-/* overwriting anything previously in dst, write byte-by-byte
- * from src */
-while ('\0' != *src) {
-*d++ = *src++;
-}
-
-/* append null terminating byte */
-*d = '\0';
-
-return dst;
-}
-
-utf8_constexpr14_impl size_t utf8cspn(const utf8_int8_t *src,
- const utf8_int8_t *reject) {
- size_t chars = 0;
-
- while ('\0' != *src) {
- const utf8_int8_t *r = reject;
- size_t offset = 0;
-
- while ('\0' != *r) {
- /* checking that if *r is the start of a utf8 codepoint
- * (it is not 0b10xxxxxx) and we have successfully matched
- * a previous character (0 < offset) - we found a match */
- if ((0x80 != (0xc0 & *r)) && (0 < offset)) {
- return chars;
- } else {
- if (*r == src[offset]) {
- /* part of a utf8 codepoint matched, so move our checking
- * onwards to the next byte */
- offset++;
- r++;
- } else {
- /* r could be in the middle of an unmatching utf8 code point,
- * so we need to march it on to the next character beginning, */
-
- do {
- r++;
- } while (0x80 == (0xc0 & *r));
-
- /* reset offset too as we found a mismatch */
- offset = 0;
- }
- }
- }
-
- /* found a match at the end of *r, so didn't get a chance to test it */
- if (0 < offset) {
- return chars;
- }
-
- /* the current utf8 codepoint in src did not match reject, but src
- * could have been partway through a utf8 codepoint, so we need to
- * march it onto the next utf8 codepoint starting byte */
- do {
- src++;
- } while ((0x80 == (0xc0 & *src)));
- chars++;
- }
-
- return chars;
-}
-
-utf8_int8_t *utf8dup(const utf8_int8_t *src) {
- return utf8dup_ex(src, utf8_null, utf8_null);
-}
-
-utf8_int8_t *utf8dup_ex(const utf8_int8_t *src,
- utf8_int8_t *(*alloc_func_ptr)(utf8_int8_t *, size_t),
- utf8_int8_t *user_data) {
-utf8_int8_t *n = utf8_null;
-
-/* figure out how many bytes (including the terminator) we need to copy first
- */
-size_t bytes = utf8size(src);
-
-if (alloc_func_ptr) {
-n = alloc_func_ptr(user_data, bytes);
-} else {
-n = (utf8_int8_t *)malloc(bytes);
-}
-
-if (utf8_null == n) {
-/* out of memory so we bail */
-return utf8_null;
-} else {
-bytes = 0;
-
-/* copy src byte-by-byte into our new utf8 string */
-while ('\0' != src[bytes]) {
-n[bytes] = src[bytes];
-bytes++;
-}
-
-/* append null terminating byte */
-n[bytes] = '\0';
-return n;
-}
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8fry(const utf8_int8_t *str);
-
-utf8_constexpr14_impl size_t utf8len(const utf8_int8_t *str) {
- return utf8nlen(str, SIZE_MAX);
-}
-
-utf8_constexpr14_impl size_t utf8nlen(const utf8_int8_t *str, size_t n) {
- const utf8_int8_t *t = str;
- size_t length = 0;
-
- while ((size_t)(str - t) < n && '\0' != *str) {
- if (0xf0 == (0xf8 & *str)) {
- /* 4-byte utf8 code point (began with 0b11110xxx) */
- str += 4;
- } else if (0xe0 == (0xf0 & *str)) {
- /* 3-byte utf8 code point (began with 0b1110xxxx) */
- str += 3;
- } else if (0xc0 == (0xe0 & *str)) {
- /* 2-byte utf8 code point (began with 0b110xxxxx) */
- str += 2;
- } else { /* if (0x00 == (0x80 & *s)) { */
- /* 1-byte ascii (began with 0b0xxxxxxx) */
- str += 1;
- }
-
- /* no matter the bytes we marched s forward by, it was
- * only 1 utf8 codepoint */
- length++;
- }
-
- if ((size_t)(str - t) > n) {
- length--;
- }
- return length;
-}
-
-utf8_constexpr14_impl int utf8ncasecmp(const utf8_int8_t *src1,
- const utf8_int8_t *src2, size_t n) {
- utf8_int32_t src1_lwr_cp = 0, src2_lwr_cp = 0, src1_upr_cp = 0,
- src2_upr_cp = 0, src1_orig_cp = 0, src2_orig_cp = 0;
-
- do {
- const utf8_int8_t *const s1 = src1;
- const utf8_int8_t *const s2 = src2;
-
- /* first check that we have enough bytes left in n to contain an entire
- * codepoint */
- if (0 == n) {
- return 0;
- }
-
- if ((1 == n) && ((0xc0 == (0xe0 & *s1)) || (0xc0 == (0xe0 & *s2)))) {
- const utf8_int32_t c1 = (0xe0 & *s1);
- const utf8_int32_t c2 = (0xe0 & *s2);
-
- if (c1 < c2) {
- return c1 - c2;
- } else {
- return 0;
- }
- }
-
- if ((2 >= n) && ((0xe0 == (0xf0 & *s1)) || (0xe0 == (0xf0 & *s2)))) {
- const utf8_int32_t c1 = (0xf0 & *s1);
- const utf8_int32_t c2 = (0xf0 & *s2);
-
- if (c1 < c2) {
- return c1 - c2;
- } else {
- return 0;
- }
- }
-
- if ((3 >= n) && ((0xf0 == (0xf8 & *s1)) || (0xf0 == (0xf8 & *s2)))) {
- const utf8_int32_t c1 = (0xf8 & *s1);
- const utf8_int32_t c2 = (0xf8 & *s2);
-
- if (c1 < c2) {
- return c1 - c2;
- } else {
- return 0;
- }
- }
-
- src1 = utf8codepoint(src1, &src1_orig_cp);
- src2 = utf8codepoint(src2, &src2_orig_cp);
- n -= utf8codepointsize(src1_orig_cp);
-
- src1_lwr_cp = utf8lwrcodepoint(src1_orig_cp);
- src2_lwr_cp = utf8lwrcodepoint(src2_orig_cp);
-
- src1_upr_cp = utf8uprcodepoint(src1_orig_cp);
- src2_upr_cp = utf8uprcodepoint(src2_orig_cp);
-
- /* check if the lowered codepoints match */
- if ((0 == src1_orig_cp) && (0 == src2_orig_cp)) {
- return 0;
- } else if ((src1_lwr_cp == src2_lwr_cp) || (src1_upr_cp == src2_upr_cp)) {
- continue;
- }
-
- /* if they don't match, then we return the difference between the characters
- */
- return src1_lwr_cp - src2_lwr_cp;
- } while (0 < n);
-
- /* both utf8 strings matched */
- return 0;
-}
-
-utf8_int8_t *utf8ncat(utf8_int8_t *utf8_restrict dst,
-const utf8_int8_t *utf8_restrict src, size_t n) {
-utf8_int8_t *d = dst;
-
-/* find the null terminating byte in dst */
-while ('\0' != *d) {
-d++;
-}
-
-/* overwriting the null terminating byte in dst, append src byte-by-byte
- * stopping if we run out of space */
-do {
-*d++ = *src++;
-} while (('\0' != *src) && (0 != --n));
-
-/* write out a new null terminating byte into dst */
-*d = '\0';
-
-return dst;
-}
-
-utf8_constexpr14_impl int utf8ncmp(const utf8_int8_t *src1,
- const utf8_int8_t *src2, size_t n) {
- while ((0 != n--) && (('\0' != *src1) || ('\0' != *src2))) {
- if (*src1 < *src2) {
- return -1;
- } else if (*src1 > *src2) {
- return 1;
- }
-
- src1++;
- src2++;
- }
-
- /* both utf8 strings matched */
- return 0;
-}
-
-utf8_int8_t *utf8ncpy(utf8_int8_t *utf8_restrict dst,
-const utf8_int8_t *utf8_restrict src, size_t n) {
-utf8_int8_t *d = dst;
-size_t index = 0, check_index = 0;
-
-if (n == 0) {
-return dst;
-}
-
-/* overwriting anything previously in dst, write byte-by-byte
- * from src */
-for (index = 0; index < n; index++) {
-d[index] = src[index];
-if ('\0' == src[index]) {
-break;
-}
-}
-
-for (check_index = index - 1;
-check_index > 0 && 0x80 == (0xc0 & d[check_index]); check_index--) {
-/* just moving the index */
-}
-
-if (check_index < index &&
-(index - check_index) < utf8codepointsize(d[check_index])) {
-index = check_index;
-}
-
-/* append null terminating byte */
-for (; index < n; index++) {
-d[index] = 0;
-}
-
-return dst;
-}
-
-utf8_int8_t *utf8ndup(const utf8_int8_t *src, size_t n) {
- return utf8ndup_ex(src, n, utf8_null, utf8_null);
-}
-
-utf8_int8_t *utf8ndup_ex(const utf8_int8_t *src, size_t n,
- utf8_int8_t *(*alloc_func_ptr)(utf8_int8_t *, size_t),
- utf8_int8_t *user_data) {
-utf8_int8_t *c = utf8_null;
-size_t bytes = 0;
-
-/* Find the end of the string or stop when n is reached */
-while ('\0' != src[bytes] && bytes < n) {
-bytes++;
-}
-
-/* In case bytes is actually less than n, we need to set it
- * to be used later in the copy byte by byte. */
-n = bytes;
-
-if (alloc_func_ptr) {
-c = alloc_func_ptr(user_data, bytes + 1);
-} else {
-c = (utf8_int8_t *)malloc(bytes + 1);
-}
-
-if (utf8_null == c) {
-/* out of memory so we bail */
-return utf8_null;
-}
-
-bytes = 0;
-
-/* copy src byte-by-byte into our new utf8 string */
-while ('\0' != src[bytes] && bytes < n) {
-c[bytes] = src[bytes];
-bytes++;
-}
-
-/* append null terminating byte */
-c[bytes] = '\0';
-return c;
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8rchr(const utf8_int8_t *src, int chr) {
-
- utf8_int8_t *match = utf8_null;
- utf8_int8_t c[5] = {'\0', '\0', '\0', '\0', '\0'};
-
- if (0 == chr) {
- /* being asked to return position of null terminating byte, so
- * just run s to the end, and return! */
- while ('\0' != *src) {
- src++;
- }
- return (utf8_int8_t *)src;
- } else if (0 == ((int)0xffffff80 & chr)) {
- /* 1-byte/7-bit ascii
- * (0b0xxxxxxx) */
- c[0] = (utf8_int8_t)chr;
- } else if (0 == ((int)0xfffff800 & chr)) {
- /* 2-byte/11-bit utf8 code point
- * (0b110xxxxx 0b10xxxxxx) */
- c[0] = (utf8_int8_t)(0xc0 | (utf8_int8_t)(chr >> 6));
- c[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
- } else if (0 == ((int)0xffff0000 & chr)) {
- /* 3-byte/16-bit utf8 code point
- * (0b1110xxxx 0b10xxxxxx 0b10xxxxxx) */
- c[0] = (utf8_int8_t)(0xe0 | (utf8_int8_t)(chr >> 12));
- c[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 6) & 0x3f));
- c[2] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
- } else { /* if (0 == ((int)0xffe00000 & chr)) { */
- /* 4-byte/21-bit utf8 code point
- * (0b11110xxx 0b10xxxxxx 0b10xxxxxx 0b10xxxxxx) */
- c[0] = (utf8_int8_t)(0xf0 | (utf8_int8_t)(chr >> 18));
- c[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 12) & 0x3f));
- c[2] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 6) & 0x3f));
- c[3] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
- }
-
- /* we've created a 2 utf8 codepoint string in c that is
- * the utf8 character asked for by chr, and a null
- * terminating byte */
-
- while ('\0' != *src) {
- size_t offset = 0;
-
- while (src[offset] == c[offset]) {
- offset++;
- }
-
- if ('\0' == c[offset]) {
- /* we found a matching utf8 code point */
- match = (utf8_int8_t *)src;
- src += offset;
- } else {
- src += offset;
-
- /* need to march s along to next utf8 codepoint start
- * (the next byte that doesn't match 0b10xxxxxx) */
- if ('\0' != *src) {
- do {
- src++;
- } while (0x80 == (0xc0 & *src));
- }
- }
- }
-
- /* return the last match we found (or 0 if no match was found) */
- return match;
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8pbrk(const utf8_int8_t *str,
- const utf8_int8_t *accept) {
- while ('\0' != *str) {
- const utf8_int8_t *a = accept;
- size_t offset = 0;
-
- while ('\0' != *a) {
- /* checking that if *a is the start of a utf8 codepoint
- * (it is not 0b10xxxxxx) and we have successfully matched
- * a previous character (0 < offset) - we found a match */
- if ((0x80 != (0xc0 & *a)) && (0 < offset)) {
- return (utf8_int8_t *)str;
- } else {
- if (*a == str[offset]) {
- /* part of a utf8 codepoint matched, so move our checking
- * onwards to the next byte */
- offset++;
- a++;
- } else {
- /* r could be in the middle of an unmatching utf8 code point,
- * so we need to march it on to the next character beginning, */
-
- do {
- a++;
- } while (0x80 == (0xc0 & *a));
-
- /* reset offset too as we found a mismatch */
- offset = 0;
- }
- }
- }
-
- /* we found a match on the last utf8 codepoint */
- if (0 < offset) {
- return (utf8_int8_t *)str;
- }
-
- /* the current utf8 codepoint in src did not match accept, but src
- * could have been partway through a utf8 codepoint, so we need to
- * march it onto the next utf8 codepoint starting byte */
- do {
- str++;
- } while ((0x80 == (0xc0 & *str)));
- }
-
- return utf8_null;
-}
-
-utf8_constexpr14_impl size_t utf8size(const utf8_int8_t *str) {
- return utf8size_lazy(str) + 1;
-}
-
-utf8_constexpr14_impl size_t utf8size_lazy(const utf8_int8_t *str) {
- return utf8nsize_lazy(str, SIZE_MAX);
-}
-
-utf8_constexpr14_impl size_t utf8nsize_lazy(const utf8_int8_t *str, size_t n) {
- size_t size = 0;
- while (size < n && '\0' != str[size]) {
- size++;
- }
- return size;
-}
-
-utf8_constexpr14_impl size_t utf8spn(const utf8_int8_t *src,
- const utf8_int8_t *accept) {
- size_t chars = 0;
-
- while ('\0' != *src) {
- const utf8_int8_t *a = accept;
- size_t offset = 0;
-
- while ('\0' != *a) {
- /* checking that if *r is the start of a utf8 codepoint
- * (it is not 0b10xxxxxx) and we have successfully matched
- * a previous character (0 < offset) - we found a match */
- if ((0x80 != (0xc0 & *a)) && (0 < offset)) {
- /* found a match, so increment the number of utf8 codepoints
- * that have matched and stop checking whether any other utf8
- * codepoints in a match */
- chars++;
- src += offset;
- offset = 0;
- break;
- } else {
- if (*a == src[offset]) {
- offset++;
- a++;
- } else {
- /* a could be in the middle of an unmatching utf8 codepoint,
- * so we need to march it on to the next character beginning, */
- do {
- a++;
- } while (0x80 == (0xc0 & *a));
-
- /* reset offset too as we found a mismatch */
- offset = 0;
- }
- }
- }
-
- /* found a match at the end of *a, so didn't get a chance to test it */
- if (0 < offset) {
- chars++;
- src += offset;
- continue;
- }
-
- /* if a got to its terminating null byte, then we didn't find a match.
- * Return the current number of matched utf8 codepoints */
- if ('\0' == *a) {
- return chars;
- }
- }
-
- return chars;
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8str(const utf8_int8_t *haystack,
- const utf8_int8_t *needle) {
- utf8_int32_t throwaway_codepoint = 0;
-
- /* if needle has no utf8 codepoints before the null terminating
- * byte then return haystack */
- if ('\0' == *needle) {
- return (utf8_int8_t *)haystack;
- }
-
- while ('\0' != *haystack) {
- const utf8_int8_t *maybeMatch = haystack;
- const utf8_int8_t *n = needle;
-
- while (*haystack == *n && (*haystack != '\0' && *n != '\0')) {
- n++;
- haystack++;
- }
-
- if ('\0' == *n) {
- /* we found the whole utf8 string for needle in haystack at
- * maybeMatch, so return it */
- return (utf8_int8_t *)maybeMatch;
- } else {
- /* h could be in the middle of an unmatching utf8 codepoint,
- * so we need to march it on to the next character beginning
- * starting from the current character */
- haystack = utf8codepoint(maybeMatch, &throwaway_codepoint);
- }
- }
-
- /* no match */
- return utf8_null;
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8casestr(const utf8_int8_t *haystack,
- const utf8_int8_t *needle) {
- /* if needle has no utf8 codepoints before the null terminating
- * byte then return haystack */
- if ('\0' == *needle) {
- return (utf8_int8_t *)haystack;
- }
-
- for (;;) {
- const utf8_int8_t *maybeMatch = haystack;
- const utf8_int8_t *n = needle;
- utf8_int32_t h_cp = 0, n_cp = 0;
-
- /* Get the next code point and track it */
- const utf8_int8_t *nextH = haystack = utf8codepoint(haystack, &h_cp);
- n = utf8codepoint(n, &n_cp);
-
- while ((0 != h_cp) && (0 != n_cp)) {
- h_cp = utf8lwrcodepoint(h_cp);
- n_cp = utf8lwrcodepoint(n_cp);
-
- /* if we find a mismatch, bail out! */
- if (h_cp != n_cp) {
- break;
- }
-
- haystack = utf8codepoint(haystack, &h_cp);
- n = utf8codepoint(n, &n_cp);
- }
-
- if (0 == n_cp) {
- /* we found the whole utf8 string for needle in haystack at
- * maybeMatch, so return it */
- return (utf8_int8_t *)maybeMatch;
- }
-
- if (0 == h_cp) {
- /* no match */
- return utf8_null;
- }
-
- /* Roll back to the next code point in the haystack to test */
- haystack = nextH;
- }
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8valid(const utf8_int8_t *str) {
- return utf8nvalid(str, SIZE_MAX);
-}
-
-utf8_constexpr14_impl utf8_int8_t *utf8nvalid(const utf8_int8_t *str,
- size_t n) {
- const utf8_int8_t *t = str;
- size_t consumed = 0, remained = 0;
-
- while ((void)(consumed = (size_t)(str - t)), consumed < n && '\0' != *str) {
- remained = n - consumed;
-
- if (0xf0 == (0xf8 & *str)) {
- /* ensure that there's 4 bytes or more remained */
- if (remained < 4) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure each of the 3 following bytes in this 4-byte
- * utf8 codepoint began with 0b10xxxxxx */
- if ((0x80 != (0xc0 & str[1])) || (0x80 != (0xc0 & str[2])) ||
- (0x80 != (0xc0 & str[3]))) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure that our utf8 codepoint ended after 4 bytes */
- if (0x80 == (0xc0 & str[4])) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure that the top 5 bits of this 4-byte utf8
- * codepoint were not 0, as then we could have used
- * one of the smaller encodings */
- if ((0 == (0x07 & str[0])) && (0 == (0x30 & str[1]))) {
- return (utf8_int8_t *)str;
- }
-
- /* 4-byte utf8 code point (began with 0b11110xxx) */
- str += 4;
- } else if (0xe0 == (0xf0 & *str)) {
- /* ensure that there's 3 bytes or more remained */
- if (remained < 3) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure each of the 2 following bytes in this 3-byte
- * utf8 codepoint began with 0b10xxxxxx */
- if ((0x80 != (0xc0 & str[1])) || (0x80 != (0xc0 & str[2]))) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure that our utf8 codepoint ended after 3 bytes */
- if (0x80 == (0xc0 & str[3])) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure that the top 5 bits of this 3-byte utf8
- * codepoint were not 0, as then we could have used
- * one of the smaller encodings */
- if ((0 == (0x0f & str[0])) && (0 == (0x20 & str[1]))) {
- return (utf8_int8_t *)str;
- }
-
- /* 3-byte utf8 code point (began with 0b1110xxxx) */
- str += 3;
- } else if (0xc0 == (0xe0 & *str)) {
- /* ensure that there's 2 bytes or more remained */
- if (remained < 2) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure the 1 following byte in this 2-byte
- * utf8 codepoint began with 0b10xxxxxx */
- if (0x80 != (0xc0 & str[1])) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure that our utf8 codepoint ended after 2 bytes */
- if (0x80 == (0xc0 & str[2])) {
- return (utf8_int8_t *)str;
- }
-
- /* ensure that the top 4 bits of this 2-byte utf8
- * codepoint were not 0, as then we could have used
- * one of the smaller encodings */
- if (0 == (0x1e & str[0])) {
- return (utf8_int8_t *)str;
- }
-
- /* 2-byte utf8 code point (began with 0b110xxxxx) */
- str += 2;
- } else if (0x00 == (0x80 & *str)) {
- /* 1-byte ascii (began with 0b0xxxxxxx) */
- str += 1;
- } else {
- /* we have an invalid 0b1xxxxxxx utf8 code point entry */
- return (utf8_int8_t *)str;
- }
- }
-
- return utf8_null;
-}
-
-int utf8makevalid(utf8_int8_t *str, const utf8_int32_t replacement) {
-utf8_int8_t *read = str;
-utf8_int8_t *write = read;
-const utf8_int8_t r = (utf8_int8_t)replacement;
-utf8_int32_t codepoint = 0;
-
-if (replacement > 0x7f) {
-return -1;
-}
-
-while ('\0' != *read) {
-if (0xf0 == (0xf8 & *read)) {
-/* ensure each of the 3 following bytes in this 4-byte
- * utf8 codepoint began with 0b10xxxxxx */
-if ((0x80 != (0xc0 & read[1])) || (0x80 != (0xc0 & read[2])) ||
-(0x80 != (0xc0 & read[3]))) {
-*write++ = r;
-read++;
-continue;
-}
-
-/* 4-byte utf8 code point (began with 0b11110xxx) */
-read = utf8codepoint(read, &codepoint);
-write = utf8catcodepoint(write, codepoint, 4);
-} else if (0xe0 == (0xf0 & *read)) {
-/* ensure each of the 2 following bytes in this 3-byte
- * utf8 codepoint began with 0b10xxxxxx */
-if ((0x80 != (0xc0 & read[1])) || (0x80 != (0xc0 & read[2]))) {
-*write++ = r;
-read++;
-continue;
-}
-
-/* 3-byte utf8 code point (began with 0b1110xxxx) */
-read = utf8codepoint(read, &codepoint);
-write = utf8catcodepoint(write, codepoint, 3);
-} else if (0xc0 == (0xe0 & *read)) {
-/* ensure the 1 following byte in this 2-byte
- * utf8 codepoint began with 0b10xxxxxx */
-if (0x80 != (0xc0 & read[1])) {
-*write++ = r;
-read++;
-continue;
-}
-
-/* 2-byte utf8 code point (began with 0b110xxxxx) */
-read = utf8codepoint(read, &codepoint);
-write = utf8catcodepoint(write, codepoint, 2);
-} else if (0x00 == (0x80 & *read)) {
-/* 1-byte ascii (began with 0b0xxxxxxx) */
-read = utf8codepoint(read, &codepoint);
-write = utf8catcodepoint(write, codepoint, 1);
-} else {
-/* if we got here then we've got a dangling continuation (0b10xxxxxx) */
-*write++ = r;
-read++;
-continue;
-}
-}
-
-*write = '\0';
-
-return 0;
-}
-
-utf8_constexpr14_impl utf8_int8_t *
-utf8codepoint(const utf8_int8_t *utf8_restrict str,
- utf8_int32_t *utf8_restrict out_codepoint) {
- if (0xf0 == (0xf8 & str[0])) {
- /* 4 byte utf8 codepoint */
- *out_codepoint = ((0x07 & str[0]) << 18) | ((0x3f & str[1]) << 12) |
- ((0x3f & str[2]) << 6) | (0x3f & str[3]);
- str += 4;
- } else if (0xe0 == (0xf0 & str[0])) {
- /* 3 byte utf8 codepoint */
- *out_codepoint =
- ((0x0f & str[0]) << 12) | ((0x3f & str[1]) << 6) | (0x3f & str[2]);
- str += 3;
- } else if (0xc0 == (0xe0 & str[0])) {
- /* 2 byte utf8 codepoint */
- *out_codepoint = ((0x1f & str[0]) << 6) | (0x3f & str[1]);
- str += 2;
- } else {
- /* 1 byte utf8 codepoint otherwise */
- *out_codepoint = str[0];
- str += 1;
- }
-
- return (utf8_int8_t *)str;
-}
-
-utf8_constexpr14_impl size_t utf8codepointcalcsize(const utf8_int8_t *str) {
- if (0xf0 == (0xf8 & str[0])) {
- /* 4 byte utf8 codepoint */
- return 4;
- } else if (0xe0 == (0xf0 & str[0])) {
- /* 3 byte utf8 codepoint */
- return 3;
- } else if (0xc0 == (0xe0 & str[0])) {
- /* 2 byte utf8 codepoint */
- return 2;
- }
-
- /* 1 byte utf8 codepoint otherwise */
- return 1;
-}
-
-utf8_constexpr14_impl size_t utf8codepointsize(utf8_int32_t chr) {
- if (0 == ((utf8_int32_t)0xffffff80 & chr)) {
- return 1;
- } else if (0 == ((utf8_int32_t)0xfffff800 & chr)) {
- return 2;
- } else if (0 == ((utf8_int32_t)0xffff0000 & chr)) {
- return 3;
- } else { /* if (0 == ((int)0xffe00000 & chr)) { */
- return 4;
- }
-}
-
-utf8_int8_t *utf8catcodepoint(utf8_int8_t *str, utf8_int32_t chr, size_t n) {
-if (0 == ((utf8_int32_t)0xffffff80 & chr)) {
-/* 1-byte/7-bit ascii
- * (0b0xxxxxxx) */
-if (n < 1) {
-return utf8_null;
-}
-str[0] = (utf8_int8_t)chr;
-str += 1;
-} else if (0 == ((utf8_int32_t)0xfffff800 & chr)) {
-/* 2-byte/11-bit utf8 code point
- * (0b110xxxxx 0b10xxxxxx) */
-if (n < 2) {
-return utf8_null;
-}
-str[0] = (utf8_int8_t)(0xc0 | (utf8_int8_t)((chr >> 6) & 0x1f));
-str[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
-str += 2;
-} else if (0 == ((utf8_int32_t)0xffff0000 & chr)) {
-/* 3-byte/16-bit utf8 code point
- * (0b1110xxxx 0b10xxxxxx 0b10xxxxxx) */
-if (n < 3) {
-return utf8_null;
-}
-str[0] = (utf8_int8_t)(0xe0 | (utf8_int8_t)((chr >> 12) & 0x0f));
-str[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 6) & 0x3f));
-str[2] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
-str += 3;
-} else { /* if (0 == ((int)0xffe00000 & chr)) { */
-/* 4-byte/21-bit utf8 code point
- * (0b11110xxx 0b10xxxxxx 0b10xxxxxx 0b10xxxxxx) */
-if (n < 4) {
-return utf8_null;
-}
-str[0] = (utf8_int8_t)(0xf0 | (utf8_int8_t)((chr >> 18) & 0x07));
-str[1] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 12) & 0x3f));
-str[2] = (utf8_int8_t)(0x80 | (utf8_int8_t)((chr >> 6) & 0x3f));
-str[3] = (utf8_int8_t)(0x80 | (utf8_int8_t)(chr & 0x3f));
-str += 4;
-}
-
-return str;
-}
-
-utf8_constexpr14_impl int utf8islower(utf8_int32_t chr) {
- return chr != utf8uprcodepoint(chr);
-}
-
-utf8_constexpr14_impl int utf8isupper(utf8_int32_t chr) {
- return chr != utf8lwrcodepoint(chr);
-}
-
-void utf8lwr(utf8_int8_t *utf8_restrict str) {
-utf8_int32_t cp = 0;
-utf8_int8_t *pn = utf8codepoint(str, &cp);
-
-while (cp != 0) {
-const utf8_int32_t lwr_cp = utf8lwrcodepoint(cp);
-const size_t size = utf8codepointsize(lwr_cp);
-
-if (lwr_cp != cp) {
-utf8catcodepoint(str, lwr_cp, size);
-}
-
-str = pn;
-pn = utf8codepoint(str, &cp);
-}
-}
-
-void utf8upr(utf8_int8_t *utf8_restrict str) {
-utf8_int32_t cp = 0;
-utf8_int8_t *pn = utf8codepoint(str, &cp);
-
-while (cp != 0) {
-const utf8_int32_t lwr_cp = utf8uprcodepoint(cp);
-const size_t size = utf8codepointsize(lwr_cp);
-
-if (lwr_cp != cp) {
-utf8catcodepoint(str, lwr_cp, size);
-}
-
-str = pn;
-pn = utf8codepoint(str, &cp);
-}
-}
-
-utf8_constexpr14_impl utf8_int32_t utf8lwrcodepoint(utf8_int32_t cp) {
- if (((0x0041 <= cp) && (0x005a >= cp)) ||
- ((0x00c0 <= cp) && (0x00d6 >= cp)) ||
- ((0x00d8 <= cp) && (0x00de >= cp)) ||
- ((0x0391 <= cp) && (0x03a1 >= cp)) ||
- ((0x03a3 <= cp) && (0x03ab >= cp)) ||
- ((0x0410 <= cp) && (0x042f >= cp))) {
- cp += 32;
- } else if ((0x0400 <= cp) && (0x040f >= cp)) {
- cp += 80;
- } else if (((0x0100 <= cp) && (0x012f >= cp)) ||
- ((0x0132 <= cp) && (0x0137 >= cp)) ||
- ((0x014a <= cp) && (0x0177 >= cp)) ||
- ((0x0182 <= cp) && (0x0185 >= cp)) ||
- ((0x01a0 <= cp) && (0x01a5 >= cp)) ||
- ((0x01de <= cp) && (0x01ef >= cp)) ||
- ((0x01f8 <= cp) && (0x021f >= cp)) ||
- ((0x0222 <= cp) && (0x0233 >= cp)) ||
- ((0x0246 <= cp) && (0x024f >= cp)) ||
- ((0x03d8 <= cp) && (0x03ef >= cp)) ||
- ((0x0460 <= cp) && (0x0481 >= cp)) ||
- ((0x048a <= cp) && (0x04ff >= cp))) {
- cp |= 0x1;
- } else if (((0x0139 <= cp) && (0x0148 >= cp)) ||
- ((0x0179 <= cp) && (0x017e >= cp)) ||
- ((0x01af <= cp) && (0x01b0 >= cp)) ||
- ((0x01b3 <= cp) && (0x01b6 >= cp)) ||
- ((0x01cd <= cp) && (0x01dc >= cp))) {
- cp += 1;
- cp &= ~0x1;
- } else {
- switch (cp) {
- default:
- break;
- case 0x0178:
- cp = 0x00ff;
- break;
- case 0x0243:
- cp = 0x0180;
- break;
- case 0x018e:
- cp = 0x01dd;
- break;
- case 0x023d:
- cp = 0x019a;
- break;
- case 0x0220:
- cp = 0x019e;
- break;
- case 0x01b7:
- cp = 0x0292;
- break;
- case 0x01c4:
- cp = 0x01c6;
- break;
- case 0x01c7:
- cp = 0x01c9;
- break;
- case 0x01ca:
- cp = 0x01cc;
- break;
- case 0x01f1:
- cp = 0x01f3;
- break;
- case 0x01f7:
- cp = 0x01bf;
- break;
- case 0x0187:
- cp = 0x0188;
- break;
- case 0x018b:
- cp = 0x018c;
- break;
- case 0x0191:
- cp = 0x0192;
- break;
- case 0x0198:
- cp = 0x0199;
- break;
- case 0x01a7:
- cp = 0x01a8;
- break;
- case 0x01ac:
- cp = 0x01ad;
- break;
- case 0x01af:
- cp = 0x01b0;
- break;
- case 0x01b8:
- cp = 0x01b9;
- break;
- case 0x01bc:
- cp = 0x01bd;
- break;
- case 0x01f4:
- cp = 0x01f5;
- break;
- case 0x023b:
- cp = 0x023c;
- break;
- case 0x0241:
- cp = 0x0242;
- break;
- case 0x03fd:
- cp = 0x037b;
- break;
- case 0x03fe:
- cp = 0x037c;
- break;
- case 0x03ff:
- cp = 0x037d;
- break;
- case 0x037f:
- cp = 0x03f3;
- break;
- case 0x0386:
- cp = 0x03ac;
- break;
- case 0x0388:
- cp = 0x03ad;
- break;
- case 0x0389:
- cp = 0x03ae;
- break;
- case 0x038a:
- cp = 0x03af;
- break;
- case 0x038c:
- cp = 0x03cc;
- break;
- case 0x038e:
- cp = 0x03cd;
- break;
- case 0x038f:
- cp = 0x03ce;
- break;
- case 0x0370:
- cp = 0x0371;
- break;
- case 0x0372:
- cp = 0x0373;
- break;
- case 0x0376:
- cp = 0x0377;
- break;
- case 0x03f4:
- cp = 0x03b8;
- break;
- case 0x03cf:
- cp = 0x03d7;
- break;
- case 0x03f9:
- cp = 0x03f2;
- break;
- case 0x03f7:
- cp = 0x03f8;
- break;
- case 0x03fa:
- cp = 0x03fb;
- break;
- }
- }
-
- return cp;
-}
-
-utf8_constexpr14_impl utf8_int32_t utf8uprcodepoint(utf8_int32_t cp) {
- if (((0x0061 <= cp) && (0x007a >= cp)) ||
- ((0x00e0 <= cp) && (0x00f6 >= cp)) ||
- ((0x00f8 <= cp) && (0x00fe >= cp)) ||
- ((0x03b1 <= cp) && (0x03c1 >= cp)) ||
- ((0x03c3 <= cp) && (0x03cb >= cp)) ||
- ((0x0430 <= cp) && (0x044f >= cp))) {
- cp -= 32;
- } else if ((0x0450 <= cp) && (0x045f >= cp)) {
- cp -= 80;
- } else if (((0x0100 <= cp) && (0x012f >= cp)) ||
- ((0x0132 <= cp) && (0x0137 >= cp)) ||
- ((0x014a <= cp) && (0x0177 >= cp)) ||
- ((0x0182 <= cp) && (0x0185 >= cp)) ||
- ((0x01a0 <= cp) && (0x01a5 >= cp)) ||
- ((0x01de <= cp) && (0x01ef >= cp)) ||
- ((0x01f8 <= cp) && (0x021f >= cp)) ||
- ((0x0222 <= cp) && (0x0233 >= cp)) ||
- ((0x0246 <= cp) && (0x024f >= cp)) ||
- ((0x03d8 <= cp) && (0x03ef >= cp)) ||
- ((0x0460 <= cp) && (0x0481 >= cp)) ||
- ((0x048a <= cp) && (0x04ff >= cp))) {
- cp &= ~0x1;
- } else if (((0x0139 <= cp) && (0x0148 >= cp)) ||
- ((0x0179 <= cp) && (0x017e >= cp)) ||
- ((0x01af <= cp) && (0x01b0 >= cp)) ||
- ((0x01b3 <= cp) && (0x01b6 >= cp)) ||
- ((0x01cd <= cp) && (0x01dc >= cp))) {
- cp -= 1;
- cp |= 0x1;
- } else {
- switch (cp) {
- default:
- break;
- case 0x00ff:
- cp = 0x0178;
- break;
- case 0x0180:
- cp = 0x0243;
- break;
- case 0x01dd:
- cp = 0x018e;
- break;
- case 0x019a:
- cp = 0x023d;
- break;
- case 0x019e:
- cp = 0x0220;
- break;
- case 0x0292:
- cp = 0x01b7;
- break;
- case 0x01c6:
- cp = 0x01c4;
- break;
- case 0x01c9:
- cp = 0x01c7;
- break;
- case 0x01cc:
- cp = 0x01ca;
- break;
- case 0x01f3:
- cp = 0x01f1;
- break;
- case 0x01bf:
- cp = 0x01f7;
- break;
- case 0x0188:
- cp = 0x0187;
- break;
- case 0x018c:
- cp = 0x018b;
- break;
- case 0x0192:
- cp = 0x0191;
- break;
- case 0x0199:
- cp = 0x0198;
- break;
- case 0x01a8:
- cp = 0x01a7;
- break;
- case 0x01ad:
- cp = 0x01ac;
- break;
- case 0x01b0:
- cp = 0x01af;
- break;
- case 0x01b9:
- cp = 0x01b8;
- break;
- case 0x01bd:
- cp = 0x01bc;
- break;
- case 0x01f5:
- cp = 0x01f4;
- break;
- case 0x023c:
- cp = 0x023b;
- break;
- case 0x0242:
- cp = 0x0241;
- break;
- case 0x037b:
- cp = 0x03fd;
- break;
- case 0x037c:
- cp = 0x03fe;
- break;
- case 0x037d:
- cp = 0x03ff;
- break;
- case 0x03f3:
- cp = 0x037f;
- break;
- case 0x03ac:
- cp = 0x0386;
- break;
- case 0x03ad:
- cp = 0x0388;
- break;
- case 0x03ae:
- cp = 0x0389;
- break;
- case 0x03af:
- cp = 0x038a;
- break;
- case 0x03cc:
- cp = 0x038c;
- break;
- case 0x03cd:
- cp = 0x038e;
- break;
- case 0x03ce:
- cp = 0x038f;
- break;
- case 0x0371:
- cp = 0x0370;
- break;
- case 0x0373:
- cp = 0x0372;
- break;
- case 0x0377:
- cp = 0x0376;
- break;
- case 0x03d1:
- cp = 0x0398;
- break;
- case 0x03d7:
- cp = 0x03cf;
- break;
- case 0x03f2:
- cp = 0x03f9;
- break;
- case 0x03f8:
- cp = 0x03f7;
- break;
- case 0x03fb:
- cp = 0x03fa;
- break;
- }
- }
-
- return cp;
-}
-
-utf8_constexpr14_impl utf8_int8_t *
-utf8rcodepoint(const utf8_int8_t *utf8_restrict str,
- utf8_int32_t *utf8_restrict out_codepoint) {
- const utf8_int8_t *s = (const utf8_int8_t *)str;
-
- if (0xf0 == (0xf8 & s[0])) {
- /* 4 byte utf8 codepoint */
- *out_codepoint = ((0x07 & s[0]) << 18) | ((0x3f & s[1]) << 12) |
- ((0x3f & s[2]) << 6) | (0x3f & s[3]);
- } else if (0xe0 == (0xf0 & s[0])) {
- /* 3 byte utf8 codepoint */
- *out_codepoint =
- ((0x0f & s[0]) << 12) | ((0x3f & s[1]) << 6) | (0x3f & s[2]);
- } else if (0xc0 == (0xe0 & s[0])) {
- /* 2 byte utf8 codepoint */
- *out_codepoint = ((0x1f & s[0]) << 6) | (0x3f & s[1]);
- } else {
- /* 1 byte utf8 codepoint otherwise */
- *out_codepoint = s[0];
- }
-
- do {
- s--;
- } while ((0 != (0x80 & s[0])) && (0x80 == (0xc0 & s[0])));
-
- return (utf8_int8_t *)s;
-}
-
-#undef utf8_restrict
-#undef utf8_constexpr14
-#undef utf8_null
-
-#ifdef __cplusplus
-} /* extern "C" */
-#endif
-
-#if defined(__clang__)
-#pragma clang diagnostic pop
-#endif
-
-#endif /* SHEREDOM_UTF8_H_INCLUDED */
diff --git a/deps/ledger-zxlib/include/view_templates.h b/deps/ledger-zxlib/include/view_templates.h
deleted file mode 100644
index a301b60..0000000
--- a/deps/ledger-zxlib/include/view_templates.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/*******************************************************************************
-* (c) 2016 Ledger
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#include
-
-#define UI_CENTER11PX BAGL_FONT_OPEN_SANS_REGULAR_11px | BAGL_FONT_ALIGNMENT_CENTER
-#define UI_CENTER11PX_BOLD BAGL_FONT_OPEN_SANS_EXTRABOLD_11px | BAGL_FONT_ALIGNMENT_CENTER
-#define UI_11PX 11
-
-#define DEFAULT_FONT BAGL_FONT_OPEN_SANS_LIGHT_16px | BAGL_FONT_ALIGNMENT_LEFT
-#define UI_WHITE 0xFFFFFF
-#define UI_BLACK 0x000000
-
-#define UIID_ICONLEFT 0x10
-#define UIID_ICONRIGHT 0x11
-#define UIID_LABEL 0x20
-#define UIID_LABELSCROLL 0x71
-
-#define UI_FillRectangle(id, x, y, w, h, fgcolor, bgcolor) \
-{ \
- { \
- BAGL_RECTANGLE, /* type */ \
- id, /* usedid */ \
- x, /* x */ \
- y, /* y */ \
- w, /* width */ \
- h, /* height */ \
- 0, /* stroke */ \
- 0, /* radius */ \
- BAGL_FILL, /* fill */ \
- fgcolor, /* fgcolor */ \
- bgcolor, /* bgcolor */ \
- 0, /* font_id */ \
- 0 /* icon_id */ \
- }, \
- NULL, /* text */ \
-}
-
-#define UI_LabelLine(id, x, y, w, h, fgcolor, bgcolor, text) \
-{ \
- { \
- BAGL_LABELINE, /* type */ \
- id, /* usedid */ \
- x, /* x */ \
- y, /* y */ \
- w, /* width */ \
- h, /* height */ \
- 0, /* stroke */ \
- 0, /* radius */ \
- 0, /* fill */ \
- fgcolor, /* fgcolor */ \
- bgcolor, /* bgcolor */ \
- UI_CENTER11PX, /* font_id */ \
- 0 /* icon_id */ \
- }, \
- text, /* text */ \
-}
-
-#define UI_LabelLineScrolling(id, x, y, w, h, fgcolor, bgcolor, text) \
-{ \
- { \
- BAGL_LABELINE, /* type */ \
- id, /* usedid */ \
- x, /* x */ \
- y, /* y */ \
- w, /* width */ \
- h, /* height */ \
- 5 | BAGL_STROKE_FLAG_ONESHOT, /* stroke | scr pause */ \
- 0, /* radius */ \
- 0, /* fill */ \
- fgcolor, /* fgcolor */ \
- bgcolor, /* bgcolor */ \
- UI_CENTER11PX, /* font_id */ \
- 50 /* icon_id / scroll speed */ \
- }, \
- text, /* text */ \
-}
-
-#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-#define UI_SCREEN_WIDTH 128
-#define UI_SCREEN_HEIGHT 64
-
-#define BAGL_GLYPH_ICON_LEFT ((const char*)&C_icon_left)
-#define BAGL_GLYPH_ICON_RIGHT ((const char*)&C_icon_right)
-#define BAGL_GLYPH_ICON_CROSS ((const char*)&C_icon_crossmark)
-#define BAGL_GLYPH_ICON_CHECK ((const char*)&C_icon_validate)
-
-#define UI_Icon(id, x, y, w, h, icon) \
-{ \
- { \
- BAGL_ICON, /* type */ \
- id, /* usedid */ \
- x, /* x */ \
- y, /* y */ \
- w, /* width */ \
- h, /* height */ \
- 0, /* stroke */ \
- 0, /* radius */ \
- 0, /* fill */ \
- UI_WHITE, /* fgcolor */ \
- UI_BLACK, /* bgcolor */ \
- 0, /* font_id */ \
- 0 /* icon_id */ \
- }, \
- icon, /* text */ \
- 0, /* touch_area_brim */ \
- 0, /* overfgcolor */ \
- 0, /* overbgcolor */ \
- NULL, /* tap */ \
- NULL, /* out */ \
- NULL, /* over */ \
-}
-
-#define UI_BACKGROUND \
- UI_FillRectangle(0, 0, 0, UI_SCREEN_WIDTH, UI_SCREEN_HEIGHT, 0x000000, 0xFFFFFF)
-
-#define UI_BACKGROUND_LEFT_RIGHT_ICONS \
- UI_BACKGROUND, \
- UI_Icon(UIID_ICONLEFT, 2, 28, 4, 7, BAGL_GLYPH_ICON_LEFT), \
- UI_Icon(UIID_ICONRIGHT, 122, 28, 4, 7, BAGL_GLYPH_ICON_RIGHT)
-
-#else
-#define UI_SCREEN_WIDTH 128
-#define UI_SCREEN_HEIGHT 32
-
-#define UI_Icon(id, x, y, w, h, icon) \
-{ \
- { \
- BAGL_ICON, /* type */ \
- id, /* usedid */ \
- x, /* x */ \
- y, /* y */ \
- w, /* width */ \
- h, /* height */ \
- 0, /* stroke */ \
- 0, /* radius */ \
- 0, /* fill */ \
- UI_WHITE, /* fgcolor */ \
- UI_BLACK, /* bgcolor */ \
- 0, /* font_id */ \
- icon /* icon_id */ \
- }, \
- NULL, /* text */ \
-}
-
-#define UI_BACKGROUND \
- UI_FillRectangle(0, 0, 0, UI_SCREEN_WIDTH, UI_SCREEN_HEIGHT, 0x000000, 0xFFFFFF)
-
-#define UI_BACKGROUND_LEFT_RIGHT_ICONS \
- UI_BACKGROUND, \
- UI_Icon(UIID_ICONLEFT, 0, 0, 7, 7, BAGL_GLYPH_ICON_LEFT), \
- UI_Icon(UIID_ICONRIGHT, 128 - 7, 0, 7, 7, BAGL_GLYPH_ICON_RIGHT)
-#endif
diff --git a/deps/ledger-zxlib/include/zxerror.h b/deps/ledger-zxlib/include/zxerror.h
deleted file mode 100644
index 3a245c5..0000000
--- a/deps/ledger-zxlib/include/zxerror.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#include "zxmacros.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define CHECK_ZXERR(CALL) { \
- zxerr_t err = CALL; \
- if (err!=zxerr_ok) return err;}
-
-typedef enum {
- zxerr_unknown = 0b00000000,
- zxerr_ok = 0b00000011,
- zxerr_no_data = 0b00000101,
- zxerr_buffer_too_small = 0b00000110,
- zxerr_out_of_bounds = 0b00001001,
- zxerr_encoding_failed = 0b00001010,
- zxerr_invalid_crypto_settings = 0b00001100,
- zxerr_ledger_api_error = 0b00001111,
-} zxerr_t;
-
-__Z_INLINE uint8_t getErrorMessage(char *buffer, uint16_t bufferLen, zxerr_t err) {
- MEMZERO(buffer, bufferLen);
-
- switch (err) {
- case zxerr_unknown:
- snprintf(buffer, bufferLen, "zxerr_unknown");
- break;
- case zxerr_ok:
- snprintf(buffer, bufferLen, "zxerr_ok");
- break;
- case zxerr_no_data:
- snprintf(buffer, bufferLen, "zxerr_no_data");
- break;
- case zxerr_out_of_bounds:
- snprintf(buffer, bufferLen, "zxerr_out_of_bounds");
- break;
- case zxerr_encoding_failed:
- snprintf(buffer, bufferLen, "zxerr_encoding_failed");
- break;
- case zxerr_invalid_crypto_settings:
- snprintf(buffer, bufferLen, "zxerr_invalid_crypto_settings");
- break;
- case zxerr_ledger_api_error:
- snprintf(buffer, bufferLen, "zxerr_ledger_api_error");
- break;
- default:
- snprintf(buffer, bufferLen, "err N/A");
- }
-
- return strlen(buffer);
-}
-
-//0b00000000
-//0b00000011
-//0b00000101
-//0b00000110
-//0b00001001
-//0b00001010
-//0b00001100
-//0b00001111
-//0b00010001
-//0b00010010
-//0b00010100
-//0b00010111
-//0b00011000
-//0b00011011
-//0b00011101
-//0b00011110
-//0b00100001
-//0b00100010
-//0b00100100
-//0b00100111
-//0b00101000
-//0b00101011
-//0b00101101
-//0b00101110
-//0b00110000
-//0b00110011
-//0b00110101
-//0b00110110
-//0b00111001
-//0b00111010
-//0b00111100
-//0b00111111
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/zxformat.h b/deps/ledger-zxlib/include/zxformat.h
deleted file mode 100644
index d7e54db..0000000
--- a/deps/ledger-zxlib/include/zxformat.h
+++ /dev/null
@@ -1,367 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "zxmacros.h"
-#include "zxerror.h"
-
-#define NUM_TO_STR(TYPE) __Z_INLINE const char * TYPE##_to_str(char *data, int dataLen, TYPE##_t number) { \
- if (dataLen < 2) return "Buffer too small"; \
- MEMZERO(data, dataLen); \
- char *p = data; \
- if (number < 0) { *(p++) = '-'; data++; } \
- else if (number == 0) { *(p++) = '0'; } \
- TYPE##_t tmp; \
- while (number != 0) { \
- if (p - data >= (dataLen - 1)) { return "Buffer too small"; } \
- tmp = number % 10; \
- tmp = tmp < 0 ? -tmp : tmp; \
- *(p++) = (char) ('0' + tmp); \
- number /= 10u; \
- } \
- while (p > data) { \
- p--; \
- char z = *data; *data = *p; *p = z; \
- data++; \
- } \
- return NULL; \
-}
-
-NUM_TO_STR(int32)
-
-NUM_TO_STR(int64)
-
-NUM_TO_STR(uint64)
-
-size_t z_strlen(const char *buffer, size_t maxSize);
-
-zxerr_t z_str3join(char *buffer, size_t bufferSize, const char *prefix, const char *suffix);
-
-__Z_INLINE void bip32_to_str(char *s, uint32_t max, const uint32_t *path, uint8_t pathLen) {
- MEMZERO(s, max);
-
- if (pathLen == 0) {
- snprintf(s, max, "EMPTY PATH");
- return;
- }
-
- if (pathLen > 5) {
- snprintf(s, max, "ERROR");
- return;
- }
-
- uint32_t offset = 0;
- for (uint16_t i = 0; i < pathLen; i++) {
- size_t written;
-
- // Warning: overcomplicated because Ledger's snprintf does not return number of written bytes
-
- snprintf(s + offset, max - offset, "%d", path[i] & 0x7FFFFFFFu);
- written = strlen(s + offset);
- if (written == 0 || written >= max - offset) {
- snprintf(s, max, "ERROR");
- return;
- }
- offset += written;
-
- if ((path[i] & 0x80000000u) != 0) {
- snprintf(s + offset, max - offset, "'");
- written = strlen(s + offset);
- if (written == 0 || written >= max - offset) {
- snprintf(s, max, "ERROR");
- return;
- }
- offset += written;
- }
-
- if (i != pathLen - 1) {
- snprintf(s + offset, max - offset, "/");
- written = strlen(s + offset);
- if (written == 0 || written >= max - offset) {
- snprintf(s, max, "ERROR");
- return;
- }
- offset += written;
- }
- }
-}
-
-__Z_INLINE void bip44_to_str(char *s, uint32_t max, const uint32_t path[5]) {
- bip32_to_str(s, max, path, 5);
-}
-
-__Z_INLINE int8_t str_to_int8(const char *start, const char *end, char *error) {
- int sign = 1;
- if (*start == '-') {
- sign = -1;
- start++;
- }
-
- int64_t value = 0;
- int multiplier = 1;
- for (const char *s = end - 1; s >= start; s--) {
- int delta = (*s - '0');
- if (delta >= 0 && delta <= 9) {
- value += (delta * multiplier);
- multiplier *= 10;
- } else {
- if (error != NULL) {
- *error = 1;
- return 0;
- }
- }
- }
-
- value *= sign;
- if (value >= INT8_MIN && value <= INT8_MAX) {
- return (int8_t) value;
- }
- if (error != NULL) {
- *error = 1;
- }
- return 0;
-}
-
-__Z_INLINE int64_t str_to_int64(const char *start, const char *end, char *error) {
- int sign = 1;
- if (*start == '-') {
- sign = -1;
- start++;
- }
-
- int64_t value = 0;
- int64_t multiplier = 1;
- for (const char *s = end - 1; s >= start; s--) {
- int64_t delta = (*s - '0');
- if (delta >= 0 && delta <= 9) {
- value += delta * multiplier;
- multiplier *= 10;
- } else {
- if (error != NULL) {
- *error = 1;
- return 0;
- }
- }
- }
-
- return value * sign;
-}
-
-uint8_t intstr_to_fpstr_inplace(char *number, size_t number_max_size, uint8_t decimalPlaces);
-
-__Z_INLINE uint8_t fpstr_to_str(char *out, uint16_t outLen, const char *number, uint8_t decimals) {
- MEMZERO(out, outLen);
- size_t digits = strlen(number);
-
- if (decimals == 0) {
- if (digits == 0) {
- snprintf(out, outLen, "0");
- return 0;
- }
-
- if (outLen < digits) {
- snprintf(out, outLen, "ERR");
- return 1;
- }
-
- // No need for formatting
- snprintf(out, outLen, "%s", number);
- return 0;
- }
-
- if ((outLen < decimals + 2)) {
- snprintf(out, outLen, "ERR");
- return 1;
- }
-
- if (outLen < digits + 2) {
- snprintf(out, outLen, "ERR");
- return 1;
- }
-
- if (digits <= decimals) {
- if (outLen <= decimals + 2) {
- snprintf(out, outLen, "ERR");
- return 1;
- }
-
- // First part
- snprintf(out, outLen, "0.");
- out += 2;
- outLen -= 2;
-
- MEMSET(out, '0', decimals - digits);
- out += decimals - digits;
- outLen -= decimals - digits;
-
- snprintf(out, outLen, "%s", number);
- return 0;
- }
-
- const size_t shift = digits - decimals;
- snprintf(out, outLen, "%s", number);
- number += shift;
-
- out += shift;
- outLen -= shift;
-
- *out++ = '.';
- outLen--;
- snprintf(out, outLen, "%s", number);
- return 0;
-}
-
-__Z_INLINE uint16_t fpuint64_to_str(char *out, uint16_t outLen, const uint64_t value, uint8_t decimals) {
- char buffer[30];
- MEMZERO(buffer, sizeof(buffer));
- uint64_to_str(buffer, sizeof(buffer), value);
- fpstr_to_str(out, outLen, buffer, decimals);
- return (uint16_t) strlen(out);
-}
-
-__Z_INLINE void number_inplace_trimming(char *s, uint8_t non_trimmed) {
- const size_t len = strlen(s);
- if (len == 0 || len == 1 || len > 1024) {
- return;
- }
-
- int16_t dec_point = -1;
- for (int16_t i = 0; i < (int16_t) len && dec_point < 0; i++) {
- if (s[i] == '.') {
- dec_point = i;
- }
- }
- if (dec_point < 0) {
- return;
- }
-
- const size_t limit = (size_t) dec_point + non_trimmed;
- for (size_t i = (len - 1); i > limit && s[i] == '0'; i--) {
- s[i] = 0;
- }
-}
-
-__Z_INLINE uint64_t uint64_from_BEarray(const uint8_t data[8]) {
- uint64_t result = 0;
- for (uint8_t i = 0; i < 8u; i++) {
- result <<= 8u;
- result += data[i];
- }
- return result;
-}
-
-__Z_INLINE uint32_t array_to_hexstr(char *dst, uint16_t dstLen, const uint8_t *src, uint8_t count) {
- MEMZERO(dst, dstLen);
- if (dstLen < (count * 2 + 1)) {
- return 0;
- }
-
- const char hexchars[] = "0123456789abcdef";
- for (uint8_t i = 0; i < count; i++, src++) {
- *dst++ = hexchars[*src >> 4u];
- *dst++ = hexchars[*src & 0x0Fu];
- }
- *dst = 0; // terminate string
-
- return (uint32_t) (count * 2);
-}
-
-__Z_INLINE void pageStringExt(char *outValue, uint16_t outValueLen,
- const char *inValue, uint16_t inValueLen,
- uint8_t pageIdx, uint8_t *pageCount) {
- MEMZERO(outValue, outValueLen);
- *pageCount = 0;
-
- outValueLen--; // leave space for NULL termination
- if (outValueLen == 0) {
- return;
- }
-
- if (inValueLen == 0) {
- return;
- }
-
- *pageCount = (uint8_t) (inValueLen / outValueLen);
- const uint16_t lastChunkLen = (inValueLen % outValueLen);
-
- if (lastChunkLen > 0) {
- (*pageCount)++;
- }
-
- if (pageIdx < *pageCount) {
- if (lastChunkLen > 0 && pageIdx == *pageCount - 1) {
- MEMCPY(outValue, inValue + (pageIdx * outValueLen), lastChunkLen);
- } else {
- MEMCPY(outValue, inValue + (pageIdx * outValueLen), outValueLen);
- }
- }
-}
-
-__Z_INLINE void pageString(char *outValue, uint16_t outValueLen,
- const char *inValue,
- uint8_t pageIdx, uint8_t *pageCount) {
- pageStringExt(outValue, outValueLen, inValue, (uint16_t) strlen(inValue), pageIdx, pageCount);
-}
-
-__Z_INLINE zxerr_t formatBufferData(
- const uint8_t *ptr,
- uint64_t len,
- char *outValue,
- uint16_t outValueLen,
- uint8_t pageIdx,
- uint8_t *pageCount) {
- char bufferUI[500 + 1];
- MEMZERO(bufferUI, sizeof(bufferUI));
- MEMZERO(outValue, 0);
- CHECK_APP_CANARY()
-
- if (len >= sizeof(bufferUI)) {
- return zxerr_buffer_too_small;
- }
- memcpy(bufferUI, ptr, len);
-
- // Check we have all ascii
- uint8_t allAscii = 1;
- for (size_t i = 0; i < len && allAscii; i++) {
- if (bufferUI[i] < 32 || bufferUI[i] > 127) {
- allAscii = 0;
- }
- }
-
- if (!allAscii) {
- bufferUI[0] = '0';
- bufferUI[1] = 'x';
- if (array_to_hexstr(bufferUI + 2, sizeof(bufferUI) - 2, ptr, len) == 0) {
- return zxerr_buffer_too_small;
- }
- }
-
- pageString(outValue, outValueLen, bufferUI, pageIdx, pageCount);
-
- return zxerr_ok;
-}
-
-size_t asciify(char *utf8_in);
-
-size_t asciify_ext(const char *utf8_in, char *ascii_only_out);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/zxmacros.h b/deps/ledger-zxlib/include/zxmacros.h
deleted file mode 100644
index b5bf7e8..0000000
--- a/deps/ledger-zxlib/include/zxmacros.h
+++ /dev/null
@@ -1,117 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#pragma clang diagnostic push
-#pragma ide diagnostic ignored "modernize-use-nullptr"
-#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
-#pragma ide diagnostic ignored "OCUnusedMacroInspection"
-#pragma ide diagnostic ignored "modernize-deprecated-headers"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include
-#include
-#include
-#include "string.h"
-
-#ifndef __APPLE__
-
-extern void explicit_bzero(void *s, size_t n) __THROW __nonnull ((1));
-
-#endif
-
-#define __Z_INLINE inline __attribute__((always_inline)) static
-#define __Z_UNUSED __attribute__((unused))
-#define NV_ALIGN __attribute__ ((aligned(64)))
-
-#if defined(LEDGER_SPECIFIC)
-#include "bolos_target.h"
-#endif
-
-#if defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-#include "zxmacros_ledger.h"
-#else
-
-#include "zxmacros_x64.h"
-
-#endif
-
-#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
-#define ZX_SWAP(v) (((v) & 0x000000FFu) << 24u | ((v) & 0x0000FF00u) << 8u | ((v) & 0x00FF0000u) >> 8u | ((v) & 0xFF000000u) >> 24u)
-#define HtoNL(v) ZX_SWAP( v )
-#define NtoHL(v) ZX_SWAP( v )
-#else
-#define HtoNL(x) (x)
-#define NtoHL(x) (x)
-#endif
-
-#define SET_NV(DST, TYPE, VAL) { \
- TYPE nvset_tmp=(VAL); \
- MEMCPY_NV((void*) PIC(DST), (void *) PIC(&nvset_tmp), sizeof(TYPE)); \
-}
-
-__Z_INLINE void strncpy_s(char *dst, const char *src, size_t dstSize) {
- MEMZERO(dst, dstSize);
- strncpy(dst, src, dstSize - 1);
-}
-
-#define sizeof_field(type, member) sizeof(((type *)0)->member)
-#define array_length(array) (sizeof(array) / sizeof((array)[0]))
-
-void zemu_trace(const char *file, uint32_t line);
-
-#define ZEMU_TRACE() zemu_trace( __func__, __LINE__ );
-
-__attribute__((unused)) void check_app_canary();
-
-void handle_stack_overflow();
-
-void zemu_log_stack(const char *ctx);
-
-#if (defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2))
-#if defined(ZEMU_LOGGING)
-__Z_INLINE void zemu_log(const char *buf)
-{
- asm volatile (
- "movs r0, #0x04\n"
- "movs r1, %0\n"
- "svc 0xab\n"
- :: "r"(buf) : "r0", "r1"
- );
-}
-#else
-__Z_INLINE void zemu_log(__Z_UNUSED const char *_) {}
-#endif
-#else
-__Z_INLINE void zemu_log(__Z_UNUSED const char *msg) {
- printf("%s\n", msg);
-}
-#endif
-
-#if APP_TESTING
-#define ZEMU_LOGF(SIZE, ...) { char tmp[(SIZE)]; snprintf(tmp, (SIZE), __VA_ARGS__); zemu_log(tmp); }
-#else
-#define ZEMU_LOGF(SIZE, ...) {}
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#pragma clang diagnostic pop
diff --git a/deps/ledger-zxlib/include/zxmacros_ledger.h b/deps/ledger-zxlib/include/zxmacros_ledger.h
deleted file mode 100644
index 7604b82..0000000
--- a/deps/ledger-zxlib/include/zxmacros_ledger.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#if defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-
-#include "os.h"
-#include "cx.h"
-
-#define MEMCPY_NV nvm_write
-
-// This macros are kept for backwards compatibility
-// the most recent SDK has unified implementations and deprecated the original os_***
-#define MEMCPY memmove
-#define MEMMOVE memmove
-#define MEMSET memset
-#define MEMCMP memcmp
-#define MEMZERO explicit_bzero
-
-#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-#include "ux.h"
-#define NV_CONST const
-#define NV_VOLATILE volatile
-#define IS_UX_ALLOWED (G_ux_params.len != BOLOS_UX_IGNORE && G_ux_params.len != BOLOS_UX_CONTINUE)
-#else
-#include "ux.h"
-#include "os_io_seproxyhal.h"
-#define NV_CONST
-#define NV_VOLATILE
-#define IS_UX_ALLOWED (G_ux_params.len != BOLOS_UX_IGNORE && G_ux_params.len != BOLOS_UX_CONTINUE)
-#endif
-
-#define CHECK_APP_CANARY() check_app_canary();
-#define APP_STACK_CANARY_MAGIC 0xDEAD0031
-extern unsigned int app_stack_canary;
-
-#define WAIT_EVENT() io_seproxyhal_spi_recv(G_io_seproxyhal_spi_buffer, sizeof(G_io_seproxyhal_spi_buffer), 0)
-
-#define UX_WAIT() \
- while (!UX_DISPLAYED()) { WAIT_EVENT(); UX_DISPLAY_NEXT_ELEMENT(); } \
- WAIT_EVENT(); \
- io_seproxyhal_general_status(); \
- WAIT_EVENT()
-#endif
diff --git a/deps/ledger-zxlib/include/zxmacros_x64.h b/deps/ledger-zxlib/include/zxmacros_x64.h
deleted file mode 100644
index 22d27dc..0000000
--- a/deps/ledger-zxlib/include/zxmacros_x64.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#if !defined (TARGET_NANOS) && !defined(TARGET_NANOX) && !defined(TARGET_NANOS2)
-
-// This macros are kept for backwards compatibility
-// the most recent SDK has unified implementations and deprecated the original os_***
-#define MEMMOVE memmove
-#define MEMSET memset
-#define MEMCPY memcpy
-#define MEMCMP memcmp
-#define MEMCPY_NV memcpy
-
-#define PIC(x) (x)
-#define CHECK_APP_CANARY() {}
-#define CX_ECCINFO_PARITY_ODD 1u
-#define CX_ECCINFO_xGTn 2u
-
-#ifndef __APPLE__
-#define MEMZERO explicit_bzero
-#else
-__Z_INLINE void __memzero(void *buffer, size_t s) { memset(buffer, 0, s); }
-#define MEMZERO __memzero
-#endif
-
-#endif
diff --git a/deps/ledger-zxlib/include/zxtypes.h b/deps/ledger-zxlib/include/zxtypes.h
deleted file mode 100644
index 9aae677..0000000
--- a/deps/ledger-zxlib/include/zxtypes.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum {
- bool_false = 0,
- bool_true = 1,
-} bool_t;
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/include/zxutils_ledger.h b/deps/ledger-zxlib/include/zxutils_ledger.h
deleted file mode 100644
index 7d3fc05..0000000
--- a/deps/ledger-zxlib/include/zxutils_ledger.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#pragma once
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-unsigned short zx_compute_line_width_light(const char* text, unsigned char text_length);
-
-
-#ifdef __cplusplus
-}
-#endif
\ No newline at end of file
diff --git a/deps/ledger-zxlib/include/zxversion.h b/deps/ledger-zxlib/include/zxversion.h
deleted file mode 100644
index 8a35b95..0000000
--- a/deps/ledger-zxlib/include/zxversion.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*******************************************************************************
-* (c) 2018 - 2022 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#pragma once
-
-#define ZXLIB_MAJOR 12
-#define ZXLIB_MINOR 0
-#define ZXLIB_PATCH 0
diff --git a/deps/ledger-zxlib/scripts/install_deps.sh b/deps/ledger-zxlib/scripts/install_deps.sh
deleted file mode 100755
index 46b3765..0000000
--- a/deps/ledger-zxlib/scripts/install_deps.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-#*******************************************************************************
-#* (c) 2018 Zondax GmbH
-#*
-#* Licensed under the Apache License, Version 2.0 (the "License");
-#* you may not use this file except in compliance with the License.
-#* You may obtain a copy of the License at
-#*
-#* http://www.apache.org/licenses/LICENSE-2.0
-#*
-#* Unless required by applicable law or agreed to in writing, software
-#* distributed under the License is distributed on an "AS IS" BASIS,
-#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#* See the License for the specific language governing permissions and
-#* limitations under the License.
-#********************************************************************************
-
-os_string="$(uname -s)"
-case "${os_string}" in
- Linux*)
- sudo apt-get install libusb-1.0.0 libudev-dev
- pip install -U setuptools
- pip install -U --no-cache ledgerblue ecpy
- pip install -U conan
- ;;
- Darwin*)
- brew install libusb
- pip install -U ledgerblue ecpy
- pip install -U conan
- ;;
- *)
- echo "OS not recognized"
- ;;
-esac
diff --git a/deps/ledger-zxlib/scripts/template.sh b/deps/ledger-zxlib/scripts/template.sh
deleted file mode 100755
index 8f0e720..0000000
--- a/deps/ledger-zxlib/scripts/template.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/env bash
-#*******************************************************************************
-# (c) 2018 Zondax GmbH
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#*******************************************************************************
-
-if [ -z "$APPNAME" ]
-then
- echo "This script has not been configured correctly"
- exit 1
-fi
-
-# check python 3 has been installed
-if ! command -v python3 &>/dev/null; then
- echo Python 3 is not installed
- exit
-fi
-
-python3 -m ledgerblue.loadApp -h &>/dev/null;
-if [ $? -ne 0 ]; then
- echo
- echo "ERR: ledgerblue pip package not found."
- echo "please install using 'pip install ledgerblue'"
- echo
- exit
-fi
-
-TMP_HEX_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
-mkdir -p ${TMP_HEX_DIR}/bin
-BIN_HEX_FILE=${TMP_HEX_DIR}/bin/app.hex
-echo -e "${APPHEX}" > ${BIN_HEX_FILE}
-
-case "$1" in
- 'load')
- cd "$TMP_HEX_DIR" || exit
- python3 -m ledgerblue.loadApp --appFlags 0x200 --delete ${LOAD_PARAMS} --path ${APPPATH} --path "44'/1'"
- ;;
- 'delete')
- python3 -m ledgerblue.deleteApp ${DELETE_PARAMS}
- ;;
- 'version')
- echo "v${APPVERSION}"
- ;;
- *)
- echo "Zondax Installer [$APPNAME-$APPVERSION] [Warning: use only for test/demo apps]"
- echo " load - Load $APPNAME app"
- echo " delete - Delete $APPNAME app"
- echo " version - Show $APPNAME app version"
-esac
diff --git a/deps/ledger-zxlib/src/app_mode.c b/deps/ledger-zxlib/src/app_mode.c
deleted file mode 100644
index 9d80d02..0000000
--- a/deps/ledger-zxlib/src/app_mode.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "app_mode.h"
-
-typedef struct {
- uint8_t expert;
-} app_mode_persistent_t;
-
-typedef struct {
- uint8_t secret;
-} app_mode_temporary_t;
-
-app_mode_temporary_t app_mode_temporary;
-
-#if defined(TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2)
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-app_mode_persistent_t NV_CONST N_appmode_impl __attribute__ ((aligned(64)));
-#define N_appmode (*(NV_VOLATILE app_mode_persistent_t *)PIC(&N_appmode_impl))
-
-void app_mode_reset(){
- app_mode_temporary.secret = 0;
-}
-
-bool app_mode_expert() {
- return N_appmode.expert;
-}
-
-void app_mode_set_expert(uint8_t val) {
- app_mode_persistent_t mode;
- mode.expert = val;
- MEMCPY_NV( (void*) PIC(&N_appmode_impl), (void*) &mode, sizeof(app_mode_persistent_t));
-}
-
-#else
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-
-app_mode_persistent_t app_mode;
-
-void app_mode_reset() {
- app_mode.expert = 0;
- app_mode_temporary.secret = 0;
-}
-
-bool app_mode_expert() {
- return app_mode.expert;
-}
-
-void app_mode_set_expert(uint8_t val) {
- app_mode.expert = val;
-}
-
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////
-
-#endif
-
-bool app_mode_secret() {
- return app_mode_temporary.secret;
-}
-
-void app_mode_set_secret(uint8_t val) {
- app_mode_temporary.secret = val;
-}
diff --git a/deps/ledger-zxlib/src/base58.c b/deps/ledger-zxlib/src/base58.c
deleted file mode 100644
index e6fce41..0000000
--- a/deps/ledger-zxlib/src/base58.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************
-* Adapted from Ledger App - Bitcoin Wallet
-* (c) 2019 Zondax GmbH
-*
-* Ledger App - Bitcoin Wallet
-* (c) 2016-2019 Ledger
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "base58.h"
-#include "zxmacros.h"
-
-#define MAX_DEC_INPUT_SIZE 164
-#define MAX_ENC_INPUT_SIZE 120
-
-unsigned char const BASE58TABLE[] = {
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xff, 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0xff, 0xff,
- 0xff, 0xff, 0xff, 0xff, 0xff, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf,
- 0x10, 0xff, 0x11, 0x12, 0x13, 0x14, 0x15, 0xff, 0x16, 0x17, 0x18, 0x19,
- 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0xff, 0xff, 0xff, 0xff, 0xff,
- 0xff, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b,
- 0xff, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36,
- 0x37, 0x38, 0x39, 0xff, 0xff, 0xff, 0xff, 0xff};
-
-unsigned char const BASE58ALPHABET[] = {
- '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
- 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
- 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'm',
- 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
-
-int decode_base58(const char *in, size_t length,
- unsigned char *out, size_t *outlen) {
- unsigned char tmp[MAX_DEC_INPUT_SIZE];
- unsigned char buffer[MAX_DEC_INPUT_SIZE] = {0};
- unsigned char i;
- unsigned char j;
- unsigned char startAt;
- unsigned char zeroCount = 0;
- if (length > MAX_DEC_INPUT_SIZE) {
- return -1;
- }
- MEMMOVE(tmp, in, length);
- for (i = 0; i < length; i++) {
- if (in[i] >= sizeof(BASE58TABLE)) {
- return -1;
- }
- tmp[i] = BASE58TABLE[(int) in[i]];
- if (tmp[i] == 0xff) {
- return -1;
- }
- }
- while ((zeroCount < length) && (tmp[zeroCount] == 0)) {
- ++zeroCount;
- }
- j = length;
- startAt = zeroCount;
- while (startAt < length) {
- unsigned short remainder = 0;
- unsigned char divLoop;
- for (divLoop = startAt; divLoop < length; divLoop++) {
- unsigned short digit256 = (unsigned short) (tmp[divLoop] & 0xff);
- unsigned short tmpDiv = remainder * 58 + digit256;
- tmp[divLoop] = (unsigned char) (tmpDiv / 256);
- remainder = (tmpDiv % 256);
- }
- if (tmp[startAt] == 0) {
- ++startAt;
- }
- buffer[--j] = (unsigned char) remainder;
- }
- while ((j < length) && (buffer[j] == 0)) {
- ++j;
- }
- length = length - (j - zeroCount);
- if (*outlen < length) {
- return -1;
- }
-
- MEMMOVE(out, buffer + j - zeroCount, length);
- *outlen = length;
- return 0;
-}
-
-int encode_base58(const unsigned char *in, size_t length,
- unsigned char *out, size_t *outlen) {
- unsigned char buffer[MAX_ENC_INPUT_SIZE * 138 / 100 + 1] = {0};
- size_t i, j;
- size_t startAt, stopAt;
- size_t zeroCount = 0;
- size_t outputSize;
-
- if (length > MAX_ENC_INPUT_SIZE) {
- return -1;
- }
-
- while ((zeroCount < length) && (in[zeroCount] == 0)) {
- ++zeroCount;
- }
-
- outputSize = (length - zeroCount) * 138 / 100 + 1;
- stopAt = outputSize - 1;
- for (startAt = zeroCount; startAt < length; startAt++) {
- int carry = in[startAt];
- for (j = outputSize - 1; (int) j >= 0; j--) {
- carry += 256 * buffer[j];
- buffer[j] = carry % 58;
- carry /= 58;
-
- if (j <= stopAt - 1 && carry == 0) {
- break;
- }
- }
- stopAt = j;
- }
-
- j = 0;
- while (j < outputSize && buffer[j] == 0) {
- j += 1;
- }
-
- if (*outlen < zeroCount + outputSize - j) {
- *outlen = zeroCount + outputSize - j;
- return -1;
- }
-
- MEMSET(out, BASE58ALPHABET[0], zeroCount);
-
- i = zeroCount;
- while (j < outputSize) {
- out[i++] = BASE58ALPHABET[buffer[j++]];
- }
- *outlen = i;
- return 0;
-}
-
-char encode_base58_clip(const unsigned char v) {
- return BASE58ALPHABET[v % 58];
-}
diff --git a/deps/ledger-zxlib/src/base64.c b/deps/ledger-zxlib/src/base64.c
deleted file mode 100644
index ad601f8..0000000
--- a/deps/ledger-zxlib/src/base64.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include "base64.h"
-
-#define BASE64_PADDING_CHAR '='
-
-const char base64_charset[] = {
- 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
- 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
- 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
- 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/',
-};
-
-uint16_t base64_encode(char *out, uint16_t outlen, const uint8_t *in, uint16_t inlen) {
- MEMZERO(out, outlen);
-
- // Check uppeer bound or bailout
- uint16_t minspace = inlen / 6;
- if (inlen % 6 != 0) minspace++;
- minspace++; // zero termination
- if (outlen < minspace) {
- return 0;
- }
-
- int8_t carry_count = 0;
- uint8_t carry_value = 0;
- uint16_t out_idx = 0;
-
- for (uint16_t i = 0; i < inlen; i++) {
- const uint8_t c = in[i];
-
- const uint8_t shift = (6 - carry_count);
- const uint8_t idx = (carry_value << shift) | (c >> (carry_count + 2));
- carry_value = c & (0xFFu >> shift);
- carry_count += 2;
-
- out[out_idx++] = base64_charset[idx];
-
- // Check if we have another complete byte ready
- if (carry_count == 6) {
- out[out_idx++] = base64_charset[carry_value];
- carry_value = 0;
- carry_count = 0;
- }
- }
-
- // If there is any left over add and pad
- if (carry_count > 0) {
- out[out_idx++] = base64_charset[carry_value << (6 - carry_count)];
- while (carry_count < 6) {
- out[out_idx++] = BASE64_PADDING_CHAR;
- carry_count += 2;
- }
- }
-
- return out_idx;
-}
diff --git a/deps/ledger-zxlib/src/bech32.c b/deps/ledger-zxlib/src/bech32.c
deleted file mode 100644
index 21fc639..0000000
--- a/deps/ledger-zxlib/src/bech32.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include
-#include
-#include
-#include "bech32.h"
-#include "segwit_addr.h"
-#include "bittools.h"
-
-zxerr_t bech32EncodeFromBytes(char *out,
- size_t out_len,
- const char *hrp,
- const uint8_t *in,
- size_t in_len,
- uint8_t pad) {
- MEMZERO(out, out_len);
-
- if (in_len > MAX_INPUT_SIZE) {
- return zxerr_out_of_bounds;
- }
-
- size_t hrplen = strlen(hrp);
- // We set a lower bound to ensure this is safe
- if (out_len < hrplen + (in_len * 2) + 7) {
- return zxerr_buffer_too_small;
- }
-
- // Overestimate required size *2==(8/4) instead of *(8/5)
- uint8_t tmp_data[MAX_INPUT_SIZE * 2];
- size_t tmp_size = 0;
- MEMZERO(tmp_data, sizeof(tmp_data));
-
- convert_bits(tmp_data, &tmp_size, 5, in, in_len, 8, pad);
- if (tmp_size >= out_len) {
- return zxerr_out_of_bounds;
- }
-
- int err = bech32_encode(out, hrp, tmp_data, tmp_size);
- if (err == 0) {
- return zxerr_encoding_failed;
- }
-
- return zxerr_ok;
-}
diff --git a/deps/ledger-zxlib/src/bignum.c b/deps/ledger-zxlib/src/bignum.c
deleted file mode 100644
index 442ef70..0000000
--- a/deps/ledger-zxlib/src/bignum.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include "zxtypes.h"
-#include "bignum.h"
-
-bool_t bignumLittleEndian_bcdprint(char *outBuffer, uint16_t outBufferLen,
- const uint8_t *inBCD, uint16_t inBCDLen) {
- static const char hexchars[] = "0123456789ABCDEF";
- uint8_t started = 0;
- MEMZERO(outBuffer, outBufferLen);
-
- if (outBufferLen < 4) {
- return bool_false;
- }
-
- if (inBCDLen * 2 > outBufferLen) {
- snprintf(outBuffer, outBufferLen, "ERR");
- return bool_false;
- }
-
- for (uint8_t i = 0; i < inBCDLen; i++, inBCD++) {
- if (started || *inBCD != 0) {
- if (started || (*inBCD >> 4u) != 0) {
- *outBuffer = hexchars[*inBCD >> 4u];
- outBuffer++;
- }
- *outBuffer = hexchars[*inBCD & 0x0Fu];
- outBuffer++;
- started = 1;
- }
- }
-
- if (!started) {
- snprintf(outBuffer, outBufferLen, "0");
- }
-
- return bool_true;
-}
-
-void bignumLittleEndian_to_bcd(uint8_t *bcdOut, uint16_t bcdOutLen,
- const uint8_t *binValue, uint16_t binValueLen) {
- MEMZERO(bcdOut, bcdOutLen);
-
- uint8_t carry = 0;
- for (uint16_t bitIdx = 0; bitIdx < binValueLen * 8; bitIdx++) {
- // Fix bcd
- for (uint16_t j = 0; j < bcdOutLen; j++) {
- if ((bcdOut[j] & 0x0Fu) > 0x04u) {
- bcdOut[j] += 0x03u;
- }
- if ((bcdOut[j] & 0xF0u) > 0x40u) {
- bcdOut[j] += 0x30u;
- }
- }
-
- // get bit
- const uint16_t byteIdx = bitIdx >> 3u;
- const uint8_t mask = 0x80u >> (bitIdx & 0x7u);
- carry = (uint8_t) ((binValue[binValueLen - byteIdx - 1] & mask) > 0);
-
- // Shift bcd
- for (uint16_t j = 0; j < bcdOutLen; j++) {
- uint8_t carry2 = (uint8_t) (bcdOut[bcdOutLen - j - 1] > 127u);
- bcdOut[bcdOutLen - j - 1] <<= 1u;
- bcdOut[bcdOutLen - j - 1] += carry;
- carry = carry2;
- }
- }
-}
-
-bool_t bignumBigEndian_bcdprint(char *outBuffer, uint16_t outBufferLen,
- const uint8_t *bcdIn, uint16_t bcdInLen) {
- static const char hexchars[] = "0123456789ABCDEF";
- uint8_t started = 0;
- MEMZERO(outBuffer, outBufferLen);
-
- if (outBufferLen < 4) {
- return bool_false;
- }
-
- if (bcdInLen * 2 > outBufferLen) {
- snprintf(outBuffer, outBufferLen, "ERR");
- return bool_false;
- }
-
- for (uint16_t i = 0; i < bcdInLen; i++) {
- uint8_t v = bcdIn[bcdInLen - i - 1];
- if (started || v != 0) {
- if (started || (v >> 4u) != 0) {
- *outBuffer = hexchars[v >> 4u];
- outBuffer++;
- }
- *outBuffer = hexchars[v & 0x0Fu];
- outBuffer++;
- started = 1;
- }
- }
-
- if (!started) {
- snprintf(outBuffer, outBufferLen, "0");
- }
-
- return bool_true;
-}
-
-void bignumBigEndian_to_bcd(uint8_t *bcdOut, uint16_t bcdOutLen,
- const uint8_t *binValue, uint16_t binValueLen) {
- MEMZERO(bcdOut, bcdOutLen);
-
- uint8_t carry = 0;
- for (uint16_t bitIdx = 0; bitIdx < binValueLen * 8; bitIdx++) {
- // Fix bcd
- for (uint16_t j = 0; j < bcdOutLen; j++) {
- if ((bcdOut[j] & 0x0Fu) > 0x04u) {
- bcdOut[j] += 0x03u;
- }
- if ((bcdOut[j] & 0xF0u) > 0x40u) {
- bcdOut[j] += 0x30u;
- }
- }
-
- // get bit
- const uint16_t byteIdx = bitIdx >> 3u;
- const uint8_t mask = 0x80u >> (bitIdx & 0x7u);
- carry = (uint8_t) ((binValue[byteIdx] & mask) > 0);
-
- // Shift bcd
- for (uint16_t j = 0; j < bcdOutLen; j++) {
- uint8_t carry2 = (uint8_t) (bcdOut[j] > 127u);
- bcdOut[j] <<= 1u;
- bcdOut[j] += carry;
- carry = carry2;
- }
- }
-}
diff --git a/deps/ledger-zxlib/src/buffering.c b/deps/ledger-zxlib/src/buffering.c
deleted file mode 100644
index e956782..0000000
--- a/deps/ledger-zxlib/src/buffering.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "buffering.h"
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-buffer_state_t ram; // Ram
-buffer_state_t flash; // Flash
-
-void buffering_init(uint8_t *ram_buffer,
- uint16_t ram_buffer_size,
- uint8_t *flash_buffer,
- uint16_t flash_buffer_size) {
- ram.data = ram_buffer;
- ram.size = ram_buffer_size;
- ram.pos = 0;
- ram.in_use = 1;
-
- flash.data = flash_buffer;
- flash.size = flash_buffer_size;
- flash.pos = 0;
- flash.in_use = 0;
-}
-
-void buffering_reset() {
- ram.pos = 0;
- ram.in_use = 1;
- flash.pos = 0;
- flash.in_use = 0;
-}
-
-int buffering_append(uint8_t *data, int length) {
- if (ram.in_use) {
- if (ram.size - ram.pos >= length) {
- // RAM in use, append to ram if there is enough space
- MEMCPY(ram.data + ram.pos, data, (size_t) length);
- ram.pos += length;
- } else {
- // If RAM is not big enough copy memory to flash
- ram.in_use = 0;
- flash.in_use = 1;
- if (ram.pos > 0) {
- buffering_append(ram.data, ram.pos);
- }
- int num_bytes = buffering_append(data, length);
- ram.pos = 0;
- return num_bytes;
- }
- } else {
- // Flash in use, append to flash
- if (flash.size - flash.pos >= length) {
- MEMCPY_NV(flash.data + flash.pos, data, (size_t) length);
- flash.pos += length;
- } else {
- return 0;
- }
- }
- return length;
-}
-
-buffer_state_t *buffering_get_ram_buffer() {
- return &ram;
-}
-
-buffer_state_t *buffering_get_flash_buffer() {
- return &flash;
-}
-
-buffer_state_t *buffering_get_buffer() {
- if (ram.in_use) {
- return &ram;
- }
- return &flash;
-}
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/src/hexutils.c b/deps/ledger-zxlib/src/hexutils.c
deleted file mode 100644
index 66b8089..0000000
--- a/deps/ledger-zxlib/src/hexutils.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include
-#include
-#include "hexutils.h"
-
-uint8_t hex2dec(char c, char *out) {
- c = (char) tolower((int) c);
-
- if (!isxdigit((int) c)) {
- return 1;
- }
-
- if (isdigit((int) c)) {
- *out = (char) (c - '0');
- return 0;
- }
-
- *out = (char) (c - 'a' + 10);
- return 0;
-}
-
-size_t parseHexString(uint8_t *out, uint16_t outLen, const char *input) {
- size_t len = strnlen(input, outLen * 2u + 1u);
- if ( (len / 2) > outLen) {
- return 0;
- }
- if (len % 2 == 1) {
- return 0;
- }
-
- for (size_t i = 0; i < len; i += 2) {
- char tmp1, tmp2;
- if (hex2dec(input[i], &tmp1))
- return 0;
- if (hex2dec(input[i + 1], &tmp2))
- return 0;
-
- out[i >> 1u] = (tmp1 << 4u) + tmp2;
- }
-
- return (len / 2);
-}
diff --git a/deps/ledger-zxlib/src/segwit_addr.c b/deps/ledger-zxlib/src/segwit_addr.c
deleted file mode 100644
index 23ee214..0000000
--- a/deps/ledger-zxlib/src/segwit_addr.c
+++ /dev/null
@@ -1,191 +0,0 @@
-/* Copyright (c) 2017 Pieter Wuille
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-#include
-#include
-#include
-
-#include "segwit_addr.h"
-
-uint32_t bech32_polymod_step(uint32_t pre) {
- uint8_t b = pre >> 25u;
- return ((pre & 0x1FFFFFFu) << 5u) ^
- (-((b >> 0u) & 1u) & 0x3b6a57b2UL) ^
- (-((b >> 1u) & 1u) & 0x26508e6dUL) ^
- (-((b >> 2u) & 1u) & 0x1ea119faUL) ^
- (-((b >> 3u) & 1u) & 0x3d4233ddUL) ^
- (-((b >> 4u) & 1u) & 0x2a1462b3UL);
-}
-
-static const char* charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
-
-static const int8_t charset_rev[128] = {
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 15, -1, 10, 17, 21, 20, 26, 30, 7, 5, -1, -1, -1, -1, -1, -1,
- -1, 29, -1, 24, 13, 25, 9, 8, 23, -1, 18, 22, 31, 27, 19, -1,
- 1, 0, 3, 16, 11, 28, 12, 14, 6, 4, 2, -1, -1, -1, -1, -1,
- -1, 29, -1, 24, 13, 25, 9, 8, 23, -1, 18, 22, 31, 27, 19, -1,
- 1, 0, 3, 16, 11, 28, 12, 14, 6, 4, 2, -1, -1, -1, -1, -1
-};
-
-int bech32_encode(char *output, const char *hrp, const uint8_t *data, size_t data_len) {
- uint32_t chk = 1;
- size_t i = 0;
- while (hrp[i] != 0) {
- char ch = hrp[i];
- if (ch < 33 || ch > 126) {
- return 0;
- }
-
- if (ch >= 'A' && ch <= 'Z') return 0;
- chk = bech32_polymod_step(chk) ^ (ch >> 5u);
- ++i;
- }
- if (i + 7 + data_len > 90) return 0;
- chk = bech32_polymod_step(chk);
- while (*hrp != 0) {
- chk = bech32_polymod_step(chk) ^ (*hrp & 0x1fu);
- *(output++) = *(hrp++);
- }
- *(output++) = '1';
- for (i = 0; i < data_len; ++i) {
- if (*data >> 5u) return 0;
- chk = bech32_polymod_step(chk) ^ (*data);
- *(output++) = charset[*(data++)];
- }
- for (i = 0; i < 6; ++i) {
- chk = bech32_polymod_step(chk);
- }
- chk ^= 1;
- for (i = 0; i < 6; ++i) {
- *(output++) = charset[(chk >> ((5u - i) * 5u)) & 0x1fu];
- }
- *output = 0;
- return 1;
-}
-
-int bech32_decode(char* hrp, uint8_t *data, size_t *data_len, const char *input) {
- uint32_t chk = 1;
- size_t i;
- size_t input_len = strlen(input);
- size_t hrp_len;
- int have_lower = 0, have_upper = 0;
- if (input_len < 8 || input_len > 90) {
- return 0;
- }
- *data_len = 0;
- while (*data_len < input_len && input[(input_len - 1) - *data_len] != '1') {
- ++(*data_len);
- }
- hrp_len = input_len - (1 + *data_len);
- if (1 + *data_len >= input_len || *data_len < 6) {
- return 0;
- }
- *(data_len) -= 6;
- for (i = 0; i < hrp_len; ++i) {
- char ch = input[i];
- if (ch < 33 || ch > 126) {
- return 0;
- }
- if (ch >= 'a' && ch <= 'z') {
- have_lower = 1;
- } else if (ch >= 'A' && ch <= 'Z') {
- have_upper = 1;
- ch = (ch - 'A') + 'a';
- }
- hrp[i] = ch;
- chk = bech32_polymod_step(chk) ^ (ch >> 5u);
- }
- hrp[i] = 0;
- chk = bech32_polymod_step(chk);
- for (i = 0; i < hrp_len; ++i) {
- chk = bech32_polymod_step(chk) ^ (input[i] & 0x1fu);
- }
- ++i;
- while (i < input_len) {
- int v = (input[i] & 0x80u) ? -1 : charset_rev[(int)input[i]];
- if (input[i] >= 'a' && input[i] <= 'z') have_lower = 1;
- if (input[i] >= 'A' && input[i] <= 'Z') have_upper = 1;
- if (v == -1) {
- return 0;
- }
- chk = bech32_polymod_step(chk) ^ v;
- if (i + 6 < input_len) {
- data[i - (1 + hrp_len)] = v;
- }
- ++i;
- }
- if (have_lower && have_upper) {
- return 0;
- }
- return chk == 1;
-}
-
-int convert_bits(uint8_t* out, size_t* outlen, int outBits, const uint8_t* in, size_t inLen, int inBits, int pad) {
- uint32_t val = 0;
- int bits = 0;
- uint32_t maxv = (((uint32_t)1u) << outBits) - 1u;
- while (inLen--) {
- val = (val << inBits) | *(in++);
- bits += inBits;
- while (bits >= outBits) {
- bits -= outBits;
- out[(*outlen)++] = (val >> bits) & maxv;
- }
- }
- if (pad) {
- if (bits) {
- out[(*outlen)++] = (val << (outBits - bits)) & maxv;
- }
- } else if (((val << (outBits - bits)) & maxv) || bits >= inBits) {
- return 0;
- }
- return 1;
-}
-
-int segwit_addr_encode(char *output, const char *hrp, int witver, const uint8_t *witprog, size_t witprog_len) {
- uint8_t data[65];
- size_t datalen = 0;
- if (witver > 16) return 0;
- if (witver == 0 && witprog_len != 20 && witprog_len != 32) return 0;
- if (witprog_len < 2 || witprog_len > 40) return 0;
- data[0] = witver;
- convert_bits(data + 1, &datalen, 5, witprog, witprog_len, 8, 1);
- ++datalen;
- return bech32_encode(output, hrp, data, datalen);
-}
-
-int segwit_addr_decode(int* witver, uint8_t* witdata, size_t* witdata_len, const char* hrp, const char* addr) {
- uint8_t data[84];
- char hrp_actual[84];
- size_t data_len;
- if (!bech32_decode(hrp_actual, data, &data_len, addr)) return 0;
- if (data_len == 0 || data_len > 65) return 0;
- if (strncmp(hrp, hrp_actual, 84) != 0) return 0;
- if (data[0] > 16) return 0;
- *witdata_len = 0;
- if (!convert_bits(witdata, witdata_len, 8, data + 1, data_len - 1, 5, 0)) return 0;
- if (*witdata_len < 2 || *witdata_len > 40) return 0;
- if (data[0] == 0 && *witdata_len != 20 && *witdata_len != 32) return 0;
- *witver = data[0];
- return 1;
-}
diff --git a/deps/ledger-zxlib/src/sigutils.c b/deps/ledger-zxlib/src/sigutils.c
deleted file mode 100644
index 107088f..0000000
--- a/deps/ledger-zxlib/src/sigutils.c
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include
-#include
-
-#define MINPAYLOADLEN 1
-#define PAYLOADLEN 32
-#define MAXPAYLOADLEN 33
-
-err_convert_e convertDERtoRSV(const uint8_t *inSignatureDER,
- unsigned int inInfo,
- uint8_t *outR,
- uint8_t *outS,
- uint8_t *outV) {
-
- // https://github.com/libbitcoin/libbitcoin-system/wiki/ECDSA-and-DER-Signatures#serialised-der-signature-sequence
- // 0 [1 byte] - DER Prefix
- // 1 [1 byte] - Payload len
- // 2 [1 byte] - R Marker. Always 02
- // 3 [1 byte] - R Len RLEN
- // ROFFSET ... [.?. byte] - R ROFFSET
- // ROFFSET+RLEN [1 byte] - S Marker. Always 02
- // ROFFSET+RLEN+1 [1 byte] - S Length SLEN
- // ROFFSET+RLEN+2 [.?. byte] - S SOFFSET
- // Prepare response
- // R [32]
- // S [32]
- // V [1]
-
- MEMZERO(outR, 32);
- MEMZERO(outS, 32);
- MEMZERO(outV, 1);
-
- const uint8_t derPrefix = *(inSignatureDER);
- if (derPrefix != 0x30) {
- return invalid_derPrefix;
- }
-
- const uint8_t payloadLen = *(inSignatureDER + 1);
- const uint8_t minPayloadLen = 2 + MINPAYLOADLEN + 2 + MINPAYLOADLEN;
- const uint8_t maxPayloadLen = 2 + MAXPAYLOADLEN + 2 + MAXPAYLOADLEN;
- if (payloadLen < minPayloadLen || payloadLen > maxPayloadLen) {
- return invalid_payloadLen;
- }
-
- const uint8_t rMarker = *(inSignatureDER + 2);
- if (rMarker != 0x02) {
- return invalid_rmaker;
- }
-
- uint8_t rLen = *(inSignatureDER + 3);
- if (rLen > MAXPAYLOADLEN || rLen < MINPAYLOADLEN) {
- return invalid_rLen;
- }
-
- const uint8_t sMarker = *(inSignatureDER + 4 + rLen);
- if (sMarker != 0x02) {
- return invalid_smarker;
- }
-
- uint8_t sLen = *(inSignatureDER + 4 + rLen + 1);
- if (sLen > MAXPAYLOADLEN || sLen < MINPAYLOADLEN) {
- return invalid_sLen;
- }
-
- // Get data fields
- const uint8_t *rPtr = inSignatureDER + 4;
- const uint8_t *sPtr = inSignatureDER + 4 + rLen + 2;
-
- // Correct field pointers
- if (rLen < PAYLOADLEN) {
- outR += PAYLOADLEN - rLen;
- }
- if (rLen > PAYLOADLEN) {
- rPtr += rLen - PAYLOADLEN; // move forward get only 32 bytes
- rLen = PAYLOADLEN;
- }
-
- if (sLen < PAYLOADLEN) {
- outS += PAYLOADLEN - sLen;
- }
- if (sLen > PAYLOADLEN) {
- sPtr += sLen - PAYLOADLEN; // move forward get only 32 bytes
- sLen = PAYLOADLEN;
- }
-
- // Prepare V
- *outV = 0;
- if (inInfo & CX_ECCINFO_PARITY_ODD) {
- *outV += 1;
- }
- if (inInfo & CX_ECCINFO_xGTn) {
- *outV += 2;
- }
-
- // Copy things
- MEMCPY(outR, rPtr, rLen);
- MEMCPY(outS, sPtr, sLen);
-
- return no_error;
-}
diff --git a/deps/ledger-zxlib/src/timeutils.c b/deps/ledger-zxlib/src/timeutils.c
deleted file mode 100644
index 0efa919..0000000
--- a/deps/ledger-zxlib/src/timeutils.c
+++ /dev/null
@@ -1,508 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include "zxmacros.h"
-#include "timeutils.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include
-#include
-
-const uint8_t monthDays[] = {
- 31,
- 28,
- 31,
- 30,
- 31,
- 30,
- 31,
- 31,
- 30,
- 31,
- 30,
- 31
-};
-
-const uint32_t yearLookup[] = {
- 0,
- 365,
- 730,
- 1096,
- 1461,
- 1826,
- 2191,
- 2557,
- 2922,
- 3287,
- 3652,
- 4018,
- 4383,
- 4748,
- 5113,
- 5479,
- 5844,
- 6209,
- 6574,
- 6940,
- 7305,
- 7670,
- 8035,
- 8401,
- 8766,
- 9131,
- 9496,
- 9862,
- 10227,
- 10592,
- 10957,
- 11323,
- 11688,
- 12053,
- 12418,
- 12784,
- 13149,
- 13514,
- 13879,
- 14245,
- 14610,
- 14975,
- 15340,
- 15706,
- 16071,
- 16436,
- 16801,
- 17167,
- 17532,
- 17897,
- 18262,
- 18628,
- 18993,
- 19358,
- 19723,
- 20089,
- 20454,
- 20819,
- 21184,
- 21550,
- 21915,
- 22280,
- 22645,
- 23011,
- 23376,
- 23741,
- 24106,
- 24472,
- 24837,
- 25202,
- 25567,
- 25933,
- 26298,
- 26663,
- 27028,
- 27394,
- 27759,
- 28124,
- 28489,
- 28855,
- 29220,
- 29585,
- 29950,
- 30316,
- 30681,
- 31046,
- 31411,
- 31777,
- 32142,
- 32507,
- 32872,
- 33238,
- 33603,
- 33968,
- 34333,
- 34699,
- 35064,
- 35429,
- 35794,
- 36160,
- 36525,
- 36890,
- 37255,
- 37621,
- 37986,
- 38351,
- 38716,
- 39082,
- 39447,
- 39812,
- 40177,
- 40543,
- 40908,
- 41273,
- 41638,
- 42004,
- 42369,
- 42734,
- 43099,
- 43465,
- 43830,
- 44195,
- 44560,
- 44926,
- 45291,
- 45656,
- 46021,
- 46387,
- 46752,
- 47117,
- 47482,
- 47847,
- 48212,
- 48577,
- 48942,
- 49308,
- 49673,
- 50038,
- 50403,
- 50769,
- 51134,
- 51499,
- 51864,
- 52230,
- 52595,
- 52960,
- 53325,
- 53691,
- 54056,
- 54421,
- 54786,
- 55152,
- 55517,
- 55882,
- 56247,
- 56613,
- 56978,
- 57343,
- 57708,
- 58074,
- 58439,
- 58804,
- 59169,
- 59535,
- 59900,
- 60265,
- 60630,
- 60996,
- 61361,
- 61726,
- 62091,
- 62457,
- 62822,
- 63187,
- 63552,
- 63918,
- 64283,
- 64648,
- 65013,
- 65379,
- 65744,
- 66109,
- 66474,
- 66840,
- 67205,
- 67570,
- 67935,
- 68301,
- 68666,
- 69031,
- 69396,
- 69762,
- 70127,
- 70492,
- 70857,
- 71223,
- 71588,
- 71953,
- 72318,
- 72684,
- 73049,
- 73414,
- 73779,
- 74145,
- 74510,
- 74875,
- 75240,
- 75606,
- 75971,
- 76336,
- 76701,
- 77067,
- 77432,
- 77797,
- 78162,
- 78528,
- 78893,
- 79258,
- 79623,
- 79989,
- 80354,
- 80719,
- 81084,
- 81450,
- 81815,
- 82180,
- 82545,
- 82911,
- 83276,
- 83641,
- 84006,
- 84371,
- 84736,
- 85101,
- 85466,
- 85832,
- 86197,
- 86562,
- 86927,
- 87293,
- 87658,
- 88023,
- 88388,
- 88754,
- 89119,
- 89484,
- 89849,
- 90215,
- 90580,
- 90945,
- 91310,
- 91676,
- 92041,
- 92406,
- 92771,
- 93137,
- 93502,
- 93867,
- 94232,
- 94598,
- 94963,
- 95328,
- 95693,
- 96059,
- 96424,
- 96789,
- 97154,
- 97520,
- 97885,
- 98250,
- 98615,
- 98981,
- 99346,
- 99711,
- 100076,
- 100442,
- 100807,
- 101172,
- 101537,
- 101903,
- 102268,
- 102633,
- 102998,
- 103364,
- 103729,
- 104094,
- 104459,
- 104825,
- 105190,
- 105555,
- 105920,
- 106286,
- 106651,
- 107016,
- 107381,
- 107747,
- 108112,
- 108477,
- 108842,
- 109208,
- 109573,
- 109938,
- 110303,
- 110669,
- 111034,
- 111399,
- 111764,
- 112130,
- 112495,
- 112860,
- 113225,
- 113591,
- 113956,
- 114321,
- 114686,
- 115052,
- 115417,
- 115782,
- 116147,
- 116513,
- 116878,
- 117243,
- 117608,
- 117974,
- 118339,
- 118704,
- 119069,
- 119435,
- 119800,
- 120165,
- 120530,
- 120895,
- 121260,
- 121625,
- 121990,
- 122356,
- 122721,
- 123086,
- 123451,
- 123817,
- 124182,
- 124547,
- 124912,
- 125278,
- 125643,
- 126008,
- 126373,
- 126739,
- 127104,
- 127469,
- 127834,
- 128200,
- 128565,
- 128930,
- 129295,
- 129661,
- 130026,
- 130391,
- 130756,
- 131122,
- 131487,
- 131852,
- 132217,
- 132583,
- 132948,
- 133313,
- 133678,
- 134044,
- 134409,
- 134774,
- 135139,
- 135505,
- 135870,
- 136235,
- 136600,
- 136966,
- 137331,
- 137696,
- 138061,
- 138427,
- 138792,
- 139157,
- 139522,
- 139888,
- 140253,
- 140618,
- 140983,
- 141349,
- 141714,
- 142079,
- 142444,
- 142810,
- 143175,
- 143540,
- 143905,
- 144271,
- 144636,
- 145001,
- 145366,
- 145732,
-};
-
-// ARM does not implement gmtime. This is a simple alternative implementation
-// based on section 4.16
-// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html
-zxerr_t printTime(char *out, uint16_t outLen, uint64_t t) {
- uint8_t tm_sec;
- uint8_t tm_min;
- uint8_t tm_hour;
- uint16_t tm_day;
- uint8_t tm_mon;
- uint16_t tm_year;
-
- tm_sec = (uint8_t) (t % 60);
- t -= tm_sec;
- t /= 60;
-
- tm_min = (uint8_t) (t % 60);
- t -= tm_min;
- t /= 60;
-
- tm_hour = (uint8_t) (t % 24);
- t -= tm_hour;
- t /= 24;
-
- // Look up tm_year
- tm_year = 0;
- const uint16_t yearLookupSize = sizeof(yearLookup)/sizeof(yearLookup[0]);
- while (tm_year < yearLookupSize && yearLookup[tm_year] <= t) tm_year++;
-
- if (tm_year == 0 || tm_year == yearLookupSize) {
- return zxerr_out_of_bounds;
- }
- tm_year--;
-
- tm_day = (uint16_t) (t - yearLookup[tm_year] + 1);
- tm_year = (uint16_t) (1970 + tm_year);
-
- // Get day/month
- uint8_t leap = (uint8_t) (tm_year % 4 == 0 && (tm_year % 100 != 0 || tm_year % 400 == 0) ? 1 : 0);
-
- for (tm_mon = 0; tm_mon < 12; tm_mon++) {
- uint8_t tmp = monthDays[tm_mon];
- tmp += (tm_mon == 1 ? leap : 0);
- if (tm_day <= tmp) {
- break;
- }
- tm_day -= tmp;
- }
- tm_mon++;
-
- const char *monthName = getMonth(tm_mon);
-
- // YYYYmmdd HH:MM:SS
- snprintf(out, outLen, "%02d%s%04d %02d:%02d:%02dUTC",
- tm_day,
- monthName,
- tm_year,
- tm_hour, tm_min, tm_sec
- );
-
- return zxerr_ok;
-}
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/deps/ledger-zxlib/src/zxformat.c b/deps/ledger-zxlib/src/zxformat.c
deleted file mode 100644
index ee6d5ce..0000000
--- a/deps/ledger-zxlib/src/zxformat.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include "zxformat.h"
-#include
-#include
-#include "utf8.h"
-
-size_t asciify(char *utf8_in_ascii_out) {
- return asciify_ext(utf8_in_ascii_out, utf8_in_ascii_out);
-}
-
-size_t asciify_ext(const char *utf8_in, char *ascii_only_out) {
- void *p = (void *) utf8_in;
- char *q = ascii_only_out;
-
- // utf8valid returns zero on success
- while (*((char *) p) && utf8valid(p) == 0) {
- utf8_int32_t tmp_codepoint = 0;
- p = utf8codepoint(p, &tmp_codepoint);
- *q = (char) ((tmp_codepoint >= 32 && tmp_codepoint <= (int32_t) 0x7F) ? tmp_codepoint : '.');
- q++;
- }
-
- // Terminate string
- *q = 0;
- return q - ascii_only_out;
-}
-
-uint8_t intstr_to_fpstr_inplace(char *number, size_t number_max_size, uint8_t decimalPlaces) {
- uint16_t numChars = strnlen(number, number_max_size);
- MEMZERO(number + numChars, number_max_size - numChars);
-
- if (number_max_size < 1) {
- // No space to do anything
- return 0;
- }
-
- if (number_max_size <= numChars) {
- // No space to do anything
- return 0;
- }
-
- if (numChars == 0) {
- // Empty number, make a zero
- snprintf(number, number_max_size, "0");
- numChars = 1;
- }
-
- // Check all are numbers
- uint16_t firstDigit = numChars;
- for (int i = 0; i < numChars; i++) {
- if (number[i] < '0' || number[i] > '9') {
- snprintf(number, number_max_size, "ERR");
- return 0;
- }
- if (number[i] != '0' && firstDigit > i) {
- firstDigit = i;
- }
- }
-
- // Trim any incorrect leading zeros
- if (firstDigit == numChars) {
- snprintf(number, number_max_size, "0");
- numChars = 1;
- } else {
- // Trim leading zeros
- MEMMOVE(number, number + firstDigit, numChars - firstDigit);
- MEMZERO(number + numChars - firstDigit, firstDigit);
- }
-
- // If there are no decimal places return
- if (decimalPlaces == 0) {
- return numChars;
- }
-
- // Now insert decimal point
-
-// 0123456789012 <-decimal places
-// abcd < numChars = 4
-// abcd < shift
-// 000000000abcd < fill
-// 0.00000000abcd < add decimal point
-
- if (numChars < decimalPlaces + 1) {
- // Move to end
- const uint16_t padSize = decimalPlaces - numChars + 1;
- MEMMOVE(number + padSize, number, numChars);
- MEMSET(number, '0', padSize);
- numChars = strlen(number);
- }
-
- // add decimal point
- const uint16_t pointPosition = numChars - decimalPlaces;
- MEMMOVE(number + pointPosition + 1, number + pointPosition, decimalPlaces); // shift content
- number[pointPosition] = '.';
-
- numChars = strlen(number);
- return numChars;
-}
-
-size_t z_strlen(const char *buffer, size_t maxSize) {
- if (buffer == NULL) return 0;
- const size_t tmp = strlen(buffer);
- return tmp < maxSize ? tmp : maxSize;
-}
-
-zxerr_t z_str3join(char *buffer, size_t bufferSize, const char *prefix, const char *suffix) {
- size_t messageSize = z_strlen(buffer, bufferSize);
- const size_t prefixSize = z_strlen(prefix, bufferSize);
- const size_t suffixSize = z_strlen(suffix, bufferSize);
-
- size_t requiredSize = 1 /* termination */ + messageSize + prefixSize + suffixSize;
-
- if (bufferSize < requiredSize) {
- snprintf(buffer, bufferSize, "ERR???");
- return zxerr_buffer_too_small;
- }
-
- if (suffixSize > 0) {
- memmove(buffer + messageSize, suffix, suffixSize);
- buffer[messageSize + suffixSize] = 0;
- }
-
- // shift and add prefix
- if (prefixSize > 0) {
- memmove(buffer + prefixSize, buffer, messageSize + suffixSize + 1);
- memmove(buffer, prefix, prefixSize);
- }
-
- return zxerr_ok;
-}
diff --git a/deps/ledger-zxlib/src/zxmacros.c b/deps/ledger-zxlib/src/zxmacros.c
deleted file mode 100644
index 5dd172b..0000000
--- a/deps/ledger-zxlib/src/zxmacros.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include "zxmacros.h"
-
-#pragma clang diagnostic push
-#pragma ide diagnostic ignored "EndlessLoop"
-
-void handle_stack_overflow() {
- zemu_log("!!!!!!!!!!!!!!!!!!!!!! CANARY TRIGGERED!!! STACK OVERFLOW DETECTED\n");
-#if defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2)
- io_seproxyhal_se_reset();
-#else
- while (1);
-#endif
-}
-
-#pragma clang diagnostic pop
-
-__Z_UNUSED void check_app_canary() {
-#if defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2)
- if (app_stack_canary != APP_STACK_CANARY_MAGIC) handle_stack_overflow();
-#endif
-}
-
-#if defined(ZEMU_LOGGING) && (defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2))
-void zemu_log_stack(const char *ctx) {
- #define STACK_SHIFT 20
- void* p = NULL;
- char buf[70];
- snprintf(buf, sizeof(buf), "|SP| %p %p (%d) : %s\n",
- &app_stack_canary,
- ((void*)&p)+STACK_SHIFT,
- (uint32_t)((void*)&p)+STACK_SHIFT - (uint32_t)&app_stack_canary,
- ctx);
- zemu_log(buf);
- (void) ctx;
-}
-#else
-
-void zemu_log_stack(__Z_UNUSED const char *ctx) {}
-
-#endif
-
-
-#if defined(ZEMU_LOGGING) && (defined (TARGET_NANOS) || defined(TARGET_NANOX) || defined(TARGET_NANOS2))
-void zemu_trace(const char *file, uint32_t line) {
- char buf[200];
- snprintf(buf, sizeof(buf), "|TRACE| %s:%d\n", file, line);
- zemu_log(buf);
-}
-#else
-
-void zemu_trace(__Z_UNUSED const char *file, __Z_UNUSED uint32_t line) {}
-
-#endif
diff --git a/deps/ledger-zxlib/src/zxutils_ledger.c b/deps/ledger-zxlib/src/zxutils_ledger.c
deleted file mode 100644
index 4800665..0000000
--- a/deps/ledger-zxlib/src/zxutils_ledger.c
+++ /dev/null
@@ -1,154 +0,0 @@
-//#*******************************************************************************
-//#* (c) 2021 Zondax GmbH
-//#* (c) 2020 Ledger SAS
-//#*
-//#* Licensed under the Apache License, Version 2.0 (the "License");
-//#* you may not use this file except in compliance with the License.
-//#* You may obtain a copy of the License at
-//#*
-//#* http://www.apache.org/licenses/LICENSE-2.0
-//#*
-//#* Unless required by applicable law or agreed to in writing, software
-//#* distributed under the License is distributed on an "AS IS" BASIS,
-//#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//#* See the License for the specific language governing permissions and
-//#* limitations under the License.
-//#********************************************************************************
-#include "zxutils_ledger.h"
-
-#ifndef NULL
-#define NULL ((void *)0)
-#endif
-
-// We implement a light mechanism in order to be able to retrieve the width of
-// nano S characters, in the two possible fonts:
-// - BAGL_FONT_OPEN_SANS_EXTRABOLD_11px,
-// - BAGL_FONT_OPEN_SANS_REGULAR_11px.
-#define NANOS_FIRST_CHAR 0x20
-#define NANOS_LAST_CHAR 0x7F
-
-// OPEN_SANS_REGULAR_11PX << 4 | OPEN_SANS_EXTRABOLD_11PX
-const char nanos_characters_width[96] = {
- 3 << 4 | 3, /* code 0020 */
- 3 << 4 | 3, /* code 0021 */
- 4 << 4 | 6, /* code 0022 */
- 7 << 4 | 7, /* code 0023 */
- 6 << 4 | 6, /* code 0024 */
- 9 << 4 | 10, /* code 0025 */
- 8 << 4 | 9, /* code 0026 */
- 2 << 4 | 3, /* code 0027 */
- 3 << 4 | 4, /* code 0028 */
- 3 << 4 | 4, /* code 0029 */
- 6 << 4 | 6, /* code 002A */
- 6 << 4 | 6, /* code 002B */
- 3 << 4 | 3, /* code 002C */
- 4 << 4 | 4, /* code 002D */
- 3 << 4 | 3, /* code 002E */
- 4 << 4 | 5, /* code 002F */
- 6 << 4 | 8, /* code 0030 */
- 6 << 4 | 6, /* code 0031 */
- 6 << 4 | 7, /* code 0032 */
- 6 << 4 | 7, /* code 0033 */
- 8 << 4 | 8, /* code 0034 */
- 6 << 4 | 6, /* code 0035 */
- 6 << 4 | 8, /* code 0036 */
- 6 << 4 | 7, /* code 0037 */
- 6 << 4 | 8, /* code 0038 */
- 6 << 4 | 8, /* code 0039 */
- 3 << 4 | 3, /* code 003A */
- 3 << 4 | 3, /* code 003B */
- 6 << 4 | 5, /* code 003C */
- 6 << 4 | 6, /* code 003D */
- 6 << 4 | 5, /* code 003E */
- 5 << 4 | 6, /* code 003F */
- 10 << 4 | 10, /* code 0040 */
- 7 << 4 | 8, /* code 0041 */
- 7 << 4 | 7, /* code 0042 */
- 7 << 4 | 7, /* code 0043 */
- 8 << 4 | 8, /* code 0044 */
- 6 << 4 | 6, /* code 0045 */
- 6 << 4 | 6, /* code 0046 */
- 8 << 4 | 8, /* code 0047 */
- 8 << 4 | 8, /* code 0048 */
- 3 << 4 | 4, /* code 0049 */
- 4 << 4 | 5, /* code 004A */
- 7 << 4 | 8, /* code 004B */
- 6 << 4 | 6, /* code 004C */
- 10 << 4 | 11, /* code 004D */
- 8 << 4 | 9, /* code 004E */
- 9 << 4 | 9, /* code 004F */
- 7 << 4 | 7, /* code 0050 */
- 9 << 4 | 9, /* code 0051 */
- 7 << 4 | 8, /* code 0052 */
- 6 << 4 | 6, /* code 0053 */
- 7 << 4 | 6, /* code 0054 */
- 8 << 4 | 8, /* code 0055 */
- 7 << 4 | 6, /* code 0056 */
- 10 << 4 | 11, /* code 0057 */
- 6 << 4 | 8, /* code 0058 */
- 6 << 4 | 7, /* code 0059 */
- 6 << 4 | 7, /* code 005A */
- 4 << 4 | 5, /* code 005B */
- 4 << 4 | 5, /* code 005C */
- 4 << 4 | 5, /* code 005D */
- 6 << 4 | 7, /* code 005E */
- 5 << 4 | 6, /* code 005F */
- 6 << 4 | 7, /* code 0060 */
- 6 << 4 | 7, /* code 0061 */
- 7 << 4 | 7, /* code 0062 */
- 5 << 4 | 6, /* code 0063 */
- 7 << 4 | 7, /* code 0064 */
- 6 << 4 | 7, /* code 0065 */
- 5 << 4 | 6, /* code 0066 */
- 6 << 4 | 7, /* code 0067 */
- 7 << 4 | 7, /* code 0068 */
- 3 << 4 | 4, /* code 0069 */
- 4 << 4 | 5, /* code 006A */
- 6 << 4 | 7, /* code 006B */
- 3 << 4 | 4, /* code 006C */
- 10 << 4 | 10, /* code 006D */
- 7 << 4 | 7, /* code 006E */
- 7 << 4 | 7, /* code 006F */
- 7 << 4 | 7, /* code 0070 */
- 7 << 4 | 7, /* code 0071 */
- 4 << 4 | 5, /* code 0072 */
- 5 << 4 | 6, /* code 0073 */
- 4 << 4 | 5, /* code 0074 */
- 7 << 4 | 7, /* code 0075 */
- 6 << 4 | 7, /* code 0076 */
- 9 << 4 | 10, /* code 0077 */
- 6 << 4 | 7, /* code 0078 */
- 6 << 4 | 7, /* code 0079 */
- 5 << 4 | 6, /* code 007A */
- 4 << 4 | 5, /* code 007B */
- 6 << 4 | 6, /* code 007C */
- 4 << 4 | 5, /* code 007D */
- 6 << 4 | 6, /* code 007E */
- 7 << 4 | 6, /* code 007F */
-};
-
-unsigned short zx_compute_line_width_light(const char* text, unsigned char text_length) {
- char current_char;
- unsigned short line_width = 0;
-
- if(text == NULL) {
- return 0xFFFF;
- }
-
- // We parse the characters of the input text on all the input length.
- while (text_length--) {
- current_char = *text;
-
- if (current_char < NANOS_FIRST_CHAR || current_char > NANOS_LAST_CHAR) {
- if (current_char == '\n' || current_char == '\r') {
- break;
- }
- }
- else {
- // Regular.
- line_width += (nanos_characters_width[current_char - NANOS_FIRST_CHAR] >> 0x04) & 0x0F;
- }
- text++;
- }
- return line_width;
-}
diff --git a/deps/ledger-zxlib/templates/Makefile.root b/deps/ledger-zxlib/templates/Makefile.root
deleted file mode 100644
index 566f607..0000000
--- a/deps/ledger-zxlib/templates/Makefile.root
+++ /dev/null
@@ -1,29 +0,0 @@
-#*******************************************************************************
-#* (c) 2019 Zondax GmbH
-#*
-#* Licensed under the Apache License, Version 2.0 (the "License");
-#* you may not use this file except in compliance with the License.
-#* You may obtain a copy of the License at
-#*
-#* http://www.apache.org/licenses/LICENSE-2.0
-#*
-#* Unless required by applicable law or agreed to in writing, software
-#* distributed under the License is distributed on an "AS IS" BASIS,
-#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#* See the License for the specific language governing permissions and
-#* limitations under the License.
-#********************************************************************************
-
-# We use BOLOS_SDK to determine the development environment that is being used
-# BOLOS_SDK IS DEFINED We use the plain Makefile for Ledger
-# BOLOS_SDK NOT DEFINED We use a containerized build approach
-
-ifeq ($(BOLOS_SDK),)
-include $(CURDIR)/deps/ledger-zxlib/cmake/dockerized_build.mk
-else
-default:
- $(MAKE) -C app
-%:
- $(info "Calling app Makefile for target $@")
- COIN=$(COIN) $(MAKE) -C app $@
-endif
diff --git a/deps/ledger-zxlib/tests/asciify.cpp b/deps/ledger-zxlib/tests/asciify.cpp
deleted file mode 100644
index f54e0a0..0000000
--- a/deps/ledger-zxlib/tests/asciify.cpp
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include
-#include
-
-namespace {
- TEST(ASCIIFY, pure) {
- char input[] = "This is only ascii";
- char have[50];
-
- asciify_ext(input, have);
-
- EXPECT_STREQ(input, have);
- }
-
- TEST(ASCIIFY, ascii_below_32) {
- char input[] = "\05test";
- char want[] = ".test";
- char have[50];
-
- EXPECT_EQ(5, strlen(input));
-
- size_t ascii_len = asciify_ext(input, have);
- std::cout << have << std::endl;
-
- EXPECT_EQ(strlen(want), ascii_len);
- EXPECT_STREQ(want, have);
- }
-
- TEST(ASCIIFY, extended) {
- char input[] = "cumpleaños";
- char want[] = "cumplea.os";
- char have[50];
-
- EXPECT_EQ(11, strlen(input));
-
- size_t ascii_len = asciify_ext(input, have);
- std::cout << have << std::endl;
-
- EXPECT_EQ(strlen(want), ascii_len);
- EXPECT_STREQ(want, have);
- }
-
- TEST(ASCIIFY, utf8) {
- char input[] = "哈Something哈";
- char want[] = ".Something.";
- char have[50];
-
- EXPECT_EQ(15, strlen(input));
-
- size_t ascii_len = asciify_ext(input, have);
- std::cout << have << std::endl;
-
- EXPECT_EQ(strlen(want), ascii_len);
- EXPECT_STREQ(want, have);
- }
-
- TEST(ASCIIFY, inplace_pure) {
- char data[] = "This is only ascii";
- char want[] = "This is only ascii";
-
- asciify(data);
- EXPECT_STREQ(want, data);
- }
-
- TEST(ASCIIFY, inplace_ascii_below_32) {
- char data[] = "\05test";
- char want[] = ".test";
-
- EXPECT_EQ(5, strlen(data));
-
- size_t ascii_len = asciify(data);
- std::cout << data << std::endl;
-
- EXPECT_EQ(strlen(want), ascii_len);
- EXPECT_STREQ(want, data);
- }
-
- TEST(ASCIIFY, inplace_extended) {
- char data[] = "cumpleaños";
- char want[] = "cumplea.os";
-
- EXPECT_EQ(11, strlen(data));
-
- size_t ascii_len = asciify(data);
- std::cout << data << std::endl;
-
- EXPECT_EQ(strlen(want), ascii_len);
- EXPECT_STREQ(want, data);
- }
-
- TEST(ASCIIFY, inplace_utf8) {
- char data[] = "哈Something哈";
- char want[] = ".Something.";
-
- EXPECT_EQ(15, strlen(data));
-
- size_t ascii_len = asciify(data);
- std::cout << data << std::endl;
-
- EXPECT_EQ(strlen(want), ascii_len);
- EXPECT_STREQ(want, data);
- }
-
-}
diff --git a/deps/ledger-zxlib/tests/base64.cpp b/deps/ledger-zxlib/tests/base64.cpp
deleted file mode 100644
index af9a8e5..0000000
--- a/deps/ledger-zxlib/tests/base64.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include "base64.h"
-
-namespace {
- TEST(BASE64, basic_case) {
- char out[100];
- uint8_t data[] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19};
-
- base64_encode(out, sizeof(out), data, 0);
- EXPECT_STREQ(out, "");
-
- base64_encode(out, sizeof(out), data, 1);
- EXPECT_STREQ(out, "AQ==");
-
- base64_encode(out, sizeof(out), data, 2);
- EXPECT_STREQ(out, "AQM=");
-
- base64_encode(out, sizeof(out), data, 3);
- EXPECT_STREQ(out, "AQMF");
-
- base64_encode(out, sizeof(out), data, 4);
- EXPECT_STREQ(out, "AQMFBw==");
-
- base64_encode(out, sizeof(out), data, 5);
- EXPECT_STREQ(out, "AQMFBwk=");
-
- base64_encode(out, sizeof(out), data, 6);
- EXPECT_STREQ(out, "AQMFBwkL");
-
- base64_encode(out, sizeof(out), data, 7);
- EXPECT_STREQ(out, "AQMFBwkLDQ==");
-
- base64_encode(out, sizeof(out), data, 8);
- EXPECT_STREQ(out, "AQMFBwkLDQ8=");
-
- base64_encode(out, sizeof(out), data, 9);
- EXPECT_STREQ(out, "AQMFBwkLDQ8R");
-
- base64_encode(out, sizeof(out), data, 10);
- EXPECT_STREQ(out, "AQMFBwkLDQ8REw==");
- }
-}
diff --git a/deps/ledger-zxlib/tests/bech32.cpp b/deps/ledger-zxlib/tests/bech32.cpp
deleted file mode 100644
index 4e79141..0000000
--- a/deps/ledger-zxlib/tests/bech32.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include
-#include
-#include
-
-namespace {
- TEST(BECH32, hex_to_address) {
- char addr_out[100];
- const char *hrp = "zx";
-
- uint8_t data1[] = {1, 3, 5};
- uint8_t data2[] = {1, 3, 5, 7, 9, 11, 13};
-
- auto err = bech32EncodeFromBytes(addr_out, sizeof(addr_out), hrp, data1, sizeof(data1), 0);
- ASSERT_EQ(err, zxerr_ok);
- std::cout << addr_out << std::endl;
- ASSERT_STREQ("zx1qypse825ac", addr_out);
-
- err = bech32EncodeFromBytes(addr_out, sizeof(addr_out), hrp, data2, sizeof(data2), 0);
- ASSERT_EQ(err, zxerr_ok);
- std::cout << addr_out << std::endl;
- ASSERT_STREQ("zx1qyps2pcfpvx20dk22", addr_out);
-
- ///
- err = bech32EncodeFromBytes(addr_out, sizeof(addr_out), hrp, data1, sizeof(data1), 1);
- ASSERT_EQ(err, zxerr_ok);
- std::cout << addr_out << std::endl;
- ASSERT_STREQ("zx1qyps2ucfnzd", addr_out);
-
- err = bech32EncodeFromBytes(addr_out, sizeof(addr_out), hrp, data2, sizeof(data2), 1);
- ASSERT_EQ(err, zxerr_ok);
- std::cout << addr_out << std::endl;
- ASSERT_STREQ("zx1qyps2pcfpvxshamanz", addr_out);
- }
-
- TEST(BECH32, huge_input) {
- char addr_out[200];
- const char *hrp = "zx";
-
- auto data = std::vector(1000, 0x55);
-
- auto err = bech32EncodeFromBytes(addr_out, sizeof(addr_out), hrp, data.data(), data.size(),0);
- ASSERT_EQ(err, zxerr_out_of_bounds);
-
- std::cout << addr_out << std::endl;
- }
-
- TEST(BECH32, small_output) {
- char addr_out[1000];
- const char *hrp = "zx";
-
- auto data = std::vector(32, 0x55);
-
- MEMZERO(addr_out, sizeof(addr_out));
-
- // declare size to be smaller
- const size_t declared_size = 52;
-
- auto err = bech32EncodeFromBytes(addr_out, declared_size, hrp, data.data(), data.size(), 0);
- ASSERT_EQ(err, zxerr_buffer_too_small);
-
- for (int i = declared_size; i < sizeof(addr_out); i++) {
- ASSERT_EQ(addr_out[i], 0);
- }
-
- std::cout << addr_out << std::endl;
- }
-}
diff --git a/deps/ledger-zxlib/tests/bip44path.cpp b/deps/ledger-zxlib/tests/bip44path.cpp
deleted file mode 100644
index 807d5a6..0000000
--- a/deps/ledger-zxlib/tests/bip44path.cpp
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include
-#include
-
-namespace {
- TEST(MACROS, bip32empty) {
- char buffer[100];
- uint32_t path[] = {44, 60, 0, 0, 1};
- bip32_to_str(buffer, sizeof(buffer), path, 0);
- EXPECT_EQ("EMPTY PATH", std::string(buffer));
- }
-
- TEST(MACROS, bip32tooManyChildren) {
- char buffer[100];
- uint32_t path[] = {44, 60, 0, 0, 1};
- bip32_to_str(buffer, sizeof(buffer), path, 200);
- EXPECT_EQ("ERROR", std::string(buffer));
- }
-
- TEST(MACROS, bip32notEnoughSpaceInBuffer1) {
- char buffer[6];
- uint32_t path[] = {1234, 60, 0, 0, 1};
- bip32_to_str(buffer, sizeof(buffer), path, 5);
- EXPECT_EQ("ERROR", std::string(buffer));
- }
-
- TEST(MACROS, bip32notEnoughSpaceInBuffer2) {
- char buffer[9];
- uint32_t path[] = {1, 1, 1, 1, 1};
- bip32_to_str(buffer, sizeof(buffer), path, 5);
- EXPECT_EQ("ERROR", std::string(buffer));
- }
-
- TEST(MACROS, bip32notEnoughSpaceInBuffer3) {
- char buffer[10];
- uint32_t path[] = {1, 1, 1, 1, 0x80000001 };
- bip32_to_str(buffer, sizeof(buffer), path, 5);
- EXPECT_EQ("ERROR", std::string(buffer));
- }
-
- TEST(MACROS, bip32justEnoughSpaceInBuffer3) {
- char buffer[10];
- uint32_t path[] = {1, 1, 1, 1, 1};
- bip32_to_str(buffer, sizeof(buffer), path, 5);
- EXPECT_EQ("1/1/1/1/1", std::string(buffer));
- }
-
- TEST(MACROS, bip44path1) {
- uint32_t path[] = {44, 60, 0, 0, 1};
-
- char buffer[100];
- bip44_to_str(buffer, sizeof(buffer), path);
-
- EXPECT_EQ("44/60/0/0/1", std::string(buffer));
- }
-
- TEST(MACROS, bip44path2) {
- uint32_t path[] = {0x8000002c, 60, 0, 0, 1};
-
- char buffer[100];
- bip44_to_str(buffer, sizeof(buffer), path);
-
- EXPECT_EQ("44'/60/0/0/1", std::string(buffer));
- }
-
- TEST(MACROS, bip44path3) {
- uint32_t path[] = {0x8000002c, 60, 0, 0, 0x80000001};
-
- char buffer[100];
- bip44_to_str(buffer, sizeof(buffer), path);
-
- EXPECT_EQ("44'/60/0/0/1'", std::string(buffer));
- }
-}
diff --git a/deps/ledger-zxlib/tests/buffering_tests.cpp b/deps/ledger-zxlib/tests/buffering_tests.cpp
deleted file mode 100644
index c7292d1..0000000
--- a/deps/ledger-zxlib/tests/buffering_tests.cpp
+++ /dev/null
@@ -1,229 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "gtest/gtest.h"
-#include "buffering.h"
-
-namespace {
-
- TEST(Buffering, SmallBuffer) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- // Data is small enough to fit into ram buffer
- uint8_t small[50];
- auto num_bytes = buffering_append(small, sizeof(small));
- EXPECT_EQ(sizeof(small), num_bytes) << "Append should not return error";
-
- EXPECT_TRUE(buffering_get_ram_buffer()->in_use) << "Writing small buffer should only write to RAM";
- EXPECT_FALSE(buffering_get_flash_buffer()->in_use) << "Writing big buffer should write data to FLASH";
- EXPECT_EQ(50, buffering_get_ram_buffer()->pos) << "Wrong position of the written data in the ram buffer";
- EXPECT_EQ(100, buffering_get_ram_buffer()->size) << "Wrong size of the ram buffer";
- EXPECT_EQ(0, buffering_get_flash_buffer()->pos) << "Wrong position of the written data in the flash buffer";
- EXPECT_EQ(1000, buffering_get_flash_buffer()->size) << "Wrong size of the flash buffer";
- }
-
- TEST(Buffering, BigBuffer) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- // Data is too big to fit into ram buffer, it will be written directly to flash
- uint8_t big[500];
- auto num_bytes = buffering_append(big, sizeof(big));
- EXPECT_EQ(sizeof(big), num_bytes) << "Append should not return error";
-
- EXPECT_FALSE(buffering_get_ram_buffer()->in_use) << "Writing big buffer should write data to FLASH";
- EXPECT_TRUE(buffering_get_flash_buffer()->in_use) << "Writing big buffer should write data to FLASH";
- EXPECT_EQ(0, buffering_get_ram_buffer()->pos) << "Wrong position of the written data in the ram buffer";
- EXPECT_EQ(100, buffering_get_ram_buffer()->size) << "Wrong size of the ram buffer";
- EXPECT_EQ(500, buffering_get_flash_buffer()->pos) << "Wrong position of the written data in the flash buffer";
- EXPECT_EQ(1000, buffering_get_flash_buffer()->size) << "Wrong size of the flash buffer";
- }
-
- TEST(Buffering, SmallBufferMultipleTimesWithinRam) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- uint8_t small[40];
- auto num_bytes = buffering_append(small, sizeof(small));
- EXPECT_EQ(sizeof(small), num_bytes) << "Append should not return error";
- EXPECT_TRUE(buffering_get_ram_buffer()->in_use) << "Writing small buffer should only write to RAM";
- EXPECT_FALSE(buffering_get_flash_buffer()->in_use) << "Writing big buffer should write data to FLASH";
-
- // Here we write another chunk which should not top over the ram buffer
- buffering_append(small, sizeof(small));
- EXPECT_TRUE(buffering_get_ram_buffer()->in_use) << "Writing small buffer should only write to RAM";
- EXPECT_FALSE(buffering_get_flash_buffer()->in_use) << "Writing big buffer should write data to FLASH";
-
- EXPECT_EQ(sizeof(small) * 2, buffering_get_ram_buffer()->pos) << "Data should be written to RAM";
- EXPECT_EQ(100, buffering_get_ram_buffer()->size) << "Wrong size of the ram buffer";
- EXPECT_EQ(0, buffering_get_flash_buffer()->pos) << "Data should be written to RAM";
- EXPECT_EQ(1000, buffering_get_flash_buffer()->size) << "Wrong size of the flash buffer";
- }
-
- TEST(Buffering, SmallBufferMultipleTimesToFlash) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- uint8_t small[100];
- buffering_append(small, sizeof(small));
- EXPECT_TRUE(buffering_get_ram_buffer()->in_use) << "Writing small buffer should only write to RAM";
- EXPECT_FALSE(buffering_get_flash_buffer()->in_use) << "Writing big buffer should write data to FLASH";
-
- // Here we append another small buffer, this time we're going to exceed ram's size
- // data will be copied to nvram
- buffering_append(small, sizeof(small));
- EXPECT_FALSE(buffering_get_ram_buffer()->in_use) << "Data should be now in FLASH";
- EXPECT_TRUE(buffering_get_flash_buffer()->in_use) << "Data should be now in FLASH";
-
- EXPECT_EQ(0, buffering_get_ram_buffer()->pos) << "RAM buffer should be reset";
- EXPECT_EQ(100, buffering_get_ram_buffer()->size) << "Wrong size of the ram buffer";
- EXPECT_EQ(200, buffering_get_flash_buffer()->pos) << "Wrong position of the written data in the flash buffer";
- EXPECT_EQ(1000, buffering_get_flash_buffer()->size) << "Wrong size of the flash buffer";
- }
-
- TEST(Buffering, SmallBufferMultipleTimes_CheckData) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- uint8_t small1[100];
- for (int i = 0; i < sizeof(small1); i++) {
- small1[i] = i;
- }
- buffering_append(small1, sizeof(small1));
-
- uint8_t small2[200];
- for (int i = 0; i < sizeof(small2); i++) {
- small2[i] = 100 - i;
- }
- auto num_bytes = buffering_append(small2, sizeof(small2));
- EXPECT_EQ(sizeof(small2), num_bytes) << "Append should not return error";
-
- // In this test we want to make sure that data is not compromised.
- uint8_t *dst = buffering_get_flash_buffer()->data;
- for (int i = 0; i < sizeof(small1) + sizeof(small2); i++) {
- if (i < sizeof(small1)) {
- EXPECT_EQ(dst[i], small1[i]) << "Wrong data written to FLASH";
- } else {
- EXPECT_EQ(dst[i], small2[i - sizeof(small1)]) << "Wrong data written to FLASH";
- }
- }
- }
-
- TEST(Buffering, Reset) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- uint8_t big[1000];
- auto num_bytes = buffering_append(big, sizeof(big));
- EXPECT_EQ(sizeof(big), num_bytes) << "Append should not return error";
-
- EXPECT_FALSE(buffering_get_ram_buffer()->in_use) << "Writing big buffer should only write to FLASH";
- EXPECT_TRUE(buffering_get_flash_buffer()->in_use) << "Writing big buffer should only write to FLASH";
-
- buffering_reset();
-
- EXPECT_TRUE(buffering_get_ram_buffer()->in_use) << "After reset RAM should be enabled by default";
- EXPECT_FALSE(buffering_get_flash_buffer()->in_use) << "After reset RAM should be enabled by default";
- }
-
- TEST(Buffering, NotEnoughRoomInFlash) {
- uint8_t ram_buffer[100];
- uint8_t flash_buffer[1000];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- flash_buffer,
- sizeof(flash_buffer));
-
- uint8_t big[1101];
- auto num_bytes = buffering_append(big, sizeof(big));
- EXPECT_EQ(0, num_bytes) << "Appending outside the bounds of the buffer should return error";
- }
-
- TEST(Buffering, NoFlashOnlyRAM) {
- uint8_t ram_buffer[100];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- nullptr, 0);
-
- uint8_t small[10];
- auto num_bytes = buffering_append(small, sizeof(small));
- EXPECT_EQ(10, num_bytes) << "Could not add to RAM";
-
- num_bytes = buffering_append(small, sizeof(small));
- EXPECT_EQ(10, num_bytes) << "Could not add to RAM";
-
- num_bytes = buffering_append(small, sizeof(small));
- EXPECT_EQ(10, num_bytes) << "Could not add to RAM";
-
- auto state = buffering_get_buffer();
- EXPECT_EQ(30, state->pos) << "Invalid buffer size";
-
- uint8_t small2[70];
- num_bytes = buffering_append(small2, sizeof(small2));
- EXPECT_EQ(70, num_bytes);
-
- state = buffering_get_buffer();
- EXPECT_EQ(100, state->pos) << "Invalid buffer size";
-
- num_bytes = buffering_append(small, sizeof(small));
- EXPECT_EQ(0, num_bytes) << "Could add to RAM when it should have been impossible";
- }
-
- TEST(Buffering, NoFlash) {
- uint8_t ram_buffer[100];
-
- buffering_init(ram_buffer,
- sizeof(ram_buffer),
- nullptr, 0);
-
- uint8_t big[1101];
- auto num_bytes = buffering_append(big, sizeof(big));
- EXPECT_EQ(0, num_bytes) << "Appending outside the bounds of the buffer should return error";
- }
-}
diff --git a/deps/ledger-zxlib/tests/doubledabble.cpp b/deps/ledger-zxlib/tests/doubledabble.cpp
deleted file mode 100644
index 4b7b048..0000000
--- a/deps/ledger-zxlib/tests/doubledabble.cpp
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************
-* (c) 2019 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "gmock/gmock.h"
-
-#include
-#include "bignum.h"
-
-using ::testing::TestWithParam;
-using ::testing::Values;
-
-typedef struct {
- std::string hex;
- std::string expectedOutput;
-} bignum_testcase_t;
-
-class BignumLittleEndianTests : public ::testing::TestWithParam {
-};
-
-class BignumBigEndianTests : public ::testing::TestWithParam {
-};
-
-INSTANTIATE_TEST_SUITE_P
-
-(
- BignumTestCases, BignumLittleEndianTests, testing::Values(
- bignum_testcase_t{"00", "0"},
- bignum_testcase_t{"01", "1"},
- bignum_testcase_t{"0001", "256"},
- bignum_testcase_t{"03E8", "59395"},
- bignum_testcase_t{"E803", "1000"},
- bignum_testcase_t{"10", "16"},
- bignum_testcase_t{"FF01", "511"},
- bignum_testcase_t{"0102", "513"},
- bignum_testcase_t{"FFFF01", "131071"},
- bignum_testcase_t{"a08601", "100000"},
- bignum_testcase_t{"40420f", "1000000"},
- bignum_testcase_t{"809698", "10000000"},
- bignum_testcase_t{"002d3101", "20000000"},
- bignum_testcase_t{"00e1f505", "100000000"},
- bignum_testcase_t{"00407a10f35a", "100000000000000"},
- bignum_testcase_t{"d2029649", "1234567890"},
- bignum_testcase_t{"d20a3fce96f1cf8c9cb4378c37a4873f17621ebce404f5aa13",
- "123456789012345678901234567890123456789012345678901234567890"}
-));
-
-// Check that bignums are printed properly (parametric tests)
-TEST_P(BignumLittleEndianTests, print) {
- auto testcase = GetParam();
-
- uint8_t inBuffer[100];
- auto inBufferLen = parseHexString(inBuffer, sizeof(inBuffer), testcase.hex.c_str());
-
- uint8_t bcdOut[100];
- uint16_t bcdOutLen = sizeof(bcdOut);
-
- bignumLittleEndian_to_bcd(bcdOut, bcdOutLen, inBuffer, static_cast(inBufferLen));
-
- char bufferUI[300];
- bignumLittleEndian_bcdprint(bufferUI, sizeof(bufferUI), bcdOut, bcdOutLen);
- EXPECT_THAT(std::string(bufferUI), testing::Eq(testcase.expectedOutput));
-}
-
-// Check that bignums are printed properly (range tests)
-TEST(BignumLittleEndianTests, range) {
- uint8_t inBuffer[100];
-
- for (uint64_t i = 0; i < 10000; i++) {
- std::stringstream s;
- uint64_t tmp = i;
- while (tmp != 0) {
- s << std::setfill('0') << std::setw(2) << std::hex << tmp % 256;
- tmp /= 256;
- }
- auto inBufferLen = parseHexString(inBuffer, sizeof(inBuffer), s.str().c_str());
-
- uint8_t bcdOut[100];
- uint16_t bcdOutLen = sizeof(bcdOut);
- bignumLittleEndian_to_bcd(bcdOut, bcdOutLen, inBuffer, static_cast(inBufferLen));
- char bufferUI[300];
- bignumLittleEndian_bcdprint(bufferUI, sizeof(bufferUI), bcdOut, bcdOutLen);
-
- std::stringstream expected;
- expected << i;
- EXPECT_THAT(std::string(bufferUI), testing::Eq(expected.str())) << s.str();
- }
-}
-
-INSTANTIATE_TEST_SUITE_P
-
-(
- BignumTestCases, BignumBigEndianTests, testing::Values(
- bignum_testcase_t{"00", "0"},
- bignum_testcase_t{"01", "1"},
- bignum_testcase_t{"0001", "1"},
- bignum_testcase_t{"000001", "1"},
- bignum_testcase_t{"03E8", "1000"},
- bignum_testcase_t{"E803", "59395"},
- bignum_testcase_t{"10", "16"},
- bignum_testcase_t{"FF01", "65281"},
- bignum_testcase_t{"01FF", "511"},
- bignum_testcase_t{"0102", "258"},
- bignum_testcase_t{"FFFF01", "16776961"},
- bignum_testcase_t{"a08601", "10520065"},
- bignum_testcase_t{"40420f", "4211215"},
- bignum_testcase_t{"809698", "8427160"},
- bignum_testcase_t{"002d3101", "2961665"},
- bignum_testcase_t{"00e1f505", "14808325"},
- bignum_testcase_t{"00407a10f35a", "276925838170"},
- bignum_testcase_t{"d2029649", "3523384905"},
- bignum_testcase_t{"d20a3fce96f1cf8c9cb4378c37a4873f17621ebce404f5aa13",
- "1318442675213289749221432902819395197389189473307425559128595"}
-));
-
-// Check that bignums are printed properly (parametric tests)
-TEST_P(BignumBigEndianTests, print) {
- auto testcase = GetParam();
-
- uint8_t inBuffer[100];
- auto inBufferLen = parseHexString(inBuffer, sizeof(inBuffer), testcase.hex.c_str());
-
- uint8_t bcdOut[100];
- uint16_t bcdOutLen = sizeof(bcdOut);
- bignumBigEndian_to_bcd(bcdOut, bcdOutLen, inBuffer, static_cast(inBufferLen));
-
- char bufferUI[300];
- bignumBigEndian_bcdprint(bufferUI, sizeof(bufferUI), bcdOut, bcdOutLen);
- EXPECT_THAT(std::string(bufferUI), testing::Eq(testcase.expectedOutput));
-}
-
-// Check that bignums are printed properly (range tests)
-TEST(BignumBigEndianTests, range) {
- uint8_t inBuffer[100];
-
- for (uint64_t i = 0; i < 2500; i += 7) {
- std::stringstream s;
- s << std::setfill('0') << std::setw(10) << std::hex << i;
- std::cout << s.str() << std::endl;
- auto inBufferLen = parseHexString(inBuffer, sizeof(inBuffer), s.str().c_str());
-
- uint8_t bcdOut[100];
- uint16_t bcdOutLen = sizeof(bcdOut);
- bignumBigEndian_to_bcd(bcdOut, bcdOutLen, inBuffer, static_cast(inBufferLen));
- char bufferUI[300];
- bignumBigEndian_bcdprint(bufferUI, sizeof(bufferUI), bcdOut, bcdOutLen);
-
- std::stringstream expected;
- expected << i;
- EXPECT_THAT(std::string(bufferUI), testing::Eq(expected.str())) << s.str();
- }
-}
diff --git a/deps/ledger-zxlib/tests/hexutils.cpp b/deps/ledger-zxlib/tests/hexutils.cpp
deleted file mode 100644
index e9d3ae4..0000000
--- a/deps/ledger-zxlib/tests/hexutils.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "gmock/gmock.h"
-
-#include
-
-#include "hexutils.h"
-
-TEST(HEXUTILS, parseHexString) {
- char s[] = "1234567890";
- uint8_t data[100];
-
- auto length = parseHexString(data, sizeof(data), s);
-
- ASSERT_THAT(length, testing::Eq(5));
-
- ASSERT_THAT(data[0], testing::Eq(0x12));
- ASSERT_THAT(data[1], testing::Eq(0x34));
- ASSERT_THAT(data[2], testing::Eq(0x56));
- ASSERT_THAT(data[3], testing::Eq(0x78));
- ASSERT_THAT(data[4], testing::Eq(0x90));
-}
-
-TEST(HEXUTILS, parseHexString2) {
- char s[] = "be333be7ee";
- uint8_t data[100];
-
- auto length = parseHexString(data, sizeof(data), s);
-
- ASSERT_THAT(length, testing::Eq(5));
-
- ASSERT_THAT(data[0], testing::Eq(0xbe));
- ASSERT_THAT(data[1], testing::Eq(0x33));
- ASSERT_THAT(data[2], testing::Eq(0x3b));
- ASSERT_THAT(data[3], testing::Eq(0xe7));
- ASSERT_THAT(data[4], testing::Eq(0xee));
-}
diff --git a/deps/ledger-zxlib/tests/macros.cpp b/deps/ledger-zxlib/tests/macros.cpp
deleted file mode 100644
index a4a2e86..0000000
--- a/deps/ledger-zxlib/tests/macros.cpp
+++ /dev/null
@@ -1,502 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include
-#include
-
-namespace {
- TEST(FORMAT, array_to_hexstr) {
- uint8_t array1[] = {1, 3, 5};
-
- char output[20];
- memset(output, 1, 20);
-
- array_to_hexstr(output, sizeof(output), array1, sizeof(array1));
- EXPECT_EQ(memcmp(output, "010305", 2 * sizeof(array1)), 0);
- EXPECT_EQ(output[2 * sizeof(array1)], 0);
- }
-
- TEST(FORMAT, fpuint64_to_str) {
- char output[100];
- printf("\n");
-
- fpuint64_to_str(output, sizeof(output), 123, 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.00123");
-
- fpuint64_to_str(output, sizeof(output), 1234, 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.01234");
-
- fpuint64_to_str(output, sizeof(output), 12345, 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.12345");
-
- fpuint64_to_str(output, sizeof(output), 123456, 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "1.23456");
-
- fpuint64_to_str(output, sizeof(output), 1234567, 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "12.34567");
- }
-
- TEST(FORMAT, fpstr_to_str) {
- char output[100];
- printf("\n");
-
- fpstr_to_str(output, sizeof(output), "", 0);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0");
-
- fpstr_to_str(output, sizeof(output), "1", 0);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "1");
-
- fpstr_to_str(output, sizeof(output), "123", 0);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "123");
-
- fpstr_to_str(output, sizeof(output), "", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.00000");
-
- fpstr_to_str(output, sizeof(output), "0", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.00000");
-
- fpstr_to_str(output, sizeof(output), "123", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.00123");
-
- fpstr_to_str(output, sizeof(output), "1234", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.01234");
-
- fpstr_to_str(output, sizeof(output), "12345", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.12345");
-
- fpstr_to_str(output, sizeof(output), "123456", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "1.23456");
-
- fpstr_to_str(output, sizeof(output), "1234567", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "12.34567");
- }
-
- TEST(FORMAT, fpstr_to_str_BAD_zeros) {
- char output[8];
- printf("\n");
-
- fpstr_to_str(output, sizeof(output), "", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.00000");
-
- fpstr_to_str(output, sizeof(output), "", 6);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "", 7);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "", 8);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
- }
-
- TEST(FORMAT, fpstr_to_str_BAD_short) {
- char output[8];
- printf("\n");
-
- fpstr_to_str(output, sizeof(output), "123", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "0.00123");
-
- fpstr_to_str(output, sizeof(output), "123", 6);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "123", 7);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "123", 8);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
- }
-
- TEST(FORMAT, fpstr_to_str_BAD_long) {
- char output[8];
- printf("\n");
-
- fpstr_to_str(output, sizeof(output), "123456", 5);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "1.23456");
-
- fpstr_to_str(output, sizeof(output), "123456", 6);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "123456", 7);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "12345", 7);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "12345", 2);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "123.45");
-
- fpstr_to_str(output, sizeof(output), "123456", 2);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "1234.56");
-
- fpstr_to_str(output, sizeof(output), "1234567", 2);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "12345678", 2);
- printf("%10s\n", output);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "1234567890", 0);
- EXPECT_EQ(std::string(output), "ERR");
-
- fpstr_to_str(output, sizeof(output), "123456", 0);
- EXPECT_EQ(std::string(output), "123456");
- }
-
- TEST(FORMAT, fpuint64_to_str_zeros) {
- char output[100];
- printf("\n");
-
- fpuint64_to_str(output, sizeof(output), 0, 9);
- printf("%11s\n", output);
- EXPECT_EQ(std::string(output), "0.000000000");
-
- fpuint64_to_str(output, sizeof(output), 0, 1);
- printf("%11s\n", output);
- EXPECT_EQ(std::string(output), "0.0");
-
- fpuint64_to_str(output, sizeof(output), 1, 1);
- printf("%11s\n", output);
- EXPECT_EQ(std::string(output), "0.1");
-
- fpuint64_to_str(output, sizeof(output), 10, 1);
- printf("%11s\n", output);
- EXPECT_EQ(std::string(output), "1.0");
- }
-
- TEST(FORMAT, number_trimming) {
- char output[100];
-
- snprintf(output, sizeof(output), "0");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "0");
-
- snprintf(output, sizeof(output), "10");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "10");
-
- snprintf(output, sizeof(output), "10.10");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "10.1");
-
- snprintf(output, sizeof(output), "0.0");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "0.0");
-
- snprintf(output, sizeof(output), "0.00");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "0.0");
-
- snprintf(output, sizeof(output), "0.01");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "0.01");
-
- snprintf(output, sizeof(output), "0.010");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "0.01");
-
- snprintf(output, sizeof(output), "0.010000");
- number_inplace_trimming(output, 1);
- EXPECT_EQ(std::string(output), "0.01");
- }
-
- TEST(FORMAT, intstr_to_fpstr_inplace_trimming_leading) {
- char number[100];
- printf("\n");
-
- snprintf(number, sizeof(number), "0");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "0");
-
- snprintf(number, sizeof(number), "00");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "0");
-
- snprintf(number, sizeof(number), "0000");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "0");
-
- snprintf(number, sizeof(number), "00001");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "1");
-
- snprintf(number, sizeof(number), "000011");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "11");
-
- snprintf(number, sizeof(number), "10000");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "10000");
- }
-
- TEST(FORMAT, intstr_to_fpstr_inplace_empty) {
- char number[100];
- printf("\n");
-
- MEMZERO(number, sizeof(number));
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "0");
-
- MEMZERO(number, sizeof(number));
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "0.00000");
-
- MEMZERO(number, sizeof(number));
- intstr_to_fpstr_inplace(number, sizeof(number), 10);
- EXPECT_EQ(std::string(number), "0.0000000000");
- }
-
- TEST(FORMAT, intstr_to_fpstr_inplace) {
- char number[100];
- printf("\n");
-
- snprintf(number, sizeof(number), "1");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "1");
-
- snprintf(number, sizeof(number), "123");
- intstr_to_fpstr_inplace(number, sizeof(number), 0);
- EXPECT_EQ(std::string(number), "123");
-
- snprintf(number, sizeof(number), "0");
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "0.00000");
-
- snprintf(number, sizeof(number), "123");
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "0.00123");
-
- snprintf(number, sizeof(number), "1234");
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "0.01234");
-
- snprintf(number, sizeof(number), "12345");
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "0.12345");
-
- snprintf(number, sizeof(number), "123456");
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "1.23456");
-
- snprintf(number, sizeof(number), "1234567");
- intstr_to_fpstr_inplace(number, sizeof(number), 5);
- EXPECT_EQ(std::string(number), "12.34567");
- }
-
- TEST(INT64_TO_STR, Zero) {
- char temp[10];
- const char *error = int64_to_str(temp, sizeof(temp), int64_t(0));
- EXPECT_STREQ(temp, "0");
- EXPECT_TRUE(error == nullptr);
- }
-
- TEST(INT64_TO_STR, Positive_1234) {
- char temp[10];
- const char *error = int64_to_str(temp, sizeof(temp), int64_t(1234));
- EXPECT_STREQ(temp, "1234");
- EXPECT_TRUE(error == nullptr);
- }
-
- TEST(INT64_TO_STR, Negative_1234) {
- char temp[10];
- const char *error = int64_to_str(temp, sizeof(temp), int64_t(-1234));
- EXPECT_STREQ(temp, "-1234");
- EXPECT_TRUE(error == nullptr);
- }
-
- TEST(INT64_TO_STR, TooSmall_0) {
- char temp[1];
- const char *error = int64_to_str(temp, sizeof(temp), int64_t(0));
- EXPECT_STREQ("Buffer too small", error);
- }
-
- TEST(INT64_TO_STR, FitsJust) {
- char temp[4];
- const char *error = int64_to_str(temp, sizeof(temp), int64_t(999));
- EXPECT_STREQ(temp, "999");
- EXPECT_TRUE(error == nullptr);
- }
-
- TEST(INT64_TO_STR, TooSmall_10) {
- char temp[2];
- const char *error = int64_to_str(temp, sizeof(temp), int64_t(10));
- EXPECT_STREQ("Buffer too small", error);
- }
-
- TEST(INT64_TO_STR, Max) {
- char temp[20];
- const char *error = int64_to_str(temp, sizeof(temp), std::numeric_limits::max());
- EXPECT_STREQ(temp, "9223372036854775807");
- EXPECT_TRUE(error == nullptr);
- }
-
- TEST(INT64_TO_STR, Min) {
- char temp[21];
- const char *error = int64_to_str(temp, sizeof(temp), std::numeric_limits::min());
- EXPECT_STREQ(temp, "-9223372036854775808");
- EXPECT_TRUE(error == nullptr);
- }
-
- TEST(STR_TO_INT8, Min) {
- char numberStr[] = "-128";
- char error = 0;
- int8_t number = str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(-128, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT8, Max) {
- char numberStr[] = "127";
- char error = 0;
- int8_t number = str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(127, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT8, Zero) {
- char numberStr[] = "0";
- char error = 0;
- int8_t number = str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(0, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT8, Hundred) {
- char numberStr[] = "100";
- char error = 0;
- int8_t number = str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(100, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT8, NegHundred) {
- char numberStr[] = "-100";
- char error = 0;
- int8_t number = str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(-100, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT8, OutsideBoundsPositive) {
- char numberStr[] = "128";
- char error = 0;
- str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(1, error);
- }
-
- TEST(STR_TO_INT8, OutsideBoundsNegative) {
- char numberStr[] = "-129";
- char error = 0;
- str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(1, error);
- }
-
- TEST(STR_TO_INT8, DummyData_Positive) {
- char numberStr[] = "100b0";
- char error = 0;
- str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(1, error);
- }
-
- TEST(STR_TO_INT8, DummyData_Negative) {
- char numberStr[] = "-1002xx";
- char error = 0;
- str_to_int8(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(1, error);
- }
-
- TEST(STR_TO_INT64, Min) {
- char numberStr[] = "-9223372036854775807";
- char error = 0;
- int64_t number = str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(-9223372036854775807, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT64, Max) {
- char numberStr[] = "9223372036854775807";
- char error = 0;
- int64_t number = str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(9223372036854775807, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT64, Zero) {
- char numberStr[] = "0";
- char error = 0;
- int64_t number = str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(0, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT64, Hundred) {
- char numberStr[] = "100";
- char error = 0;
- int64_t number = str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(100, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT64, NegHundred) {
- char numberStr[] = "-100";
- char error = 0;
- int64_t number = str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(-100, number);
- EXPECT_EQ(0, error);
- }
-
- TEST(STR_TO_INT64, DummyData_Positive) {
- char numberStr[] = "100b0";
- char error = 0;
- str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(1, error);
- }
-
- TEST(STR_TO_INT64, DummyData_Negative) {
- char numberStr[] = "-1002xx";
- char error = 0;
- str_to_int64(numberStr, numberStr + strlen(numberStr), &error);
- EXPECT_EQ(1, error);
- }
-}
diff --git a/deps/ledger-zxlib/tests/sigutils.cpp b/deps/ledger-zxlib/tests/sigutils.cpp
deleted file mode 100644
index 21fde60..0000000
--- a/deps/ledger-zxlib/tests/sigutils.cpp
+++ /dev/null
@@ -1,133 +0,0 @@
-/*******************************************************************************
-* (c) 2020 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-
-#include "gmock/gmock.h"
-#include
-#include
-#include
-#include
-
-#include "sigutils.h"
-
-TEST(SIGUTILS, convertBasic) {
- char inSignatureDERStr[] = "304402206878b5690514437a2342405029426cc2b25b4a03fc396fef845d656cf62bad2c022018610a8d37e3384245176ab49ddbdbe8da4133f661bf5ea7ad4e3d2b912d856f01";
- auto inSignatureDER = std::vector(71);
-
- auto length = parseHexString(inSignatureDER.data(), inSignatureDER.size(), inSignatureDERStr);
- EXPECT_EQ(length, sizeof(inSignatureDERStr) / 2);
-
- uint8_t R[32];
- uint8_t S[32];
- uint8_t V;
-
- auto ret = convertDERtoRSV(inSignatureDER.data(), 0, R, S, &V);
- EXPECT_EQ(ret, 0);
-
- char inSignatureDERStr_R[] = "6878b5690514437a2342405029426cc2b25b4a03fc396fef845d656cf62bad2c";
- char inSignatureDERStr_S[] = "18610a8d37e3384245176ab49ddbdbe8da4133f661bf5ea7ad4e3d2b912d856f";
- auto inSignatureDER_R = std::vector(32);
- auto inSignatureDER_S = std::vector(32);
- parseHexString(inSignatureDER_R.data(), inSignatureDER_R.size(), inSignatureDERStr_R);
- parseHexString(inSignatureDER_S.data(), inSignatureDER_S.size(), inSignatureDERStr_S);
-
- EXPECT_THAT(R, ::testing::ElementsAreArray(inSignatureDER_R));
- EXPECT_THAT(S, ::testing::ElementsAreArray(inSignatureDER_S));
-}
-
-TEST(SIGUTILS, convertBasic2) {
- char inSignatureDERStr[] = "30430220035942178e9e8d447cf9e6886f99c41bf942fb2880fd79aa2d4626489ec7821b021f6b3277dea0355c161d20a120ec9165500b5c9a2cd0fce1c4b8a5260bf6831f";
- auto inSignatureDER = std::vector(71);
-
- auto length = parseHexString(inSignatureDER.data(), inSignatureDER.size(), inSignatureDERStr);
- EXPECT_EQ(length, sizeof(inSignatureDERStr) / 2);
-
- uint8_t R[32];
- uint8_t S[32];
- uint8_t V;
-
- auto ret = convertDERtoRSV(inSignatureDER.data(), 0, R, S, &V);
- EXPECT_EQ(ret, 0);
-
- char inSignatureDERStr_R[] = "035942178e9e8d447cf9e6886f99c41bf942fb2880fd79aa2d4626489ec7821b";
- char inSignatureDERStr_S[] = "006b3277dea0355c161d20a120ec9165500b5c9a2cd0fce1c4b8a5260bf6831f";
- auto inSignatureDER_R = std::vector(32);
- auto inSignatureDER_S = std::vector(32);
- parseHexString(inSignatureDER_R.data(), inSignatureDER_R.size(), inSignatureDERStr_R);
- parseHexString(inSignatureDER_S.data(), inSignatureDER_S.size(), inSignatureDERStr_S);
-
- char buffer[100];
- array_to_hexstr(buffer, sizeof(buffer), R, (int16_t) sizeof(R));
- std::cout << buffer << std::endl;
- array_to_hexstr(buffer, sizeof(buffer), S, (int16_t) sizeof(S));
- std::cout << buffer << std::endl;
-
- EXPECT_THAT(R, ::testing::ElementsAreArray(inSignatureDER_R));
- EXPECT_THAT(S, ::testing::ElementsAreArray(inSignatureDER_S));
-}
-
-TEST(SIGUTILS, convertBasic3) {
- char inSignatureDERStr[] = "3045022100e9b508a9cd66410b43992c01622cf9e1a6aa1353d836d7f428a6d1317f96f27d02200ca01cee5480388bad3802c08e0bcf357c091f3a5921e1e5d1e0e115dd14ff23";
- auto inSignatureDER = std::vector(71);
-
- auto length = parseHexString(inSignatureDER.data(), inSignatureDER.size(), inSignatureDERStr);
- EXPECT_EQ(length, sizeof(inSignatureDERStr) / 2);
-
- uint8_t R[32];
- uint8_t S[32];
- uint8_t V;
-
- auto ret = convertDERtoRSV(inSignatureDER.data(), 0, R, S, &V);
- EXPECT_EQ(ret, 0);
-
- char inSignatureDERStr_R[] = "e9b508a9cd66410b43992c01622cf9e1a6aa1353d836d7f428a6d1317f96f27d";
- char inSignatureDERStr_S[] = "0ca01cee5480388bad3802c08e0bcf357c091f3a5921e1e5d1e0e115dd14ff23";
- auto inSignatureDER_R = std::vector(32);
- auto inSignatureDER_S = std::vector(32);
- parseHexString(inSignatureDER_R.data(), inSignatureDER_R.size(), inSignatureDERStr_R);
- parseHexString(inSignatureDER_S.data(), inSignatureDER_S.size(), inSignatureDERStr_S);
-
- EXPECT_THAT(R, ::testing::ElementsAreArray(inSignatureDER_R));
- EXPECT_THAT(S, ::testing::ElementsAreArray(inSignatureDER_S));
-}
-
-TEST(SIGUTILS, convertShort1) {
- char inSignatureDERStr[] = "3041021e544670fe5627f2d483484582284f627d9cfd1e0ab123984e81611a8da4fc021f6d99f9afd3c4fa62cee8dff21786f9c23c8d2f524d8fd363acc6c6567dc380";
- char inSignatureDERStr_R[] = "0000544670fe5627f2d483484582284f627d9cfd1e0ab123984e81611a8da4fc";
- char inSignatureDERStr_S[] = "006d99f9afd3c4fa62cee8dff21786f9c23c8d2f524d8fd363acc6c6567dc380";
-
- auto inSignatureDER = std::vector(sizeof(inSignatureDERStr));
-
- auto length = parseHexString(inSignatureDER.data(), inSignatureDER.size(), inSignatureDERStr);
- EXPECT_EQ(length, sizeof(inSignatureDERStr) / 2);
-
- uint8_t R[32];
- uint8_t S[32];
- uint8_t V;
-
- auto ret = convertDERtoRSV(inSignatureDER.data(), 0, R, S, &V);
- EXPECT_EQ(ret, 0);
-
-
- char R_str[200];
- char S_str[200];
- array_to_hexstr(R_str, sizeof(R_str), R, 32);
- std::cout << R_str << std::endl;
- array_to_hexstr(S_str, sizeof(S_str), S, 32);
- std::cout << S_str << std::endl;
-
- EXPECT_STREQ(R_str, inSignatureDERStr_R);
- EXPECT_STREQ(S_str, inSignatureDERStr_S);
-}
diff --git a/deps/ledger-zxlib/tests/zxformat.cpp b/deps/ledger-zxlib/tests/zxformat.cpp
deleted file mode 100644
index 3ad7b24..0000000
--- a/deps/ledger-zxlib/tests/zxformat.cpp
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
-* (c) 2018 Zondax GmbH
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-********************************************************************************/
-#include
-#include
-#include
-
-namespace {
- TEST(FORMAT, nothingAdded) {
- char buffer[10];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("");
-
- EXPECT_EQ(zxerr_ok, z_str3join(buffer, sizeof(buffer), prefix.c_str(), ""));
- EXPECT_STREQ(buffer, "TEST");
- }
-
- TEST(FORMAT, noPrefix) {
- char buffer[10];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("");
- auto suffix = std::string("1");
-
- EXPECT_EQ(zxerr_ok, z_str3join(buffer, sizeof(buffer), prefix.c_str(), suffix.c_str()));
- EXPECT_STREQ(buffer, "TEST1");
- }
-
- TEST(FORMAT, prefixSimple) {
- char buffer[10];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("xyz ");
- auto suffix = std::string("1");
-
- EXPECT_EQ(zxerr_ok, z_str3join(buffer, sizeof(buffer), prefix.c_str(), suffix.c_str()));
- EXPECT_STREQ(buffer, "xyz TEST1");
- }
-
- TEST(FORMAT, limitBuffer0) {
- char buffer[10];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("xyz");
- auto suffix = std::string("4");
-
- EXPECT_EQ(zxerr_ok, z_str3join(buffer, sizeof(buffer), prefix.c_str(), suffix.c_str()));
- EXPECT_STREQ(buffer, "xyzTEST4");
- }
-
- TEST(FORMAT, limitBuffer1) {
- char buffer[9];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("xyz");
- auto suffix = std::string("4");
-
- EXPECT_EQ(zxerr_ok, z_str3join(buffer, sizeof(buffer), prefix.c_str(), suffix.c_str()));
- EXPECT_STREQ(buffer, "xyzTEST4");
- }
-
- TEST(FORMAT, limitBuffer2) {
- char buffer[8];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("xyz");
- auto suffix = std::string("4");
-
- EXPECT_EQ(zxerr_buffer_too_small, z_str3join(buffer, sizeof(buffer), prefix.c_str(), suffix.c_str()));
- EXPECT_STREQ(buffer, "ERR???");
- }
-
- TEST(FORMAT, smallBuffer) {
- char buffer[7];
-
- snprintf(buffer, sizeof(buffer), "TEST");
- auto prefix = std::string("xyz");
- auto suffix = std::string("4");
-
- EXPECT_EQ(zxerr_buffer_too_small, z_str3join(buffer, sizeof(buffer), prefix.c_str(), suffix.c_str()));
- EXPECT_STREQ(buffer, "ERR???");
- }
-
-}
diff --git a/deps/nanos-secure-sdk b/deps/nanos-secure-sdk
index 1c16f9a..026a1f5 160000
--- a/deps/nanos-secure-sdk
+++ b/deps/nanos-secure-sdk
@@ -1 +1 @@
-Subproject commit 1c16f9ad50f792c62a948aacb650258660f262cb
+Subproject commit 026a1f5cf55e68f74062cb2795804f9b4554ea15
diff --git a/deps/nanosplus-secure-sdk b/deps/nanosplus-secure-sdk
index 9da334c..c2a17eb 160000
--- a/deps/nanosplus-secure-sdk
+++ b/deps/nanosplus-secure-sdk
@@ -1 +1 @@
-Subproject commit 9da334cdcde521bc54d0a50172e167a09f94eec5
+Subproject commit c2a17ebe62395d7a7a36658bf4bec952c08d0df3
diff --git a/deps/nanox-secure-sdk b/deps/nanox-secure-sdk
index ba45af7..86324f6 160000
--- a/deps/nanox-secure-sdk
+++ b/deps/nanox-secure-sdk
@@ -1 +1 @@
-Subproject commit ba45af7f4208b6c02ac35fb0d43a914228febd56
+Subproject commit 86324f6a73e269c04f6a3e3cf41f6569a8cc6c6b
diff --git a/docs/supported_3.5000001.x.md b/docs/supported_3.5000001.x.md
new file mode 100644
index 0000000..c9ad4fb
--- /dev/null
+++ b/docs/supported_3.5000001.x.md
@@ -0,0 +1,545 @@
+# Polymesh 3.5000001.x
+
+## System
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Fill block | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` ratio
|
+|Remark | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` remark
|
+|Set heap pages | | :heavy_check_mark: | :heavy_check_mark: | `u64` pages
|
+|Set code | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` code
|
+|Set code without checks | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` code
|
+|Set storage | | | | `VecKeyValue` items
|
+|Kill storage | | | | `VecKey` keys
|
+|Kill prefix | | | | `Key` prefix
`u32` subkeys
|
+|Remark with event | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` remark
|
+
+## Babe
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Report equivocation | | | | `BoxEquivocationProofHeader` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation unsigned | | | | `BoxEquivocationProofHeader` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Plan config change | | | | `NextConfigDescriptor` config
|
+
+## Timestamp
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set | | :heavy_check_mark: | :heavy_check_mark: | `Compactu64` now
|
+
+## Indices
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Claim | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new_
`AccountIndex` index
|
+|Free | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Force transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new_
`AccountIndex` index
`bool` freeze
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+
+## Authorship
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set uncles | | | | `VecHeader` new_uncles
|
+
+## Balances
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Transfer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
|
+|Transfer with memo | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
`OptionMemo` memo
|
+|Deposit block reward reserve balance | | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Set balance | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` who
`CompactBalance` new_free
`CompactBalance` new_reserved
|
+|Force transfer | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` source
`LookupasStaticLookupSource` dest
`CompactBalance` amount
|
+|Burn account balance | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
+
+## Identity
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Cdd register did | | | | `AccountId` target_account
`VecSecondaryKeyAccountId` secondary_keys
|
+|Invalidate cdd claims | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` cdd
`Moment` disable_from
`OptionMoment` expiry
|
+|Remove secondary keys old | | | | `VecSignatoryAccountId` keys_to_remove
|
+|Accept primary key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` rotation_auth_id
`Optionu64` optional_cdd_auth_id
|
+|Change cdd requirement for mk rotation | | :heavy_check_mark: | :heavy_check_mark: | `bool` auth_required
|
+|Join identity as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Leave identity as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Add claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`OptionMoment` expiry
|
+|Revoke claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
|
+|Set permission to signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` key
`Permissions` perms
|
+|Placeholder legacy set permission to signer | | :heavy_check_mark: | | |
+|Freeze secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Unfreeze secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Add authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` target
`AuthorizationDataAccountId` data
`OptionMoment` expiry
|
+|Remove authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` target
`u64` auth_id
`bool` _auth_issuer_pays
|
+|Add secondary keys with authorization old | | | | `VecSecondaryKeyWithAuthV1AccountId` additional_keys
`Moment` expires_at
|
+|Add investor uniqueness claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`InvestorZKProofData` proof
`OptionMoment` expiry
|
+|Gc add cdd claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
+|Gc revoke cdd claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
+|Add investor uniqueness claim v2 | | | | `IdentityId` target
`Scope` scope
`Claim` claim
`ScopeClaimProof` proof
`OptionMoment` expiry
|
+|Revoke claim by index | | :heavy_check_mark: | | `IdentityId` target
`ClaimType` claim_type
`OptionScope` scope
|
+|Rotate primary key to secondary | | :heavy_check_mark: | | `u64` auth_id
`Optionu64` optional_cdd_auth_id
|
+|Add secondary keys with authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecSecondaryKeyWithAuthAccountId` additional_keys
`Moment` expires_at
|
+|Set secondary key permissions | | :heavy_check_mark: | | `AccountId` key
`Permissions` perms
|
+|Remove secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` keys_to_remove
|
+
+## CddServiceProviders
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
+
+## PolymeshCommittee
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+
+## CommitteeMembership
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
+
+## TechnicalCommittee
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+
+## TechnicalCommitteeMembership
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
+
+## UpgradeCommittee
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+
+## UpgradeCommitteeMembership
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
+
+## MultiSig
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Create multisig | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecSignatoryAccountId` signers
`u64` sigs_required
|
+|Create or approve proposal as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Create or approve proposal as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Create proposal as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Create proposal as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Proposal` proposal
`OptionMoment` expiry
`bool` auto_close
|
+|Approve as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Approve as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Reject as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Reject as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
|
+|Accept multisig signer as identity | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Accept multisig signer as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Add multisig signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` signer
|
+|Remove multisig signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` signer
|
+|Add multisig signers via creator | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`VecSignatoryAccountId` signers
|
+|Remove multisig signers via creator | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`VecSignatoryAccountId` signers
|
+|Change sigs required | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` sigs_required
|
+|Make multisig secondary | | :heavy_check_mark: | | `AccountId` multisig
|
+|Make multisig primary | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`Optionu64` optional_cdd_auth_id
|
+|Execute scheduled proposal | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `AccountId` multisig
`u64` proposal_id
`IdentityId` multisig_did
`Weight` _proposal_weight
|
+
+## Bridge
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Change controller | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` controller
|
+|Change admin | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` admin
|
+|Change timelock | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` timelock
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | |
+|Unfreeze | | :heavy_check_mark: | :heavy_check_mark: | |
+|Change bridge limit | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
`BlockNumber` duration
|
+|Change bridge exempted | | :heavy_check_mark: | :heavy_check_mark: | `VecTupleIdentityIdbool` exempted
|
+|Force handle bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Batch propose bridge tx | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+|Propose bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Handle bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Freeze txs | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+|Unfreeze txs | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+|Handle scheduled bridge tx | | :heavy_check_mark: | | `BridgeTxAccountId` bridge_tx
|
+|Add freeze admin | | :heavy_check_mark: | | `AccountId` freeze_admin
|
+|Remove freeze admin | | :heavy_check_mark: | | `AccountId` freeze_admin
|
+|Remove txs | | :heavy_check_mark: | | `VecBridgeTxAccountId` bridge_txs
|
+
+## Staking
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Bond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` controller
`CompactBalance` amount
`RewardDestination` payee
|
+|Bond extra | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Unbond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Withdraw Unbonded | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u32` num_slashing_spans
|
+|Validate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `ValidatorPrefs` prefs
|
+|Nominate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecLookupasStaticLookupSource` targets
|
+|Chill | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Set payee | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `RewardDestination` payee
|
+|Set controller | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` controller
|
+|Set validator count | | :heavy_check_mark: | :heavy_check_mark: | `Compactu32` new_
|
+|Increase validator count | | :heavy_check_mark: | :heavy_check_mark: | `Compactu32` additional
|
+|Scale validator count | | | | `Percent` factor
|
+|Add permissioned validator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
`Optionu32` intended_count
|
+|Remove permissioned validator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
|
+|Validate cdd expiry nominators | | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` targets
|
+|Set commission cap | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` new_cap
|
+|Set min bond threshold | | :heavy_check_mark: | :heavy_check_mark: | `Balance` new_value
|
+|Force no eras | | :heavy_check_mark: | :heavy_check_mark: | |
+|Force new era | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set invulnerables | | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` invulnerables
|
+|Force unstake | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` stash
`u32` num_slashing_spans
|
+|Force new era always | | :heavy_check_mark: | :heavy_check_mark: | |
+|Cancel deferred slash | | :heavy_check_mark: | :heavy_check_mark: | `EraIndex` era
`Vecu32` slash_indices
|
+|Payout stakers | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` validator_stash
`EraIndex` era
|
+|Rebond | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Set history depth | | :heavy_check_mark: | :heavy_check_mark: | `Compactu32` new_history_depth
`Compactu32` _era_items_deleted
|
+|Reap stash | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` stash
`u32` num_slashing_spans
|
+|Submit election solution | | | | `VecValidatorIndex` winners
`CompactAssignments` compact
`ElectionScore` score
`EraIndex` era
`ElectionSize` size
|
+|Submit election solution unsigned | | | | `VecValidatorIndex` winners
`CompactAssignments` compact
`ElectionScore` score
`EraIndex` era
`ElectionSize` size
|
+|Payout stakers by system | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` validator_stash
`EraIndex` era
|
+|Change slashing allowed for | | :heavy_check_mark: | :heavy_check_mark: | `SlashingSwitch` slashing_switch
|
+|Update permissioned validator intended count | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` identity
`u32` new_intended_count
|
+
+## Session
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set keys | | :heavy_check_mark: | :heavy_check_mark: | `Keys` keys
`Bytes` proof
|
+|Purge keys | | :heavy_check_mark: | :heavy_check_mark: | |
+
+## Grandpa
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Report equivocation | | | | `BoxEquivocationProofHashBlockNumber` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation unsigned | | | | `BoxEquivocationProofHashBlockNumber` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Note stalled | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` delay
`BlockNumber` best_finalized_block_number
|
+
+## ImOnline
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Heartbeat | | | | `HeartbeatBlockNumber` heartbeat
`AuthorityIdasRuntimeAppPublicSignature` signature
|
+
+## Sudo
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Sudo | | | | `Call` call
|
+|Sudo unchecked weight | | | | `Call` call
`Weight` _weight
|
+|Set key | | | | `LookupasStaticLookupSource` new_
|
+|Sudo as | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` who
`Call` call
|
+
+## Asset
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Register ticker | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Accept ticker transfer | | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Accept asset ownership transfer | | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Create asset | | :heavy_check_mark: | :heavy_check_mark: | `AssetName` name
`Ticker` ticker
`bool` divisible
`AssetType` asset_type
`VecAssetIdentifier` identifiers
`OptionFundingRoundName` funding_round
`bool` disable_iu
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Unfreeze | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Rename asset | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`AssetName` name
|
+|Issue | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`BalanceNoSymbol` amount
|
+|Redeem | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`BalanceNoSymbol` amount
|
+|Make divisible | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Add documents | | :heavy_check_mark: | :heavy_check_mark: | `VecDocument` docs
`Ticker` ticker
|
+|Remove documents | | :heavy_check_mark: | :heavy_check_mark: | `VecDocumentId` ids
`Ticker` ticker
|
+|Set funding round | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`FundingRoundName` name
|
+|Update identifiers | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecAssetIdentifier` identifiers
|
+|Claim classic ticker | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`EcdsaSignature` ethereum_signature
|
+|Reserve classic ticker | | :heavy_check_mark: | :heavy_check_mark: | `ClassicTickerImport` classic_ticker_import
`IdentityId` contract_did
`TickerRegistrationConfigMoment` config
|
+|Controller transfer | | :heavy_check_mark: | | `Ticker` ticker
`BalanceNoSymbol` amount
`PortfolioId` from_portfolio
|
+|Register custom asset type | | :heavy_check_mark: | | `Vecu8` ty
|
+|Create asset with custom type | | :heavy_check_mark: | | `AssetName` name
`Ticker` ticker
`bool` divisible
`Vecu8` custom_asset_type
`VecAssetIdentifier` identifiers
`OptionFundingRoundName` funding_round
`bool` disable_iu
|
+|Set asset metadata | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataKey` key
`AssetMetadataValue` value
`OptionAssetMetadataValueDetailMoment` detail
|
+|Set asset metadata details | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataKey` key
`AssetMetadataValueDetailMoment` detail
|
+|Register and set local asset metadata | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataName` name
`AssetMetadataSpec` spec
`AssetMetadataValue` value
`OptionAssetMetadataValueDetailMoment` detail
|
+|Register asset metadata local type | | :heavy_check_mark: | | `Ticker` ticker
`AssetMetadataName` name
`AssetMetadataSpec` spec
|
+|Register asset metadata global type | | :heavy_check_mark: | | `AssetMetadataName` name
`AssetMetadataSpec` spec
|
+
+## CapitalDistribution
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Distribute | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`OptionPortfolioNumber` portfolio
`Ticker` currency
`Balance` per_share
`Balance` amount
`Moment` payment_at
`OptionMoment` expires_at
|
+|Claim | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Push benefit | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`IdentityId` holder
|
+|Reclaim | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Remove distribution | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+
+## Checkpoint
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Create checkpoint | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Set schedules max complexity | | :heavy_check_mark: | :heavy_check_mark: | `u64` max_complexity
|
+|Create schedule | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ScheduleSpec` schedule
|
+|Remove schedule | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`ScheduleId` id
|
+
+## ComplianceManager
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Add compliance requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecCondition` sender_conditions
`VecCondition` receiver_conditions
|
+|Remove compliance requirement | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`u32` id
|
+|Replace asset compliance | | | | `Ticker` ticker
`VecComplianceRequirement` asset_compliance
|
+|Reset asset compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Pause asset compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Resume asset compliance | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
|
+|Add default trusted claim issuer | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TrustedIssuer` issuer
|
+|Remove default trusted claim issuer | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`IdentityId` issuer
|
+|Change compliance requirement | | | | `Ticker` ticker
`ComplianceRequirement` new_req
|
+
+## CorporateAction
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set max details length | | :heavy_check_mark: | :heavy_check_mark: | `u32` length
|
+|Set default targets | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`TargetIdentities` targets
|
+|Set default withholding tax | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`Tax` tax
|
+|Set did withholding tax | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`IdentityId` taxed_did
`OptionTax` tax
|
+|Initiate corporate action | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`CAKind` kind
`Moment` decl_date
`OptionRecordDateSpec` record_date
`CADetails` details
`OptionTargetIdentities` targets
`OptionTax` default_withholding_tax
`OptionVecTupleIdentityIdTax` withholding_tax
|
+|Link ca doc | | :heavy_check_mark: | :heavy_check_mark: | `CAId` id
`VecDocumentId` docs
|
+|Remove ca | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+|Change record date | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`OptionRecordDateSpec` record_date
|
+|Initiate corporate action and distribute | | | | `InitiateCorporateActionArgs` ca_args
`OptionPortfolioNumber` portfolio
`Ticker` currency
`Balance` per_share
`Balance` amount
`Moment` payment_at
`OptionMoment` expires_at
|
+
+## CorporateBallot
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Attach ballot | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`BallotTimeRange` range
`BallotMeta` meta
`bool` rcv
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`VecBallotVote` votes
|
+|Change end | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`Moment` end
|
+|Change meta | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`BallotMeta` meta
|
+|Change rcv | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
`bool` rcv
|
+|Remove ballot | | :heavy_check_mark: | :heavy_check_mark: | `CAId` ca_id
|
+
+## Pips
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set prune historical pips | | :heavy_check_mark: | :heavy_check_mark: | `bool` prune
|
+|Set min proposal deposit | | :heavy_check_mark: | :heavy_check_mark: | `Balance` deposit
|
+|Set default enactment period | | :heavy_check_mark: | :heavy_check_mark: | `BlockNumber` duration
|
+|Set pending pip expiry | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Set max pip skip count | | :heavy_check_mark: | :heavy_check_mark: | `SkippedCount` max
|
+|Set active pip limit | | :heavy_check_mark: | :heavy_check_mark: | `u32` limit
|
+|Propose | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Proposal` proposal
`Balance` deposit
`OptionUrl` url
`OptionPipDescription` description
|
+|Vote | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
`bool` aye_or_nay
`Balance` deposit
|
+|Approve committee proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Reject proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Prune proposal | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Reschedule execution | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
`OptionBlockNumber` until
|
+|Clear snapshot | | :heavy_check_mark: | :heavy_check_mark: | |
+|Snapshot | | :heavy_check_mark: | :heavy_check_mark: | |
+|Enact snapshot results | | :heavy_check_mark: | :heavy_check_mark: | `VecTuplePipIdSnapshotResult` results
|
+|Execute scheduled pip | | :heavy_check_mark: | :heavy_check_mark: | `PipId` id
|
+|Expire scheduled pip | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` did
`PipId` id
|
+
+## Portfolio
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Create portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioName` name
|
+|Delete portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioNumber` num
|
+|Move portfolio funds | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioId` from
`PortfolioId` to
`VecMovePortfolioItem` items
|
+|Rename portfolio | | :heavy_check_mark: | :heavy_check_mark: | `PortfolioNumber` num
`PortfolioName` to_name
|
+|Quit portfolio custody | | :heavy_check_mark: | | `PortfolioId` pid
|
+|Accept portfolio custody | | :heavy_check_mark: | | `u64` auth_id
|
+
+## ProtocolFee
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Change coefficient | | :heavy_check_mark: | :heavy_check_mark: | `PosRatio` coefficient
|
+|Change base fee | | | | `ProtocolOp` op
`Balance` base_fee
|
+
+## 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
|
+
+## Settlement
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Create venue | | :heavy_check_mark: | :heavy_check_mark: | `VenueDetails` details
`VecAccountId` signers
`VenueType` typ
|
+|Update venue details | | :heavy_check_mark: | | `VenueId` id
`VenueDetails` details
|
+|Update venue type | | :heavy_check_mark: | | `VenueId` id
`VenueType` typ
|
+|Add instruction | | :heavy_check_mark: | :heavy_check_mark: | `VenueId` venue_id
`SettlementTypeBlockNumber` settlement_type
`OptionMoment` trade_date
`OptionMoment` value_date
`VecLeg` legs
|
+|Add and affirm instruction | | :heavy_check_mark: | :heavy_check_mark: | `VenueId` venue_id
`SettlementTypeBlockNumber` settlement_type
`OptionMoment` trade_date
`OptionMoment` value_date
`VecLeg` legs
`VecPortfolioId` portfolios
|
+|Affirm instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`VecPortfolioId` portfolios
`u32` max_legs_count
|
+|Withdraw affirmation | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`VecPortfolioId` portfolios
`u32` max_legs_count
|
+|Reject instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`PortfolioId` portfolio
`u32` num_of_legs
|
+|Affirm with receipts | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`VecReceiptDetails` receipt_details
`VecPortfolioId` portfolios
`u32` max_legs_count
|
+|Claim receipt | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`ReceiptDetails` receipt_details
|
+|Unclaim receipt | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` instruction_id
`LegId` leg_id
|
+|Set venue filtering | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`bool` enabled
|
+|Allow venues | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecVenueId` venues
|
+|Disallow venues | | :heavy_check_mark: | :heavy_check_mark: | `Ticker` ticker
`VecVenueId` venues
|
+|Change receipt validity | | :heavy_check_mark: | | `u64` receipt_uid
`bool` validity
|
+|Execute scheduled instruction | | :heavy_check_mark: | :heavy_check_mark: | `InstructionId` id
`u32` _legs_count
|
+|Reschedule instruction | | :heavy_check_mark: | | `InstructionId` id
|
+
+## Statistics
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set active asset stats | | | | `AssetScope` asset
`BTreeSetStatType` stat_types
|
+|Batch update asset stats | | | | `AssetScope` asset
`StatType` stat_type
`BTreeSetStatUpdate` values
|
+|Set asset transfer compliance | | | | `AssetScope` asset
`BTreeSetTransferCondition` transfer_conditions
|
+|Set entities exempt | | | | `bool` is_exempt
`TransferConditionExemptKey` exempt_key
`BTreeSetScopeId` entities
|
+
+## Sto
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Create fundraiser | | :heavy_check_mark: | | `PortfolioId` offering_portfolio
`Ticker` offering_asset
`PortfolioId` raising_portfolio
`Ticker` raising_asset
`VecPriceTier` tiers
`VenueId` venue_id
`OptionMoment` start
`OptionMoment` end
`BalanceNoSymbol` minimum_investment
`FundraiserName` fundraiser_name
|
+|Invest | | :heavy_check_mark: | | `PortfolioId` investment_portfolio
`PortfolioId` funding_portfolio
`Ticker` offering_asset
`FundraiserId` id
`BalanceNoSymbol` purchase_amount
`OptionBalance` max_price
`OptionReceiptDetails` receipt
|
+|Freeze fundraiser | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
+|Unfreeze fundraiser | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
+|Modify fundraiser window | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
`Moment` start
`OptionMoment` end
|
+|Stop | | :heavy_check_mark: | | `Ticker` offering_asset
`FundraiserId` id
|
+
+## Treasury
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Disbursement | | :heavy_check_mark: | :heavy_check_mark: | `VecBeneficiary` beneficiaries
|
+|Reimbursement | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
+
+## Utility
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Batch | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecCall` calls
|
+|Batch atomic | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecCall` calls
|
+|Batch optimistic | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecCall` calls
|
+|Relay tx | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` target
`OffChainSignature` signature
`UniqueCall` call
|
+
+## Base
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+
+## ExternalAgents
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Create group | | | | `Ticker` ticker
`ExtrinsicPermissions` perms
|
+|Set group permissions | | | | `Ticker` ticker
`AGId` id
`ExtrinsicPermissions` perms
|
+|Remove agent | | :heavy_check_mark: | | `Ticker` ticker
`IdentityId` agent
|
+|Abdicate | | :heavy_check_mark: | | `Ticker` ticker
|
+|Change group | | | | `Ticker` ticker
`IdentityId` agent
`AgentGroup` group
|
+|Accept become agent | | :heavy_check_mark: | | `u64` auth_id
|
+|Create group and add auth | | :heavy_check_mark: | | `Ticker` ticker
`ExtrinsicPermissions` perms
`IdentityId` target
`OptionMoment` expiry
|
+|Create and change custom group | | :heavy_check_mark: | | `Ticker` ticker
`ExtrinsicPermissions` perms
`IdentityId` agent
|
+
+## Relayer
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Set paying key | | :heavy_check_mark: | | `AccountId` user_key
`Balance` polyx_limit
|
+|Accept paying key | | :heavy_check_mark: | | `u64` auth_id
|
+|Remove paying key | | :heavy_check_mark: | | `AccountId` user_key
`AccountId` paying_key
|
+|Update polyx limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` polyx_limit
|
+|Increase polyx limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` amount
|
+|Decrease polyx limit | | :heavy_check_mark: | | `AccountId` user_key
`Balance` amount
|
+
+## Rewards
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Claim itn reward | | :heavy_check_mark: | | `AccountId` reward_address
`AccountId` itn_address
`OffChainSignature` signature
|
+|Set itn reward status | | | | `AccountId` itn_address
`ItnRewardStatus` status
|
+
+## Contracts
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Call | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
`Compactu64` gas_limit
`OptionCompactBalanceOf` storage_deposit_limit
`Vecu8` data
|
+|Instantiate with code | | :heavy_check_mark: | | `CompactBalance` amount
`Compactu64` gas_limit
`OptionCompactBalanceOf` storage_deposit_limit
`Vecu8` code
`Vecu8` data
`Vecu8` salt
|
+|Instantiate | | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
`Compactu64` gas_limit
`OptionCompactBalanceOf` storage_deposit_limit
`CodeHash` code_hash
`Bytes` data
`Bytes` salt
|
+|Upload code | | :heavy_check_mark: | | `Vecu8` code
`OptionCompactBalanceOf` storage_deposit_limit
|
+|Remove code | | :heavy_check_mark: | | `CodeHash` code_hash
|
+
+## PolymeshContracts
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Instantiate with code perms | | :heavy_check_mark: | | `Balance` endowment
`Weight` gas_limit
`OptionBalance` storage_deposit_limit
`Vecu8` code
`Vecu8` data
`Vecu8` salt
`Permissions` perms
|
+|Instantiate with hash perms | | :heavy_check_mark: | | `Balance` endowment
`Weight` gas_limit
`OptionBalance` storage_deposit_limit
`CodeHash` code_hash
`Vecu8` data
`Vecu8` salt
`Permissions` perms
|
+
+## Preimage
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Note preimage | | :heavy_check_mark: | | `Vecu8` bytes
|
+|Unnote preimage | | :heavy_check_mark: | | `Hash` hash
|
+|Request preimage | | :heavy_check_mark: | | `Hash` hash
|
+|Unrequest preimage | | :heavy_check_mark: | | `Hash` hash
|
+
+## TestUtils
+
+| Name | Light | XL | Nesting | Arguments |
+| :---------- |:------------:|:--------:|:--------:|:--------|
+|Register did | | | | `InvestorUid` uid
`VecSecondaryKeyAccountId` secondary_keys
|
+|Mock cdd register did | | | | `AccountId` target_account
|
+|Get my did | | | | |
+|Get cdd of | | | | `AccountId` of
|
+
diff --git a/docs/supported_latest.md b/docs/supported_latest.md
index d6d72d2..c9ad4fb 100644
--- a/docs/supported_latest.md
+++ b/docs/supported_latest.md
@@ -1,492 +1,476 @@
-# Polymesh 2.3010.x
+# Polymesh 3.5000001.x
## System
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|fill_block | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` _ratio
|
-|remark | | :heavy_check_mark: | :heavy_check_mark: | `Bytes` _remark
|
-|set_heap_pages | | :heavy_check_mark: | :heavy_check_mark: | `u64` pages
|
-|set_code | | :heavy_check_mark: | :heavy_check_mark: | `Bytes` code
|
-|set_code_without_checks | | :heavy_check_mark: | :heavy_check_mark: | `Bytes` code
|
-|set_changes_trie_config | | | | `Option` changes_trie_config
|
-|set_storage | | | | `Vec` items
|
-|kill_storage | | | | `Vec` keys
|
-|kill_prefix | | | | `Key` prefix
`u32` _subkeys
|
+|Fill block | | :heavy_check_mark: | :heavy_check_mark: | `Perbill` ratio
|
+|Remark | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` remark
|
+|Set heap pages | | :heavy_check_mark: | :heavy_check_mark: | `u64` pages
|
+|Set code | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` code
|
+|Set code without checks | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` code
|
+|Set storage | | | | `VecKeyValue` items
|
+|Kill storage | | | | `VecKey` keys
|
+|Kill prefix | | | | `Key` prefix
`u32` subkeys
|
+|Remark with event | | :heavy_check_mark: | :heavy_check_mark: | `Vecu8` remark
|
## Babe
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|report_equivocation | | | | `BabeEquivocationProof` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
-|report_equivocation_unsigned | | | | `BabeEquivocationProof` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation | | | | `BoxEquivocationProofHeader` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Report equivocation unsigned | | | | `BoxEquivocationProofHeader` equivocation_proof
`KeyOwnerProof` key_owner_proof
|
+|Plan config change | | | | `NextConfigDescriptor` config
|
## Timestamp
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set | | :heavy_check_mark: | :heavy_check_mark: | `Compact` now
|
+|Set | | :heavy_check_mark: | :heavy_check_mark: | `Compactu64` now
|
## Indices
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|claim | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
-|transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new
`AccountIndex` index
|
-|free | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
-|force_transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new
`AccountIndex` index
`bool` freeze
|
-|freeze | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Claim | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new_
`AccountIndex` index
|
+|Free | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
+|Force transfer | | :heavy_check_mark: | :heavy_check_mark: | `AccountId` new_
`AccountIndex` index
`bool` freeze
|
+|Freeze | | :heavy_check_mark: | :heavy_check_mark: | `AccountIndex` index
|
## Authorship
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_uncles | | | | `Vec` new_uncles
|
+|Set uncles | | | | `VecHeader` new_uncles
|
## Balances
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|transfer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` dest
`Compact` value
|
-|transfer_with_memo | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` dest
`Compact` value
`Option` memo
|
-|deposit_block_reward_reserve_balance | | :heavy_check_mark: | :heavy_check_mark: | `Compact` value
|
-|set_balance | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` who
`Compact` new_free
`Compact` new_reserved
|
-|force_transfer | | :heavy_check_mark: | :heavy_check_mark: | `LookupSource` source
`LookupSource` dest
`Compact` value
|
-|burn_account_balance | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
-
-## TransactionPayment
-
-Empty
+|Transfer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
|
+|Transfer with memo | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` dest
`CompactBalance` amount
`OptionMemo` memo
|
+|Deposit block reward reserve balance | | :heavy_check_mark: | :heavy_check_mark: | `CompactBalance` amount
|
+|Set balance | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` who
`CompactBalance` new_free
`CompactBalance` new_reserved
|
+|Force transfer | | :heavy_check_mark: | :heavy_check_mark: | `LookupasStaticLookupSource` source
`LookupasStaticLookupSource` dest
`CompactBalance` amount
|
+|Burn account balance | | :heavy_check_mark: | :heavy_check_mark: | `Balance` amount
|
## Identity
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|cdd_register_did | | | | `AccountId` target_account
`Vec` secondary_keys
|
-|invalidate_cdd_claims | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` cdd
`Moment` disable_from
`Option` expiry
|
-|remove_secondary_keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` signers_to_remove
|
-|accept_primary_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` rotation_auth_id
`Option` optional_cdd_auth_id
|
-|change_cdd_requirement_for_mk_rotation | | :heavy_check_mark: | :heavy_check_mark: | `bool` auth_required
|
-|join_identity_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
-|leave_identity_as_key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|add_claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`Option` expiry
|
-|revoke_claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
|
-|set_permission_to_signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` signer
`Permissions` perms
|
-|legacy_set_permission_to_signer | | | | `Signatory` signer
`LegacyPermissions` permissions
|
-|freeze_secondary_keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|unfreeze_secondary_keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
-|add_authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` target
`AuthorizationData` data
`Option` expiry
|
-|remove_authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Signatory` target
`u64` auth_id
`bool` _auth_issuer_pays
|
-|add_secondary_keys_with_authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `Vec` additional_keys
`Moment` expires_at
|
-|add_investor_uniqueness_claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`InvestorZKProofData` proof
`Option` expiry
|
-|gc_add_cdd_claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
-|gc_revoke_cdd_claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
-|add_investor_uniqueness_claim_v2 | | | | `IdentityId` target
`Scope` scope
`Claim` claim
`ScopeClaimProof` proof
`Option` expiry
|
-|revoke_claim_by_index | | :heavy_check_mark: | | `IdentityId` target
`ClaimType` claim_type
`Option` scope
|
-|rotate_primary_key_to_secondary | | :heavy_check_mark: | | `u64` auth_id
`Option` optional_cdd_auth_id
|
+|Cdd register did | | | | `AccountId` target_account
`VecSecondaryKeyAccountId` secondary_keys
|
+|Invalidate cdd claims | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` cdd
`Moment` disable_from
`OptionMoment` expiry
|
+|Remove secondary keys old | | | | `VecSignatoryAccountId` keys_to_remove
|
+|Accept primary key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` rotation_auth_id
`Optionu64` optional_cdd_auth_id
|
+|Change cdd requirement for mk rotation | | :heavy_check_mark: | :heavy_check_mark: | `bool` auth_required
|
+|Join identity as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `u64` auth_id
|
+|Leave identity as key | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Add claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`OptionMoment` expiry
|
+|Revoke claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
|
+|Set permission to signer | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` key
`Permissions` perms
|
+|Placeholder legacy set permission to signer | | :heavy_check_mark: | | |
+|Freeze secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Unfreeze secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |
+|Add authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` target
`AuthorizationDataAccountId` data
`OptionMoment` expiry
|
+|Remove authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `SignatoryAccountId` target
`u64` auth_id
`bool` _auth_issuer_pays
|
+|Add secondary keys with authorization old | | | | `VecSecondaryKeyWithAuthV1AccountId` additional_keys
`Moment` expires_at
|
+|Add investor uniqueness claim | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
`Claim` claim
`InvestorZKProofData` proof
`OptionMoment` expiry
|
+|Gc add cdd claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
+|Gc revoke cdd claim | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` target
|
+|Add investor uniqueness claim v2 | | | | `IdentityId` target
`Scope` scope
`Claim` claim
`ScopeClaimProof` proof
`OptionMoment` expiry
|
+|Revoke claim by index | | :heavy_check_mark: | | `IdentityId` target
`ClaimType` claim_type
`OptionScope` scope
|
+|Rotate primary key to secondary | | :heavy_check_mark: | | `u64` auth_id
`Optionu64` optional_cdd_auth_id
|
+|Add secondary keys with authorization | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecSecondaryKeyWithAuthAccountId` additional_keys
`Moment` expires_at
|
+|Set secondary key permissions | | :heavy_check_mark: | | `AccountId` key
`Permissions` perms
|
+|Remove secondary keys | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | `VecAccountId` keys_to_remove
|
## CddServiceProviders
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_active_members_limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
-|disable_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`Option` expiry
`Option` at
|
-|add_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|remove_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
-|swap_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
-|reset_members | | :heavy_check_mark: | :heavy_check_mark: | `Vec` members
|
-|abdicate_membership | | :heavy_check_mark: | :heavy_check_mark: | |
+|Set active members limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
+|Disable member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`OptionMoment` expiry
`OptionMoment` at
|
+|Add member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Remove member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
|
+|Swap member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` remove
`IdentityId` add
|
+|Reset members | | :heavy_check_mark: | :heavy_check_mark: | `VecIdentityId` members
|
+|Abdicate membership | | :heavy_check_mark: | :heavy_check_mark: | |
## PolymeshCommittee
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_vote_threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
-|set_release_coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
-|set_expires_after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlock` expiry
|
-|vote_or_propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
-|vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
+|Set vote threshold | | :heavy_check_mark: | :heavy_check_mark: | `u32` n
`u32` d
|
+|Set release coordinator | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` id
|
+|Set expires after | | :heavy_check_mark: | :heavy_check_mark: | `MaybeBlockBlockNumber` expiry
|
+|Vote or propose | | :heavy_check_mark: | :heavy_check_mark: | `bool` approve
`Call` call
|
+|Vote | | :heavy_check_mark: | :heavy_check_mark: | `Hash` proposal
`ProposalIndex` index
`bool` approve
|
## CommitteeMembership
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
-|set_active_members_limit | | :heavy_check_mark: | :heavy_check_mark: | `MemberCount` limit
|
-|disable_member | | :heavy_check_mark: | :heavy_check_mark: | `IdentityId` who
`Option` expiry