Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@portal-hq/provider

Package Overview
Dependencies
Maintainers
6
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portal-hq/provider - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

4

package.json
{
"name": "@portal-hq/provider",
"version": "0.2.8",
"version": "0.2.9",
"license": "MIT",

@@ -20,3 +20,3 @@ "main": "lib/commonjs/index",

"dependencies": {
"@portal-hq/utils": "^0.2.8"
"@portal-hq/utils": "^0.2.9"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -46,3 +46,3 @@ import {

private _address: string
private _address: string = ''
private apiUrl: string

@@ -392,10 +392,2 @@ private autoApprove?: boolean

private async dispatchDisconnect(): Promise<void> {
this.emit('disconnect', {
error: new ProviderRpcError({
code: RpcErrorCodes.Disconnected,
}),
})
}
/**

@@ -402,0 +394,0 @@ * Determines the RPC URL to be used for the current chain

@@ -1,8 +0,6 @@

import { type SigningRequestArguments, type SignResult } from '../../types'
import { SigningRequestArguments } from '@portal-hq/utils'
import { type SignResult } from '../../types'
abstract class Signer {
public async sign(
message: SigningRequestArguments,
provider?: any,
): Promise<SignResult> {
public async sign(_: SigningRequestArguments, __?: any): Promise<SignResult> {
throw new Error(

@@ -9,0 +7,0 @@ '[Portal] sign() method must be implemented in a child of BaseSigner',

@@ -1,9 +0,9 @@

import { KeychainAdapter, MissingOptionError } from '@portal-hq/utils'
import {
type HttpSignerOptions,
type SigningRequestArguments,
type SignResult,
} from '../../types'
KeychainAdapter,
MissingOptionError,
SigningRequestArguments,
} from '@portal-hq/utils'
import { type HttpSignerOptions, type SignResult } from '../../types'
import Signer from './abstract'

@@ -10,0 +10,0 @@ import { Provider } from '../index'

import { NativeModules } from 'react-native'
import { KeychainAdapter, MpcSigningError } from '@portal-hq/utils'
import {
KeychainAdapter,
MpcSigningError,
type SigningRequestArguments,
} from '@portal-hq/utils'

@@ -10,3 +14,2 @@ import { Provider } from '../index'

type PortalMobileMpc,
type SigningRequestArguments,
type SigningResponse,

@@ -16,3 +19,3 @@ } from '../../types'

class MpcSigner implements Signer {
public _address: string
public _address: string = ''
private keychain: KeychainAdapter

@@ -19,0 +22,0 @@ private mpc: PortalMobileMpc

@@ -81,9 +81,2 @@ // Types

export interface SigningRequestArguments {
readonly chainId?: number
readonly method: string
readonly params?: unknown[] | SigningRequestParams
readonly requestId?: string
}
export interface SigningRequestParams {

@@ -90,0 +83,0 @@ gas?: string

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