marina-provider
Advanced tools
Comparing version 1.4.9 to 1.4.10
@@ -1,2 +0,2 @@ | ||
import { AddressInterface, Balance, EventListenerID, MarinaEventType, NetworkString, PsetBase64, Recipient, SentTransaction, SignedMessage, Transaction, Utxo } from './types'; | ||
import { AddressInterface, Balance, DescriptorTemplate, EventListenerID, MarinaEventType, NetworkString, PsetBase64, Recipient, SentTransaction, SignedMessage, Transaction, Utxo } from './types'; | ||
/** | ||
@@ -10,7 +10,18 @@ * Define the Marina provider methods. | ||
isEnabled(): Promise<boolean>; | ||
setAccount(account: number): Promise<void>; | ||
isReady(): Promise<boolean>; | ||
on(type: MarinaEventType, callback: (payload: any) => void): EventListenerID; | ||
off(listenerId: EventListenerID): void; | ||
getNetwork(): Promise<NetworkString>; | ||
getAddresses(): Promise<AddressInterface[]>; | ||
getFeeAssets(): Promise<string[]>; | ||
getSelectedAccount(): Promise<string>; | ||
createAccount(accountName: string): Promise<void>; | ||
useAccount(account: string): Promise<boolean>; | ||
/** all the methods above apply to the selected account **/ | ||
importTemplate(template: DescriptorTemplate, changeTemplate?: DescriptorTemplate): Promise<void>; | ||
getBalances(): Promise<Balance[]>; | ||
getCoins(): Promise<Utxo[]>; | ||
getTransactions(): Promise<Transaction[]>; | ||
getNextAddress(): Promise<AddressInterface>; | ||
getNextChangeAddress(): Promise<AddressInterface>; | ||
getAddresses(): Promise<AddressInterface[]>; | ||
sendTransaction(recipients: Recipient[], feeAsset?: string): Promise<SentTransaction>; | ||
@@ -20,9 +31,3 @@ blindTransaction(pset: PsetBase64): Promise<PsetBase64>; | ||
signMessage(message: string): Promise<SignedMessage>; | ||
getCoins(): Promise<Utxo[]>; | ||
getTransactions(): Promise<Transaction[]>; | ||
getBalances(): Promise<Balance[]>; | ||
on(type: MarinaEventType, callback: (payload: any) => void): EventListenerID; | ||
off(listenerId: EventListenerID): void; | ||
getFeeAssets(): Promise<string[]>; | ||
reloadCoins(): Promise<void>; | ||
} |
@@ -83,2 +83,6 @@ /// <reference types="node" /> | ||
} | ||
export interface DescriptorTemplate { | ||
type: 'marina-descriptors'; | ||
template: string; | ||
} | ||
export {}; |
{ | ||
"name": "marina-provider", | ||
"version": "1.4.9", | ||
"version": "1.4.10", | ||
"description": "Marina injected API", | ||
@@ -21,3 +21,3 @@ "repository": "git@github.com:vulpemventures/marina-provider.git", | ||
"tsdx": "^0.14.1", | ||
"typescript": "^4.4.3" | ||
"typescript": "^4.6.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "prettier": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
222291
1839