Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to fix type errors in bitcoin_psbt through packing #2464

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 0 deletions examples/experimental/demo/basic_bitcoin/package-lock.json

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

1 change: 1 addition & 0 deletions examples/experimental/demo/basic_bitcoin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "basic_bitcoin",
"version": "0.0.0",
"scripts": {
"install": "./scripts/install.sh",
"pretest": "tsx test/pretest.ts",
Expand Down
1 change: 1 addition & 0 deletions examples/experimental/demo/bitcoin_psbt/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.azle
.bitcoin
.dfx
basic_bitcoin-0.0.0.tgz
dfx_generated
node_modules
2 changes: 1 addition & 1 deletion examples/experimental/demo/bitcoin_psbt/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports = {
'^.+\\.ts$': ['ts-jest', { isolatedModules: true }],
'^.+\\.js$': 'ts-jest'
},
transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed
transformIgnorePatterns: ['/node_modules/(?!(azle|basic_bitcoin)/)'] // Make sure azle is transformed
};
24 changes: 10 additions & 14 deletions examples/experimental/demo/bitcoin_psbt/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/experimental/demo/bitcoin_psbt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@bitcoin-js/tiny-secp256k1-asmjs": "^2.2.3",
"azle": "0.24.1",
"basic_bitcoin": "file:../basic_bitcoin",
"basic_bitcoin": "file:basic_bitcoin-0.0.0.tgz",
"bitcoinjs-lib": "^6.1.5",
"express": "^4.18.2",
"tiny-secp256k1": "^2.2.3"
Expand Down
10 changes: 5 additions & 5 deletions examples/experimental/demo/bitcoin_psbt/test/pretest.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { linkAndInstallPatch } from 'azle/test/jest_link';
import { execSync } from 'child_process';
import { join } from 'path';

function pretest(): void {
linkAndInstallPatch(
join('examples', 'experimental', 'demo', 'basic_bitcoin')
);
execSync(`npm install $(npm pack ../basic_bitcoin)`);

if (process.env.AZLE_END_TO_END_TEST_LINK_AZLE !== 'false') {
execSync(`npm link azle`);
}

execSync(`dfx canister uninstall-code bitcoin_psbt || true`, {
stdio: 'inherit'
Expand Down
Loading