Skip to content

Commit

Permalink
Merge pull request #358 from near/release-and-fixes
Browse files Browse the repository at this point in the history
5.0.1 Release Improvements
  • Loading branch information
kujtimprenkuSQA authored Jul 20, 2022
2 parents 7f9f859 + 5c4773c commit e9e2f8e
Show file tree
Hide file tree
Showing 17 changed files with 127 additions and 71 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-wallet-selector",
"version": "5.0.0",
"version": "5.0.1",
"description": "NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem",
"keywords": [
"near",
Expand Down Expand Up @@ -67,7 +67,7 @@
"@ledgerhq/hw-transport": "^6.20.0",
"@ledgerhq/hw-transport-webhid": "^6.20.0",
"@ledgerhq/logs": "^6.10.0",
"@walletconnect/sign-client": "2.0.0-beta.101",
"@walletconnect/sign-client": "^2.0.0-beta.102",
"@walletconnect/qrcode-modal": "2.0.0-alpha.20",
"@nightlylabs/connect": "0.0.23",
"big.js": "^6.1.1",
Expand Down Expand Up @@ -122,7 +122,7 @@
"@types/w3c-web-usb": "^1.0.5",
"@typescript-eslint/eslint-plugin": "5.13.0",
"@typescript-eslint/parser": "5.13.0",
"@walletconnect/types": "^2.0.0-beta.101",
"@walletconnect/types": "^2.0.0-beta.102",
"babel-jest": "27.2.3",
"cypress": "^9.1.0",
"eslint": "8.10.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/core",
"version": "5.0.0"
"version": "5.0.1"
}
2 changes: 1 addition & 1 deletion packages/ledger/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/ledger",
"version": "5.0.0"
"version": "5.0.1"
}
11 changes: 8 additions & 3 deletions packages/ledger/src/lib/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type {
Optional,
} from "@near-wallet-selector/core";
import { getActiveAccount } from "@near-wallet-selector/core";
import type { FinalExecutionOutcome } from "near-api-js/lib/providers";

import { isLedgerSupported, LedgerClient } from "./ledger-client";
import type { Subscription } from "./ledger-client";
Expand Down Expand Up @@ -252,9 +253,13 @@ const Ledger: WalletBehaviourFactory<HardwareWallet> = async ({
options.network
);

return Promise.all(
signedTransactions.map((signedTx) => provider.sendTransaction(signedTx))
);
const results: Array<FinalExecutionOutcome> = [];

for (let i = 0; i < signedTransactions.length; i++) {
results.push(await provider.sendTransaction(signedTransactions[i]));
}

return results;
},
async getPublicKey(derivationPath: string) {
await connectLedgerDevice();
Expand Down
2 changes: 1 addition & 1 deletion packages/math-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/math-wallet",
"version": "5.0.0"
"version": "5.0.1"
}
11 changes: 8 additions & 3 deletions packages/math-wallet/src/lib/math-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { getActiveAccount } from "@near-wallet-selector/core";
import { waitFor } from "@near-wallet-selector/core";
import type { InjectedMathWallet } from "./injected-math-wallet";
import { signTransactions } from "@near-wallet-selector/wallet-utils";
import type { FinalExecutionOutcome } from "near-api-js/lib/providers";

declare global {
interface Window {
Expand Down Expand Up @@ -127,9 +128,13 @@ const MathWallet: WalletBehaviourFactory<InjectedWallet> = async ({
signedTransactions
);

return Promise.all(
signedTransactions.map((tx) => provider.sendTransaction(tx))
);
const results: Array<FinalExecutionOutcome> = [];

for (let i = 0; i < signedTransactions.length; i++) {
results.push(await provider.sendTransaction(signedTransactions[i]));
}

return results;
},
};
};
Expand Down
2 changes: 1 addition & 1 deletion packages/modal-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/modal-ui",
"version": "5.0.0"
"version": "5.0.1"
}
2 changes: 1 addition & 1 deletion packages/my-near-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/my-near-wallet",
"version": "5.0.0"
"version": "5.0.1"
}
2 changes: 1 addition & 1 deletion packages/near-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/near-wallet",
"version": "5.0.0"
"version": "5.0.1"
}
2 changes: 1 addition & 1 deletion packages/nightly-connect/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/nightly-connect",
"version": "5.0.0"
"version": "5.0.1"
}
11 changes: 8 additions & 3 deletions packages/nightly-connect/src/lib/nightly-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
WalletModuleFactory,
} from "@near-wallet-selector/core";
import { signTransactions } from "@near-wallet-selector/wallet-utils";
import type { FinalExecutionOutcome } from "near-api-js/lib/providers";

export interface NightlyConnectParams {
appMetadata: AppMetadata;
Expand Down Expand Up @@ -188,9 +189,13 @@ const NightlyConnect: WalletBehaviourFactory<
options.network
);

return Promise.all(
signedTxs.map((signedTx) => provider.sendTransaction(signedTx))
);
const results: Array<FinalExecutionOutcome> = [];

for (let i = 0; i < signedTxs.length; i++) {
results.push(await provider.sendTransaction(signedTxs[i]));
}

return results;
},
};
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nightly/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/nightly",
"version": "5.0.0"
"version": "5.0.1"
}
11 changes: 8 additions & 3 deletions packages/nightly/src/lib/nightly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { signTransactions } from "@near-wallet-selector/wallet-utils";
import { isMobile } from "is-mobile";
import { Signer, utils, transactions as nearTransactions } from "near-api-js";
import type { NearNightly, InjectedNightly } from "./injected-nightly";
import type { FinalExecutionOutcome } from "near-api-js/lib/providers";

declare global {
interface Window {
Expand Down Expand Up @@ -168,9 +169,13 @@ const Nightly: WalletBehaviourFactory<InjectedWallet> = async ({
options.network
);

return Promise.all(
signedTxs.map((signedTx) => provider.sendTransaction(signedTx))
);
const results: Array<FinalExecutionOutcome> = [];

for (let i = 0; i < signedTxs.length; i++) {
results.push(await provider.sendTransaction(signedTxs[i]));
}

return results;
},
};
};
Expand Down
2 changes: 1 addition & 1 deletion packages/sender/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/sender",
"version": "5.0.0"
"version": "5.0.1"
}
2 changes: 1 addition & 1 deletion packages/wallet-connect/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/wallet-connect",
"version": "5.0.0"
"version": "5.0.1"
}
2 changes: 1 addition & 1 deletion packages/wallet-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@near-wallet-selector/wallet-utils",
"version": "5.0.0"
"version": "5.0.1"
}
Loading

0 comments on commit e9e2f8e

Please sign in to comment.