Skip to content

Commit

Permalink
p-895: Final Merge of Decimal Migration and Bridge change (#2941)
Browse files Browse the repository at this point in the history
* 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 <jonathan@litentry.com>
Co-authored-by: 0xverin <104152026+0xverin@users.noreply.github.com>

* 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 <kasper.ziemianek@gmail.com>
Co-authored-by: Jayanring <junjie@liteng.io>

* 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] <support@github.com>
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 <Kailai.Wang@hotmail.com>

* 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 <thedreamofbilly@gmail.com>

* 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 <thedreamofbilly@gmail.com>

* chore

* feat: add CandidatePool, DelayedPayouts, Staked

* chore

* chore

* chore

* chore

* chore

---------

Signed-off-by: Jonathan Alvarez <jonathan@litentry.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Mi1kTea <73102617+m1iktea@users.noreply.github.com>
Co-authored-by: Jonathan Alvarez <jonathan@litentry.com>
Co-authored-by: 0xverin <104152026+0xverin@users.noreply.github.com>
Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>
Co-authored-by: Faisal Ahmed <42486737+felixfaisal@users.noreply.github.com>
Co-authored-by: Jayanring <81245047+Jayanring@users.noreply.github.com>
Co-authored-by: Jayanring <junjie@liteng.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>
Co-authored-by: will.li <120463031+higherordertech@users.noreply.github.com>
Co-authored-by: Francisco Silva <franjs.francisco@gmail.com>
Co-authored-by: Kailai Wang <Kailai.Wang@hotmail.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

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

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

Co-authored-by: Francisco Silva <franjs.francisco@gmail.com>
Signed-off-by: WMQ <46511820+wangminqi@users.noreply.github.com>

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

Co-authored-by: Francisco Silva <franjs.francisco@gmail.com>
Signed-off-by: WMQ <46511820+wangminqi@users.noreply.github.com>

* 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 <46511820+wangminqi@users.noreply.github.com>
Co-authored-by: 0xverin <104152026+0xverin@users.noreply.github.com>

* 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 <104152026+0xverin@users.noreply.github.com>

* 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 <46511820+wangminqi@users.noreply.github.com>

* Update mod.rs

Signed-off-by: WMQ <46511820+wangminqi@users.noreply.github.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

* 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 <junjie@liteng.io>
Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>

* import sidechain block through trusted rpc (#2913)

* import sidechain block through trusted rpc

* use DirectClient

* upstream fixes

---------

Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>

* 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 <junjie@liteng.io>
Co-authored-by: Jayanring <81245047+Jayanring@users.noreply.github.com>

* 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 <jonathan@litentry.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

* chore: typo

---------

Signed-off-by: WMQ <46511820+wangminqi@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jonathan Alvarez <jonathan@litentry.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>
Co-authored-by: Jayanring <81245047+Jayanring@users.noreply.github.com>
Co-authored-by: Jayanring <junjie@liteng.io>
Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>
Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>
Co-authored-by: will.li <120463031+higherordertech@users.noreply.github.com>
Co-authored-by: Francisco Silva <franjs.francisco@gmail.com>
Co-authored-by: Jonathan Alvarez <jonathan@litentry.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

* 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 <junjie@liteng.io>
Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>

* import sidechain block through trusted rpc (#2913)

* import sidechain block through trusted rpc

* use DirectClient

* upstream fixes

---------

Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>

* 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 <junjie@liteng.io>
Co-authored-by: Jayanring <81245047+Jayanring@users.noreply.github.com>

* 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 <jonathan@litentry.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>

* 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 <46511820+wangminqi@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jonathan Alvarez <jonathan@litentry.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>
Co-authored-by: Jayanring <81245047+Jayanring@users.noreply.github.com>
Co-authored-by: Jayanring <junjie@liteng.io>
Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>
Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>
Co-authored-by: will.li <120463031+higherordertech@users.noreply.github.com>
Co-authored-by: Francisco Silva <franjs.francisco@gmail.com>
Co-authored-by: Jonathan Alvarez <jonathan@litentry.com>

* 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  <42486737+felixfaisal@users.noreply.github.com>

* 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 <46511820+wangminqi@users.noreply.github.com>

---------

Signed-off-by: WMQ <46511820+wangminqi@users.noreply.github.com>
Co-authored-by: WMQ <46511820+wangminqi@users.noreply.github.com>

* 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 <jonathan@litentry.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: WMQ <46511820+wangminqi@users.noreply.github.com>
Signed-off-by: Faisal Ahmed  <42486737+felixfaisal@users.noreply.github.com>
Signed-off-by: 0xverin <104152026+0xverin@users.noreply.github.com>
Co-authored-by: Mi1kTea <73102617+m1iktea@users.noreply.github.com>
Co-authored-by: Jonathan Alvarez <jonathan@litentry.com>
Co-authored-by: 0xverin <104152026+0xverin@users.noreply.github.com>
Co-authored-by: Kasper Ziemianek <kasper.ziemianek@gmail.com>
Co-authored-by: Faisal Ahmed <42486737+felixfaisal@users.noreply.github.com>
Co-authored-by: Jayanring <81245047+Jayanring@users.noreply.github.com>
Co-authored-by: Jayanring <junjie@liteng.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>
Co-authored-by: will.li <120463031+higherordertech@users.noreply.github.com>
Co-authored-by: Francisco Silva <franjs.francisco@gmail.com>
Co-authored-by: Kailai Wang <Kailai.Wang@hotmail.com>
Co-authored-by: BillyWooo <thedreamofbilly@gmail.com>
Co-authored-by: Yang <yang@trustcomputing.de>
Co-authored-by: Verin1005 <daqingchong0809@gmail.com>
  • Loading branch information
16 people authored Aug 2, 2024
1 parent 753ef3b commit d5cb113
Show file tree
Hide file tree
Showing 105 changed files with 128,225 additions and 68,287 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
chain: ${{ github.event.inputs.chain }}-parachain
runtime_dir: runtime/${{ github.event.inputs.chain }}
tag: "1.66.0"
tag: "1.73.0"

- name: Summary
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
with:
chain: ${{ matrix.chain }}-parachain
runtime_dir: runtime/${{ matrix.chain }}
tag: "1.66.0"
tag: "1.73.0"

- name: Summary
run: |
Expand Down
56 changes: 39 additions & 17 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion 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,7 +81,8 @@ jsonrpsee = { version = "0.16.3", features = ["server"] }
tokio = { version = "1.39.2", features = ["macros", "sync"] }
strum = { version = "0.26", default-features = false }
strum_macros = { version = "0.26", default-features = false }
num_enum = { version = "0.7.2", default-features = false }
libsecp256k1 = { version = "0.7", default-features = false }
num_enum = { version = "0.7.3", default-features = false }
num-integer = { version = "0.1", default-features = false }
rustc-hex = { version = "2.0.1", default-features = false }
x509-cert = { version = "0.1.0", default-features = false, features = ["alloc"] }
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 bitacross-worker/docker/litentry/rococo-dev-2106.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"protocolId": "litentry-rococo",
"properties": {
"ss58Format": 131,
"tokenDecimals": 12,
"tokenDecimals": 18,
"tokenSymbol": "LIT"
},
"relayChain": "rococo-local",
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/litentry/ChainBridge/cmd/chainbridge@sol0.8.19
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = 'https://litentry.com/'
license = 'GPL-3.0'
name = 'litentry-collator'
repository = 'https://github.com/litentry/litentry-parachain'
version = '0.9.18'
version = '0.9.19'

[[bin]]
name = 'litentry-collator'
Expand Down
34 changes: 17 additions & 17 deletions node/res/chain_specs/litentry-plain.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"protocolId": "litentry",
"properties": {
"ss58Format": 31,
"tokenDecimals": 12,
"tokenDecimals": 18,
"tokenSymbol": "LIT"
},
"relayChain": "polkadot",
Expand All @@ -32,63 +32,63 @@
"balances": [
[
"5ECCQzRn2nUqDesngcoi7FxLhJBXGSnoEmXiMDZXCj94chRP",
100000000000000
100000000000000000000
],
[
"5H9UNkdAAQcwn8QYef64js1utmUcAgU6nJEMZCQjHTQKRNZK",
100000000000000
100000000000000000000
],
[
"5Cu91yt9xWtv1GCrrChB4ePtyTnDLgff7Py7fAXnfH4wi6pR",
100000000000000
100000000000000000000
],
[
"5CfqbgTaQ6ACfvSaqwBeVLhJd3eojV5tSSwa7W1YnmCpogvK",
100000000000000
100000000000000000000
],
[
"5HTXWTCd6aB3miMxPDuhWUcQPrypov17oc7q1oeAmwQpgfVD",
100000000000000
100000000000000000000
],
[
"5FRCtuCCFH36mRUFBMaQw5xo2gQSby6w9tF7tHKaf1oqKAer",
100000000000000
100000000000000000000
],
[
"5FqeHwNdn4tgcHGHMoU1kMrkPoFEFDMU6P7dbKJF5ndbV9T5",
100000000000000
100000000000000000000
],
[
"5GyC1tDbxKTeJ3oLohURTiQZLA65EfyC4LP5rtTjfuT2trDU",
100000000000000
100000000000000000000
],
[
"5ERt9HzQRHvxXQijuzjNWtBDtw6jo8EgvD5aLAGdE8CfYGaR",
100000000000000
100000000000000000000
],
[
"5CnwccuM2oMj6wUB7181yWrRMYqrSNpZ853AT8bir9y91WXj",
100000000000000
100000000000000000000
],
[
"5CSkEPpxwLFgWMZitmAWPiuDn82oca2DtAwRztS6u22osFWf",
100000000000000
100000000000000000000
],
[
"5HQqqio996LPFcExb8rh8nkZ6sPK44MA6rew8fEyrSUAKGDh",
100000000000000
100000000000000000000
],
[
"5GeSKJ61piUpLczzF6Yi3DrRXrcyRQmjeNfjHZvRs4Hm8yRf",
100000000000000
100000000000000000000
],
[
"5CSQ7fmY9XQK9s1ub7ENyxKsrTuYhKMeiyM7CpWXup8wQPdm",
100000000000000
100000000000000000000
],
[
"5DPSiNGHJaRZy6e6qyD6FmWnC8wj9kGALLkDH5qxnc56QcGg",
100000000000000
100000000000000000000
]
]
},
Expand Down Expand Up @@ -139,7 +139,7 @@
"5Cu91yt9xWtv1GCrrChB4ePtyTnDLgff7Py7fAXnfH4wi6pR",
"5CfqbgTaQ6ACfvSaqwBeVLhJd3eojV5tSSwa7W1YnmCpogvK"
],
"candidacyBond": 16000000000000,
"candidacyBond": 16000000000000000000,
"desiredCandidates": 0
},
"session": {
Expand Down
2 changes: 1 addition & 1 deletion node/res/chain_specs/litentry.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"protocolId": "litentry",
"properties": {
"ss58Format": 31,
"tokenDecimals": 12,
"tokenDecimals": 18,
"tokenSymbol": "LIT"
},
"relayChain": "polkadot",
Expand Down
Loading

0 comments on commit d5cb113

Please sign in to comment.