diff --git a/constant/index.tsx b/constant/index.tsx index 4007bd1..29bb816 100644 --- a/constant/index.tsx +++ b/constant/index.tsx @@ -1,4 +1,5 @@ export const rpc = "https://rpc.assetmantle.one/"; +export const restApi = "https://rest.assetmantle.one/"; export const chain = "assetmantle"; export const defaultChainDenom = "umntl"; export const defaultFeeAmount = "2000"; diff --git a/package.json b/package.json index 89ad4dd..3338d91 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@cosmos-kit/keplr-extension": "^2.3.3", "@cosmos-kit/leap": "^2.3.3", "@cosmos-kit/leap-extension": "^2.4.3", - "@cosmos-kit/leap-metamask-cosmos-snap": "^0.6.1", + "@cosmos-kit/leap-metamask-cosmos-snap": "^0.6.2", "@cosmos-kit/react": "^2.6.4", "@cosmos-kit/vectis": "^2.3.3", "@headlessui/react": "^1.7.17", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e51627f..8fc1420 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,8 +45,8 @@ dependencies: specifier: ^2.4.3 version: 2.4.3(@cosmjs/amino@0.32.2)(@cosmjs/cosmwasm-stargate@0.31.1)(@cosmjs/proto-signing@0.32.2)(@cosmjs/stargate@0.31.1)(cosmjs-types@0.9.0) '@cosmos-kit/leap-metamask-cosmos-snap': - specifier: ^0.6.1 - version: 0.6.1(@cosmjs/amino@0.32.2)(@cosmjs/proto-signing@0.32.2)(@vercel/kv@1.0.1)(cosmjs-types@0.9.0) + specifier: ^0.6.2 + version: 0.6.2(@cosmjs/amino@0.32.2)(@cosmjs/proto-signing@0.32.2)(@vercel/kv@1.0.1)(cosmjs-types@0.9.0) '@cosmos-kit/react': specifier: ^2.6.4 version: 2.6.4(@cosmjs/amino@0.32.2)(@cosmjs/cosmwasm-stargate@0.31.1)(@cosmjs/proto-signing@0.32.2)(@cosmjs/stargate@0.31.1)(@types/react@18.2.21)(cosmjs-types@0.9.0)(react-dom@18.2.0)(react@18.2.0) @@ -937,8 +937,8 @@ packages: - lokijs dev: false - /@cosmos-kit/leap-metamask-cosmos-snap@0.6.1(@cosmjs/amino@0.32.2)(@cosmjs/proto-signing@0.32.2)(@vercel/kv@1.0.1)(cosmjs-types@0.9.0): - resolution: {integrity: sha512-LPksTJtqPBZU6BufmYF2fMG5htFmDCZ0mJrq6yae7jEL9KWbWhrcE56jesdVlEDWBfwHY+/WqfcRRjUqKebHnw==} + /@cosmos-kit/leap-metamask-cosmos-snap@0.6.2(@cosmjs/amino@0.32.2)(@cosmjs/proto-signing@0.32.2)(@vercel/kv@1.0.1)(cosmjs-types@0.9.0): + resolution: {integrity: sha512-47Kq0ZrXNinbTfNH0i0GtxdfIDkq7iaixLQ5p9qc56CtiqBtT4bSrZoYqUl3nlM7iFKTtrb7FdCPkAVkWpYUew==} peerDependencies: '@cosmjs/amino': '>=0.32.2' '@cosmjs/proto-signing': '>=0.32.2' @@ -1905,6 +1905,7 @@ packages: dependencies: is-glob: 4.0.3 micromatch: 4.0.5 + napi-wasm: 1.1.0 dev: false bundledDependencies: - napi-wasm @@ -4998,6 +4999,10 @@ packages: hasBin: true dev: false + /napi-wasm@1.1.0: + resolution: {integrity: sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==} + dev: false + /natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: false diff --git a/ui_components/CosmosKitProvider.tsx b/ui_components/CosmosKitProvider.tsx index d872ca9..6f5f30f 100644 --- a/ui_components/CosmosKitProvider.tsx +++ b/ui_components/CosmosKitProvider.tsx @@ -1,5 +1,5 @@ "use client"; -import { chain as curChain, rpc } from "@/constant"; +import { chain as curChain, restApi, rpc } from "@/constant"; import asset from "@/constant/asset"; import chain from "@/constant/chain"; import Button from "@/ui_components/Button"; @@ -66,7 +66,6 @@ export default function CosmosKitProvider({