Skip to content

Commit

Permalink
Bump @defichain/whale dependencies (#414)
Browse files Browse the repository at this point in the history
* Bump @defichain/whale dependencies

* Bump docker-compose.yml

* fixed endpoint changes

Co-authored-by: Fuxing Loh <[email protected]>
  • Loading branch information
defichain-bot and fuxingloh authored Aug 4, 2021
1 parent 123794a commit 221c084
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion app/components/OceanInterface/OceanInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function gotoExplorer (txid: string): Promise<void> {

async function broadcastTransaction (tx: CTransactionSegWit, client: WhaleApiClient, retries: number = 0): Promise<string> {
try {
return await client.transactions.send({ hex: tx.toHex() })
return await client.rawtx.send({ hex: tx.toHex() })
} catch (e) {
Logging.error(e)
if (retries < MAX_AUTO_RETRY) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function SendScreen ({ route, navigation }: Props): JSX.Element {
const hasPendingJob = useSelector((state: RootState) => hasTxQueued(state.ocean))

useEffect(() => {
client.transactions.estimateFee().then((f) => setFee(new BigNumber(f))).catch((e) => Logging.error(e))
client.fee.estimate().then((f) => setFee(new BigNumber(f))).catch((e) => Logging.error(e))
}, [])

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ services:
- "traefik.http.routers.playground.entrypoints=web"

defi-whale:
image: ghcr.io/defich/whale:0.8.2
image: ghcr.io/defich/whale:0.8.3
depends_on:
- defi-blockchain
ports:
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@defichain/jellyfish-wallet-encrypted": ">=0.34.3",
"@defichain/jellyfish-wallet-mnemonic": ">=0.34.3",
"@defichain/playground-api-client": ">=0.8.1",
"@defichain/whale-api-client": ">=0.8.2",
"@defichain/whale-api-wallet": ">=0.8.2",
"@defichain/whale-api-client": ">=0.8.3",
"@defichain/whale-api-wallet": ">=0.8.3",
"@expo-google-fonts/ibm-plex-sans": "^0.2.0",
"@expo/vector-icons": "^12.0.0",
"@expo/webpack-config": "~0.12.63",
Expand Down

0 comments on commit 221c084

Please sign in to comment.