-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af0c37f
commit 40118c0
Showing
24 changed files
with
356 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
*.lock | ||
.wrangler | ||
*lock* | ||
*.vars | ||
/build | ||
/node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ logpush = false | |
|
||
[vars] | ||
KIMLIKDAO_POW_THRESHOLD = "20000" | ||
|
||
[placement] | ||
mode = "smart" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ logpush = false | |
|
||
[vars] | ||
KIMLIKDAO_POW_THRESHOLD = "20000" | ||
|
||
[placement] | ||
mode = "smart" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import ipfs from '/lib/node/ipfs'; | ||
import ipfs from '@kimlikdao/lib/node/ipfs'; | ||
|
||
/** | ||
* @param {!Request} req | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
build/mina/mina.js: mina/mina.js mina/mina.d.js \ | ||
mina/MerkleTree.js \ | ||
$(lib)/cloudflare/moduleWorker.d.js \ | ||
$(lib)/cloudflare/durableObject.d.js \ | ||
$(lib)/cloudflare/types.d.js \ | ||
$(lib)/crypto/poseidon.js \ | ||
$(lib)/crypto/modular.js \ | ||
$(lib)/mina/merkleTree.d.js $(lib)/mina/mina.d.js \ | ||
$(lib)/util/hex.js | ||
mkdir -p $(dir $@) | ||
mkdir -p build/input/mina && cp -rf mina/* build/input/mina/ | ||
mkdir -p build/input/node_modules/@kimlikdao | ||
ln -sfn ../../../../$(lib) build/input/node_modules/@kimlikdao/lib | ||
sed -i.bak '/cloudflare:workers/d' build/input/mina/MerkleTree.js | ||
echo 'globalThis["MinaWorker"] = MinaWorker;\nglobalThis["MerkleTree"] = MerkleTree;' >> build/input/mina/mina.js | ||
cd build/input; bun google-closure-compiler -W VERBOSE -O ADVANCED --charset UTF-8 \ | ||
--jscomp_error=checkTypes \ | ||
--jscomp_error=strictCheckTypes \ | ||
--jscomp_error=unusedLocalVariables \ | ||
--jscomp_error=reportUnknownTypes \ | ||
--emit_use_strict \ | ||
--language_in ECMASCRIPT_NEXT \ | ||
--module_resolution NODE \ | ||
--assume_function_wrapper \ | ||
--dependency_mode PRUNE \ | ||
--entry_point mina/mina.js \ | ||
--js $^ \ | ||
--js_output_file ../../$@ | ||
rm -rf build/input/mina | ||
bun uglifyjs $@ -m -c toplevel,unsafe,drop_console -o $@ | ||
bun $(lib)/birimler/bigintCompressor.js $@ | ||
wc $@ | ||
|
||
build/mina.deployment: build/mina/mina.js mina/prod.toml | ||
bun wrangler deploy $< --compatibility-date $(shell date -v -1d +%Y-%m-%d) \ | ||
--config mina/prod.toml |
Oops, something went wrong.