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

Ci #326

Closed
wants to merge 92 commits into from
Closed

Ci #326

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
ed1a89d
workspaces added
piniom Jan 11, 2024
28d3cf1
unify tests
piniom Jan 11, 2024
e1f9840
fmt
piniom Jan 11, 2024
2202a0e
cleanup
neotheprogramist Jan 11, 2024
fa4e65d
move deps to workspace
neotheprogramist Jan 11, 2024
d3b0193
make tests compile
piniom Jan 12, 2024
9573ee7
add erc20 contract and update abigen
piniom Jan 12, 2024
839b37d
Fix account-sdk test failure
broody Feb 21, 2024
90affea
Auth check `set_webauthn_pub_key`
broody Feb 22, 2024
de64e7b
add back in option
broody Feb 22, 2024
34b6c06
extract verifying key converter
piniom Jan 22, 2024
50ff924
cargo clippy
piniom Jan 25, 2024
575c36c
revert assertion removal
piniom Jan 29, 2024
a8f851f
remove devnet runner test
piniom Feb 28, 2024
5457596
bump merkle_tree version and update test
piniom Feb 28, 2024
13f80a9
change hashing to reflext alexandria fix
piniom Feb 28, 2024
20d0a80
cargo clippy
piniom Mar 11, 2024
658abc0
working with transaction waiter
piniom Mar 11, 2024
9eaf665
rewrite transaction waiter
piniom Mar 11, 2024
5211634
cargo clippy
piniom Mar 11, 2024
119ece6
update wasm sleep mechanics and remove features
piniom Mar 11, 2024
f6a46ab
dont include tokio as a dep when building for wasm32
piniom Mar 11, 2024
7ecca58
add build script
piniom Mar 13, 2024
074846c
update dependencies
piniom Mar 13, 2024
06835be
katana, starknet and abigen update
piniom Mar 15, 2024
daa584a
store the compiled class artifact in the git repo
piniom Mar 17, 2024
b4831fd
make cargo clippy happy
piniom Mar 18, 2024
800671b
Add CI
tarrencev Mar 18, 2024
b5a6575
Add device signer (#46)
broody Mar 24, 2024
79cf19c
Decode signature from assertion response
broody Apr 4, 2024
7d6e968
bump scarb version
piniom Apr 22, 2024
92d2faf
generate rust client
piniom Apr 24, 2024
163a638
fighting with the "Invalid contract class"
piniom Apr 26, 2024
634ae5c
stark pair auth works
piniom Apr 26, 2024
29c52a3
webauthn works but without the y_parity
piniom Apr 26, 2024
28f7592
y_parity corrected
piniom Apr 27, 2024
fbaa29b
use cainome::cairo_serde::u256 and replace own
piniom Apr 28, 2024
0adadea
public key conversions cleanup
piniom Apr 28, 2024
52981c9
tests cleanup and webauthn account
piniom Apr 28, 2024
e8689d0
cleanup signature
piniom Apr 28, 2024
147d018
swap custom to felts serialization for the abigen one
piniom Apr 28, 2024
13aee4b
rename
piniom Apr 28, 2024
1c4d4e7
add sha256 version enum
piniom Apr 28, 2024
7fc4ec1
reintroduce device
piniom Apr 28, 2024
0efaf8c
Bump cainome version and use the unmocked NonZero
piniom Apr 29, 2024
fdea206
device signer pub_key retrieval mock
piniom Apr 29, 2024
13863c9
Extract pubkey from authenticator
broody Apr 30, 2024
3e2de58
Simplify y parity extraction
broody May 1, 2024
a52b3b0
Set pubkey directly
broody May 2, 2024
e4c3a9a
Revert back to recovery id
broody May 3, 2024
acd65ac
Fix sec1 key and recovery message
broody May 3, 2024
35b31b2
Update wasm-webauthn dep
broody May 3, 2024
e40bca3
rename webauthn_signer to webauthn
piniom May 7, 2024
dd392a3
refactor
piniom May 7, 2024
6ac1dba
rename
piniom May 7, 2024
06549b0
contract alias
piniom May 7, 2024
9dc03c3
cartridge account
piniom May 7, 2024
c2e7db8
starknet signer
piniom May 7, 2024
44838e9
webauthn tests
piniom May 7, 2024
c582633
remove test method from contract
piniom May 7, 2024
a8ea020
starknet signer test
piniom May 7, 2024
38b8422
guardian implementation
piniom May 7, 2024
5936634
guardian tests
piniom May 7, 2024
0fc7656
tweaks
piniom May 8, 2024
3c0d158
add session structs
piniom May 8, 2024
dad3f45
rename signer trait
piniom May 8, 2024
7bfc84c
add execution signer
piniom May 8, 2024
c1ef0b5
add execution signer
piniom May 8, 2024
f7be488
remove unnecessary
piniom May 8, 2024
2411d0e
add session signer
piniom May 8, 2024
0f37959
intorduce session account mechanism
piniom May 8, 2024
815fa03
account signature works
piniom May 8, 2024
98a6e4f
session signature works
piniom May 8, 2024
2bed07d
refactor
piniom May 8, 2024
9ca8d35
hash function
piniom May 8, 2024
ed4eb89
session prototype
piniom May 8, 2024
ab351df
add tests and webauthn guid
piniom May 8, 2024
2fbca8b
remove old session implementation
piniom May 8, 2024
686d0d0
signer rename
piniom May 8, 2024
7dcf6b0
rename
piniom May 8, 2024
a06a4c5
move raw session to a separate file
piniom May 8, 2024
915e550
cargo fmt
piniom May 8, 2024
feb3422
delete old tests
piniom May 8, 2024
2b2ad9a
make method struct serializable
piniom May 9, 2024
3cb889b
Fix CI (#9)
piniom May 15, 2024
96cbf5c
scarb compiles
piniom May 15, 2024
7dd8387
compiled accounts and abigen generation
piniom May 15, 2024
e08ea19
webauthn mock
piniom May 16, 2024
c171776
webauthn unmocked
piniom May 17, 2024
95179db
sessions work but the code needs some cleaning up
piniom May 20, 2024
e1bc2f4
Add 'controller/crates/account_sdk/' from commit '95179dbf789d82bdc1d…
tarrencev May 30, 2024
8da36ae
Improve ci
tarrencev May 31, 2024
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
44 changes: 0 additions & 44 deletions .github/workflows/build.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: quality

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.78.0

jobs:
ensure-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
target: wasm32-unknown-unknown
- run: cargo build -r --target wasm32-unknown-unknown -p account-sdk

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy
- run: cargo clippy --all-targets --all-features

rust-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
components: rustfmt
- uses: actions-rust-lang/rustfmt@v1

ts-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: corepack enable pnpm
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 9
run_install: false
- run: pnpm install --frozen-lockfile
- run: pnpm lint
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: test

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.78.0

jobs:
rust-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:v0.7.0-alpha.2
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- run: cargo llvm-cov --all-features --lcov --output-path lcov.info
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info

ts-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: corepack enable pnpm
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 9
run_install: false
- run: pnpm install --frozen-lockfile
- run: pnpm test:ci --coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
43 changes: 43 additions & 0 deletions controller/crates/account_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[package]
name = "account-sdk"
edition.workspace = true
version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["lib"]

[dependencies]
anyhow.workspace = true
async-trait.workspace = true
base64.workspace = true
cainome.workspace = true
cairo-lang-starknet.workspace = true
coset.workspace = true
ecdsa.workspace = true
futures.workspace = true
lazy_static.workspace = true
p256.workspace = true
primitive-types.workspace = true
rand_core.workspace = true
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
thiserror.workspace = true
toml.workspace = true
u256-literal.workspace = true
url.workspace = true
wasm-bindgen-futures.workspace = true
wasm-bindgen.workspace = true
wasm-webauthn.workspace = true
web-sys = "0.3.69"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-test = "0.3.34"
js-sys = "0.3.69"

Large diffs are not rendered by default.

Loading
Loading