Skip to content

Commit

Permalink
FET-1573 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SagiSan committed Sep 19, 2024
1 parent 9f03f25 commit e848364
Show file tree
Hide file tree
Showing 2 changed files with 425 additions and 291 deletions.
71 changes: 50 additions & 21 deletions packages/ensjs/deploy/00_register_concurrently.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,53 @@ const { makeNonceManager } = require('../utils/nonceManager.cjs')
* }[]}
*/

const sameExpiryNames = Array.from({ length: 20 }, (_, index) => ({
label: `same-expiry-legacy-name-${index}`,
type: 'legacy',
namedOwner: 'owner4',
reverseRecord: true,
duration: 3600,
}))

const expiryNames = Array.from({ length: 20 }, (_, index) => ({
label: `wrapped-name-${index}`,
// type: 'wrapped',
namedOwner: 'owner4',
// reverseRecord: true,
expiry: 31556000 + index + 1,
// duration: 31556000 + index + 1,
}))

const names = [
{
label: 'concurrent-legacy-name',
type: 'legacy',
namedOwner: 'owner4',
reverseRecord: true,
},
...sameExpiryNames,
// ...expiryNames,
// {
// label: 'concurrent-legacy-name',
// type: 'legacy',
// namedOwner: 'owner4',
// reverseRecord: true,
// duration: 3600,
// },
// {
// label: 'concurrent-legacy-name-2',
// type: 'legacy',
// namedOwner: 'owner4',
// reverseRecord: true,
// duration: 3600,
// },
{
label: 'concurrent-wrapped-name',
type: 'wrapped',
namedOwner: 'owner4',
reverseRecord: true,
subnames: [
{ label: 'test', namedOwner: 'owner4' },
{ label: 'legacy', namedOwner: 'owner4' },
{ label: 'xyz', namedOwner: 'owner4' },
{ label: 'addr', namedOwner: 'owner4' },
// { label: 'subname-1', namedOwner: 'owner4', duration: 36000 },
// { label: 'subname-2', namedOwner: 'owner4' },
// { label: 'test', namedOwner: 'owner4' },
// { label: 'legacy', namedOwner: 'owner4' },
// { label: 'xyz', namedOwner: 'owner4', expiry: 3600 },
// { label: 'addr', namedOwner: 'owner4' },
...expiryNames,
],
},
]
Expand Down Expand Up @@ -88,18 +118,17 @@ const func = async function (hre) {
namedOwner,
namedAddr,
})
else
return wrappedNameGenerator.commit({
label,
namedOwner,
data,
reverseRecord,
fuses,
duration,
})
return wrappedNameGenerator.commit({
label,
namedOwner,
data,
reverseRecord,
fuses,
duration,
})
},
),
await network.provider.send('evm_mine')
await network.provider.send('evm_mine'),
)

network.provider.send('evm_mine')
Expand Down Expand Up @@ -209,7 +238,7 @@ const func = async function (hre) {
'status after registration',
await network.provider.send('txpool_content'),
)

return true
}

Expand Down
Loading

0 comments on commit e848364

Please sign in to comment.