Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import sidechain block through trusted rpc #2913

Merged
merged 7 commits into from
Jul 25, 2024

Conversation

kziemianek
Copy link
Member

The main goal of this PR is to move sidechain_importBlock from untrusted rpc endpoint to trusted. By doing so, block producer doesn't need to query all known peers for untrusted_url on each sidechain block broadcast.

It also:

  • removes rpc ecall.
  • removes 'rpc_methods' trusted json-rpc method

@kziemianek kziemianek requested a review from a team July 19, 2024 11:02
Copy link

linear bot commented Jul 19, 2024

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my side, I see it uses ws for block import - but that's the same logic as before.

A request: could you please propose a similar PR to upstream too?

@kziemianek
Copy link
Member Author

I'll add license headers.

@kziemianek
Copy link
Member Author

It might still need a fix, see:
integritee-network/worker#1605 (comment)

@kziemianek kziemianek enabled auto-merge (squash) July 25, 2024 08:11
@kziemianek kziemianek merged commit 93c07d8 into dev Jul 25, 2024
30 of 31 checks passed
@kziemianek kziemianek deleted the p-398-setting-peers-urls-seems-to-be-too-often branch July 26, 2024 12:04
wangminqi added a commit that referenced this pull request Jul 28, 2024
* chore

* chore

* chore: fix runtime xcm test

* chore

* Warn: This change to chain_spec is TBD

* debug: (Critical) temporary disable all ts-test

* feat: change DOLLARS constant

* chore

* Update mod.rs

Signed-off-by: WMQ <[email protected]>

* Update mod.rs

Signed-off-by: WMQ <[email protected]>

* 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]>

* 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

* parachain-api: expose link_identity_callback (#2937)

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

* 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: typo

---------

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]>
wangminqi added a commit that referenced this pull request Jul 29, 2024
* 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]>
BillyWooo added a commit that referenced this pull request Aug 2, 2024
* feat: add DelegatorState CandidateInfo migration

* debug: fmt

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* chore

* feat: add ScheduledRequest

* feat: add TopDelegations

* chore

* chore

* chore

* chore

* chore: allow clippy type complexity

* chore: add bitacross try-runtime

* chore

* feat: add Total storage

* chore

* feat: add CandidatePool, DelayedPayouts, Staked

* chore

* chore

* chore

* chore

* chore

* P 897 parachain staking decimal migration (#2878)

* dockerfile fix (#2853)

* client-api: package update for publishing (#2850)


---------

Signed-off-by: Jonathan Alvarez <[email protected]>
Co-authored-by: 0xverin <[email protected]>

* close ws connection in case of BrokenPipe error (#2854)

* fix: add developer committee to basefilter (#2855)

* Continuous Websocket Message Reading on Readiness Event (#2852)

* ws connection read messages fix

* fix fmt

* optim handling

* close ws when read error

* optimize error handling

---------

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

* Bump syn from 2.0.66 to 2.0.68 (#2839)

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

---
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>

* Adjust logging level and messages (#2857)

* adjust log level

* use trace lvl

* more log

* fix clippy

* Deprecate `ScheduledEnclave` and introduce `AuthorizedEnclave` (#2856)

* add AuthorizedEnclave

* adjust tests

* remove old scheduled enclave

* bump version

* remove indirect call

* Use new keys from env setting (#2858)

* Add teebag and bitacross to litentry runtime (#2859)

* Add teebag and bitacross to litentry runtime

* fix compile

* P-872 basic tests for contracts (#2845)

* Flattening contracts

* fix omports

* init tests

* add compile.json

* fix params

* fix assertionId

* try encryptWithTeeShieldingKey

* fix encryptedSecrets

* add ci shell

* fmt

* add lit-tee-vc-contracts-test

* rename

* chmod +x

* source /root/.bashrc

* install git

* remove sudo

* fix shell scripts

* ls

* ls one more

* ls one more

* add volumes

* cp contracts&&compile

* remove hardcode json

* fix entrypoint

* fix compilation

* try to fix assertionId

* testing:cli encrypt

* fmt

* testing:cli response

* testing:create assertionId with secretsEncryptedByCli

* check:Is cli encrypt the same as ts encrypt

* add sleep

* update README

* merge assertion tests shell

* fix docker yml

* identity-linking via cli

* remove unused code

* add developerCommittee

* rename scripts name

* add alice to developerCommittee

* fix copy-contracts

* identity-linking using di call

* feat: P-860 add logging support for dynamic contract (#2848)

* feat: P-860 add logging support for dynamic contract

* fix: change vc_logs to optional in RequestVCResult, default log response in http precompile contract

* remove default log response in http precompile contract

* fix: update ts definition for dynamic assertion

* fix clippy

* fix: change type of return_log to bool, using Precompiles instead of thread_local variable DYNAMIC_ASSERTION_LOGS, only include vc_logs in rpc response

* add the log to vc_logs in all json_utils precompile contracts, do not return vc_logs if stf is true when using CLI

* return vc_logs if stf is true

* add logs in dynamic contract A20

---------

Co-authored-by: higherordertech <higherordertech>

* reuse websocket connection for ceremony rounds (#2861)

* Adding  force-migrate-shard flag to run worker command (#2862)

* fix dynamic assertion integration test (#2864)

* Add remove_vault in pallet-bitacross (#2863)

* Add remove_vault

* Do not pay fees for now

* Improve shard migration (#2866)

* removing force-migrate-shard and improving migrate-shard

* improving mrenclave command

* fixing ci

* putting back comment

* cleaning up mock

* update cli doc

---------

Co-authored-by: Kailai Wang <[email protected]>

* Disable docker build record upload (#2867)

* feat: add DelegatorState CandidateInfo migration

* debug: fmt

* chore

* chore

* chore

* chore

* feat: add a parachain event for completion of contract sync (#2870)

* feat: add callback extrinsic for extrinsic

* fix: add TEE Origin

* fix: add evm_assertions metadata

* fix: fix test error

* refactor: fix clippy

* chore

* chore

* chore

* chore

* chore

* chore

* feat: P-914 implemented NFT token holder VC for MFAN on Polygon (#2877)

Co-authored-by: higherordertech <higherordertech>

* Disable issue creation GHA (#2881)

* fix: request-vc in cli with ii and stf fails to decode (#2882)

* fix: request-vc in cli with ii and stf fails to decode

* refactor: remove unused import

* chore

* feat: add ScheduledRequest

* feat: add TopDelegations

* chore

* chore

* chore

* chore

* chore: allow clippy type complexity

* chore: add bitacross try-runtime

* An and tuna holding amount vc (#2884)

* feat: P-915 implemented token holding amount for AN

* feat: P-915 implemented token holding amount for TUNA

* fix: updated TokenHoldingAmount credentials schema

---------

Co-authored-by: higherordertech <higherordertech>

* chore

* feat: add Total storage

* Update dependabot deps (#2880)

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

* Support DCAP RA (#2869)

* remove println

* consider prod too

* add RA_METHOD

* temporarily ignore tcb check

* lenient tcb level

* use Intel for default dcap provider

* same change for bc

* patch Makefile

---------

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

* chore

* feat: add CandidatePool, DelayedPayouts, Staked

* chore

* chore

* chore

* chore

* chore

---------

Signed-off-by: Jonathan Alvarez <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Mi1kTea <[email protected]>
Co-authored-by: Jonathan Alvarez <[email protected]>
Co-authored-by: 0xverin <[email protected]>
Co-authored-by: Kasper Ziemianek <[email protected]>
Co-authored-by: Faisal Ahmed <[email protected]>
Co-authored-by: Jayanring <[email protected]>
Co-authored-by: Jayanring <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai <[email protected]>
Co-authored-by: will.li <[email protected]>
Co-authored-by: Francisco Silva <[email protected]>
Co-authored-by: Kailai Wang <[email protected]>
Co-authored-by: BillyWooo <[email protected]>

* feat: change basic balance decimal type (#2890)

* Update runtime/litentry/src/migration/mod.rs

Co-authored-by: Francisco Silva <[email protected]>
Signed-off-by: WMQ <[email protected]>

* Update runtime/litentry/src/migration/mod.rs

Co-authored-by: Francisco Silva <[email protected]>
Signed-off-by: WMQ <[email protected]>

* chore: typo

* feat: disable precompile ts test

* debug: wrong push, revert

* feat: switch migration file structure

* feat: Migration of pallet_balances related and runtime impl

* chore: comment

* chore

* feat/debug: add rococo migration

* chore

* chore

* chore: fix weak bounded vector reference

* chore: remove Saturating

* Sync (#2917)

* feat: disable precompile ts test

* debug: wrong push, revert

* P-865 Adding solana token holding amount (#2905)

* add MoralisClient

* fix secrets

* remove func

* add solana configure

* fmt

* refactor tokens

* removing tokenname mapping

* simplify constructor

* change type

* change one more

* brc20

* erc20

* refactoring token info

* roolback MoralisClient

* fix params

* Integrated function

* feat/debug: add rococo migration

---------

Signed-off-by: WMQ <[email protected]>
Co-authored-by: 0xverin <[email protected]>

* chore

* chore

* P-865 Adding solana token holding amount (#2905) (#2918)

* add MoralisClient

* fix secrets

* remove func

* add solana configure

* fmt

* refactor tokens

* removing tokenname mapping

* simplify constructor

* change type

* change one more

* brc20

* erc20

* refactoring token info

* roolback MoralisClient

* fix params

* Integrated function

Co-authored-by: 0xverin <[email protected]>

* chore

* chore

* chore: fix some balance low issue due to transaction payment change

* chore

* debug: fix test of xcm

* chore

* chore

* chore

* P 899 pallet balances transaction payment migration (#2938)

* chore

* chore

* chore: fix runtime xcm test

* chore

* Warn: This change to chain_spec is TBD

* debug: (Critical) temporary disable all ts-test

* feat: change DOLLARS constant

* chore

* Update mod.rs

Signed-off-by: WMQ <[email protected]>

* Update mod.rs

Signed-off-by: WMQ <[email protected]>

* 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]>

* 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

* parachain-api: expose link_identity_callback (#2937)

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

* 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: typo

---------

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]>

* P 896 bridge related migration decimal convertor (#2940)

* 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]>

* chore: fmt

* uncomment

* chore: remove unneccessary assert

* debug: update decimal

* comment steps

* chore: update bridge binary source. solidity is untouched

* Merge branch 'p-895-This-Branch-Will-Not-Merged-Until-Our-Decimal-Migration-Is-Ready!' into fix-ts-tests-after-p-895

* storage migration: pallet bounties treasury democracy preimage evm decimal (#2932)

* fix: write storage migration for pallet bounty

* fix: add storage migration for bounties,treasury,democracy and preimage

* fix: storage migrations for pallet_preimage

* fix: use put_storage_value for preimage

* fix: update checks for migration and test migration

* refactor: update log targets

* fix: build after conflict resolution

* refactor: reduce the number of loops and remove asserts

* refactor: fix clippy

* refactor: typo

---------

Signed-off-by: Faisal Ahmed  <[email protected]>

* chore: update bridge contract

* chore

* chore

* chore

* chore

* chore

* fxi AssetInfo

* chore

* chore: clean all migration files

* change decimal

* fix evm tests

* fix precompile contracts

* disable bridge tests

* add bridge test

* disable bridge tests

* add bridge tests

* chore: fix

* chore

* fix signTransaction value

* remove ,

* disable bridge tests

* chore

* P 898 vesting proxy (#2942)

* add migration for: Vesting and Proxy

* missing one

* add  identity & multisig

* minor fix

* check against empty storage

* rm warnings

* build fix

* rm unused crate

* fmt

* Update migrate_multisig.rs

Signed-off-by: WMQ <[email protected]>

---------

Signed-off-by: WMQ <[email protected]>
Co-authored-by: WMQ <[email protected]>

* fix fee

* chore

* chore

* chore

* chore

* chore

* chore: fix rococo try-runtime

* bump versions

* fix test

* add filterMode

* test bridge

* chore

* fix resourceToAssetInfo

* fix bridge steps

* remove log

* update genesis

* chore: update rustc version

* chore: docker tag fix

* fix bridge tests

* remove log

* remove comment

* chore: update lock file

---------

Signed-off-by: Jonathan Alvarez <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: WMQ <[email protected]>
Signed-off-by: Faisal Ahmed  <[email protected]>
Signed-off-by: 0xverin <[email protected]>
Co-authored-by: Mi1kTea <[email protected]>
Co-authored-by: Jonathan Alvarez <[email protected]>
Co-authored-by: 0xverin <[email protected]>
Co-authored-by: Kasper Ziemianek <[email protected]>
Co-authored-by: Faisal Ahmed <[email protected]>
Co-authored-by: Jayanring <[email protected]>
Co-authored-by: Jayanring <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai <[email protected]>
Co-authored-by: will.li <[email protected]>
Co-authored-by: Francisco Silva <[email protected]>
Co-authored-by: Kailai Wang <[email protected]>
Co-authored-by: BillyWooo <[email protected]>
Co-authored-by: Yang <[email protected]>
Co-authored-by: Verin1005 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants