bridge_ui: update packages
Change-Id: Idf14a747a8b798139609045d7b47b5a189509437
This commit is contained in:
parent
c5c18edd27
commit
2645b547da
File diff suppressed because it is too large
Load Diff
|
@ -11,17 +11,17 @@
|
|||
"@reduxjs/toolkit": "^1.6.1",
|
||||
"@solana/spl-token": "^0.1.6",
|
||||
"@solana/spl-token-registry": "^0.2.216",
|
||||
"@solana/wallet-adapter-base": "^0.4.1",
|
||||
"@solana/wallet-adapter-ledger": "^0.4.1",
|
||||
"@solana/wallet-adapter-material-ui": "^0.7.1",
|
||||
"@solana/wallet-adapter-mathwallet": "^0.4.1",
|
||||
"@solana/wallet-adapter-phantom": "^0.4.1",
|
||||
"@solana/wallet-adapter-react": "^0.7.1",
|
||||
"@solana/wallet-adapter-solflare": "^0.1.0",
|
||||
"@solana/wallet-adapter-sollet": "^0.4.1",
|
||||
"@solana/wallet-adapter-solong": "^0.4.1",
|
||||
"@solana/wallet-adapter-torus": "^0.5.0",
|
||||
"@solana/wallet-adapter-wallets": "^0.6.1",
|
||||
"@solana/wallet-adapter-base": "^0.5.2",
|
||||
"@solana/wallet-adapter-ledger": "^0.5.2",
|
||||
"@solana/wallet-adapter-material-ui": "^0.11.0",
|
||||
"@solana/wallet-adapter-mathwallet": "^0.5.2",
|
||||
"@solana/wallet-adapter-phantom": "^0.5.3",
|
||||
"@solana/wallet-adapter-react": "^0.11.0",
|
||||
"@solana/wallet-adapter-solflare": "^0.2.3",
|
||||
"@solana/wallet-adapter-sollet": "^0.6.0",
|
||||
"@solana/wallet-adapter-solong": "^0.5.2",
|
||||
"@solana/wallet-adapter-torus": "^0.6.3",
|
||||
"@solana/wallet-adapter-wallets": "^0.9.0",
|
||||
"@solana/wallet-base": "^0.0.1",
|
||||
"@solana/web3.js": "^1.24.1",
|
||||
"@terra-money/wallet-provider": "^1.4.0-alpha.1",
|
||||
|
|
|
@ -67,6 +67,9 @@ async function solana(
|
|||
) {
|
||||
dispatch(setIsCreating(true));
|
||||
try {
|
||||
if (!wallet.signTransaction) {
|
||||
throw new Error("wallet.signTransaction is undefined");
|
||||
}
|
||||
const connection = new Connection(SOLANA_HOST, "confirmed");
|
||||
await postVaaSolana(
|
||||
connection,
|
||||
|
|
|
@ -59,6 +59,9 @@ async function solana(
|
|||
) {
|
||||
dispatch(setIsRedeeming(true));
|
||||
try {
|
||||
if (!wallet.signTransaction) {
|
||||
throw new Error("wallet.signTransaction is undefined");
|
||||
}
|
||||
const connection = new Connection(SOLANA_HOST, "confirmed");
|
||||
await postVaaSolana(
|
||||
connection,
|
||||
|
|
|
@ -67,6 +67,9 @@ async function solana(
|
|||
) {
|
||||
dispatch(setIsRedeeming(true));
|
||||
try {
|
||||
if (!wallet.signTransaction) {
|
||||
throw new Error("wallet.signTransaction is undefined");
|
||||
}
|
||||
const connection = new Connection(SOLANA_HOST, "confirmed");
|
||||
await postVaaSolana(
|
||||
connection,
|
||||
|
|
|
@ -102,7 +102,7 @@ export const selectNFTSourceError = (state: RootState): string | undefined => {
|
|||
) {
|
||||
return "Balance must be greater than zero";
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
if (e?.message) {
|
||||
return e.message.substring(0, e.message.indexOf("("));
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ export const selectTransferSourceError = (
|
|||
) {
|
||||
return "Amount may not be greater than balance";
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
if (e?.message) {
|
||||
return e.message.substring(0, e.message.indexOf("("));
|
||||
}
|
||||
|
|
|
@ -12,6 +12,9 @@ export async function signSendAndConfirm(
|
|||
connection: Connection,
|
||||
transaction: Transaction
|
||||
) {
|
||||
if (!wallet.signTransaction) {
|
||||
throw new Error("wallet.signTransaction is undefined");
|
||||
}
|
||||
const signed = await wallet.signTransaction(transaction);
|
||||
const txid = await connection.sendRawTransaction(signed.serialize());
|
||||
await connection.confirmTransaction(txid);
|
||||
|
|
|
@ -26,3 +26,27 @@ npm ci
|
|||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
## Build for local tilt network
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Build for testnet
|
||||
|
||||
```bash
|
||||
REACT_APP_CLUSTER=testnet npm run build
|
||||
```
|
||||
|
||||
## Build for mainnet
|
||||
|
||||
```bash
|
||||
REACT_APP_CLUSTER=mainnet npm run build
|
||||
```
|
||||
|
||||
## Test Server
|
||||
|
||||
```bash
|
||||
npx serve -s build
|
||||
```
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,16 +9,13 @@
|
|||
"@material-ui/lab": "^4.0.0-alpha.60",
|
||||
"@solana/spl-token": "^0.1.6",
|
||||
"@solana/spl-token-registry": "^0.2.216",
|
||||
"@solana/wallet-adapter-base": "^0.4.1",
|
||||
"@solana/wallet-adapter-material-ui": "^0.7.1",
|
||||
"@solana/wallet-adapter-phantom": "^0.4.1",
|
||||
"@solana/wallet-adapter-react": "^0.7.1",
|
||||
"@solana/wallet-adapter-wallets": "^0.6.1",
|
||||
"@solana/wallet-adapter-base": "^0.5.2",
|
||||
"@solana/wallet-adapter-material-ui": "^0.11.0",
|
||||
"@solana/wallet-adapter-phantom": "^0.5.3",
|
||||
"@solana/wallet-adapter-react": "^0.11.0",
|
||||
"@solana/wallet-adapter-wallets": "^0.9.0",
|
||||
"@solana/wallet-base": "^0.0.1",
|
||||
"@solana/web3.js": "^1.24.1",
|
||||
"@testing-library/jest-dom": "^5.11.4",
|
||||
"@testing-library/react": "^11.1.0",
|
||||
"@testing-library/user-event": "^12.1.10",
|
||||
"@types/node": "^16.9.1",
|
||||
"@types/react": "^17.0.20",
|
||||
"@types/react-dom": "^17.0.9",
|
||||
|
@ -26,8 +23,7 @@
|
|||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-scripts": "4.0.3",
|
||||
"typescript": "^4.4.2",
|
||||
"web-vitals": "^1.0.1"
|
||||
"typescript": "^4.4.2"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npm ci --prefix ../sdk/js && npm run build --prefix ../sdk/js",
|
||||
|
|
|
@ -27,6 +27,9 @@ export async function signSendAndConfirm(
|
|||
connection: Connection,
|
||||
transaction: Transaction
|
||||
) {
|
||||
if (!wallet.signTransaction) {
|
||||
throw new Error("wallet.signTransaction is undefined");
|
||||
}
|
||||
const signed = await wallet.signTransaction(transaction);
|
||||
const txid = await connection.sendRawTransaction(signed.serialize());
|
||||
await connection.confirmTransaction(txid);
|
||||
|
|
Loading…
Reference in New Issue