-
Notifications
You must be signed in to change notification settings - Fork 19
Escrow proxy #191
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
Open
pityjllk
wants to merge
292
commits into
main
Choose a base branch
from
feat/bus-proxy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Escrow proxy #191
Changes from 250 commits
Commits
Show all changes
292 commits
Select commit
Hold shift + click to select a range
2fa9989
wip
fusede dd205b2
feat: separate protocol fees
fusede 5e48a4e
refactor
fusede 0364f63
chore
fusede 55b5d72
docs
fusede cc34128
feat: escrow-swap contract
fusede 7a8f7e7
fix: docs
fusede 1af3dda
docs: chore
fusede d263def
chore
fusede fea77ae
fix: don't unclude params twice in on_auth
fusede c4a2136
chore
fusede be59817
chore
fusede ce39192
refactor
fusede 1de7349
feat: maker_refunded event
fusede ff89ee0
fix: docs
fusede 3594146
fix: docs
fusede 38f089a
fix: docs
fusede cb02d0a
refactor
fusede 1a55ef7
refactor
fusede 3bd2c54
refactor
fusede 16d7578
chore
fusede 0165a51
chore
fusede 412ece9
chore: relax dependencies
fusede 8459995
chore
fusede 4753781
fix(escrow): docs
fusede b8f7e17
docs: mention embedded lending
fusede 0232eb9
chore
fusede 07893a7
chore
fusede 51c3c4d
chore
fusede 118215a
feat(escrow): taker deadline
mitinarseny 184f5a1
docs: taker's deadline
mitinarseny 3106c67
docs: mention dutch auction
mitinarseny 07a5f6b
Merge branch 'main' into feat/escrow-swap
fusede 8e34bad
format
fusede c7a89d7
feat: deterministic accounts
mitinarseny f4b050b
feat: enable deterministic-accounts feature
mitinarseny ca6e56d
Merge remote-tracking branch 'origin' into feat/deterministic-accounts
mitinarseny 1887cb8
Merge branch 'main' into feat/deterministic-accounts
mitinarseny f512505
Merge branch 'main' into feat/deterministic-accounts
mitinarseny 654d6df
Merge branch 'main' into feat/escrow-swap
mitinarseny 2132cbc
fix: remove #[serde_as]
mitinarseny 5064d53
feat: state_init in NotifyOnTransfer
mitinarseny 2941039
Merge branch 'feat/state_init_on_transfer' into feat/escrow-swap-nep616
mitinarseny 3ca283d
feat: state_init by verifier, it works!
mitinarseny e2f6b0f
format
mitinarseny b8abac3
Merge remote-tracking branch 'origin' into feat/deterministic-accounts
mitinarseny 141a70d
Merge branch 'feat/deterministic-accounts' into feat/state_init_on_tr…
mitinarseny 3e176b9
Merge branch 'feat/state_init_on_transfer' into feat/escrow-swap-nep616
mitinarseny 40c9501
draft
pityjllk 188c3fe
draft impl
pityjllk f65b773
happy path test
pityjllk 0684199
minor changes
pityjllk 4b42d61
Merge branch 'main' into feat/deterministic-accounts
mitinarseny 019767b
Merge branch 'feat/deterministic-accounts' into feat/state_init_on_tr…
mitinarseny de9d5e2
Merge branch 'main' into feat/escrow-swap
mitinarseny 77de7e1
Merge branch 'feat/escrow-swap' into feat/escrow-swap-nep616
mitinarseny 6636f90
tmp
pityjllk 7870feb
add missing files
pityjllk 268cca3
Merge remote-tracking branch 'origin/main' into feat/bus-proxy
pityjllk e987803
escrow params migrated
pityjllk 7d6e7a7
feat: test example
mitinarseny a3cdda4
Merge branch 'main' into feat/deterministic-accounts
mitinarseny 60254d2
Merge branch 'feat/deterministic-accounts' into feat/state_init_on_tr…
mitinarseny a7009dd
Merge branch 'main' into feat/escrow-swap
mitinarseny 207af25
Merge branch 'feat/escrow-swap' into feat/escrow-swap-nep616
mitinarseny fe4e6e6
chore
mitinarseny 1536c7f
Merge branch 'feat/deterministic-accounts' into feat/state_init_on_tr…
mitinarseny 39f0e42
chore
mitinarseny 132330d
chore
mitinarseny 5c7fba8
Merge branch 'feat/escrow-swap' into feat/escrow-swap-nep616
mitinarseny 452a448
migrated escrow params
pityjllk 861cf52
fix: cleanup only after deadline expired
mitinarseny 360abab
fix: docs
mitinarseny 483d45a
Merge branch 'feat/escrow-swap' into feat/escrow-swap-nep616
mitinarseny e6019ee
progress
pityjllk a8a12c8
progress
pityjllk 964a821
Merge remote-tracking branch 'origin/main' into feat/bus-proxy
pityjllk 181ab0a
progress
pityjllk 8872782
all tests passing
pityjllk fa01011
yielded promise parameters works
pityjllk 50a5a50
verify caller
pityjllk f47287b
align auth-transfer with escrow-proxy
pityjllk 2dbe7f6
Merge branch 'main' into feat/escrow-swap-nep616
mitinarseny 7002751
minor changes
pityjllk b5cb13c
comipilation fails
pityjllk 6b81442
fix
mitinarseny 5323b44
fix
mitinarseny 3cb1098
chore
mitinarseny 387114c
before contract feature
pityjllk d1518fe
feat: 'contract' feature for defuse-transfer-auth
pityjllk 510ba53
wip: tests works again
pityjllk 1eb991b
state machine like impl
pityjllk b6cad79
state machine pass tests
pityjllk de9b060
ut and error handling
pityjllk 897f683
test failing
pityjllk 009f852
state init works
pityjllk eaf68c7
sandbox based ut for transfer auth contract
pityjllk b3b3c0b
simplify
pityjllk dabba55
Merge branch 'main' into feat/escrow-swap
mitinarseny 987341b
fix: use pub TokenId fields
mitinarseny 772b3ef
chore
mitinarseny 81b24b5
chore
mitinarseny f6e39cd
tests works
pityjllk a800c9b
move state machine to dedicated file
pityjllk 9f6fd3a
cleanup
pityjllk 1f85d50
rename
pityjllk 706dac0
current
pityjllk 59358d8
progress
pityjllk 5310ecc
progress
pityjllk 86c7dfc
env removed
pityjllk f68f2b1
env removed
pityjllk 97375fe
compilesh
pityjllk 49be118
semi works
pityjllk 2cf8db7
cargo make build fixed
pityjllk 7f5c9e1
workarounds
pityjllk 2a619b3
compiles
pityjllk d3318bc
Merge remote-tracking branch 'origin/main' into feat/bus-proxy
pityjllk 308310c
forward
pityjllk 81889b9
test passes
pityjllk ac80d47
tests works
pityjllk 0eaa403
fix test
pityjllk 059340f
test works
pityjllk 2737f5c
Merge branch 'main' into feat/escrow-swap
mitinarseny 46f9364
Merge remote-tracking branch 'origin/main' into feat/bus-proxy
pityjllk 94d2d41
Merge remote-tracking branch 'origin/feat/escrow-swap' into feat/bus-…
pityjllk 072a1dd
ext pattern
pityjllk 91c133a
ext trait for escrow proxy
pityjllk bef2443
test passes
pityjllk 4c0aa10
test passes
pityjllk 3ea8cae
still passsing
pityjllk 9fd9d5f
test passes
pityjllk 622787d
chore: improve test logs
pityjllk a4c73c6
align escrow proxy
pityjllk 2205d4f
trasnfer auth fixes
pityjllk e4ef573
cleanup
pityjllk b1f0914
test passing
pityjllk 8ddb885
another test case
pityjllk 28aecea
tests working
pityjllk 526168d
align tests
pityjllk 480ce55
cleanup
pityjllk 4e7e6ee
cleanup
pityjllk 51d2ec2
cleanup
pityjllk bd86937
use global account id
pityjllk 22f5a57
serialize msg_hash as hex
pityjllk 35344de
refactor
pityjllk 5d75840
auth call module
pityjllk 3482be2
move to module
pityjllk 5822d06
fix escrow proxy
pityjllk 42c2b86
escrow-proxy refactor
pityjllk 24a62bd
tests for global deployment of multi receiver stub
pityjllk 5cd87eb
work on example
pityjllk 00e5ef8
bump near sdk
pityjllk 48b3231
tmp
pityjllk 2079eea
script progress
pityjllk d3b9d2b
user setup
pityjllk 97e2984
auth intent
pityjllk 2d16ff8
intents prepared
pityjllk 823ee9a
works fine
pityjllk 2d6ffc0
progressing
pityjllk b6c253c
fix minor issue
pityjllk ca907f8
deployment time
pityjllk 926e3fa
failing
pityjllk e802814
test works
pityjllk a7bcdd9
demo worked
pityjllk fecbf8c
all tests for escrow-swap passes
pityjllk 92bbc6f
salt fix for e2e test
pityjllk f3a8de7
cleanup cargo warnings
pityjllk 091d20a
fix clippy
pityjllk f4dbbde
fix formatting
pityjllk afc09c4
chore: workaround for false negative status for global contract deplo…
pityjllk c52a9f6
Merge remote-tracking branch 'origin/main' into feat/bus-proxy
pityjllk 732f9a8
chore: remove outdated crate
pityjllk 8b968de
chore: revert changes
pityjllk 8758e03
chore: align with promise yield interface
pityjllk a036d73
chore: remove unnecessary alias
pityjllk 502679b
extract escrow-proxy extensions to common extensions crate
pityjllk 7f217e9
move transfer-auth ext to dedicated crate
pityjllk efa5a30
cleanup escrow-swap
pityjllk e233483
remove outdated files
pityjllk b3879eb
use RC 0.7 of near-api & near-api-types
pityjllk c1cbb75
move multi-token-receiver ext featues to sandbox-ext
pityjllk 2e472ce
align test with stub
pityjllk d074f66
move tests to integration tests crate
pityjllk 4e5ed44
simplify
pityjllk 0de89b2
make transfer auth tests into module
pityjllk 1d20d48
simplify
pityjllk 0c10d06
simplified tests
pityjllk b0de5c3
cleanup
pityjllk 3921024
siplify test
pityjllk e1d4e54
cleanup
pityjllk eb11fd0
check authroization status
pityjllk 19d967f
cleanup
pityjllk a101eea
escrow builder
pityjllk b1df08d
escrow builder
pityjllk 97407d0
simplify test a lot
pityjllk 6ef841c
simplify test case
pityjllk c49dc9a
progress
pityjllk a5f1600
escrow swap ut
pityjllk 67bc096
contract self destruct
pityjllk 6c7b998
check for contract existence in transfer auth tests
pityjllk 351cc5e
TransferAuth -> OneShotCondVar
pityjllk 286a760
rename
pityjllk 77f7536
cleanup
pityjllk a9f8d76
cleanup
pityjllk 18a8a7e
cleanup
pityjllk 5f0191d
add another ut
pityjllk 3ec5acf
even more tests
pityjllk 1b00796
benchmarks and gas estimation for proxy
pityjllk 2774a8e
move impl to dedicatd modules
pityjllk fbf2905
organize code
pityjllk d4ad906
final touches
pityjllk 3fa6895
temporary hardcode cargo near on ci
pityjllk cdb65da
fix example compilation
pityjllk b466658
address code rabbit findings
pityjllk 3cbb802
workaround cargo audit
pityjllk 262f45f
fix clippy
pityjllk 301bd83
add comments for patched deps
pityjllk 20c6fd6
rename dummy to zero salt
pityjllk f32d9c9
address comments
pityjllk 5a8aa9a
fix formatting
pityjllk 20e44f8
workaround cargo audit issue
pityjllk dfc51ff
address comments
pityjllk cd27e35
get rid of acl
pityjllk 858774a
dependency to escrow-swap
pityjllk c8653ab
Merge remote-tracking branch 'origin/main' into feat/bus-proxy
pityjllk 438c76c
cleanup extensions
pityjllk 446d4e2
fix formatting
pityjllk 7cbdf16
cleanup
pityjllk d8037df
promise utils
pityjllk 61a298d
remove patched dependency
pityjllk 784fa52
use 'deterministic-account-ids' where actually needed
pityjllk 06584e2
use reexported modules
pityjllk 991fbf7
remove outdated test
pityjllk 9b45f05
sort deps
pityjllk 215fde7
use reexported dependency
pityjllk 9f8eeeb
get rid of unnecessary braces
pityjllk 7cd8588
remove serde_json dependency
pityjllk 02c210e
expect empty message
pityjllk fb3d41b
const messages
pityjllk 00af97f
merge imports
pityjllk b663e2c
remove init attribute
pityjllk 8584ad0
remove unused fn
pityjllk 3eeb30b
remove callback result from signature
pityjllk e8299f9
use Result for try_* fns
pityjllk d8a82c7
remove outdated state transitions and update
pityjllk 6c799e2
add cv_ prefix to view methods
pityjllk 2ac6610
use require
pityjllk b8f19d0
hardcoded empy json
pityjllk 021fc54
on_auth_signer => notifier_id
pityjllk 740a976
fix formatting
pityjllk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # cargo-audit configuration | ||
| # https://docs.rs/cargo-audit/latest/cargo_audit/config/ | ||
|
|
||
| [advisories] | ||
| # Ignore the lru unsound advisory - it comes from near-vm-runner which is | ||
| # locked to lru ^0.12.3 and cannot be updated to the fixed 0.16.3 version. | ||
| # The advisory relates to IterMut's Stacked Borrows violation, which does | ||
| # not affect our usage as we don't use IterMut directly. | ||
| # Tracked: https://github.com/near/nearcore/issues/XXXXX (upstream) | ||
| ignore = ["RUSTSEC-2026-0002"] | ||
pityjllk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,7 +162,8 @@ jobs: | |
| with: | ||
| cache: false | ||
| - name: Install cargo-audit | ||
| run: cargo install cargo-audit --version "^0.21" --locked | ||
| # Require 0.22+ for CVSS 4.0 support (advisory-db now contains CVSS 4.0 entries) | ||
| run: cargo install cargo-audit --version "^0.22" --locked | ||
| - uses: rustsec/[email protected] | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,7 @@ contract = [ | |
|
|
||
| sandbox = [ | ||
| "arbitrary", | ||
| "contract", | ||
| "dep:defuse-sandbox", | ||
| "dep:defuse-test-utils", | ||
| ] | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.