Skip to content

Commit

Permalink
use @[email protected] (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Bellamy <[email protected]>
  • Loading branch information
esteblock and paulbellamy authored Apr 3, 2023
1 parent 87e2bbe commit 8aa5cb5
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 58 deletions.
22 changes: 10 additions & 12 deletions components/ProviderExample.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React, {useState, useEffect} from 'react'
import {SorobanReactProvider,
getDefaultConnectors} from '@soroban-react/core';
import {ChainMetadata} from "@soroban-react/types";

import {chain} from '../wallet/provideWalletChains'
import React from 'react'
import {SorobanReactProvider} from '@soroban-react/core';
import {futurenet, sandbox, standalone} from '@soroban-react/chains';
import {freighter} from '@soroban-react/freighter';
import {ChainMetadata, Connector} from "@soroban-react/types";

const chains: ChainMetadata[] = [chain.sandbox, chain.standalone, chain.futurenet];
const {connectors} = getDefaultConnectors({
appName: "Example Stellar App",
chains})

const chains: ChainMetadata[] = [sandbox, standalone, futurenet];
const connectors: Connector[] = [freighter()]


export default function ProviderExample({children}:{children: React.ReactNode}) {
return (
<SorobanReactProvider
Expand All @@ -19,4 +17,4 @@ import {chain} from '../wallet/provideWalletChains'
{children}
</SorobanReactProvider>
)
}
}
103 changes: 61 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
},
"dependencies": {
"@radix-ui/react-dialog": "1.0.2",
"@soroban-react/contracts": "^3.7.1",
"@soroban-react/core": "^3.7.1",
"@soroban-react/freighter": "^3.2.1",
"@soroban-react/types": "^3.2.1",
"@soroban-react/contracts": "4.0.0",
"@soroban-react/core": "4.0.0",
"@soroban-react/freighter": "4.0.0",
"@soroban-react/types": "4.0.0",
"@soroban-react/chains": "4.0.0",
"@stellar/freighter-api": "^1.3.1",
"axios": "^0.27.2",
"bignumber.js": "^9.1.0",
Expand Down

0 comments on commit 8aa5cb5

Please sign in to comment.