Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ docs/.vitepress/cache

*.tsbuildinfo

SERVER_NOTES.md
SERVER_NOTES.md

# Dist
dist/
12 changes: 6 additions & 6 deletions cypress/e2e/eip7594.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@ describe('EIP-7594/PeerDAS Tests', () => {
cy.contains('h3', 'Peer Data Availability Sampling')

// Values from inital example
cy.get('#eip-7594-precompile-c textarea', { timeout: 10000 }).should(
cy.get('#eip-7594-c textarea', { timeout: 10000 }).should(
'contain.value',
'0a0001fbfc0084bd8494e56454b36510b0adc8aaa1b60',
)

// Select different example
cy.get('#eip-7594-precompile-c').find('select').select(2)
cy.get('#eip-7594-precompile-c textarea', { timeout: 10000 }).should(
cy.get('#eip-7594-c').find('select').select(2)
cy.get('#eip-7594-c textarea', { timeout: 10000 }).should(
'contain.value',
'00000000000000000000000000000000000000000',
)

cy.get('.run-button').click()
let text =
'0xa522f1be9ec4a02fcb6998b10306e94331311ac29bcaaae357d8d7fbc087a04b5b66dd7fa84cbebabcc45202b8fee57f'
cy.get('#eip-7594-precompile-c .4844-7594-box')
cy.get('#eip-7594-c .4844-7594-box')
.find('table tr:first td:nth-child(2)')
.should('contain.text', text, { timeout: 25000 })
text =
'0x8bd1e6e38b2b54735c6f0102022510cf2abc2e4c6c5a437cba9831662c9f112e61e2a6ced8ce63b3de18cb9cc99ae21e'
cy.get('#eip-7594-precompile-c .4844-box')
cy.get('#eip-7594-c .4844-box')
.find('p')
.should('contain.text', text, { timeout: 25000 })
text =
'0x8d90ed38068f3561132d9264db8c8dfb5237af24a6e28c3d4e72d3ad8d51d97be5733ddc382c9718822cb29ccc26364e'
cy.get('#eip-7594-precompile-c .7594-box')
cy.get('#eip-7594-c .7594-box')
.find('p:first')
.should('contain.text', text, { timeout: 25000 })
})
Expand Down
16 changes: 8 additions & 8 deletions cypress/e2e/eip7883_Precompile_R.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ describe('EIP-7823/Precompile Component Tests', () => {
cy.contains('h1', 'Feel Your Protocol')
cy.contains('h3', 'ModExp')

cy.get('#eip-7883-precompile-c textarea', { timeout: 10000 }).should(
cy.get('#eip-7883-c textarea', { timeout: 10000 }).should(
'have.value',
bytesExpected,
)
cy.get('#eip-7883-precompile-c input').eq(0).should('have.value', '03')
cy.get('#eip-7883-precompile-c input').eq(1).should('have.value', '03')
cy.get('#eip-7883-precompile-c input').eq(2).should('have.value', '02')
cy.get('#eip-7883-c input').eq(0).should('have.value', '03')
cy.get('#eip-7883-c input').eq(1).should('have.value', '03')
cy.get('#eip-7883-c input').eq(2).should('have.value', '02')

cy.get('.pre-hardfork').find('p').eq(0).should('include.text', '200 Gas')
cy.get('.post-hardfork').find('p').eq(0).should('include.text', '500 Gas')
Expand All @@ -32,7 +32,7 @@ describe('EIP-7823/Precompile Component Tests', () => {

// Simple initial case
bytesExpected = bytesLengthsExpected + '040402'
cy.get('#eip-7883-precompile-c').within(() => {
cy.get('#eip-7883-c').within(() => {
cy.get('input').eq(0).clear()
cy.get('input').eq(1).clear()
cy.get('input').eq(2).clear()
Expand All @@ -48,14 +48,14 @@ describe('EIP-7823/Precompile Component Tests', () => {
'0000000000000000000000000000000000000000000000000000000000000002' +
'0000000000000000000000000000000000000000000000000000000000000002'
bytesExpected = bytesLengthsExpected + '040404040202'
cy.get('#eip-7883-precompile-c').within(() => {
cy.get('#eip-7883-c').within(() => {
cy.get('input').eq(0).type('04')
cy.get('input').eq(1).type('04')
cy.get('input').eq(2).type('02')
})
cy.get('textarea').should('have.value', bytesExpected)

cy.get('#eip-7883-precompile-c').within(() => {
cy.get('#eip-7883-c').within(() => {
// Gas changing example
cy.get('input').eq(0).type('040404040404040404040404040404040404040404')
cy.get('input').eq(1).type('040404040404040404040404040404040404040404')
Expand All @@ -69,7 +69,7 @@ describe('EIP-7823/Precompile Component Tests', () => {
it('data -> values, URL sharing, EIP button', () => {
cy.visit('/eip-7883-modexp-gas-cost-increase')

cy.get('#eip-7883-precompile-c').within(() => {
cy.get('#eip-7883-c').within(() => {
cy.window().then((win) => {
cy.stub(win, 'open').callsFake((url) => {
win.location.href = url // Redirect within the same tab
Expand Down
10 changes: 5 additions & 5 deletions cypress/e2e/eip7951.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ describe('EIP-7951/secp256r1 Precompile Support', () => {
cy.contains('h3', 'secp256r1 Precompile Support')

// Values from inital example
cy.get('#eip-7951-precompile-c textarea', { timeout: 10000 }).should(
cy.get('#eip-7951-c textarea', { timeout: 10000 }).should(
'contain.value',
'4dfb1eae8ed41e188b8a44a1109d982d01fc24bb85a933',
)
const val = '3b91fedfb22f40063245c621036a040c159f02ae02e6d450ff9b53235e9232c4'
cy.get('#eip-7951-precompile-c input').eq(2).should('have.value', val)
cy.get('#eip-7951-c input').eq(2).should('have.value', val)

cy.get('.post-hardfork').find('p').eq(0).should('include.text', '6900 Gas')

// Select different example
cy.get('#eip-7951-precompile-c')
cy.get('#eip-7951-c')
.find('select')
.select('Invalid (Wycheproof), r value too large')
cy.get('#eip-7951-precompile-c textarea', { timeout: 10000 }).should(
cy.get('#eip-7951-c textarea', { timeout: 10000 }).should(
'contain.value',
'532eaabd9574880dbf76b9b8cc00832c20a6ec113d682299550d7a6e0f345e25',
)
cy.get('#eip-7951-precompile-c input')
cy.get('#eip-7951-c input')
.eq(2)
.should('have.value', 'ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc63254e')
cy.get('.post-hardfork').find('p').eq(0).should('include.text', '6900 Gas')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/sites/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe('Home Page', () => {
})

it('featured exploration boxes have entries and links work', () => {
cy.get('.exploration-precompile-c').should('have.length.gte', 1)
cy.get('.exploration-precompile-c').first().parents('a').click()
cy.get('.exploration-c').should('have.length.gte', 1)
cy.get('.exploration-c').first().parents('a').click()
cy.url().should('include', '/eip-')
})
})
16 changes: 8 additions & 8 deletions cypress/e2e/sites/topic.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ describe('Topic Page (Fusaka)', () => {
})

it('displays all topic EIP widgets', () => {
cy.get('#eip-7883-precompile-c', { timeout: 10000 }).should('exist')
cy.get('#eip-7594-precompile-c', { timeout: 10000 }).should('exist')
cy.get('#eip-7951-precompile-c', { timeout: 10000 }).should('exist')
cy.get('#eip-7883-c', { timeout: 10000 }).should('exist')
cy.get('#eip-7594-c', { timeout: 10000 }).should('exist')
cy.get('#eip-7951-c', { timeout: 10000 }).should('exist')
})

it('EIP widgets show titles', () => {
cy.get('#eip-7883-precompile-c').contains('h3', 'ModExp')
cy.get('#eip-7951-precompile-c').contains('h3', 'secp256r1')
cy.get('#eip-7594-precompile-c').contains('h3', 'Peer Data')
cy.get('#eip-7883-c').contains('h3', 'ModExp')
cy.get('#eip-7951-c').contains('h3', 'secp256r1')
cy.get('#eip-7594-c').contains('h3', 'Peer Data')
})

it('EIP widgets have EIP links', () => {
cy.get('#eip-7883-precompile-c .visit-exploration-button')
cy.get('#eip-7883-c .visit-exploration-button')
.should('have.attr', 'href')
.and('include', 'eip-7883')
cy.get('#eip-7951-precompile-c .visit-exploration-button')
cy.get('#eip-7951-c .visit-exploration-button')
.should('have.attr', 'href')
.and('include', 'eip-7951')
})
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions dist/website/assets/ExplorationView-BF7rIvyd.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/website/assets/HomeView-8L_2bRGj.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/website/assets/ImprintView-DjQ6aCzH.js

This file was deleted.

Loading
Loading