Skip to content

Commit

Permalink
chore: remove unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Oct 17, 2023
1 parent 7d856fa commit 9a4a1e4
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 531 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Test
run: pnpm test

- name: Check examples
- name: Check examples & demos
run: pnpm check-examples

- name: Upload coverage to Codecov
Expand Down
5 changes: 4 additions & 1 deletion demos/taco-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
"scripts": {
"start": "webpack serve --mode development",
"build": "tsc --noEmit && rimraf build && webpack --mode production --progress"
"build": "pnpm clean && webpack --mode production --progress",
"clean": "rimraf build",
"check": "pnpm typecheck && pnpm build",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@nucypher/taco": "workspace:*",
Expand Down
6 changes: 4 additions & 2 deletions demos/taco-demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
conditions,
decrypt,
domains,
encrypt,
getPorterUri,
initialize,
Expand Down Expand Up @@ -43,6 +44,7 @@ export default function App() {
const provider = new ethers.providers.Web3Provider(window.ethereum);
const encryptedMessage = await encrypt(
provider,
domains.DEV,
message,
condition,
ritualId,
Expand All @@ -62,12 +64,12 @@ export default function App() {
setDecryptionErrors([]);

const provider = new ethers.providers.Web3Provider(window.ethereum);
const porterUri = getPorterUri('lynx');
const decryptedMessage = await decrypt(
provider,
domains.DEV,
encryptedMessage,
getPorterUri(domains.DEV),
provider.getSigner(),
porterUri,
);

setDecryptedMessage(new TextDecoder().decode(decryptedMessage));
Expand Down
5 changes: 4 additions & 1 deletion demos/taco-nft-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
"scripts": {
"start": "webpack serve --mode development",
"build": "tsc --noEmit && rimraf build && webpack --mode production --progress"
"build": "pnpm clean && webpack --mode production --progress",
"clean": "rimraf build",
"check": "pnpm typecheck && pnpm build",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@nucypher/taco": "workspace:*",
Expand Down
6 changes: 4 additions & 2 deletions demos/taco-nft-demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
conditions,
decrypt,
domains,
encrypt,
getPorterUri,
initialize,
Expand Down Expand Up @@ -42,6 +43,7 @@ export default function App() {
const provider = new ethers.providers.Web3Provider(window.ethereum);
const encryptedMessage = await encrypt(
provider,
domains.DEV,
message,
condition,
ritualId,
Expand All @@ -61,12 +63,12 @@ export default function App() {
setDecryptionErrors([]);

const provider = new ethers.providers.Web3Provider(window.ethereum);
const porterUri = getPorterUri('lynx');
const decryptedMessage = await decrypt(
provider,
domains.DEV,
encryptedMessage,
getPorterUri(domains.DEV),
provider.getSigner(),
porterUri,
);

setDecryptedMessage(new TextDecoder().decode(decryptedMessage));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"exports:lint": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' exports:lint",
"fix": "pnpm format:fix && pnpm lint:fix && pnpm packages:sort",
"ci:lint": "run-p lint type-check package:check packages:lint exports:lint",
"check-examples": "pnpm run --parallel --aggregate-output --reporter append-only --filter './examples/**' check"
"check-examples": "pnpm run --parallel --aggregate-output --reporter append-only --filter './examples/**' --filter './demos/**' check"
},
"dependencies": {
"@nucypher/nucypher-core": "0.13.0-alpha.1"
Expand Down
Loading

0 comments on commit 9a4a1e4

Please sign in to comment.