Compare commits
2 Commits
3af5cd3c19
...
53cb3ac414
| Author | SHA1 | Date | |
|---|---|---|---|
| 53cb3ac414 | |||
| f4382f4e78 |
@ -7,7 +7,7 @@ RUN apt update && apt install --yes --no-install-recommends wget git apt-transpo
|
||||
|
||||
ENV GIT_REPOSITORY=https://github.com/tornadocontrib/tornado-scripts.git
|
||||
# From main branch, double check with git.tornado.ws and codeberg.org
|
||||
ENV GIT_COMMIT_HASH=cbfe16da0b66775c220cf2b7f35dd2c2085d6bbf
|
||||
ENV GIT_COMMIT_HASH=f4382f4e786f438ef612212326f3cc465d422b95
|
||||
|
||||
# clone the repository
|
||||
RUN mkdir /app/
|
||||
|
||||
8
dist/hashes.json
vendored
8
dist/hashes.json
vendored
@ -1,11 +1,11 @@
|
||||
{
|
||||
"dist/index.js": "sha384-9VSo+DyOg7bk9fplN0eusAdRqdhB/o9VBM9Y4TinC0tYBljNm2IDfxC4G60luJDp",
|
||||
"dist/index.mjs": "sha384-Cm+w57MAhudCJ1Xk+H0dwspZlGJV3Yny1uFzoQBbNaCNaLwTH9CqDHdmu2mAYQxJ",
|
||||
"dist/index.js": "sha384-DMBnRJIMRwGIEYdgWy5NptEFmOmmB4DrUWvVNf60ZUMHDWnuHdogrjx1dkCSOWtN",
|
||||
"dist/index.mjs": "sha384-3zq911CcPyyFDXeBw8eByPFafkAn/CA5zHaBTQnpU7wIXczHIYYMBvb9GN3ugnd/",
|
||||
"dist/merkleTreeWorker.js": "sha384-HPaQH762jYxlfAdS4KPJou1AXG9Ww4N+PDEc6vHgFeIX1HI8S/StRmOoJR+gHScM",
|
||||
"dist/merkleTreeWorker.umd.js": "sha384-+VOeGAa/XGNYsar06LgAquRWKO3CG7anvbpVvlWIa6J9pg9+DskqaDkAusiVz8HZ",
|
||||
"dist/merkleTreeWorker.umd.min.js": "sha384-fOCKW9eYxMVLFTOQcuKJxJwNyRu6MRIzmPFHqzxlp0P/ZT24y+A3HcgCylohIfJ0",
|
||||
"dist/tornado.umd.js": "sha384-/dWCQ81GwzoRqHnv+pi9tsHj2mzMyvxBk5ttIbOLe/0MIcSw9aBoSr3vgRoSlWZ+",
|
||||
"dist/tornado.umd.min.js": "sha384-CgPo6GlnCtdGLqeu7OIcOliLTRQy289Q3CxWv5xqXCQhrHxSUupP8nBv55xQiqkW",
|
||||
"dist/tornado.umd.js": "sha384-XeXTO328XhMcGl1pxByq1uxvXQhqvHM29YMNE9axl6CvAL2QaZiCxnPReNSflkjS",
|
||||
"dist/tornado.umd.min.js": "sha384-l8SqurxZw9c56JNIytR6PW5Unprk11ruakjTC9Wgk2HLoNEQfrn7kalzBIzCQ13X",
|
||||
"dist/tornadoContracts.umd.js": "sha384-Gmawcz/XTH7WFUFnMJKPUCy2zrjDOhf/DtSv9xfHBulPyCEJwI70Hw+n7E1Y60EU",
|
||||
"dist/tornadoContracts.umd.min.js": "sha384-Sclkp3xkhjmDekfQaQFkgUctmauYUF7ieeyyFhFBnwAzyp2eFBS5qzxvOIBhlJza"
|
||||
}
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -10017,7 +10017,7 @@ class IndexedDB {
|
||||
}
|
||||
async function getIndexedDB(netId) {
|
||||
if (!netId) {
|
||||
const idb2 = new IndexedDB({ dbName: "tornado-core" });
|
||||
const idb2 = new IndexedDB({ dbName: "tornado-scripts" });
|
||||
await idb2.initDB();
|
||||
return idb2;
|
||||
}
|
||||
|
||||
2
dist/index.mjs
vendored
2
dist/index.mjs
vendored
@ -9995,7 +9995,7 @@ class IndexedDB {
|
||||
}
|
||||
async function getIndexedDB(netId) {
|
||||
if (!netId) {
|
||||
const idb2 = new IndexedDB({ dbName: "tornado-core" });
|
||||
const idb2 = new IndexedDB({ dbName: "tornado-scripts" });
|
||||
await idb2.initDB();
|
||||
return idb2;
|
||||
}
|
||||
|
||||
2
dist/tornado.umd.js
vendored
2
dist/tornado.umd.js
vendored
@ -91523,7 +91523,7 @@ class IndexedDB {
|
||||
}
|
||||
async function getIndexedDB(netId) {
|
||||
if (!netId) {
|
||||
const idb2 = new IndexedDB({ dbName: "tornado-core" });
|
||||
const idb2 = new IndexedDB({ dbName: "tornado-scripts" });
|
||||
await idb2.initDB();
|
||||
return idb2;
|
||||
}
|
||||
|
||||
2
dist/tornado.umd.min.js
vendored
2
dist/tornado.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@ -15,8 +15,8 @@
|
||||
"build:web": "webpack",
|
||||
"build:hash": "ts-node scripts/hash.ts",
|
||||
"build": "yarn types && yarn build:node && yarn build:web && yarn build:hash",
|
||||
"ipfs:build": "docker build -t tornado-core .",
|
||||
"ipfs:hash": "docker container run --rm -it --entrypoint cat tornado-core /app/dist/hashes.json",
|
||||
"docker:build": "docker build -t tornado-scripts .",
|
||||
"docker:hash": "docker container run --rm -it --entrypoint cat tornado-scripts /app/dist/hashes.json",
|
||||
"test": "nyc mocha --require ts-node/register --require source-map-support/register --recursive 'test/**/*.ts' --timeout '300000'"
|
||||
},
|
||||
"author": "Tornado Contrib",
|
||||
|
||||
@ -317,7 +317,7 @@ export class IndexedDB {
|
||||
export async function getIndexedDB(netId?: NetIdType) {
|
||||
// key-value db for settings
|
||||
if (!netId) {
|
||||
const idb = new IndexedDB({ dbName: 'tornado-core' });
|
||||
const idb = new IndexedDB({ dbName: 'tornado-scripts' });
|
||||
await idb.initDB();
|
||||
return idb;
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ export function leInt2Buff(bigint: bnInput | bigint) {
|
||||
return Uint8Array.from(new BN(bigint as bnInput).toArray('le', 31));
|
||||
}
|
||||
|
||||
// Inherited from tornado-core and tornado-cli
|
||||
// Inherited from tornado-scripts and tornado-cli
|
||||
export function toFixedHex(numberish: BigNumberish, length = 32) {
|
||||
return (
|
||||
'0x' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user