Skip to content

Commit a053979

Browse files
authored
Next round (explorations / E-Components / tests) (#5)
* Some basic EIP-7594 code clean-up * Some precompile eComponent restructure * Small EIP-7594 exploration optimization * Exploration/E-Component related test rework (more consistent, contributor-friendly and E2E -> unit) * Linting * Test fix * Temporarily take in the custom addition precompile exploration to work a bit with it * Component result handling optimization using Vue generics support * Custom precompile exploration helper method * Linting * More prefixed hex * Linting * Fix tests * Test fixes * Topic color fixes + rework * Topic color work * More color fixes * Finalize color
1 parent 2270cfc commit a053979

36 files changed

Lines changed: 1502 additions & 400 deletions

cypress/e2e/eip7594.cy.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

cypress/e2e/eip7883_Precompile_R.cy.ts

Lines changed: 0 additions & 107 deletions
This file was deleted.

cypress/e2e/eip7951.cy.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

cypress/e2e/explorations.cy.ts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
describe('EIP-7883 ModExp', () => {
2+
it('loads and displays exploration content', () => {
3+
cy.visit('/eip-7883-modexp-gas-cost-increase')
4+
cy.contains('h1', 'Feel Your Protocol')
5+
cy.contains('h3', 'ModExp')
6+
cy.get('#eip-7883-c', { timeout: 10000 }).should('exist')
7+
})
8+
9+
it('loads default example with inputs', () => {
10+
cy.visit('/eip-7883-modexp-gas-cost-increase')
11+
cy.get('#eip-7883-c textarea', { timeout: 10000 }).should('not.have.value', '')
12+
cy.get('#eip-7883-c input').should('have.length.gte', 3)
13+
})
14+
15+
it('example selector shows available options', () => {
16+
cy.visit('/eip-7883-modexp-gas-cost-increase')
17+
cy.get('#eip-7883-c .e-select', { timeout: 10000 }).click()
18+
cy.get('[role="option"]').should('have.length.gte', 2)
19+
})
20+
})
21+
22+
describe('EIP-7594 PeerDAS', () => {
23+
it('loads and displays exploration content', () => {
24+
cy.visit('/eip-7594-peerdas-data-availability-sampling')
25+
cy.contains('h1', 'Feel Your Protocol')
26+
cy.contains('h3', 'Peer Data Availability Sampling')
27+
cy.get('#eip-7594-c', { timeout: 10000 }).should('exist')
28+
})
29+
30+
it('loads default example with blob data', () => {
31+
cy.visit('/eip-7594-peerdas-data-availability-sampling')
32+
cy.get('#eip-7594-c textarea', { timeout: 10000 }).should('not.have.value', '')
33+
})
34+
35+
it('example selector shows available options', () => {
36+
cy.visit('/eip-7594-peerdas-data-availability-sampling')
37+
cy.get('#eip-7594-c .e-select', { timeout: 10000 }).click()
38+
cy.get('[role="option"]').should('have.length.gte', 2)
39+
})
40+
})
41+
42+
describe('EIP-7951 secp256r1', () => {
43+
it('loads and displays exploration content', () => {
44+
cy.visit('/eip-7951-secp256r1-precompile')
45+
cy.contains('h1', 'Feel Your Protocol')
46+
cy.contains('h3', 'secp256r1 Precompile Support')
47+
cy.get('#eip-7951-c', { timeout: 10000 }).should('exist')
48+
})
49+
50+
it('loads default example with inputs', () => {
51+
cy.visit('/eip-7951-secp256r1-precompile')
52+
cy.get('#eip-7951-c textarea', { timeout: 10000 }).should('not.have.value', '')
53+
cy.get('#eip-7951-c input').should('have.length.gte', 5)
54+
})
55+
56+
it('example selector shows available options', () => {
57+
cy.visit('/eip-7951-secp256r1-precompile')
58+
cy.get('#eip-7951-c .e-select', { timeout: 10000 }).click()
59+
cy.get('[role="option"]').should('have.length.gte', 2)
60+
})
61+
})
62+
63+
describe('Custom Addition Precompile', () => {
64+
it('loads and displays exploration content', () => {
65+
cy.visit('/custom-addition-precompile')
66+
cy.contains('h1', 'Feel Your Protocol')
67+
cy.contains('h3', 'Custom Addition Precompile')
68+
cy.get('#custom-addition-precompile-c', { timeout: 10000 }).should('exist')
69+
})
70+
71+
it('loads default example with inputs', () => {
72+
cy.visit('/custom-addition-precompile')
73+
cy.get('#custom-addition-precompile-c textarea', { timeout: 10000 }).should(
74+
'not.have.value',
75+
'',
76+
)
77+
cy.get('#custom-addition-precompile-c input').should('have.length.gte', 2)
78+
})
79+
80+
it('example selector shows available options', () => {
81+
cy.visit('/custom-addition-precompile')
82+
cy.get('#custom-addition-precompile-c .e-select', { timeout: 10000 }).click()
83+
cy.get('[role="option"]').should('have.length.gte', 2)
84+
})
85+
})

dist/website/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<link rel="icon" href="/assets/favicon-DIYJD7QH.png">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Feel Your Protocol</title>
8-
<script type="module" crossorigin src="/assets/index-D0-gm-_I.js"></script>
9-
<link rel="stylesheet" crossorigin href="/assets/index-BtSee313.css">
8+
<script type="module" crossorigin src="/assets/index-J_34IhC4.js"></script>
9+
<link rel="stylesheet" crossorigin href="/assets/index-DY9thnVb.css">
1010
</head>
1111
<body class="container mx-auto p-2">
1212
<div id="app"></div>

0 commit comments

Comments
 (0)