Skip to content

Commit

Permalink
Merge pull request #32 from burrowHQ/add-near-mobile-wallet
Browse files Browse the repository at this point in the history
add near mobile service
  • Loading branch information
aidai524 authored Nov 27, 2023
2 parents 67291fb + 9b16984 commit 5873a13
Show file tree
Hide file tree
Showing 4 changed files with 1,379 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@near-wallet-selector/meteor-wallet": "^8.5.4",
"@near-wallet-selector/modal-ui": "^8.5.4",
"@near-wallet-selector/my-near-wallet": "^8.5.4",
"@near-wallet-selector/near-mobile-wallet": "^8.8.0",
"@near-wallet-selector/near-wallet": "^8.5.4",
"@near-wallet-selector/neth": "^7.9.1",
"@near-wallet-selector/nightly": "^8.5.4",
Expand Down
2 changes: 1 addition & 1 deletion utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getConfig = (env: string = defaultNetwork) => {
walletUrl: "https://wallet.near.org",
helperUrl: "https://helper.mainnet.near.org",
explorerUrl: "https://explorer.mainnet.near.org",
liquidationUrl: "https://api.data-service.ref.finance",
liquidationUrl: "https://api.data-service.burrow.finance",
recordsUrl: "https://indexer.ref.finance",
SPECIAL_REGISTRATION_TOKEN_IDS: [
"17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1",
Expand Down
7 changes: 7 additions & 0 deletions utils/wallet-selector-compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet";
import { setupMeteorWallet } from "@near-wallet-selector/meteor-wallet";
import { setupWalletConnect } from "@near-wallet-selector/wallet-connect";
import { setupNeth } from "@near-wallet-selector/neth";
import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet";
import { setupModal } from "@near-wallet-selector/modal-ui";
import type { WalletSelectorModal } from "@near-wallet-selector/modal-ui";
import { Near } from "near-api-js/lib/near";
Expand Down Expand Up @@ -83,6 +84,12 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
bundle: false,
gas: "300000000000000",
}),
setupNearMobileWallet({
dAppMetadata: {
logoUrl: "https://ref-finance-images.s3.amazonaws.com/images/burrowIcon.png",
name: "NEAR Wallet Selector",
},
}),
],
network: defaultNetwork,
debug: !!isTestnet,
Expand Down
Loading

0 comments on commit 5873a13

Please sign in to comment.