Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
5027da9
add signature in sendTxWithGas
Zartaj0 Oct 30, 2025
7121144
remove whitelist events
Zartaj0 Oct 30, 2025
6dc9590
sync
Zartaj0 Oct 30, 2025
17eac97
minor updates
Zartaj0 Oct 30, 2025
b70486b
script updates
Zartaj0 Oct 30, 2025
cf1ec97
fixed dependency issues
Zartaj0 Nov 3, 2025
4bb06c8
add test suit (without Pyth oracle)
Zartaj0 Nov 5, 2025
8f6f23d
revert addres
Zartaj0 Nov 5, 2025
ed0975c
add address for test
Zartaj0 Nov 5, 2025
7840d26
added sendUniversaltx()
zaryab2000 Nov 6, 2025
5935b8e
added sendUniversaltx()
zaryab2000 Nov 6, 2025
f5acfc4
test:sendUniversalTx()
zaryab2000 Nov 6, 2025
c135d12
test:sendUniversalTx() - withGas
zaryab2000 Nov 6, 2025
e0a3c43
test:sendUniversalTx() - with FUNDS_Case_1
zaryab2000 Nov 6, 2025
de3ad15
test:sendUniversalTx() - with FUNDS_Case_2_1
zaryab2000 Nov 6, 2025
d6c30df
configs for pyth mock
Zartaj0 Nov 7, 2025
cb2c5d0
added mock pyth for testing
Zartaj0 Nov 7, 2025
c9a58cb
test:sendUniversaltx()_case2-2
zaryab2000 Nov 7, 2025
37056b6
test:sendUniversaltx()_case2-3
zaryab2000 Nov 7, 2025
b2aa5eb
added sendUniversalTx() with token-as-gas
zaryab2000 Nov 7, 2025
1fa36bf
added legacy backward support
zaryab2000 Nov 7, 2025
5116df9
remove vault from testnet gateway
zaryab2000 Nov 7, 2025
c7f8a04
added revert tx functons
zaryab2000 Nov 7, 2025
6b31de0
withdraw functions
zaryab2000 Nov 7, 2025
d26dd35
added sendUniversalTx() support
zaryab2000 Nov 7, 2025
089af94
sendUniversalTx() support
zaryab2000 Nov 7, 2025
20821b6
updated interfaces
zaryab2000 Nov 8, 2025
90391af
struct name change
zaryab2000 Nov 8, 2025
ae8ab06
TX_TYPE.FUND validation updated
zaryab2000 Nov 8, 2025
5e82b84
removed unwanted functions
zaryab2000 Nov 10, 2025
de3b19f
minor bug
zaryab2000 Nov 10, 2025
8db9552
fixed no-gas-but-payload issue
zaryab2000 Nov 10, 2025
235508e
sync svm program
Zartaj0 Nov 11, 2025
89137da
new gateway minor changes
Zartaj0 Nov 11, 2025
93e2f40
comment fix
zaryab2000 Nov 12, 2025
0b89035
included __fetchTxType
zaryab2000 Nov 12, 2025
cbe867c
tx_type removal
zaryab2000 Nov 15, 2025
7882c3e
_fetchTxType function tests
zaryab2000 Nov 15, 2025
3b97c65
removed redundant validations
zaryab2000 Nov 18, 2025
97aca37
removed recipient zero compulsion
zaryab2000 Nov 18, 2025
83c47c3
rename var
zaryab2000 Nov 18, 2025
56d780e
RevertContext to revertMsg in tests
Zartaj0 Nov 18, 2025
27a6489
revertContext to revertMsg
zaryab2000 Nov 19, 2025
1c5bf66
fmt
zaryab2000 Nov 19, 2025
d2d3c05
fmt
zaryab2000 Nov 19, 2025
6120110
merge conflicts resolved
zaryab2000 Nov 19, 2025
6a83176
remove redundant function + fixes
zaryab2000 Nov 19, 2025
4922db4
remove redundant function + fixes
zaryab2000 Nov 19, 2025
c08413b
updated Readme
zaryab2000 Nov 19, 2025
dc90768
Update contracts/evm-gateway/test/gatewayTemp/1_sendUniversalTx.t.sol
zaryab2000 Nov 19, 2025
9cc8a5b
Update contracts/evm-gateway/test/gatewayTemp/1_sendUniversalTx.t.sol
zaryab2000 Nov 19, 2025
6ee8b66
Update contracts/evm-gateway/test/gatewayTemp/1_sendUniversalTx.t.sol
zaryab2000 Nov 19, 2025
444ef45
Merge pull request #23 from pushchain/sendUniversalTx_NO_Tx_type
zaryab2000 Nov 19, 2025
fa285ee
Bytecode size reduced
Zartaj0 Nov 19, 2025
c4a640c
feat: add sendUniversalTx without TxType
Zartaj0 Nov 20, 2025
c540c45
readme_change
zaryab2000 Nov 20, 2025
b1aa9e5
functions rearranged
zaryab2000 Nov 20, 2025
4b70abd
included sendUniversalTx()
zaryab2000 Nov 20, 2025
4b67a5f
included sendUniversalTx() test
zaryab2000 Nov 20, 2025
e2de240
updated test
zaryab2000 Nov 20, 2025
16e912f
removed temp tests
zaryab2000 Nov 20, 2025
f276339
test file changes
zaryab2000 Nov 20, 2025
44e7dec
fixed block-based rate limit test
zaryab2000 Nov 20, 2025
70abc2e
fixed epoch-based rate limit test
zaryab2000 Nov 20, 2025
8ea0047
remaining test fixes
zaryab2000 Nov 21, 2025
5d4c3d0
remaining test fixes
zaryab2000 Nov 21, 2025
c8d5028
natspec + cleanup
zaryab2000 Nov 21, 2025
5450b26
improved helpers
zaryab2000 Nov 21, 2025
8f864b5
removed temp
zaryab2000 Nov 21, 2025
358e157
nastepc annotations
zaryab2000 Nov 21, 2025
b36cd93
removed interface temp
zaryab2000 Nov 21, 2025
e0d902a
updated admin tests
zaryab2000 Nov 21, 2025
369e328
config update
Zartaj0 Nov 21, 2025
2291120
updated script
Zartaj0 Nov 21, 2025
1a01c13
fixed rate-limiting
Zartaj0 Nov 21, 2025
dd75ac5
fixed tests
Zartaj0 Nov 21, 2025
b7068be
Merge branch 'svm-sync' into svm-sendUniversalTx
Zartaj0 Nov 21, 2025
1a28cf8
Merge pull request #25 from pushchain/svm-sendUniversalTx
Zartaj0 Nov 21, 2025
bbd8041
gatewayExecute updated tests
zaryab2000 Nov 24, 2025
9d5e925
fixed TSS init and reset
Zartaj0 Nov 24, 2025
8396ac8
fix tests/script for tss logic
Zartaj0 Nov 24, 2025
5e134a3
Merge branch 'sendUniversalTx()_dev_19' into svm-sync
Zartaj0 Nov 25, 2025
ef45cb3
updated tests
zaryab2000 Nov 25, 2025
e250a9d
updated tests
zaryab2000 Nov 25, 2025
b1038c4
removed unwanted init
zaryab2000 Nov 25, 2025
9080d2d
coverage
zaryab2000 Nov 25, 2025
2e4116c
fmt
zaryab2000 Nov 25, 2025
6bdc6f9
recipient test fixes
zaryab2000 Nov 25, 2025
7550c61
Funds&Payload emits zero recipient
Zartaj0 Nov 25, 2025
1f39dba
Merge pull request #26 from pushchain/svm-sync
zaryab2000 Nov 25, 2025
877e6c2
updated address and scripts
Zartaj0 Nov 27, 2025
e437508
fix: script signing
Zartaj0 Nov 27, 2025
3ee2496
add rate limiting in script
Zartaj0 Nov 27, 2025
c44bdd3
use ALT to mitigate tx size limit
Zartaj0 Nov 28, 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
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Rate limiting protects the protocol across both routes. All USD values below are

- Fee abstraction caps: `setCapsUSD(minCapUsd, maxCapUsd)`
- Per-block budget: `setBlockUsdCap(cap1e18)`
- Per-token epoch thresholds: `setTokenLimitThresholds(tokens[], thresholds[])`, `updateTokenLimitThreshold(tokens[], thresholds[])`
- Per-token epoch thresholds: `setTokenLimitThresholds(tokens[], thresholds[])`
- Epoch duration: `updateEpochDuration(newDurationSec)`

### Additional Safety
Expand Down Expand Up @@ -175,7 +175,7 @@ Administrative setters (all `onlyRole(DEFAULT_ADMIN_ROLE)` and `whenNotPaused` u
- Caps: `setCapsUSD(min, max)`; block budget: `setBlockUsdCap(cap1e18)`
- Uniswap: `setRouters(factory, router)`, `setV3FeeOrder(a, b, c)`, `setDefaultSwapDeadline(deadlineSec)`
- Chainlink: `setEthUsdFeed(addr)`, `setChainlinkStalePeriod(sec)`, `setL2SequencerFeed(addr)`, `setL2SequencerGracePeriod(sec)`
- Rate limits: `setTokenLimitThresholds(tokens[], thresholds[])`, `updateTokenLimitThreshold(tokens[], thresholds[])`, `updateEpochDuration(sec)`
- Rate limits: `setTokenLimitThresholds(tokens[], thresholds[])`, `updateEpochDuration(sec)`

Withdrawals (TSS only):
- `withdrawFunds(recipient, token, amount)`
Expand Down
Binary file modified contracts/.DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions contracts/evm-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ From `IUniversalGateway.sol`:

Core structs and enums in `src/libraries/Types.sol`:
- `TX_TYPE`: `GAS`, `GAS_AND_PAYLOAD`, `FUNDS`, `FUNDS_AND_PAYLOAD`
- `RevertInstructions { address fundRecipient; bytes revertContext; }`
- `RevertInstructions { address fundRecipient; bytes revertMsg; }`
- `UniversalPayload { to, value, data, gasLimit, maxFeePerGas, maxPriorityFeePerGas, nonce, deadline, vType }`
- `EpochUsage { uint64 epoch; uint192 used; }`

Expand Down Expand Up @@ -130,7 +130,7 @@ Rate limiting protects the protocol across both routes. All USD values below are

- Fee abstraction caps: `setCapsUSD(minCapUsd, maxCapUsd)`
- Per-block budget: `setBlockUsdCap(cap1e18)`
- Per-token epoch thresholds: `setTokenLimitThresholds(tokens[], thresholds[])`, `updateTokenLimitThreshold(tokens[], thresholds[])`
- Per-token epoch thresholds: `setTokenLimitThresholds(tokens[], thresholds[])`
- Epoch duration: `updateEpochDuration(newDurationSec)`

### Additional Safety
Expand Down Expand Up @@ -174,7 +174,7 @@ Administrative setters (all `onlyRole(DEFAULT_ADMIN_ROLE)` and `whenNotPaused` u
- Caps: `setCapsUSD(min, max)`; block budget: `setBlockUsdCap(cap1e18)`
- Uniswap: `setRouters(factory, router)`, `setV3FeeOrder(a, b, c)`, `setDefaultSwapDeadline(deadlineSec)`
- Chainlink: `setEthUsdFeed(addr)`, `setChainlinkStalePeriod(sec)`, `setL2SequencerFeed(addr)`, `setL2SequencerGracePeriod(sec)`
- Rate limits: `setTokenLimitThresholds(tokens[], thresholds[])`, `updateTokenLimitThreshold(tokens[], thresholds[])`, `updateEpochDuration(sec)`
- Rate limits: `setTokenLimitThresholds(tokens[], thresholds[])`, `updateEpochDuration(sec)`

Withdrawals (TSS only):
- `withdrawFunds(recipient, token, amount)`
Expand Down
816 changes: 816 additions & 0 deletions contracts/evm-gateway/coverage.lcov

Large diffs are not rendered by default.

Loading