Skip to content

Commit

Permalink
chore: update frontend wallet ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalavedra committed Oct 23, 2024
1 parent 3109f1a commit 7b74381
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const queryClient = new QueryClient();

export default function ConnectWithWagmi() {
ecosystemWalletInstance.getEthereumProvider({
// @ts-ignore

chain: bscTestnet,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
Expand Down
1 change: 0 additions & 1 deletion ecosystem-sdk/sdk-sample/app/connect-with-eip1193/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function ConnectWithEIP1193() {
const [loading, setLoadingState] = useState<boolean>(false);

const ecosystemWalletProvider = ecosystemWalletInstance.getEthereumProvider({
// @ts-ignore
chain: bscTestnet,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
Expand Down
1 change: 0 additions & 1 deletion ecosystem-sdk/sdk-sample/app/connect-with-etherjs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function ConnectWithEtherJS() {
const [loading, setLoadingState] = useState<boolean>(false);

const ecosystemWalletProvider = ecosystemWalletInstance.getEthereumProvider({
// @ts-ignore
chain: bscTestnet,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
Expand Down
1 change: 0 additions & 1 deletion ecosystem-sdk/sdk-sample/app/connect-with-rainbow/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const queryClient = new QueryClient();

export default function ConnectWithWagmi() {
ecosystemWalletInstance.getEthereumProvider({
// @ts-ignore
chain: bscTestnet,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
Expand Down
1 change: 0 additions & 1 deletion ecosystem-sdk/sdk-sample/app/connect-with-wagmi/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const queryClient = new QueryClient();

export default function ConnectWithWagmi() {
ecosystemWalletInstance.getEthereumProvider({
// @ts-ignore
chain: bscTestnet,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
Expand Down
6 changes: 6 additions & 0 deletions ecosystem-sdk/sdk-sample/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export default function Home() {
>
Connect with Rainbow
</Link>
<Link
href="/connect-with-connectkit"
className="block w-64 p-4 text-center bg-white text-blue-600 rounded-lg shadow-md hover:bg-blue-50 transition duration-300"
>
Connect with ConnectKit
</Link>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions ecosystem-sdk/sdk-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@examples/wallets-connect-with-nextjs",
"version": "0.0.14",
"version": "0.0.15",
"dependencies": {
"@rainbow-me/rainbowkit": "^2.0.7",
"@rapidfire/id": "^0.0.4",
"@rapidfire/id": "^0.0.14",
"@tanstack/react-query": "^5.51.11",
"connectkit": "^1.8.2",
"ethers": "^5.7.2",
Expand Down
48 changes: 26 additions & 22 deletions ecosystem-sdk/sdk-sample/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1040,28 +1040,28 @@
resolved "https://registry.yarnpkg.com/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz#3dc35ba0f1e66b403c00b39344f870298ebb1c8e"
integrity sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==

"@openfort/ecosystem-js@latest":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@openfort/ecosystem-js/-/ecosystem-js-0.0.2.tgz#4f8189348ba348400130f96b9d9870569cbb1f68"
integrity sha512-9cEUmQ5K+S/HcnyJjT8mQhkIUDUHndlJ4I/3nW9A2QVAeqK5L2tATQtpw0Fpaenh9pBPKH3e2ZPsyVBeZHEgjg==
"@openfort/ecosystem-js@^0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@openfort/ecosystem-js/-/ecosystem-js-0.0.4.tgz#65c4ee0312a79bab117919105f3cb3342fe41f84"
integrity sha512-OB7MW8yPY4ujRg0+G972YU/l9rRujpOP4Tw9Ggkxs1IArKk6b+rpYBQREFbqFA7Qyl79fnxOddAV0+VnG3r5pQ==
dependencies:
"@openfort/openfort-js" "0.8.8"
"@openfort/openfort-js" "0.8.11"
"@stdlib/number-float64-base-normalize" "0.0.8"
axios "^1.6.7"
clsx "^2.1.1"
dayjs "^1.11.11"
es-cookie "~1.3.2"
jwt-decode "^3.1.2"
lucide-react "^0.414.0"
oidc-client-ts "2.2.1"
oidc-client-ts "3.1.0"
styled-components "^6.1.13"
uuid "^8.3.2"
viem "^2.21.26"

"@openfort/[email protected].8":
version "0.8.8"
resolved "https://registry.yarnpkg.com/@openfort/openfort-js/-/openfort-js-0.8.8.tgz#660bf05f9e888e59b2460467f9a101b60aa26703"
integrity sha512-Km7Q/uRanMz6JzfU9t4eRd5PSZQnttYYbPKJk0exoBK3T3ejELtGrIms4Lddp1eLJy1sjoFnNpmm6gCNWp8+xA==
"@openfort/[email protected].11":
version "0.8.11"
resolved "https://registry.yarnpkg.com/@openfort/openfort-js/-/openfort-js-0.8.11.tgz#df117e4a9e852030ec83601cceb489c0c548269a"
integrity sha512-tF/5CUdHQrTmgyKsiu+2oUgaHISTuMRoeifnapIJrpSn1PJYXJQySsbcXKrjK2mOx82k5JajkekZHBsoKXwYDw==
dependencies:
"@ethersproject/abstract-signer" "^5.7.0"
"@ethersproject/bytes" "^5.7.0"
Expand Down Expand Up @@ -1203,12 +1203,12 @@
react-remove-scroll "2.6.0"
ua-parser-js "^1.0.37"

"@rapidfire/id@^0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@rapidfire/id/-/id-0.0.4.tgz#7cc8faa45c5aebac653d7db9de0bad491ad88891"
integrity sha512-zpmZMipn7NYM4LY1rK+gDs9NDZ6998umUYeGupGCdi5loLGCnCgg/0ZqL3zBg7zvtAu59Zd0+Rk9GTRD7z2qMw==
"@rapidfire/id@^0.0.14":
version "0.0.14"
resolved "https://registry.yarnpkg.com/@rapidfire/id/-/id-0.0.14.tgz#ed600002f70d2974093d1040e6c30bae069695e3"
integrity sha512-jFi7RCnTVIwx5zZl7Vv08AWKsEEzImEf45mhU0Bc8qjQ9h0fTaScoaGJReVaj89PA8c9uQB/G6TDGqEpaPMQXA==
dependencies:
"@openfort/ecosystem-js" latest
"@openfort/ecosystem-js" "^0.0.4"

"@rtsao/scc@^1.1.0":
version "1.1.0"
Expand Down Expand Up @@ -3326,7 +3326,7 @@ crypto-browserify@^3.12.0:
randombytes "^2.0.0"
randomfill "^1.0.3"

crypto-js@^4.1.1, crypto-js@^4.2.0:
crypto-js@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631"
integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
Expand Down Expand Up @@ -5099,6 +5099,11 @@ jwt-decode@^3.1.2:
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==

jwt-decode@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b"
integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==

keccak@^3.0.3:
version "3.0.4"
resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d"
Expand Down Expand Up @@ -5606,13 +5611,12 @@ ohash@^1.1.4:
resolved "https://registry.yarnpkg.com/ohash/-/ohash-1.1.4.tgz#ae8d83014ab81157d2c285abf7792e2995fadd72"
integrity sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==

oidc-client-ts@2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/oidc-client-ts/-/oidc-client-ts-2.2.1.tgz#aa397119db54952acd08efe04bac4eff9a9169db"
integrity sha512-g/W+DsUVeHZ8A7xUSTeK4bI6BNs9ROtMiiOOo+0M6IiTHxueJ757GD8e/8nPBL+k/o6bkfM5mWg4cZcSI8Iosw==
oidc-client-ts@3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/oidc-client-ts/-/oidc-client-ts-3.1.0.tgz#28d3254951a1c64cc9780042c61492a71b2240dd"
integrity sha512-IDopEXjiwjkmJLYZo6BTlvwOtnlSniWZkKZoXforC/oLZHC9wkIxd25Kwtmo5yKFMMVcsp3JY6bhcNJqdYk8+g==
dependencies:
crypto-js "^4.1.1"
jwt-decode "^3.1.2"
jwt-decode "^4.0.0"

on-exit-leak-free@^0.2.0:
version "0.2.0"
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-sdk/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rapidfire/id",
"version": "0.0.14",
"version": "0.0.15",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions ecosystem-wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Key features:
REACT_APP_APP_NAME=
REACT_APP_OPENFORT_PUBLIC_KEY=
REACT_APP_SHIELD_PUBLIC_KEY=
REACT_APP_BACKEND_URL=
REACT_APP_OPENFORT_ECOSYSTEM_ID=
```

#### Backend
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-wallet/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecosystem-backend",
"version": "0.0.14",
"version": "0.0.15",
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion ecosystem-wallet/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
REACT_APP_APP_NAME=
REACT_APP_OPENFORT_PUBLIC_KEY=
REACT_APP_SHIELD_PUBLIC_KEY=
REACT_APP_BACKEND_URL=
REACT_APP_BACKEND_URL=
REACT_APP_OPENFORT_ECOSYSTEM_ID=
4 changes: 2 additions & 2 deletions ecosystem-wallet/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "ecosystem-frontend",
"version": "0.0.14",
"version": "0.0.15",
"private": true,
"dependencies": {
"@openfort/ecosystem-js": "latest",
"@openfort/ecosystem-js": "0.0.4",
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
Expand Down
1 change: 1 addition & 0 deletions ecosystem-wallet/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function App() {
defaultChain={polygonAmoy}
onRedirectCallback={(appState?: AppState) => nav((appState && appState.returnTo) || window.location.pathname)}
publishableKey={process.env.REACT_APP_OPENFORT_PUBLIC_KEY!}
ecosystemId={process.env.REACT_APP_OPENFORT_ECOSYSTEM_ID!}
shieldConfig={{
shieldPublishableKey: process.env.REACT_APP_SHIELD_PUBLIC_KEY!,
getShieldSession: getShieldSession
Expand Down
38 changes: 21 additions & 17 deletions ecosystem-wallet/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1820,28 +1820,28 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@openfort/ecosystem-js@latest":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@openfort/ecosystem-js/-/ecosystem-js-0.0.2.tgz#4f8189348ba348400130f96b9d9870569cbb1f68"
integrity sha512-9cEUmQ5K+S/HcnyJjT8mQhkIUDUHndlJ4I/3nW9A2QVAeqK5L2tATQtpw0Fpaenh9pBPKH3e2ZPsyVBeZHEgjg==
"@openfort/ecosystem-js@0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@openfort/ecosystem-js/-/ecosystem-js-0.0.4.tgz#65c4ee0312a79bab117919105f3cb3342fe41f84"
integrity sha512-OB7MW8yPY4ujRg0+G972YU/l9rRujpOP4Tw9Ggkxs1IArKk6b+rpYBQREFbqFA7Qyl79fnxOddAV0+VnG3r5pQ==
dependencies:
"@openfort/openfort-js" "0.8.8"
"@openfort/openfort-js" "0.8.11"
"@stdlib/number-float64-base-normalize" "0.0.8"
axios "^1.6.7"
clsx "^2.1.1"
dayjs "^1.11.11"
es-cookie "~1.3.2"
jwt-decode "^3.1.2"
lucide-react "^0.414.0"
oidc-client-ts "2.2.1"
oidc-client-ts "3.1.0"
styled-components "^6.1.13"
uuid "^8.3.2"
viem "^2.21.26"

"@openfort/[email protected].8":
version "0.8.8"
resolved "https://registry.yarnpkg.com/@openfort/openfort-js/-/openfort-js-0.8.8.tgz#660bf05f9e888e59b2460467f9a101b60aa26703"
integrity sha512-Km7Q/uRanMz6JzfU9t4eRd5PSZQnttYYbPKJk0exoBK3T3ejELtGrIms4Lddp1eLJy1sjoFnNpmm6gCNWp8+xA==
"@openfort/[email protected].11":
version "0.8.11"
resolved "https://registry.yarnpkg.com/@openfort/openfort-js/-/openfort-js-0.8.11.tgz#df117e4a9e852030ec83601cceb489c0c548269a"
integrity sha512-tF/5CUdHQrTmgyKsiu+2oUgaHISTuMRoeifnapIJrpSn1PJYXJQySsbcXKrjK2mOx82k5JajkekZHBsoKXwYDw==
dependencies:
"@ethersproject/abstract-signer" "^5.7.0"
"@ethersproject/bytes" "^5.7.0"
Expand Down Expand Up @@ -4551,7 +4551,7 @@ crypto-browserify@^3.12.0:
randombytes "^2.0.0"
randomfill "^1.0.3"

crypto-js@^4.1.1, crypto-js@^4.2.0:
crypto-js@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631"
integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
Expand Down Expand Up @@ -7512,6 +7512,11 @@ jwt-decode@^3.1.2:
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==

jwt-decode@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b"
integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==

keyv@^4.5.3:
version "4.5.4"
resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"
Expand Down Expand Up @@ -8079,13 +8084,12 @@ obuf@^1.0.0, obuf@^1.1.2:
resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e"
integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==

oidc-client-ts@2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/oidc-client-ts/-/oidc-client-ts-2.2.1.tgz#aa397119db54952acd08efe04bac4eff9a9169db"
integrity sha512-g/W+DsUVeHZ8A7xUSTeK4bI6BNs9ROtMiiOOo+0M6IiTHxueJ757GD8e/8nPBL+k/o6bkfM5mWg4cZcSI8Iosw==
oidc-client-ts@3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/oidc-client-ts/-/oidc-client-ts-3.1.0.tgz#28d3254951a1c64cc9780042c61492a71b2240dd"
integrity sha512-IDopEXjiwjkmJLYZo6BTlvwOtnlSniWZkKZoXforC/oLZHC9wkIxd25Kwtmo5yKFMMVcsp3JY6bhcNJqdYk8+g==
dependencies:
crypto-js "^4.1.1"
jwt-decode "^3.1.2"
jwt-decode "^4.0.0"

[email protected]:
version "2.4.1"
Expand Down

0 comments on commit 7b74381

Please sign in to comment.