Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WalletConnect/walletconnect-monorepo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.13.0
Choose a base ref
...
head repository: WalletConnect/walletconnect-monorepo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.13.1
Choose a head ref

Commits on Apr 5, 2024

  1. chore: fix typos

    xiaoxianBoy committed Apr 5, 2024
    Copy the full SHA
    32c0f9b View commit details

Commits on May 2, 2024

  1. feat: implements wallet_getCapabilities caching in UP

    Gancho Radkov committed May 2, 2024
    Copy the full SHA
    06dc02c View commit details
  2. feat: tests

    Gancho Radkov committed May 2, 2024
    Copy the full SHA
    2863d89 View commit details
  3. fix: types casting

    Gancho Radkov committed May 2, 2024
    Copy the full SHA
    4967445 View commit details

Commits on May 7, 2024

  1. Copy the full SHA
    2525dde View commit details

Commits on May 8, 2024

  1. Copy the full SHA
    78fe42b View commit details
  2. Copy the full SHA
    be249ff View commit details
  3. Merge pull request #4504 from WalletConnect/chore/2.13.0

    chore: prep for `2.13.0` release
    ganchoradkov authored May 8, 2024
    Copy the full SHA
    5d33a9b View commit details

Commits on May 10, 2024

  1. Copy the full SHA
    32f28df View commit details
  2. feat: tests

    Gancho Radkov committed May 10, 2024
    Copy the full SHA
    5a00a3a View commit details

Commits on May 13, 2024

  1. feat: adds try/catch on sessionAuthenticateRequest and auto respond…

    …s with an error if there is an exception
    Gancho Radkov committed May 13, 2024
    Copy the full SHA
    6975267 View commit details
  2. fix: adds encodeOpts to auto error response

    Gancho Radkov committed May 13, 2024
    Copy the full SHA
    72807d4 View commit details
  3. Copy the full SHA
    e3c7456 View commit details

Commits on May 14, 2024

  1. Merge pull request #4486 from WalletConnect/feat/wallet_getCapabiliti…

    …es_cache
    
    Feat/wallet get capabilities cache
    ganchoradkov authored May 14, 2024
    Copy the full SHA
    8803500 View commit details
  2. refactor: moves error log

    Gancho Radkov committed May 14, 2024
    Copy the full SHA
    961367c View commit details
  3. Copy the full SHA
    d35ebfd View commit details
  4. Merge pull request #4527 from WalletConnect/feat/rejection-tags

    feat: rejection tags
    ganchoradkov authored May 14, 2024
    Copy the full SHA
    819a8a4 View commit details
  5. fix: request queue state reset on pending request delete

    Gancho Radkov committed May 14, 2024
    Copy the full SHA
    cd98a63 View commit details
  6. feat: tests

    Gancho Radkov committed May 14, 2024
    Copy the full SHA
    3f9bb09 View commit details
  7. fix(tests): force close transport

    Gancho Radkov committed May 14, 2024
    Copy the full SHA
    d811a33 View commit details

Commits on May 15, 2024

  1. Copy the full SHA
    d0085fd View commit details
  2. refactor: resets queue state on session delete instead of on pending …

    …request delete
    Gancho Radkov committed May 15, 2024
    Copy the full SHA
    3906831 View commit details
  3. Merge pull request #4407 from xiaoxianBoy/fix-typos

    chore: fix typos
    ganchoradkov authored May 15, 2024
    Copy the full SHA
    669ec50 View commit details
  4. Copy the full SHA
    8c4c27a View commit details
  5. Update packages/sign-client/src/controllers/engine.ts

    Co-authored-by: Ben Kremer <ben@walletconnect.com>
    ganchoradkov and bkrem authored May 15, 2024
    Copy the full SHA
    9ad8da1 View commit details
  6. Merge pull request #4531 from WalletConnect/fix/request-queue-on-disc…

    …onnect
    
    fix: request queue state on pending request delete
    ganchoradkov authored May 15, 2024
    1
    Copy the full SHA
    1066f21 View commit details

Commits on May 21, 2024

  1. feat: added atob and btoa polyfills

    ignaciosantise committed May 21, 2024
    Copy the full SHA
    1f53090 View commit details
  2. fix: use Buffer.alloc instead of new Buffer()

    ignaciosantise committed May 21, 2024
    Copy the full SHA
    9c88602 View commit details

Commits on May 22, 2024

  1. Merge pull request #4548 from WalletConnect/feat/rn-polyfill

    feat: added atob and btoa polyfills
    Ignacio Santise authored May 22, 2024
    Copy the full SHA
    022e4d4 View commit details

Commits on May 23, 2024

  1. Copy the full SHA
    0c34ea0 View commit details
  2. chore: connecting peer to set their own pairing topic on session sett…

    …le instead of relying on it being sent by the wallet
    ganchoradkov committed May 23, 2024
    Copy the full SHA
    c514cf4 View commit details
  3. chore: comments

    ganchoradkov committed May 23, 2024
    Copy the full SHA
    7c4c3aa View commit details
  4. Copy the full SHA
    ec5d6e6 View commit details
  5. Copy the full SHA
    965329d View commit details
  6. fix: web3wallet tests

    lukaisailovic committed May 23, 2024
    Copy the full SHA
    2d17f28 View commit details
  7. fix: web3wallet tests

    lukaisailovic committed May 23, 2024
    Copy the full SHA
    e5cd6c1 View commit details
  8. Copy the full SHA
    f9c5538 View commit details

Commits on May 24, 2024

  1. Copy the full SHA
    2faa79b View commit details
  2. Merge pull request #4560 from schmanu/fix/multiple-event-handler

    fix: handle multiple event handlers for the same event
    ganchoradkov authored May 24, 2024
    Copy the full SHA
    4613df2 View commit details

Commits on May 28, 2024

  1. Copy the full SHA
    6d7d3d1 View commit details

Commits on May 29, 2024

  1. Merge pull request #4553 from WalletConnect/chore/pairing-topic-setter

    chore: pairing topic setter on session settle
    ganchoradkov authored May 29, 2024
    Copy the full SHA
    92ed3fd View commit details
  2. Copy the full SHA
    1178bc0 View commit details
  3. Copy the full SHA
    ca5a2d0 View commit details
  4. fix: tests

    ganchoradkov committed May 29, 2024
    Copy the full SHA
    54f1d46 View commit details
  5. Merge pull request #4554 from WalletConnect/chore/metadata-validation

    chore: add metadata validation in sign-client
    lukaisailovic authored May 29, 2024
    Copy the full SHA
    8c447a9 View commit details
  6. Copy the full SHA
    89dbe9e View commit details
  7. Copy the full SHA
    b37c81c View commit details
  8. feat: adds test

    ganchoradkov committed May 29, 2024
    Copy the full SHA
    c21a7d5 View commit details
  9. Merge pull request #4573 from WalletConnect/fix/error-msg-on-metadata…

    …-validation
    
    fix: url validation message
    ganchoradkov authored May 29, 2024
    Copy the full SHA
    c1751c0 View commit details
  10. Copy the full SHA
    297afc6 View commit details
Showing with 569 additions and 147 deletions.
  1. +1 −1 lerna.json
  2. +49 −49 package-lock.json
  3. +3 −3 packages/core/package.json
  4. +1 −1 packages/core/src/constants/relayer.ts
  5. +18 −0 packages/react-native-compat/index.js
  6. +1 −1 packages/react-native-compat/package.json
  7. +4 −4 packages/sign-client/package.json
  8. +13 −0 packages/sign-client/src/client.ts
  9. +20 −0 packages/sign-client/src/constants/engine.ts
  10. +55 −35 packages/sign-client/src/controllers/engine.ts
  11. +74 −1 packages/sign-client/test/sdk/auth.spec.ts
  12. +108 −1 packages/sign-client/test/sdk/client.spec.ts
  13. +13 −0 packages/sign-client/test/shared/values.ts
  14. +1 −1 packages/types/package.json
  15. +1 −1 packages/types/src/sign-client/client.ts
  16. +7 −0 packages/types/src/sign-client/engine.ts
  17. +0 −1 packages/types/src/sign-client/jsonrpc.ts
  18. +1 −1 packages/types/src/sign-client/proposal.ts
  19. +2 −2 packages/utils/package.json
  20. +5 −5 packages/web3wallet/package.json
  21. +2 −0 packages/web3wallet/src/controllers/engine.ts
  22. +3 −3 packages/web3wallet/test/auth.spec.ts
  23. +8 −0 packages/web3wallet/test/shared/values.ts
  24. +45 −17 packages/web3wallet/test/sign.spec.ts
  25. +5 −5 providers/ethereum-provider/package.json
  26. +2 −2 providers/ethereum-provider/src/EthereumProvider.ts
  27. +11 −0 providers/ethereum-provider/test/index.spec.ts
  28. +4 −4 providers/signer-connection/package.json
  29. +4 −4 providers/universal-provider/package.json
  30. +34 −4 providers/universal-provider/src/providers/eip155.ts
  31. +1 −1 providers/universal-provider/src/types/misc.ts
  32. +73 −0 providers/universal-provider/test/index.spec.ts
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -4,5 +4,5 @@
"packages/*",
"providers/*"
],
"version": "2.13.0"
"version": "2.13.1"
}
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walletconnect/core",
"description": "Core for WalletConnect Protocol",
"version": "2.13.0",
"version": "2.13.1",
"author": "WalletConnect, Inc. <walletconnect.com>",
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
"license": "Apache-2.0",
@@ -42,8 +42,8 @@
"@walletconnect/relay-auth": "1.0.4",
"@walletconnect/safe-json": "1.0.2",
"@walletconnect/time": "1.0.2",
"@walletconnect/types": "2.13.0",
"@walletconnect/utils": "2.13.0",
"@walletconnect/types": "2.13.1",
"@walletconnect/utils": "2.13.1",
"events": "3.3.0",
"isomorphic-unfetch": "3.1.0",
"lodash.isequal": "4.5.0",
2 changes: 1 addition & 1 deletion packages/core/src/constants/relayer.ts
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ export const RELAYER_STORAGE_OPTIONS = {

// Updated automatically via `new-version` npm script.

export const RELAYER_SDK_VERSION = "2.13.0";
export const RELAYER_SDK_VERSION = "2.13.1";

// delay to wait before closing the transport connection after init if not active
export const RELAYER_TRANSPORT_CUTOFF = 10_000;
18 changes: 18 additions & 0 deletions packages/react-native-compat/index.js
Original file line number Diff line number Diff line change
@@ -14,6 +14,24 @@ if (typeof Buffer === "undefined") {
global.Buffer = require("buffer").Buffer;
}

// Polyfill btoa
if (typeof btoa === "undefined") {
global.btoa = function (str) {
return Buffer.alloc(str.length, str, "binary").toString("base64");
};
}

// Polyfill atob
if (typeof atob === "undefined") {
global.atob = function (b64Encoded) {
return Buffer.alloc(
Buffer.from(b64Encoded, "base64").length,
Buffer.from(b64Encoded, "base64"),
"binary",
).toString("binary");
};
}

if (typeof global?.Linking === "undefined") {
try {
global.Linking = require("react-native").Linking;
2 changes: 1 addition & 1 deletion packages/react-native-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walletconnect/react-native-compat",
"description": "Shims for WalletConnect Protocol in React Native Projects",
"version": "2.13.0",
"version": "2.13.1",
"author": "WalletConnect, Inc. <walletconnect.com>",
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
"license": "Apache-2.0",
8 changes: 4 additions & 4 deletions packages/sign-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walletconnect/sign-client",
"description": "Sign Client for WalletConnect Protocol",
"version": "2.13.0",
"version": "2.13.1",
"author": "WalletConnect, Inc. <walletconnect.com>",
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
"license": "Apache-2.0",
@@ -38,14 +38,14 @@
"prettier": "prettier --check '{src,test}/**/*.{js,ts,jsx,tsx}'"
},
"dependencies": {
"@walletconnect/core": "2.13.0",
"@walletconnect/core": "2.13.1",
"@walletconnect/events": "1.0.1",
"@walletconnect/heartbeat": "1.2.2",
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/logger": "2.1.2",
"@walletconnect/time": "1.0.2",
"@walletconnect/types": "2.13.0",
"@walletconnect/utils": "2.13.0",
"@walletconnect/types": "2.13.1",
"@walletconnect/utils": "2.13.1",
"events": "3.3.0"
},
"devDependencies": {
13 changes: 13 additions & 0 deletions packages/sign-client/src/client.ts
Original file line number Diff line number Diff line change
@@ -63,6 +63,18 @@ export class SignClient extends ISignClient {
return this.core.pairing.pairings;
}

private validateMetadata(metadata: SignClientTypes.Metadata) {
if (!metadata.name) {
throw new Error("name is required value in metadata");
}
if (!metadata.description) {
throw new Error("description is required value in metadata");
}
if (!metadata.url) {
throw new Error("url is required value in metadata");
}
}

// ---------- Events ----------------------------------------------- //

public on: ISignClientEvents["on"] = (name, listener) => {
@@ -245,6 +257,7 @@ export class SignClient extends ISignClient {
private async initialize() {
this.logger.trace(`Initialized`);
try {
await this.validateMetadata(this.metadata);
await this.core.start();
await this.session.init();
await this.proposal.init();
Loading