Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
c50bfdb
README setup instructions improved
Feb 4, 2025
646bc03
ci: add `workflow_dispatch` (#11)
Daniel-Aaron-Bloom Apr 23, 2025
939ffad
solana: fix idl build (#16)
a5-pickle Apr 28, 2025
25d7866
make offer_token mutable account
Feb 14, 2025
a66b63c
[broken] starting off the work to add integration test
Feb 5, 2025
43720d9
creating vaas for deposits and fts work
Feb 7, 2025
412b6ff
working improve offer and initial offer
Feb 14, 2025
296a10c
saved cargo.lock changes
Feb 14, 2025
5c5eb3b
[broken] saving work
Feb 21, 2025
17f8bb7
working shim test
Feb 24, 2025
521f7d7
removed warnings
Feb 24, 2025
3edc58f
[working] test passes for fallback function
Feb 27, 2025
fa677ee
up to date with 21b4eae5 of shims
Feb 27, 2025
ec90de5
[broken]: written execute order test but it is failing
Mar 3, 2025
243e497
[working] execute order shim fallback works test works, but test need…
Mar 4, 2025
43c8509
[broken] dumb rpcerror(deadlineexceeded) error
Mar 11, 2025
069b689
[broken] smaller test to reproduce deadlineExceeded
Mar 11, 2025
846120c
made sure post signatures program is being added, still broken
Mar 11, 2025
0cf3974
[maybe working?] changing keypairs for signers?
Mar 11, 2025
fcf0c36
[weird but working]
Mar 11, 2025
b4aa6b9
doing cctp message magic
Mar 14, 2025
3cba0ac
[working] with big cleanup
Mar 19, 2025
25f3e7d
[broken] execute order shim does not check auction deadline
Mar 20, 2025
093c29d
fixed stack issue with prepare order response
Mar 23, 2025
0dfbb0e
all tests pass
Mar 25, 2025
8e8498d
fully refactored, all tests pass
Mar 25, 2025
bc633fd
working tests
Mar 26, 2025
a1d992d
all tests passing
Mar 26, 2025
1b72307
only the create and close fast market order instructions included
Mar 26, 2025
2407525
testing readme added
Mar 26, 2025
d934be7
more comments
Mar 26, 2025
a9e9b64
changed workflows solana yml
Mar 26, 2025
257bd5c
Cargo toml edited and Makefile all targets removed
Mar 26, 2025
ad3a933
workflow recurses submodule
Mar 26, 2025
d27e8e2
manual clippy lint fixes
Mar 26, 2025
1730e2d
clippy auto edits
Mar 26, 2025
1bf2fb0
linting done
Mar 26, 2025
3caf963
check idl fixes
Mar 26, 2025
573b477
any changes here?
Mar 26, 2025
d3c9ea5
trying to unexpose composite
Mar 26, 2025
93addf3
improved place initial offer shim
Mar 27, 2025
89220ca
execute order added as well
Mar 27, 2025
0da6cb4
make lint
Mar 27, 2025
6aefcce
moved tests into modules
Mar 28, 2025
08d3fd1
clippy
Mar 28, 2025
a44b42e
added workflow and idl
Mar 28, 2025
d5f2de4
removed Rc<RefCell<>>
Mar 30, 2025
7263e65
made lint
Mar 30, 2025
3f08119
removed clippy refcell ignore
Mar 30, 2025
c5477f0
more docs
Apr 1, 2025
1b6d6d8
refactor to make prettier
Apr 1, 2025
5828ea1
added some negative tests, some more refactoring
Apr 2, 2025
bac1780
added filestrings to most places
Apr 2, 2025
bb4543f
added error code, and some program checks
Apr 2, 2025
f5d739c
fixed filestrings in testing_scenarios dir
Apr 2, 2025
b8a67b7
tests and lint pass
Apr 7, 2025
c0ddd2a
more tests added
Apr 7, 2025
93c6ccb
idl built
Apr 8, 2025
7c3cbfa
more negative tests added
Apr 14, 2025
17eb8d2
execute order testing checks improved, fix to prepare order instructi…
Apr 18, 2025
f043f7e
added some more tests
Apr 19, 2025
a2a3eba
removed src/lib from testing module
Apr 22, 2025
6b3c448
changed name of lup.json
Apr 22, 2025
6f30c67
address shimful directory comments. Added ability to create transacti…
Apr 22, 2025
f6f929d
burn_and_post.rs + execute_order.rs comments addressed
Apr 22, 2025
f4d6be4
close_fast_market_order.rs ammended
Apr 22, 2025
15cef8b
lut and compute limit mistake ammended
Apr 22, 2025
265ac14
place initial offer comments
Apr 22, 2025
335ff84
place initial offer and prepare order response
Apr 22, 2025
d07a72a
initialise fast market order comments attended
Apr 22, 2025
ec63679
helpers comment attended
Apr 22, 2025
a3e17d7
attended all comments so far
Apr 22, 2025
75a0ad8
attended rest of comments
Apr 23, 2025
2e727bc
removed newly added crate
Apr 23, 2025
bcb8b05
make idl
Apr 23, 2025
f02aa83
close market refund recipient is pubkey instead of bytes
May 6, 2025
3ad6d50
american english spelling adopted
May 6, 2025
66c04f8
do not have to check from endpoint cctp
May 6, 2025
e39d9fe
make lint and rename of files
May 6, 2025
5992933
removed unnecessary program log
May 6, 2025
65f26bd
create token account only creates usdc token account
May 6, 2025
f2f7a07
fast market order as ref instead of owned for efficiency
May 6, 2025
dd56e0f
helper function for custodian check
May 6, 2025
e172c85
reintroduce match statement for additional grace period
May 7, 2025
4fd8ed2
improvements from the call
May 7, 2025
1a7abb6
all tests passing
May 7, 2025
e0f97f9
[broken] signers not attached properly
May 8, 2025
940c716
[working] instruction added to check that create fast market order an…
May 8, 2025
9a52c06
docstrings edited and added
May 8, 2025
3f2a8e2
refactored and docstringed matching-engine-testing/tests/shimful dire…
May 9, 2025
a413abf
refactored and docstringed matching-engine-testing/tests/shimless dir…
May 9, 2025
70539c2
small docstring addition
May 9, 2025
6f736b5
README updated to actually show how to run the tests
May 9, 2025
1a3dcf4
solana: update Makefile
a5-pickle May 8, 2025
d6d9e7e
solana: clean up helpers
a5-pickle May 8, 2025
3f7b0bc
solana: clean up fast market order
a5-pickle May 8, 2025
7765d02
solana: begin fallback processor clean up
a5-pickle May 8, 2025
78b3e4b
solana: clean up close fast market order
a5-pickle May 8, 2025
6d33437
solana: more close fast market order fixes
a5-pickle May 8, 2025
3ce3e3c
solana: more initialize fast market order fixes
a5-pickle May 8, 2025
b447570
solana: rename close fast market order processor fn
a5-pickle May 8, 2025
dedf1ae
solana: clean up place initial offer
a5-pickle May 9, 2025
6ad6479
initialize fast market order fixup
a5-pickle May 12, 2025
c101a37
solana: more place initial offer fixes
a5-pickle May 12, 2025
636aacb
solana: clean up execute order
a5-pickle May 12, 2025
dcd7e95
solana: clean up prepare order response
a5-pickle May 13, 2025
a2c43b4
solana: more clean up
a5-pickle May 14, 2025
823ec88
settle auction none ix added and tests pass
May 13, 2025
253c573
creating a helper function for settle_none_prepare_fill
May 14, 2025
5c2301a
working tests
May 14, 2025
09ce66a
make lint
May 14, 2025
0c4dd70
solana: clean up settle auction none
a5-pickle May 15, 2025
2af2c6b
solana: update IDLs
a5-pickle May 15, 2025
8233afe
from router passed to initialize fast market order
May 13, 2025
314d99a
make lint
May 14, 2025
f63bf76
fix with rebase
May 15, 2025
21bce19
update wormhole submodule rev
a5-pickle May 15, 2025
8afe034
Update solana/programs/matching-engine/src/fallback/processor/initial…
bengtlofgren May 15, 2025
38d6409
Update solana/programs/matching-engine/src/fallback/processor/initial…
bengtlofgren May 15, 2025
14e3bef
move the check above
bengtlofgren May 15, 2025
6ea6bde
[working] hotfix
bengtlofgren May 16, 2025
e1eae1b
tests that custody token and prepared order response are closed
bengtlofgren May 15, 2025
0e2fa68
added github workflow
bengtlofgren May 16, 2025
d7373aa
fix workflow
a5-pickle May 16, 2025
7956bb9
makefile changed to 3 threads
bengtlofgren May 16, 2025
27b0cd1
makefile changed to 1 thread
bengtlofgren May 16, 2025
702a685
refactored execute_fast_order fn to be reused
May 11, 2025
02a448f
place initial offer helper function with reuse
May 13, 2025
e73eeeb
solana: refactor internal accounting
a5-pickle May 16, 2025
cc865ef
one line fix Cargo.toml
bengtlofgren May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 61 additions & 1 deletion .github/workflows/solana.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: solana

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
pull_request:
branches:
- main
- 'shim/integration'
paths:
- 'solana/**'

Expand All @@ -26,10 +30,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
- name: Git Submodule Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git submodule update --init --recursive
working-directory: ./solana
- name: make cargo-test-all
run: make cargo-test-all
working-directory: ./solana
Expand All @@ -39,11 +51,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: clippy, rustfmt
- name: Git Submodule Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git submodule update --init --recursive
working-directory: ./solana
- name: make lint
run: make lint
working-directory: ./solana
Expand All @@ -53,6 +73,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: metadaoproject/setup-anchor@v2
with:
node-version: "20.11.0"
Expand All @@ -61,6 +83,12 @@ jobs:
- name: Set default Rust toolchain
run: rustup default stable
working-directory: ./solana
- name: Git Submodule Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git submodule update --init --recursive
working-directory: ./solana
- name: make check-idl
run: make check-idl
working-directory: ./solana
Expand All @@ -70,6 +98,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand All @@ -82,6 +112,12 @@ jobs:
- name: Set default Rust toolchain
run: rustup default stable
working-directory: ./solana
- name: Git Submodule Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git submodule update --init --recursive
working-directory: ./solana
- name: make anchor-test
run: make anchor-test
working-directory: ./solana
Expand All @@ -91,6 +127,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand All @@ -106,3 +144,25 @@ jobs:
- name: make anchor-test-upgrade
run: make anchor-test-upgrade
working-directory: ./solana

make-test-sbf:
name: make test-sbf
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: metadaoproject/setup-anchor@v2
with:
node-version: "20.11.0"
solana-cli-version: "1.18.15"
anchor-version: "0.30.1"
- name: Git Submodule Update
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git submodule update --init --recursive
working-directory: ./solana
- name: make test-sbf
run: make test-sbf
working-directory: ./solana
3 changes: 2 additions & 1 deletion .github/workflows/universal-rs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: universal-rs

on:
workflow_dispatch:
push:
branches:
- main
Expand Down Expand Up @@ -73,4 +74,4 @@ jobs:
toolchain: ${{ env.RUSTC_VERSION }}
components: rustfmt
- run: cargo fmt --all --check
working-directory: ./universal/rs
working-directory: ./universal/rs
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
path = evm/lib/wormhole-solidity-sdk
url = https://github.com/wormhole-foundation/wormhole-solidity-sdk
branch = 2b7db51f99b49eda99b44f4a044e751cb0b2e8ea
[submodule "solana/lib/wormhole"]
path = solana/lib/wormhole
url = https://github.com/wormhole-foundation/wormhole.git
branch = 33dd6a56541c2d15d3e20faa1330ba542a5fa727
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,22 @@ git clone [email protected]:wormhole-foundation/example-liquidity-layer.git --recur

## Prerequisites

### Node version

It is recommended to use `Node v20.18.x`.

```bash
# E.g.
nvm install 20.18.2
nvm use 20.18.2
```

### EVM

Install [Foundry tools](https://book.getfoundry.sh/getting-started/installation), which include `forge`, `anvil` and `cast` CLI tools.

Before using the typescript SDK, build the evm types by running `npm run build` *inside* the `evm` directory. Without this step, the typescript SDK will not be able to be interpreted by the typescript compiler.

## Build, Test and Deploy Smart Contracts

Each directory represents Wormhole integrations for specific blockchain networks. Please navigate to a network subdirectory to see more details (see the relevant README.md) on building, testing and deploying the smart contracts.
Expand Down
Loading