-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/generic signed extensions (#62)
* Rework signed extensions * Code style * Bump versions * Comments * Handle nonce as struct * Handle nonce as struct * update image link * change to using install workflow * Force older version of log * change install dep fix spelling push cargo toml change location fix syntax remove fmt remove semicolon from expression remove directory switching adding ndk change installation action and add crago-c fix syntax remove cargo-c return toolchain back try to install libgcc fix syntx adding sudo update version of image remove toolchain update version return installation through action decrease version try to install target separatelly fix shell add gcc-multilib fix syntax change to macos install all libraries fix syntax E: Unable to locate package lib32ncurses5 try to fix libgcc problem change to stable version adding aarch64-linux-android * update other actions * remove debug info * remove additional libraries --------- Co-authored-by: Stepan Lavrentev <lawrentievsv@gmail.com>
- Loading branch information
Showing
28 changed files
with
337 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Install dependencies for Android build | ||
description: Contains all dependencies for Android build | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: ☕️ Install Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
cache: 'gradle' | ||
|
||
- uses: nttld/setup-ndk@v1 | ||
with: | ||
ndk-version: r21d | ||
local-cache: true | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Add targets | ||
run: | | ||
rustup target add armv7-linux-androideabi | ||
rustup target add i686-linux-android | ||
rustup target add x86_64-linux-android | ||
rustup target add aarch64-linux-android | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,8 @@ app/*.apk | |
*.lock | ||
/sr25519-java/target | ||
/sr25519-java/.idea | ||
|
||
|
||
# Added by cargo | ||
|
||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
buildscript { | ||
ext { | ||
// App version | ||
versionName = '1.8.0' | ||
versionName = '1.9.0' | ||
versionCode = 1 | ||
|
||
// SDK and tools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...co/soramitsu/fearless_utils/runtime/definitions/types/generics/DefaultSignedExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package jp.co.soramitsu.fearless_utils.runtime.definitions.types.generics | ||
|
||
import jp.co.soramitsu.fearless_utils.runtime.definitions.types.primitives.Compact | ||
import jp.co.soramitsu.fearless_utils.runtime.definitions.types.primitives.u32 | ||
import jp.co.soramitsu.fearless_utils.runtime.metadata.SignedExtensionMetadata | ||
import jp.co.soramitsu.fearless_utils.runtime.metadata.SignedExtensionMetadata.Companion.onlyAdditional | ||
import jp.co.soramitsu.fearless_utils.runtime.metadata.SignedExtensionMetadata.Companion.onlySigned | ||
|
||
object DefaultSignedExtensions { | ||
|
||
const val CHECK_MORTALITY = "CheckMortality" | ||
const val CHECK_NONCE = "CheckNonce" | ||
const val CHECK_TX_PAYMENT = "ChargeTransactionPayment" | ||
const val CHECK_GENESIS = "CheckGenesis" | ||
const val CHECK_SPEC_VERSION = "CheckSpecVersion" | ||
const val CHECK_TX_VERSION = "CheckTxVersion" | ||
|
||
val ALL = listOf( | ||
SignedExtensionMetadata(CHECK_MORTALITY, type = EraType, additionalSigned = H256), | ||
onlySigned(CHECK_NONCE, Compact("Compact<Index>")), | ||
onlySigned(CHECK_TX_PAYMENT, Compact("Compact<u32>")), | ||
onlyAdditional(CHECK_GENESIS, H256), | ||
onlyAdditional(CHECK_SPEC_VERSION, u32), | ||
onlyAdditional(CHECK_TX_VERSION, u32), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.