Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0ba45f4
Add orders, create order on claim
cak3ninja Jul 5, 2024
db9fc00
Add methods to authorize and buy orders
cak3ninja Jul 15, 2024
aff10f3
Simplify claim authorization
cak3ninja Jul 17, 2024
82b6e75
Fix callback handling
cak3ninja Jul 18, 2024
b5ee231
Remove order in execution, add access assertions
cak3ninja Jul 18, 2024
187330c
Add gas checks
cak3ninja Jul 18, 2024
3abe575
Add cleanup after execution
cak3ninja Jul 19, 2024
5484c1d
Add orders revoke
cak3ninja Jul 22, 2024
2e901e1
fix: update proper claim on an order revoke
cak3ninja Sep 11, 2024
434710b
fix: approved amount calculation
cak3ninja Sep 17, 2024
4e2478d
fix: approved amount calculation
cak3ninja Oct 15, 2024
6aa22f5
build: update wasm
cak3ninja Oct 15, 2024
3f500e9
feat: add 'issue' method
cak3ninja Jan 15, 2025
a22b58b
feat: add issuer script
cak3ninja Mar 7, 2025
823914a
chore: update rust version and use U128
cak3ninja Mar 7, 2025
38a0544
update integration build script
cak3ninja Mar 10, 2025
75d70a5
Fixed integration test build
VladasZ Mar 10, 2025
4013a5d
fix builds
cak3ninja Mar 10, 2025
48ba02b
add release build
cak3ninja Mar 10, 2025
4ff412a
fix lint and update ci
cak3ninja Mar 10, 2025
2eec76f
add release build
cak3ninja Mar 10, 2025
a68261d
fix ci
cak3ninja Mar 10, 2025
8409552
fix ci
cak3ninja Mar 10, 2025
4132b3b
fix import
cak3ninja Mar 10, 2025
c41cabf
add UpdateOrder event (#4)
cak3ninja Oct 10, 2025
dcb4e48
feat: add termination in past (#6)
cak3ninja Oct 10, 2025
ca57f2d
build
cak3ninja Oct 10, 2025
c888d2e
fix: order execution
cak3ninja Oct 10, 2025
fdce30b
build
cak3ninja Oct 10, 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
9 changes: 9 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[profile.release]
strip = true
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"
overflow-checks = true

[profile.contract]
inherits = "release"
strip = true
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Build
run: make build-in-docker
run: make build-release

lint:
runs-on: ubuntu-latest
Expand All @@ -27,6 +30,9 @@ jobs:
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Lint
run: make lint

Expand All @@ -37,6 +43,9 @@ jobs:
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Unit tests
run: make test

Expand All @@ -48,5 +57,8 @@ jobs:
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Integration tests
run: make integration
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Build
run: make build

Expand All @@ -27,6 +30,9 @@ jobs:
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Lint
run: make lint

Expand All @@ -37,6 +43,9 @@ jobs:
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- name: Unit tests
run: make test

Expand All @@ -47,6 +56,9 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.13.4/cargo-near-installer.sh | sh

- 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 @@ -5,7 +5,7 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
#Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.configureOnOpen": false
}
Loading