Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beacon revert get active account #3062

Merged
merged 10 commits into from
Oct 16, 2024
Merged
12 changes: 6 additions & 6 deletions apps/taquito-test-dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "taquito-test-dapp-vite",
"private": true,
"version": "20.0.1",
"version": "20.1.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -15,7 +15,7 @@
"events": "^3.3.0",
"lerna": "^8.1.7",
"prettier-plugin-svelte": "^3.2.6",
"sass": "^1.77.8",
"sass": "^1.78.0",
"svelte": "^4.2.19",
"svelte-check": "^3.8.5",
"svelte-preprocess": "^6.0.2",
Expand All @@ -26,10 +26,10 @@
"dependencies": {
"@airgap/beacon-sdk": "^4.2.2",
"@airgap/beacon-types": "^4.2.2",
"@taquito/beacon-wallet": "^20.0.1",
"@taquito/core": "^20.0.1",
"@taquito/taquito": "^20.0.1",
"@taquito/utils": "^20.0.1",
"@taquito/beacon-wallet": "^20.1.0",
"@taquito/core": "^20.1.0",
"@taquito/taquito": "^20.1.0",
"@taquito/utils": "^20.1.0",
"buffer": "^6.0.3",
"svelte-select": "^5.8.3",
"vite-compatible-readable-stream": "^3.6.1"
Expand Down
19 changes: 4 additions & 15 deletions apps/taquito-test-dapp/src/lib/Wallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
let connectedWallet = "";

const createNewWallet = (config: { networkType: SupportedNetworks }) => {
const options: DAppClientOptions = {
const wallet = new BeaconWallet({
name: "Taquito Test Dapp",
matrixNodes: [defaultMatrixNode] as any,
network: {
Expand All @@ -29,20 +29,9 @@
projectId: "ba97fd7d1e89eae02f7c330e14ce1f36",
},
enableMetrics: $store.enableMetrics,
};
// if ($store.disableDefaultEvents) {
// options.disableDefaultEvents = true;
// options.eventHandlers = {
// // To keep the pairing alert, we have to add the following default event handlers back
// [BeaconEvent.PAIR_INIT]: {
// handler: defaultEventCallbacks.PAIR_INIT
// },
// [BeaconEvent.PAIR_SUCCESS]: {
// handler: defaultEventCallbacks.PAIR_SUCCESS
// }
// }
// }
return new BeaconWallet(options);
});
wallet.client.subscribeToEvent(BeaconEvent.ACTIVE_ACCOUNT_SET, () => {});
return wallet;
};

const connectWallet = async () => {
Expand Down
32 changes: 32 additions & 0 deletions docs/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@ title: Versions
author: Jev Bjorsell
---

# Taquito v20.1.0

**Breaking changes:**
* We removed `account` public property on `BeaconWallet` class. If you'd like to get the info, please use `subscribeToEvent` with `BeaconEvent.ACTIVE_ACCOUNT_SET`
* We migrated `Node.js` support from LTS18 to LTS20 and above

## Summary
### New features
* `@taquito/taquito` - Supported operation `transferTicket` in walletAPI PR #3003

### Improvement
* `@taquito/taquito` - Exported SmartRollupExecuteOutboxMessageParams PR #3031
* `@taquito/beacon-wallet` - reverted `subscribeToEvent` of `ACTIVE_ACCOUNT_SET` in the package to ensure users will get a console warning, if they didn't subscribe events themselves PR #2987
* `@taquito/rpc` - Updated rpc type `FrozenStaker` with `Baker_edge` PR #2987
* `@taquito/rpc` - Updated rpc type `METADATA_BALANCE_UPDATES_CATEGORY` and`OperationMetadataBalanceUpdates` to have backwards compatible PR #2987

### Documentation
* Updated `michelson_encoder` documentation with section `#flattening-nested-tokens-pairunion` PR #3002
* Updated `signing` documentation with section `#generating-a-tzip-32-message-signature` PR #2879

### Testing
* @taquito/beacon-wallet - Added broadcast-channel mock for @airgap/beacon-transport-postmessage in unit test
* Removed flextesa tests from CI workflow PR #3001
* Fixed tzip16 test with new public IPFS gateway domain PR #3033
* Updated staking and failing_noop integration tests to be robust PR #3033

### Internals
* `@taquito/http-utils` Configured the `fetch` call to be `keepalive=false` to fix socket hangup errors after node19 PR #2986
* Updated denpendencies PR #3018 #3038 #3043 #3052
* Removed taquito-test-dapp parisnet label on staking operations PR #3033
* Removed Netlify references after migrating to Cloudflare PR #3012

# Taquito v20.0.0
## Summary

Expand Down
24 changes: 12 additions & 12 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@taquito/example",
"private": true,
"version": "20.0.1",
"version": "20.1.0",
"scripts": {
"example": "node -r ts-node/register --preserve-symlinks example-node.ts",
"example:activation": "node -r ts-node/register --preserve-symlinks example-activate.ts",
Expand Down Expand Up @@ -41,17 +41,17 @@
"example:scan-path-ledger": "node -r ts-node/register --preserve-symlinks scan-path-ledger.ts"
},
"dependencies": {
"@ledgerhq/hw-transport-node-hid": "^6.29.3",
"@taquito/ledger-signer": "^20.0.1",
"@taquito/local-forging": "^20.0.1",
"@taquito/michel-codec": "^20.0.1",
"@taquito/michelson-encoder": "^20.0.1",
"@taquito/rpc": "^20.0.1",
"@taquito/sapling": "^20.0.1",
"@taquito/signer": "^20.0.1",
"@taquito/taquito": "^20.0.1",
"@taquito/tzip16": "^20.0.1",
"@taquito/utils": "^20.0.1",
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
"@taquito/ledger-signer": "^20.1.0",
"@taquito/local-forging": "^20.1.0",
"@taquito/michel-codec": "^20.1.0",
"@taquito/michelson-encoder": "^20.1.0",
"@taquito/rpc": "^20.1.0",
"@taquito/sapling": "^20.1.0",
"@taquito/signer": "^20.1.0",
"@taquito/taquito": "^20.1.0",
"@taquito/tzip16": "^20.1.0",
"@taquito/utils": "^20.1.0",
"bignumber.js": "^9.1.2"
},
"devDependencies": {
Expand Down
38 changes: 19 additions & 19 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@
"originate-known-contracts": "node -r ts-node/register originate-known-contracts.ts",
"originate-known-contracts-and-run-test": "node -r ts-node/register originate-known-contracts.ts && jest"
},
"version": "20.0.1",
"version": "20.1.0",
"dependencies": {
"@ledgerhq/devices": "8.4.2",
"@ledgerhq/hw-transport": "6.31.2",
"@ledgerhq/hw-transport-node-hid": "6.29.3",
"@ledgerhq/hw-transport-node-hid-noevents": "6.30.3",
"@taquito/contracts-library": "^20.0.1",
"@taquito/core": "^20.0.1",
"@taquito/http-utils": "^20.0.1",
"@taquito/local-forging": "^20.0.1",
"@taquito/michel-codec": "^20.0.1",
"@taquito/michelson-encoder": "^20.0.1",
"@taquito/remote-signer": "^20.0.1",
"@taquito/rpc": "^20.0.1",
"@taquito/sapling": "^20.0.1",
"@taquito/signer": "^20.0.1",
"@taquito/taquito": "^20.0.1",
"@taquito/tzip12": "^20.0.1",
"@taquito/tzip16": "^20.0.1",
"@taquito/utils": "^20.0.1",
"@ledgerhq/devices": "8.4.4",
"@ledgerhq/hw-transport": "6.31.4",
"@ledgerhq/hw-transport-node-hid": "6.29.5",
"@ledgerhq/hw-transport-node-hid-noevents": "6.30.5",
"@taquito/contracts-library": "^20.1.0",
"@taquito/core": "^20.1.0",
"@taquito/http-utils": "^20.1.0",
"@taquito/local-forging": "^20.1.0",
"@taquito/michel-codec": "^20.1.0",
"@taquito/michelson-encoder": "^20.1.0",
"@taquito/remote-signer": "^20.1.0",
"@taquito/rpc": "^20.1.0",
"@taquito/sapling": "^20.1.0",
"@taquito/signer": "^20.1.0",
"@taquito/taquito": "^20.1.0",
"@taquito/tzip12": "^20.1.0",
"@taquito/tzip16": "^20.1.0",
"@taquito/utils": "^20.1.0",
"bignumber.js": "^9.1.2",
"bip39": "3.1.0",
"blakejs": "^1.2.1"
Expand Down
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"useNx": true,
"version": "20.0.1"
}
"version": "20.1.0"
}
Loading
Loading