@walletconnect/client
Advanced tools
Comparing version 1.0.0-beta.60 to 1.0.0-beta.61
@@ -6,4 +6,3 @@ "use strict"; | ||
const qrcode_modal_1 = tslib_1.__importDefault(require("@walletconnect/qrcode-modal")); | ||
const cryptoLib = tslib_1.__importStar(require("./crypto")); | ||
const storage_1 = tslib_1.__importDefault(require("./storage")); | ||
const cryptoLib = tslib_1.__importStar(require("@walletconnect/iso-crypto")); | ||
class WalletConnect extends core_1.default { | ||
@@ -13,4 +12,3 @@ constructor(connectorOpts, pushServerOpts) { | ||
cryptoLib, | ||
connectorOpts: Object.assign({ bridge: 'https://bridge.walletconnect.org' }, connectorOpts), | ||
sessionStorage: connectorOpts.storage || new storage_1.default(), | ||
connectorOpts, | ||
qrcodeModal: qrcode_modal_1.default, | ||
@@ -17,0 +15,0 @@ pushServerOpts |
{ | ||
"name": "@walletconnect/client", | ||
"version": "1.0.0-beta.60", | ||
"version": "1.0.0-beta.61", | ||
"description": "Client for WalletConnect", | ||
@@ -62,8 +62,9 @@ "scripts": { | ||
"dependencies": { | ||
"@walletconnect/core": "^1.0.0-beta.60", | ||
"@walletconnect/qrcode-modal": "^1.0.0-beta.60", | ||
"@walletconnect/types": "^1.0.0-beta.60", | ||
"@walletconnect/utils": "^1.0.0-beta.60" | ||
"@walletconnect/core": "^1.0.0-beta.61", | ||
"@walletconnect/iso-crypto": "^1.0.0-beta.61", | ||
"@walletconnect/qrcode-modal": "^1.0.0-beta.61", | ||
"@walletconnect/types": "^1.0.0-beta.61", | ||
"@walletconnect/utils": "^1.0.0-beta.61" | ||
}, | ||
"gitHead": "165f7993c2acc907c653c02847fb02721052c6e7" | ||
} |
@@ -21,6 +21,6 @@ # WalletConnect Client | ||
// Create a walletConnector | ||
const walletConnector = new WalletConnect(); | ||
// Create a connector | ||
const connector = new WalletConnect(); | ||
walletConnector.on("session_update", (error, payload) => { | ||
connector.on("session_update", (error, payload) => { | ||
if (error) { | ||
@@ -34,3 +34,3 @@ throw error; | ||
walletConnector.on("disconnect", (error, payload) => { | ||
connector.on("disconnect", (error, payload) => { | ||
if (error) { | ||
@@ -40,6 +40,6 @@ throw error; | ||
// Delete walletConnector | ||
// Delete connector | ||
}); | ||
const { accounts, chainId } = await walletConnector.connect(); | ||
const { accounts, chainId } = await connector.connect(); | ||
``` | ||
@@ -62,3 +62,3 @@ | ||
// Send transaction | ||
walletConnector | ||
connector | ||
.sendTransaction(tx) | ||
@@ -90,3 +90,3 @@ .then(result => { | ||
// Sign transaction | ||
walletConnector | ||
connector | ||
.signTransaction(tx) | ||
@@ -117,3 +117,3 @@ .then(result => { | ||
// Sign personal message | ||
walletConnector | ||
connector | ||
.signPersonalMessage(msgParams) | ||
@@ -144,3 +144,3 @@ .then((result) => { | ||
// Sign message | ||
walletConnector | ||
connector | ||
.signMessage(msgParams) | ||
@@ -205,3 +205,3 @@ .then((result) => { | ||
// Sign Typed Data | ||
walletConnector | ||
connector | ||
.signTypedData(msgParams) | ||
@@ -240,3 +240,3 @@ .then(result => { | ||
// Send Custom Request | ||
walletConnector | ||
connector | ||
.sendCustomRequest(customRequest) | ||
@@ -259,4 +259,4 @@ .then(result => { | ||
// Create a walletConnector | ||
const walletConnector = new WalletConnect(); | ||
// Create a connector | ||
const connector = new WalletConnect(); | ||
@@ -281,3 +281,3 @@ // Draft Instant Request | ||
// Create Instant Request | ||
walletConnector | ||
connector | ||
.createInstantRequest(instantRequest) | ||
@@ -284,0 +284,0 @@ .then(result => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
974782
5
8
3047
+ Added@walletconnect/crypto@1.0.3(transitive)
+ Added@walletconnect/iso-crypto@1.8.0(transitive)
+ Added@walletconnect/randombytes@1.0.3(transitive)
+ Addedaes-js@3.1.2(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)