Skip to content

Commit 63a9d4e

Browse files
committed
feat(chains): upgrade from soroban-client to stellar-sdk
1 parent 9a76a7d commit 63a9d4e

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

packages/chains/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@soroban-react/types": "^7.4.0",
33-
"soroban-client": "1.0.0-beta.4"
33+
"stellar-sdk": "11.1.0"
3434
},
3535
"devDependencies": {
3636
"@testing-library/react-hooks": "^8.0.1",

packages/chains/src/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { WalletChain } from '@soroban-react/types'
22

3-
import * as SorobanClient from 'soroban-client'
3+
import Networks from 'stellar-sdk'
44

55
/**
66
* A `WalletChain` object representing the public blockchain network.
@@ -16,7 +16,7 @@ export const public_chain: WalletChain = {
1616
id: 'public',
1717
network: 'public',
1818
name: 'Public',
19-
networkPassphrase: SorobanClient.Networks.PUBLIC,
19+
networkPassphrase: Networks.PUBLIC,
2020
networkUrl: 'https://horizon.stellar.org',
2121
sorobanRpcUrl: 'https://horizon.stellar.org',
2222
}
@@ -42,7 +42,7 @@ export const testnet: WalletChain = {
4242
id: 'testnet',
4343
network: 'testnet',
4444
name: 'Testnet',
45-
networkPassphrase: SorobanClient.Networks.TESTNET,
45+
networkPassphrase: Networks.TESTNET,
4646
networkUrl: 'https://horizon-testnet.stellar.org',
4747
sorobanRpcUrl: 'https://soroban-testnet.stellar.org/',
4848
}

yarn.lock

+13
Original file line numberDiff line numberDiff line change
@@ -6693,6 +6693,19 @@ [email protected]:
66936693
optionalDependencies:
66946694
sodium-native "^4.0.1"
66956695

6696+
6697+
version "11.1.0"
6698+
resolved "https://registry.yarnpkg.com/stellar-sdk/-/stellar-sdk-11.1.0.tgz#04df0be3bfee2ffd1db068c92dc4f3ec27309103"
6699+
integrity sha512-fIdo77ogpU+ecHgs59pk9velpXd4F/ch0DzOI4QZw8zVZApc3oeNWP3+X6ui7BWpeRHAGsP2CHQzBLxm0JTIgg==
6700+
dependencies:
6701+
"@stellar/stellar-base" "10.0.1"
6702+
axios "^1.6.0"
6703+
bignumber.js "^9.1.2"
6704+
eventsource "^2.0.2"
6705+
randombytes "^2.1.0"
6706+
toml "^3.0.0"
6707+
urijs "^1.19.1"
6708+
66966709
string-length@^4.0.1:
66976710
version "4.0.2"
66986711
resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a"

0 commit comments

Comments
 (0)