-
Notifications
You must be signed in to change notification settings - Fork 20
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
base: main
Are you sure you want to change the base?
Escrow proxy #191
Changes from 250 commits
188c3fe
f65b773
0684199
4b42d61
019767b
de9d5e2
77de7e1
6636f90
7870feb
268cca3
e987803
7d6e7a7
a3cdda4
60254d2
a7009dd
207af25
fe4e6e6
1536c7f
39f0e42
132330d
5c7fba8
452a448
861cf52
360abab
483d45a
e6019ee
a8a12c8
964a821
181ab0a
8872782
fa01011
50a5a50
f47287b
2dbe7f6
7002751
b5cb13c
6b81442
5323b44
3cb1098
387114c
d1518fe
510ba53
1eb991b
b6cad79
de9b060
897f683
009f852
eaf68c7
b3b3c0b
dabba55
987341b
772b3ef
81b24b5
f6e39cd
a800c9b
9f6fd3a
1f85d50
706dac0
59358d8
5310ecc
86c7dfc
f68f2b1
97375fe
49be118
2cf8db7
7f5c9e1
2a619b3
d3318bc
308310c
81889b9
ac80d47
0eaa403
059340f
2737f5c
46f9364
94d2d41
072a1dd
91c133a
bef2443
4c0aa10
3ea8cae
9fd9d5f
622787d
a4c73c6
2205d4f
e4ef573
b1f0914
8ddb885
28aecea
526168d
480ce55
4e7e6ee
51d2ec2
bd86937
22f5a57
35344de
5d75840
3482be2
5822d06
42c2b86
24a62bd
5cd87eb
00e5ef8
48b3231
2079eea
d3b9d2b
97e2984
2d16ff8
823ee9a
2d6ffc0
b6c253c
ca907f8
926e3fa
e802814
a7bcdd9
fecbf8c
92bbc6f
f3a8de7
091d20a
f4dbbde
afc09c4
c52a9f6
732f9a8
8b968de
8758e03
a036d73
502679b
7f217e9
efa5a30
e233483
b3879eb
c1cbb75
2e472ce
d074f66
4e5ed44
0de89b2
1d20d48
0c10d06
b0de5c3
3921024
e1d4e54
eb11fd0
19d967f
a101eea
b1df08d
97407d0
6ef841c
c49dc9a
a5f1600
67bc096
6c7b998
351cc5e
286a760
77f7536
a9f8d76
18a8a7e
5f0191d
3ec5acf
1b00796
2774a8e
fbf2905
d4ad906
3fa6895
cdb65da
b466658
3cbb802
262f45f
301bd83
20c6fd6
f32d9c9
5a8aa9a
20e44f8
dfc51ff
cd27e35
858774a
c8653ab
438c76c
446d4e2
7cbdf16
d8037df
61a298d
784fa52
06584e2
991fbf7
9b45f05
215fde7
9f8eeeb
7cd8588
02c210e
fb3d41b
00af97f
b663e2c
8584ad0
3eeb30b
e8299f9
d8a82c7
6c799e2
2ac6610
b8f19d0
021fc54
740a976
39c1bff
144a8c5
4053ba7
9ab0148
c20e35e
7f790bf
4620b9c
6be6f04
9a5aa58
fa2649d
998f3fd
c04890e
4e7ac11
79ead60
35f5f5b
de5ea4c
136c958
979859b
4c077d9
31752fe
2897f8b
96a8379
11b3826
dc16a9e
eb28e06
ef36c85
5c9e111
d51da2d
90865ae
398e37e
8d4d77b
2378def
4f49c7d
a9b66c3
16b3ccd
d9fcd20
0943dbf
8a1a4f3
36c3287
14b023e
34d70ed
6866fa0
41f2487
2d737ed
b4d8bf7
6f88892
877a9fe
ddfd1cb
b1fbbec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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
|
||
| 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.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,12 @@ POA_TOKEN_WASM_NO_REGISTRATION_WASM = "${POA_TOKEN_WITH_NO_REGISTRATION_DIR}/def | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MT_RECEIVER_STUB_DIR = "${TARGET_DIR}/multi-token-receiver-stub" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MT_RECEIVER_STUB_WASM = "${MT_RECEIVER_STUB_DIR}/multi_token_receiver_stub.wasm" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ESCROW_PROXY_DIR = "${TARGET_DIR}/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ESCROW_PROXY_WASM = "${ESCROW_PROXY_DIR}/defuse_escrow_proxy.wasm" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ONESHOT_CONDVAR_DIR = "${TARGET_DIR}/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ONESHOT_CONDVAR_WASM = "${ONESHOT_CONDVAR_DIR}/defuse_oneshot_condvar.wasm" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [tasks.default] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| alias = "build" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -25,6 +31,8 @@ dependencies = [ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build-escrow-swap", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build-poa-factory", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build-poa-token-no-registration", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build-escrow-proxy", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build-oneshot-condvar", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "contract-stats", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build-multi-token-receiver-stub", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -114,6 +122,40 @@ args = [ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--no-embed-abi", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [tasks.build-escrow-proxy] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependencies = ["add-cache-dir-tag"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| command = "cargo" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| args = [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "near", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "non-reproducible-wasm", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--locked", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--manifest-path", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "./escrow-proxy/Cargo.toml", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--features", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "abi,contract,escrow-swap", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--out-dir", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "${ESCROW_PROXY_DIR}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--no-embed-abi", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [tasks.build-oneshot-condvar] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependencies = ["add-cache-dir-tag"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| command = "cargo" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| args = [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "near", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "build", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "non-reproducible-wasm", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--locked", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--manifest-path", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "./oneshot-condvar/Cargo.toml", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--features", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "abi,contract,auth-call", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--out-dir", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "${ONESHOT_CONDVAR_DIR}", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "--no-abi", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+142
to
+157
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cd / && find . -name "Makefile.toml" -type f 2>/dev/null | head -5Repository: near/intents Length of output: 89 🏁 Script executed: cat -n Makefile.toml | sed -n '100,200p'Repository: near/intents Length of output: 2976 🏁 Script executed: rg "oneshot-condvar" --type-list | head -5Repository: near/intents Length of output: 445 🏁 Script executed: rg "oneshot-condvar" -A 3 -B 3Repository: near/intents Length of output: 10108 🏁 Script executed: rg "\-\-no-abi|\-\-no-embed-abi" --type-listRepository: near/intents Length of output: 445 🏁 Script executed: rg "\-\-no-abi|\-\-no-embed-abi"Repository: near/intents Length of output: 554 🏁 Script executed: cat -n oneshot-condvar/Cargo.toml | grep -A 20 "cargo-near"Repository: near/intents Length of output: 828 Switch 🔧 Required fix- "--no-abi",
+ "--no-embed-abi",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # ============================================================================ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Build reproducible tasks | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # ============================================================================ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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", | ||
| ] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.