Skip to content

Commit

Permalink
Refactor/kos (#77)
Browse files Browse the repository at this point in the history
* init refactor

* chore: adjust submodule path

* chore: adjust submodule path

* chore: add build file

* fix: proto submodule

* fix: proto submodule

* chore: add rng target arch

* feat: chain path management

* feat: add get_chain_by_base_id method

* feat: add cipher decrypt

* feat: add sign message

* chore: spec should_get_all_supported_chains_account_from_mnemonic

* chore: use_legacy_path param

* feat: add ksafe feature checking

* fix: BTC based ids & changed sign message to receive hex bytes

* update android build config

* add android feature checking

* add f64 and string methods for bignum type

* feat: kos-web wallet manager

* fix: wasm_bindgen binds

* chore: add moonbeam

* feat: eth sign_typed_data

* chore: get transaction fields

* fix: clippy errors

* chore: organize crypto packages

* chore: fix fmt

* chore: fix deny check

* chore: fix fmt for proto generated

* chore: remove env

* feat: kos-web BigNumber

* feat: kos-mobile BigNumber

* feat: BTC sign message

* fix: uniffi throw Ok(String)

* feat: btc sign methods

* fix: btc tx witness

* fix: build

* feat: add method to return supported chains

* fix: lint issues

* chore: set MOVR and GLMR as eth based

* fix: lint warn

* feat: BTC sign transaction

* feat: added kos-web sign options

---------

Co-authored-by: Patrick Monteiro <[email protected]>
Co-authored-by: Jordan <[email protected]>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent 67de250 commit 74c4f04
Show file tree
Hide file tree
Showing 125 changed files with 12,665 additions and 12,038 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/pull-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- '**/*.md'
- '.gitignore'
- '.github/**'

jobs:
format:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,16 +46,12 @@ jobs:
cargo deny check
cargo pants
- name: Restore .env file
run: echo "$NODES_ENV" | base64 -d > packages/kos-sdk/.env.nodes
env:
NODES_ENV: ${{ secrets.NODES_ENV }}
- name: Run Tests
run: cargo test

build:
needs: [format]
needs: [ format ]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -68,10 +64,5 @@ jobs:
with:
with_cache: true

- name: Restore .env file
run: echo $NODES_ENV | base64 -d > packages/kos-sdk/.env.nodes
env:
NODES_ENV: ${{ secrets.NODES_ENV }}

- name: Build
run: make webpack-npm
9 changes: 2 additions & 7 deletions .github/workflows/pull-master-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: KOS-RS Bump version && Release
name: KOS-RS Bump version && Release

on:
pull_request:
Expand All @@ -24,17 +24,12 @@ jobs:
with:
submodules: recursive
fetch-depth: 0

- name: RustUp
uses: klever-io/kos-rs/.github/actions/rustup@develop
with:
with_cache: true

- name: Restore .env file
run: echo "$NODES_ENV" | base64 -d > packages/kos-sdk/.env.nodes
env:
NODES_ENV: ${{ secrets.NODES_ENV }}

- name: Run Tests
run: cargo test

Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ dist
.DS_Store
demo/.DS_Store
packages/.DS_Store
.idea/*
.idea/*

packages/kos/target
packages/kos/Cargo.lock
packages/kos/.idea
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "packages/kos-proto/proto/tron"]
path = packages/kos-proto/proto/tron
url = https://github.com/tronprotocol/protocol
[submodule "packages/kos/src/protos/tron"]
path = packages/kos/src/protos/tron
url = https://github.com/tronprotocol/protocol.git
Loading

0 comments on commit 74c4f04

Please sign in to comment.