Skip to content

Commit

Permalink
Merge #14
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hm authored Aug 21, 2024
2 parents 9cac5c1 + 4328ad6 commit af682b3
Show file tree
Hide file tree
Showing 36 changed files with 521 additions and 484 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Complete examples are available at [examples/react](https://github.com/NillionNe
return {
endpoint: "https://testnet-nillion-rpc.lavenderfive.com",
userSeed: "unique-user-seed",
nodeSeed: "unique-node-seed",
signer,
};
}
Expand Down Expand Up @@ -151,8 +150,7 @@ const config = {
signer,
// webpack devserver adddres proxied to nilchain
endpoint: "http://localhost:8080/nilchain",
userSeed: "nillion-devnet",
nodeSeed: "nillion-devnet",
userSeed: "unique-user-seed",
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tsDoc from "eslint-plugin-tsdoc";

export default [
{
ignores: ["docs", "examples", "**/dist", "**/*.mjs"],
ignores: ["docs", "examples", "**/dist", "**/dist-test", "**/*.mjs"],
},
{
files: ["**/*.{ts,tsx}"],
Expand Down
10 changes: 5 additions & 5 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"dependencies": {
"next": "14.2.5",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"@nillion/client-core": "0.1.0-rc.11",
"@nillion/client-react-hooks": "0.1.0-rc.11",
"@nillion/client-vms": "0.1.0-rc.11"
},
"devDependencies": {
"@nillion/client-core": "0.1.0-rc.10",
"@nillion/client-react-hooks": "0.1.0-rc.10",
"@nillion/client-vms": "0.1.0-rc.10",
"@types/node": "^20",
"@types/node": "^22",
"@types/react": "^18",
"@types/react-dom": "^18",
"typescript": "^5"
Expand Down
6 changes: 2 additions & 4 deletions examples/nextjs/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ import { NillionClientProvider } from "@nillion/client-react-hooks";
import { NillionClient } from "@nillion/client-vms";
import type { AppProps } from "next/app";

export const client = NillionClient.create({
const client = NillionClient.create({
network: NamedNetwork.enum.Devnet,
overrides: async () => {
// first account when running `nillion-devnet` with default seed
const signer = await createSignerFromKey(
"9a975f567428d054f2bf3092812e6c42f901ce07d9711bc77ee2cd81101f42c5",
);
return {
endpoint: "http://localhost:8080/nilchain",
signer,
userSeed: "nillion-devnet",
nodeSeed: "nillion-devnet",
userSeed: "example@nillion",
};
},
});
Expand Down
18 changes: 9 additions & 9 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
"dev": "webpack serve --mode development"
},
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/joy": "^5.0.0-beta.48",
"@nillion/client-core": "0.1.0-rc.10",
"@nillion/client-react-hooks": "0.1.0-rc.10",
"@nillion/client-vms": "0.1.0-rc.10",
"@tanstack/react-query-devtools": "^5.51.16",
"@nillion/client-core": "0.1.0-rc.11",
"@nillion/client-react-hooks": "0.1.0-rc.11",
"@nillion/client-vms": "0.1.0-rc.11",
"@tanstack/react-query-devtools": "^5.52.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.25.1"
"react-router-dom": "^6.26.1"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.7",
"@types/react": "^18.3.3",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"html-webpack-plugin": "^5.6.0",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.92.0",
"typescript": "^5.5.4",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
}
Expand Down
3 changes: 1 addition & 2 deletions examples/react/src/nillion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const client = NillionClient.create({
return {
endpoint: "http://localhost:8080/nilchain",
signer,
userSeed: "nillion-devnet",
nodeSeed: "nillion-devnet",
userSeed: "example@nillion",
};
},
});
Loading

0 comments on commit af682b3

Please sign in to comment.