Socket
Socket
Sign inDemoInstall

@venly/web3-provider

Package Overview
Dependencies
Maintainers
4
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@venly/web3-provider - npm Package Compare versions

Comparing version 3.3.5-develop.0 to 3.3.5-develop.1

6

dist/venlyController.d.ts

@@ -15,7 +15,7 @@ import { VenlyConnect, AuthenticationOptions, Account, AuthenticationResult } from '@venly/connect';

getAccounts(): Promise<string[]>;
processTransaction(txParams: any, req: any): Promise<any>;
processTransaction(txParams: any, req: any): Promise<string>;
processSignTransaction(txParams: any, req: any): Promise<string>;
processEthSignMessage(params: any, req: any): Promise<any>;
processEthSignMessage(params: any, req: any): Promise<string>;
processTypedMessage(params: any, req: any, version: any): Promise<string>;
processPersonalMessage(params: any, req: any): Promise<any>;
processPersonalMessage(params: any, req: any): Promise<string>;
getTransactionByHash(hash: string): Promise<any>;

@@ -22,0 +22,0 @@ getPendingTransactions(): Promise<any>;

@@ -69,3 +69,3 @@ "use strict";

processTransaction(txParams, req) {
var _a;
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {

@@ -76,10 +76,12 @@ const params = req.params[0];

const res = yield signer.executeNativeTransaction(transactionData);
if (res.status === 'SUCCESS')
return res.result.transactionHash;
if (this.options.windowMode == connect_1.WindowMode.REDIRECT)
return yield new Promise(() => { });
else if (res.status === 'SUCCESS')
return (_a = res.result) === null || _a === void 0 ? void 0 : _a.transactionHash;
else
throw new Error((_a = res.errors) === null || _a === void 0 ? void 0 : _a.join(', '));
throw new Error((_b = res.errors) === null || _b === void 0 ? void 0 : _b.join(', '));
});
}
processSignTransaction(txParams, req) {
var _a;
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {

@@ -90,10 +92,12 @@ const params = req.params[0];

const res = yield signer.sign(transactionData);
if (res.status === 'SUCCESS')
return res.result.signedTransaction;
if (this.options.windowMode == connect_1.WindowMode.REDIRECT)
return yield new Promise(() => { });
else if (res.status === 'SUCCESS')
return (_a = res.result) === null || _a === void 0 ? void 0 : _a.signedTransaction;
else
throw new Error((_a = res.errors) === null || _a === void 0 ? void 0 : _a.join(', '));
throw new Error((_b = res.errors) === null || _b === void 0 ? void 0 : _b.join(', '));
});
}
processEthSignMessage(params, req) {
var _a;
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {

@@ -106,10 +110,12 @@ const signer = this.venlyConnect.createSigner();

});
if (res.status === 'SUCCESS')
return res.result.signature;
if (this.options.windowMode == connect_1.WindowMode.REDIRECT)
return yield new Promise(() => { });
else if (res.status === 'SUCCESS')
return (_a = res.result) === null || _a === void 0 ? void 0 : _a.signature;
else
throw new Error((_a = res.errors) === null || _a === void 0 ? void 0 : _a.join(', '));
throw new Error((_b = res.errors) === null || _b === void 0 ? void 0 : _b.join(', '));
});
}
processTypedMessage(params, req, version) {
var _a, _b;
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {

@@ -120,3 +126,3 @@ const signer = this.venlyConnect.createSigner();

}
catch (_c) {
catch (_d) {
var typedData = params.data;

@@ -131,10 +137,12 @@ }

});
if (res.status === 'SUCCESS')
return res.result.signature;
if (this.options.windowMode == connect_1.WindowMode.REDIRECT)
return yield new Promise(() => { });
else if (res.status === 'SUCCESS')
return (_b = res.result) === null || _b === void 0 ? void 0 : _b.signature;
else
throw new Error((_b = res.errors) === null || _b === void 0 ? void 0 : _b.join(', '));
throw new Error((_c = res.errors) === null || _c === void 0 ? void 0 : _c.join(', '));
});
}
processPersonalMessage(params, req) {
var _a;
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {

@@ -147,6 +155,8 @@ const signer = this.venlyConnect.createSigner();

});
if (res.status === 'SUCCESS')
return res.result.signature;
if (this.options.windowMode == connect_1.WindowMode.REDIRECT)
return yield new Promise(() => { });
else if (res.status === 'SUCCESS')
return (_a = res.result) === null || _a === void 0 ? void 0 : _a.signature;
else
throw new Error((_a = res.errors) === null || _a === void 0 ? void 0 : _a.join(', '));
throw new Error((_b = res.errors) === null || _b === void 0 ? void 0 : _b.join(', '));
});

@@ -153,0 +163,0 @@ }

{
"name": "@venly/web3-provider",
"version": "3.3.5-develop.0",
"version": "3.3.5-develop.1",
"description": "Venly enabled Web3 Provider for the web",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc