diff --git a/examples/email/package-lock.json b/examples/email/package-lock.json index 537ea608..66dc4554 100644 --- a/examples/email/package-lock.json +++ b/examples/email/package-lock.json @@ -11,6 +11,7 @@ "@privy-io/react-auth": "^1.91.0", "@privy-io/wagmi": "^0.2.12", "@pushprotocol/node-core": "^0.0.29", + "@pushprotocol/push-chain": "^0.1.7", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-popover": "^1.1.2", "@radix-ui/react-scroll-area": "^1.2.0", @@ -4929,6 +4930,65 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/@pushprotocol/push-chain": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@pushprotocol/push-chain/-/push-chain-0.1.7.tgz", + "integrity": "sha512-pWOdpZ5PTJGfsSsQ8lizvZn1YydrUwjbmgBim+fFNJSW0WETMA/PGvRWW9qHijdkxgt4AuPUaHEVHtysSRiYwA==", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0", + "@noble/hashes": "^1.5.0", + "@types/uuid": "10.0.0", + "axios": "^1.7.7", + "bech32": "^2.0.0", + "bs58": "^6.0.0", + "protobufjs-cli": "1.1.3", + "ts-proto": "2.2.4", + "tslib": "^2.3.0", + "tweetnacl": "^1.0.3", + "uuid": "^10.0.0", + "viem": "^2.21.5" + } + }, + "node_modules/@pushprotocol/push-chain/node_modules/@types/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", + "license": "MIT" + }, + "node_modules/@pushprotocol/push-chain/node_modules/base-x": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.0.tgz", + "integrity": "sha512-sMW3VGSX1QWVFA6l8U62MLKz29rRfpTlYdCqLdpLo1/Yd4zZwSbnUaDfciIAowAqvq7YFnWq9hrhdg1KYgc1lQ==", + "license": "MIT" + }, + "node_modules/@pushprotocol/push-chain/node_modules/bech32": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/bech32/-/bech32-2.0.0.tgz", + "integrity": "sha512-LcknSilhIGatDAsY1ak2I8VtGaHNhgMSYVxFrGLXv+xLHytaKZKcaUJJUE7qmBr7h33o5YQwP55pMI0xmkpJwg==", + "license": "MIT" + }, + "node_modules/@pushprotocol/push-chain/node_modules/bs58": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-6.0.0.tgz", + "integrity": "sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw==", + "license": "MIT", + "dependencies": { + "base-x": "^5.0.0" + } + }, + "node_modules/@pushprotocol/push-chain/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/@radix-ui/number": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.0.tgz", @@ -17784,6 +17844,110 @@ "dev": true, "license": "MIT" }, + "node_modules/ox": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.1.2.tgz", + "integrity": "sha512-ak/8K0Rtphg9vnRJlbOdaX9R7cmxD2MiSthjWGaQdMk3D7hrAlDoM+6Lxn7hN52Za3vrXfZ7enfke/5WjolDww==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "dependencies": { + "@adraffy/ens-normalize": "^1.10.1", + "@noble/curves": "^1.6.0", + "@noble/hashes": "^1.5.0", + "@scure/bip32": "^1.5.0", + "@scure/bip39": "^1.4.0", + "abitype": "^1.0.6", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/ox/node_modules/@noble/curves": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.7.0.tgz", + "integrity": "sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.6.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.0.tgz", + "integrity": "sha512-YUULf0Uk4/mAA89w+k3+yUYh6NrEvxZa5T6SY3wlMvE2chHkxFUUIDI8/XW1QSC357iA5pSnqt7XEhvFOqmDyQ==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/hashes": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.6.1.tgz", + "integrity": "sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/base": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.1.tgz", + "integrity": "sha512-DGmGtC8Tt63J5GfHgfl5CuAXh96VF/LD8K9Hr/Gv0J2lAoRGlPOMpqMpMbCTOoOJMZCk2Xt+DskdDyn6dEFdzQ==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip32": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.6.0.tgz", + "integrity": "sha512-82q1QfklrUUdXJzjuRU7iG7D7XiFx5PHYVS0+oeNKhyDLT7WPqs6pBcM2W5ZdwOwKCwoE1Vy1se+DHjcXwCYnA==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.7.0", + "@noble/hashes": "~1.6.0", + "@scure/base": "~1.2.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@scure/bip39": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.5.0.tgz", + "integrity": "sha512-Dop+ASYhnrwm9+HA/HwXg7j2ZqM6yk2fyLWb5znexjctFY3+E+eU8cIWI0Pql0Qx4hPZCijlGq4OL71g+Uz30A==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.6.0", + "@scure/base": "~1.2.1" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -21989,9 +22153,9 @@ } }, "node_modules/viem": { - "version": "2.21.29", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.29.tgz", - "integrity": "sha512-n9LoCJjmI1XsE33nl+M4p3Wy5hczv7YC682RpX4Qk9cw8s9HJU+hUi5eDcNDPBcAwIHGCPKsf8yFBEYnE2XYVg==", + "version": "2.21.53", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.53.tgz", + "integrity": "sha512-0pY8clBacAwzc59iV1vY4a6U4xvRlA5tAuhClJCKvqA6rXJzmNMMvxQ0EG79lkHr7WtBEruXz8nAmONXwnq4EQ==", "funding": [ { "type": "github", @@ -22000,13 +22164,13 @@ ], "license": "MIT", "dependencies": { - "@adraffy/ens-normalize": "1.11.0", "@noble/curves": "1.6.0", "@noble/hashes": "1.5.0", "@scure/bip32": "1.5.0", "@scure/bip39": "1.4.0", "abitype": "1.0.6", "isows": "1.0.6", + "ox": "0.1.2", "webauthn-p256": "0.0.10", "ws": "8.18.0" }, diff --git a/examples/email/package.json b/examples/email/package.json index c37ab26e..4382de62 100644 --- a/examples/email/package.json +++ b/examples/email/package.json @@ -15,6 +15,7 @@ "@privy-io/react-auth": "^1.91.0", "@privy-io/wagmi": "^0.2.12", "@pushprotocol/node-core": "^0.0.29", + "@pushprotocol/push-chain": "^0.1.7", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-popover": "^1.1.2", "@radix-ui/react-scroll-area": "^1.2.0", diff --git a/examples/email/src/components/new-email.tsx b/examples/email/src/components/new-email.tsx index bca83f0e..e1c23faf 100644 --- a/examples/email/src/components/new-email.tsx +++ b/examples/email/src/components/new-email.tsx @@ -5,7 +5,7 @@ import { PopoverTrigger, } from '@/components/ui/popover'; import PushMail from 'push-mail'; -import { ENV } from '@pushprotocol/node-core/src/lib/constants'; +import { ENV } from '@pushprotocol/push-chain/src/lib/constants'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Textarea } from '@/components/ui/textarea'; @@ -25,7 +25,7 @@ import { IEmail } from '@/types'; import { X } from 'lucide-react'; import { Badge } from '@/components/ui/badge'; import { trimAddress, formatTimestamp } from '@/lib/utils'; -import { PushNetwork } from '@pushprotocol/node-core'; +import { PushNetwork } from '@pushprotocol/push-chain'; interface FileData { filename: string; diff --git a/examples/email/src/context/app-context.tsx b/examples/email/src/context/app-context.tsx index ec702828..5b3f222c 100644 --- a/examples/email/src/context/app-context.tsx +++ b/examples/email/src/context/app-context.tsx @@ -1,6 +1,6 @@ 'use client'; import { IEmail } from '@/types'; -import { PushNetwork } from '@pushprotocol/node-core'; +import { PushNetwork } from '@pushprotocol/push-chain'; import React, { createContext, useContext } from 'react'; interface AppContextType { diff --git a/examples/email/src/providers/app-provider.tsx b/examples/email/src/providers/app-provider.tsx index d3b0212c..b111d7ab 100644 --- a/examples/email/src/providers/app-provider.tsx +++ b/examples/email/src/providers/app-provider.tsx @@ -2,8 +2,8 @@ import { AppContext } from '@/context/app-context'; import { IEmail } from '@/types'; import { usePrivy } from '@privy-io/react-auth'; -import { PushNetwork } from '@pushprotocol/node-core'; -import { ENV } from '@pushprotocol/node-core/src/lib/constants'; +import { PushNetwork } from '@pushprotocol/push-chain'; +import { ENV } from '@pushprotocol/push-chain/src/lib/constants'; import PushMail from 'push-mail'; import { ReactNode, useEffect, useState } from 'react';