Skip to content

Commit

Permalink
Update package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ytham committed Dec 14, 2023
1 parent 33c9176 commit eb462c8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3,182 deletions.
2 changes: 1 addition & 1 deletion harness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Circuit harness for axiom-client",
"scripts": {
"build": "rm -rf dist && tsc && tsx scripts/postBuild.js",
"test": "cd test && $npm_execpath jest"
"test": "jest"
},
"bin": {
"harness": "./index.js"
Expand Down
12 changes: 7 additions & 5 deletions harness/test/integration/goerli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ describe("Run", () => {
throw new Error("`PROVIDER_URI_GOERLI` environment variable must be defined");
}

const files = listDir("./integration/input/");
const inputBasePath = "./test/integration/input";
const outputBasePath = "./test/integration/output";
const files = listDir(inputBasePath);
const fileMap = makeFileMap(files);

for (let [folder, files] of Object.entries(fileMap)) {
for (let file of files) {
const inputFile = `./integration/input/${folder}/${file}`;
const inputFile = `${inputBasePath}/${folder}/${file}`;
const fileName = file.split(".js")[0];
const outputFolder = `./integration/output/${folder}`;
const outputFileBase = `${outputFolder}/${fileName}`;
const outputBasePathType = `${outputBasePath}/${folder}`;
const outputFileBase = `${outputBasePathType}/${fileName}`;

test(`Test ${folder}: ${inputFile}`, async () => {
console.log(`Running test: ${inputFile}`)
Expand All @@ -24,7 +26,7 @@ describe("Run", () => {
await run(
inputFile,
{
output: outputFolder,
output: outputBasePathType,
function: "circuit",
provider: process.env.PROVIDER_URI_GOERLI,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"0xe40c0e4521b32cf17ce45eee625a7e525481b412984310e1fb44eef5a34ab34c",
"0xf4d1a7e36933bfb413c2f451097e4cd1ab67e8a4cb0a1bdac2d05284e48be45e"
],
"computeProof": "0x000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e6128810003ae43548c5cf220fb36e3fc503abaa1e3c8702338f7a76e82f004fa198dae8562de2fc65de785017f7935168d7f2d23a3e4c4072443e065db78aa42d3066490a2e4798154426cda55486df6d90def36c6640ef44cd318a66ade1ad0c1bc0c51ca17e6bd208bb5a249aeee245589b3ee33f4d21587898cdc67e36785444e78963f47e1eff5ff842a894d41ee1830bd8a263054aaa0c96c8a932d2972865e74911a3608a544ad6e204a0192ee3c1bcb992225fccee943b9b234a103c4873047d2727a606cc01c882e7f185852ef974885470f0eecb58ff23fa3c277e83061a634f67e17d924ee3eab0a50323715dbb6e568f87727ca7ca1620ecba4cb864bc9407a62dfe91c112ccc4dd5f17e57d10a11580f7dd77ef753cde698f11386b7a1b2bb2833e2d465bf9025fde86c60a36564a12b22f3a8539df7c6aef4a07688f326bd66295b2e549acf28d4625c7733f7bbd91bdd8ad5efb6cb1395b9ed2d77cd51075373fb4813524b4437a7d0da1acdb9cbed5b1c7c6d27ae61dfde126c42cf700492ec63fca9469c35aae50b6cc4bb14c38ddbe68473c1e0dfdcd627273996a57ee7829174a52c31b1d2733977ee7a70db28a97f024e18cf7973384175f071f1cfe4c9a6502730bda42078121578da91f86a7db6ace5f04a53ad207b39b05e623e41c508c193097f55f73a1ef3cde459c6bd1c55c242e19b3ec1f6eb0bf9f72605fffbc5e6e0447a6e803d585c2124a4c1a0585861368b8b577a4feb4c555c82e9185c16cc189659510929fc4ff1c8beb184d4acc3881216b8001ad266adaa0248a45cc7c14ed09f50612af1b5c24ad7c1fecd1a2a3527802cd79f2ce5ca6002b091bedde6ed109debfb610183d4bb1b6195e189cbecfa2ea86e9f30598181611c780ed1454ea16d1f5e98ac2459d90591edae0d5765ac9793d14eebf14b58222869ceb5005cf5f0e841cc16de7ae0e62ed66c435646ebd58659e22a0df96352f7bece588900f00fdea0f019d4c812a8549358ec23c65130e736987e7e97f921ec5afbdfcf7f753fc47613b33edfce37840ff544e555caff163801453c05a6206a60156501e305665e0370e28a6f737f04058548bc67624976f1e162dc0b19c11bb5751972033789db5ed042caa8571e12cec345a9e88d737e495372ebf253f20acb2c792fa49b523bc64fa5b72d83414e72ec2fac6b63b38842d197613dd9d18425eb7dd3ca3cc429605b00007e253275b6f1ad4986fbba79443a70cb0b28803f8a90df9b7fdf2827f680851bb9b4a4717d9f30220443f149107176912f7a401833404dace706d0d5f32d366495e87eeca32411270706bb45212e185a9d6dd02d821f4e6b32532847ffe30a42407d9f2b4d46d0866145c5099f51dd8aabf6525e3ea39f3c013791ef8d07a45a5e5c0f13b40c1e52b20b31ba25bc54d732b421034adcd390b484b39c723bcac300d01738aa1ac812d5b2ed64ba0936f42b04212b1d206f5da8c68234f6f59fa51e7e5aa9b60764fe4fbdbaf08e4318a5b2d89292dbcc961dcdb8947f170a716bfb626e3f68986148e2e8fc4c6c2d48645345f2d9575da1fa94e1ab00b82d1f0e0a11f42fcfe0691dc6806a827d7944fc2c5841b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c05919522e3f4849bdd63ea3ce60325b6c3c6f5b7f8db6e713f36e7462ab9f08b7e7e065759726e744d31d41f4bebe031dfaf865d93ec0b094b5ea9fa0c03b0f8b80ddf9558e0087b7e04b2e2de89e76b960883f5422726f6335bf30d8034a2b978a1f89c784cee5936783a9f3a0275997d206279c6ae1d740666ccffc206b069f3595d4e3b739f2b4096aac4fe6698892c7e15df188b4097876b433aa38b4026d3cc8245552f2b572dfe783f52f1ca5ab497f8995450f4151503f2e2388161a187227b7b2413e600fd46c50bab8ce335ee2b63256b872ae994e2d7916162e2653b83af5e5e0c4398387c6e05ca4f3c85a78ead4b913f39c52fdec19808aff2d169f813f07de8123b6c185336c6b1f13099c095d3e60ca0d86e991ca75bd592e8392340f8eeae1b347d592ebd0e8f751e30099f84a726ac4f315f7b1d553c513d0e3dfe35a67e478e74992d897e211e887cca59fc3d504899c31f74cd321fc0643c421c65f063ccbad0f7c676bc9e5aba5b237e23b905cc88a8ee0f2a5b61213a7c56c0ca58a3aa683c2e0b19b8f1abd85fc8f59fa38d0ffbdc08677da00a01274cacb21e5a09c79df5eca61c3d825d5b767d24725abe45c75d86cc7efcc8f066e3c0aecb2fc973b780459e4111e954009a5e2d7f39dbf05cda9e9577d6b220ad2e931814cf4c398bc2c605c1242ba64022c620027454bdea1c3a902545a280871d0b8e4891c1954308ab621552d638bf801fa9c4a31bdee0587ea1aaf29e72cb4019c540448b890eb1491be3b436b77a2b5dd1f5e5bad96b1e2237ea9116904234a51f16df9e7215cb8e008bf349e10b9ad3f67af923cbb216d35ad7db4a80f2d3883b0c5302bc6853e004d64e229b08f190d88915f4ed15a390e2d28438204bd835ea5084583bb3304df4f507d67c2ddc844136439b4024739930680438905e558c735caa4c6766271258045e4da5ba9bfa2f4802ea156ca24969c721e500330dc6ba3b0701727f504c02f3591940d21acb85344de7f29c546427d5dea552b6f358b4f31fc2e074f045733ce2bfa6c3dab8183619b7ed4b29ae8ea29e7ea0dab98c67795f0e6d4715de11b193969d94fa6aa56fd3cb6c1525340b221f2941155b6742eba185f2a3b6b9f4d5e5d07ae37179122def031f92cf1af2b94820841",
"computeProof": "0x000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000000000000000000000000000000000000000000000000000455899e612881000c994107976c7f6ad7da39be92c77e65693112759b08c2cf7d9c0e7a11575f0629d038e86940b307063cabe09a13345e92115de4058551c30da88f3e239555109204a486adb61240a5f910bf4eb7704ca809e8799d50fa5cfe52ce80b5738644f91eb17d0c22f8c026cdf0eff3f784c67ff23b03a1cb971c4c410f69c7b2d8d60c23044cdb4a43e81ee0417d6a1ece0bbde7816d4efe744c29cdccdcdceddd12c8d17abaf6a5129d5450a91e638b12ee73c4705829bf3c7b5debb5440328a8e1a7d2b5cfecea68bebc0cf3b7ad61c478ae170c6deb3d3d7539306ee5b28f68a218bd4122a6c649c63caefb81ca7ebcc4b2c472878b609eec3aa8a58dddb0c814b04f74a569642f636a9d57d47b078aed007e5091806c18beb6b3f8e89b3fba11a1ea7f16c5633dea99e2a21c707b26fa5d645dec3ef69755629b475abd087ed508a3c063dcefad1e1d8e90a65556471aacee9f0e1b1daf29c223375e4a8422a10bc80c291ff551b8198a736d63267bef774c1f6560f6220a120371a715473da26b817ce55b877c2cca1b0d9e6f094018167bce8cbc0edb226affd3119844842154535b24bdcdc59f404f3e8165e8ecec4915a7c1efe7aa8d1a1a049685cbd1d21dcb254d0da5e2c5619fa91290340594e0606c6dcd6ec4be3506d038ec915d65aca91d8fb1c2dac861b26868f13801acc021da2c9e14d179a690520c5ae0d6c40519c49c3e5f1b76258931d61a5a1e8df777eae44349e7dff1b78cde039416b13194e2f69548169486d40a15b61a6d54505fcefceda665aeef2e33e9f4f43cf070175713945e766a3cd8fb3594d0c73a2e2a3712c96cfc7ebbfeab6a167a13a07d0773c60dfb43af2d0411b15c988f18b31435be6b33102105150a14f2916790d8e715e7c3cd7b11ab0fe5d1b94e1148501f451f7dfedc7bad71910e4748dbc2aac6dbc2b64da8ead05b93cb04cac4a036b896786589276be77091c44b300c812cce7fd5a67761c3d73ca5117da94083815f41dc57cd987ef468a262a6470b225c2d7ccb7535cf2db75aca021e37e8f44ab0c7c302c649c719e5b35c9ec3c0c0620969429bdf7e41d4286377fa5e683cc697cf6684728633f38c06abdbad27a1e26fee773637d0d24d74fac43230e1093d441df22d3683cdb64e2ca7376c28a268ac0868d9d146890c9c3342fd42e468655b362b9962086190eb51c70e9704c0965f8167b653323c013d0a4a1df341d5595503ad8fce1c3890226f95a1ab0051f2a2a870367b636d4b417f5839e6f40542b0b85b93454f233695d0f8f5a80df0757bbfedbbc2fa5aac9b24da597120c836711922e14e7f9992f7dd0d4bf22fe1d5f0ad1d475987e1d6107188fcc41a450c68063cc1244cab5ae668265342f770fb418c75b41f66148d3cbb06ccb5901df767591dfcb73555db4a5edc7ebbaba0093df2d331aa07f0a1869c9d6c45e3af99ac0b5857a0c4558a4fa9731ec2a592426f0449a04870d472e79875a148d3330252149b69669fddd30ad551f9004042cbf99180337c6fab51605aaa16621787f253fed7557698ed5f09444a04b422d25d515fd487e8fb51536fe38f2c7fa68173bf9c8164d077ce3fed373860bef1a1c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000048de60f87ec8a58ec8d466edfba91f738a43764987e0057ffec981a055974314a4d2a24428d93019bdca97cc522ede5ab0addb0f6ed8bd6cef52766565bfeb19e0ea906cb457beb117c1095611a512c18ac79b7a6d9a7f6a83c7637f767fac0bd94c2b38451026dfa365df78df396241e8f67ea9de6e7ae2efa1167c75f2112aeff0f303eaca5f9f1227eb56ce4b77aa7d278226a28533be9d31625c4e1616207ea571f3609d59a05acf1e9559e121d5f6d696684885b23375161375e2f1220e0da2fc2adb2406465a94288d84310a6d01e48bd314e5f96bb40c33dee5850e196e27d8426a5cd154cf247390787c466317d7105267621c31354c173a7aa4612dc09cef7cfb5d5a6d326547182c8ee314a9cdf93efae7b4a62d83d21dca28061fc22305104d048566910e6722672600f782bb3d4c37902ec1e52fa329c8006a280c3d0b3f24a4f6004e409ff2dffcc46a2e701d130a832260344115b8c1b4872e8584dbba8b880175d784567073a8179b5e95e6e2f058587e5dcd2d52217bfc0ddc8c4bbe95180efbdab080955471b0e94f3700c92eea69fd012d6eb3b3d26111d6969cdbda9864705cf6271182bb91b9180bb3ce6f55310ff18403463e304208ff1317a133b3fe013031f3127619768448e8c92d67c149f955b59bfbccf779287c9d788eb8b5258d915c38321104a3b6cbf51c01b34b1283e3d3d4ca7e024a2f417b4839e765c3e0f7b2ed9ce2bd98ffdda3a7465c033b3f4703e9a8f92da92ce9ab0ca43669c1c9e5e82df5023cb042a95e1b9654db50b22bd0b66ca3823d052c4cfa9cab782fe51715e9f1d311eac5bffca1913e5279d6d4835f1b7b2d420ad83e595445bb90d7022d5cb279203a7e5281b2410c5b68e161e690d584b3e7132ad5c7e1b62067c77c1df25ae14ac2213d0e1952142a65a3771a4c9ebf22180a0279ddf514bfc7d0cfb726700221599a617f3d9efd183bd707be2f11c9bd9a0cdc08be9586818a99c89beefa601939ed94077d826430a43f380c34751f635425d25ea2432a8d41dafdd2e5fee6e5d55f227b2f74aad2be4b1e161006057e7d2f96b3fa67b364e54b14b5c5a038752bb0c4795e7f7cdd66660bbe47c4ad3e77202d57c36eb7790c338b963bff41b98ec6c9a5635865523d5b6803d27ce07f2969",
"resultLen": 7
},
"computeResults": [
Expand Down
10 changes: 0 additions & 10 deletions harness/test/jest.config.js

This file was deleted.

41 changes: 0 additions & 41 deletions harness/test/package.json

This file was deleted.

Loading

0 comments on commit eb462c8

Please sign in to comment.