Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalavedra committed Dec 17, 2024
1 parent fc86968 commit 8a459b6
Show file tree
Hide file tree
Showing 8 changed files with 7,111 additions and 15 deletions.
11 changes: 6 additions & 5 deletions ecosystem-sdk/sdk-sample/app/connect-with-rainbow/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ import { ConnectWallet } from './connect';
import { RainbowKitProvider } from "@rainbow-me/rainbowkit";
import "@rainbow-me/rainbowkit/styles.css";
import Link from 'next/link';
import { polygonAmoy } from 'wagmi/chains';
import { useEffect } from 'react';

const queryClient = new QueryClient();

export default function ConnectWithWagmi() {
ecosystemWalletInstance.getEthereumProvider({
chain: polygonAmoy,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
useEffect(() => {
ecosystemWalletInstance.getEthereumProvider({
policy: process.env.NEXT_PUBLIC_POLICY_ID,
});
}, []);

return (
<div className="min-h-screen bg-gradient-to-b from-blue-100 to-blue-200 flex flex-col items-center justify-center p-6">
Expand Down
12 changes: 7 additions & 5 deletions ecosystem-sdk/sdk-sample/app/connect-with-wagmi/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ import { ecosystemWalletInstance } from '../utils/ecosystemWallet';
import { config } from './config';
import { ConnectWallet } from './connect';
import Link from 'next/link';
import { polygonAmoy } from 'wagmi/chains';
import { useEffect } from 'react';


const queryClient = new QueryClient();

export default function ConnectWithWagmi() {
ecosystemWalletInstance.getEthereumProvider({
chain: polygonAmoy,
policyId: process.env.NEXT_PUBLIC_POLICY_ID,
});
useEffect(() => {
ecosystemWalletInstance.getEthereumProvider({
policy: process.env.NEXT_PUBLIC_POLICY_ID,
});
}, []);

return (
<div className="min-h-screen bg-gradient-to-b from-blue-100 to-blue-200 flex flex-col items-center justify-center p-6">
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-sdk/sdk-sample/app/utils/ecosystemWallet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EcosystemWallet from '@openfort/ecosystem-client-sdk-sample-app';
import EcosystemWallet from '@rapidfire/id';

export const ecosystemWalletInstance = new EcosystemWallet({
appChainIds: [80002],
Expand Down
4 changes: 3 additions & 1 deletion ecosystem-sdk/sdk-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@examples/wallets-connect-with-nextjs",
"version": "0.0.29",
"version": "0.0.30",
"dependencies": {
"@coinbase/wallet-sdk": "^4.2.4",
"@rainbow-me/rainbowkit": "^2.0.7",
"@rapidfire/id": "^0.0.29",
"@tanstack/react-query": "^5.51.11",
"connectkit": "^1.8.2",
"next": "14.2.10",
Expand All @@ -17,6 +18,7 @@
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"eslint": "^8",
"pino-pretty": "^10.3.1",
"eslint-config-next": "14.2.5",
"postcss": "^8",
"tailwindcss": "^3.4.1",
Expand Down
7,091 changes: 7,091 additions & 0 deletions ecosystem-sdk/sdk-sample/yarn.lock

Large diffs are not rendered by default.

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.29",
"version": "0.0.30",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
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.29",
"version": "0.0.30",
"main": "index.js",
"type": "commonjs",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion ecosystem-wallet/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecosystem-frontend",
"version": "0.0.29",
"version": "0.0.30",
"private": true,
"dependencies": {
"@openfort/ecosystem-js": "^0.0.11",
Expand Down

0 comments on commit 8a459b6

Please sign in to comment.