Skip to content

Commit

Permalink
P 896 bridge related migration decimal convertor (#2940)
Browse files Browse the repository at this point in the history
* feat: initial pallets add without migration, disable ts-test

* debug: fmt

* feat: rough fix

* chore: taplo fmt

* feat: add First stage logic adoption and migration plan

* build(deps): bump num-integer from 0.1.45 to 0.1.46 (#2921)

Bumps [num-integer](https://github.com/rust-num/num-integer) from 0.1.45 to 0.1.46.
- [Changelog](https://github.com/rust-num/num-integer/blob/master/RELEASES.md)
- [Commits](rust-num/num-integer@num-integer-0.1.45...num-integer-0.1.46)

---
updated-dependencies:
- dependency-name: num-integer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <[email protected]>

* build(deps): bump tokio from 1.38.0 to 1.38.1 (#2922)

Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.38.0 to 1.38.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-1.38.0...tokio-1.38.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <[email protected]>

* P 893 enhance bitarcoss worker ceremony processing with multithreading (#2901)

* multithreading

* fix deadlock between workers

* change timeout to 30s

* remove some log

* remove some log

* optimize ceremony data sharing logic

* remove code for debugging

* fix fmt

* fix clippy

* change module name

* clean up code

* restore test_full_flow_with_3_ceremonies

* remove redundant match

* increase TCSNum to 64

* reorganize code structure

* fix test

* fix check_signBitcoin

* add SignBitcoinPayload to InitCeremony

* read threads count from cli (#2912)

* add CeremonyRoundCall

* change CreateSignTask to Request

* fix passing cli params

* fix timeout reply

* fix timeout reply

---------

Co-authored-by: Jayanring <[email protected]>
Co-authored-by: Kasper Ziemianek <[email protected]>

* import sidechain block through trusted rpc (#2913)

* import sidechain block through trusted rpc

* use DirectClient

* upstream fixes

---------

Co-authored-by: Kai <[email protected]>

* feat: fix runtime impl, add migration; Pallet unitest and logic TODO

* Hardhat test with brc20 contract (#2927)

* feat: P-886 integrate hardhat into dynamic assertions, wrap contract in proxy contract so as to get the return value in unit test, added test for BRC20 TokenHoldingAmount.
    Fixed openzipline import with @ import working with remix too

* fix: formatted all contracts

* fix: update ci install script for Dynamic-contract step

* fix: prevent lockfile update because it may cause check-format fail

* fix: remove frozen-lockfile option from pnpm install, ignore pnpm-lock.yaml for prettier

* fix: use hardhat instead of foundry to compile contracts

* fix: use Strings.equal to simplify string compare, add remixd install step to README

* add remix config file to .gitignore

---------

Co-authored-by: higherordertech <higherordertech>

* Musig2 metrics (#2930)

* multithreading

* fix deadlock between workers

* change timeout to 30s

* remove some log

* remove some log

* optimize ceremony data sharing logic

* remove code for debugging

* fix fmt

* fix clippy

* change module name

* clean up code

* restore test_full_flow_with_3_ceremonies

* remove redundant match

* increase TCSNum to 64

* reorganize code structure

* fix test

* fix check_signBitcoin

* add SignBitcoinPayload to InitCeremony

* read threads count from cli (#2912)

* add CeremonyRoundCall

* change CreateSignTask to Request

* fix passing cli params

* musig2 ceremony metrics

* fmt

---------

Co-authored-by: Jayanring <[email protected]>
Co-authored-by: Jayanring <[email protected]>

* Add basic bitacross worker ci integration tests (#2934)

* rpc method for checking musig2 ceremony correctness

* test sign_bitcoin by enclave account

* ts code to test sign_bitcoin

* build bitacross docker image

* add bitacross integration tests

* enable enclave tests

* adjust test

* add reject unauthorized to ws client

* increase wait time for workers startup

* update filefilter

* trigger bitacross rebuild

* remove bitacross cache

* Push bitacross-worker image in CI (#2935)

* Adding register OIDC client call to identity management pallet (#2931)

* adding register_oidc_client to identity-management pallet

* updating mock

* adding tests

* adding unregister_oidc_client call

* adding test assertion for register_oidc_client

* adding tests for unregister_oidc_client

* adding temporary weights

* refactoring names

* adding docs comment

* adding TODO comment

* updating runtimes

* fixing clippy issues

* increasing runtime version in tests

* adding getter function

* feat: fix pallet assets handler logic and unit test

* chore

* chore

* chore

* chore

* chore

* chore

* parachain-api: expose link_identity_callback (#2937)

Signed-off-by: Jonathan Alvarez <[email protected]>

* chore

* chore

* chore

* chore

* chore

* build(deps): bump syn from 2.0.71 to 2.0.72 (#2923)

Bumps [syn](https://github.com/dtolnay/syn) from 2.0.71 to 2.0.72.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.71...2.0.72)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <[email protected]>

* chore

* chore

* chore: static

* chore

* feat: fix ts step by step. Missing bridge solidity contract abi

* feat: fix bridge contract abi and repo source

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* feat: fix litentry migration first

* feat: fix rococo, litmus

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* chore: iter should be mut

* chore

* chore: replace std with sp-std

* feat: try add logic modification on bridge ts test

* feat: dsiable ts again

---------

Signed-off-by: WMQ <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jonathan Alvarez <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <[email protected]>
Co-authored-by: Jayanring <[email protected]>
Co-authored-by: Jayanring <[email protected]>
Co-authored-by: Kasper Ziemianek <[email protected]>
Co-authored-by: Kai <[email protected]>
Co-authored-by: will.li <[email protected]>
Co-authored-by: Francisco Silva <[email protected]>
Co-authored-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
10 people authored Jul 29, 2024
1 parent a8eb8c0 commit 09fd1e3
Show file tree
Hide file tree
Showing 59 changed files with 123,315 additions and 67,957 deletions.
30 changes: 26 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "2"
members = [
'node',
'pallets/account-fix',
'pallets/assets-handler',
'pallets/bitacross',
'pallets/bitacrossmimic',
'pallets/bridge',
Expand Down Expand Up @@ -67,6 +68,7 @@ quote = { version = "1" }
syn = { version = "2" }
scale-info = { version = "2.11", default-features = false, features = ["derive"] }
parity-scale-codec = { version = "3.6", default-features = false, features = ["derive", "max-encoded-len"] }
paste = { version = "1.0.6" }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0", default-features = false }
slices = { version = "0.2.0" }
Expand All @@ -79,6 +81,7 @@ jsonrpsee = { version = "0.16.3", features = ["server"] }
tokio = { version = "1.38.1", features = ["macros", "sync"] }
strum = { version = "0.26", default-features = false }
strum_macros = { version = "0.26", default-features = false }
libsecp256k1 = { version = "0.7", default-features = false }
num_enum = { version = "0.7.2", default-features = false }
num-integer = { version = "0.1", default-features = false }
rustc-hex = { version = "2.0.1", default-features = false }
Expand Down Expand Up @@ -249,6 +252,7 @@ litmus-parachain-runtime = { path = "runtime/litmus", default-features = false }
rococo-parachain-runtime = { path = "runtime/rococo", default-features = false }
pallet-account-fix = { path = "pallets/account-fix", default-features = false }
pallet-asset-manager = { path = "pallets/xcm-asset-manager", default-features = false }
pallet-assets-handler = { path = "pallets/assets-handler", default-features = false }
pallet-bitacross = { path = "pallets/bitacross", default-features = false }
pallet-bitacross-mimic = { path = "pallets/bitacrossmimic", default-features = false }
pallet-bridge = { path = "pallets/bridge", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion docker/bridge.dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM golang:1.18

RUN go install github.com/litentry/ChainBridge/cmd/chainbridge@dev
RUN go install github.com/collab-ai-network/ChainBridge/cmd/chainbridge@sol0.8.19
53 changes: 53 additions & 0 deletions pallets/assets-handler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[package]
authors = ['Trust Computing GmbH <[email protected]>']
description = 'Pallet for Assets handler of token bridge'
edition = '2021'
homepage = 'https://litentry.com/'
license = 'GPL-3.0'
name = 'pallet-assets-handler'
repository = 'https://github.com/litentry/litentry-parachain'
version = '0.1.0'

[dependencies]
hex-literal = { workspace = true }
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }

frame-support = { workspace = true }
frame-system = { workspace = true }
pallet-assets = { workspace = true }
pallet-balances = { workspace = true }
pallet-bridge = { workspace = true }
pallet-bridge-transfer = { workspace = true }
pallet-parachain-staking = { workspace = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

[features]
default = ["std"]
runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"pallet-bridge/runtime-benchmarks",
"pallet-bridge-transfer/runtime-benchmarks",
"pallet-parachain-staking/runtime-benchmarks",
]
std = [
"parity-scale-codec/std",
"scale-info/std",
"sp-std/std",
"sp-runtime/std",
"sp-io/std",
"sp-core/std",
"frame-support/std",
"frame-system/std",
"pallet-assets/std",
"pallet-balances/std",
"pallet-bridge/std",
"pallet-bridge-transfer/std",
"pallet-parachain-staking/std",
]
try-runtime = ["frame-support/try-runtime"]
Loading

0 comments on commit 09fd1e3

Please sign in to comment.