Skip to content

Commit b1be43d

Browse files
authoredSep 17, 2021
Merge pull request exiled-apes#53 from jordansexton/update-wallet-adapter
Update wallet adapter + misc improvements
2 parents 1b83ef2 + f3de7a9 commit b1be43d

File tree

8 files changed

+180
-124
lines changed

8 files changed

+180
-124
lines changed
 

‎.env.example

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
REACT_APP_CANDY_MACHINE_CONFIG=__PLACEHOLDER__
2+
REACT_APP_CANDY_MACHINE_ID=__PLACEHOLDER__
3+
REACT_APP_TREASURY_ADDRESS=__PLACEHOLDER__
4+
REACT_APP_CANDY_START_DATE=__PLACEHOLDER__
5+
6+
REACT_APP_SOLANA_NETWORK=devnet
7+
REACT_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424
.env
25+
.env.*
26+
!.env.example

‎README.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,28 @@ yarn build
3737

3838
#### Environment Variables
3939

40-
To run the project, first create a `.env` file at the root directory and define the following variables:
40+
To run the project, first rename the `.env.example` file at the root directory to `.env` and update the following variables:
4141

4242
```
43-
REACT_APP_CANDY_MACHINE_CONFIG="redacted"
43+
REACT_APP_CANDY_MACHINE_CONFIG=__PLACEHOLDER__
4444
```
4545

4646
This is a Solana account address. You can get the value for this from the `.cache/temp` file. This file is created when you run the `metaplex upload` command in terminal.
4747

4848
```
49-
REACT_APP_CANDY_MACHINE_ID="redacted"
49+
REACT_APP_CANDY_MACHINE_ID=__PLACEHOLDER__
5050
```
5151

5252
Same as above; this is a Solana account address. You can get the value for this from the `./cache/temp` file. This file is created when you run the `metaplex upload` command in terminal.
5353

5454
```
55-
REACT_APP_CANDY_START_DATE=1630422000000
55+
REACT_APP_TREASURY_ADDRESS=__PLACEHOLDER__
56+
```
57+
58+
This the Solana address that receives the funds gathered during the minting process. More docs coming as we can test this.
59+
60+
```
61+
REACT_APP_CANDY_START_DATE=__PLACEHOLDER__
5662
```
5763

5864
This is a unix time stamp that configures when your mint will be open.
@@ -69,15 +75,6 @@ REACT_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com
6975

7076
This identifies the RPC server your web app will access the Solana network through.
7177

72-
```
73-
REACT_APP_TREASURY_ADDRESS="redacted"
74-
```
75-
76-
This the Solana address that receives the funds gathered during the minting process. More docs coming as we can test this.
77-
78-
79-
80-
8178
# Getting Started with Create React App
8279

8380
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

‎package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
"@project-serum/anchor": "^0.14.0",
1010
"@solana/spl-token": "^0.1.8",
1111
"@solana/wallet-adapter-base": "^0.5.2",
12-
"@solana/wallet-adapter-material-ui": "^0.8.3",
13-
"@solana/wallet-adapter-react": "^0.9.1",
14-
"@solana/wallet-adapter-react-ui": "^0.1.0",
15-
"@solana/wallet-adapter-wallets": "^0.7.5",
16-
"@solana/web3.js": "^1.24.1",
12+
"@solana/wallet-adapter-material-ui": "^0.11.0",
13+
"@solana/wallet-adapter-react": "^0.11.0",
14+
"@solana/wallet-adapter-wallets": "^0.9.0",
15+
"@solana/web3.js": "^1.27.0",
1716
"@testing-library/jest-dom": "^5.11.4",
1817
"@testing-library/react": "^11.1.0",
1918
"@testing-library/user-event": "^12.1.10",

‎src/App.tsx

+51-15
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import { clusterApiUrl } from "@solana/web3.js";
88
import { WalletAdapterNetwork } from "@solana/wallet-adapter-base";
99
import {
1010
getPhantomWallet,
11+
getSlopeWallet,
1112
getSolflareWallet,
1213
getSolletWallet,
14+
getSolletExtensionWallet,
1315
} from "@solana/wallet-adapter-wallets";
1416

1517
import {
@@ -18,6 +20,7 @@ import {
1820
} from "@solana/wallet-adapter-react";
1921

2022
import { WalletDialogProvider } from "@solana/wallet-adapter-material-ui";
23+
import { createTheme, ThemeProvider } from "@material-ui/core";
2124

2225
const treasury = new anchor.web3.PublicKey(
2326
process.env.REACT_APP_TREASURY_ADDRESS!
@@ -40,29 +43,62 @@ const startDateSeed = parseInt(process.env.REACT_APP_CANDY_START_DATE!, 10);
4043

4144
const txTimeout = 30000; // milliseconds (confirm this works for your project)
4245

46+
const theme = createTheme({
47+
palette: {
48+
type: 'dark',
49+
},
50+
overrides: {
51+
MuiButtonBase: {
52+
root: {
53+
justifyContent: 'flex-start',
54+
},
55+
},
56+
MuiButton: {
57+
root: {
58+
textTransform: undefined,
59+
padding: '12px 16px',
60+
},
61+
startIcon: {
62+
marginRight: 8,
63+
},
64+
endIcon: {
65+
marginLeft: 8,
66+
},
67+
},
68+
},
69+
});
70+
4371
const App = () => {
4472
const endpoint = useMemo(() => clusterApiUrl(network), []);
4573

4674
const wallets = useMemo(
47-
() => [getPhantomWallet(), getSolflareWallet(), getSolletWallet()],
75+
() => [
76+
getPhantomWallet(),
77+
getSlopeWallet(),
78+
getSolflareWallet(),
79+
getSolletWallet({ network }),
80+
getSolletExtensionWallet({ network })
81+
],
4882
[]
4983
);
5084

5185
return (
52-
<ConnectionProvider endpoint={endpoint}>
53-
<WalletProvider wallets={wallets} autoConnect>
54-
<WalletDialogProvider>
55-
<Home
56-
candyMachineId={candyMachineId}
57-
config={config}
58-
connection={connection}
59-
startDate={startDateSeed}
60-
treasury={treasury}
61-
txTimeout={txTimeout}
62-
/>
63-
</WalletDialogProvider>
64-
</WalletProvider>
65-
</ConnectionProvider>
86+
<ThemeProvider theme={theme}>
87+
<ConnectionProvider endpoint={endpoint}>
88+
<WalletProvider wallets={wallets} autoConnect>
89+
<WalletDialogProvider>
90+
<Home
91+
candyMachineId={candyMachineId}
92+
config={config}
93+
connection={connection}
94+
startDate={startDateSeed}
95+
treasury={treasury}
96+
txTimeout={txTimeout}
97+
/>
98+
</WalletDialogProvider>
99+
</WalletProvider>
100+
</ConnectionProvider>
101+
</ThemeProvider>
66102
);
67103
};
68104

‎src/Home.tsx

+12-25
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as anchor from "@project-serum/anchor";
88

99
import { LAMPORTS_PER_SOL } from "@solana/web3.js";
1010

11-
import { useWallet } from "@solana/wallet-adapter-react";
11+
import { useAnchorWallet } from "@solana/wallet-adapter-react";
1212
import { WalletDialogButton } from "@solana/wallet-adapter-material-ui";
1313

1414
import {
@@ -50,13 +50,13 @@ const Home = (props: HomeProps) => {
5050

5151
const [startDate, setStartDate] = useState(new Date(props.startDate));
5252

53-
const wallet = useWallet();
53+
const wallet = useAnchorWallet();
5454
const [candyMachine, setCandyMachine] = useState<CandyMachine>();
5555

5656
const onMint = async () => {
5757
try {
5858
setIsMinting(true);
59-
if (wallet.connected && candyMachine?.program && wallet.publicKey) {
59+
if (wallet && candyMachine?.program) {
6060
const mintTxId = await mintOneToken(
6161
candyMachine,
6262
props.config,
@@ -111,8 +111,8 @@ const Home = (props: HomeProps) => {
111111
severity: "error",
112112
});
113113
} finally {
114-
if (wallet?.publicKey) {
115-
const balance = await props.connection.getBalance(wallet?.publicKey);
114+
if (wallet) {
115+
const balance = await props.connection.getBalance(wallet.publicKey);
116116
setBalance(balance / LAMPORTS_PER_SOL);
117117
}
118118
setIsMinting(false);
@@ -121,7 +121,7 @@ const Home = (props: HomeProps) => {
121121

122122
useEffect(() => {
123123
(async () => {
124-
if (wallet?.publicKey) {
124+
if (wallet) {
125125
const balance = await props.connection.getBalance(wallet.publicKey);
126126
setBalance(balance / LAMPORTS_PER_SOL);
127127
}
@@ -130,24 +130,11 @@ const Home = (props: HomeProps) => {
130130

131131
useEffect(() => {
132132
(async () => {
133-
if (
134-
!wallet ||
135-
!wallet.publicKey ||
136-
!wallet.signAllTransactions ||
137-
!wallet.signTransaction
138-
) {
139-
return;
140-
}
141-
142-
const anchorWallet = {
143-
publicKey: wallet.publicKey,
144-
signAllTransactions: wallet.signAllTransactions,
145-
signTransaction: wallet.signTransaction,
146-
} as anchor.Wallet;
133+
if (!wallet) return;
147134

148135
const { candyMachine, goLiveDate, itemsRemaining } =
149136
await getCandyMachineState(
150-
anchorWallet,
137+
wallet as anchor.Wallet,
151138
props.candyMachineId,
152139
props.connection
153140
);
@@ -160,16 +147,16 @@ const Home = (props: HomeProps) => {
160147

161148
return (
162149
<main>
163-
{wallet.connected && (
164-
<p>Address: {shortenAddress(wallet.publicKey?.toBase58() || "")}</p>
150+
{wallet && (
151+
<p>Address: {shortenAddress(wallet.publicKey.toBase58() || "")}</p>
165152
)}
166153

167-
{wallet.connected && (
154+
{wallet && (
168155
<p>Balance: {(balance || 0).toLocaleString()} SOL</p>
169156
)}
170157

171158
<MintContainer>
172-
{!wallet.connected ? (
159+
{!wallet ? (
173160
<ConnectButton>Connect Wallet</ConnectButton>
174161
) : (
175162
<MintButton

‎src/index.css

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ body {
55
sans-serif;
66
-webkit-font-smoothing: antialiased;
77
-moz-osx-font-smoothing: grayscale;
8+
background-color: #303030;
9+
color: #FFFFFF;
810
}
911

1012
code {

‎yarn.lock

+92-66
Original file line numberDiff line numberDiff line change
@@ -1874,10 +1874,10 @@
18741874
"@ledgerhq/hw-transport-webhid" "^6.2.0"
18751875
"@types/w3c-web-hid" "^1.0.2"
18761876

1877-
"@solana/wallet-adapter-material-ui@^0.8.3":
1878-
version "0.8.3"
1879-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-material-ui/-/wallet-adapter-material-ui-0.8.3.tgz#33d41533ac423289e60b9f3792f4f0fe74d6b7ee"
1880-
integrity sha512-4XLRGWlA1y6954h3EJOWevHDSzRhXMnTqPNBB9VSOvG7ElKH5+cqgJdMiovpUUmadL8Aju2otIAVuKodGcvxUw==
1877+
"@solana/wallet-adapter-material-ui@^0.11.0":
1878+
version "0.11.0"
1879+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-material-ui/-/wallet-adapter-material-ui-0.11.0.tgz#ff43ee1d29d8653807f57e0dd3af0e42e1617a02"
1880+
integrity sha512-FXrpk2iWl+GaPfI4uRGO8iZ0PSU1m+WtbKpwyJr+r7AndfWmdvgqCCIwukCDccPA/IVh7+CL5r7ioh1wITKTbw==
18811881
dependencies:
18821882
"@types/react" "^17.0.16"
18831883

@@ -1886,42 +1886,40 @@
18861886
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-mathwallet/-/wallet-adapter-mathwallet-0.5.2.tgz#22e31802ff4d02ecb002675da1e331851a922280"
18871887
integrity sha512-TRxE2mBB3C48NO/lutU5ocSin1WpVqNlSy6im/+UorP5zm8+4HAINBF38rDiGSTl7xSTER6pszZtvVBNXMqG2A==
18881888

1889-
"@solana/wallet-adapter-phantom@^0.5.2":
1890-
version "0.5.2"
1891-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-phantom/-/wallet-adapter-phantom-0.5.2.tgz#8371b00807e83b385ba6ff2d3964e38f1161f7af"
1892-
integrity sha512-60y+75W1h1FQnQfuYvIgM8kIUqvjRVFRmW5plYWv9r+i1DZ8sr/3shkA03Wyj0YLA3YjBQYEaOP73Yf/N/4H1w==
1889+
"@solana/wallet-adapter-phantom@^0.5.3":
1890+
version "0.5.3"
1891+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-phantom/-/wallet-adapter-phantom-0.5.3.tgz#193cd7cf03ab131dd15497468dac8e483dec5285"
1892+
integrity sha512-DQLBTdu10oXu9HFtzI0CXPPeqUnLEh+UQpgZyAhF6ZqHDofUmwGpLvGcuGXrRbYPEkGpd8tjA4eHNtejncUhvA==
18931893

1894-
"@solana/wallet-adapter-react-ui@^0.1.0":
1895-
version "0.1.0"
1896-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-react-ui/-/wallet-adapter-react-ui-0.1.0.tgz#c53e35b05c6d802e6cdb6407ace64f8f85783639"
1897-
integrity sha512-zXLiQ9yLoimfYRiJCNZnPoHnRz3MYx+Mz1LZAIkll0V+ODazCUq6WJ2wUVua9BBjFJDYW0t6eZSW98CrXmR/uA==
1894+
"@solana/wallet-adapter-react@^0.11.0":
1895+
version "0.11.0"
1896+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-react/-/wallet-adapter-react-0.11.0.tgz#b5bf5a578c2e511cefe8d914d9200f4834815662"
1897+
integrity sha512-rJl+EPB2teAbxhuM0NbnpUEOaRc9rb6Kq65CQtNMGZBI3VhKb6Np8zus4jRdbO0R+sUKad75mmEPfyhWUQTT0A==
18981898
dependencies:
18991899
"@types/react" "^17.0.16"
19001900

1901-
"@solana/wallet-adapter-react@^0.9.1":
1902-
version "0.9.1"
1903-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-react/-/wallet-adapter-react-0.9.1.tgz#1407e47a40739997d7ee7eeeb0de7e3eea42e0ea"
1904-
integrity sha512-TDBjFPYPy1LNoBSrYSJUHjRKOoJ8Pn4KFQgOXDkd9HPPT3JdKhTj2fhmzZaIcaOeT6y1ke361MWF3Jul4ggZMg==
1905-
dependencies:
1906-
"@types/react" "^17.0.16"
1901+
"@solana/wallet-adapter-safepal@^0.1.0":
1902+
version "0.1.0"
1903+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-safepal/-/wallet-adapter-safepal-0.1.0.tgz#02c26f687040445214616a9dcbc612641e14edc9"
1904+
integrity sha512-QWdSk0PBXDaXxkj+/Hq9Og51cpOE+WkNG0acO0SeYMxobd8Ls092OFWXwipy7VPrrToJI2sBBVNFtoLr0kEc/g==
19071905

1908-
"@solana/wallet-adapter-slope@^0.1.1":
1909-
version "0.1.1"
1910-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-slope/-/wallet-adapter-slope-0.1.1.tgz#b2846ed0015eaf0179ae1b5bb979077004b1f9e1"
1911-
integrity sha512-GdiIKSJs8DxgDz8oLvyR/j/tKApw4TxPGsA9fAoHggzUU5eCOyoueo7dYIAXWjkO7teo/Ta/qjMjxLUiS1mCrw==
1906+
"@solana/wallet-adapter-slope@^0.1.2":
1907+
version "0.1.2"
1908+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-slope/-/wallet-adapter-slope-0.1.2.tgz#ea540bf981c268ad64f6dae589aaf1fe4b519ac6"
1909+
integrity sha512-vccQ6GyHw/7mCZlfOb6KXU+ncvtyzraAflDvaFk1BReiTKXB8TYmucRiHD1i+Cf4CMHaKOghBLqDV4IEkFquOw==
19121910
dependencies:
19131911
"@types/bs58" "^4.0.1"
19141912
bs58 "^4.0.1"
19151913

1916-
"@solana/wallet-adapter-solflare@^0.2.2":
1917-
version "0.2.2"
1918-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-solflare/-/wallet-adapter-solflare-0.2.2.tgz#8fb84d4bb28aaf4f5ebb994812530441a7f7a594"
1919-
integrity sha512-jBnMqlKhViE/l26w4IcHNvd+T40mnxzax2OfUpAloyVb0EtppDmlL8fvpC8557czT7dmDnW53j4T99e1L2SOhQ==
1914+
"@solana/wallet-adapter-solflare@^0.2.3":
1915+
version "0.2.3"
1916+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-solflare/-/wallet-adapter-solflare-0.2.3.tgz#f5ac70d43a649bb30f23646c1372cab212d9b078"
1917+
integrity sha512-1yqJ4uHaNfSnW4QlsBLe/zrmh1Sgn7ZoZ3wXcgYfwVXo/yi7OpsTnzpmntOXGZck4jlPks5jf6f1kO+CF3qU9w==
19201918

1921-
"@solana/wallet-adapter-sollet@^0.5.2":
1922-
version "0.5.2"
1923-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-sollet/-/wallet-adapter-sollet-0.5.2.tgz#2575abaf90380db620f3addcf2eda7d1123fe3a7"
1924-
integrity sha512-L53oUrrsvuoi/9PEH3BlI/xrohN0dK3tlPRD0avs5lMSKNqzD62eTk0RS4xJ9Tr+x0OIWiWbz2qnTOPp1gRz+Q==
1919+
"@solana/wallet-adapter-sollet@^0.6.0":
1920+
version "0.6.0"
1921+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-sollet/-/wallet-adapter-sollet-0.6.0.tgz#66f79f59c99cb645545a25da3be0036323a0f0cb"
1922+
integrity sha512-AxGtnSrK6R2Bwta+jv+LlDKP9Lou6uvLGJfgL1CiOme6fmwJuC4Gixak6s5JQNMibWnFn2OTN2e5U0VFLnh8Sw==
19251923
dependencies:
19261924
"@project-serum/sol-wallet-adapter" "^0.2.5"
19271925

@@ -1930,31 +1928,32 @@
19301928
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-solong/-/wallet-adapter-solong-0.5.2.tgz#eb0d5074959c41cf2e23c0a2d4c326d3179b744e"
19311929
integrity sha512-eGim0ExJUZtpHnUSRMGPnGDSVKBudRGpnHSAwraHG9zvunJ/UGBmDT6trP/3pIuil13bMnjNObklZnDBa18yrA==
19321930

1933-
"@solana/wallet-adapter-torus@^0.6.2":
1934-
version "0.6.2"
1935-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-torus/-/wallet-adapter-torus-0.6.2.tgz#50026864305819b6811965b7091614aefc654cdc"
1936-
integrity sha512-V0U8D9mxpWpjcVn/92zGVrsXtyQOqFU73Ltp7CngA00SDPGFBrNKdd33kcn7zoX8Qp2PYdNCsULJk4NobjW6dA==
1931+
"@solana/wallet-adapter-torus@^0.6.3":
1932+
version "0.6.3"
1933+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-torus/-/wallet-adapter-torus-0.6.3.tgz#9abd070013156fa4a39e84134115812ebee31c3c"
1934+
integrity sha512-trGzbYhmHvMz/46JwUftIbz711K6v91gDFutSSLgXRvYfmFqWxbivAjsjBEDq+tt5IBQDHgJ87B37SQ6ppWwdw==
19371935
dependencies:
1938-
"@toruslabs/openlogin" "^0.10.0"
1939-
"@toruslabs/openlogin-ed25519" "^0.10.0"
1936+
"@toruslabs/openlogin" "^0.10.1"
1937+
"@toruslabs/openlogin-ed25519" "^0.10.1"
19401938
"@types/keccak" "^3.0.1"
19411939

1942-
"@solana/wallet-adapter-wallets@^0.7.5":
1943-
version "0.7.5"
1944-
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-wallets/-/wallet-adapter-wallets-0.7.5.tgz#b471fb0f8544995120c66a263c326f64fb42cef2"
1945-
integrity sha512-Cm74JjBRDhMFxzcPwPjWI1kboYwKqHKTZrWax/duYErk55nFzOn303kXiPS+YAiEsO8yEShACTA4kZLaeAAcrA==
1940+
"@solana/wallet-adapter-wallets@^0.9.0":
1941+
version "0.9.0"
1942+
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-wallets/-/wallet-adapter-wallets-0.9.0.tgz#7e44978808dc0deebf288bcf71e35bd52b48b4ba"
1943+
integrity sha512-Fn3GCX6ZZl+QBwtzJWWQkBDg0T2e42vMKRx4UKAh1uC6qHYWrojwWNxWz+yhENNOSFbMC0pQZubHQuXcA/uRcQ==
19461944
dependencies:
19471945
"@solana/wallet-adapter-bitpie" "^0.1.2"
19481946
"@solana/wallet-adapter-blocto" "^0.1.1"
19491947
"@solana/wallet-adapter-coin98" "^0.1.2"
19501948
"@solana/wallet-adapter-ledger" "^0.5.2"
19511949
"@solana/wallet-adapter-mathwallet" "^0.5.2"
1952-
"@solana/wallet-adapter-phantom" "^0.5.2"
1953-
"@solana/wallet-adapter-slope" "^0.1.1"
1954-
"@solana/wallet-adapter-solflare" "^0.2.2"
1955-
"@solana/wallet-adapter-sollet" "^0.5.2"
1950+
"@solana/wallet-adapter-phantom" "^0.5.3"
1951+
"@solana/wallet-adapter-safepal" "^0.1.0"
1952+
"@solana/wallet-adapter-slope" "^0.1.2"
1953+
"@solana/wallet-adapter-solflare" "^0.2.3"
1954+
"@solana/wallet-adapter-sollet" "^0.6.0"
19561955
"@solana/wallet-adapter-solong" "^0.5.2"
1957-
"@solana/wallet-adapter-torus" "^0.6.2"
1956+
"@solana/wallet-adapter-torus" "^0.6.3"
19581957

19591958
"@solana/web3.js@^1.17.0", "@solana/web3.js@^1.21.0":
19601959
version "1.24.2"
@@ -1976,7 +1975,7 @@
19761975
superstruct "^0.14.2"
19771976
tweetnacl "^1.0.0"
19781977

1979-
"@solana/web3.js@^1.22.0", "@solana/web3.js@^1.24.1":
1978+
"@solana/web3.js@^1.22.0":
19801979
version "1.24.1"
19811980
resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.24.1.tgz#1fb29f344454669183206f452ab3b8792567cade"
19821981
integrity sha512-XImMWAvjcXteMQwe1FFjoe6u72xmcu+UYobPIxLEMX29XXWVTalyYRKBXvcOXwz6DliTYnFXmncNEwUDEFFHGg==
@@ -1996,6 +1995,26 @@
19961995
superstruct "^0.14.2"
19971996
tweetnacl "^1.0.0"
19981997

1998+
"@solana/web3.js@^1.27.0":
1999+
version "1.27.0"
2000+
resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.27.0.tgz#e8db617455a03e6cfc087fa692cdb03e722b71aa"
2001+
integrity sha512-1vz503S39CgVwT3b8Y8HhDl4u7NpyoG/UtJKwlPZCYx+11q/qqcfpdbHXNSq2cu7FQma3MHa5wHILd8k1Vz2wQ==
2002+
dependencies:
2003+
"@babel/runtime" "^7.12.5"
2004+
"@solana/buffer-layout" "^3.0.0"
2005+
bn.js "^5.0.0"
2006+
borsh "^0.4.0"
2007+
bs58 "^4.0.1"
2008+
buffer "6.0.1"
2009+
cross-fetch "^3.1.4"
2010+
crypto-hash "^1.2.2"
2011+
jayson "^3.4.4"
2012+
js-sha3 "^0.8.0"
2013+
rpc-websockets "^7.4.2"
2014+
secp256k1 "^4.0.2"
2015+
superstruct "^0.14.2"
2016+
tweetnacl "^1.0.0"
2017+
19992018
"@surma/rollup-plugin-off-main-thread@^1.1.1":
20002019
version "1.4.2"
20012020
resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-1.4.2.tgz#e6786b6af5799f82f7ab3a82e53f6182d2b91a58"
@@ -2170,42 +2189,42 @@
21702189
dependencies:
21712190
deepmerge "^4.2.2"
21722191

2173-
"@toruslabs/openlogin-ed25519@^0.10.0":
2174-
version "0.10.0"
2175-
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-ed25519/-/openlogin-ed25519-0.10.0.tgz#ea7ba8b13b7cc3c04dc58235a2938487c6c38c77"
2176-
integrity sha512-EU5p83/kpiINDN5veZNHsMl2abtoCXq90Mk0pyMPchjh/UeT4KUVs1iGwzx61iYjF54p4QtadbZvZnb0pfbLhA==
2192+
"@toruslabs/openlogin-ed25519@^0.10.1":
2193+
version "0.10.2"
2194+
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-ed25519/-/openlogin-ed25519-0.10.2.tgz#bcda4fff62344b6f55e4cd20ded44cab5a2d2e18"
2195+
integrity sha512-sgYTOgvAVd0e6WMpWi9p6YlsSroOfg1eLCa1DaNOj3Xy0WWs2mDxPwoNwzX/2WzJosoy/23lT3KOwJgUBhwpRA==
21772196
dependencies:
21782197
"@toruslabs/tweetnacl-js" "^1.0.3"
21792198

2180-
"@toruslabs/openlogin-jrpc@^0.10.0":
2181-
version "0.10.0"
2182-
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-0.10.0.tgz#cad29a069aa3407286f6a4d44a32f44744112ac0"
2183-
integrity sha512-0QxXEpdSaMuPtgzMqWona89HSuOlnwazeI2FJ6TnYsSNS9yVV7HukRbBkk1SNqi816O7FKF5vRGnx6btWATGxg==
2199+
"@toruslabs/openlogin-jrpc@^0.10.2":
2200+
version "0.10.2"
2201+
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-jrpc/-/openlogin-jrpc-0.10.2.tgz#64ed0f8dce16c74a0409c32d4a14cf28626d37da"
2202+
integrity sha512-ZlP56CeQ/Ii8ubg+EbL0If7QwV4JLHzrrd4+enqG47PRcFR7clHEmmHM54BTyrJKbOygDsU75RvkCmMkSIs8Pw==
21842203
dependencies:
2185-
"@toruslabs/openlogin-utils" "^0.10.0"
2204+
"@toruslabs/openlogin-utils" "^0.10.2"
21862205
end-of-stream "^1.4.4"
21872206
fast-safe-stringify "^2.0.8"
21882207
once "^1.4.0"
21892208
pump "^3.0.0"
21902209

2191-
"@toruslabs/openlogin-utils@^0.10.0":
2192-
version "0.10.0"
2193-
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-utils/-/openlogin-utils-0.10.0.tgz#6dad62d3805495b3974410998175584479179c62"
2194-
integrity sha512-s1iQ21f65s8KpC39KrFHdMEmqCYjHTyG9BA8x0DS9B94DhV9YZz7w66bjtNSaK+xebTNHADUs2qatX79UWmgcQ==
2210+
"@toruslabs/openlogin-utils@^0.10.2":
2211+
version "0.10.2"
2212+
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin-utils/-/openlogin-utils-0.10.2.tgz#0e9cea953955cb0f48db047642d6624f64da7acc"
2213+
integrity sha512-PUWn7RHfZm0v87lE9KniTrfJ9oAsCHywnMr8wOwiBZGvH84+7R389hh7jGOwnbTmqntFixD5YzlWQICzDfFrCA==
21952214
dependencies:
21962215
base64url "^3.0.1"
21972216
keccak "^3.0.2"
21982217
randombytes "^2.1.0"
21992218

2200-
"@toruslabs/openlogin@^0.10.0":
2201-
version "0.10.0"
2202-
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin/-/openlogin-0.10.0.tgz#107670c75740316ddd52457690f93db18c4671fb"
2203-
integrity sha512-kpE16348mif8G5bfZKlOc5MGxylzoTRLhtaVaygUNvEs8nZxTnz91tkRo/p6bkFzo6DywHOw+wGc6WlW4MuDoQ==
2219+
"@toruslabs/openlogin@^0.10.1":
2220+
version "0.10.2"
2221+
resolved "https://registry.yarnpkg.com/@toruslabs/openlogin/-/openlogin-0.10.2.tgz#aeaf6031d6fc2f902721a88bbfabe28914926889"
2222+
integrity sha512-4nr7nY0JCGBXeFJ4g42P/GtjS5Qw9tr5qIKKdOd3BEC/DtycIMjc7CRCnpGim/PAZo22qoO+SNSBwd1hlU+zag==
22042223
dependencies:
22052224
"@toruslabs/eccrypto" "^1.1.7"
22062225
"@toruslabs/http-helpers" "^1.4.0"
2207-
"@toruslabs/openlogin-jrpc" "^0.10.0"
2208-
"@toruslabs/openlogin-utils" "^0.10.0"
2226+
"@toruslabs/openlogin-jrpc" "^0.10.2"
2227+
"@toruslabs/openlogin-utils" "^0.10.2"
22092228
lodash.merge "^4.6.2"
22102229
pump "^3.0.0"
22112230

@@ -4401,6 +4420,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7:
44014420
safe-buffer "^5.0.1"
44024421
sha.js "^2.4.8"
44034422

4423+
cross-fetch@^3.1.4:
4424+
version "3.1.4"
4425+
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.4.tgz#9723f3a3a247bf8b89039f3a380a9244e8fa2f39"
4426+
integrity sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==
4427+
dependencies:
4428+
node-fetch "2.6.1"
4429+
44044430
cross-spawn@7.0.3, cross-spawn@^7.0.0, cross-spawn@^7.0.2:
44054431
version "7.0.3"
44064432
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
@@ -8472,7 +8498,7 @@ node-addon-api@^2.0.0:
84728498
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32"
84738499
integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==
84748500

8475-
node-fetch@^2.6.1:
8501+
node-fetch@2.6.1, node-fetch@^2.6.1:
84768502
version "2.6.1"
84778503
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
84788504
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==

0 commit comments

Comments
 (0)
Please sign in to comment.