Skip to content

Commit

Permalink
bump sdk + init
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Feb 19, 2024
1 parent 69bed44 commit e49599f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions trade.renegade.fi/app/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"

import { PropsWithChildren } from "react"
import { PropsWithChildren, useEffect } from "react"
import { AppProvider } from "@/contexts/App/app-context"
import { ExchangeProvider } from "@/contexts/Exchange/exchange-context"
import { RenegadeProvider } from "@/contexts/Renegade/renegade-context"
Expand Down Expand Up @@ -102,8 +102,7 @@ const components = {
Text: {
variants: {
"status-green": {
fontSize: "0.85em",
fontWeight: "700",
fontSize: "0.85em", fontWeight: "700",
color: "green",
textShadow: "0 0 5px green",
},
Expand Down Expand Up @@ -196,6 +195,13 @@ export const renegade = new Renegade({
env.NEXT_PUBLIC_RENEGADE_RELAYER_HOSTNAME === "localhost",
verbose: false,
})
// eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
async function loadUtils() {
await renegade.init()
}
loadUtils()
}, [])

export function Providers({
children,
Expand Down
2 changes: 1 addition & 1 deletion trade.renegade.fi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@chakra-ui/react": "^2.8.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@renegade-fi/renegade-js": "0.4.8",
"@renegade-fi/renegade-js": "^0.4.10",
"@t3-oss/env-nextjs": "^0.6.0",
"connectkit": "^1.4.0",
"dayjs": "^1.11.10",
Expand Down
8 changes: 4 additions & 4 deletions trade.renegade.fi/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1721,10 +1721,10 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f"
integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==

"@renegade-fi/renegade-js@0.4.8":
version "0.4.8"
resolved "https://registry.yarnpkg.com/@renegade-fi/renegade-js/-/renegade-js-0.4.8.tgz#879dfbbac7f0c28d5ffebd0e11f183cce7fb885a"
integrity sha512-KIXpUm7TjPkCBRFu2mj9+DZeaXGfJB+rOE5LvXrWVPDmHP5cu5Q2wiBTXxLIpjEqMuLcA6S/bdnvgNJhmu9kVw==
"@renegade-fi/renegade-js@^0.4.10":
version "0.4.10"
resolved "https://registry.yarnpkg.com/@renegade-fi/renegade-js/-/renegade-js-0.4.10.tgz#180941edbae8dede3b31b4b9d9b916ad909d06e5"
integrity sha512-ON0q+SopM0Wj2TkNWh+asbbtEplGMaONUO3UU1pZPn0XS+vaGedwjZW1ir/2mogkmozvmVCxJgOYSmdlRyacIg==
dependencies:
"@noble/hashes" "^1.3.0"
axios "^1.3.5"
Expand Down

0 comments on commit e49599f

Please sign in to comment.