Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ src.ts/Untitled-2.json
src.ts/Untitled-1.json
logs.txt
yarn-error.log
package-lock.json
package-lock.json
25 changes: 0 additions & 25 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions build/dist/run-s.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/run-s.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
require('npm-run-all/bin/run-s');
23 changes: 23 additions & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const path = require('path');

module.exports = {
target: 'node',
mode: 'production',
entry: './run-s.js',
output: {
filename: 'run-s.js',
path: path.resolve(__dirname, 'dist'),
clean: true
},
optimization: {
minimize: true
},
externals: [
/^node:.*/, // Exclude node: protocol imports
/^@nodejs\/.*/ // Exclude @nodejs scoped modules
],
node: {
__dirname: false,
__filename: false
}
};
1 change: 1 addition & 0 deletions lib/alkanes/alkanes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/alkanes/alkanes.js.map

Large diffs are not rendered by default.

Binary file modified lib/alkanes/free_mint.wasm
Binary file not shown.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"url": "git+https://github.com/oyl-wallet/oyl-sdk.git"
},
"scripts": {
"build": "tsc && cp src/**/*.wasm lib/alkanes",
"build": "run-s build:tsc build:copywasm",
"build:tsc": "tsc",
"build:install": "yarn",
"build:run-s": "cross-env node scripts/build-run-s",
"build:copywasm": "cross-env cp src/alkanes/*.wasm lib/alkanes/",
"clean": "rimraf node_modules",
"reset": "node build/dist/run-s clean build:install build",
"dev": "tsc -w",
"prettier": "prettier --write ./src.ts/**/*.ts",
"test": "jest",
Expand All @@ -35,8 +41,11 @@
"cross-env": "^7.0.3",
"jest": "29.7.0",
"npm-run-all": "^4.1.5",
"rimraf": "^6.0.1",
"ts-jest": "29.2.5",
"typescript": "4.9.5",
"webpack": "^5.97.1",
"webpack-cli": "^6.0.1",
"yarn-audit-fix": "10.1.1"
},
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions scripts/build-run-s.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';
const path = require("node:path");
const child_process = require("node:child_process");
process.chdir(path.join(__dirname, '..', 'build'));
child_process.spawnSync('webpack', [], { stdio: 'inherit' });
1 change: 1 addition & 0 deletions src/alkanes/alkanes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ export const createTransactReveal = async ({
}),
],
}).encodedRunestone
console.log(protostone.toString('hex'));

const p2pk_redeem = { output: script }

Expand Down
Binary file modified src/alkanes/free_mint.wasm
Binary file not shown.
Binary file added src/alkanes/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,940 changes: 1,254 additions & 686 deletions yarn.lock

Large diffs are not rendered by default.

Loading