Skip to content
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

Rate limit inttests #347

Merged
merged 30 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
dcef714
inc hermes gas multiplier in order to avoid oog
quasisamurai Sep 10, 2024
6b6b634
wip debug
quasisamurai Sep 12, 2024
e0c5a1b
inc gmp once again
quasisamurai Sep 12, 2024
ee8b133
inc gmp once again
quasisamurai Sep 12, 2024
8247b95
bring multiplier down
quasisamurai Sep 12, 2024
5e49fc6
add skeleton for rl
quasisamurai Sep 18, 2024
ad40ad9
fix & improve tests
quasisamurai Sep 19, 2024
f070a06
lint
quasisamurai Sep 19, 2024
5e516f8
improve tests
quasisamurai Sep 19, 2024
f1147a4
rm debug traces
quasisamurai Sep 19, 2024
7a53a72
rm ibc transfer debug prints as well
quasisamurai Sep 19, 2024
bee8ea8
use built-in wallet from mnemonic func
quasisamurai Sep 19, 2024
2ebf08f
rm consolelogs
quasisamurai Sep 20, 2024
adaf55a
split one test in 2 for explicity, extend comments and describes
quasisamurai Sep 24, 2024
08f6d33
add more comments
quasisamurai Sep 24, 2024
05dadb4
lint
quasisamurai Sep 24, 2024
f777034
cover more scenarios
quasisamurai Sep 26, 2024
10b1869
lint & more explicit namings & small ref
quasisamurai Sep 26, 2024
75d327f
Merge branch 'main' into feat/ibc-rate-limit
quasisamurai Sep 27, 2024
000d45a
upd njsp
quasisamurai Sep 27, 2024
e42fe5c
switch njs once again
quasisamurai Sep 30, 2024
385b3b5
switch njsp once again
quasisamurai Sep 30, 2024
ecf0f7c
update njsp))
quasisamurai Sep 30, 2024
db3f971
update njsp to linted version (just in case)
quasisamurai Sep 30, 2024
a5aaa27
store rl contract
quasisamurai Sep 30, 2024
3f43c19
use fixed njsp version & regen yarnlock
quasisamurai Sep 30, 2024
cfaa50b
use pwd fallback on njs build
quasisamurai Sep 30, 2024
e721578
try magic commit
quasisamurai Oct 1, 2024
da6674c
bring hermes gas multiplier back: we fixed the cause of high gas cons…
quasisamurai Oct 1, 2024
25c7721
add comment
quasisamurai Oct 2, 2024
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 added contracts/rate_limiter.wasm
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"test:dex_bindings": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 vitest --run src/testcases/run_in_band/dex_bindings --bail 1",
"test:chain_manager": "vitest --run src/testcases/run_in_band/chain_manager --bail 1",
"test:feemarket": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 vitest --run src/testcases/run_in_band/feemarket --bail 1",
"test:ibc_rate_limit": "vitest --run src/testcases/run_in_band/ibc_rate_limit --bail 1",
"lint": "eslint ./src",
"fmt": "eslint ./src --fix",
"build:neutronjsplus": "[ -d './node_modules/@neutron-org/neutronjsplus/dist' ] || tsc -p ./node_modules/@neutron-org/neutronjsplus/tsconfig.json",
Expand All @@ -46,7 +47,7 @@
"@cosmjs/stargate": "0.32.4",
"@cosmjs/tendermint-rpc": "^0.32.4",
"@neutron-org/neutronjs": "https://github.com/neutron-org/neutronjs.git#7f45328320b53b4fa2b572bc25bb96bf80260181",
"@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#df604d8c6475c8640f4ee2ded9b1905574226a3a",
"@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#39dd19b17165ef206b40018ff437054210c2bdbc",
"@types/lodash": "^4.14.182",
"axios": "1.6.0",
"commander": "^10.0.0",
Expand Down Expand Up @@ -90,4 +91,4 @@
"engines": {
"node": ">=20.0"
}
}
}
1 change: 1 addition & 0 deletions src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const CONTRACTS = {
LOCKDROP_VAULT_CL: 'lockdrop_vault_for_cl_pools.wasm',
MARKETMAP: 'marketmap.wasm',
ORACLE: 'oracle.wasm',
IBC_RATE_LIMITER: 'rate_limiter.wasm',
};

export const NEUTRON_PREFIX = process.env.NEUTRON_ADDRESS_PREFIX || 'neutron';
Expand Down
Loading
Loading