Skip to content

Latest commit

 

History

History
305 lines (170 loc) · 7.77 KB

templewallet.md

File metadata and controls

305 lines (170 loc) · 7.77 KB

@temple-wallet/dappTempleWallet

Class: TempleWallet

Hierarchy

  • TempleWallet

Implements

  • WalletProvider

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new TempleWallet(appName: string, existingPermission?: TempleDAppPermission): TempleWallet

Defined in taquito-wallet.ts:32

Parameters:

Name Type
appName string
existingPermission? TempleDAppPermission

Returns: TempleWallet

Properties

Private appName

appName: string

Defined in taquito-wallet.ts:35


permission

permission: TempleDAppPermission = null

Defined in taquito-wallet.ts:32


Static getCurrentPermission

getCurrentPermission: getCurrentPermission = getCurrentPermission

Defined in taquito-wallet.ts:29


Static isAvailable

isAvailable: isAvailable = isAvailable

Defined in taquito-wallet.ts:27


Static onAvailabilityChange

onAvailabilityChange: onAvailabilityChange = onAvailabilityChange

Defined in taquito-wallet.ts:28


Static onPermissionChange

onPermissionChange: onPermissionChange = onPermissionChange

Defined in taquito-wallet.ts:30

Accessors

connected

get connected(): boolean

Defined in taquito-wallet.ts:43

Returns: boolean

Methods

broadcast

broadcast(signedOpBytes: string): Promise‹string›

Defined in taquito-wallet.ts:112

Parameters:

Name Type
signedOpBytes string

Returns: Promise‹string›


connect

connect(network: TempleDAppNetwork, opts: object): Promise‹void›

Defined in taquito-wallet.ts:54

Parameters:

network: TempleDAppNetwork

Default value opts: object= { forcePermission: false }

Name Type Default
forcePermission boolean false

Returns: Promise‹void›


Private formatParameters

formatParameters(params: any): any

Defined in taquito-wallet.ts:117

Parameters:

Name Type
params any

Returns: any


getPKH

getPKH(): Promise‹string›

Defined in taquito-wallet.ts:67

Returns: Promise‹string›


mapDelegateParamsToWalletParams

mapDelegateParamsToWalletParams(params: function): Promise‹any›

Defined in taquito-wallet.ts:92

Parameters:

params: function

▸ (): Promise‹WalletDelegateParams›

Returns: Promise‹any›


mapOriginateParamsToWalletParams

mapOriginateParamsToWalletParams(params: function): Promise‹any›

Defined in taquito-wallet.ts:82

Parameters:

params: function

▸ (): Promise‹WalletOriginateParams›

Returns: Promise‹any›


mapTransferParamsToWalletParams

mapTransferParamsToWalletParams(params: function): Promise‹any›

Defined in taquito-wallet.ts:72

Parameters:

params: function

▸ (): Promise‹WalletTransferParams›

Returns: Promise‹any›


reconnect

reconnect(network: TempleDAppNetwork): Promise‹void›

Defined in taquito-wallet.ts:63

Parameters:

Name Type
network TempleDAppNetwork

Returns: Promise‹void›


Private removeDefaultParams

removeDefaultParams(params: WalletTransferParams | WalletOriginateParams | WalletDelegateParams, operatedParams: any): any

Defined in taquito-wallet.ts:130

Parameters:

Name Type
params WalletTransferParams | WalletOriginateParams | WalletDelegateParams
operatedParams any

Returns: any


sendOperations

sendOperations(opParams: any[]): Promise‹string›

Defined in taquito-wallet.ts:102

Parameters:

Name Type
opParams any[]

Returns: Promise‹string›


sign

sign(payload: string): Promise‹string›

Defined in taquito-wallet.ts:107

Parameters:

Name Type
payload string

Returns: Promise‹string›


toTezos

toTezos(): TezosToolkit‹›

Defined in taquito-wallet.ts:47

Returns: TezosToolkit‹›