Skip to content

Commit

Permalink
feat: defer tokens for claim (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyafromrussia authored Feb 6, 2024
2 parents 2b30795 + f19b87d commit 0f10357
Show file tree
Hide file tree
Showing 51 changed files with 7,919 additions and 1,648 deletions.
9 changes: 9 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[profile.contract]
inherits = "release"
strip = true
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"
overflow-checks = true
43 changes: 43 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Push

on:
push:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

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

- name: Lint
run: make lint

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
run: make build

unit-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Unit tests
run: make test

integration-tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Integration tests
run: make integration
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
pull_request:
branches: [ main, dev ]

env:
CARGO_TERM_COLOR: always

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

- name: Lint
run: make lint

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
run: make build

unit-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Unit tests
run: make test

integration-tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Integration tests
run: make integration
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
target/
neardev/


.DS_Store
3 changes: 3 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
max_width = 120
Loading

0 comments on commit 0f10357

Please sign in to comment.