Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
8b3af87
feat: solver registry and intents vault contracts
think-in-universe Jun 2, 2025
6cf9c24
fix: build error
think-in-universe Jun 2, 2025
467e6ab
feat: fix build error
think-in-universe Jun 2, 2025
db0b4c8
ci: build and test
think-in-universe Jun 2, 2025
0044769
style: code format
think-in-universe Jun 2, 2025
48e7a9a
feat: tee solver server
think-in-universe Jun 2, 2025
2c8ffda
fix: assert owner
think-in-universe Jun 2, 2025
8cfe098
test: mock intents contract for testing
think-in-universe Jun 4, 2025
813d9e0
fix: integration test failures
think-in-universe Jun 4, 2025
d59c4c6
style: code format
think-in-universe Jun 4, 2025
fa659e8
ci: fix test failure
think-in-universe Jun 4, 2025
c870217
refactor: disbale add/remove liquidity
think-in-universe Jun 6, 2025
6d44827
feat: view functions
think-in-universe Jun 6, 2025
dc2a3e4
style: code format
think-in-universe Jun 6, 2025
07b4a06
feat: deposit into pool
think-in-universe Jun 7, 2025
2173e0b
style: comment
think-in-universe Jun 7, 2025
38a4d13
fix: deposit into pool incorrect refund
think-in-universe Jun 7, 2025
923a8c3
fix: two tokens cannot be identical
think-in-universe Jun 8, 2025
1c36e07
style: code format
think-in-universe Jun 8, 2025
aa6147f
feat(server): deploy solvers
think-in-universe Jun 8, 2025
b82d73f
feat(server): fund solvers with initial balances
think-in-universe Jun 8, 2025
1876518
chore: update solver codehash
think-in-universe Jun 8, 2025
f7dbb35
chore: update solver codehash
think-in-universe Jun 8, 2025
ab489f5
chore: contract wasm files
think-in-universe Jun 8, 2025
34932d0
chore: mainnet deployment
think-in-universe Jun 8, 2025
cbef73d
chore: update tee solver code hash
think-in-universe Jun 9, 2025
f712103
chore: update scripts
think-in-universe Jun 9, 2025
ac71c67
feat: verify public key with remote attestation report data
think-in-universe Jun 10, 2025
4937c30
chore: deploy solver registry in testnet
think-in-universe Jun 10, 2025
dfab19a
fix: parse public key
think-in-universe Jun 10, 2025
e1a628f
chore: update solver registry wasm file
think-in-universe Jun 10, 2025
499c8e0
fix: pad the public key hex with 0 to 128 bytes
think-in-universe Jun 10, 2025
8af3725
chore: update solver registry wasm file
think-in-universe Jun 10, 2025
fe53bfc
refactor: contract
think-in-universe Jun 10, 2025
7472c8d
chore: update solver registry wasm file
think-in-universe Jun 10, 2025
5241482
test: ignore integration test which won't succeed
think-in-universe Jun 10, 2025
0a76baa
feat: update readme and env vars
think-in-universe Jun 10, 2025
c4a8d70
docs: update readme
think-in-universe Jun 10, 2025
aefc173
docs: update the readme
think-in-universe Jun 10, 2025
9f2acad
docs: update readme
think-in-universe Jun 12, 2025
2214455
style: fix comment
think-in-universe Jun 12, 2025
dc79a28
chore: replace ts-node with tsx
think-in-universe Jun 15, 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
33 changes: 33 additions & 0 deletions .github/workflows/bulid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
on:
push:
branches:
- main
pull_request:

jobs:
build-solver-registry:
name: Build Solver Registry
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.14.2/cargo-near-installer.sh | sh
- name: Build
run: |
cd contracts/solver-registry
cargo near build reproducible-wasm

build-intents-vault:
name: Build Intents Vault
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.14.2/cargo-near-installer.sh | sh
- name: Build
run: |
cd contracts/intents-vault
cargo near build reproducible-wasm
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test
on:
push:
branches:
- main
pull_request:

jobs:
code-formatting:
name: Code Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: cargo fmt --check

code-linter:
name: Code Linter
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo clippy
run: |
rustup component add clippy
cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery

tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.14.2/cargo-near-installer.sh | sh
- name: Run cargo test
run: make test
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/target/
.cargo/
.idea/
.vscode/
.cursor
.DS_Store
justfile
res/
Loading