Skip to content

Commit

Permalink
Closed beta (#96)
Browse files Browse the repository at this point in the history
* remove rollup storage

* remove cache

* remove recover check

* remote cloud storage r/w

* add comments

* check tx with off-chin indexer

* fix clippy

* simply graph setup

* delete unused code

* remove graph

* update

* 1) simplify executor setup
  - remove rollup setup
  - remove graph setup
  - introduce remote storage setup
2) update console.js
3) update play document

* update

* fix storage writing

* reduce storage reading

* fix

* comment gas estimation in uniswap executor

* update console.js

* bring back gas estimation

* task retry support

* ensure executor running when retry

* fix task destroy

* claim during task init

* merge various steps into one

* update

* introduce Call

* impl UniswapV2 action

* more actions

* create actions

* remove index

* impl Tokenizable for Call

* upgrade dependencies

* step execution

* call update

* step update

* fix balance settlement

* step merge

* assign call_index when merge

* merge claim and first step

* update

* fix action lookup

* split task logic to multiple file

* fix spend amount when claim

* fix recipient apply and test

* fix step merge and test

* add astar sub > evm transactor

* upgrade to XCM v3

* update

* fix deployment

* fix khala endpoint

* fix call build

* update

* fix batch call failure

* fix bridge balance check

* fix xtransfer weight

* asset registry

* update

* get running task

* fix error InvalidKey

* add support of UniswapV3 based swap router

* fix build

* add command drop-task

* upgrade dependencies

* integrate scheduler into console cli

* remove breakline char

* trival

* WIP: upgrade phala  sdk

* upgrade phala sdk

* dependencies: let @phala/sdk decide the polkadot-js's libraries versions

* dependencies: update @phala/sdk to latest version in beta channel for improved InkResponse error handling

* handler network exception

* ingore InkResponse error

* keep task data in db when finished

* check remote db before init task

* save transaction hash of each step

* update status check

* update moonbeam native asset

* update

* add action to support native asset wrap & unwrap

* adjust call builder according to handler update

* replace step json with scale (#91)

* replace step json with scale

* remove exe_type

* update handler contracts

* double retry limit

* update

* phala sygma

* feat: evm sygma bridge

* 1) support call along with native asset in engine
2) fix & test sygma bridge from goerli to rhala

* fix update offset

* ignore transfer test

* remove approval in sygma

* fix clippy

* add astar native wrapper action

* update handler contracts

* pack call

* adapt new task creation

* bring back recipient

* bring back ABI codec for batch call

* optimize storage access

* fix fee configuration of sygma bridge action

* action: khala to ethereum bridge

* specify fixed version to =1.23.1

* fix sub claim

* action: moonbeam_bridge_to_assethub

* support moonbeam bridge to polkadot

* import worker key

* update ethereum rpc endpoint

* update polkadot rpc endpoint

* remove merge steps

* remove steps

* astar bridge to phala

* polkadot bridges

* phala to polkadot bridge

* polkadot to astar

* sub native transactor

* support AccountKey20 in astar xtokens

* feat: Fee calculation & solution simulation (#93)

* action extra info

* task simulation, including fee calculation

* test solution simulation

* expose more details in simulation result

* update

* more complicate solution simulation

* rename

* fix clippy

* add new extra info

* fix merge

* collect fee when claim evm task

* update

* support claim with fee from pallet-index

* update

* set simulation spned amount according to decimals

* update

* serveal fixes

* fix task finality check

* fix evm tx option settting

* add test

* fix clippy and CI

---------

Co-authored-by: Leechael Yim <[email protected]>
Co-authored-by: Kingsley <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2024
1 parent a6a21ec commit 4c6d8df
Show file tree
Hide file tree
Showing 55 changed files with 7,090 additions and 1,642 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install_toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-02-03
toolchain: nightly-2023-12-26
override: true
target: wasm32-unknown-unknown
components: rustfmt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cargo-contract-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
submodules: "true"
- uses: ./.github/actions/install_toolchain
- name: Install cargo-contract
run: rustup component add rust-src && cargo install cargo-contract --version ^2 --force --locked
run: rustup component add rust-src && cargo install cargo-contract --version ^3.2 --force --locked
- name: Install Binaryen
run: "cd /tmp \
&& curl -OL https://github.com/WebAssembly/binaryen/releases/download/version_110/binaryen-version_110-x86_64-linux.tar.gz \
Expand Down
1 change: 0 additions & 1 deletion chain
Submodule chain deleted from 813927
2 changes: 1 addition & 1 deletion contracts/index_executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ primitive-types = { version = "0.12.1", default-features = false, features = ["c
scale = { package = "parity-scale-codec", version = "3.6.4", default-features = false, features = ["derive"] }
scale-info = { version = "2.9.0", default-features = false, features = ["derive"], optional = true }
xcm = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.43", default-features = false }

pink-kv-session = { version = "0.2.0", default-features = false }
pink-extension = { version = "0.4", default-features = false, features = ["dlmalloc"] }
pink-web3 = { version = "0.20.2", git = "https://github.com/Phala-Network/pink-web3.git", branch = "pink", default-features = false, features = ["pink"]}
Expand All @@ -38,7 +39,6 @@ hex-literal = "0.4.1"
pink-extension-runtime = "0.4.4"
dotenv = "0.15.0"
hex = "0.4.3"

sp-runtime = { version = "7.0.0", git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.43", default-features = false }

[profile.release]
Expand Down
Loading

0 comments on commit 4c6d8df

Please sign in to comment.