Skip to content

Commit

Permalink
working build with dom
Browse files Browse the repository at this point in the history
  • Loading branch information
mozrt2 committed Jan 12, 2024
1 parent 3cbab7a commit 19b2bd5
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 26 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .projen/deps.json

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

19 changes: 9 additions & 10 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ const project = new typescript.TypeScriptProject({
deps: [
'@noble/[email protected]',
'@safe-global/[email protected]',
// '[email protected]',
'[email protected]',
'[email protected]',
],
tsconfig: {
compilerOptions: {
lib: [
'es2019', 'dom',
],
},
},
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
devDeps: [
// 'eslint-config-prettier@^9.1.0',
// 'eslint-config-standard-with-typescript@^43.0.0',
// 'eslint-plugin-n@^16.6.2',
// 'eslint-plugin-prettier@^5.1.3',
// 'eslint-plugin-promise@^6.1.1',
// 'prettier@^3.1.1',
] /* Build dependencies for this module. */,
// devDeps: /* Build dependencies for this module. */,
// packageName: undefined, /* The "name" in package.json. */
});
project.synth();
2 changes: 1 addition & 1 deletion package.json

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

8 changes: 4 additions & 4 deletions test/generateEphemeralPrivateKey.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { generateEphemeralPrivateKey } from '../src/generateEphemeralPrivateKey';
import { extractPrivateViewingKeyNode } from '../src/extractPrivateViewingKeyNode';
import { generateEphemeralPrivateKey } from '../src/generateEphemeralPrivateKey';

describe('generateEphemeralPrivateKey', () => {
const privateViewingKey = new Uint8Array([
Expand All @@ -17,7 +17,7 @@ describe('generateEphemeralPrivateKey', () => {
});

expect(ephemeralPrivateKey).toEqual(
'0xef01af02e46bea24d45e909d3c219cbc5122e1cafd13f914deea1237ea0b01a6'
'0xef01af02e46bea24d45e909d3c219cbc5122e1cafd13f914deea1237ea0b01a6',
);
});

Expand All @@ -31,7 +31,7 @@ describe('generateEphemeralPrivateKey', () => {
});

expect(ephemeralPrivateKey).toEqual(
'0x4f80725f967e22f2597e363f977bb563de45c5e22e9c3594ebc0de8bdccf8945'
'0x4f80725f967e22f2597e363f977bb563de45c5e22e9c3594ebc0de8bdccf8945',
);
});

Expand All @@ -42,7 +42,7 @@ describe('generateEphemeralPrivateKey', () => {
generateEphemeralPrivateKey({
viewingPrivateKeyNode,
nonce: 0,
})
}),
).toThrow('coinType or chainId must be defined.');
});
});
4 changes: 2 additions & 2 deletions test/generateKeysFromSignature.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ describe('generateKeysFromSignature', () => {
const { spendingPrivateKey, viewingPrivateKey } = generateKeysFromSignature(signature);

expect(spendingPrivateKey).toEqual(
'0x641f9f8b285fa1d22b009ea8c947bb6d88129b320b729d98810b40b51e8572c7'
'0x641f9f8b285fa1d22b009ea8c947bb6d88129b320b729d98810b40b51e8572c7',
);
expect(viewingPrivateKey).toEqual(
'0x16988506fc3aa66bad0f3f231aa9552a1639b7c05477e6d59f8044adb3155322'
'0x16988506fc3aa66bad0f3f231aa9552a1639b7c05477e6d59f8044adb3155322',
);
});

Expand Down
2 changes: 1 addition & 1 deletion test/generateStealthAddresses.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { generateStealthAddresses } from '../src/generateStealthAddresses';
import { privateKeyToAccount } from 'viem/accounts';
import { generateStealthAddresses } from '../src/generateStealthAddresses';

describe('generateStealthAddresses', () => {
it('should generate the correct stealth addresses', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/predictStealthSafeAddress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('predictStealthSafeAddress', () => {
chainId,
threshold,
stealthAddresses,
})
}),
).rejects.toThrow('No safe contracts found for this configuration.');
});
});
3 changes: 2 additions & 1 deletion tsconfig.dev.json

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

3 changes: 2 additions & 1 deletion tsconfig.json

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

8 changes: 4 additions & 4 deletions yarn.lock

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

0 comments on commit 19b2bd5

Please sign in to comment.