Skip to content

Module: modules/signer

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

AccountInfo

Ƭ AccountInfo: Object

Type declaration

Name Type
account string
chainId number
chainName string

ServiceInitializer

Ƭ ServiceInitializer: () => Promise<void>

Type declaration

▸ (): Promise<void>

Returns

Promise<void>


SignerT

Ƭ SignerT: Signer & TypedDataSigner

Variables

IS_ETH_SIGNER

Const IS_ETH_SIGNER: "isEthSigner"


PUBLIC_KEY

Const PUBLIC_KEY: "PublicKey"

Functions

createWalletConnectProvider

createWalletConnectProvider(bridge, infuraId?): WalletConnectProvider

Parameters

Name Type
bridge string
infuraId? string

Returns

WalletConnectProvider


fromGnosis

fromGnosis(safeAppSdk): Promise<SignerService>

Parameters

Name Type
safeAppSdk SafeAppsSDK

Returns

Promise<SignerService>

Description

Intended for use in Volta Gnosis web interface(https://volta.gnosis-safe.io/). Dapp should provide SafeAppSdk injected by Gnosis interface


fromKms

fromKms(bridge, kmsServerUrl, infuraId?): Promise<SignerService>

Parameters

Name Type
bridge string
kmsServerUrl string
infuraId? string

Returns

Promise<SignerService>


fromMetaMask

fromMetaMask(): Promise<SignerService>

Returns

Promise<SignerService>


fromPrivateKey

fromPrivateKey(privateKey, rpcUrl): Promise<SignerService>

Parameters

Name Type
privateKey string
rpcUrl string

Returns

Promise<SignerService>


fromWalletConnectMetamask

fromWalletConnectMetamask(bridge, infuraId?): Promise<SignerService>

Parameters

Name Type
bridge string
infuraId? string

Returns

Promise<SignerService>


isMetamaskExtensionPresent

isMetamaskExtensionPresent(): Promise<{ chainId: undefined | number ; isMetamaskPresent: boolean = !!provider }>

Returns

Promise<{ chainId: undefined | number ; isMetamaskPresent: boolean = !!provider }>