Skip to content

chore: implements populate script - #33

Merged
0xItadaki merged 6 commits into
feat/populate-scriptfrom
chore/populate-script
Aug 29, 2025
Merged

chore: implements populate script#33
0xItadaki merged 6 commits into
feat/populate-scriptfrom
chore/populate-script

Conversation

@0xItadaki

@0xItadaki 0xItadaki commented Aug 29, 2025

Copy link
Copy Markdown
Collaborator

Closes EFI-496

Example:

[
  {
    "chainIds": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    "forwardCalldata": "0x57dcc742000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000000a0ab7eb02accc2b384fb2748fcb4170af910b010838334a5d48ba2d8f2e55d0e990173b3fc0cf74f33a67a29036009321fa99920d1d0c479632540163445dcd0d5f55780247d51669833374c7b5585274da4fcbb7a0b9087766f8940caf9f45fabfa59375178d496285ab09af26816be731385e4c0ff5bf7573f548c60f46a0b79f2ea5a59f120180f42800384e05d78822573153a598bc1e9566e5cf77ef29205029ed8340cef71f7f079e3fb6180abfdda3cfcd634e1922f2957b143332abccc3dc6be73f42f348ed3ac4d6fe40359bfc31178283815267d60e9e0cee48f1b71c409ba4a7aff7577d4a667198ba861f1de0a55cf53630ab87b5f4e82e026059295f7a65d7c68fc8b254581fdc33bb3560bc1b2a200c50db6925906f121937dbbbbd5bca1ea05c476310b049bbc80aa7f64689f6972e4e4edbccecd388b9d6c9000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003800000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e65697037393330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010636861696e2e69642e6569703739333000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000380000000000000000000000000000000000000000000000000000000000000000700010000010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000100000102000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070001000001030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700010000010400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000100000105000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070001000001060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700010000010700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000100000108000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000070001000001090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700010000010a0000000000000000000000000000000000000000000000000000",
    "reverseCalldata": "0x57dcc742000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000820000000000000000000000000000000000000000000000000000000000000000aa1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8a1e7ae8efca73939b8018c7c06321689d70c6362862a1c900eb76c9e581e4ae8000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000005c00000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783461356163343264646635373465373564343264306233366636306134626437333861363765626536343135303438323762626537353434333337623431363900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783163363037346234353331396637343463356331633266356532616564383331323761306638383463313038366462366533303831316465323532613861363900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783834616131303165366466383737656261326562313764663638393335363965326430396131316561643637383132623361323666616338616437306230663500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783964326131383036383237343833643936343465343438636132656633313732613134663864663562346665363864333665313335353735376333383538363200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783764626234376338346231383865653037623232303961653337613731343065363433616564373137346466393065643337326135393064356535633234323200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783036633662323733623635343464306537303235336436386535333364313261316366643061363931303965613363643735336333633435303865633138336400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030786336356135663537623435643434353963343830323662363463363031646635336439336433666263346437663266373131366633396433393238306135636200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783765303539613765656464646334393962326435373236323564333930363738353463663764313064616539386366633131366262313738636561326135303300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e6569703739333030783032316132636266326435346332653131666434326539393739623137623162386163346138376239643662303062366435613664333731343966396435623800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052636861696e2e69642e656970373933303078306135613038376534353034366131343433333139613232376662646664306266633664666666633233633838356133333436343964633039623364383865320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000005c000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a6574682e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a6578702e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a726f702e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a72696e2e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a676f722e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a6b6f742e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a7463682e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a7562712e6c322e6574680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000b747562712e6c322e65746800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000b6f6574682e6c322e657468000000000000000000000000000000000000000000"
  }
...
]

@linear

linear Bot commented Aug 29, 2025

Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you grab this from out dir?

Comment thread populate-script/package.json Outdated
Comment on lines +11 to +15
"@types/node": "^24.3.0",
"ts-node": "^10.9.2",
"typescript": "^5.9.2",
"viem": "^2.36.0",
"vitest": "^3.2.4"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use fixed versions.

Comment thread populate-script/script.ts Outdated

for (const item of batch) {
const subDomain = item.subDomain || item.shortName || item.name; // TODO: Review this
const domain = `${subDomain}${L2_SUFFIX}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we lowerCase it first?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, just in case

@0xItadaki
0xItadaki marked this pull request as ready for review August 29, 2025 12:00
@0xItadaki
0xItadaki changed the base branch from dev to feat/populate-script August 29, 2025 12:13
@0xItadaki
0xItadaki merged commit 72aa421 into feat/populate-script Aug 29, 2025
5 checks passed
@0xItadaki
0xItadaki deleted the chore/populate-script branch August 29, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants