Class: KeypomWallet
Implementsβ
InstantLinkWalletBehaviour
Constructorsβ
constructorβ
new KeypomWallet(Β«destructuredΒ»
)
Parametersβ
Name | Type |
---|---|
Β«destructuredΒ» | Object |
βΊΒ instantSignInSpecs? | InstantSignInSpecs |
βΊΒ networkId | string |
βΊΒ signInContractId | string |
βΊΒ trialAccountSpecs? | TrialSignInSpecs |
Defined inβ
Propertiesβ
accountIdβ
Optional
accountId: string
Defined inβ
instantSignInSpecsβ
Optional
instantSignInSpecs: InternalInstantSignInSpecs
Defined inβ
keyStoreβ
keyStore: BrowserLocalStorageKeyStore
Defined inβ
modalβ
Optional
modal: KeypomTrialModal
Defined inβ
moduleIdβ
Optional
moduleId: string
Defined inβ
nearβ
near: Near
Defined inβ
secretKeyβ
Optional
secretKey: string
Defined inβ
signInContractIdβ
signInContractId: string
Defined inβ
trialAccountSpecsβ
Optional
trialAccountSpecs: InternalTrialSignInSpecs
Defined inβ
Methodsβ
assertSignedInβ
Private
assertSignedIn(): void
Returnsβ
void
Defined inβ
checkValidTrialInfoβ
checkValidTrialInfo(): boolean
Returnsβ
boolean
Defined inβ
getAccountIdβ
getAccountId(): string
Returnsβ
string
Defined inβ
getAccountsβ
getAccounts(): Promise
<Account
[]>
Returnsβ
Promise
<Account
[]>
Implementation ofβ
InstantLinkWalletBehaviour.getAccounts
Defined inβ
getAvailableBalanceβ
getAvailableBalance(id?
): Promise
<BN
>
Parametersβ
Name | Type |
---|---|
id? | string |
Returnsβ
Promise
<BN
>
Defined inβ
getContractIdβ
getContractId(): string
Returnsβ
string
Implementation ofβ
InstantLinkWalletBehaviour.getContractId
Defined inβ
internalSignInβ
Private
internalSignIn(accountId
, secretKey
, moduleId
): Promise
<Account
[]>
Parametersβ
Name | Type |
---|---|
accountId | any |
secretKey | any |
moduleId | any |
Returnsβ
Promise
<Account
[]>
Defined inβ
isSignedInβ
isSignedIn(): Promise
<boolean
>
Returnsβ
Promise
<boolean
>
Defined inβ
setSpecsFromKeypomParamsβ
Private
setSpecsFromKeypomParams(Β«destructuredΒ»
): void
Parametersβ
Name | Type |
---|---|
Β«destructuredΒ» | Object |
βΊΒ instantSignInSpecs? | InstantSignInSpecs |
βΊΒ shouldSetupModal | boolean |
βΊΒ trialAccountSpecs? | TrialSignInSpecs |
Returnsβ
void
Defined inβ
showModalβ
showModal(modalType?
): void
Parametersβ
Name | Type | Default value |
---|---|---|
modalType | Object | undefined |
modalType.id | string | MODAL_TYPE_IDS.TRIAL_OVER |
Returnsβ
void
Defined inβ
signAndSendTransactionβ
signAndSendTransaction(params
): Promise
<FinalExecutionOutcome
>
Parametersβ
Name | Type |
---|---|
params | any |
Returnsβ
Promise
<FinalExecutionOutcome
>
Implementation ofβ
InstantLinkWalletBehaviour.signAndSendTransaction
Defined inβ
signAndSendTransactionsβ
signAndSendTransactions(params
): Promise
<FinalExecutionOutcome
[]>
Parametersβ
Name | Type |
---|---|
params | Object |
params.transactions | Transaction [] |
Returnsβ
Promise
<FinalExecutionOutcome
[]>
Implementation ofβ
InstantLinkWalletBehaviour.signAndSendTransactions
Defined inβ
signInβ
signIn(): Promise
<Account
[]>
Returnsβ
Promise
<Account
[]>
Implementation ofβ
InstantLinkWalletBehaviour.signIn
Defined inβ
signInInstantAccountβ
signInInstantAccount(accountId
, secretKey
, moduleId
): Promise
<Account
[]>
Parametersβ
Name | Type |
---|---|
accountId | any |
secretKey | any |
moduleId | any |
Returnsβ
Promise
<Account
[]>
Defined inβ
signInTrialAccountβ
signInTrialAccount(accountId
, secretKey
): Promise
<Account
[]>
Parametersβ
Name | Type |
---|---|
accountId | any |
secretKey | any |
Returnsβ
Promise
<Account
[]>
Defined inβ
signOutβ
signOut(): Promise
<void
>
Returnsβ
Promise
<void
>
Implementation ofβ
InstantLinkWalletBehaviour.signOut
Defined inβ
switchAccountβ
switchAccount(id
): Promise
<void
>
Parametersβ
Name | Type |
---|---|
id | string |
Returnsβ
Promise
<void
>
Defined inβ
verifyOwnerβ
verifyOwner(): Promise
<void
>
Returnsβ
Promise
<void
>
Implementation ofβ
InstantLinkWalletBehaviour.verifyOwner