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

Pallet Pass #22

Merged
merged 74 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
380649a
feat: template for `pallet-pass`
pandres95 Apr 26, 2024
6d80021
change: register pallet-pass
pandres95 Apr 30, 2024
818a8d8
change(fc-pallet-pass): add storage for Accounts
pandres95 Apr 30, 2024
b782dd3
change(fc-pallet-pass): success -> register
pandres95 Apr 30, 2024
864d91d
feat(fc-pallet-pass): register
pandres95 May 3, 2024
443587a
Merge pull request #10 from virto-network/pallet-pass-register
olanod May 3, 2024
b86a372
change(pallet-pass): initialize `claim` process.
pandres95 May 3, 2024
31e2da2
change(fc-pallet-pass):
pandres95 May 3, 2024
add187d
Checkpoint. Starting testing.
jgutierrezre May 7, 2024
b56f079
feat: add initial tests for claim() call
jgutierrezre May 7, 2024
1f0fc09
feat: first version of claim call
jgutierrezre May 7, 2024
cdaf36f
change(fc-pallet-pass): implement Registrar for tuples
pandres95 May 7, 2024
026657c
Merge branch 'pallet-pass-claim' of Github.com:virto-network/frame-co…
pandres95 May 7, 2024
0b1c6a9
fix(fc-pallet-pass): several typing issues
pandres95 May 7, 2024
9195e4d
fix(fc-pallet-pass): several typing issues
pandres95 May 7, 2024
f8f6113
fix(fc-pallet-pass): correctly initialize account
pandres95 May 8, 2024
e2d5bad
merge(fc-pallet-pass): merge typo
jgutierrezre May 8, 2024
0153548
todo(fc-pallet-pass): first registrars macro commit with issues for r…
jgutierrezre May 23, 2024
e237f83
change(pallet-pass): implement Registrar trait as tuple / try claimin…
pandres95 May 28, 2024
dfa210d
change(fc-pallet-pass): move traits over to fc-traits-authn
pandres95 May 30, 2024
d7ed6fa
change(fc-pallet-pass): add palletid as random subject
pandres95 May 30, 2024
9c7061f
Merge pull request #12 from virto-network:pallet-pass-claim
pandres95 May 30, 2024
1881952
authenticate and add devices logic, pending to discuss with Pablo
johandroid Jun 12, 2024
efb3869
Fixed compiling issues, working test not working for authenticate. To…
johandroid Jun 12, 2024
9a0cb0d
todo(todo): promised pr
jgutierrezre Jun 15, 2024
781e8b1
Merge branch 'pallet-pass' into pallet-pass-dispatch
pandres95 Jun 15, 2024
b60c7d0
test(fc-pallet-pass): fixed dispatch call/test to initial working state
jgutierrezre Jun 16, 2024
1825f7c
Merge pull request #15 from virto-network/pallet-pass-dispatch
jgutierrezre Jun 16, 2024
4264cc5
Revert "[Pass] Implement `dispatch` call"
jgutierrezre Jun 16, 2024
3205428
Merge pull request #16 from virto-network/revert-15-pallet-pass-dispatch
jgutierrezre Jun 16, 2024
afc3042
test(broken branch)
jgutierrezre Jun 17, 2024
1d264c1
Merge branch 'pallet-pass' into pallet-pass-dispatch
jgutierrezre Jun 17, 2024
ee730e9
Merge pull request #18 from virto-network/pallet-pass-dispatch
jgutierrezre Jun 17, 2024
30cc3b9
Authenticate, pending tests
johandroid Jun 17, 2024
b63ccc4
Merge branch 'pallet-pass' into pallet-pass-dispatch
jgutierrezre Jun 17, 2024
a90e4ee
Merge branch 'pallet-pass' into feature/authenticate
johandroid Jun 17, 2024
17d6d19
Solving brackets issue
johandroid Jun 17, 2024
3e854fc
fix(fc-pallet-pass): Added missing import that somehow got lost in ve…
jgutierrezre Jun 17, 2024
174b400
Merge branch 'pallet-pass' into pallet-pass-dispatch
jgutierrezre Jun 17, 2024
804b0da
fix(fc-pallet-pass): Added missing import for dispatch that somehow g…
jgutierrezre Jun 17, 2024
3193b02
Merge branch 'pallet-pass' into feature/authenticate
johandroid Jun 17, 2024
9ba03f3
First draft of authenticate call
johandroid Jun 17, 2024
4ba851f
Improved code using randomness instead of blocknumber in a manual way…
johandroid Jun 22, 2024
e854afa
Merge pull request #20 from virto-network/feature/authenticate
pandres95 Jun 22, 2024
5560383
Merge branch 'main' into pallet-pass
pandres95 Jul 15, 2024
223084a
change(pallet-pass): cleanup code / remove duplicated codebase
pandres95 Jul 19, 2024
171cf93
Merge branch 'pallet-pass' of Github.com:virto-network/frame-contrib …
pandres95 Jul 19, 2024
57cc80e
Merge branch 'pallet-pass' into pallet-pass-dispatch
pandres95 Jul 19, 2024
291ab14
change(fc-pallet-pass): tests for `add_device`
pandres95 Aug 14, 2024
c0653b2
change(fc-pallet-pass): refine logic to enforce account initialization
pandres95 Aug 18, 2024
5e2cafb
fix(fc-pallet-pass): ensure sessions are created to last between give…
pandres95 Aug 18, 2024
f5b8448
Merge pull request #21 from virto-network/pallet-pass-dispatch
pandres95 Aug 18, 2024
ca9615e
fix(fc-traits-memberships): missing feature runtime-benchmarks in car…
pandres95 Aug 19, 2024
74a33ad
Merge branch 'main' into pallet-pass
pandres95 Sep 17, 2024
002d67b
Remove Registar abstraction
olanod Sep 22, 2024
79b688a
Add Authentication method with Authenticator abstraction + several pa…
olanod Sep 25, 2024
0acbe32
feat: add github ci workflows
pandres95 Sep 26, 2024
2fad579
wip(fc-pallet-pass): handle authenticators as instances
pandres95 Sep 26, 2024
6d3a677
WIP
olanod Sep 26, 2024
804c1be
change(fc-traits-authn): make compiler/linter happy
pandres95 Sep 27, 2024
9acf48b
change(fc-traits-authn): remove redundant type
pandres95 Sep 27, 2024
1085e03
feat(fc-traits-authn): proc macro for composite authenticators
pandres95 Sep 27, 2024
cf067c8
fix(fc-pallet-pass): fix compiler issues in pallet + refactor duplica…
pandres95 Sep 27, 2024
9077ddf
fix(fc-pallet-pass): revive tests
pandres95 Sep 27, 2024
4b9dace
feat(fc-pallet-pass): first benchmark
pandres95 Sep 27, 2024
9a1de4f
change(fc-traits-authn): adjust `composite_authenticators` to make mo…
pandres95 Oct 2, 2024
569c67c
change(fc-pallet-pass): adjust mock to changes in `composite_authenti…
pandres95 Oct 2, 2024
4a750c3
change(fc-pallet-pass): fail `register` early if the account is alrea…
pandres95 Oct 2, 2024
84d3688
change(fc-pallet-pass): add `fail_with_credentials_if_credential_inva…
pandres95 Oct 3, 2024
f3e2a7b
wip(fc-pallet-pass): charge register deposit
pandres95 Oct 3, 2024
b1c1ce7
feat(fc-pallet-pass): register deposit logic
pandres95 Oct 4, 2024
6341c26
change(fc-pallet-pass): remove commented-out authenticators we didn't…
pandres95 Oct 7, 2024
1b1d41d
Merge branch 'main' into pallet-pass
pandres95 Oct 7, 2024
682ddc0
change: make clippy happy
pandres95 Oct 7, 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
84 changes: 84 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Lint, check, clippy and test

on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check formatting
run: cargo fmt --all -- --check

check:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Setup Ubuntu dependencies
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- uses: actions/checkout@v4

- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true
key: check

- name: Check Build
run: |
cargo check --release --locked --all-features --workspace

clippy:
needs: lint
runs-on: ubuntu-latest
permissions:
checks: write
env:
SKIP_WASM_BUILD: 1
steps:
- name: Setup Ubuntu dependencies
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- uses: actions/checkout@v4

- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true
key: check

- name: Annotate with Clippy warnings
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --release --locked --all-features --workspace

test:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Setup Ubuntu dependencies
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- uses: actions/checkout@v4

- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true
key: test

- name: Run tests
run: cargo test --release --locked --all-features --workspace
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
lint:
name: Validate PR title for conventional commit compliance
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ target/

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
.vscode
Loading
Loading