@portal-hq/provider
Advanced tools
Comparing version 0.2.8 to 0.2.9
{ | ||
"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 |
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
1
22
21785
10
720
Updated@portal-hq/utils@^0.2.9