From f6a2ba62f7945e782c6f9f54399ea6b09c4b1fc1 Mon Sep 17 00:00:00 2001 From: Berzan Date: Tue, 30 Apr 2024 13:53:53 +0000 Subject: [PATCH] upload: packages to NPM --- bridge-contract/package-lock.json | 42 +++++++++--------- bridge-contract/package.json | 10 ++--- common-o1js/package-lock.json | 4 +- common-o1js/package.json | 2 +- event-fetcher-process/package-lock.json | 52 +++++++++++------------ event-fetcher-process/package.json | 5 +-- event-fetcher-process/src/index.ts | 4 +- proof-generator-process/package-lock.json | 18 ++++---- proof-generator-process/package.json | 5 +-- proof-generator-process/src/index.ts | 22 +++++----- proof-generator-process/src/prove.ts | 28 ++++++------ proof-generator-process/src/utils.ts | 8 ++-- proof-generator/package-lock.json | 12 +++--- proof-generator/package.json | 4 +- proof-merger-process/package-lock.json | 18 ++++---- proof-merger-process/package.json | 5 +-- proof-merger-process/src/index.ts | 10 ++--- proof-merger-process/src/prove.ts | 12 +++--- proof-merger-process/src/utils.ts | 12 +++--- proof-submitter-process/package-lock.json | 28 ++++++------ proof-submitter-process/package.json | 5 +-- proof-submitter-process/src/index.ts | 16 +++---- proof-submitter-process/src/utils.ts | 4 +- rollup-contract/package-lock.json | 22 +++++----- rollup-contract/package.json | 6 +-- signature-verifier-process/package.json | 1 - token-contract/package-lock.json | 4 +- token-contract/package.json | 2 +- 28 files changed, 178 insertions(+), 183 deletions(-) diff --git a/bridge-contract/package-lock.json b/bridge-contract/package-lock.json index ab80eb1..38b41c1 100644 --- a/bridge-contract/package-lock.json +++ b/bridge-contract/package-lock.json @@ -1,17 +1,17 @@ { "name": "nacho-bridge-contract", - "version": "0.1.4", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nacho-bridge-contract", - "version": "0.1.4", + "version": "0.1.10", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", - "nacho-rollup-contract": "^0.1.5", - "nacho-token-contract": "^0.1.1", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", + "nacho-rollup-contract": "^0.1.10", + "nacho-token-contract": "^0.2.0", "o1js": "^0.17.0" }, "devDependencies": { @@ -56,36 +56,36 @@ "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } }, "node_modules/nacho-proof-generator": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.7.tgz", - "integrity": "sha512-UOQWZMmJPxb2x3bzsUp6vyDaDtyukToVvw1VBs59izFSxlUwUxPm0T21zHVGr65238A8ShrxQrKbh7EJBomSDA==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.10.tgz", + "integrity": "sha512-h4jA9pMbvFfIAe9VapyQXXeAzjfdYFslk1+Y8WaoF31/R0O8GpojfJKOLSJ3XmFpYilwBTZWvV0qVh0DeohXGg==", "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" } }, "node_modules/nacho-rollup-contract": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/nacho-rollup-contract/-/nacho-rollup-contract-0.1.5.tgz", - "integrity": "sha512-GT7LwJ/WkRifCJrEcS8hknTMNh1fvCVR/77NsUqS5tKhLDNJNBq8cgon0CzmWw9okl4qm2nhJNfxRp9EPx7tCQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-rollup-contract/-/nacho-rollup-contract-0.1.10.tgz", + "integrity": "sha512-Cv0YZurHs9aDGDRccuNA9fdIlsTvgDnah/AsVCmBiRKVXQxgqXm7F0gCcg6nui7zAnJyHIsM3p128O4lojNIFw==", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" } }, "node_modules/nacho-token-contract": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/nacho-token-contract/-/nacho-token-contract-0.1.1.tgz", - "integrity": "sha512-x6RDnyOuvlDE+XQl/IH5KYY8imVa7eNB+4/dEnidyiIsCD/OqQa6OXZELxRxRcFbwgrwwi9K051mfClzVU4MmA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/nacho-token-contract/-/nacho-token-contract-0.2.0.tgz", + "integrity": "sha512-bMTV2+MHnMVVeAq5Kco9UmdHS01QJJKRtKfb8nI2qUA/a2OJkl2Lv8o717JbQHmL9a5X1EjtjvaWbp3+W38R5g==", "dependencies": { "o1js": "^0.17.0" } diff --git a/bridge-contract/package.json b/bridge-contract/package.json index f507939..eca954f 100644 --- a/bridge-contract/package.json +++ b/bridge-contract/package.json @@ -1,6 +1,6 @@ { "name": "nacho-bridge-contract", - "version": "0.1.4", + "version": "0.1.10", "type": "module", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -12,10 +12,10 @@ "build": "rm -rf build/ && tsc" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", - "nacho-rollup-contract": "^0.1.5", - "nacho-token-contract": "^0.1.1", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", + "nacho-rollup-contract": "^0.1.10", + "nacho-token-contract": "^0.2.0", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/common-o1js/package-lock.json b/common-o1js/package-lock.json index b32accb..4f936d3 100644 --- a/common-o1js/package-lock.json +++ b/common-o1js/package-lock.json @@ -1,12 +1,12 @@ { "name": "nacho-common-o1js", - "version": "0.1.8", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nacho-common-o1js", - "version": "0.1.8", + "version": "0.1.10", "dependencies": { "o1js": "^0.17.0" }, diff --git a/common-o1js/package.json b/common-o1js/package.json index 74e611e..0a0072a 100644 --- a/common-o1js/package.json +++ b/common-o1js/package.json @@ -1,6 +1,6 @@ { "name": "nacho-common-o1js", - "version": "0.1.8", + "version": "0.1.10", "type": "module", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/event-fetcher-process/package-lock.json b/event-fetcher-process/package-lock.json index d32fc13..b54d34d 100644 --- a/event-fetcher-process/package-lock.json +++ b/event-fetcher-process/package-lock.json @@ -1,15 +1,15 @@ { "name": "nacho-event-fetcher-process", - "version": "0.1.0", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nacho-event-fetcher-process", - "version": "0.1.0", + "version": "0.1.10", "dependencies": { - "nacho-bridge-contract": "^0.1.2", - "nacho-common-o1js": "^0.1.8", + "nacho-bridge-contract": "^0.1.10", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { @@ -586,48 +586,48 @@ } }, "node_modules/nacho-bridge-contract": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/nacho-bridge-contract/-/nacho-bridge-contract-0.1.2.tgz", - "integrity": "sha512-iqF4KWgcnCwBtaA9U741cx7u+U0AJsAdXh6SjMYZcdVCbXRF8Na8pcLTeRPhKWufI/oJoj30iEfrtr2GjPNxFg==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-bridge-contract/-/nacho-bridge-contract-0.1.10.tgz", + "integrity": "sha512-yU6IdDP+QM0Z+t8zB/j9PdPQowWKumEXrjn6ezNk22GHq9bDRuNW01y8iIsDH8yhH37gEKCs7/9iGNEwhwpohQ==", "dependencies": { - "nacho-common-o1js": "^0.1.7", - "nacho-proof-generator": "^0.1.5", - "nacho-rollup-contract": "^0.1.3", - "nacho-token-contract": "^0.1.1", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", + "nacho-rollup-contract": "^0.1.10", + "nacho-token-contract": "^0.2.0", "o1js": "^0.17.0" } }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } }, "node_modules/nacho-proof-generator": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.5.tgz", - "integrity": "sha512-YfnX7RIr27qjdMMziPzM87IUBJyQXka7IZ9nfo6HNmNj9PM4Gy8UmhWA6R9juTdXdQjtTz31mZ174xNKSoDomQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.10.tgz", + "integrity": "sha512-h4jA9pMbvFfIAe9VapyQXXeAzjfdYFslk1+Y8WaoF31/R0O8GpojfJKOLSJ3XmFpYilwBTZWvV0qVh0DeohXGg==", "dependencies": { - "nacho-common-o1js": "^0.1.7", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" } }, "node_modules/nacho-rollup-contract": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/nacho-rollup-contract/-/nacho-rollup-contract-0.1.3.tgz", - "integrity": "sha512-OeWToEAhBq8cNeq3Qp1hgIFIHd6u+9mGPIlrFpKwz/glykcQouxpptYAt4IXS4pKMjTs3DdaQkMJ2+qdB8IrZA==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-rollup-contract/-/nacho-rollup-contract-0.1.10.tgz", + "integrity": "sha512-Cv0YZurHs9aDGDRccuNA9fdIlsTvgDnah/AsVCmBiRKVXQxgqXm7F0gCcg6nui7zAnJyHIsM3p128O4lojNIFw==", "dependencies": { - "nacho-common-o1js": "^0.1.7", - "nacho-proof-generator": "^0.1.3", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" } }, "node_modules/nacho-token-contract": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/nacho-token-contract/-/nacho-token-contract-0.1.1.tgz", - "integrity": "sha512-x6RDnyOuvlDE+XQl/IH5KYY8imVa7eNB+4/dEnidyiIsCD/OqQa6OXZELxRxRcFbwgrwwi9K051mfClzVU4MmA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/nacho-token-contract/-/nacho-token-contract-0.2.0.tgz", + "integrity": "sha512-bMTV2+MHnMVVeAq5Kco9UmdHS01QJJKRtKfb8nI2qUA/a2OJkl2Lv8o717JbQHmL9a5X1EjtjvaWbp3+W38R5g==", "dependencies": { "o1js": "^0.17.0" } diff --git a/event-fetcher-process/package.json b/event-fetcher-process/package.json index 72ba787..8fdfa39 100644 --- a/event-fetcher-process/package.json +++ b/event-fetcher-process/package.json @@ -1,7 +1,6 @@ { "name": "nacho-event-fetcher-process", "version": "0.1.0", - "private": true, "type": "module", "files": [ "build" @@ -10,8 +9,8 @@ "build": "rimraf build/ && tsc && rollup --config" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-bridge-contract": "^0.1.2", + "nacho-common-o1js": "^0.1.10", + "nacho-bridge-contract": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/event-fetcher-process/src/index.ts b/event-fetcher-process/src/index.ts index fbefce5..1cb1b6a 100644 --- a/event-fetcher-process/src/index.ts +++ b/event-fetcher-process/src/index.ts @@ -5,8 +5,8 @@ import { BridgeContract } from "nacho-bridge-contract" import { Mina, PublicKey } from "o1js" import { unparseError, unparseOutput } from "./output" -const minaNodeUrl = process.argv.at(2) -const bridgeContractAddress = process.argv.at(3) +const minaNodeUrl = process.env.NACHO_MINA_NODE_URL +const bridgeContractAddress = process.env.NACHO_BRIDGE_CONTRACT_ADDRESS if (minaNodeUrl === undefined || bridgeContractAddress === undefined) { process.exit(1) diff --git a/proof-generator-process/package-lock.json b/proof-generator-process/package-lock.json index e302a48..ad295d4 100644 --- a/proof-generator-process/package-lock.json +++ b/proof-generator-process/package-lock.json @@ -8,8 +8,8 @@ "name": "nacho-proof-generator-process", "version": "0.1.0", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { @@ -586,19 +586,19 @@ } }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } }, "node_modules/nacho-proof-generator": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.7.tgz", - "integrity": "sha512-UOQWZMmJPxb2x3bzsUp6vyDaDtyukToVvw1VBs59izFSxlUwUxPm0T21zHVGr65238A8ShrxQrKbh7EJBomSDA==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.10.tgz", + "integrity": "sha512-h4jA9pMbvFfIAe9VapyQXXeAzjfdYFslk1+Y8WaoF31/R0O8GpojfJKOLSJ3XmFpYilwBTZWvV0qVh0DeohXGg==", "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" } }, diff --git a/proof-generator-process/package.json b/proof-generator-process/package.json index ce1e3a5..43bc8bd 100644 --- a/proof-generator-process/package.json +++ b/proof-generator-process/package.json @@ -1,7 +1,6 @@ { "name": "nacho-proof-generator-process", "version": "0.1.0", - "private": true, "type": "module", "files": [ "build" @@ -10,8 +9,8 @@ "build": "rimraf build/ && tsc && rollup --config" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/proof-generator-process/src/index.ts b/proof-generator-process/src/index.ts index dca060f..d78ada1 100644 --- a/proof-generator-process/src/index.ts +++ b/proof-generator-process/src/index.ts @@ -13,9 +13,9 @@ import { import { saveProofToDisk } from "./utils" import { proofGenerator } from "nacho-proof-generator" -const proofDbPath = process.argv.at(2) +const proofsPath = process.env.NACHO_PROOFS_PATH -if (proofDbPath === undefined) { +if (proofsPath === undefined) { process.exit(1) } @@ -30,23 +30,23 @@ stdin.on("data", async (chunk) => { input.kind === "CreateGenesis" ? await createGenesis(input) : input.kind === "DepositTokens" - ? await depositTokens(input, proofDbPath) + ? await depositTokens(input, proofsPath) : input.kind === "BurnTokens" - ? await makeBurnTokens(input, proofDbPath) + ? await makeBurnTokens(input, proofsPath) : input.kind === "CreatePool" - ? await makeCreatePool(input, proofDbPath) + ? await makeCreatePool(input, proofsPath) : input.kind === "ProvideLiquidity" - ? await makeProvideLiquidity(input, proofDbPath) + ? await makeProvideLiquidity(input, proofsPath) : input.kind === "RemoveLiquidity" - ? await makeRemoveLiquidity(input, proofDbPath) + ? await makeRemoveLiquidity(input, proofsPath) : input.kind === "BuyTokens" - ? await makeBuyTokens(input, proofDbPath) + ? await makeBuyTokens(input, proofsPath) : input.kind === "SellTokens" - ? await makeSellTokens(input, proofDbPath) + ? await makeSellTokens(input, proofsPath) : null if (input.kind === "CreateGenesis") { - await saveProofToDisk(proofDbPath, 0n, proof!) + await saveProofToDisk(proofsPath, 0n, proof!) } else if ( input.kind === "DepositTokens" || input.kind === "BurnTokens" || @@ -56,7 +56,7 @@ stdin.on("data", async (chunk) => { input.kind === "BuyTokens" || input.kind === "SellTokens" ) { - await saveProofToDisk(proofDbPath, input.earlier_proof_index + 1n, proof!) + await saveProofToDisk(proofsPath, input.earlier_proof_index + 1n, proof!) } const buffer = new ArrayBuffer(1) diff --git a/proof-generator-process/src/prove.ts b/proof-generator-process/src/prove.ts index a7c8f20..2b260f3 100644 --- a/proof-generator-process/src/prove.ts +++ b/proof-generator-process/src/prove.ts @@ -33,7 +33,7 @@ export const createGenesis = async (params: CreateGenesis) => { return proof } -export const depositTokens = async (params: DepositTokens, proofDbPath: string) => { +export const depositTokens = async (params: DepositTokens, proofsPath: string) => { const proof = await proofGenerator.depositTokens( new StateRoots({ balances: Field(params.state_roots.balances), @@ -41,7 +41,7 @@ export const depositTokens = async (params: DepositTokens, proofDbPath: string) pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SingleBalanceWitness(params.single_balance_witness.siblings), Field(params.current_deposits_merkle_list_hash), Field(params.expected_deposits_merkle_list_hash), @@ -54,7 +54,7 @@ export const depositTokens = async (params: DepositTokens, proofDbPath: string) return proof } -export const makeBurnTokens = async (params: BurnTokens, proofDbPath: string) => { +export const makeBurnTokens = async (params: BurnTokens, proofsPath: string) => { const proof = await proofGenerator.makeBurnTokens( new StateRoots({ balances: Field(params.state_roots.balances), @@ -62,7 +62,7 @@ export const makeBurnTokens = async (params: BurnTokens, proofDbPath: string) => pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SingleBalanceWitness(params.single_balance_witness.siblings), new SingleBurnWitness(params.single_burn_witness.siblings), PublicKey.fromBase58(params.user_address), @@ -79,7 +79,7 @@ export const makeBurnTokens = async (params: BurnTokens, proofDbPath: string) => return proof } -export const makeCreatePool = async (params: CreatePool, proofDbPath: string) => { +export const makeCreatePool = async (params: CreatePool, proofsPath: string) => { const proof = await proofGenerator.makeCreatePool( new StateRoots({ balances: Field(params.state_roots.balances), @@ -87,7 +87,7 @@ export const makeCreatePool = async (params: CreatePool, proofDbPath: string) => pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SinglePoolWitness(params.single_pool_witness.siblings), new SingleLiquidityWitness(params.single_liquidity_witness.siblings), new DoubleBalanceWitness( @@ -111,7 +111,7 @@ export const makeCreatePool = async (params: CreatePool, proofDbPath: string) => return proof } -export const makeProvideLiquidity = async (params: ProvideLiquidity, proofDbPath: string) => { +export const makeProvideLiquidity = async (params: ProvideLiquidity, proofsPath: string) => { const proof = await proofGenerator.makeProvideLiquidity( new StateRoots({ balances: Field(params.state_roots.balances), @@ -119,7 +119,7 @@ export const makeProvideLiquidity = async (params: ProvideLiquidity, proofDbPath pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SinglePoolWitness(params.single_pool_witness.siblings), new SingleLiquidityWitness(params.single_liquidity_witness.siblings), new DoubleBalanceWitness( @@ -147,7 +147,7 @@ export const makeProvideLiquidity = async (params: ProvideLiquidity, proofDbPath return proof } -export const makeRemoveLiquidity = async (params: RemoveLiquidity, proofDbPath: string) => { +export const makeRemoveLiquidity = async (params: RemoveLiquidity, proofsPath: string) => { const proof = await proofGenerator.makeRemoveLiquidity( new StateRoots({ balances: Field(params.state_roots.balances), @@ -155,7 +155,7 @@ export const makeRemoveLiquidity = async (params: RemoveLiquidity, proofDbPath: pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SinglePoolWitness(params.single_pool_witness.siblings), new SingleLiquidityWitness(params.single_liquidity_witness.siblings), new DoubleBalanceWitness( @@ -184,7 +184,7 @@ export const makeRemoveLiquidity = async (params: RemoveLiquidity, proofDbPath: return proof } -export const makeBuyTokens = async (params: BuyTokens, proofDbPath: string) => { +export const makeBuyTokens = async (params: BuyTokens, proofsPath: string) => { const proof = await proofGenerator.makeBuyTokens( new StateRoots({ balances: Field(params.state_roots.balances), @@ -192,7 +192,7 @@ export const makeBuyTokens = async (params: BuyTokens, proofDbPath: string) => { pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SinglePoolWitness(params.single_pool_witness.siblings), new DoubleBalanceWitness( params.double_balance_witness.siblingsX1, @@ -218,7 +218,7 @@ export const makeBuyTokens = async (params: BuyTokens, proofDbPath: string) => { return proof } -export const makeSellTokens = async (params: SellTokens, proofDbPath: string) => { +export const makeSellTokens = async (params: SellTokens, proofsPath: string) => { const proof = await proofGenerator.makeSellTokens( new StateRoots({ balances: Field(params.state_roots.balances), @@ -226,7 +226,7 @@ export const makeSellTokens = async (params: SellTokens, proofDbPath: string) => pools: Field(params.state_roots.pools), burns: Field(params.state_roots.burns), }), - await readProofFromDisk(proofDbPath, params.earlier_proof_index), + await readProofFromDisk(proofsPath, params.earlier_proof_index), new SinglePoolWitness(params.single_pool_witness.siblings), new DoubleBalanceWitness( params.double_balance_witness.siblingsX1, diff --git a/proof-generator-process/src/utils.ts b/proof-generator-process/src/utils.ts index 6958a67..22d4f6a 100644 --- a/proof-generator-process/src/utils.ts +++ b/proof-generator-process/src/utils.ts @@ -1,18 +1,18 @@ import { ZkProof } from "nacho-proof-generator" import { readFile, writeFile } from "node:fs/promises" -export const readProofFromDisk = async (proofDbPath: string, index: bigint): Promise => { - const filePath = `${proofDbPath}/${index}` +export const readProofFromDisk = async (proofsPath: string, index: bigint): Promise => { + const filePath = `${proofsPath}/${index}` const file = await readFile(filePath, { encoding: "ascii" }) const jsonProof = ZkProof.fromJSON(JSON.parse(file)) return jsonProof } export const saveProofToDisk = async ( - proofDbPath: string, + proofsPath: string, index: bigint, proof: ZkProof, ): Promise => { - const filePath = `${proofDbPath}/${index}` + const filePath = `${proofsPath}/${index}` await writeFile(filePath, JSON.stringify(proof.toJSON()), { encoding: "ascii" }) } diff --git a/proof-generator/package-lock.json b/proof-generator/package-lock.json index 45eb953..f32060d 100644 --- a/proof-generator/package-lock.json +++ b/proof-generator/package-lock.json @@ -1,14 +1,14 @@ { "name": "nacho-proof-generator", - "version": "0.1.7", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nacho-proof-generator", - "version": "0.1.7", + "version": "0.1.10", "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { @@ -53,9 +53,9 @@ "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } diff --git a/proof-generator/package.json b/proof-generator/package.json index 1a7e6bd..c09e007 100644 --- a/proof-generator/package.json +++ b/proof-generator/package.json @@ -1,6 +1,6 @@ { "name": "nacho-proof-generator", - "version": "0.1.7", + "version": "0.1.10", "type": "module", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -12,7 +12,7 @@ "build": "rm -rf build/ && tsc" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/proof-merger-process/package-lock.json b/proof-merger-process/package-lock.json index 7600a8c..574aa9e 100644 --- a/proof-merger-process/package-lock.json +++ b/proof-merger-process/package-lock.json @@ -8,8 +8,8 @@ "name": "nacho-proof-merger-process", "version": "0.1.0", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { @@ -586,19 +586,19 @@ } }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } }, "node_modules/nacho-proof-generator": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.7.tgz", - "integrity": "sha512-UOQWZMmJPxb2x3bzsUp6vyDaDtyukToVvw1VBs59izFSxlUwUxPm0T21zHVGr65238A8ShrxQrKbh7EJBomSDA==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.10.tgz", + "integrity": "sha512-h4jA9pMbvFfIAe9VapyQXXeAzjfdYFslk1+Y8WaoF31/R0O8GpojfJKOLSJ3XmFpYilwBTZWvV0qVh0DeohXGg==", "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" } }, diff --git a/proof-merger-process/package.json b/proof-merger-process/package.json index fcabdab..6e54f29 100644 --- a/proof-merger-process/package.json +++ b/proof-merger-process/package.json @@ -1,7 +1,6 @@ { "name": "nacho-proof-merger-process", "version": "0.1.0", - "private": true, "type": "module", "files": [ "build" @@ -10,8 +9,8 @@ "build": "rimraf build/ && tsc && rollup --config" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/proof-merger-process/src/index.ts b/proof-merger-process/src/index.ts index 7fad91e..4a9f78d 100644 --- a/proof-merger-process/src/index.ts +++ b/proof-merger-process/src/index.ts @@ -4,9 +4,9 @@ import { continueMerge, startMerge } from "./prove" import { saveMergedProofToDisk } from "./utils" import { proofGenerator } from "nacho-proof-generator" -const proofDbPath = process.argv.at(2) +const proofsPath = process.env.NACHO_PROOFS_PATH -if (proofDbPath === undefined) { +if (proofsPath === undefined) { process.exit(1) } @@ -23,13 +23,13 @@ stdin.on("data", async (chunk) => { const proof = input.kind === "StartMerge" - ? await startMerge(input, proofDbPath) + ? await startMerge(input, proofsPath) : input.kind === "ContinueMerge" - ? await continueMerge(input, proofDbPath) + ? await continueMerge(input, proofsPath) : null if (proof) { - saveMergedProofToDisk(proofDbPath, proof) + saveMergedProofToDisk(proofsPath, proof) isSuccess = true } } catch {} diff --git a/proof-merger-process/src/prove.ts b/proof-merger-process/src/prove.ts index f0a3180..396092a 100644 --- a/proof-merger-process/src/prove.ts +++ b/proof-merger-process/src/prove.ts @@ -2,18 +2,18 @@ import { proofGenerator } from "nacho-proof-generator" import { ContinueMerge, StartMerge } from "./input" import { readMergedProofFromDisk, readProofFromDisk } from "./utils" -export const startMerge = async (params: StartMerge, proofDbPath: string) => { - const firstProof = await readProofFromDisk(proofDbPath, BigInt(params.proof_index)) - const secondProof = await readProofFromDisk(proofDbPath, BigInt(params.proof_index + 1)) +export const startMerge = async (params: StartMerge, proofsPath: string) => { + const firstProof = await readProofFromDisk(proofsPath, BigInt(params.proof_index)) + const secondProof = await readProofFromDisk(proofsPath, BigInt(params.proof_index + 1)) const proof = await proofGenerator.mergeProofs(firstProof.publicInput, firstProof, secondProof) return proof } -export const continueMerge = async (params: ContinueMerge, proofDbPath: string) => { - const firstProof = await readMergedProofFromDisk(proofDbPath) - const secondProof = await readProofFromDisk(proofDbPath, BigInt(params.proof_index)) +export const continueMerge = async (params: ContinueMerge, proofsPath: string) => { + const firstProof = await readMergedProofFromDisk(proofsPath) + const secondProof = await readProofFromDisk(proofsPath, BigInt(params.proof_index)) const proof = await proofGenerator.mergeProofs(firstProof.publicInput, firstProof, secondProof) diff --git a/proof-merger-process/src/utils.ts b/proof-merger-process/src/utils.ts index 6caa5d5..a0270d1 100644 --- a/proof-merger-process/src/utils.ts +++ b/proof-merger-process/src/utils.ts @@ -1,20 +1,20 @@ import { ZkProof } from "nacho-proof-generator" import { readFile, writeFile } from "node:fs/promises" -export const readProofFromDisk = async (proofDbPath: string, index: bigint): Promise => { - const filePath = `${proofDbPath}/${index}` +export const readProofFromDisk = async (proofsPath: string, index: bigint): Promise => { + const filePath = `${proofsPath}/${index}` const file = await readFile(filePath, { encoding: "ascii" }) const jsonProof = ZkProof.fromJSON(JSON.parse(file)) return jsonProof } -export const saveMergedProofToDisk = async (proofDbPath: string, proof: ZkProof): Promise => { - const filePath = `${proofDbPath}/merged` +export const saveMergedProofToDisk = async (proofsPath: string, proof: ZkProof): Promise => { + const filePath = `${proofsPath}/merged` await writeFile(filePath, JSON.stringify(proof.toJSON()), { encoding: "ascii" }) } -export const readMergedProofFromDisk = async (proofDbPath: string): Promise => { - const filePath = `${proofDbPath}/merged` +export const readMergedProofFromDisk = async (proofsPath: string): Promise => { + const filePath = `${proofsPath}/merged` const file = await readFile(filePath, { encoding: "ascii" }) const jsonProof = ZkProof.fromJSON(JSON.parse(file)) return jsonProof diff --git a/proof-submitter-process/package-lock.json b/proof-submitter-process/package-lock.json index 6d4f3b1..74c680d 100644 --- a/proof-submitter-process/package-lock.json +++ b/proof-submitter-process/package-lock.json @@ -8,8 +8,8 @@ "name": "nacho-proof-submitter-process", "version": "0.1.0", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-rollup-contract": "^0.1.5", + "nacho-common-o1js": "^0.1.10", + "nacho-rollup-contract": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { @@ -586,29 +586,29 @@ } }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } }, "node_modules/nacho-proof-generator": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.7.tgz", - "integrity": "sha512-UOQWZMmJPxb2x3bzsUp6vyDaDtyukToVvw1VBs59izFSxlUwUxPm0T21zHVGr65238A8ShrxQrKbh7EJBomSDA==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.10.tgz", + "integrity": "sha512-h4jA9pMbvFfIAe9VapyQXXeAzjfdYFslk1+Y8WaoF31/R0O8GpojfJKOLSJ3XmFpYilwBTZWvV0qVh0DeohXGg==", "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" } }, "node_modules/nacho-rollup-contract": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/nacho-rollup-contract/-/nacho-rollup-contract-0.1.5.tgz", - "integrity": "sha512-GT7LwJ/WkRifCJrEcS8hknTMNh1fvCVR/77NsUqS5tKhLDNJNBq8cgon0CzmWw9okl4qm2nhJNfxRp9EPx7tCQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-rollup-contract/-/nacho-rollup-contract-0.1.10.tgz", + "integrity": "sha512-Cv0YZurHs9aDGDRccuNA9fdIlsTvgDnah/AsVCmBiRKVXQxgqXm7F0gCcg6nui7zAnJyHIsM3p128O4lojNIFw==", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" } }, diff --git a/proof-submitter-process/package.json b/proof-submitter-process/package.json index 69a035e..3995eca 100644 --- a/proof-submitter-process/package.json +++ b/proof-submitter-process/package.json @@ -1,7 +1,6 @@ { "name": "nacho-proof-submitter-process", "version": "0.1.0", - "private": true, "type": "module", "files": [ "build" @@ -10,8 +9,8 @@ "build": "rimraf build/ && tsc && rollup --config" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-rollup-contract": "^0.1.5", + "nacho-common-o1js": "^0.1.10", + "nacho-rollup-contract": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/proof-submitter-process/src/index.ts b/proof-submitter-process/src/index.ts index 0385b05..6376782 100644 --- a/proof-submitter-process/src/index.ts +++ b/proof-submitter-process/src/index.ts @@ -4,21 +4,21 @@ import { RollupContract } from "nacho-rollup-contract" import { Mina, PrivateKey, PublicKey } from "o1js" import { readMergedProofFromDisk } from "./utils" -const proofDbPath = process.argv.at(2) -const txSenderPrivateKeyAsBase58 = process.argv.at(3) -const minaNodeUrl = process.argv.at(4) -const rollupContractAddress = process.argv.at(5) +const proofsPath = process.env.NACHO_PROOFS_PATH +const privateKeyAsBase58 = process.env.NACHO_SUBMITTER_PRIVATE_KEY +const minaNodeUrl = process.env.NACHO_MINA_NODE_URL +const rollupContractAddress = process.env.NACHO_ROLLUP_CONTRACT_ADDRESS if ( - proofDbPath === undefined || - txSenderPrivateKeyAsBase58 === undefined || + proofsPath === undefined || + privateKeyAsBase58 === undefined || minaNodeUrl === undefined || rollupContractAddress === undefined ) { process.exit(1) } -const txSender = PrivateKey.fromBase58(txSenderPrivateKeyAsBase58) +const txSender = PrivateKey.fromBase58(privateKeyAsBase58) Mina.setActiveInstance(Mina.Network(minaNodeUrl)) @@ -35,7 +35,7 @@ stdin.on("data", async () => { let ok = false try { - const mergedProof = await readMergedProofFromDisk(proofDbPath) + const mergedProof = await readMergedProofFromDisk(proofsPath) await submitMergedProof(mergedProof, rollupContract, txSender) ok = true } catch {} diff --git a/proof-submitter-process/src/utils.ts b/proof-submitter-process/src/utils.ts index 542ccdd..5847939 100644 --- a/proof-submitter-process/src/utils.ts +++ b/proof-submitter-process/src/utils.ts @@ -1,8 +1,8 @@ import { ZkProof } from "nacho-proof-generator" import { readFile } from "node:fs/promises" -export const readMergedProofFromDisk = async (proofDbPath: string): Promise => { - const filePath = `${proofDbPath}/merged` +export const readMergedProofFromDisk = async (proofsPath: string): Promise => { + const filePath = `${proofsPath}/merged` const file = await readFile(filePath, { encoding: "ascii" }) const jsonProof = ZkProof.fromJSON(JSON.parse(file)) return jsonProof diff --git a/rollup-contract/package-lock.json b/rollup-contract/package-lock.json index 8ed0bf7..b5128b4 100644 --- a/rollup-contract/package-lock.json +++ b/rollup-contract/package-lock.json @@ -1,15 +1,15 @@ { "name": "nacho-rollup-contract", - "version": "0.1.5", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nacho-rollup-contract", - "version": "0.1.5", + "version": "0.1.10", "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { @@ -54,19 +54,19 @@ "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, "node_modules/nacho-common-o1js": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.8.tgz", - "integrity": "sha512-udU84Jbef/oB384VmwyiMXMbscfvkKBaWZzfuMOFgGTavlnEtt16T6rp9obKYHRNAJiuwo43env6NYbkK7EryQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-common-o1js/-/nacho-common-o1js-0.1.10.tgz", + "integrity": "sha512-yKAv9tnwXzgEFW/uH6+C6skpvQy4nXwSsR5u3r/I8HHhz6FB970nSZMQ3N2iUjXkFWzbFwPohVgfbSDvsESpfA==", "dependencies": { "o1js": "^0.17.0" } }, "node_modules/nacho-proof-generator": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.7.tgz", - "integrity": "sha512-UOQWZMmJPxb2x3bzsUp6vyDaDtyukToVvw1VBs59izFSxlUwUxPm0T21zHVGr65238A8ShrxQrKbh7EJBomSDA==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nacho-proof-generator/-/nacho-proof-generator-0.1.10.tgz", + "integrity": "sha512-h4jA9pMbvFfIAe9VapyQXXeAzjfdYFslk1+Y8WaoF31/R0O8GpojfJKOLSJ3XmFpYilwBTZWvV0qVh0DeohXGg==", "dependencies": { - "nacho-common-o1js": "^0.1.8", + "nacho-common-o1js": "^0.1.10", "o1js": "^0.17.0" } }, diff --git a/rollup-contract/package.json b/rollup-contract/package.json index 892528e..6c837e9 100644 --- a/rollup-contract/package.json +++ b/rollup-contract/package.json @@ -1,6 +1,6 @@ { "name": "nacho-rollup-contract", - "version": "0.1.5", + "version": "0.1.10", "type": "module", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -12,8 +12,8 @@ "build": "rm -rf build/ && tsc" }, "dependencies": { - "nacho-common-o1js": "^0.1.8", - "nacho-proof-generator": "^0.1.7", + "nacho-common-o1js": "^0.1.10", + "nacho-proof-generator": "^0.1.10", "o1js": "^0.17.0" }, "devDependencies": { diff --git a/signature-verifier-process/package.json b/signature-verifier-process/package.json index ea0a13c..7669a3f 100644 --- a/signature-verifier-process/package.json +++ b/signature-verifier-process/package.json @@ -1,7 +1,6 @@ { "name": "nacho-signature-verifier-process", "version": "0.1.0", - "private": true, "type": "module", "files": [ "build" diff --git a/token-contract/package-lock.json b/token-contract/package-lock.json index 91c4500..c5c0126 100644 --- a/token-contract/package-lock.json +++ b/token-contract/package-lock.json @@ -1,12 +1,12 @@ { "name": "nacho-token-contract", - "version": "0.1.1", + "version": "0.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nacho-token-contract", - "version": "0.1.1", + "version": "0.2.0", "dependencies": { "o1js": "^0.17.0" }, diff --git a/token-contract/package.json b/token-contract/package.json index c1c0fd7..3710f5c 100644 --- a/token-contract/package.json +++ b/token-contract/package.json @@ -1,6 +1,6 @@ { "name": "nacho-token-contract", - "version": "0.1.1", + "version": "0.2.0", "type": "module", "main": "build/src/index.js", "types": "build/src/index.d.ts",