Skip to content

Commit

Permalink
Tune Configs (sei-protocol#1813)
Browse files Browse the repository at this point in the history
tune configs
  • Loading branch information
jewei1997 authored Aug 9, 2024
1 parent e5260c2 commit c3aaf99
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/receipt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestEvmEventsForCw20(t *testing.T) {
wasmAddr := common.HexToAddress(wasmd.WasmdAddress)
txData := ethtypes.LegacyTx{
Nonce: 0,
GasPrice: big.NewInt(333000000000),
GasPrice: big.NewInt(100000000000),
Gas: 1000000,
To: &wasmAddr,
Data: data,
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/ERC20toNativePointerTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe("ERC20 to Native Pointer", function () {

// unlinked wallet can send balance back to sender (becomes linked at this moment)
await (await pointer.connect(recipientWallet).transfer(sender.evmAddress, amount, {
gasPrice: ethers.parseUnits('333', 'gwei')
gasPrice: ethers.parseUnits('100', 'gwei')
})).wait()
expect(await pointer.balanceOf(recipient)).to.equal(BigInt(0));
expect(await pointer.balanceOf(sender.evmAddress)).to.equal(startBal);
Expand Down
4 changes: 2 additions & 2 deletions contracts/test/EVMCompatabilityTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ describe("EVM Test", function () {
describe("EIP-1559", async function() {
const zero = ethers.parseUnits('0', 'ether')
const highgp = ethers.parseUnits("400", "gwei");
const gp = ethers.parseUnits("333", "gwei");
const gp = ethers.parseUnits("100", "gwei");

const testCases = [
["No truncation from max priority fee", gp, gp],
Expand All @@ -507,7 +507,7 @@ describe("EVM Test", function () {
];

it("Should be able to send many EIP-1559 txs", async function () {
const gp = ethers.parseUnits("333", "gwei");
const gp = ethers.parseUnits("100", "gwei");
const zero = ethers.parseUnits('0', 'ether')
for (let i = 0; i < 10; i++) {
const txResponse = await owner.sendTransaction({
Expand Down
8 changes: 4 additions & 4 deletions x/evm/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestERC2981PointerToCW2981(t *testing.T) {
require.Nil(t, err)
txData := ethtypes.LegacyTx{
Nonce: 0,
GasPrice: big.NewInt(333000000000),
GasPrice: big.NewInt(100000000000),
Gas: 5000000,
To: &to,
Data: data,
Expand Down Expand Up @@ -108,7 +108,7 @@ func TestERC2981PointerToCW2981(t *testing.T) {
require.Nil(t, err)
txData = ethtypes.LegacyTx{
Nonce: 1,
GasPrice: big.NewInt(333000000000),
GasPrice: big.NewInt(100000000000),
Gas: 1000000,
To: &pointerAddr,
Data: data,
Expand Down Expand Up @@ -158,7 +158,7 @@ func TestCW2981PointerToERC2981(t *testing.T) {
require.Nil(t, err)
txData := ethtypes.LegacyTx{
Nonce: 0,
GasPrice: big.NewInt(333000000000),
GasPrice: big.NewInt(100000000000),
Gas: 5000000,
To: nil,
Data: append(bz, data...),
Expand Down Expand Up @@ -193,7 +193,7 @@ func TestCW2981PointerToERC2981(t *testing.T) {
to := common.HexToAddress(receipt.ContractAddress)
txData = ethtypes.LegacyTx{
Nonce: 1,
GasPrice: big.NewInt(333000000000),
GasPrice: big.NewInt(100000000000),
Gas: 1000000,
To: &to,
Data: data,
Expand Down
2 changes: 1 addition & 1 deletion x/evm/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestModuleExportGenesis(t *testing.T) {
module := evm.NewAppModule(nil, k)
jsonMsg := module.ExportGenesis(ctx, types.ModuleCdc)
jsonStr := string(jsonMsg)
assert.Equal(t, "{\"params\":{\"priority_normalizer\":\"1.000000000000000000\",\"base_fee_per_gas\":\"0.000000000000000000\",\"minimum_fee_per_gas\":\"333000000000.000000000000000000\",\"whitelisted_cw_code_hashes_for_delegate_call\":[]},\"address_associations\":[{\"sei_address\":\"sei17xpfvakm2amg962yls6f84z3kell8c5la4jkdu\",\"eth_address\":\"0x27F7B8B8B5A4e71E8E9aA671f4e4031E3773303F\"}],\"codes\":[],\"states\":[],\"nonces\":[],\"serialized\":[{\"prefix\":\"Fg==\",\"key\":\"AwAC\",\"value\":\"AAAAAAAAAAM=\"},{\"prefix\":\"Fg==\",\"key\":\"BAAG\",\"value\":\"AAAAAAAAAAQ=\"}]}", jsonStr)
assert.Equal(t, "{\"params\":{\"priority_normalizer\":\"1.000000000000000000\",\"base_fee_per_gas\":\"0.000000000000000000\",\"minimum_fee_per_gas\":\"100000000000.000000000000000000\",\"whitelisted_cw_code_hashes_for_delegate_call\":[]},\"address_associations\":[{\"sei_address\":\"sei17xpfvakm2amg962yls6f84z3kell8c5la4jkdu\",\"eth_address\":\"0x27F7B8B8B5A4e71E8E9aA671f4e4031E3773303F\"}],\"codes\":[],\"states\":[],\"nonces\":[],\"serialized\":[{\"prefix\":\"Fg==\",\"key\":\"AwAC\",\"value\":\"AAAAAAAAAAM=\"},{\"prefix\":\"Fg==\",\"key\":\"BAAG\",\"value\":\"AAAAAAAAAAQ=\"}]}", jsonStr)
}

func TestConsensusVersion(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/evm/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var DefaultPriorityNormalizer = sdk.NewDec(1)
// burnt rather than go to validators (similar to base fee on
// Ethereum).
var DefaultBaseFeePerGas = sdk.NewDec(0)
var DefaultMinFeePerGas = sdk.NewDec(333000000000)
var DefaultMinFeePerGas = sdk.NewDec(100000000000)

var DefaultWhitelistedCwCodeHashesForDelegateCall = generateDefaultWhitelistedCwCodeHashesForDelegateCall()

Expand Down

0 comments on commit c3aaf99

Please sign in to comment.