@venly/web3-provider
Advanced tools
Comparing version 3.3.0-develop.1 to 3.3.0-develop.2
@@ -15,4 +15,4 @@ import { VenlyConnect, AuthenticationOptions, Account, AuthenticationResult } from '@venly/connect'; | ||
getAccounts(): Promise<string[]>; | ||
processTransaction(params: any, req: any): Promise<any>; | ||
processSignTransaction(params: any, req: any): Promise<string>; | ||
processTransaction(txParams: any, req: any): Promise<any>; | ||
processSignTransaction(txParams: any, req: any): Promise<string>; | ||
processEthSignMessage(params: any, req: any): Promise<any>; | ||
@@ -19,0 +19,0 @@ processTypedMessage(params: any, req: any, version: any): Promise<string>; |
@@ -68,5 +68,6 @@ "use strict"; | ||
} | ||
processTransaction(params, req) { | ||
processTransaction(txParams, req) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const params = req.params[0]; | ||
const signer = this.venlyConnect.createSigner(); | ||
@@ -81,5 +82,6 @@ const transactionData = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ walletId: this.getWalletIdFrom(params.from), type: types_1.REQUEST_TYPES[this.options.secretType].transaction }, params.to && { to: params.to }), params.data && { data: params.data }), params.value && { value: bignumber_1.BigNumber.from(params.value).toString() }), params.gas && { gas: bignumber_1.BigNumber.from(params.gas).toString() }), params.gasPrice && { gasPrice: bignumber_1.BigNumber.from(params.gasPrice).toString() }), params.nonce && { nonce: bignumber_1.BigNumber.from(params.nonce).toString() }); | ||
} | ||
processSignTransaction(params, req) { | ||
processSignTransaction(txParams, req) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const params = req.params[0]; | ||
const signer = this.venlyConnect.createSigner(); | ||
@@ -86,0 +88,0 @@ const transactionData = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ walletId: this.getWalletIdFrom(params.from), type: types_1.REQUEST_TYPES[this.options.secretType].signature }, params.to && { to: params.to }), params.data && { data: params.data }), params.value && { value: bignumber_1.BigNumber.from(params.value).toString() }), params.gas && { gas: bignumber_1.BigNumber.from(params.gas).toString() }), params.gasPrice && { gasPrice: bignumber_1.BigNumber.from(params.gasPrice).toString() }), params.nonce && { nonce: bignumber_1.BigNumber.from(params.nonce).toString() }); |
{ | ||
"name": "@venly/web3-provider", | ||
"version": "3.3.0-develop.1", | ||
"version": "3.3.0-develop.2", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
804321
1405