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

feat(v2.11): feemarket #262

Open
wants to merge 34 commits into
base: release/v2.11
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
28786aa
added feemarket, wip build error
freeelancer Jan 8, 2024
6603bbd
use feemarket of go1.20
freeelancer Jan 9, 2024
c9dfa77
use feemarket of go1.20
freeelancer Jan 9, 2024
4d0ca46
set order for beginblock endblock initgenesis
freeelancer Jan 9, 2024
4e81383
fixed go mod
freeelancer Jan 9, 2024
7da94e2
fixed go mod with new version of feemarket
freeelancer Jan 9, 2024
d912243
adjusted gas
freeelancer Jan 15, 2024
ac2d005
wip: debug alliance test
emidev98 Jan 15, 2024
f4711ac
changed test file back to 0.025uluna gas price
freeelancer Jan 16, 2024
73d5b7c
feat: add bond denom into feemarket genesis state
javiersuweijie Jan 16, 2024
1cb4039
added feemarket params genesis
freeelancer Jan 16, 2024
b27b028
updated gas price for lcd connection
freeelancer Jan 17, 2024
4e5ffc2
removed fee specified for transaction
freeelancer Jan 17, 2024
0c5b7fc
updated feemarket test
freeelancer Jan 17, 2024
9d1eee6
update feemarket
freeelancer Jan 19, 2024
a47050c
removed fee for gov test
freeelancer Jan 21, 2024
4abf956
update feemarket.test
freeelancer Jan 24, 2024
b37b707
update feemarket test
freeelancer Jan 24, 2024
5630105
updated feemarket test
freeelancer Jan 26, 2024
e9c51e1
use latest feemarket
freeelancer Jan 30, 2024
fc627c4
added test scripts
freeelancer Jan 30, 2024
26dd127
updated to work with latest feemarket api
freeelancer Feb 1, 2024
491c4bc
set block utilization for init-one-chain
freeelancer Feb 5, 2024
6fc9d94
removed try catch from alliance test
freeelancer Feb 6, 2024
0cdde23
update to new feemarket protos
freeelancer Feb 6, 2024
3f533d7
updated gasprice test
freeelancer Feb 6, 2024
d64e951
changed dynamic fee testing to be non concurrent
freeelancer Feb 7, 2024
2e7671e
wip: feemarket tests
emidev98 Feb 13, 2024
e76e18f
tests: adjust integration tests
emidev98 Feb 14, 2024
f8c27e7
ante to fallback on deductfeedecorator
freeelancer Feb 15, 2024
8c304e9
added MsgRemoveFeeDenomParam tests
freeelancer Feb 15, 2024
2a8cc5a
updated to use feather.js 2.1.0-beta.2
freeelancer Feb 15, 2024
3694ea0
Merge branch 'release/v2.10' of https://github.com/terra-money/core i…
emidev98 Feb 29, 2024
41eaa7b
Merge branch 'feat/v2.10/feemarket' of https://github.com/terra-money…
emidev98 Feb 29, 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
Prev Previous commit
Next Next commit
update feemarket test
freeelancer committed Jan 29, 2024
commit b37b707395e1515d93bb51410e4bf19487d1b310
50 changes: 25 additions & 25 deletions integration-tests/src/modules/feemarket/feemarket.test.ts
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@ describe("Feemarket Module (https://github.com/terra-money/feemarket/tree/v0.0.1
// Prepare environment clients, accounts and wallets
const LCD = getLCDClient();
const accounts = getMnemonics();
const val2Wallet = LCD.chain2.wallet(accounts.val2);
const val2WalletAddress = val2Wallet.key.accAddress("terra");
const val1Wallet = LCD.chain1.wallet(accounts.val1);
const val1WalletAddress = val1Wallet.key.accAddress("terra");

test('Must create a new global eip1559 fees param', async () => {
try {
@@ -32,42 +32,42 @@ describe("Feemarket Module (https://github.com/terra-money/feemarket/tree/v0.0.1
'gov', // TODO: change to module address of 'gov'
)],
Coins.fromString("1000000000uluna"),
val2WalletAddress,
val1WalletAddress,
"metadata",
"title",
"summary"
);
// Create an alliance proposal sign and submit on chain-1
let tx = await val2Wallet.createAndSignTx({
let tx = await val1Wallet.createAndSignTx({
msgs: [msgProposal],
chainID: "test-2",
chainID: "test-1",
});
console.log("adhjkgasjkghajkshg")
let result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
let result = await LCD.chain1.tx.broadcastSync(tx, "test-1");
console.log("asgasga")

await blockInclusion();

// Check that the proposal was created successfully
let txResult = await LCD.chain2.tx.txInfo(result.txhash, "test-2") as any;
let txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-1") as any;
expect(txResult.code).toBe(0);

// Get the proposal id and validate exists
let proposalId = Number(txResult.logs[0].eventsByType.submit_proposal.proposal_id[0]);
expect(proposalId)

// Vote for the proposal
tx = await val2Wallet.createAndSignTx({
tx = await val1Wallet.createAndSignTx({
msgs: [new MsgVote(
proposalId,
val2WalletAddress,
val1WalletAddress,
VoteOption.VOTE_OPTION_YES
)],
chainID: "test-2",
chainID: "test-1",
});
result = await LCD.chain1.tx.broadcastSync(tx, "test-2");
result = await LCD.chain1.tx.broadcastSync(tx, "test-1");
await votingPeriod();
txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-2")
txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-1")
expect(txResult.code).toBe(0);
}
catch (e: any) {
@@ -84,51 +84,51 @@ describe("Feemarket Module (https://github.com/terra-money/feemarket/tree/v0.0.1
[new MsgState(
new State(
'uluna',
'0.0015',
'0.0015',
'0.125',
'1500000000000000',
'1500000000000000',
'125000000000000000',
[],
'0'
),
'gov', // TODO: change to module address of 'gov'
)],
Coins.fromString("1000000000uluna"),
val2WalletAddress,
val1WalletAddress,
"metadata",
"title",
"summary"
);
// Create an alliance proposal sign and submit on chain-1
let tx = await val2Wallet.createAndSignTx({
let tx = await val1Wallet.createAndSignTx({
msgs: [msgProposal],
chainID: "test-2",
chainID: "test-1",
});
console.log("adhjkgasjkghajkshg")
let result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
let result = await LCD.chain1.tx.broadcastSync(tx, "test-1");
console.log("asgasga")

await blockInclusion();

// Check that the proposal was created successfully
let txResult = await LCD.chain2.tx.txInfo(result.txhash, "test-2") as any;
let txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-1") as any;
expect(txResult.code).toBe(0);

// Get the proposal id and validate exists
let proposalId = Number(txResult.logs[0].eventsByType.submit_proposal.proposal_id[0]);
expect(proposalId)

// Vote for the proposal
tx = await val2Wallet.createAndSignTx({
tx = await val1Wallet.createAndSignTx({
msgs: [new MsgVote(
proposalId,
val2WalletAddress,
val1WalletAddress,
VoteOption.VOTE_OPTION_YES
)],
chainID: "test-2",
chainID: "test-1",
});
result = await LCD.chain1.tx.broadcastSync(tx, "test-2");
result = await LCD.chain1.tx.broadcastSync(tx, "test-1");
await votingPeriod();
txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-2")
txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-1")
expect(txResult.code).toBe(0);
}
catch (e: any) {